/* LA County Library Foundation: the "Reading Room" layout in the Pemberley Lake palette, the design chosen on
   2026-11-17 (the review options it was chosen from are kept at the git tag three-options-2026-11-17).
   Colour roles, from the LACLF brand guide plus two tints of Pemberley Lake:
   - white and frost (Pemberley's hue at L* 94, as far from white as Linen is) alternate as the section grounds
   - mist (Pemberley's hue at L* 90) on the heroes and the tinted sections
   - Pemberley Lake on the colour bands: Living Archive, menu, footer, with white type (5.5:1)
   - ink, Pemberley deepened, for type, links and rules; hairlines in a cool gray
   - Rosings is the one warm colour: the italics and numerals, and the membership panel on every page, so the
     call to give is the one warm block on a cool page
   - Nightshade only on the logo and the buttons
   Some token and class names (--ink-deep, --mauve, .sec--linen, .btn--linen) date from the layout's first,
   Linen-and-Nightshade palette; their values are the roles above.
   Newsreader = web-native heir to the brand's Georgia headings; Carlito = metric-compatible Calibri for body copy. */

:root {
  --white: #FFFFFF; --frost: #EAEEF4; --mist: #DDE3EB; --mauve: var(--mist);
  --pem: #5B6B7F; --pem-l: #C1C7CE; --night: #3F2743; --rosings: #8C4A4A; --boxwood: #4F706A; --linen: #F3EDE0;
  --ink: #252D37;           /* type, links, rules, outline buttons: Pemberley deepened */
  --ink-mid: #38424F;       /* labels and captions: the guide's Pemberley dark (7.9:1 on mist) */
  --ink-deep: var(--pem);   /* the colour bands: Living Archive, menu, footer */
  --ink-soft: var(--white); /* secondary text on those bands */
  --text: #333333; --gray: #58585B;
  --rule: #CBD2DB;          /* Warm Gray's weight (1.5:1 on white) in Pemberley's hue */
  --rule-2: var(--pem-l);   /* the stronger hairline: the guide's Pemberley light */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Carlito", Calibri, "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1360px; --gut: clamp(1.25rem, 4.2vw, 4rem); --gap: clamp(1rem, 2.2vw, 2rem);
  --ease: cubic-bezier(.2, .7, .1, 1); --ease-io: cubic-bezier(.65, 0, .35, 1);
  --hdr: 9rem;
  --logo: 7.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
  margin: 0; background: var(--white); color: var(--text);
  font: 400 1.1875rem/1.6 var(--sans); font-kerning: normal;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--rosings); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: 400; color: var(--ink); text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
address { font-style: normal; }
em { font-style: italic; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--linen); padding: .75rem 1rem; border-radius: 2px; }
.skip:focus { top: 1rem; color: var(--linen); }

.wrap { width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }
/* A word longer than its line (Armenian compounds, Tagalog, Vietnamese) breaks rather than scrolling the page
   sideways. break-word, not anywhere: anywhere also shrinks min-content sizes, which let flex and grid items
   squeeze English text too (the Programs page's "30" broke into "3" over "0" at 390px). Items that must be
   allowed to shrink below their longest word say so with min-width: 0 or minmax(0, 1fr) tracks. */
body { overflow-wrap: break-word; }
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }

/* ---------- type ---------- */
.label {
  font: 700 .8125rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mid); margin: 0 0 1rem;
}
.label--linen { color: var(--white); }
.chapter { display: flex; align-items: baseline; gap: .9rem; margin: 0 0 1.5rem; color: var(--ink-mid); }
.chapter__n { font: italic 400 1.5rem/1 var(--serif); color: var(--rosings); min-width: 1.6rem; }
.chapter__l { font: 700 .8125rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.h-display { font: 300 clamp(2.4rem, 1.2rem + 3.6vw, 4.75rem)/1.02 var(--serif); letter-spacing: -.02em; }
.h-display--md { font-size: clamp(2.1rem, 1.2rem + 2.6vw, 3.75rem); line-height: 1.06; }
.h3 { font: 400 clamp(1.5rem, 1.25rem + .8vw, 2.05rem)/1.15 var(--serif); letter-spacing: -.01em; margin-bottom: .6rem; }
.h3--lg { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.9rem); margin-bottom: 1rem; }
.lead { font: 400 clamp(1.3rem, 1.12rem + .7vw, 1.8rem)/1.42 var(--serif); color: var(--ink); letter-spacing: -.005em; }
.lead--muted { color: var(--gray); }
.note { font-size: 1rem; color: var(--ink-mid); margin-top: 1.5rem; }
.note--center { text-align: center; margin-top: 3rem; }
.callout { border-inline-start: 2px solid var(--rosings); padding-block: .25rem; padding-inline: 1.25rem 0; color: var(--ink); font-weight: 700; }

