/* ============================================================================
   Delta Epsilon Sigma — public stylesheet

   Palette taken from the official vector logo (assets/img/brand/des-logo.svg),
   not sampled from a raster: burgundy #841b32 / #830b2c, gold #deb408.

   Contrast, measured rather than assumed:
     #841b32 on paper .............. 9.30:1  AAA  -> headings, links, accents
     white on #830b2c ............. 10.25:1  AAA  -> hero and footer text
     #deb408 on #830b2c ............ 5.19:1  AA   -> gold text on dark
     #deb408 on white .............. 1.97:1  FAIL -> decorative ONLY on light
   The official deep burgundy already clears AA for gold text, so no invented
   shade is needed — these are the Society's own two colors.
   ========================================================================== */

:root{
  /* brand — the logo's own values */
  --burgundy:#841b32;        /* text and headings on light */
  --burgundy-deep:#830b2c;   /* filled areas: hero, footer, buttons */
  --burgundy-darker:#65071f; /* hover */
  --burgundy-tint:#f9f0f2;
  --gold:#deb408;
  --gold-btn:#f1d17d;      /* the button fill only — see .btn below */
  --stone-btn:#cfc6b5;     /* its hover: a deeper stone, see .btn:hover below */
  --gold-light:#eccd5c;
  --gold-pale:#f3e2a8;     /* the eyebrow chip's ink over a photograph */
  --gold-ink:#806400;      /* the only gold safe as text on light (5.43:1) */

  /* neutrals */
  --ink:#2b2118;           /* 15.24:1 on --paper, 15.75:1 on white */
  --muted:#5a5f6b;         /* 6.19:1 on --paper, 6.39:1 on white */
  --rule:#e4ded6;
  --paper:#fdfbf7;         /* warm off-white */
  --panel:#fff;

  --font-display:"Source Sans 3",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --font-ui:"Source Sans 3",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;

  /* Every page banner stands this tall at a minimum, whichever component
     draws it: .sec-hero for an ordinary page, .chapter-hero for the chapter
     pages and the Chapters header. Named once because they drifted — a hero
     with no heading in it collapsed to its padding and came out 195px against
     the chapter banner's 320, and the two pages looked unrelated. A floor,
     not a height: a long headline on a narrow screen still makes its own
     room. */
  --banner-h:clamp(180px,26vw,320px);
  --measure:38rem;         /* sans sets narrower per character than the serif did */
  --wrap:68rem;
  --step:clamp(1rem,0.94rem + 0.28vw,1.08rem);
  --head-h:5.9rem;         /* measured sticky header height, for anchor offsets */
}

*{box-sizing:border-box}
/* scrollbar-gutter keeps the page width identical on short and long pages, so
   the right-aligned nav does not shift sideways between them. */
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scrollbar-gutter:stable}
/* Deep links (and the section anchors) must not land under the sticky header. */
/* #chgrid is here because the chapter pager scrolls to it: the header is
   sticky, so without this the first row of the new page lands underneath it
   and the reader's eye starts on a row that is half covered. */
:target,.sec[id],#chgrid{scroll-margin-top:var(--head-h,7rem)}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{
  margin:0;background:var(--paper);color:var(--ink);
  font:var(--step)/1.65 var(--font-display);
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto}

.wrap{max-width:var(--wrap);margin-inline:auto;padding-inline:clamp(1.25rem,4vw,2.5rem)}
.muted{color:var(--muted);font-size:.85rem}

h1,h2,h3,h4{font-family:var(--font-display);font-weight:700;line-height:1.18;
  letter-spacing:-.018em;margin:0 0 .5em;color:var(--burgundy)}
h1{font-size:clamp(1.85rem,1.4rem + 2vw,2.7rem)}
h2{font-size:clamp(1.4rem,1.2rem + .85vw,1.8rem)}
h3{font-size:1.2rem}
p{margin:0 0 1.1em}
a{color:var(--burgundy);text-underline-offset:.16em;text-decoration-thickness:.06em}
a:hover{color:var(--burgundy-darker)}

.skip{position:absolute;left:-9999px}
.skip:focus{left:1rem;top:1rem;z-index:30;background:#fff;padding:.6rem 1rem;
  border:2px solid var(--burgundy);border-radius:3px}
:focus-visible{outline:2px solid var(--burgundy);outline-offset:2px}

/* ----------------------------------------------------------- review note -- */
/* Only ever rendered on a preview deployment (inc/review.php). Static, above
   the sticky header rather than sticky itself, so the two cannot disagree
   about the top offset. Gold-pale carries --ink at 12.19:1, so the notice
   reads as information rather than as an error. */
.review-note{background:var(--gold-pale);color:var(--ink);border-bottom:1px solid var(--gold);
  padding:.5rem 1rem;text-align:center;font-size:.9rem;line-height:1.4}
.review-note b{font-weight:600}
/* The same strip, in the colour that means "pay attention to this one". Both
   can be on a page at once — a hidden chapter on the review deployment — and
   they have to be told apart at a glance, or the one that is about this page
   reads as the one that is about the whole site. */
