/* The college letterhead (templates/partials/letterhead.html). Sizes follow the
   width of the box it sits in, so it works in the page band, in a receipt card and
   on a phone. The px values are for browsers without container units. */
.lh-band {
  container-type: inline-size;
  background: #fff;
  border-top: 3px solid #E8832A;
  border-bottom: 1px solid #E8DFD4;
  padding: .45rem 1rem;
  color: #3A3A3A;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.lh-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  gap: clamp(.4rem, 2cqw, 1rem);
  max-width: 880px;
  margin: 0 auto;
}
.lh-seal {
  flex: none;
  width: 70px;
  height: 70px;
  width: clamp(44px, 10cqw, 76px);
  height: clamp(44px, 10cqw, 76px);
}
.lh-text {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.2;
}
.lh-1, .lh-2 { color: #AE1C28; font-weight: 700; }
.lh-1 { font-size: 16px; font-size: clamp(.7rem, 2.5cqw, 1.15rem); }
.lh-2 { font-size: 20px; font-size: clamp(.78rem, 3.1cqw, 1.42rem); }
.lh-3, .lh-4 { font-weight: 700; font-size: 12px; font-size: clamp(.6rem, 1.75cqw, .8rem); }
.lh-5 { color: #555; font-size: 12px; font-size: clamp(.58rem, 1.65cqw, .76rem); }

@container (max-width: 430px) {
  .lh-spacer { display: none; }
}
/* a narrow card on a phone: seal above the text, so every line stays on one line */
@container (max-width: 330px) {
  .lh-inner { flex-direction: column; gap: .2rem; }
  .lh-text { flex: none; }
}

/* a page with its own letterhead (a receipt, a nominal roll) prints that one only */
@media print {
  body:has(.lh-inline) .lh-global { display: none; }
  .lh-band { break-inside: avoid; }
}