/* ---------- links & buttons ---------- */
.link {
  display: inline-flex; align-items: center; gap: .5rem; font: 700 1rem/1.3 var(--sans); letter-spacing: .02em;
  text-decoration: none; color: var(--ink); padding: .35rem 0; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .5s var(--ease), color .2s;
}
.link::after { content: "→"; transition: transform .4s var(--ease); }
.link[target="_blank"]::after { content: none; }
.link:hover { background-size: 0 1px; background-position: 100% 100%; color: var(--rosings); }
.link:hover::after { transform: translateX(.3rem); }
.link--linen { color: var(--white); }
.link--linen:hover { color: var(--white); }
.ext { display: inline-block; margin-inline-start: .3em; font-family: var(--sans); transition: transform .4s var(--ease); }
a:hover .ext { transform: translate(.15em, -.15em); }
.btns { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.btn {
  --bg: transparent; --fg: var(--ink); --bd: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 3.5rem; padding: .95rem 1.85rem; border: 1.5px solid var(--bd); border-radius: 999px;
  background: var(--bg); color: var(--fg); font: 700 1.0625rem/1 var(--sans); letter-spacing: .03em; text-decoration: none;
  overflow: hidden; isolation: isolate; transition: color .35s var(--ease), border-color .35s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fill, var(--rosings));
  transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn:hover { color: var(--hover-fg, var(--white)); border-color: var(--fill, var(--rosings)); }
.btn:hover::before { transform: none; }
.btn--ink { --bg: var(--night); --fg: var(--white); --bd: var(--night); --fill: var(--rosings); }
.btn--line { --fill: var(--ink); }
.btn--linen { --bg: var(--white); --fg: var(--ink); --bd: var(--white); --fill: var(--white); --hover-fg: var(--ink); }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgb(221 227 235 / .94); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); transition: box-shadow .4s, background .4s; }
.hdr__in { display: flex; align-items: center; gap: 2rem; min-height: var(--hdr); padding-block: .75rem; transition: min-height .5s var(--ease); }
.brand { flex: none; display: block; color: var(--ink); }
.brand__clip { display: block; height: var(--logo); overflow: hidden; transition: height .5s var(--ease); }
.brand__clip img { width: auto; height: var(--logo); transition: height .5s var(--ease); }
.hdr.is-stuck { background: rgb(255 255 255 / .92); box-shadow: 0 1px 0 var(--rule); }
.hdr.is-stuck .hdr__in { min-height: 4.5rem; }
.hdr.is-stuck .brand__clip { height: calc(3.6rem * .655); }
.hdr.is-stuck .brand__clip img { height: 3.6rem; }
.hdr__nav { margin-inline-start: auto; }
.hdr__nav ul { display: flex; gap: clamp(1rem, 2vw, 2.25rem); }
.hdr__nav a { position: relative; font: 400 1.0625rem/1 var(--sans); color: var(--ink); text-decoration: none; padding: .6rem 0; }
.hdr__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.hdr__nav a:hover::after, .hdr__nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.hdr__act { display: flex; align-items: center; gap: .75rem; }
.hdr__give { min-height: 2.85rem; padding: .7rem 1.4rem; font-size: 1rem; white-space: nowrap; }
.hdr__menu { display: none; align-items: center; gap: .6rem; min-height: 2.75rem; padding: 0 .25rem; border: 0; background: none; color: var(--ink); font: 700 .875rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.hdr__menu-label--close { display: none; }
.hdr__menu[aria-expanded="true"] > .hdr__menu-label:not(.hdr__menu-label--close) { display: none; }
.hdr__menu[aria-expanded="true"] > .hdr__menu-label--close { display: inline; }
.hdr__menu-lines { position: relative; width: 1.4rem; height: 2px; background: currentColor; transition: background .3s; }
.hdr__menu-lines::before, .hdr__menu-lines::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform .4s var(--ease); }
.hdr__menu-lines::before { transform: translateY(-6px); }
.hdr__menu-lines::after { transform: translateY(6px); }
.hdr__menu[aria-expanded="true"] .hdr__menu-lines { background: transparent; }
.hdr__menu[aria-expanded="true"] .hdr__menu-lines::before { transform: rotate(45deg); }
.hdr__menu[aria-expanded="true"] .hdr__menu-lines::after { transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 40; background: var(--ink-deep); color: var(--white); padding-top: 6rem; overflow-y: auto; }
.menu[hidden] { display: none; }
.menu__in { display: flex; flex-direction: column; min-height: calc(100% - 2rem); padding-block: 2rem; }
.menu__list { counter-reset: m; }
.menu__list li { counter-increment: m; border-top: 1px solid rgb(255 255 255 / .3); }
.menu__list a { display: flex; align-items: baseline; gap: 1rem; padding: .9rem 0; font: 300 clamp(2rem, 8vw, 3rem)/1.05 var(--serif); color: var(--white); text-decoration: none; }
.menu__list a::before { content: counter(m, decimal-leading-zero); font: 700 .75rem/1 var(--sans); letter-spacing: .12em; color: var(--white); }
.menu__list a:hover { color: var(--mist); font-style: italic; }
.menu__foot { margin-top: auto; padding-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; font-size: .9375rem; color: var(--ink-soft); }
.menu__foot p { margin: 0; }
html.menu-open { overflow: hidden; }
html.menu-open .hdr { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
html.menu-open .hdr .brand img { filter: brightness(0) invert(1); }
html.menu-open .hdr__menu, html.menu-open .hdr__give { color: var(--white); }
/* the language switcher sits on the open menu's Pemberley ground too: full white (at its usual .82 opacity white
   would measure about 4.3:1 there, under AA for its small text) */
html.menu-open .langsel__sum { color: var(--white); opacity: 1; }
html.menu-open .hdr__give { visibility: hidden; }

/* Phones: logo, language switcher, Give and the menu icon share one row in nine languages, several of them
   long (Armenian "Նվիրաբերել"). Compact the cluster and let the menu button keep its text as its accessible
   name only, so Give stays visible instead of wrapping or pushing the header past the viewport edge. */
@media (max-width: 767px) {
  .hdr__in { gap: .5rem; }
  .hdr__act { gap: .4rem; }
  .hdr__give { min-height: 2.75rem; padding: .4rem .9rem; font-size: .9375rem; letter-spacing: .01em; }
  .hdr__menu { min-width: 2.75rem; min-height: 2.75rem; padding: 0; justify-content: center; }
  .hdr__menu .hdr__menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 359px) {
  .hdr__in { gap: .4rem; }
  .hdr__act { gap: .3rem; }
  .hdr .brand__clip, .hdr .brand__clip img { height: 3.4rem; }
  .hdr__give { padding: .4rem .7rem; font-size: .875rem; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(1.5rem, 3vw, 2.75rem) 0 clamp(3rem, 7vw, 6rem); border-top: 1px solid var(--rule); background: var(--mist); }
.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.hero__title { grid-column: 1 / 9; font: 300 clamp(4.5rem, 7.1vw, 7.5rem)/.98 var(--serif); letter-spacing: -.028em; }
.hero__title em { font-style: italic; color: var(--rosings); font-weight: 300; }
.ln { display: block; overflow: hidden; padding-bottom: .07em; margin-bottom: -.07em; }
.ln > span { display: inline-block; }
.ln--in { padding-inline-start: 1.4em; }
.hero__copy { grid-column: 1 / 8; margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.hero__lede { font: 400 clamp(1.35rem, 1.1rem + .8vw, 1.9rem)/1.35 var(--serif); color: var(--ink); margin-bottom: 0; max-width: 24em; }
.hero__trust { margin: 1.25rem 0 0; font-size: .9375rem; color: var(--gray); }
.hero__fig { grid-column: 9 / 13; grid-row: 1 / span 2; margin: .5rem 0 0; align-self: stretch; display: flex; flex-direction: column; }
.hero__frame { position: relative; flex: 1 1 auto; min-height: 26rem; overflow: hidden; background: var(--ink-deep); border-radius: 999px 999px 0 0; }
.hero__frame picture { position: absolute; inset: 0; }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 40%; }
figcaption { margin-top: .9rem; font-size: .9375rem; line-height: 1.45; color: var(--ink-mid); max-width: 44em; }

/* ---------- ticker ---------- */
.ticker { position: relative; border-block: 1px solid var(--rule); padding-block: .65rem 0; background: var(--white); }
.ticker__view { overflow: hidden; padding-block: .45rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker__track { display: flex; width: max-content; animation: ticker 70s linear infinite; }
.ticker__view:hover .ticker__track { animation-play-state: paused; }
.ticker[data-paused="true"] .ticker__track, .ticker__track.is-offscreen, .ticker__track.is-focuspaused { animation-play-state: paused; }
.ticker__list { display: flex; align-items: baseline; }
.ticker__list li { display: flex; align-items: baseline; gap: .8rem; padding-inline: 1.6rem; }
.ticker__list li::after { content: ""; width: .35rem; height: .35rem; margin-inline-start: 2rem; border-radius: 50%; background: var(--rosings); align-self: center; }
/* Each item is one link to that language's home page. The link carries no text of its own: its name is the
   word plus the language name, both already in the markup. */
.ticker__a { display: flex; align-items: baseline; gap: .8rem; color: var(--ink); text-decoration: none; cursor: pointer; }
@media (hover: hover) { .ticker__a:hover .ticker__w { color: var(--rosings); } }
.ticker__a:focus-visible .ticker__w { color: var(--rosings); }
.ticker__w { font: italic 300 clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem)/1.2 var(--serif); color: var(--ink); white-space: nowrap; }
.ticker__l { font: 700 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gray); }
@keyframes ticker { to { transform: translateX(-50%); } }
/* the track is two identical copies: in RTL it overflows to the left, so the loop runs the other way */
[dir="rtl"] .ticker__track { animation-name: ticker-rtl; }
@keyframes ticker-rtl { to { transform: translateX(50%); } }
/* pause/play: the visible label and icon are both in the markup, so the build can translate them */
.ticker__ctl { display: flex; align-items: center; gap: .45rem; width: fit-content; margin-block: .1rem .8rem; margin-inline: auto max(var(--gut), calc((100% - var(--max)) / 2)); padding: .5rem .2rem;
  border: 0; background: none; color: var(--ink-mid); cursor: pointer;
  font: 700 .75rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-align: start; }
@media (hover: hover) { .ticker__ctl:hover { color: var(--rosings); } }
.ticker__ctl-ic { position: relative; flex: none; inline-size: .5rem; block-size: .6rem; }
.ticker__ctl-ic::before, .ticker__ctl-ic::after { content: ""; position: absolute; inset-block: 0; inline-size: .15rem; background: currentColor; }
.ticker__ctl-ic::before { inset-inline-start: 0; }
.ticker__ctl-ic::after { inset-inline-end: 0; }
.ticker__ctl-b { display: none; }
.ticker[data-paused="true"] .ticker__ctl-a { display: none; }
.ticker[data-paused="true"] .ticker__ctl-b { display: inline; }
.ticker[data-paused="true"] .ticker__ctl-ic::before { inset-block: .1rem; inline-size: 0; background: none; border-block: .2rem solid transparent; border-inline-start: .4rem solid currentColor; }
.ticker[data-paused="true"] .ticker__ctl-ic::after { content: none; }
html:not(.js) .ticker__ctl { display: none; }
.s-tc { font-family: "Noto Serif TC", var(--serif); font-style: normal; }
.s-arabic { font-family: "Noto Naskh Arabic", var(--serif); font-style: normal; }
.s-armenian { font-family: "Noto Serif Armenian", var(--serif); font-style: normal; }
.s-kr { font-family: "Noto Serif KR", var(--serif); font-style: normal; }

/* ---------- sections ---------- */
.sec { padding-block: clamp(4.5rem, 10vw, 9rem); }
.sec--white { background: var(--white); }
.sec--linen { background: var(--frost); }
.sec--mauve { background: var(--mauve); }
.sec__head { margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.sec__head-side { grid-column: 1 / -1; }
.sec__head-main { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: calc(var(--gap) * 2); align-items: end; }
.sec__head-main > h2 { grid-column: 1; grid-row: 1 / span 4; align-self: end; }
.sec__head-main > :not(h2) { grid-column: 2; }
.sec__head-main > .lead:first-of-type { margin-top: 0; }
.sec__head-main .lead { margin-top: 1.25rem; max-width: 34em; }
.sec__head-main .link { margin-top: .5rem; }
.role__sub { margin: 2.5rem 0 0; }

/* intro / library */
.intro { margin-bottom: clamp(3rem, 7vw, 6rem); }
.intro__side { grid-column: 1 / 5; }
.intro__year { margin: 0; font: 200 clamp(5rem, 3rem + 9vw, 12rem)/.85 var(--serif); letter-spacing: -.05em; color: var(--ink); }
.intro__main { grid-column: 5 / 13; }
.intro__main .h-display { margin-bottom: 1.75rem; }
.intro__main .lead { max-width: 27em; }
.scale { align-items: center; margin-bottom: clamp(3rem, 7vw, 6rem); }
.scale__fig { grid-column: 1 / 7; margin: 0; }
.scale__fig picture { overflow: hidden; border-end-start-radius: 999px; }
.scale__fig img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.scale__copy { grid-column: 8 / 13; }
.stat { display: flex; flex-direction: column; gap: .6rem; padding-block: clamp(1.25rem, 2.5vw, 2rem) clamp(1.5rem, 3vw, 2.5rem); padding-inline: 0 clamp(.75rem, 2vw, 1.75rem); border-bottom: 1px solid var(--rule); }
.stat__n { font: 300 clamp(3.2rem, 2rem + 4vw, 6.25rem)/.9 var(--serif); letter-spacing: -.035em; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.stat__l { font-size: 1rem; line-height: 1.35; color: var(--gray); max-width: 16em; }

/* figures: one lead number, the rest as a ledger */
.figures { align-items: start; padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--ink); }
.figures__hero { grid-column: 1 / 6; align-self: center; }
.figures__big { margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.figures__n { font: 300 clamp(5rem, 3rem + 8vw, 11rem)/.85 var(--serif); letter-spacing: -.045em; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.figures__l { font: italic 300 clamp(1.3rem, 1.1rem + .8vw, 1.9rem)/1.25 var(--serif); color: var(--rosings); }
.figures__list { grid-column: 7 / 13; border-top: 1px solid var(--rule-2); }
.figures__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--rule-2); transition: padding .4s var(--ease); }
.figures__row:hover { padding-inline-start: .5rem; }
.figures__row dt { font-size: 1.0625rem; color: var(--text); }
.figures__row dd { font: 300 clamp(1.9rem, 1.4rem + 1.4vw, 3rem)/1 var(--serif); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.interlude { margin-top: clamp(4rem, 8vw, 7rem); }
.interlude__fig { margin: 0; }
.interlude__fig picture { overflow: hidden; border-start-end-radius: 999px; }
.interlude__fig img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

/* languages */
.langs__head { grid-column: 1 / 11; }
.langs__body { grid-column: 6 / 13; margin-top: 2rem; color: var(--text); font-size: 1.125rem; }

/* trio */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); counter-reset: t; }
.trio__item { border-top: 1px solid var(--ink); padding-top: 1.5rem; }
.trio__n { display: block; margin-bottom: 3rem; font: italic 300 2.75rem/1 var(--serif); color: var(--rosings); }
.trio__item p { color: var(--text); margin: 0; }
.trio--plain .trio__item { border-top-color: var(--rule-2); }
.trio--plain .h3 { margin-bottom: .9rem; }

/* program catalog */
.catalog-wrap { align-items: start; }
.catalog__side { grid-column: 1 / 5; position: sticky; top: 7rem; }
.catalog__side .h-display { margin-bottom: 1.25rem; }
.catalog__side p { color: var(--text); }
.catalog__figs { position: relative; margin-top: 2.5rem; aspect-ratio: 4 / 5; }
/* stacked photos: a hidden one also leaves hit-testing and the accessibility tree once it has faded out, so
   right-click, Inspect and screen readers get the photo that is showing */
.catalog__fig { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility 0s linear .7s; }
.catalog__fig.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
html:not(.js) .catalog__fig { opacity: 1; visibility: visible; }
html:not(.js) .catalog__fig:not(.is-active) { display: none; }
.catalog__fig picture { overflow: hidden; border-radius: 999px 999px 0 0; }
.catalog__fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.catalog__fig figcaption { font-size: .875rem; }
.catalog { grid-column: 6 / 13; border-top: 1px solid var(--ink); }
.cat { border-bottom: 1px solid var(--rule-2); }
.cat__sum { position: relative; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) minmax(0, 13rem) 2rem; align-items: start; gap: 1rem; padding: 1.4rem .25rem; cursor: pointer; list-style: none; isolation: isolate; }
.cat__sum::-webkit-details-marker { display: none; }
.cat__sum::before { content: ""; position: absolute; inset: 0 -.75rem; z-index: -1; background: var(--white); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); border-radius: 2px; }
.cat__sum:hover::before, .cat[open] .cat__sum::before { transform: none; }
.cat__n { font: 700 .8125rem/1 var(--sans); letter-spacing: .1em; color: var(--ink-mid); padding-top: .55em; }
.cat__t { font: 400 clamp(1.25rem, 1rem + .9vw, 1.85rem)/1.15 var(--serif); color: var(--ink); transition: transform .5s var(--ease); }
.cat__sum:hover .cat__t { transform: translateX(.35rem); }
.cat__s { display: flex; flex-direction: column; gap: .2rem; text-align: end; }
.cat__s b { font: 300 clamp(1.5rem, 1.2rem + 1vw, 2.2rem)/1 var(--serif); color: var(--boxwood); letter-spacing: -.02em; }
.cat__s small { font-size: .9375rem; line-height: 1.3; color: var(--ink-mid); }
.cat__i { position: relative; width: 1.9rem; height: 1.9rem; justify-self: end; margin-top: .1rem; border: 1px solid var(--ink); border-radius: 50%; transition: background .3s, transform .5s var(--ease); }
.cat__i i { position: absolute; inset: 0; }
.cat__i i::before, .cat__i i::after { content: ""; position: absolute; inset-inline-start: 50%; top: 50%; width: .8rem; height: 1.5px; margin-block: -.75px 0; margin-inline: -.4rem 0; background: var(--ink); transition: transform .4s var(--ease), background .3s; }
.cat__i i::after { transform: rotate(90deg); }
.cat__sum:hover .cat__i { background: var(--ink); }
.cat__sum:hover .cat__i i::before, .cat__sum:hover .cat__i i::after { background: var(--linen); }
.cat[open] .cat__i { transform: rotate(45deg); }
/* from 1024px with JS (a.js): every program open, the one at the reading line is current */
.catalog.is-scroll .cat__sum { cursor: auto; }
.catalog.is-scroll .cat__i { visibility: hidden; }
.catalog.is-scroll .cat__n { transition: color .3s; }
.catalog.is-scroll .cat[open] .cat__sum::before, .catalog.is-scroll .cat__sum:hover::before { transform: scaleY(0); }
.catalog.is-scroll .cat.is-current .cat__sum::before { transform: none; }
.catalog.is-scroll .cat__sum:hover .cat__t { transform: none; }
.catalog.is-scroll .cat.is-current .cat__n { color: var(--rosings); }
.cat__body { padding-block: .25rem 1.75rem; padding-inline: 3.6rem 0; max-width: 38rem; }
.cat__body p { color: var(--text); }