.review-note-hidden{background:#fdecec;border-bottom-color:#e4a6a6}

/* ------------------------------------------------- text with pictures -- */
/* A text block may carry a column of pictures beside it. Below 60rem there is
   no room for two columns of anything readable, so they stack — text first,
   pictures after, which is the source order and therefore also the order a
   screen reader and a keyboard meet them in. */
.content-grid{display:grid;gap:2.5rem;align-items:start}
@media (min-width:60rem){
  /* 1.4fr to 1fr: the words are what the page is for, and the pictures want
     to be big enough to be worth clicking without competing for the eye. */
  .content-grid{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}
  .content-grid.pics-left{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr)}
  /* "Wide" on a block that has pictures. The max-width `.prose.prose-wide`
     sets cannot reach it — at the page's 68rem the text track is 565px and
     the default cap is already 608px, so raising the cap to 46rem changes
     nothing at all. The ratio is the only lever, and what it buys the words
     it takes from the pictures: 565px to 645px, 403px to 323px. The block
     itself stays 68rem, so its edges still line up with the hero banner. */
  .content-grid.prose-wide{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
  .content-grid.prose-wide.pics-left{grid-template-columns:minmax(0,1fr) minmax(0,2fr)}
  /* The wider track is only worth having if the words may fill it: the 38rem
     cap on `.sec .prose` binds at 608px and would clip the 645px track back
     to very nearly where it started. 46rem matches what Wide means in one
     column, and sits above the track, so the track is what governs — which
     is the point. Inside the media query because below 60rem the block is a
     single stacked column and the reading measure should hold there. */
  .content-grid.prose-wide .prose{max-width:46rem}
  /* Order, not a second source order: the markup stays text-then-pictures so
     the reading order is right however the columns are arranged. */
  .content-grid.pics-left .prose{order:2}
  .content-grid.pics-left .content-pics{order:1}
}
.content-pics{display:grid;gap:1.25rem;align-content:start}
/* On a long page the pictures would otherwise sit in a clump at the top with
   the rest of the column empty beneath them — four pictures against four and
   a half thousand pixels of articles, on the Constitution. Stretched to the
   row and distributed, they fall roughly a screen apart, which reads as a
   rhythm rather than as a column that ran out.
   
   Three or more only. With two, space-between means one at the very top and
   one at the very bottom with nothing between, which looks like a fault
   rather than a layout; they are better left together at the top. :has()
   counts them, since CSS has no other way to ask. */
@media (min-width:60rem){
  .content-pics:has(.content-pic:nth-child(3)){align-self:stretch;align-content:space-between}
}
.content-pic{margin:0}
.content-pic img{display:block;width:100%;height:auto;border-radius:3px}
/* One shape for the column, cropped around each picture's own focal point.
   The ratio here overrides the one the width/height attributes imply, so the
   space is still reserved before the picture loads — by the shape it will be
   shown in, which is the more useful of the two. The lightbox is unaffected:
   it opens the file, not this box. */
.content-pics[class*="shape-"] .content-pic img{height:auto;object-fit:cover}
.content-pics.shape-tall   .content-pic img{aspect-ratio:2/3}
.content-pics.shape-square .content-pic img{aspect-ratio:1/1}
.content-pics.shape-wide   .content-pic img{aspect-ratio:3/2}
.content-pic figcaption{margin-top:.45rem;font-size:.85rem;line-height:1.45;color:var(--muted)}

/* The button lightbox.js wraps each picture in. Unstyled as a button: it is
   the picture that is the control, so it must not look like anything else. */
.pic-open{display:block;width:100%;padding:0;border:0;background:none;cursor:zoom-in;
  border-radius:3px}
.pic-open:focus-visible{outline:2px solid var(--burgundy);outline-offset:3px}

/* ------------------------------------------------------------ lightbox -- */
/* A native <dialog>. showModal() gives the focus trap, the inert background
   and Escape-to-close from the browser, which is both less code and more
   correct than any of the three done by hand. */
.lightbox{border:0;padding:0;background:transparent;max-width:min(96vw,1100px);
  max-height:96vh;overflow:visible;color:#f6f2ec}
.lightbox::backdrop{background:rgba(20,14,10,.9)}
.lightbox-frame{display:grid;gap:.8rem;justify-items:center}
.lightbox img{display:block;max-width:100%;max-height:78vh;width:auto;height:auto;
  border-radius:3px;background:#2b2118}
.lightbox-cap{margin:0;text-align:center;font-size:.95rem;line-height:1.5;max-width:46rem}
.lightbox-count{margin:0;font-size:.8rem;letter-spacing:.06em;text-transform:uppercase;
  color:#c9bfb2}
.lightbox-bar{display:flex;gap:.5rem;align-items:center;justify-content:center}
.lightbox-btn{display:inline-flex;align-items:center;justify-content:center;
  width:2.6rem;height:2.6rem;border-radius:50%;border:1px solid rgba(246,242,236,.35);
  background:rgba(246,242,236,.08);color:#f6f2ec;cursor:pointer;font:inherit;line-height:1}
.lightbox-btn:hover{background:rgba(246,242,236,.18)}
.lightbox-btn:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.lightbox-close{position:absolute;top:-.5rem;right:-.5rem}
@media (max-width:40rem){
  .lightbox-close{position:static}
}
/* One picture: the arrows would be two dead controls. */
.lightbox.single .lightbox-prev,
.lightbox.single .lightbox-next,
.lightbox.single .lightbox-count{display:none}

/* ---------------------------------------------------------------- header -- */
/* Sticky: the header stays put while the page scrolls under it. Needs an opaque
   background and a stacking context above the content. */
.site-head{position:sticky;top:0;z-index:20;background:var(--panel);
  border-bottom:1px solid var(--rule);box-shadow:0 1px 0 rgba(152,1,46,.05)}

/* nowrap keeps the header one row whatever font is currently rendering. With
   wrap enabled the nav dropped to a second line under the fallback font and
   snapped back when the webfont loaded — a 116px jump on every page load. */
.head-inner{display:flex;align-items:center;justify-content:space-between;
  gap:2rem;padding-block:.9rem;flex-wrap:nowrap}
.brand{min-width:0}
.brand-mark{flex:0 0 auto}
.site-nav{flex:0 0 auto}
.brand{display:flex;align-items:center;gap:1rem;text-decoration:none;color:var(--ink)}
/* Seal as the mark, name set as text — see header.php for why. */
.brand-mark{height:64px;width:64px;flex:0 0 auto}
.wordmark{display:block;min-width:0}
.wordmark b{display:block;font-weight:700;font-size:1.3rem;line-height:1.15;
  color:var(--burgundy);letter-spacing:-.015em;white-space:nowrap}
.wordmark span{display:block;font-family:var(--font-ui);font-size:.68rem;
  letter-spacing:.15em;text-transform:uppercase;color:var(--muted);
  margin-top:.3rem;white-space:nowrap}

.site-nav{display:flex;gap:1.55rem;flex-wrap:nowrap;font-size:.92rem;font-weight:500}
.navitem{position:relative;display:flex;align-items:center}
.site-nav a{text-decoration:none;color:var(--ink);padding-block:.25rem;
  border-bottom:2px solid transparent}
.site-nav a:hover,.site-nav a[aria-current]{border-bottom-color:var(--gold);color:var(--burgundy)}

/* A top-level item with no destination. It is a <button> so it can be focused
   and so :focus-within still opens its dropdown; everything below is undoing
   what a browser does to buttons, so it sits in the row as its neighbours do.
   .is-dead is the same item with nothing under it either — nothing to open and
   nowhere to go — so it is a <span> and does not invite a click. */
.site-nav .navhead{font:inherit;font-weight:500;color:var(--ink);background:none;
  border:0;border-bottom:2px solid transparent;padding:0;padding-block:.25rem;
  display:inline-flex;align-items:center;cursor:pointer}
.site-nav .navhead:hover{border-bottom-color:var(--gold);color:var(--burgundy)}
.site-nav .navhead.is-dead{cursor:default;color:var(--muted)}
.site-nav .navhead.is-dead:hover{border-bottom-color:transparent;color:var(--muted)}

/* ---- dropdowns -----------------------------------------------------------
   Absolutely positioned so opening one cannot change the header's height —
   the nav is one nowrap row and must stay that way (see .head-inner above).
   Shown on :hover for pointers and :focus-within for keyboards, which needs
   no script; .is-open is the touch path, set by assets/js/nav.js. */
.caret{display:inline-block;width:0;height:0;margin-left:.35rem;vertical-align:middle;
  border-left:4px solid transparent;border-right:4px solid transparent;
  border-top:5px solid currentColor;opacity:.65;transition:transform .12s ease}
.navitem:hover .caret,.navitem.is-open .caret{transform:rotate(180deg)}

.subnav{position:absolute;top:100%;left:-.6rem;z-index:30;min-width:12.5rem;
  margin:0;padding:.3rem 0;list-style:none;background:var(--panel);
  border:1px solid var(--rule);border-radius:4px;box-shadow:0 10px 26px rgba(43,33,24,.13);
  opacity:0;visibility:hidden;transform:translateY(-5px);
  transition:opacity .13s ease,transform .13s ease,visibility .13s}
/* There was a bridge here — an invisible strip above the panel, so a pointer
   travelling down from the parent could not fall through a gap and close the
   menu under itself. It is gone, because the gap is zero: `.subnav` sits at
   `top:100%` of a `.navitem` that is a flex row filling the header, so the
   panel already starts exactly where the item ends. It was insurance against
   a layout that no longer exists.

   What it did instead was steal the neighbours. The strip was a pseudo-element
   of the PANEL, so it took the panel's width — 246px against a 51px "About" —
   and 12px of it lay across the bottom of Chapters and News. Dragging the
   pointer along the menu at that height kept re-entering About, and every
   item with a dropdown flickered as the menus opened and shut underneath. All
   three dropdowns did it to their neighbours.

   Re-adding it as a pseudo-element of the item would be worse now, not
   better: with no gap it would lie across the top of the panel's own first
   link. If a gap is ever reintroduced, tests/nav-runtime.php fails on the
   walk from the item down into the panel — which is the condition that would
   make a bridge worth having again. */
.navitem:hover > .subnav,
.navitem:focus-within > .subnav,
.navitem.is-open > .subnav{opacity:1;visibility:visible;transform:none}

.subnav a{display:block;padding:.5rem .95rem;border-bottom:0;white-space:nowrap;
  font-weight:500}
.subnav a:hover,.subnav a[aria-current]{background:var(--burgundy-tint);
  color:var(--burgundy);border-bottom:0}

/* ---- the narrow-screen drawer -------------------------------------------
   Hidden above 640px, where the row does the job. Both the drawer and each
   group inside it are <details>, so the whole menu opens, closes and remembers
   nothing with no script running; assets/js/nav.js only tidies up after it.

   The panel is absolutely positioned against .site-head — which is sticky, and
   so is already a containing block — rather than sitting in the flow, so
   opening the menu does not shove the page down under it. */
.navburger,.navdrawer{display:none}

.navburger{border:1px solid var(--rule);background:var(--panel);border-radius:6px;
  padding:.5rem .55rem;line-height:0;color:var(--ink);cursor:pointer;
  list-style:none}                      /* no disclosure triangle beside the icon */
.navburger::-webkit-details-marker{display:none}
.navdrawer[open] > .navburger{background:var(--burgundy-tint);border-color:var(--burgundy);
  color:var(--burgundy)}

.drawerpanel{position:absolute;left:0;right:0;top:100%;z-index:40;
  max-height:calc(100vh - 100%);overflow-y:auto;background:var(--panel);
  border-top:1px solid var(--rule);box-shadow:0 14px 30px rgba(43,33,24,.16);
  padding:.4rem 0 1.1rem}

.dnav > a,.dgroup > summary{display:flex;align-items:center;justify-content:space-between;
  gap:.75rem;padding:.85rem .1rem;border-bottom:1px solid var(--rule);
  text-decoration:none;color:var(--ink);font-weight:600;font-size:1rem}
.dgroup > summary{color:var(--burgundy);cursor:pointer;list-style:none}
.dgroup > summary::-webkit-details-marker{display:none}
.dnav > a[aria-current]{color:var(--burgundy)}

.dchev{flex:0 0 auto;width:0;height:0;border-left:5px solid transparent;
  border-right:5px solid transparent;border-top:6px solid currentColor;
  opacity:.6;transition:transform .14s ease}
.dgroup[open] > summary .dchev{transform:rotate(180deg)}

.dkids{padding:.15rem 0 .45rem .9rem;border-bottom:1px solid var(--rule);
  background:linear-gradient(to right,var(--burgundy-tint),transparent 65%)}
.dkids a{display:block;padding:.62rem .1rem;text-decoration:none;color:var(--ink);
  font-size:.95rem;border-bottom:1px dotted var(--rule)}
.dkids a:last-child{border-bottom:0}
.dkids a[aria-current]{color:var(--burgundy);font-weight:600}

.dsearch{display:flex;gap:.5rem;margin-top:1.1rem}
.dsearch input{flex:1;min-width:0;padding:.55rem .7rem;font:inherit;
  border:1px solid var(--rule);border-radius:5px;background:var(--bg)}

/* --------------------------------------------------------------- sections -- */
.sec{padding-block:clamp(2.5rem,5vw,4rem)}
.sec + .sec{border-top:1px solid var(--rule)}

/* How a block sits on the page, chosen per block — see layout_fields() in
   inc/schemas.php. Both are absent on everything saved before they existed,
   and absent means the two rules above: a line, and 64px a side.

   The line is right until two blocks belong together, which an address and
   the form that goes with it do, or until a background colour has already
   made the division obvious and the line is only a line. The spacing is the
   other half of the same complaint: 64px below one block and 64px above the
   next is 128px of nothing between an address and its form.

   Same specificity as `.sec + .sec`, so these must stay after it. */
.sec.rule-none{border-top:0}
.sec.space-tight{padding-block:clamp(1.1rem,2.2vw,1.8rem)}
.sec.space-none{padding-block:0}
/* Tight or none above means the line has nothing to sit in. */
.sec.space-none + .sec,.sec + .sec.space-none{border-top:0}
.sec .prose{max-width:var(--measure)}
.prose h2{margin-top:1.8em}
.prose h2:first-child{margin-top:0}
.prose ul,.prose ol{padding-left:1.3em}
.prose li{margin-bottom:.4em}
.prose blockquote{margin:1.5em 0;padding-left:1.2em;border-left:3px solid var(--gold);
  font-style:italic;color:var(--muted)}
.prose table{width:100%;border-collapse:collapse;margin:1.4em 0;font-size:.94em}
.prose th,.prose td{text-align:left;padding:.55em .7em;border-bottom:1px solid var(--rule)}

/* hero: burgundy ground where there is no photo, gold hairline */
.sec-hero{position:relative;background:var(--burgundy-deep);color:#fff;
  background-size:cover;background-position:center;
  border-bottom:3px solid var(--gold);min-height:var(--banner-h);
  /* Type on the floor of the frame, at the same inset as .chapter-hero, so
     the two banners read as one design. The padding is that banner's own
     (clamp(1.5rem,4vw,2.5rem) on .chapter-hero-text), not the 3.5–6rem this
     rule used to carry: with a minimum height doing the work, the old padding
     only pushed the type into the middle of the frame. */
  padding-block:clamp(1.5rem,4vw,2.5rem);
  display:grid;align-content:end}
/* The row must span the frame. A grid item with margin-inline:auto — which
   .wrap has — absorbs the free space instead of stretching, and the column
   then shrink-wraps to the words and centres them. That is what happened when
   this was first written as a flex column: the type moved 420px to the right
   of where the Chapters banner puts it. */
.sec-hero > .wrap{width:100%}
/* With a photo the ground must not show through or flash before it loads —
   a burgundy wash fights the photograph, which is the same mistake the chapter
   hero had. Neutral, and only where words sit on top of it. */
.sec-hero.has-image{background-color:#17100d}
/* A pocket behind the words — this time sized to the words.

   Two earlier scrims failed because they were measured against the window
   while the type is set in a centred 68rem column: at 1456 the words ran
   x=217–446 and the shading still reached x=783. Anchored to the copy box
   instead, it is the right size by construction at every width, and the rest
   of the photograph is left alone. It is the same device as
   .chapter-hero-copy, which learned this first.

   It is also far lighter than either of them — a peak of .30 against .70 —
   because it is no longer carrying legibility. The glow on the glyphs does
   that, and measures 5.6:1 at worst without any of this. What is left for the
   pocket is the job it is actually good at: settling the type into the picture
   as one group, so three lines of white text do not look pasted on.

   A floor under the width, so the pocket is the same size on every hero. Sized
   to the copy alone, "Membership" would get a 229px pocket and the home page's
   headline a 362px one — the same treatment at two different sizes, which
   reads as a fault rather than a fit. The box still grows for copy wider than
   the floor.

   The box has to CONTAIN the ellipse rather than equal it, since a gradient is
   clipped to its own box and a tight box turns the soft edge into a hard
   rectangle. scale() does the enlarging because it is proportional by
   construction: a fixed inset is 2x the copy on a desktop hero and 1.2x on a
   phone, where the ellipse then stops short of the ends of the longest line. */
.sec-hero.has-image.has-text .hero-copy,
.sec-slideshow .has-text .hero-copy{position:relative;display:inline-block;
  max-width:100%;min-width:min(20rem,100%)}
.sec-hero.has-image.has-text .hero-copy > *,
.sec-slideshow .has-text .hero-copy > *{position:relative;z-index:1}
/* Shrink-to-fit establishes its own formatting context, so the last line's
   margin stays inside the box and the pocket would sit 1.6em lower than the
   type it is meant to be behind. */
.sec-hero.has-image.has-text .hero-copy > :last-child,
.sec-slideshow .has-text .hero-copy > :last-child{margin-bottom:0}
.sec-hero.has-image.has-text .hero-copy::before,
.sec-slideshow .has-text .hero-copy::before{content:"";position:absolute;z-index:0;
  inset:0;transform:scale(1.5,1.9);
  background:radial-gradient(closest-side at 50% 50%,
    rgba(12,8,6,.30)  0%,
    rgba(12,8,6,.26) 40%,
    rgba(12,8,6,.16) 66%,
    rgba(12,8,6,.06) 85%,
    rgba(12,8,6,0)  100%)}
@media (max-width:68rem){
  .sec-hero.has-image.has-text .hero-copy::before,
  .sec-slideshow .has-text .hero-copy::before{transform:scale(1.15,1.7)}
}
/* The pocket is wider than the column it sits in, and a transform can push a
   scrollbar onto the page. A banner has nothing that needs to escape it. */
.sec-hero,
.sec-slideshow{overflow:hidden}
/* The words carry their own shade; the photograph is left alone.

   Every earlier attempt screened a region of the picture — first a radial
   pocket, then a raking veil — and all of them shared one flaw. The shading
   was sized against the window while the words are set in a centred 68rem
   column, so the two drifted apart as the window widened: measured at 1456 the
   words ran x=217–446 while the veil still reached x=783, and at 1920 half the
   frame was darkened to carry a line of type 362px long. There is no ::after
   now, and no narrow-screen variant, because there is nothing left to re-aim.

   What holds the type instead is what holds it in Photoshop: a dark copy of
   the letters painted behind them. It follows the type wherever the type goes,
   at any width, over any photograph, and it costs the picture only the space
   immediately around each word.

   Three jobs, five shadows:

   - the first two draw a tight dark edge on every side of every stroke, which
     is what actually makes white type readable over a pale photograph — the
     eye reads the outline, not the field behind it;
   - the next two are a short soft halo that darkens the picture within about
     half an em, so the measured contrast under the glyphs clears 4.5:1 without
     a cloud wide enough to see as a smudge;
   - the last is the lift: a small offset down and to the right that separates
     the letter from what is behind it.

   The radii are em, and the rule names the three elements rather than their
   wrapper, because em in text-shadow resolves where it is declared and then
   inherits as fixed pixels — set on .wrap, all three got a halo sized for the
   wrapper's 17px text and the 43px headline came out bald. */
.sec-hero.has-image.has-text h1,
.sec-hero.has-image.has-text h2,
.sec-hero.has-image.has-text .standfirst,
.sec-slideshow .has-text h2,
.sec-slideshow .has-text .standfirst{
  text-shadow:
    0 0 .05em rgba(0,0,0,.72),
    0 0 .13em rgba(0,0,0,.62),
    0 0 .32em rgba(0,0,0,.52),
    0 0 .70em rgba(0,0,0,.38),
    .03em .055em .07em rgba(0,0,0,.78)}
/* The eyebrow is the smallest and most exposed text in the hero — 11.5px of
   letter-spaced caps, too light to hold an outline the way a 43px headline
   does. It gets a chip of its own instead: a solid ground is not a compromise
   at this size, it is the only honest way to make three small words legible on
   an unknown photograph, and it reads as a label rather than as damage. */
.sec-hero.has-image .hero-eyebrow,
.sec-slideshow .hero-eyebrow{display:inline-block;
  background:rgba(16,11,8,.62);padding:.45em .85em;border-radius:3px;
  text-shadow:0 1px 2px rgba(0,0,0,.6)}
/* The glow is declared on the three text elements, not on their wrapper, so a
   button no longer inherits one. This stays as a guard: it costs nothing and
   it keeps a solid control clean if a shadow is ever put back on .wrap. */
.sec-hero .btn,
.sec-slideshow .btn{text-shadow:none}

/* Which button suits a hero depends on what is behind it, not on the fact that
   it is a hero. Gold is the accent that lifts a dark panel or photograph; on a
   pale hero the same gold sits at 1.33:1 against --burgundy-tint — under the 3:1 that
   a control's edge needs — and looks muddy with it. So the button follows the
   same measurement that chose the ink: light ink means a dark ground, where
   gold belongs; dark ink means a pale ground, where burgundy does. */
/* These set the house fill for their context, but they must still yield to an
   authored one — they outrank .btn on specificity, so reading the property here
   too is what keeps an editor's colour working outside a photograph. */
.sec-hero.ink-dark .btn{background:var(--btn-fill,var(--burgundy-deep));color:var(--btn-ink,#fff)}
.sec-hero.ink-dark .btn:hover{background:var(--btn-hover,var(--burgundy-darker));color:var(--btn-ink,#fff)}
/* A hero button over a photograph gets the same two-band edge the slideshow's
   buttons have, and for the same reason: no single colour clears 3:1 on every
   photograph, and the gold this replaced read 1.000:1 against rgb(176,187,183),
   a region of a picture already on disk. The fill is now --gold-btn, which
   reads 1.331:1 on that same region — better, and still nowhere near 3:1, which
   is the point: no single colour can be. Ring #100b08 against --gold-btn is
   13.19, so the pair's floor is 3.632:1 on any backdrop at all. The reasoning
   and the bound are at `.sec-slideshow .btn` below and are not restated here.

   It must be qualified by .has-image, and that is not decoration.
   render_section_hero() sets ink-dark only when there is no photograph
   (inc/render_fields.php: `$rgb = $img === '' ? hex_to_rgb($color) : null`),
   so .has-image and .ink-dark cannot both be present. A button over a
   photograph is therefore always the base gold and wants a dark ring; a button
   on a flat colour is --burgundy-deep, sits on a known background whose ink the
   renderer measured, and needs no ring. A bare `.sec-hero .btn` would ring that
   burgundy button too, where the dark ring gives 1.91 between the bands — worse
   than the single colour it replaced. */
.sec-hero.has-image .btn{box-shadow:0 0 0 1px var(--btn-ring,#100b08)}
.sec-hero > *{position:relative;z-index:1}
/* The same type as .chapter-eyebrow, copied line for line, so a banner reads
   the same whichever page it is on. These had drifted: .72rem at regular
   weight here against .95rem bold on the Chapters banners, which is a visible
   difference in size and colour weight on two banners a visitor sees in the
   same session. The h1 carries its own top margin reset because the eyebrow
   now supplies the space above it. */
.sec-hero .hero-eyebrow,
.sec-slideshow .hero-eyebrow{font-family:var(--font-ui);font-size:.95rem;
  font-weight:700;letter-spacing:.12em;line-height:1.2;
  text-transform:uppercase;color:var(--gold-pale);margin:0 0 .3em}
/* Measured glyph to glyph rather than box to box, since leading hides inside
   both — and most of this gap was never the margin. At .34em the foot of the
   headline sat 27.8px above the top of the standfirst, of which only 14.7px
   was margin; the rest was half-leading, inside the standfirst's own line box
   where no margin can reach it. So both halves come down: .1em here and 1.45
   on the line below, for 15.4px glyph to glyph. That is tight enough to read
   as one unit and still clears the headline's descenders — 'Membership' has a
   p hanging into the gap. */
.sec-hero h1,
.sec-band h2,
.sec-slideshow h2{color:#fff;max-width:16ch;margin-top:0;margin-bottom:.1em}
/* An h2 for the outline, an h1 to the eye: the slide's headline is the largest
   type on the page and is sized as the banner headline everywhere else is. A
   photo band's headline is the same bargain — the page's one h1 belongs to the
   banner at the top, and this is the identical clamp the global h1 carries. */
.sec-band h2,
.sec-slideshow h2{font-size:clamp(1.85rem,1.4rem + 2vw,2.7rem)}
/* 36ch was set when a scrim had to cover this line: at 52ch the home page's
   standfirst ran out past the shading and measured 1.9:1. The glow travels
   with the words, so the measure is no longer load-bearing for contrast — it
   stays because 36ch is where a standfirst reads well, which is the reason it
   should have had in the first place. */
/* 600 rather than the body's 400, and it is legibility rather than taste: a
   heavier stroke puts more of each letter in its solid interior, where the
   shadow stack is doing its work, instead of in the antialiased edge where it
   is not. The weight is already loaded (400, 600, 700), so it costs no font
   request and nothing is synthesised.

   This rule covers BOTH banners — the comment used to sit between the two
   selectors below, which made it read as if it applied only to the second,
   and it claimed the page heroes were still at 400 when they had never been.
   Measured on each, glyph by glyph, 400 against 600:

                          >=95%        >=50%        >=25%
     slide      1456   12.12/13.88   7.14/8.66    5.00/5.78
     /journal   1456   14.44/14.12   9.66/11.45   7.45/8.59
     /journal    390   13.75/14.12   9.02/9.87    7.69/9.26
     /membership 1456  12.24/14.15   7.85/9.76    6.24/7.39
     /membership  390  13.27/14.85   7.96/8.75    7.15/8.23

   Seventeen of the eighteen readings improve. The one that does not —
   /journal at >=95% — is the threshold moving rather than the type getting
   worse: a heavier stroke carries twice as many pixels across the cut (259 to
   533), and the minimum over a larger sample can sit lower. The chapter
   banner's .chapter-inst is the same decision, measured where it is declared. */
.sec-hero .standfirst,
.sec-slideshow .standfirst{font-size:clamp(1.05rem,.95rem + .5vw,1.3rem);line-height:1.45;max-width:36ch;
  font-weight:600;color:rgba(255,255,255,.93);margin-bottom:1.6em}

/* A lighter gold than the brand's, and only here. The button is the one place
   --gold carries type and an edge rather than drawing a rule, and both want a
   brighter fill: the label reads 9.19:1 against 6.91:1, and the ring's two
   bands go from 9.91:1 to 13.19:1, which lifts the edge's guaranteed floor
   from 3.148:1 to 3.632:1 — from 5% above the 3:1 requirement to 21%.

   Not --gold itself: that token is used nineteen times and almost every one is
   a 3px rule, a left border or a focus ring on a pale ground, where lightening
   it weakens the line.

   The hover is a stone, not a paler gold. A hover has to be clearly different
   and keep its own contrast; it does not have to be lighter, and insisting on
   lighter is what used to cap this fill. Measured as a perceptual distance
   rather than a luminance ratio — which cannot see a change of hue — the stone
   is dE 36 from the gold against dE 14 for the old gold-on-gold, so it is the
   more visible of the two. It is darker than the resting fill rather than
   lighter, which is the point: the stone reads as a press rather than as the
   same colour faded. The edge floor follows luminance against the ring, so it
   moves with it — 3.399:1 hovered against 3.632:1 at rest, both clear of 3.0,
   and the hover's own ink #3d2c00 reads 7.95:1 on the stone,
   and the label reads 8.05:1 on the stone. */
.btn{display:inline-block;background:var(--btn-fill,var(--gold-btn));color:var(--btn-ink,#3a2c00);
  font-family:var(--font-ui);font-size:.87rem;font-weight:600;letter-spacing:.02em;
  padding:.7rem 1.4rem;border-radius:999px;text-decoration:none;
  border:1px solid transparent;transition:background .15s}
/* Both states read the same properties, so an authored colour can set the
   fill without silencing the hover. An inline `background` would outrank this
   rule — including on :hover — and leave the button with no hover at all,
   which is what it used to do. The house values are the fallbacks. */
.btn:hover{background:var(--btn-hover,var(--stone-btn));color:var(--btn-ink,#3d2c00)}
/* A selector list inside :not() counts as its most specific argument, not the
   sum, so this stays (0,3,0) and .btn.screen below still beats it on
   specificity rather than on being declared later. Two chained :not()s would
   have made it (0,4,0), a tie that a reorder of this file would break. */
.sec:not(.sec-hero, .sec-slideshow) .btn{background:var(--btn-fill,var(--burgundy-deep));color:var(--btn-ink,#fff)}
.sec:not(.sec-hero, .sec-slideshow) .btn:hover{background:var(--btn-hover,var(--burgundy-darker));color:var(--btn-ink,#fff)}

/* A screened-back button: the same ink as a tint, with the type darkened to
   carry it. Used where a control sits near the solid burgundy view tabs — two
   solid burgundy shapes a few pixels apart read as competing for the same job.
   Label contrast 8.68:1, so screening it back costs nothing in legibility. */
.btn.sm{padding:.5rem 1rem;font-size:.82rem}
.sec:not(.sec-hero) .btn.screen{background:#f6e9ec;color:var(--burgundy-deep);
  border-color:#e8d2d8}
.sec:not(.sec-hero) .btn.screen:hover{background:#f0dde2;color:var(--burgundy-darker);
  border-color:#dcbcc5}

/* ---------------------------------------------------------- slideshow -- */
/* The home page banner. What makes the type legible on a photograph is not
   restated here: the glyph glow, the eyebrow chip and the pocket behind the
   copy are the page hero's treatment above, extended to this selector, so the two
   stay in step. (The Chapters banner has rules of its own further down and does
   not share these.) Only what is peculiar to a set of stacked frames is below.

   A frame, not a padded section: the height is the banner's, and the slides
   fill it. min-height rather than height, so a long headline on a narrow
   screen grows the banner instead of running out of the bottom of it. */
.sec-slideshow{position:relative;padding-block:0;background:#17100d;color:#fff;
  border-bottom:3px solid var(--gold)}
.slideshow-slides{list-style:none;margin:0;padding:0;display:grid;
  min-height:clamp(26rem,72vh,46rem)}
/* Every slide occupies the one grid cell, so the cell is as tall as the tallest
   and no slide can shift the page when it takes over. Hidden by visibility as
   well as opacity, so a slide that is not showing cannot be tabbed into; the
   delay on visibility lets the fade finish before it goes. */
.slideshow-slide{grid-area:1/1;position:relative;display:flex;align-items:center;
  opacity:0;visibility:hidden;
  transition:opacity .9s ease,visibility 0s linear .9s}
.slideshow-slide.is-active{opacity:1;visibility:visible;transition-delay:0s}
.slideshow-img,
.slideshow-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
/* The bottom padding is room for the controls the script adds along the foot,
   so the copy sits in the clear part of the frame rather than behind them. */
.slideshow-slide > .wrap{position:relative;z-index:1;width:100%;
  padding-block:clamp(2.5rem,6vw,4rem) clamp(4rem,8vw,5.5rem)}
.hero-actions{display:flex;flex-wrap:wrap;gap:.75rem;margin:1.6rem 0 0}
.sec-slideshow .standfirst{margin-bottom:0}

/* Both buttons' edge, and why it carries its own dark.

   A control's edge needs 3:1 against what is behind it, and these two sit on
   photographs nobody has seen yet. No single colour can promise that: whatever
   colour an edge is, a photograph can present a region of the same luminance
   and the edge vanishes into it. Both of ours could. The quiet button's white
   border reads 2.05:1 against a white wall under the pocket and 1.00:1 against
   one bare; the solid button's gold reads 1.00:1 against a mid-green lawn, and
   that one is not hypothetical — rgb(176,187,183) in pexels-george-pak at
   1456x648 and a focus of 50% 42%. Nor can a sweep of the pictures on disk fix
   this, because all it can ever say is that today's pictures happen to be safe.

   So the edge carries its own dark, the same device as the headline's glyphs
   above: a 1px near-black ring outside the button, which gives every edge two
   opaque bands, one light and one dark. Whatever the backdrop, at most one band
   can be near it. With bands at luminances L1 < L2 and any backdrop Lp,

     edge = max( (Lp+.05)/(L1+.05), (L2+.05)/(Lp+.05) )  >=  sqrt(R)

   where R is the two bands' contrast with one another. The bound is exact and
   the worst case sits at the geometric mean between them, so an edge clears 3:1
   on every backdrop there is if and only if its two bands clear 9:1 on each
   other — a fact about the palette, with no photograph in it. By
   contrast_ratio() in inc/render_fields.php:

     ring #100b08 vs the quiet button's #fff border  19.56  ->  floor 4.42:1
     ring #100b08 vs the solid button's --gold-btn   13.19  ->  floor 3.63:1
     ring #100b08 vs its hover fill --stone-btn      11.55  ->  floor 3.40:1

   What the ring cannot do is make the OUTERMOST band reach 3:1 on its own:
   against a near-black photograph the ring itself reads 1.07:1 and the white
   border behind it is what shows. Nothing can, for the reason in the first
   paragraph, so "the outermost colour against the backdrop" is not a test any
   design passes. The pair is the edge, and the pair is what is measured.

   Checked against the pictures as well, since a closed form is only worth
   having if it survives contact: every upload at least 1500px wide, cropped
   the way the banner crops it, at every focus value an editor can set, bare
   and again under the pocket. The worst readings over 21.2M pixels are the two
   floors above — reached and not broken, which is what the bound predicts. A
   sweep of every grey and an RGB lattice agrees, and so does a pure white
   backdrop, the lightest an editor can produce.

   The ring has to stay a ring: opaque, unblurred, not inset, one pixel of
   spread at no offset. Blur it or make it translucent and it composites with
   the picture instead of banding against it, which is the sample-dependence
   this is here to end. tests/slideshow.php reads this declaration back out of
   this file and pins both the colour pair at 9:1 and that shape, so weakening
   either fails there rather than on somebody's bright-sky slide. */
.sec-slideshow .btn{box-shadow:0 0 0 1px var(--btn-ring,#100b08)}
/* The quiet button: a translucent dark pill, so the photograph still shows
   through the control, with the eyebrow chip's own ink. The label is a separate
   measure from the edge and the fill carries it — white type on the fill over
   pure white, the lightest backdrop there is, reads 6.43:1. Hover darkens the
   fill and touches neither band, so it can only improve. */
.sec-slideshow .btn-ghost{background:rgba(16,11,8,.66);color:#fff;
  border-color:#fff}
.sec-slideshow .btn-ghost:hover{background:rgba(16,11,8,.82);color:#fff}

/* The controls slideshow.js adds over the banner. Each one is a real <button>
   on an unknown photograph, so each edge is the two-band pair argued at
   `.sec-slideshow .btn` above: a white border inside, the same near-black ring
   outside, the same translucent dark fill behind the glyph. Hit areas are 44px
   (arrows) and 24px (dots) while the dots draw at 12px.

   They lie over the whole banner rather than in a bar along its foot: the
   arrows against the left and right edges at the vertical centre, the dots at
   the bottom on the copy's own left margin, as the reference does. The layer
   takes no pointer events, so the photograph behind it stays inert and only
   the controls themselves catch a click. */
.slideshow-controls{position:absolute;z-index:2;inset:0;pointer-events:none}
.slideshow-dots{position:absolute;left:0;right:0;bottom:clamp(.7rem,2vw,1.15rem);
  max-width:var(--wrap);margin-inline:auto;
  padding-inline:clamp(1.25rem,4vw,2.5rem);
  display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;
  pointer-events:none}
.slideshow-dot{pointer-events:auto}
/* A plain translucent disc, as the reference has it — no outline ring. The
   ring was mine: two opaque bands guarantee a control's edge reads 3:1 on any
   photograph, and it did, but it is not this design and it was asked for
   twice. What carries the control now is the chevron inside it against its own
   fill, which is a measure the disc cannot lose; the disc's own edge against
   the picture is no longer guaranteed. */
.slideshow-arrow{position:absolute;top:50%;transform:translateY(-50%);
  pointer-events:auto;
  width:2.75rem;height:2.75rem;padding:0;
  border:0;border-radius:50%;background:rgba(22,16,12,.55);
  cursor:pointer;transition:background .15s}
.slideshow-arrow:hover{background:rgba(22,16,12,.72)}
.slideshow-prev{left:clamp(.5rem,1.6vw,1.25rem)}
.slideshow-next{right:clamp(.5rem,1.6vw,1.25rem)}
/* Below the same 48rem the clip uses, the arrows come off. They and the copy
   are both on the vertical centre, and a phone has no width to hold them
   apart — at 390 the left arrow lands on the standfirst. Nothing is lost with
   them gone: the dots are real buttons at the 24px minimum target, the arrow
   keys still work, and a swipe is the gesture a phone reaches for first. */
@media (max-width:47.999rem){
  .slideshow-arrow{display:none}
}
.slideshow-arrow::before{content:"";position:absolute;top:50%;left:50%;
  width:.6rem;height:.6rem;border:solid #fff;border-width:0 0 2px 2px;
  transform:translate(-30%,-50%) rotate(45deg)}
.slideshow-next::before{transform:translate(-70%,-50%) rotate(-135deg)}
/* The visitor's stop. The reference has no such control, and this is the one
   thing kept that it does not have: WCAG 2.2.2 is Level A, and content that
   starts moving by itself, runs past five seconds and sits beside other
   content needs a way to stop it. It is drawn at the dots' weight rather than
   the arrows' so it sits in the row quietly, and placed after them so the dots
   begin the row as they do in the reference. */
.slideshow-pause{position:relative;flex:none;pointer-events:auto;order:2;
  width:1.5rem;height:1.5rem;margin-left:.6rem;padding:0;border:0;
  border-radius:50%;background:rgba(255,255,255,.55);cursor:pointer;
  box-shadow:0 0 0 1px rgba(23,16,13,.9);transition:background .15s}
.slideshow-pause:hover{background:rgba(255,255,255,.85)}
/* Dark on the pale disc now, where it used to be white on a dark one. */
.slideshow-pause::before{content:"";position:absolute;top:50%;left:50%;
  box-sizing:border-box;width:.42rem;height:.46rem;transform:translate(-50%,-50%);
  border:solid #17100d;border-width:0 .15rem}
.slideshow-pause.is-stopped::before{width:0;height:0;
  transform:translate(-30%,-50%);border-style:solid;border-color:transparent transparent transparent #17100d;
  border-width:.26rem 0 .26rem .42rem}
/* The button is the hit area and the ::before is the dot, so the pill can
   widen without the target shrinking. The fill is a background that grows
   from empty to full. With the animation off (reduced motion, see the switch
   at the foot of this file) nothing runs and the current dot is a full pill, so
   the width and the fill are what say which slide this is. */
/* Small plain marks with the current one drawn out into a pill, as the
   reference has them. The hit area stays 24px for the target-size minimum
   while the mark itself is 8px. */
.slideshow-dot{position:relative;flex:none;width:1.5rem;height:1.5rem;padding:0;
  border:0;background:none;cursor:pointer;transition:width .3s ease;
  pointer-events:auto}
.slideshow-dot[aria-current]{width:2.5rem}
/* Quiet grey marks low on the frame, as the design has them — no outline, no
   hairline, nothing that reads as a control until you look for it. They are
   deliberately below the 3:1 a control's edge would need: the arrows and the
   keyboard carry that duty, and these are an indicator of place first and a
   target second. The soft shadow is what keeps them from vanishing entirely
   into a pale photograph; it is not a guarantee and is not claimed as one. */
.slideshow-dot::before{content:"";position:absolute;inset:50% .55rem auto;
  box-sizing:border-box;height:.375rem;margin-top:-.1875rem;
  border:0;border-radius:999px;background-color:rgba(236,234,230,.42);
  background-image:linear-gradient(rgba(255,255,255,.92),rgba(255,255,255,.92));
  background-repeat:no-repeat;background-size:0 100%;
  text-shadow:none;filter:drop-shadow(0 1px 1.5px rgba(0,0,0,.45))}
.slideshow-dot[aria-current]::before{inset:50% .28rem auto;
  background-color:rgba(236,234,230,.55)}
.slideshow-dot:not([aria-current]):hover::before{background-color:rgba(255,255,255,.78)}
.slideshow-dot[aria-current]::before{background-size:100% 100%}
.slideshow-dot.is-run::before{animation:slideshow-fill var(--interval,6s) linear}
@keyframes slideshow-fill{from{background-size:0 100%}}
.sec-slideshow.is-paused .slideshow-dot::before{animation-play-state:paused}
/* Not the site-wide burgundy ring: one dark colour over a photograph can sit on
   a region of its own luminance (the ring's own --burgundy #841b32 is dark:
   2.18:1 against even pure black, under 3:1, and 1:1 against a burgundy part
   of the picture). White
   between two dark bands can't: the outline is 2px white, set 1px off the
   control, and one near-black shadow of spread 4px (1 + 2 + 1) sits
   under it, so the gap inside the outline and a 1px band outside it are both
   dark. tests/slideshow.php reads that arithmetic back. */
.sec-slideshow .slideshow-arrow:focus-visible,
.sec-slideshow .slideshow-pause:focus-visible{outline:2px solid #fff;outline-offset:1px;
  box-shadow:0 0 0 4px #100b08}
.slideshow-dot:focus-visible{outline:0}
.slideshow-dot:focus-visible::before{outline:2px solid #fff;outline-offset:1px;
  box-shadow:0 0 0 4px #100b08}
.slideshow-slides{touch-action:pan-y}
.slideshow-status{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;
  clip-path:inset(50%);white-space:nowrap}

/* figures */
.stat-grid{list-style:none;padding:0;margin:1.5rem 0 0;display:flex;gap:clamp(2rem,6vw,4.5rem);flex-wrap:wrap}
.stat-value{display:block;font-size:clamp(2.1rem,1.75rem + 1.5vw,2.9rem);
  font-weight:700;color:var(--burgundy);line-height:1;letter-spacing:-.02em}
.stat-label{display:block;font-family:var(--font-ui);font-size:.76rem;
  letter-spacing:.11em;text-transform:uppercase;color:var(--muted);margin-top:.45rem}

/* call to action */
.sec-cta{background:var(--burgundy-tint);border-top:1px solid var(--rule)}
/* A photograph beside the words, when the block carries one. A short call to
   action leaves half the band empty, which reads as something missing rather
   than as space; the picture fills it and the band becomes two columns.

   Equal columns, unlike the checklist's 1:1.05 — there the points are short
   against long copy, here the two sides are a picture and a few lines and
   neither wants the extra. Centred rather than top-aligned, because the copy
   is shorter than the picture is tall and aligning their tops leaves the text
   stranded at the ceiling.

   The renderer always writes the words first, whichever side the editor picks,
   so the reading order is heading-then-text everywhere and only the painting
   order changes — which is this rule's job, not the markup's. Below the
   checklist's own 60rem the columns stack, and the words stay first. */
.sec-cta .cta-grid{display:grid;gap:2rem 3rem;align-items:center;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.sec-cta .cta-say{min-width:0}
.sec-cta .cta-photo{margin:0;min-width:0}
/* No shadow: on a solid colour band it reads as a smudge rather than a lift,
   which the checklist's pale ground does not have to contend with. */
.sec-cta .cta-photo img{display:block;width:100%;height:auto;aspect-ratio:3/2;
  object-fit:cover;border-radius:10px;background:#efe9e3}
@media (min-width:60.001rem){
  .sec-cta .cta-grid.photo-left .cta-say{order:2}
}
@media (max-width:60rem){
  .sec-cta .cta-grid{grid-template-columns:1fr;gap:1.6rem}
}
/* Centred, for the case the block was not originally given: a short call to
   action with a button and no photograph. Left alone, that is a heading, two
   lines and a button stacked against the left edge of a 68rem band, with the
   right half empty — which reads as something missing rather than as space,
   the same complaint the photograph was added to answer.

   The class sits on the <section>, so the two cases can differ. Without a
   photograph the words have the whole band, and centred prose at that measure
   loses the eye on the return sweep — hence the narrower column, centred in
   the band. With one, `.cta-say` is already half-width and wants no further
   narrowing, only the text centred within it.

   `.btn` is inline-block, so text-align carries the button too; nothing here
   needs to know about the button at all. */
.sec-cta.is-center .wrap{text-align:center}
.sec-cta.is-center .wrap > .prose{max-width:46rem;margin-inline:auto}
.sec-cta.is-center .cta-say{text-align:center}
/* The other kind: the column in the middle of the band, the words left where
   they were. `.wrap` is already `margin-inline:auto`, so narrowing it is the
   whole rule — and deliberately no `text-align`, which would make this the
   same thing as the mode above under a different name. The button sits at the
   left edge of the narrowed column, under the text it belongs to.

   Only emitted on a band with no photograph (see render_section_cta), so this
   never fights the two-column grid. */
.sec-cta.is-center-block .wrap{max-width:46rem}

/* FAQ */
.faq-group{font-family:var(--font-ui);font-size:.74rem;letter-spacing:.13em;
  text-transform:uppercase;color:var(--muted);margin:2rem 0 .6rem}
.faq-item{border-bottom:1px solid var(--rule);padding:.9rem 0}
.faq-item summary{cursor:pointer;font-weight:600;color:var(--burgundy);
  list-style:none;display:flex;gap:.7rem;align-items:baseline}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::before{content:"+";color:var(--gold-ink);font-weight:600;flex:0 0 auto}
.faq-item[open] summary::before{content:"–"}
.faq-item .prose{padding:.6rem 0 .2rem 1.4rem;max-width:var(--measure)}
/* Closing text under the last question. The gap is the point: .faq-item draws
   a bottom border, so without it this sits tight against that line and reads
   as the answer to a question it has nothing to do with. Same 46rem as the
   introduction above, which takes it from .sec .prose.sec-lead. */
.faq-end{margin-top:1.8rem;max-width:46rem}

/* A picture beside the questions. A list of questions is short lines of
   type, so on a wide block each rule runs on past its words to nothing and
   the band reads as a container built for content that is not there.

   IT FILLS THE CARD AT REST, THEN HOLDS. An FAQ is an accordion: open the
   answers and the left column grows by several hundred pixels — nine
   hundred in the test fixture. A picture that stretches to match turns a
   landscape photograph into a 300px by 1400px slice, which is not showing
   a photograph; a picture pinned at a fixed 3:2 sits in the top third of
   the card with air beneath it. What is wanted is the height of the column
   with every answer shut, and CSS has no way to name that number, so
   assets/js/faq-photo.js measures it once and sets --faq-photo-h.

   The rule below is therefore the fallback, and it is the no-JavaScript
   state as well: a 3:2 picture, pinned to the top and sticky. Smaller than
   intended, never broken. `align-self:start` is what stops the grid
   stretching it; the sticky offset clears the header, whose height the
   stylesheet already tracks in --head-h for anchor jumps, and it is what
   keeps the picture beside the reader once a long accordion is open. */
.sec-faq .faq-grid{display:grid;gap:clamp(1.6rem,3vw,2.8rem);
  grid-template-columns:minmax(0,1fr) minmax(0,19rem)}
.sec-faq .faq-say{min-width:0}
.sec-faq .faq-photo{margin:0;min-width:0;align-self:start;
  position:sticky;top:calc(var(--head-h,5.9rem) + 1rem)}
.sec-faq .faq-photo img{display:block;width:100%;height:var(--faq-photo-h,auto);
  aspect-ratio:3/2;object-fit:cover;border-radius:10px}

@media (min-width:49rem){
  .sec-faq .faq-grid.photo-left{grid-template-columns:minmax(0,19rem) minmax(0,1fr)}
  .sec-faq .faq-grid.photo-left .faq-say{order:2}
}
/* Narrow: the picture goes under the questions rather than squeezing them
   into a third of the screen, and stops sticking — there is no column
   beside it to stay level with, so a picture pinned to the top of the
   viewport would just sit on the words as they scrolled past it. */
@media (max-width:49rem){
  .sec-faq .faq-grid{grid-template-columns:1fr;gap:1.6rem}
  /* Neither sticky nor locked to the column: stacked, the picture is above
     the questions rather than beside them, so there is no height to match
     and nothing to stay level with. */
  .sec-faq .faq-photo{position:static}
  .sec-faq .faq-photo img{height:auto}
}

/* On a dark ground. `.sec.ink-light` turns the section, its headings and its
   prose white, but it cannot reach a component that names its own colour —
   and a question names burgundy. Measured on the Society's navy before this
   rule existed: 1.28:1, which is not "hard to read" but "cannot be read",
   while the heading above it sat at 12.35:1. The editor would have had no
   warning; the background control was doing exactly what it was asked.
   Testimonials carry the same pair of rules for the same reason.
   The marker takes the pale gold the rest of the light scheme uses rather
   than white, so the "+" stays distinguishable from the words beside it.
   tests/faq-background-runtime.php measures all of this in a browser. */
.sec.ink-light .faq-item summary{color:#fff}
.sec.ink-light .faq-item summary::before{color:var(--gold-pale)}
/* The hairline between questions is --rule, a warm near-white chosen against
   paper. It survives on a dark ground but reads as a hard line rather than a
   division, so it is softened to match the ink it separates. */
.sec.ink-light .faq-item{border-bottom-color:rgba(255,255,255,.28)}

/* And the same thing on a pale ground, which the veil made common. The wash
   a background is given is sized against --ink; burgundy is LIGHTER than
   --ink, so a question that would have cleared 4.5:1 as --ink came out at
   2.74:1 over a veiled photograph — measured, not reasoned, in
   tests/background-luminance-runtime.php. A question on any background
   therefore takes the ink the measurement was made against.
   Only `.has-bg`, so a question on plain paper keeps its burgundy.
   The marker goes with it: it is drawn in --gold-ink, which is lighter
   still and measured 1.60:1 on the same ground. */
.sec.has-bg.ink-dark .faq-item summary,
.sec.has-bg.ink-dark .faq-item summary::before{color:var(--ink)}

/* journal archive */
/* The archive: a year to a card, three to a row. Replaces a single column of
   34 links, which left most of the page empty and made the eye travel a long
   way for a short line of text. */
.jyears{list-style:none;padding:0;margin:1.5rem 0 0;display:grid;gap:1rem;
  grid-template-columns:repeat(auto-fill,minmax(17rem,1fr))}
.jyear{background:var(--panel);border:1px solid var(--rule);border-radius:4px;
  padding:1rem 1.1rem 1.1rem}
.jyear-head{font-family:var(--font-ui);font-size:1.15rem;font-weight:700;
  color:var(--burgundy);margin:0 0 .6rem;padding-bottom:.5rem;
  border-bottom:1px solid var(--rule);letter-spacing:.01em}
.jyear ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.15rem}
.jyear li a{display:flex;flex-direction:column;gap:.1rem;padding:.45rem .5rem;
  margin:0 -.5rem;border-radius:3px;text-decoration:none;color:var(--ink)}
.jyear li a:hover{background:var(--burgundy-tint)}
.jyear-season{font-weight:700;font-size:.98rem;color:var(--burgundy)}
.jyear-meta{font-family:var(--font-ui);font-size:.76rem;color:var(--muted)}

/* forms */
/* Each set of forms is a card: the year being filed for, and the perpetual
   ones that outlive it. Inside, each category is shut until asked for — a
   reader wants one document, and seven category rows are quicker to read than
   seventy forms. The perpetual card is tinted gold rather than burgundy so the
   two read apart at a glance; the headings say which is which, since colour
   on its own cannot. */
/* The two sets sit side by side: the year on the left, the perpetual forms on
   the right, each the full height of its own contents. auto-fit rather than a
   fixed pair, so a page showing only one set gets a card the full width
   instead of a half-empty row. */
.forms-sets{display:grid;gap:1.4rem;align-items:start;margin:1.8rem 0;
  grid-template-columns:repeat(auto-fit,minmax(min(24rem,100%),1fr))}
.forms-card{background:var(--panel);border:1px solid var(--rule);border-radius:6px;
  overflow:hidden;box-shadow:0 1px 2px rgba(43,33,24,.05)}
.forms-card-head{display:flex;align-items:baseline;gap:.8rem;flex-wrap:wrap;
  padding:.95rem 1.4rem;background:var(--burgundy-tint);
  border-bottom:1px solid var(--rule);border-top:3px solid var(--burgundy)}
.forms-card.is-perpetual .forms-card-head{background:#fcf6e4;border-top-color:var(--gold)}
.forms-card-note{margin:0 0 0 auto;font-family:var(--font-ui);font-size:.82rem;
  color:var(--muted)}
.forms-card .forms-year{margin:0;font-size:1.25rem}
.forms-card-body{padding:0 1.4rem}

/* The whole row is the control, so the target is the width of the card rather
   than the width of the words. The marker is drawn, not inherited, so it can
   sit at the left where the eye starts. */
.forms-group{border-bottom:1px solid var(--rule)}
.forms-group:last-child{border-bottom:none}
.forms-sum{display:flex;align-items:center;gap:.6rem;cursor:pointer;list-style:none;
  padding:.85rem .2rem;user-select:none}
.forms-sum::-webkit-details-marker{display:none}
.forms-sum::before{content:"";width:.42rem;height:.42rem;flex:0 0 auto;
  border-right:2px solid var(--burgundy);border-bottom:2px solid var(--burgundy);
  transform:rotate(-45deg);margin-left:.1rem;transition:transform .15s ease}
.forms-group[open] > .forms-sum::before{transform:rotate(45deg)}
.forms-card.is-perpetual .forms-sum::before{border-color:var(--gold-ink)}
.forms-sum:hover .forms-cat{color:var(--burgundy)}
.forms-card.is-perpetual .forms-sum:hover .forms-cat{color:var(--gold-ink)}
.forms-sum:focus-visible{outline:2px solid var(--burgundy);outline-offset:-2px}
.forms-card .forms-cat{margin:0}
.forms-cat-n{letter-spacing:0}
.forms-group .forms-list{margin:0 0 .9rem 1.4rem}
/* Half the card's width is narrow enough that a long title wraps, so the file
   type sits under every title rather than beside the short ones and below the
   long ones, which left the column looking ragged. */
.forms-group .forms-list li{flex-direction:column;align-items:flex-start;gap:.15rem}
/* What the document is for, under its name. Narrower than the column so it
   reads as a note on the entry above rather than another entry. */
.forms-desc{font-size:.86rem;color:var(--muted);max-width:34rem;line-height:1.45}
.forms-group .forms-list li:last-child{border-bottom:none}
.forms-year{font-size:1.35rem;margin-top:2.2rem}
.forms-cat{font-family:var(--font-ui);font-size:.74rem;letter-spacing:.13em;
  text-transform:uppercase;color:var(--muted);margin:1.5rem 0 .4rem}
.forms-list{list-style:none;padding:0;margin:0}
.forms-list li{padding:.55rem 0;border-bottom:1px solid var(--rule);
  display:flex;gap:.9rem;align-items:baseline;flex-wrap:wrap}
.forms-list a{text-decoration:none;font-weight:600}
.forms-list a:hover{text-decoration:underline}

/* -------------------------------------------------------------- cards -- */
/* Equal-height cards in a row that reflows rather than squeezes: four cards on
   a wide screen, two on a tablet, one on a telephone, and never three cramped
   columns on a 700px screen. */
.cardrow{list-style:none;padding:0;margin:1.8rem 0 0;display:grid;gap:1.1rem;
  grid-template-columns:repeat(auto-fit,minmax(min(17rem,100%),1fr))}
/* One card is capped at half the wrap so it still reads as a card rather than
   a panel — and a grid lays an undersized track at the start, so without the
   justification it sat hard against the left edge with the other half of the
   band empty beside it. Under a centred heading that reads as a layout that
   has broken, not one anybody chose.

   On `.cols-1` alone, deliberately: at two and three across the tracks
   already fill the container, where `justify-content` would be ignored — but
   a rule on `.cardrow` would also stop them stretching to fill it, and they
   would gain margins they were never meant to have.

   Below 34rem there is nothing to divide and the card simply takes the width.
   tests/cards-single-runtime.php measures all three counts in a browser,
   because a stylesheet containing the word `center` is not evidence that
   anything moved. */
.cardrow.cols-1{grid-template-columns:minmax(0,34rem);justify-content:center}
.cardrow.cols-2{grid-template-columns:repeat(auto-fit,minmax(min(20rem,100%),1fr))}
.card{background:var(--panel);border:1px solid var(--rule);border-radius:10px;
  padding:1.4rem 1.5rem 1.5rem;display:flex;flex-direction:column}
.card.is-link{padding:0}
.card.is-link > a{display:flex;flex-direction:column;height:100%;
  padding:1.4rem 1.5rem 1.5rem;text-decoration:none;color:inherit;border-radius:10px;
  transition:border-color .12s ease,box-shadow .12s ease,transform .12s ease}
.card.is-link:hover{border-color:var(--burgundy);
  box-shadow:0 5px 18px rgba(43,33,24,.09);transform:translateY(-2px)}
.card-icon{display:inline-flex;align-items:center;justify-content:center;
  width:2.6rem;height:2.6rem;border-radius:9px;margin-bottom:1rem;
  background:var(--burgundy-tint);color:var(--burgundy);flex:0 0 auto}
.card-title{font-size:1.08rem;margin:0 0 .5rem}
.card-body{font-size:.94rem;line-height:1.55;max-width:none}
.card-body p:last-child{margin-bottom:0}
/* Tags sit at the foot whatever the length of the text above them, which is
   what keeps a row of cards looking like a row. */
.card-tags{list-style:none;padding:0;margin:auto 0 0;padding-top:1.1rem;
  display:flex;flex-wrap:wrap;gap:.35rem}
.card-tags li{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.74rem;
  color:var(--muted);border:1px solid var(--rule);border-radius:5px;padding:.2rem .5rem}

/* The foot of a Latest news section. */
.news-more{margin:1.4rem 0 0}

/* ---------------------------------------------------------- checklist -- */
/* Copy and photograph on one side, the points on the other. The two columns
   are equal-ish rather than golden: the points are short and the copy is not,
   so a wider left would leave the right half empty. */
.checklist-grid{display:grid;gap:2rem 3rem;align-items:start;
  grid-template-columns:minmax(0,1fr) minmax(0,1.05fr)}
.checklist-eyebrow{font-family:var(--font-ui);font-size:.78rem;letter-spacing:.14em;
  text-transform:uppercase;color:var(--burgundy);margin:0 0 .5rem;
  display:flex;align-items:center;gap:.6rem}
/* The rule before the eyebrow, as on the hero — a small mark that says the
   section has started. */
.checklist-eyebrow::before{content:"";width:1.4rem;height:2px;background:var(--gold);
  flex:0 0 auto}
.checklist-say h2{margin:0 0 .8rem}
.checklist-say .prose{max-width:34rem}
.checklist-photo{margin:1.6rem 0 0}
/* Leading its column rather than following it: the space goes underneath. */
.checklist-photo.at-top{margin:0 0 1.6rem}
/* In the right-hand column the photo shares space with the list, so it keeps
   the list's own rhythm rather than the copy's wider gap. */
.checklist-points .checklist-photo{margin:1.4rem 0 0}
.checklist-points .checklist-photo.at-top{margin:0 0 1.4rem}
.checklist-photo img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;
  border-radius:10px;display:block;background:#efe9e3;
  box-shadow:0 10px 30px rgba(43,33,24,.13)}

.checklist{list-style:none;padding:0;margin:0;display:grid;gap:.9rem 2rem;
  grid-template-columns:1fr}

/* Two columns, but only where two columns can be read. The checklist already
   sits in half the section, so splitting it again can leave each point about
   a quarter of the page — fine for "AI features", hopeless for a sentence.
   The floor is on the column's own width rather than the window's, because
   that is what actually decides whether the text fits; below it the choice
   quietly becomes one column rather than producing two unreadable ones.
   A browser without container queries keeps the single column above, which is
   the safe way round. */
.checklist-points{container-type:inline-size}
@container (min-width: 26rem) {
  .checklist.two-col{grid-template-columns:repeat(2,minmax(0,1fr))}
}
.checklist li{display:flex;gap:.65rem;align-items:start;line-height:1.5}
/* The mark sits on the brand tint rather than loose on the page, so a ragged
   left edge of ticks reads as one column. */
.checklist-tick{flex:0 0 auto;width:1.35rem;height:1.35rem;margin-top:.1rem;
  display:flex;align-items:center;justify-content:center;border-radius:5px;
  background:var(--burgundy-tint);color:var(--burgundy)}
.checklist-outcome{margin:1.8rem 0 0;font-weight:700;color:var(--burgundy);
  font-size:1.02rem;line-height:1.45}

@media (max-width:60rem){
  .checklist-grid{grid-template-columns:1fr;gap:1.6rem}
  .checklist-photo{margin-top:1.2rem}
}

/* ------------------------------------------------------------- people -- */
/* A row per person: portrait, who they are, how to reach them. Rows rather
   than a card grid, because the contact block is the point and narrow cards
   wrap every line of an address. */
.people{list-style:none;padding:0;margin:0;max-width:var(--wrap)}
.person{display:grid;gap:1rem 1.6rem;align-items:start;padding:1.5rem 0;
  border-bottom:1px solid var(--rule);
  grid-template-columns:9rem minmax(14rem,1.1fr) minmax(13rem,1fr)}
.person:last-child{border-bottom:none}

.person-photo img{width:100%;height:auto;aspect-ratio:1;object-fit:cover;
  border-radius:3px;display:block;background:#efe9e3}
/* No portrait: initials on the society's own tint, so the row keeps its rhythm
   rather than collapsing to text where a face should be. */
.person-noface{display:flex;align-items:center;justify-content:center;
  aspect-ratio:1;border-radius:3px;background:var(--burgundy-tint);
  color:var(--burgundy);font-family:var(--font-display);font-weight:700;
  font-size:2rem;letter-spacing:.02em}

.person-name{margin:0;font-weight:700;line-height:1.35}
.person-role{display:block;font-weight:400;color:var(--burgundy)}
.person-at{margin:.45rem 0 0;color:var(--muted);font-size:.92rem;line-height:1.5}
.person-contact{font-size:.9rem;line-height:1.5}
.person-contact p{margin:0 0 .55rem}
.person-contact p:last-child{margin-bottom:0}
.person-contact a{color:var(--burgundy)}
.person-label{display:block;font-family:var(--font-ui);font-size:.72rem;
  letter-spacing:.11em;text-transform:uppercase;color:var(--muted)}
.people-group{margin:0 0 1.2rem;padding-bottom:.5rem;border-bottom:2px solid var(--burgundy)}

@media (max-width:52rem){
  /* The portrait keeps its place beside the name; the contact details drop
     below the pair rather than squeezing into a third of a phone. */
  .person{grid-template-columns:5.5rem 1fr;gap:.8rem 1rem}
  .person-contact{grid-column:1 / -1}
}

/* chapters */
.chapter-search{display:flex;gap:1rem;align-items:end;flex-wrap:wrap;
  margin:1.6rem 0;padding:1.1rem 1.25rem;background:var(--burgundy-tint);
  border:1px solid var(--rule);border-radius:3px;font-family:var(--font-ui);font-size:.86rem}
.chapter-search label{display:flex;flex-direction:column;gap:.3rem;font-size:.74rem;
  letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.chapter-search input,.chapter-search select{padding:.55rem .7rem;font:inherit;
  font-size:.9rem;border:1px solid var(--rule);border-radius:2px;background:#fff;color:var(--ink)}
/* A real submit button that never carries .btn, so the house pill is set here
   too. The input and select beside it keep their 2px: they are form fields,
   and a rounded text box reads as a search pill rather than a labelled entry. */
.chapter-search button{padding:.6rem 1.3rem;font:inherit;font-weight:600;
  background:var(--burgundy-deep);color:#fff;border:0;border-radius:999px;cursor:pointer}
.chapter-search button:hover{background:var(--burgundy-darker)}

.chapter-list{list-style:none;padding:0;margin:1.4rem 0 0}
.chapter-list li{padding:.7rem 0;border-bottom:1px solid var(--rule);
  display:flex;gap:.8rem;align-items:baseline;flex-wrap:wrap}
.chapter-list a{text-decoration:none}
.chapter-list a:hover{text-decoration:underline}
.chapter-list strong{color:var(--burgundy);font-weight:600}
.chapter-map{height:clamp(320px,45vh,460px);background:#efe9e3;
  border:1px solid var(--rule);border-radius:3px;margin-top:1.4rem}

address{font-style:normal;color:var(--muted);font-family:var(--font-ui);font-size:.9rem;margin:.6rem 0 1.2rem}
.advisors{list-style:none;padding:0;margin:.8rem 0 0}
.advisors li{padding:.55rem 0;border-bottom:1px solid var(--rule)}

/* ---------------------------------------------------------------- footer -- */
.site-foot{margin-top:clamp(3rem,7vw,5rem);background:var(--burgundy-deep);color:rgba(255,255,255,.85);
  border-top:3px solid var(--gold);padding-block:clamp(2rem,4vw,3rem);
  font-family:var(--font-ui);font-size:.88rem}
.site-foot a{color:var(--gold-light)}
.foot-inner{display:flex;gap:2rem;align-items:flex-start;flex-wrap:wrap}
/* The lockup reversed for a dark ground: the arched wordmark (#830b2c in the
   artwork) is lifted to cream; the seal's disc (#841b32) stays, since its gold
   ring already separates it from the background. */
.foot-lockup{width:168px;height:auto;flex:0 0 auto}
.foot-lockup [fill="#830b2c"]{fill:#f4ece0}
.foot-lockup [fill="#841b32"]{fill:#6d0624}
.foot-text{flex:1 1 24rem;min-width:0}
.site-foot p{max-width:52ch;margin-bottom:.7em}
.site-foot .muted{color:rgba(255,255,255,.6)}
/* Contact and Privacy, kept clear of the copyright line they share — they sat
   one space's width from "Delta Epsilon Sigma." and read as part of it.
   nowrap holds the pair together, so a narrow screen moves both to the next
   line rather than splitting them around the dot. */
.site-foot .foot-links{display:inline-flex;align-items:baseline;gap:.6em;margin-left:1.25em;white-space:nowrap}
.site-foot .foot-links>span{color:rgba(255,255,255,.4)}

/* `*` does not match pseudo-elements, so the bare form left every ::before and
   ::after animating under reduced motion: the slideshow's pill, and the forms
   page's .forms-sum::before chevron (a .15s transform transition). */
@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}

/* ------------------------------------------------------------ small screens */
@media (max-width:640px){
  :root{--head-h:4.9rem}
  .head-inner{gap:.75rem;padding-block:.7rem;min-height:0}
  .brand-mark{height:48px;width:48px}
  .wordmark b{font-size:1.12rem}
  .wordmark span{font-size:.58rem;letter-spacing:.11em}

  /* The row becomes the drawer. It was one scrolling line here, with the
     dropdowns switched off because overflow-x:auto made it a scroll container
     that clipped them — so a heading had nothing to open and every page under
     Chapters had no route from the menu. The drawer is outside that container
     and has room for the whole menu. */
  .site-nav{display:none}
  .navburger{display:block;margin-left:auto}
  .navdrawer{display:block}

  .chapter-search{flex-direction:column;align-items:stretch}
  .chapter-search label,.chapter-search button{width:100%}
  /* Two per row, whatever the captions are. Left to size themselves, a long
     caption makes its figure wide enough to claim a whole row and the four
     land 1-2-1, which reads as a mistake. Fixing the share lets the caption
     wrap instead. */
  .stat-grid{gap:1.75rem 2.5rem}
  .stat-grid li{flex:0 1 calc(50% - 1.25rem)}
  .forms-list li,.chapter-list li{gap:.35rem}
  .forms-card-head{padding:.8rem 1rem}
  .forms-sets{gap:1.1rem}
  .forms-card-body{padding:0 1rem}
  .forms-card-note{margin-left:0;width:100%}
  .forms-group .forms-list{margin-left:1.05rem}
}

/* Back to top — built by assets/js/to-top.js, which is also the only thing
   that adds .is-on. Nothing in any page's HTML draws this.

   z-index sits above the mobile drawer panel (40) so it is never buried, and
   below the expanded chapter map (60), which takes the whole screen and must
   cover it. */
.to-top{
  position:fixed;right:clamp(.9rem,2.5vw,1.6rem);
  /* The inset keeps it off the home indicator on a phone, and resolves to 0
     everywhere that has no such bar. */
  bottom:calc(clamp(.9rem,2.5vw,1.6rem) + env(safe-area-inset-bottom,0px));
  z-index:50;display:grid;place-items:center;
  width:2.9rem;height:2.9rem;padding:0;border:0;border-radius:50%;
  background:var(--burgundy-deep);color:#fff;cursor:pointer;
  box-shadow:0 2px 10px rgba(0,0,0,.22);
  /* Out of the way until wanted: not merely transparent, because a button
     that is invisible and still clickable is a trap for a mouse and a stop
     on the way through for a keyboard. */
  opacity:0;visibility:hidden;transform:translateY(.5rem);
  transition:opacity .18s ease,transform .18s ease,visibility 0s linear .18s,background .18s ease;
}
.to-top.is-on{opacity:1;visibility:visible;transform:none;transition-delay:0s}
.to-top:hover{background:var(--burgundy-darker)}
.to-top:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
/* 2.75rem is 44px: the floor for a hit area, and the same size the slideshow
   controls use for the same reason. It shrinks no further on a phone — a
   phone is where the finger is. */
@media (max-width:40rem){.to-top{width:2.75rem;height:2.75rem}}

/* Print: the Constitution and Bylaws are documents people print. */
@media print{
  .site-head,.site-foot,.chapter-search,.skip,.slideshow-controls,.to-top{display:none}
  body{background:#fff;font-size:11pt}
  .sec{padding-block:0;border:0}
  a{text-decoration:none;color:#000}
  .prose{max-width:none}
}

/* ---- inline images placed in prose from the Control Panel ---- */
.prose figure{margin:1.8em 0}
.prose figure img{display:block;height:auto;border-radius:2px}
.prose figcaption{font-family:var(--font-ui);font-size:.82rem;color:var(--muted);
  padding-top:.5rem;line-height:1.5}
.prose .img-small{max-width:220px}
.prose .img-medium{max-width:420px}
.prose .img-full{max-width:100%}
/* "Wide" breaks out of the reading measure to the full column */
.prose .img-wide{max-width:min(100%,var(--wrap));width:100%}
.prose figure.img-wide{margin-inline:calc((var(--measure) - min(100%, var(--wrap))) / 2)}
.prose .align-left{margin-right:auto;margin-left:0}
.prose .align-right{margin-left:auto;margin-right:0}
.prose .align-center{margin-inline:auto}
@media(max-width:900px){
  .prose figure.img-wide{margin-inline:0}
  .prose .img-wide{max-width:100%}
}

/* ---- chapter page ---- */
.chapter-hero{position:relative;background:#17100d;color:#fff;
  border-bottom:3px solid var(--gold);display:flex;align-items:flex-end;
  min-height:var(--banner-h);overflow:hidden}
.chapter-hero-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
/* Nothing is laid across this photograph. There used to be a bottom-weighted
   scrim here, from before the type carried its own glow and the eyebrow its own
   chip; once those arrived it was shading the picture for no one. Measured on
   the live banner with it present and absent, glyph by glyph at >= 50% coverage:

                        with     without   needs
     eyebrow chip 1456   9.22      9.22      4.5
     eyebrow chip  390   8.95      8.95      4.5
     heading      1456  12.04     12.04      3.0
     heading       390  13.78     13.78      3.0
     standfirst   1456  11.03     10.71      4.5
     standfirst    390  10.36     10.07      4.5

   The eyebrow and the heading do not move at all: they sat above the 30% of the
   frame where the gradient had already fallen to nothing. Only the standfirst
   changes, by three tenths, and it keeps more than twice what it needs.

   The one thing that really lived in the gradient — .hero-credit, bottom right —
   carries its own chip at rgba(14,9,7,.64) and reads 6.08:1 over a pure white
   photograph without any help. The copy's own pocket, below, is what carries
   the words; it is sized to them and leaves the rest of the frame alone. */
/* Same failure as the section hero, and worse. The pocket is anchored at
   25%/92% of a frame that is 320px tall on a desktop but only 180px on a
   phone, so at phone width the text sits far enough above the center to leave
   it almost unshaded: measured over the Alpha Mu photograph the eyebrow came
   out at 2.01:1 and the institution line at 1.19:1 — the subtitle genuinely
   vanished into the bright half of the picture. Narrow screens get a veil that
   holds across the whole text band instead of a pocket that misses it.
   Lightest that carries all three lines over both chapter photographs at 390
   and 768. Re-measured once the eyebrow grew to 0.95rem bold: eyebrow 5.4:1,
   heading 7.4:1, institution 6.2:1, all against their own requirement, with
   the veil down from .70 to .66. */
/* The one thing that genuinely differs by width. On a phone the hero is short
   and the copy nearly fills it, so the ellipse has to reach further past the
   text to hold the ends of the eyebrow — measured at +1.04 above requirement
   here against +0.11 at the desktop setting. Sizing both to the phone's need
   is what made the desktop hero too dark; they are set separately instead.

   This replaces an older override that veiled the WHOLE hero at 66%, from when
   the pocket was anchored to the frame and missed the text once the column
   went flush-left. A scrim anchored to the copy cannot miss it. */
/* The same glow the page heroes use, and for the same reason: a dark copy of
   the letters painted behind them travels with the type, so the scrim no
   longer has to carry legibility and can drop from .86 to .30.

   What was here before — 3px and 14px of blur — guaranteed an edge but could
   not hold a line on its own, which is why the pocket had to be nearly
   opaque. Declared per element, never on .chapter-hero-text: em in
   text-shadow resolves where it is declared and then inherits as fixed
   pixels, so a wrapper hands every line the same halo and the heading comes
   out bald. */
.chapter-hero.has-photo .chapter-eyebrow,
.chapter-hero.has-photo h1,
.chapter-hero.has-photo .chapter-inst{
  text-shadow:
    0 0 .05em rgba(0,0,0,.72),
    0 0 .13em rgba(0,0,0,.62),
    0 0 .32em rgba(0,0,0,.52),
    0 0 .70em rgba(0,0,0,.38),
    .03em .055em .07em rgba(0,0,0,.78)}
/* A chip rather than a glow, matching the page heroes: letter-spaced caps
   have too little stroke to hold an outline, whatever their size. */
.chapter-hero.has-photo .chapter-eyebrow{display:inline-block;
  background:rgba(16,11,8,.62);padding:.45em .85em;border-radius:3px;
  text-shadow:0 1px 2px rgba(0,0,0,.6)}

/* The scrim is sized to the words, not to the hero.
   Painting it across the whole frame meant the pocket had to be big enough to
   reach the far end of a 263px eyebrow from a centre two-thirds down — so it
   spilled to the top of a picture that had no type up there. Anchored to the
   copy box with closest-side, it is the right size by construction at every
   width, and the rest of the photograph is left alone. */
/* A floor under the width, so the scrim is the same size on pages that share
   a photograph. Sized to the copy alone, "Chapter Map" got a 232px pocket and
   "Every chapter across the United States" a 332px one — the same picture
   darkened two different ways on sibling pages, which reads as a fault rather
   than a fit. The box still grows for copy wider than the floor. */
.chapter-hero-copy{position:relative;display:inline-block;max-width:100%;
  min-width:min(21rem, 100%)}
.chapter-hero-copy > *{position:relative;z-index:1}
.chapter-hero.has-photo .chapter-hero-copy::before{content:"";position:absolute;z-index:0;
  /* The box has to CONTAIN the ellipse, not equal it: a gradient is clipped to
     its own box, so a tight box turns the soft edge into a hard rectangle.
     And the enlargement has to be proportional to the copy, not a fixed inset:
     a 168px margin makes the box 2.3x the text on a desktop hero and only 1.3x
     on a phone, where the ellipse then misses the ends of the eyebrow — which
     is the widest line, and the one with the strictest requirement. scale()
     is proportional by construction, so closest-side lands on 1.3x the copy
     width and 1.2x its height at every size. */
  inset:0;
  /* Sized for a wide hero, where the copy is a small part of the frame. */
  transform:scale(1.5, 1.9);
  background:radial-gradient(closest-side at 50% 50%,
    rgba(12,8,6,.30)  0%,
    rgba(12,8,6,.26) 40%,
    rgba(12,8,6,.16) 66%,
    rgba(12,8,6,.06) 85%,
    rgba(12,8,6,0)  100%)}

@media (max-width:68rem){
  /* The chapter banner is short — 180px on a phone — so the copy nearly fills
     it and a tall ellipse covers the picture rather than pooling under the
     words. There is room to tighten: the type measures 10:1 here against a
     4.5 requirement. */
  .chapter-hero.has-photo .chapter-hero-copy::before{transform:scale(1.1, 1.35)}
}
/* .wrap is a flex item here, so it must be told to fill the row — otherwise it
   shrinks to its text and the heading stops aligning with the page below. */
.chapter-hero-text{position:relative;z-index:1;width:100%;
  padding-block:clamp(1.5rem,4vw,2.5rem)}
/* Deliberately past 18.66px bold, which is where WCAG counts text as "large"
   and drops its requirement from 4.5:1 to 3:1. That is what paid for the
   lighter scrim above: at the old 11.5px the eyebrow was the binding element
   and the photograph had to stay dark to carry it. */
.chapter-eyebrow{font-family:var(--font-ui);font-size:.95rem;
  font-weight:700;letter-spacing:.12em;line-height:1.2;
  text-transform:uppercase;color:var(--gold-pale);margin:0 0 .3em}
/* Measured worst case over this photograph: eyebrow 5.26:1, heading 7.50:1,
   institution well above both. #eccd5c reached only 4.35:1 — too dark a gold
   to clear 4.5:1 at this size without blacking out the picture behind it. */
.chapter-hero h1{color:#fff;margin:0 0 .15em}
/* 600, as the slide's subtitle is, and for the same reason: a heavier stroke
   puts more of each letter in its solid interior, where the glow is doing its
   work, rather than in the antialiased edge where it is not. Not scoped to
   .has-photo — 117 of the 119 chapters have no photograph and sit on the flat
   ground instead, so scoping it would leave the majority at 400 and two at
   600, which reads as a fault between sibling pages rather than a fit. */
.chapter-inst{font-size:clamp(1.05rem,.95rem + .5vw,1.3rem);margin:0;
  font-weight:600;color:rgba(255,255,255,.93)}

.chapter-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);
  gap:clamp(2rem,5vw,3.5rem);align-items:start}
@media(max-width:820px){.chapter-body{grid-template-columns:1fr}}
.chapter-body h2{font-size:1.25rem;margin-bottom:.8em}

.factlist{margin:0;display:grid;grid-template-columns:auto 1fr;gap:.35rem 1.2rem}
.factlist dt{font-family:var(--font-ui);font-size:.72rem;letter-spacing:.11em;
  text-transform:uppercase;color:var(--muted);padding-top:.25em}
.factlist dd{margin:0}
.chapter-back{margin-top:1.6rem;font-family:var(--font-ui);font-size:.88rem}

/* Wide enough that an open enquiry form is not squeezed into a column. */
.advisor-grid{list-style:none;padding:0;margin:0;display:grid;gap:1.1rem;
  grid-template-columns:repeat(auto-fit,minmax(26rem,1fr))}
.advisor-card{background:var(--panel);border:1px solid var(--rule);
  border-radius:4px;padding:1.2rem}
.advisor-head{display:flex;gap:1.2rem;align-items:center}
.advisor-portrait{width:124px;height:124px;flex:0 0 auto;border-radius:50%;
  object-fit:cover;border:3px solid var(--gold)}
.advisor-initials{display:flex;align-items:center;justify-content:center;
  background:var(--burgundy-tint);color:var(--burgundy);font-weight:700;font-size:2rem}
.advisor-meta{min-width:0;display:flex;flex-direction:column;gap:.15rem}
.advisor-meta strong{font-size:1.08rem}
.advisor-meta a{font-size:.88rem;word-break:break-word}
.advisor-meta .muted{font-size:.85rem}
/* ---- chapter photo + advisor headshots ---- */
.chapter-photo{margin:0}
.chapter-photo img{display:block;width:100%;max-height:min(46vh,420px);object-fit:cover;
  border-bottom:3px solid var(--gold)}
.advisors{list-style:none;padding:0;margin:.8rem 0 0}
.advisor{display:flex;gap:1rem;align-items:center;padding:.8rem 0;
  border-bottom:1px solid var(--rule)}
.advisor-shot{width:72px;height:72px;border-radius:50%;object-fit:cover;flex:0 0 auto;
  border:2px solid var(--gold)}
.advisor-detail{min-width:0}
.advisor-detail a{word-break:break-word}

/* ---- chapter location map ---- */
.chapter-map{margin:1.6rem 0 0;border:1px solid var(--rule);border-radius:4px;
  background:var(--burgundy-tint);min-height:0}
.chapter-map.is-live{height:clamp(240px,32vh,320px)}
.chapter-map-fallback{margin:0;padding:1rem;font-family:var(--font-ui);font-size:.9rem}
.chapter-map .leaflet-container{border-radius:3px;font:inherit}
/* Leaflet's default blue focus ring clashes; use the brand color */
.chapter-map .leaflet-container:focus-visible{outline:2px solid var(--burgundy);outline-offset:2px}

/* Leaflet numbers its own panes 200 (tiles) to 1000 (control corners), which
   is only safe while those numbers are compared against each other. Nothing
   between the map and <body> used to establish a stacking context, so they
   were hoisted into the root one and measured against .site-head's z-index of
   20 — which every one of them beats. The map painted over the menu as soon
   as the reader scrolled.
   z-index:0 with position:relative contains the lot: inside this box Leaflet's
   200-to-1000 still order correctly among themselves, and the box as a whole
   ranks below the header. Raising the header above 1000 instead would have
   fixed this one page and broken the scale the rest of the file depends on —
   subnav 30, drawer 40, modal 50, expanded map 60.
   tests/chapter-map-runtime.php holds this. */
.map-wrap{position:relative;z-index:0}

/* Expanded map fills the window until Escape or the close button. The wrapper
   is what moves — Leaflet controls position on .chapter-map itself.
   This rule is two classes to .map-wrap's one, so the z-index:60 below wins
   over the 0 above — deliberately: full screen is meant to cover the header. */
/* 100vw/dvh rather than inset:0 — a fixed box is sized to the viewport minus the
   reserved scrollbar gutter, which would leave a sliver down the right. */
.map-wrap.is-expanded{position:fixed;top:0;left:0;z-index:60;background:#fff;
  width:100vw;height:100vh;height:100dvh}
/* min-height is cleared as well as max: the locator map carries a 34rem floor
   so it is not a letterbox beside the list, and that floor would push a short
   window's map past the bottom of the screen — taking the close button with it. */
.map-wrap.is-expanded > .chapter-map,
.map-wrap.is-expanded > .findmap{height:100%;width:100%;margin:0;border:0;
  border-radius:0;max-height:none;min-height:0}
body.map-expanded{overflow:hidden}
.map-expand a{font-size:1.05rem;line-height:30px;text-align:center;
  font-family:var(--font-ui);font-weight:600}

/* ---- enquiry form ---- */
.enquiry p{margin:0 0 1rem}
.enquiry label{display:block;font-family:var(--font-ui);font-size:.8rem;font-weight:600;
  letter-spacing:.02em;margin-bottom:.3rem}
.enquiry .opt{font-weight:400;color:var(--muted)}
.enquiry input,.enquiry textarea{width:100%;padding:.65rem .8rem;font:inherit;
  border:1px solid var(--rule);border-radius:3px;background:#fff;color:var(--ink)}
.enquiry textarea{resize:vertical}
.enquiry-row{display:grid;grid-template-columns:1fr 1fr;gap:0 1.2rem}
@media(max-width:620px){.enquiry-row{grid-template-columns:1fr}}
/* The honeypot must be reachable by bots but invisible and unfocusable to people. */
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
/* Turnstile's widget: its own iframe, sized by Cloudflare; this only spaces it. */
.enquiry .cf-turnstile{margin:0 0 1rem;min-height:65px}
.enquiry-noscript{font-family:var(--font-ui);font-size:.85rem;color:var(--muted)}
.formnote{font-family:var(--font-ui);font-size:.9rem;padding:.8rem 1rem;border-radius:3px;margin:0 0 1.2rem}
.formnote-ok{background:#e8f5ee;border:1px solid #c3e5d3;color:#1c6b45}
.formnote-bad{background:#fdecec;border:1px solid #f3caca;color:#a3282f;padding-left:2.2rem}

/* ---- contacting an advisor ----------------------------------------------
   A <details> rather than a JS panel, so the form still opens with scripting
   off and the summary is keyboard-operable for free. */
/* One disclosure, two places that raise it: an advisor on a chapter page and a
   board member on the board page. Same markup, same job — reaching a named
   person without their address being on the page — so the same rules, rather
   than a second copy that drifts. */
.advisor-contact,.person-contact-form{margin-top:1.1rem;
  border-top:1px solid var(--rule);padding-top:1rem}
.advisor-contact>summary,.person-contact-form>summary{display:inline-flex;
  align-items:center;gap:.45rem;cursor:pointer;
  list-style:none;font-family:var(--font-ui);font-size:.85rem;font-weight:600;
  letter-spacing:.02em;padding:.5rem 1.1rem;border:1px solid var(--burgundy);
  border-radius:3px;color:var(--burgundy);background:transparent;
  transition:background .12s ease,color .12s ease}
.advisor-contact>summary::-webkit-details-marker,
.person-contact-form>summary::-webkit-details-marker{display:none}
.advisor-contact>summary::marker,.person-contact-form>summary::marker{content:""}
.advisor-contact>summary::after,.person-contact-form>summary::after{
  content:"+";font-weight:700;font-size:1.05em;line-height:1}
/* a true minus, not a hyphen */
.advisor-contact[open]>summary::after,.person-contact-form[open]>summary::after{content:"\2212"}
.advisor-contact>summary:hover,.person-contact-form>summary:hover{
  background:var(--burgundy);color:#fff}
.advisor-contact>summary:focus-visible,.person-contact-form>summary:focus-visible{
  outline:3px solid var(--gold);outline-offset:2px}
.advisor-contact[open]>summary,.person-contact-form[open]>summary{
  background:var(--burgundy);color:#fff;margin-bottom:1.1rem}
.advisor-contact-body,.person-contact-body{max-width:34rem}
/* The card is narrower than the page was, so the paired fields stack. */
.advisor-contact .enquiry-row,.person-contact-form .enquiry-row{grid-template-columns:1fr}

/* The form spans the row rather than squeezing into the contact column: it is
   a different kind of thing from the address beside it, and a 13rem-wide
   message box is no use to anybody. */
.person-contact-form{grid-column:1 / -1}
/* Nothing sends from the control panel's preview, so the fields say so by
   being unusable rather than by looking live and quietly doing nothing. */
.enquiry fieldset[disabled]{border:0;padding:0;margin:0;opacity:.65}
.enquiry-preview-note{font-family:var(--font-ui);font-size:.78rem;
  letter-spacing:.04em;text-transform:uppercase;color:var(--muted);margin:0 0 .8rem}

/* ---- chapters: map view and listing view --------------------------------
   Two pages doing one job each, with the same switcher at the top of both. */
.viewtabs{display:flex;gap:.4rem;margin:0 0 1.4rem;flex-wrap:wrap}
.viewtabs a{font-family:var(--font-ui);font-size:.88rem;font-weight:600;text-decoration:none;
  padding:.45rem 1rem;border:1px solid var(--rule);border-radius:20px;color:var(--ink);
  background:var(--panel)}
.viewtabs a:hover{border-color:var(--burgundy);color:var(--burgundy)}
.viewtabs a[aria-current]{background:var(--burgundy-deep);border-color:var(--burgundy-deep);color:#fff}

.findbar{display:flex;gap:1rem;align-items:end;flex-wrap:wrap;background:var(--panel);
  border:1px solid var(--rule);border-radius:4px;padding:1rem 1.1rem;margin:0 0 1rem}
.findbar-field{display:flex;flex-direction:column;gap:.3rem}
.findbar label{font-family:var(--font-ui);font-size:.78rem;font-weight:600;letter-spacing:.02em}
.findbar-input{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}
/* One height and one radius for every control in the bar — the field, the two
   menus and both buttons — so the row reads as a single instrument rather than
   parts that happen to sit together. box-sizing is border-box site-wide, so the
   height holds whatever padding or border each control carries. */
.findbar input[type=text],
.findbar select,
.findbar .btn{height:2.75rem;font:inherit}
.findbar input[type=text]{width:9rem;padding:.55rem .7rem;border:1px solid var(--rule);
  background:#fff;color:var(--ink)}
.findbar select{padding:.55rem .7rem;border:1px solid var(--rule);
  background:#fff;color:var(--ink)}
.findbar .btn{display:inline-flex;align-items:center;padding:0 1.15rem;
  font-size:.87rem;font-weight:600;letter-spacing:.02em}
.findbar .btn.sm{padding:0 .9rem;font-size:.82rem}
.findcount{margin:0 0 1rem}
.findbar-note{margin:0 0 1rem}

/* List beside map on a wide screen; list under map on a narrow one. */
.findwrap{display:grid;grid-template-columns:22rem 1fr;gap:1.2rem;align-items:start}
@media(max-width:860px){.findwrap{grid-template-columns:1fr}}

.findlist{list-style:none;margin:0;padding:0;max-height:34rem;overflow-y:auto;
  border:1px solid var(--rule);border-radius:4px;background:var(--panel)}
.findrow{display:flex;flex-direction:column;gap:.1rem;padding:.8rem 1rem;
  border-bottom:1px solid var(--rule);cursor:pointer}
.findrow:last-child{border-bottom:0}
.findrow:hover{background:var(--paper)}
.findrow.is-on{background:var(--burgundy-tint);box-shadow:inset 3px 0 0 var(--burgundy)}
.findrow-name{font-weight:700;text-decoration:none;color:var(--ink)}
.findrow-name:hover{color:var(--burgundy)}
.findrow-inst{font-size:.9rem}
.findrow-foot{font-size:.85rem;margin-top:.25rem}

.findmap{min-height:34rem;border:1px solid var(--rule);border-radius:4px;background:var(--panel);
  display:flex;align-items:center;justify-content:center;padding:1rem}
.findmap.is-live{display:block;padding:0}
@media(max-width:860px){.findmap{min-height:22rem}}

/* ---- borrowed campus photo on the Chapters index and map ----
   The scrim pocket sits bottom-left under the heading, so the credit sits
   bottom-right where there is no scrim at all. It carries its own backing
   instead: at .64 over even a white sky the text still clears 5.4:1. */
.hero-credit{position:absolute;right:0;bottom:0;z-index:2;margin:0;
  padding:.4rem .9rem .45rem;background:rgba(14,9,7,.64);
  border-top-left-radius:4px;font-family:var(--font-ui);font-size:.74rem;
  letter-spacing:.01em;max-width:min(60%,26rem)}
.hero-credit a{color:#fff;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.4)}
.hero-credit a:hover{border-bottom-color:#fff}
@media(max-width:640px){.hero-credit{font-size:.68rem;padding:.3rem .6rem .35rem;max-width:72%}}

/* ---- chapter listing: cards, filters, pager -----------------------------
   The controls reuse .findbar from the map page, so both views of the
   Chapters section present the same instrument. */
.chq-wrap{position:relative;display:flex;align-items:center}
.chq-wrap input[type=search]{width:100%;height:2.75rem;border-radius:6px;font:inherit;
  padding:.55rem 2.1rem .55rem .7rem;border:1px solid var(--rule);background:#fff;
  color:var(--ink);-webkit-appearance:none;appearance:none}
.chq-wrap input[type=search]::-webkit-search-cancel-button{display:none}
.chq-clear{position:absolute;right:.4rem;width:1.6rem;height:1.6rem;display:flex;
  align-items:center;justify-content:center;border:0;background:none;cursor:pointer;
  font-size:1.2rem;line-height:1;color:var(--muted);border-radius:50%}
.chq-clear:hover{color:var(--burgundy);background:var(--burgundy-tint)}

.ch-grid{list-style:none;margin:0;padding:0;display:grid;gap:.85rem;
  grid-template-columns:repeat(auto-fill,minmax(19rem,1fr))}
.ch-card{display:flex}
.ch-card[hidden]{display:none}
.ch-card > a{display:flex;flex-direction:column;gap:.2rem;width:100%;
  background:var(--panel);border:1px solid var(--rule);border-left:3px solid var(--gold);
  border-radius:4px;padding:1rem 1.1rem;text-decoration:none;color:var(--ink);
  transition:border-color .12s ease,box-shadow .12s ease,transform .12s ease}
.ch-card > a:hover{border-color:var(--rule);border-left-color:var(--burgundy);
  box-shadow:0 4px 14px rgba(43,33,24,.08);transform:translateY(-1px)}
.ch-name{font-weight:700;font-size:1.05rem;color:var(--burgundy)}
.ch-inst{font-size:.95rem}
.ch-place{font-family:var(--font-ui);font-size:.8rem;color:var(--muted);margin-top:.15rem}

.ch-empty{margin:1.5rem 0;color:var(--muted)}
.linkish{background:none;border:0;padding:0;font:inherit;color:var(--burgundy);
  text-decoration:underline;cursor:pointer}

/* Pager: shared shape with the rest of the site's controls. */
.pager{display:flex;gap:.35rem;flex-wrap:wrap;margin-top:1.6rem;align-items:center}
.pager button,.pager .pager-on{min-width:2.4rem;height:2.4rem;display:inline-flex;
  align-items:center;justify-content:center;border:1px solid var(--rule);border-radius:6px;
  background:var(--panel);color:var(--ink);font:inherit;font-size:.88rem;cursor:pointer}
.pager button:hover:not(:disabled){border-color:var(--burgundy);color:var(--burgundy)}
.pager button:disabled{opacity:.4;cursor:not-allowed}
.pager .pager-on{background:var(--burgundy-deep);border-color:var(--burgundy-deep);
  color:#fff;cursor:default}
.pager-gap{padding:0 .2rem;color:var(--muted)}
/* The pager renders as links before the script upgrades it to buttons. */
.pager a{min-width:2.4rem;height:2.4rem;display:inline-flex;align-items:center;
  justify-content:center;border:1px solid var(--rule);border-radius:6px;
  background:var(--panel);color:var(--ink);font-size:.88rem;text-decoration:none}
.pager a:hover{border-color:var(--burgundy);color:var(--burgundy)}

/* ---- news ---------------------------------------------------------------- */
.newstabs{margin-top:1.2rem}
.newstabs em{font-style:normal;opacity:.6;margin-left:.3rem;font-size:.85em}

.news-grid{list-style:none;margin:1.6rem 0 0;padding:0;display:grid;gap:1.1rem;
  grid-template-columns:repeat(auto-fill,minmax(18rem,1fr))}
.news-card > a{display:flex;flex-direction:column;height:100%;background:var(--panel);
  border:1px solid var(--rule);border-radius:4px;overflow:hidden;text-decoration:none;
  color:var(--ink);transition:border-color .12s ease,box-shadow .12s ease,transform .12s ease}
.news-card > a:hover{border-color:var(--burgundy);box-shadow:0 5px 18px rgba(43,33,24,.09);
  transform:translateY(-2px)}
/* Neutral behind a photograph: a pink ground tints the letterboxed edges and
   shows as a pink flash before the image arrives. */
.news-thumb{display:block;aspect-ratio:16/10;background:#efe9e3;overflow:hidden}
.news-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.news-thumb-blank{background:linear-gradient(135deg,var(--burgundy-tint),#f3e7ea)}
.news-body{display:flex;flex-direction:column;gap:.3rem;padding:1rem 1.1rem 1.2rem}
.news-cat{font-family:var(--font-ui);font-size:.68rem;letter-spacing:.14em;
  text-transform:uppercase;color:var(--burgundy)}
.news-title{font-weight:700;font-size:1.05rem;line-height:1.3}
.news-date{font-family:var(--font-ui);font-size:.78rem;color:var(--muted)}
.news-excerpt{font-size:.92rem;color:var(--muted);line-height:1.5;margin-top:.15rem}

.crumbs{font-family:var(--font-ui);font-size:.82rem;color:var(--muted);margin-bottom:1rem}
.crumbs a{color:var(--burgundy);text-decoration:none}
.crumbs a:hover{text-decoration:underline}
.crumbs span{margin:0 .4rem;opacity:.6}

.post-title{max-width:22ch;margin-bottom:.3rem}
@media(min-width:48rem){.post-title{max-width:28ch}}
.post-meta{font-family:var(--font-ui);font-size:.85rem;color:var(--muted);margin:0 0 1.6rem}
.post-figure{margin:0 0 1.8rem;border-radius:4px;overflow:hidden;background:#efe9e3}
.post-figure img{width:100%;max-height:30rem;object-fit:cover;display:block}
.post-body{max-width:var(--measure)}
.post-body img{max-width:100%;height:auto;border-radius:3px}

.post-nav{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-top:2.5rem;
  padding-top:1.5rem;border-top:1px solid var(--rule)}
@media(max-width:40rem){.post-nav{grid-template-columns:1fr}}
.post-nav a{display:flex;flex-direction:column;gap:.2rem;text-decoration:none;color:var(--ink);
  border:1px solid var(--rule);border-radius:4px;padding:.8rem 1rem;background:var(--panel)}
.post-nav a:hover{border-color:var(--burgundy)}
.post-nav-next{text-align:right}
.post-nav span{font-family:var(--font-ui);font-size:.72rem;letter-spacing:.12em;
  text-transform:uppercase;color:var(--muted)}
.post-nav strong{font-size:.95rem;line-height:1.35;color:var(--burgundy)}
/* A caption belongs to the picture, so it sits inside the figure's frame. */
.post-figure{display:block}
.post-figure figcaption{font-family:var(--font-ui);font-size:.82rem;color:var(--muted);
  line-height:1.5;padding:.7rem .9rem;background:var(--panel);border-top:1px solid var(--rule)}

/* ---- site search ---------------------------------------------------------
   The header form is visible by default so it works with scripting off. The
   script adds .is-collapsible, and only then does it fold behind the icon. */
/* Visible to screen readers, not on screen. The admin stylesheet has had this
   for a while; the public side had no use for it until the search form. */
.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0 0 0 0);white-space:nowrap;border:0}

.navsearch{position:relative;display:flex;align-items:center;gap:.4rem;margin-left:.3rem}
.navsearch-toggle{display:none;align-items:center;justify-content:center;width:2rem;height:2rem;
  border:0;background:none;cursor:pointer;color:var(--ink);border-radius:50%;padding:0}
.navsearch-toggle:hover{color:var(--burgundy);background:var(--burgundy-tint)}
.navsearch-form{display:flex;gap:.35rem;align-items:center}
.navsearch-form input{width:9rem;height:2.1rem;padding:.3rem .6rem;font:inherit;font-size:.85rem;
  border:1px solid var(--rule);border-radius:6px;background:#fff;color:var(--ink)}
.navsearch-form button{height:2.1rem;padding:0 .7rem;font:inherit;font-size:.8rem;font-weight:600;
  border:1px solid var(--rule);border-radius:6px;background:var(--panel);color:var(--burgundy);
  cursor:pointer}
.navsearch-form button:hover{border-color:var(--burgundy)}

@media(min-width:641px){
  .navsearch.is-collapsible .navsearch-toggle{display:inline-flex}
  .navsearch.is-collapsible .navsearch-form{position:absolute;right:0;top:calc(100% + .4rem);
    z-index:30;background:var(--panel);border:1px solid var(--rule);border-radius:6px;
    padding:.5rem;box-shadow:0 10px 26px rgba(43,33,24,.13);
    opacity:0;visibility:hidden;transform:translateY(-5px);
    transition:opacity .13s ease,transform .13s ease,visibility .13s}
  .navsearch.is-collapsible.is-open .navsearch-form{opacity:1;visibility:visible;transform:none}
  .navsearch.is-collapsible .navsearch-form input{width:14rem}
}

.searchbar{margin-bottom:1.2rem}
.searchbar input[type=search]{width:100%;height:2.75rem;border-radius:6px;font:inherit;
  padding:.55rem .8rem;border:1px solid var(--rule);background:#fff;color:var(--ink)}

.results{list-style:none;margin:1.4rem 0 0;padding:0;display:flex;flex-direction:column;gap:1.3rem}
.result{max-width:var(--measure)}
.result > a{text-decoration:none;color:var(--ink);display:flex;flex-wrap:wrap;
  align-items:baseline;gap:.5rem}
/* A quieter label than a filled pill. Three reasons it reads better: dark type
   on a light tint beats white-on-dark at this size, where light type on a dark
   ground visually thins; the tracking is eased off, since heavy letter-spacing
   hurts small type rather than helping; and it stops competing with the title,
   which is burgundy too. Measured at 9.9:1. */
.result-kind{font-family:var(--font-ui);font-size:.72rem;font-weight:700;letter-spacing:.06em;
  text-transform:uppercase;color:var(--burgundy-deep);background:var(--burgundy-tint);
  border:1px solid #eedde2;padding:.18rem .5rem;border-radius:4px;line-height:1.45;
  white-space:nowrap}
.result-title{font-weight:700;font-size:1.08rem;color:var(--burgundy)}
.result > a:hover .result-title{text-decoration:underline}
.result-context{font-family:var(--font-ui);font-size:.8rem;color:var(--muted)}
.result-snippet{margin:.35rem 0 .2rem;line-height:1.55;color:var(--ink)}
.result-snippet mark{background:#fdf1b8;color:inherit;padding:0 .1em;border-radius:2px}
.result-url{margin:0;font-family:var(--font-ui);font-size:.76rem;color:var(--muted);
  word-break:break-all}

/* ---- the Journal page ---------------------------------------------------- */
.journal-banner{width:100%;max-height:clamp(170px,24vw,300px);overflow:hidden;
  border-bottom:3px solid var(--gold);background:#17100d}
.journal-banner img{width:100%;height:clamp(170px,24vw,300px);object-fit:cover;display:block}

.journal-latest{margin:1.8rem 0 2.4rem}
.journal-latest-head,.journal-all-head{font-family:var(--font-ui);font-size:.74rem;
  letter-spacing:.14em;text-transform:uppercase;color:var(--muted);
  display:flex;align-items:center;gap:.9rem;margin:0 0 .9rem;font-weight:600}
.journal-latest-head::after,.journal-all-head::after{content:"";flex:1;height:1px;
  background:var(--rule)}
.journal-all-head{margin-top:2.4rem}

.journal-latest-card{display:flex;gap:clamp(1rem,3vw,2rem);align-items:center;flex-wrap:wrap;
  background:var(--panel);border:1px solid var(--rule);border-left:3px solid var(--gold);
  border-radius:4px;padding:clamp(1.1rem,3vw,1.6rem)}
.journal-latest-mark{flex:0 0 auto;width:clamp(84px,12vw,120px)}
.journal-seal{display:block;width:100%;height:auto}
.journal-latest-body{flex:1 1 16rem;min-width:0}
.journal-latest-when{font-size:clamp(1.3rem,1.1rem + .8vw,1.7rem);font-weight:700;
  color:var(--burgundy);margin:0 0 .2rem;line-height:1.15}
.journal-latest-cite{margin:0 0 1rem;color:var(--muted);font-size:.95rem}
.journal-latest-act{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin:0}

/* A section's opening copy, where the list or cards below it run full width.
   The usual measure (38rem, ~70 characters) is right for a page of prose but
   leaves a short intro looking stranded beside 1008px of content underneath.
   46rem is ~85 characters — the top of the comfortable range, and close enough
   to the width below that the column reads as one thing. */
/* `.sec .prose` sets the measure with two classes, so this needs to match it
   to win — a lone .sec-lead loses on specificity and silently does nothing. */
.sec .prose.sec-lead{max-width:46rem}

/* A text block set to "Wide". Same 46rem, and for the same reason: ~85
   characters is the far end of what reads comfortably, which suits a document
   somebody scans — a constitution, a list of bylaws — rather than one they
   read straight through. Specificity matched to `.sec .prose` as above. */
.sec .prose.prose-wide{max-width:46rem}

/* The contact form in a column, so it can line up with the text block above
   it. The two widths are the two a text block can have — the reading
   measure and Wide — and they are the SAME figures, not those figures plus
   the wrap's padding: `.wrap` is border-box, so its max-width already
   contains the padding. Adding it again put the form 80px wider and 40px
   further left than the block it was supposed to match. */
.sec-contact_form .wrap.form-reading{max-width:var(--measure)}
.sec-contact_form .wrap.form-wide{max-width:46rem}
/* While a page of the archive is being fetched. */
.jarchive{transition:opacity .12s ease}
.jarchive.is-loading{opacity:.55}
/* The contents are swapped in place; let the browser not try to help by
   re-anchoring the scroll when the new list is a different height. */
.jarchive{overflow-anchor:none}

/* A pager whose items are year ranges, not single digits — they need room. */
.pager-ranges a,.pager-ranges .pager-on{min-width:0;padding:0 .8rem;
  font-family:var(--font-ui);font-size:.84rem;font-weight:600;letter-spacing:.01em}
/* The current page is focused after an in-place swap so the keyboard keeps its
   place. That must not draw a ring for someone who clicked it with a mouse. */
.pager .pager-on:focus:not(:focus-visible){outline:none}
.pager .pager-on:focus-visible{outline:3px solid var(--gold);outline-offset:2px}

/* ------------------------------------------------ section backgrounds -- */

/* A section can carry a color, a photo, or a photo under a wash of that
   color. Which ink rides on top is decided in PHP by measurement, not here —
   see section_background() — and arrives as .ink-light or .ink-dark. */
.sec.has-bg{position:relative;background-color:var(--sec-wash,transparent)}
.sec.has-bg > *{position:relative;z-index:1}

.sec.has-bg-image{background-size:cover;background-repeat:no-repeat;
  background-position:50% 50%}

/* The wash sits between the photograph and the words. Without a color the
   photo shows through untouched, which is why the pseudo-element only exists
   when there is something to wash with. */
.sec.has-bg-image.has-wash::before{content:"";position:absolute;inset:0;
  background:var(--sec-wash);opacity:var(--sec-wash-a,.72)}

/* The panel. Words occupy a strip, not the band, so where a photograph has
   too much range to carry text anywhere — near-black shadow and near-white
   sky in the same frame measure 1.13:1 for white text and 1.15:1 for dark,
   before any wash — the colour goes behind the strip instead of over the
   whole picture. The band then keeps whatever strength the editor set,
   including none, and the photograph is visible around the words rather
   than underneath them at 1% strength.

   The fill arrives as --sec-panel: the chosen colour at the opacity
   section_background() measured, worked out by the same arithmetic as a
   wash and against the same photograph. Inside the panel the ink class
   still applies, because the panel IS what the ink was measured against. */
.sec.has-panel > .wrap{background:var(--sec-panel);border-radius:12px;
  padding:clamp(1.6rem,3vw,2.4rem) clamp(1.4rem,3vw,2.6rem)}
/* A photograph behind a section is decoration; a panel sitting on it is a
   shape, and a shape with a hard edge on a busy picture reads as a mistake.
   The shadow is what makes it look placed rather than pasted. */
.sec.has-panel.has-bg-image > .wrap{box-shadow:0 2px 24px rgba(0,0,0,.18)}
/* The glow that keeps text legible over a photograph is for text ON the
   photograph. On a panel it only smears the letters. */
.sec.has-panel.has-bg-image.ink-light > .wrap{text-shadow:none}

.sec.ink-light,
.sec.ink-light h2,
.sec.ink-light h3,
.sec.ink-light .stat-value{color:#fff}
.sec.ink-light .stat-label,
.sec.ink-light .muted{color:rgba(255,255,255,.82)}
.sec.ink-light .prose a{color:var(--gold-pale)}
/* A photograph can put a bright patch behind a letter whatever the wash does;
   a shadow guarantees a dark edge around every glyph. */
.sec.has-bg-image.ink-light .wrap{text-shadow:0 1px 3px rgba(0,0,0,.45)}

.sec.ink-dark,
.sec.ink-dark h2,
.sec.ink-dark h3{color:var(--ink)}
.sec.ink-dark .stat-value{color:var(--burgundy)}

/* A card paints its own panel, so the band behind it is NOT what its words
   sit on, and the section's ink scheme must stop at its edge. Without this
   `.sec.ink-light h3` turns a card title white on a white panel: measured at
   1.00:1 by tests/section-ink-audit.php, which is invisible rather than
   merely poor. Inside a panel the paper palette applies, exactly as it does
   on a page with no background at all. */
.sec.ink-light .card{color:var(--ink)}
.sec.ink-light .card h2,
.sec.ink-light .card h3{color:var(--ink)}
.sec.ink-light .card .muted,
.sec.ink-light .card .card-tags li{color:var(--muted)}
/* `.card-body a`, not `.card a`: a card with a link wraps its WHOLE content
   in an <a> that takes `color:inherit`, so colouring every anchor turned the
   card's body text burgundy. Only links inside the prose are links. */
.sec.ink-light .card .card-body a{color:var(--burgundy)}

/* The date beside a timeline entry is --ink, which on a dark ground measured
   3.47:1. Its sibling was remapped when the light scheme was written and
   this one was missed — it names its colour, so the section's rule cannot
   reach it. */
.sec.ink-light .timeline-what{color:#fff}

/* ------------------------------------------------------------------------
   The rest of the components that name a colour of their own.

   `.sec.ink-light` and `.sec.ink-dark` reach text that inherits. They cannot
   reach a component that sets its own colour, and seven did: --burgundy for
   accents and --muted for secondary lines, both chosen against paper and
   documented as such at the top of this file. On the backgrounds the site
   actually uses they were not merely poor. Measured by
   tests/section-ink-audit.php on the Society's own colours:

     .checklist-eyebrow   burgundy on #830b2c ....... 1.07:1
     .checklist-outcome   burgundy on #830b2c ....... 1.07:1
     .person-role         burgundy on #830b2c ....... 1.07:1
     .timeline-when       burgundy on #830b2c ....... 1.07:1
     .person-at           muted on #830b2c .......... 1.60:1
     .person-label        muted on #830b2c .......... 1.60:1
     .opt                 muted on #830b2c .......... 1.60:1

   Burgundy text on a burgundy band is a same-hue pairing, which is the worst
   case rather than the neutral one a grey suggests; 1.07:1 is text that is
   there in the markup and absent from the page. They take the scheme's own
   targets: pale gold for an accent, 82% white for a secondary line, white
   for body copy — the colours .sec.ink-light already uses elsewhere.

   The pale side takes --ink for all of them. On a cream ground burgundy is
   7.78:1 and would be fine, but a background may also be a washed
   photograph, whose ground sits near the middle by construction, and
   burgundy measured 2.12:1 there. Only `.has-bg`, so a page with no
   background keeps every one of these colours exactly as it has them. */
.sec.ink-light .checklist-eyebrow,
.sec.ink-light .person-role,
.sec.ink-light .timeline-when{color:var(--gold-pale)}
.sec.ink-light .checklist-outcome{color:#fff}
.sec.ink-light .person-at,
.sec.ink-light .person-label,
.sec.ink-light .opt{color:rgba(255,255,255,.82)}

.sec.has-bg.ink-dark .checklist-eyebrow,
.sec.has-bg.ink-dark .checklist-outcome,
.sec.has-bg.ink-dark .person-role,
.sec.has-bg.ink-dark .timeline-when,
.sec.has-bg.ink-dark .person-at,
.sec.has-bg.ink-dark .person-label,
.sec.has-bg.ink-dark .opt{color:var(--ink)}

/* The same again for the components the light scheme DID remap and the pale
   one never did, because until a photograph could be veiled there was no
   mid-toned pale ground for them to fail on. A link keeps its underline, so
   taking its colour costs nothing an eye needs. The stat value is large
   text and needs only 3:1, which burgundy misses at 2.75:1. */
.sec.has-bg.ink-dark .sec-eyebrow,
.sec.has-bg.ink-dark .hero-eyebrow,
.sec.has-bg.ink-dark .standfirst,
.sec.has-bg.ink-dark .muted,
.sec.has-bg.ink-dark .stat-label,
.sec.has-bg.ink-dark .stat-value,
.sec.has-bg.ink-dark .testimonial-role,
.sec.has-bg.ink-dark .testimonial-mark,
.sec.has-bg.ink-dark .prose a{color:var(--ink)}

/* The small line above a section heading, as on the hero and chapter banners. */
.sec-eyebrow{font-family:var(--font-ui);font-size:.72rem;letter-spacing:.15em;
  text-transform:uppercase;color:var(--muted);margin:0 0 .4em}
.sec.ink-light .sec-eyebrow{color:var(--gold-pale)}

/* Figures on a washed band want more room than they do on paper. */
.sec-stats.has-bg{padding-block:clamp(3rem,7vw,5rem);text-align:center}
.sec-stats.has-bg .stat-grid{justify-content:center;align-items:flex-start}
.sec-stats.has-bg .stat-value{font-size:clamp(2.6rem,2rem + 2.6vw,4rem)}
.sec-stats.has-bg .stat-grid > li + li{border-left:1px solid rgba(255,255,255,.28);
  padding-left:clamp(2rem,6vw,4.5rem)}
.sec-stats.has-bg.ink-dark .stat-grid > li + li{border-left-color:var(--rule)}

/* Counting figures are tabular so the width does not dance as digits change. */
.stat-value[data-countup]{font-variant-numeric:tabular-nums}

/* A hero with a chosen background color rather than a photo or the house
   burgundy. Which ink rides on it is decided in PHP by measurement. */
.sec-hero.has-bg-color.ink-light,
.sec-hero.has-bg-color.ink-light h1{color:#fff}
.sec-hero.has-bg-color.ink-dark,
.sec-hero.has-bg-color.ink-dark h1{color:var(--ink)}
/* --gold-ink is documented at the top of this file as the only gold safe as
   text on light — 5.43:1, measured on --paper. A chosen background is not
   paper, and that is the assumption it breaks: the same eyebrow on a pale
   grey measured 1.60:1. It was also the single colour holding the whole
   pale range hostage, because scheme_colours() in inc/render_fields.php now
   refuses any ground the scheme cannot carry, and gold-ink needs a ground
   almost as light as paper itself. Dropping it here widens what an editor
   may choose from near-white to anything genuinely pale, and costs nothing
   on the page: every hero in the site is the dark burgundy, which takes the
   light scheme and never reaches this rule. */
.sec-hero.has-bg-color.ink-dark .hero-eyebrow{color:var(--ink)}
.sec-hero.has-bg-color.ink-dark .standfirst{color:var(--muted)}

/* The expand control's button, shared by every map (assets/js/map-expand.js). */
.map-expand a{font-size:1.05rem;line-height:30px;text-align:center;
  font-family:var(--font-ui);color:var(--ink);text-decoration:none;display:block}
.map-expand a:hover{color:var(--burgundy)}

/* ----------------------------------------------------------- timeline -- */
/* Two columns of type, not a table. The dates hold a fixed measure so they
   line up as a column the eye can run down, which is the whole use of a
   timeline; below 40rem they stack, because two columns in a phone's width
   leaves neither enough room to read. */
.sec-timeline .timeline{margin-top:1.5rem;border-top:1px solid var(--rule)}
.timeline-row{display:grid;grid-template-columns:minmax(9rem,14rem) 1fr;gap:0 1.5rem;
  padding:.85rem 0;border-bottom:1px solid var(--rule);align-items:baseline}
.timeline-when{font-family:var(--font-ui);font-size:.92rem;font-weight:700;
  letter-spacing:.01em;color:var(--burgundy)}
.timeline-what{color:var(--ink);line-height:1.55}

@media (max-width:40rem){
  .timeline-row{grid-template-columns:1fr;gap:.15rem}
  .timeline-when{font-size:.82rem;text-transform:uppercase;letter-spacing:.06em;
    color:var(--muted)}
}

/* ------------------------------------------------------- testimonials -- */
/* Somebody's own words, centred and unhurried. The marks are ornament only.
   The figure centres; the quote inside it is ranged left, because a long
   passage set ragged on both edges is read line by line rather than
   straight through. The name, role and portrait stay centred under it. */
.sec-testimonials h2{text-align:center}
.testimonials{display:grid;grid-template-columns:1fr;gap:1rem 3rem;margin-top:1.5rem}
.testimonial{margin:0;text-align:center;display:grid;
  grid-template-rows:subgrid;grid-row:span 3;justify-items:center;align-content:start;
  margin-bottom:2rem}
/* Quote, then who said it, then the circle beneath. The <img> comes first in
   the markup; the rows, not the source order, put it last. */
.testimonial-quote{grid-row:1}
.testimonial figcaption{grid-row:2}
.testimonial-portrait{grid-row:3}
.testimonial-portrait{width:7rem;height:7rem;aspect-ratio:1;border-radius:50%;
  object-fit:cover;border:3px solid var(--gold);display:block}
.testimonial-quote{margin:0;max-width:38rem;font-family:var(--font-display);
  font-size:1.2rem;line-height:1.6;color:var(--ink);text-align:left}
.testimonial-mark{color:var(--gold);opacity:.55;font-size:2.4rem;line-height:0;
  vertical-align:-.35em}
.testimonial-mark-open{margin-right:.15em}
.testimonial-mark-close{margin-left:.1em}
.testimonial figcaption{display:flex;flex-direction:column;gap:.15rem}
.testimonial-who{font-weight:700;color:var(--ink)}
.testimonial-role{color:var(--burgundy)}
.testimonial-chapter{color:var(--muted);font-size:.92rem}
/* On a dark ground. `.sec.ink-light` already turns the section and its
   headings white, which is inherited — and inheritance loses to any of the
   four rules above, every one of which names a colour. So the heading went
   white and every word under it stayed near-black: measured on #0a2c83, the
   heading read 12.35:1 and the quote 1.28:1.

   The role takes --gold-pale rather than white, so the caption keeps the
   two-tone it has on a pale ground, and it echoes the quote marks and the
   portrait's ring. 9.56:1 on that navy; on the lightest background that still
   takes light ink it is 3.25:1, where white itself is only 4.00:1 — the whole
   ink-light scheme is thin at that end, which is a property of the feature
   rather than of this block. */
.sec.ink-light .testimonial-quote,
.sec.ink-light .testimonial-who{color:#fff}
.sec.ink-light .testimonial-role{color:var(--gold-pale)}
.sec.ink-light .testimonial-chapter,
.sec.ink-light .testimonial-count{color:rgba(255,255,255,.82)}

@media (min-width:60rem){
  /* Two-up. Each figure spans quote / caption / portrait rows of the shared
     grid and its children are pinned to those rows, so quotes and captions
     line up across the pair; a figure without a portrait just leaves empty
     space beneath. */
  .testimonials{grid-template-columns:repeat(2,1fr)}
  .testimonials-one .testimonials{grid-template-columns:minmax(0,40rem);justify-content:center}
}

/* ---- one at a time ------------------------------------------------------
   Every rule here hangs off `is-live`, which assets/js/testimonials.js adds.
   The server prints the carousel class on its own, so without that guard a
   page whose script never arrived would stack every quote in one cell with
   nothing hiding the ones underneath — a pile of overlapping text rather
   than the plain list it degrades to now. */
.testimonials-carousel.is-live .testimonials{grid-template-columns:minmax(0,40rem);
  justify-content:center}
/* All of them in the same cell, so the one cell is as tall as the tallest
   quote and the arrows below do not move between steps. The inactive ones
   keep their space — that is the point — so they are hidden by visibility,
   not taken out of the flow.

   Subgrid comes off here. Two-up wants it: the rows are shared, so the names
   in a pair sit on one line. Stacked, that same sharing pins every name to
   where the LONGEST quote ends, which leaves a short quote marooned at the
   top of the cell with its own name eight lines below it. Each figure gets
   its three rows back and is centred in the cell instead. */
.testimonials-carousel.is-live .testimonial{grid-column:1;grid-row:1;margin-bottom:0;
  grid-template-rows:auto auto auto;align-content:center}
/* Only the arriving quote is animated. Transitioning `visibility` as well
   would mean holding it for the length of the fade — `visibility 0s .28s` —
   and for those 280ms the leaving quote is still visibility:visible and
   still findable by the browser's own Find. Which quote is on screen would
   then be a question about the clock. The leaving one goes at once instead,
   and the arriving one fades up over the gap it leaves; they share a cell,
   so there is nothing to see in between. */
.testimonials-carousel.is-live .testimonial{opacity:1;transition:opacity .28s ease}
.testimonials-carousel.is-live .testimonial[aria-hidden="true"]{visibility:hidden;opacity:0;
  transition:none}

.testimonial-controls{display:flex;align-items:center;justify-content:center;
  gap:1rem;margin-top:1.5rem}
.testimonial-count{font-family:var(--font-ui);font-size:.95rem;color:var(--muted);
  min-width:4.5rem;text-align:center;font-variant-numeric:tabular-nums}
/* 2.75rem is 44px: WCAG 2.5.5's target size, which a thumb on a phone needs
   and a 2.6rem circle missed by two pixels. */
.testimonial-arrow{position:relative;width:2.75rem;height:2.75rem;flex:none;padding:0;
  border:1px solid var(--gold);border-radius:50%;background:transparent;cursor:pointer;
  color:var(--burgundy)}
.testimonial-arrow:hover{background:var(--gold);color:var(--ink)}
.testimonial-arrow:focus-visible{outline:2px solid var(--burgundy);outline-offset:2px}
/* The chevron, drawn rather than set: a glyph would carry the body face's own
   weight and sit off-centre in the circle. */
.testimonial-arrow::before{content:"";position:absolute;top:50%;left:50%;
  width:.6rem;height:.6rem;border-right:2px solid currentColor;
  border-bottom:2px solid currentColor}
.testimonial-prev::before{transform:translate(-35%,-50%) rotate(135deg)}
.testimonial-next::before{transform:translate(-65%,-50%) rotate(-45deg)}

.testimonial-status{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;
  clip-path:inset(50%);white-space:nowrap}

@media (prefers-reduced-motion:reduce){
  .testimonials-carousel.is-live .testimonial{transition:none}
}
