/* About page: portrait hero, signed letter, credentials, parts of TSE, week of hours */

/* ---------- hero: panorama, with Amirra's portrait card on the photo ---------- */
.abx-who { margin: 0; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; align-items: center; }
.abx-who__img { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--gold-400); }
.abx-who__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; display: block; }
.abx-who__cap strong { display: block; color: var(--em-900); font: 700 1.1rem/1.2 var(--font-display); }
.abx-who__cap span { display: block; font-size: var(--fs-compact, .95rem); color: #4d5a51; }
.abx .xhero__photo img { object-position: 50% 45%; }
.abx-num { white-space: nowrap; }
@media (min-width: 1100px) {
  .abx .xhero__grid { grid-template-areas: "crumbs crumbs" "title lead" "actions lead" "photo photo" "facts facts"; }
  .abx-who { grid-area: photo; z-index: 2; align-self: start; justify-self: end; margin: 36px 36px 0 0; background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-3); padding: 16px 22px 16px 16px; grid-template-columns: 96px auto; }
  .abx-who__img { width: 96px; height: 96px; }
}

/* ---------- letter: big pull quote beside a signed paper page ---------- */
.letter__grid { display: grid; gap: var(--s6); }
.letter__side h2 { margin-bottom: var(--s5); }
.letter__pull { position: relative; padding-top: 52px; font: 600 clamp(1.45rem, 1.1rem + 1.4vw, 2.1rem)/1.3 var(--font-display); color: var(--em-900); letter-spacing: -.01em; max-width: 24ch; }
.letter__pull::before { content: "\201C"; position: absolute; left: -4px; top: -18px; font: 700 7rem/1 var(--font-display); color: var(--gold-400); }
.letter__paper { position: relative; background: #fff; border-radius: var(--r-sm); box-shadow: var(--sh-paper); padding: var(--s6) var(--s5); max-width: 44rem; }
.letter__paper::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: var(--r-sm) var(--r-sm) 0 0; background: repeating-linear-gradient(90deg, var(--em-700) 0 40px, var(--gold-400) 40px 52px); }
.letter__paper > p + p { margin-top: var(--s4); }
.letter__hi { font: 700 1.5rem/1.2 var(--font-display); color: var(--em-900); }
.letter__motto { font-weight: 700; color: var(--em-900); }
.letter__sign { margin-top: var(--s6) !important; font: 600 2.2rem/1 var(--font-brand); color: var(--gold-ink); letter-spacing: .02em; }
.letter__role { margin-top: var(--s2) !important; font-size: var(--fs-sm); color: var(--muted); }
@media (min-width: 768px) { .letter__paper { padding: var(--s7) var(--s7) var(--s6); } }
@media (max-width: 767px) {
  .letter__grid { gap: var(--gap-block); }
  .letter__pull { padding-top: 40px; max-width: none; }
  .letter__paper { padding: 24px var(--card-pad); }
}
@media (min-width: 1100px) {
  .letter__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s8); align-items: start; }
  .letter__side { position: sticky; top: calc(var(--hdr-h) + 40px); }
}

/* ---------- credentials: copy and referral note beside the two ID cards ---------- */
.acreds__grid { display: grid; gap: var(--s6); }
.acreds__copy > * + * { margin-top: var(--s4); }
.acreds__refer { margin-top: var(--s6) !important; }
.acreds__cards { display: grid; gap: var(--s5); }
@media (min-width: 768px) { .acreds__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
@media (min-width: 1100px) {
  .acreds__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s8); align-items: center; }
  .acreds__cards .idcard:nth-child(2) { margin-top: var(--s8); }
}
@media (max-width: 767px) { .acreds__refer { margin-top: 16px !important; } }

/* ---------- parts of TSE: training is a status panel, not a link ---------- */
.aparts .tile--lg { min-height: 380px; }
@media (min-width: 1100px) { .aparts .tile--lg { min-height: 0; } }
@media (max-width: 767px) { .aparts .tile--lg { min-height: 260px; } }
.aparts__soon { background: var(--bg-soft); box-shadow: none; border-style: dashed; border-color: var(--ui-line); }
.aparts__soon:hover { box-shadow: none; }
.aparts__tag { justify-self: start; margin-top: var(--s3); padding: 4px 12px; border-radius: var(--r-pill); background: var(--gold-wash); color: var(--gold-ink); font-size: .85rem; font-weight: 700; }

/* ---------- where and when ---------- */
.awhen__grid { display: grid; gap: var(--s7); align-items: center; }
.awhen__lead { margin-top: var(--s4); font-size: var(--fs-lg); max-width: 44ch; }
.awhen .ledgerline { margin-top: var(--s5); }
.awhen__more { margin-top: var(--s4); }
@media (min-width: 1100px) { .awhen__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s8); } }
@media (max-width: 767px) {
  .awhen__grid { gap: var(--gap-block); }
  .awhen__lead { margin-top: 12px; }
  .awhen .ledgerline { margin-top: 16px; }
  .awhen__more { margin-top: 12px; }
}
/* smallest phones: heading, hours and the quote button are one screen, so the sentence about coverage follows them */
@media (max-width: 359px), (max-width: 767px) and (max-height: 560px) {
  .awhen__copy { display: flex; flex-direction: column; }
  .awhen__lead { order: 1; margin-top: 16px; }
  .awhen__more { order: 2; margin-top: 4px; }
}
/* ledger on this band is two columns at every width: reset the divider on each row start */
@media (min-width: 768px) { .awhen .ledgerline > div:nth-child(odd) { padding-left: 0; border-left: 0; } }

/* ---------- where and when: home base on the service-area map ---------- */
.ahome { margin: 0; padding: 18px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.ahome .county-map__context path { fill: rgba(255, 255, 255, .05); stroke: rgba(255, 255, 255, .12); }
.ahome .county-map__county.is-hot { fill: rgba(232, 181, 83, .18); stroke: var(--gold-300); }
.ahome .county-map__county { cursor: default; }
.ahome .county-map__label { fill: #fff; stroke: var(--em-900); }
.ahome .county-map__town:not(.is-hot) { display: none; }
.ahome .county-map__town.is-hot circle { fill: var(--gold-300); stroke: #fff; }
.ahome .county-map__town text { fill: #fff; stroke: var(--em-900); }
.ahome__cap { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: .95rem; color: var(--on-dark-muted); }
.ahome__pin { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--gold-300); box-shadow: 0 0 0 3px rgba(232, 181, 83, .3); }
@media (max-width: 767px) { .ahome { padding: 12px; } .ahome__svg { max-height: 300px; } .ahome__cap { font-size: var(--fs-compact); } }

/* owner section: portrait card sits under the heading, the hero no longer carries it */
.letter__who { margin: 0 0 var(--s5); }
@media (min-width: 1100px) { .letter__who { grid-area: auto; justify-self: start; margin: 0 0 var(--s5); background: none; box-shadow: none; padding: 0; } }