/* quote */
.quote { align-items: center; margin: 0; }
.quote__img { grid-column: 1 / 5; }
.quote__img picture { overflow: hidden; border-radius: 50% 50% 0 0 / 22% 22% 0 0; }
.quote__col { grid-column: 6 / 13; }
.quote__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.quote__q { margin: 0; position: relative; }
.quote__q::before { content: "“"; position: absolute; top: -.55em; inset-inline-start: -.08em; font: 300 clamp(8rem, 6rem + 6vw, 14rem)/1 var(--serif); color: var(--mist); z-index: 0; }
.quote__q p { position: relative; font: italic 300 clamp(2rem, 1.2rem + 2.8vw, 4.25rem)/1.12 var(--serif); color: var(--ink); letter-spacing: -.015em; margin: 0; }
.quote__by { margin-top: 2rem; display: flex; flex-direction: column; gap: .2rem; font-size: 1rem; color: var(--gray); }
.quote__by b { color: var(--ink); font-size: 1.0625rem; }

/* cultural resource centers */
.centers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto auto 1fr; gap: 0 var(--gap); }
.center { display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.center__home { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; font: 700 .75rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--boxwood); margin-bottom: 2.5rem; }
.center__name { font: 400 clamp(1.45rem, 1.2rem + .7vw, 1.9rem)/1.12 var(--serif); margin-bottom: .75rem; }
.center__year { color: var(--rosings); }
.center__body { font-size: 1.0625rem; color: var(--text); margin: 0; }
.centers--detail { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 5rem); row-gap: clamp(3rem, 6vw, 5rem); }
.centers--detail .center__name { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.75rem); }
.centers--detail .center__body { font-size: 1.1875rem; }

/* culture: photo beside the four centers */
.culture__grid { align-items: start; }
.culture__fig { grid-column: 1 / 5; margin: 0; position: sticky; top: 7rem; }
.culture__fig picture { overflow: hidden; border-radius: 999px 999px 0 0; }
.culture__fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.centers--beside { grid-column: 6 / 13; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: clamp(2rem, 4vw, 3rem); }

/* archive (dark, brand signature bar) */
.archive { position: relative; background: var(--ink-deep); color: var(--white); padding: clamp(5rem, 10vw, 8.5rem) 0 calc(clamp(4.5rem, 8vw, 7rem) + .75rem); overflow: hidden; }
.archive h2, .archive h3 { color: var(--white); }
.archive__head { grid-column: 1 / 13; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.archive__prog { font: italic 400 clamp(1.2rem, 1rem + .6vw, 1.6rem)/1.3 var(--serif); color: var(--white); margin-bottom: .75rem; }
.archive__title { font: 300 clamp(2.6rem, 1.2rem + 4.6vw, 6.25rem)/1 var(--serif); letter-spacing: -.025em; max-width: 14em; }
.archive__copy { grid-column: 1 / 8; }
.archive__copy p { color: var(--white); }
.archive__lede { font: 400 clamp(1.25rem, 1.1rem + .6vw, 1.65rem)/1.45 var(--serif); color: var(--white) !important; }
.archive__partners { font-size: 1rem; }
.archive__facts { grid-column: 9 / 13; align-self: start; border-top: 1px solid rgb(255 255 255 / .36); }
.archive__facts div { display: flex; flex-direction: column-reverse; gap: .3rem; padding: 1rem 0; border-bottom: 1px solid rgb(255 255 255 / .28); }
.archive__facts dt { font-size: .9375rem; color: var(--ink-soft); }
.archive__facts dd { font: 400 1.35rem/1.2 var(--serif); color: var(--white); }
.bar { position: absolute; inset-inline: 0; bottom: 0; height: .75rem; background: var(--rule); }

/* events */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--gap); margin-top: 1.75rem; border-top: 1px solid var(--rule); }
.facts div { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { font: 700 .75rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gray); margin-bottom: .35rem; }
.facts dd { font: 400 1.125rem/1.35 var(--serif); color: var(--ink); }
.onebook { margin-top: clamp(4rem, 9vw, 7rem); align-items: end; }
.onebook__copy { grid-column: 1 / 8; }
.onebook__stats { grid-column: 9 / 13; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.onebook__stats .stat { padding-inline-end: 1rem; }
.onebook__stats .stat + .stat { border-inline-start: 1px solid var(--rule); padding-inline-start: 1.25rem; }
.onebook__origin { grid-column: 1 / -1; padding-top: 1rem; font-size: .9375rem; color: var(--gray); }
.wide-fig { margin: 0 0 clamp(3rem, 6vw, 5rem); }
.wide-fig--arc picture { overflow: hidden; border-start-end-radius: 999px; }
.split__fig { margin: 2rem 0 0; max-width: 16rem; }
.split__fig picture { overflow: hidden; border-radius: 999px 999px 0 0; }
.split__fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.prog__fig { margin: 0 0 2rem; }
.prog__fig picture { overflow: hidden; border-start-end-radius: 999px; }
.prog__fig img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.wide-fig img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

/* why give: photo + numbered reasons */
.why__grid { align-items: center; }
.why__fig { grid-column: 1 / 7; margin: 0; }
.why__fig picture { overflow: hidden; border-start-end-radius: 999px; }
.why__fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.why__list { grid-column: 8 / 13; border-top: 1px solid var(--ink); }
.why__item { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: 1rem; padding: 1.6rem 0; border-bottom: 1px solid var(--rule-2); }
.why__n { font: italic 300 2rem/1 var(--serif); color: var(--rosings); }
.why__item .h3 { margin-bottom: .5rem; }
.why__item p { margin: 0; color: var(--text); }

/* membership panel: Rosings with white type (6.6:1), the one warm block on every page; its buttons turn white */
.member { background: var(--rosings); color: var(--white); padding-block: clamp(4rem, 9vw, 7.5rem); }
.member__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; }
.member__copy { grid-column: 1 / 9; }
.member__trust { margin: 1.5rem 0 0; font-size: 1rem; color: var(--white); }
.member .label { color: var(--white); }
.member__h { font: 300 clamp(2.8rem, 1.4rem + 4.6vw, 6rem)/.98 var(--serif); letter-spacing: -.03em; margin-bottom: 1.25rem; color: var(--white); }
.member__p { font: 400 clamp(1.3rem, 1.1rem + .7vw, 1.8rem)/1.35 var(--serif); margin: 0; color: var(--white); }
.member .btn--ink { --bg: var(--white); --fg: var(--night); --bd: var(--white); --fill: var(--mist); --hover-fg: var(--night); }
.member .btn--line { --fg: var(--white); --bd: var(--white); --fill: var(--white); --hover-fg: var(--rosings); }
.member :focus-visible { outline-color: var(--white); }
/* the QR's top corners clear the arch's curve: for a frame of width w with a round top, a square inset by 1.1rem keeps
   its corners from w/2 - sqrt((w/2)^2 - (w/2 - 1.1rem)^2) down, 3.95rem at the 16rem maximum and 3.23rem at 14rem
   (the 4.35 and 3.6rem below leave about 3px). Rounding the image instead cut the corners off its finder squares. */
.member__qr { grid-column: 10 / 13; justify-self: end; margin: 0; width: 100%; max-width: 16rem; padding: 4.35rem 1.1rem 1.1rem; background: var(--white); border-radius: 999px 999px 2px 2px; }
.member__qr figcaption { margin: .9rem 0 .2rem; text-align: center; font: 700 .75rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }

/* ---------- interior pages ---------- */
.phero { padding: clamp(2rem, 5vw, 4rem) 0 clamp(3.5rem, 8vw, 6.5rem); border-bottom: 1px solid var(--rule); background: var(--mist); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .9375rem; color: var(--gray); margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.crumbs li + li::before { content: "/"; margin-inline-end: .5rem; color: var(--rule-2); }
.crumbs a { color: var(--gray); }
.phero__label { margin-bottom: 1.25rem; }
.phero__title { font: 300 clamp(3.2rem, 1.4rem + 6.5vw, 8.25rem)/.95 var(--serif); letter-spacing: -.035em; max-width: 12em; }
.phero .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.phero .wrap > * { grid-column: 1 / -1; }
.phero .wrap > .phero__lede { grid-column: 4 / 12; }
.phero__lede { max-width: 34em; margin: clamp(1.75rem, 3vw, 2.5rem) 0 0; font: 400 clamp(1.3rem, 1.1rem + .75vw, 1.85rem)/1.4 var(--serif); color: var(--ink); }
.split__side { grid-column: 1 / 4; padding-top: .5rem; }
.split__main { grid-column: 4 / 12; }
.split__main .lead { margin-bottom: 1.5rem; }
.pillars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
.pillar { border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.pillar__n { display: block; font: italic 300 1.9rem/1 var(--serif); color: var(--rosings); margin-bottom: 2.5rem; }
.pillar__t { font: 400 1.45rem/1.15 var(--serif); margin-bottom: .7rem; }
.pillar p { font-size: 1rem; color: var(--gray); margin: 0; }
.leader { align-items: start; }
.leader__img { grid-column: 1 / 6; margin: 0; }
.leader__img picture { overflow: hidden; border-radius: 50% 50% 0 0 / 22% 22% 0 0; }
.leader__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.leader__copy { grid-column: 7 / 13; padding-top: 1rem; }
.leader__role { font: 700 .8125rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--boxwood); margin: .75rem 0 1.75rem; }
.sec--mauve .leader__role { color: #374E4A; }  /* Boxwood is 4.2:1 on mist; the guide's Boxwood dark is 6.9:1 */
.pull { margin: 2.5rem 0 0; padding: 1.75rem 0 0; border-top: 1px solid var(--rule-2); }
.pull p { font: italic 400 clamp(1.25rem, 1.1rem + .5vw, 1.55rem)/1.45 var(--serif); color: var(--ink); }
.pull footer { font-size: .9375rem; color: var(--gray); }
.pull footer b { color: var(--ink); }
.board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3rem) var(--gap); }
.person { display: flex; flex-direction: column; }
.person__img { margin-bottom: 1rem; overflow: hidden; border-radius: 50% 50% 0 0 / 24% 24% 0 0; background: var(--mauve); }
.person__img img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: contrast(1.02); transition: transform .8s var(--ease); }
.person:hover .person__img img { transform: scale(1.04); }
.person__img--empty { aspect-ratio: 1; }  /* no headshot yet: the empty frame keeps the name in line with its row */
.person__name { font: 400 1.25rem/1.2 var(--serif); margin-bottom: .3rem; }
.person__role { font: 700 .75rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--boxwood); margin-bottom: .2rem; }
.person__org { font-size: .9375rem; color: var(--gray); margin-bottom: .4rem; }
.person__li { font-size: .9375rem; margin-top: auto; }
.prog-layout { align-items: start; }
.prog-toc { grid-column: 1 / 4; position: sticky; top: 7rem; }
.prog-toc ol { border-top: 1px solid var(--rule); }
.prog-toc a { display: flex; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--rule); font-size: 1rem; line-height: 1.3; text-decoration: none; color: var(--gray); transition: color .2s, padding .4s var(--ease); }
.prog-toc a span { flex: none; width: 1.6rem; font-weight: 700; font-size: .8125rem; color: var(--pem); padding-top: .1rem; }
.prog-toc a:hover, .prog-toc a.is-active { color: var(--ink); padding-inline-start: .4rem; }
.prog-toc a.is-active span { color: var(--rosings); }
.prog-list { grid-column: 5 / 13; }
.prog { padding-bottom: clamp(3rem, 6vw, 5rem); margin-bottom: clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--rule); scroll-margin-top: 6.5rem; }
.prog:last-child { margin-bottom: 0; border-bottom: 0; }
.prog__n { font: italic 300 1.6rem/1 var(--serif); color: var(--rosings); margin-bottom: 1rem; }
.prog__t { font: 300 clamp(2.2rem, 1.4rem + 2.6vw, 3.75rem)/1.04 var(--serif); letter-spacing: -.02em; margin-bottom: 1.75rem; }
.prog__stat { display: flex; align-items: baseline; gap: 1rem; padding: 1.25rem 0; margin-bottom: 1.75rem; border-block: 1px solid var(--rule); }
.prog__stat b { font: 300 clamp(2.8rem, 2rem + 2.5vw, 4.5rem)/.9 var(--serif); color: var(--boxwood); letter-spacing: -.03em; }
.prog__stat span { color: var(--gray); font-size: 1rem; line-height: 1.35; max-width: 20em; min-width: 0; }
.facts--row { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.ways { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--gap); }
.way { display: flex; flex-direction: column; align-items: flex-start; border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.way p { color: var(--gray); font-size: 1.0625rem; }
.way__t { font: 400 clamp(1.6rem, 1.3rem + 1vw, 2.2rem)/1.1 var(--serif); margin-bottom: 1rem; }
.way .btn, .way .link { margin-top: auto; }
.way--primary .way__t { font-size: clamp(2.2rem, 1.5rem + 2vw, 3.25rem); }
.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 4rem) var(--gap); }
.contact__item { border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.contact__big { font: 400 clamp(1.35rem, 1.1rem + .9vw, 2rem)/1.35 var(--serif); color: var(--ink); overflow-wrap: anywhere; }
.linklist { display: grid; gap: .25rem; margin-top: 1rem; }

/* ---------- footer ---------- */
.ftr { position: relative; background: var(--ink-deep); color: var(--ink-soft); padding: clamp(4rem, 8vw, 6.5rem) 0 calc(2.5rem + .75rem); font-size: 1rem; }
.ftr a { color: var(--white); text-decoration: none; }
.ftr a:hover { color: var(--white); text-decoration: underline; }
.ftr .label { color: var(--white); }
.ftr__top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: end; padding-bottom: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid rgb(255 255 255 / .32); }
.ftr__logo img { width: clamp(7rem, 10vw, 8.5rem); height: auto; filter: brightness(0) invert(1); }
.ftr__tag { margin: 0; max-width: 30em; font: 300 clamp(1.4rem, 1.1rem + 1.1vw, 2.2rem)/1.3 var(--serif); color: var(--white); }
.ftr__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.ftr__col .label { padding-top: 1rem; border-top: 1px solid rgb(255 255 255 / .32); }
.ftr__col li { margin-bottom: .45rem; }
.ftr__col p { margin-bottom: .45rem; }
.ftr__col address { margin-bottom: .45rem; color: var(--white); }
.ftr__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / .32); font-size: .875rem; }
.ftr__legal p { margin: 0; }
.ftr__legal a, .ftr__col p a { text-decoration: underline; text-decoration-color: rgb(255 255 255 / .5); }
.ftr__bar { position: absolute; inset-inline: 0; bottom: 0; height: .75rem; background: var(--rule); }
/* focus rings on the Pemberley bands: the ink default would sit at 1.9:1 there */
.menu :focus-visible, .archive :focus-visible, .ftr :focus-visible { outline-color: var(--white); }

/* ---------- motion (enhancement only; content is visible without JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.rv-ready [data-rv] { opacity: 0; transform: translateY(2.5rem); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
  html.rv-ready [data-rv].is-in { opacity: 1; transform: none; }
  html.rv-ready .hero .ln > span { transform: translateY(105%); transition: transform 1.2s var(--ease); }
  html.rv-ready .hero .ln:nth-child(2) > span { transition-delay: .09s; }
  html.rv-ready .hero .ln:nth-child(3) > span { transition-delay: .18s; }
  html.rv-ready .hero .ln:nth-child(4) > span { transition-delay: .27s; }
  html.rv-ready .hero.is-in .ln > span { transform: none; }
  .hero__frame img { animation: settle 2.6s var(--ease) both; }
  @keyframes settle { from { transform: scale(1.12); } to { transform: scale(1); } }
  html.rv-ready .hero.is-settled .hero__frame img { animation: none; transform: scale(var(--hero-scale, 1)); }
  html.rv-ready .hero.is-in.is-settled .hero__frame img { transition: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; flex-wrap: wrap; width: auto; }
  .ticker__list[aria-hidden="true"] { display: none; }
  .ticker__list { flex-wrap: wrap; justify-content: center; gap: .5rem 1.25rem; padding-inline: 1rem; }
  .ticker__list li { padding-inline: 0; }
  .ticker__list li::after { content: none; }
  .ticker__ctl { display: none; }
  .catalog__fig { transition-delay: 0s; }
  *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
/* Keyboard focus on one of the language links: the band lays out as the static list above, so the focused link
   cannot slide out from under the focus ring. :focus-visible only, never :focus: a mouse press focuses a link
   too, and re-laying out the band between mousedown and click would move the click's target. */
.ticker__track:has(a:focus-visible) { animation: none; flex-wrap: wrap; width: auto; }
.ticker__track:has(a:focus-visible) .ticker__list { flex-wrap: wrap; justify-content: center; gap: .5rem 1.25rem; padding-inline: 1rem; }
.ticker__track:has(a:focus-visible) .ticker__list li { padding-inline: 0; }
.ticker__track:has(a:focus-visible) .ticker__list li::after { content: none; }
.ticker__track:has(a:focus-visible) .ticker__list[aria-hidden="true"] { display: none; }

/* ---------- responsive ---------- */
@media (min-width: 768px) { .nw { white-space: nowrap; } }
@media (max-width: 1199px) {
  .hero__title { grid-column: 1 / -1; font-size: clamp(2.35rem, .6rem + 8.2vw, 6.5rem); }
  .hero__fig { grid-column: 8 / 13; grid-row: auto; margin-top: clamp(2rem, 4vw, 3.25rem); }
  .board { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 3rem; }
  .ways { grid-template-columns: 1fr 1fr; row-gap: 3rem; }
  .centers { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; }
}
@media (max-width: 1023px) {
  :root { --hdr: 5.5rem; --logo: 4.6rem; }
  .hdr__nav { display: none; }
  .hdr__act { margin-inline-start: auto; }
  .hdr__menu { display: inline-flex; }
  html:not(.js) .hdr__menu { display: none; }
  html:not(.js) .hdr__in { flex-wrap: wrap; }
  html:not(.js) .hdr__nav { display: block; order: 3; width: 100%; margin: 0; overflow-x: auto; }
  html:not(.js) .hdr__nav ul { gap: 1.25rem; padding-bottom: .5rem; }
  .sec__head-side, .split__side { grid-column: 1 / -1; }
  .phero .wrap > .phero__lede { grid-column: 1 / -1; }
  .sec__head-main, .split__main { grid-column: 1 / -1; }
  .sec__head-main { display: block; }
  .sec__head-main > .lead:first-of-type { margin-top: 1.25rem; }
  .intro__side { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; }
  .intro__main { grid-column: 1 / -1; margin-top: 1.5rem; }
  .scale__fig { grid-column: 1 / -1; }
  .scale__copy { grid-column: 1 / -1; padding: 2rem 0 0; }
  .figures__hero, .figures__list { grid-column: 1 / -1; }
  .figures__list { margin-top: 2rem; }
  .catalog__figs { display: none; }
  .culture__fig { grid-column: 1 / 7; position: static; margin-bottom: 2.5rem; }
  .centers--beside { grid-column: 1 / -1; }
  .why__fig { grid-column: 1 / 8; margin-bottom: 2.5rem; }
  .why__list { grid-column: 1 / -1; }
  .member__qr { grid-column: 9 / 13; }
  .langs__head, .langs__body { grid-column: 1 / -1; }
  .langs__body { margin-top: 1.5rem; }
  .catalog__side { grid-column: 1 / -1; position: static; margin-bottom: 2.5rem; }
  .catalog { grid-column: 1 / -1; }
  .quote__img { grid-column: 1 / 6; grid-row: auto; }
  .quote__q { grid-column: 1 / -1; margin-top: 3rem; }
  .quote__by { grid-column: 1 / -1; }
  .archive__copy, .archive__facts { grid-column: 1 / -1; }
  .archive__facts { margin-top: 2.5rem; }
  .onebook__copy, .onebook__stats { grid-column: 1 / -1; }
  .onebook__stats { margin-top: 2.5rem; }
  .leader__img { grid-column: 1 / 8; }
  .split__fig { display: none; }
  .leader__copy { grid-column: 1 / -1; padding-top: 2.5rem; }
  .prog-toc { display: none; }
  .prog-list { grid-column: 1 / -1; }
  .ftr__cols { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  :root { --logo: 4.25rem; }
  body { font-size: 1.125rem; }
  .link { padding-block: .7rem; }
  .ftr__col li, .ftr__col p { margin-bottom: 0; }
  .ftr__col a { display: inline-block; padding-block: .55rem; }
  .quote__q p { font-size: 1.85rem; }
  .hero__copy, .hero__fig { grid-column: 1 / -1; }
  .hero__frame { aspect-ratio: 4 / 4.2; }
  .ln--in { padding-inline-start: .6em; }
  .trio { grid-template-columns: 1fr; row-gap: 2.5rem; }
  .trio__n { margin-bottom: 1.5rem; }
  .cat__sum { grid-template-columns: 2rem minmax(0, 1fr) 2rem; row-gap: .5rem; padding-block: 1.15rem; }
  figcaption, .hero__trust, .note, .cat__s small { font-size: 1rem; }
  .cat__s { grid-column: 2 / 3; grid-row: 2; flex-direction: row; align-items: baseline; gap: .5rem; text-align: start; }
  .cat__i { grid-column: 3; grid-row: 1; }
  .cat__body { padding-inline-start: 3rem; }
  .quote__img { grid-column: 1 / 9; }
  .centers, .centers--detail { grid-template-columns: 1fr; }
  .center__home { margin-bottom: 1.25rem; }
  .facts { grid-template-columns: 1fr; }
  .member__copy, .member__qr { grid-column: 1 / -1; }
  .member__qr { justify-self: start; margin-top: 2.5rem; max-width: 14rem; padding-top: 3.6rem; }
  .culture__fig, .why__fig { grid-column: 1 / -1; }
  .interlude__fig img { aspect-ratio: 16 / 9; }
  .why__item { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .pillars { grid-template-columns: 1fr; row-gap: 2.25rem; }
  .pillar__n { margin-bottom: 1rem; }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leader__img { grid-column: 1 / -1; }
  .ways { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .ftr__top { grid-template-columns: 1fr; }
  .ftr__cols { grid-template-columns: 1fr; }
  .wide-fig img { aspect-ratio: 4 / 3; }
}
@media (min-width: 1921px) {
  :root { --max: 1480px; }
}

/* accessibility */
.quote__by { margin-bottom: 0; }
/* the skip link moves focus to <main> (tabindex=-1); a container needs no focus ring of its own */
#main:focus { outline: none; }
@media (forced-colors: active) { .ticker__ctl-ic { forced-color-adjust: none; } }

/* ---------- language change: the fade (see the head script in tpl/shared/_meta.html, the language fade block
   in js/a.js and the README). One path in every browser: a.js fades the page out and navigates; the arriving
   page holds itself transparent from a class the head script sets before the body is parsed, goes back to the
   reader's place, then fades in, and the head script's timeouts guarantee it is never left invisible.
   Chromium's cross-document view transition is not used: scrolling the arriving page back to the reader's
   place cancelled it in 8 of 10 runs. Only opacity changes, and only while a language change is under way:
   nothing here applies at rest. */
@keyframes laclf-lang-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes laclf-lang-out { from { opacity: 1; } to { opacity: 0; } }
html.langfade > body { opacity: 0; }
html.langfade-in > body { animation: laclf-lang-in .35s var(--ease-io) both; }
html.langfade-out > body { animation: laclf-lang-out .2s var(--ease-io) both; }
