/* JGRLS — tokens from 01-Clients/Jackson-George-Regional-Library/DESIGN.md.
   2026-11-13: the library's own look, kept and rebuilt: the photo hero, the six colour tabs, Poppins headings, green
   pill buttons, the blue privacy band and the grey Locations footer. Every text pairing measured (7:1 for body text). */
:root {
  --paper: #FFFFFF; --paper-2: #F2F1F6; --surface: #FFFFFF;
  --ink: #1B1A2E; --ink-soft: #3D3B52; --ink-muted: #4B4962; --ink-deep: #0E0D19;
  --line: #E1DFE8; --field-line: #8E8A9C;
  --action: #12506F; --action-hover: #064463; --focus-dark: #FAC80A;
  --logo-purple: #7A70BF; --logo-green: #50B945; --logo-yellow: #FAC80A; --logo-blue: #39A0D9; --logo-pink: #E1077F;
  --tab-purple: #6C61B5; --green-hover: #63C858; --yellow-hover: #FFD73A; --violet-800: #5347A0; --blue-600: #0E5A82;
  --purple-700: #4D4680; --green-700: #1E5719; --yellow-700: #5F4900; --blue-700: #12506F; --pink-700: #94004F;
  --purple-50: #EDEDFD; --green-50: #E3F5E0; --yellow-50: #F6EED7; --blue-50: #E1F1FC; --pink-50: #FFE3EF;
  --on-dark: #E9E5F4; --on-dark-soft: #D6D2E4;
  --rainbow: linear-gradient(90deg, var(--logo-purple) 0 20%, var(--logo-green) 20% 40%, var(--logo-yellow) 40% 60%, var(--logo-blue) 60% 80%, var(--logo-pink) 80% 100%);

  --f-display: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --f-body: 'Atkinson Hyperlegible Next', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --t-xl: clamp(2.25rem, 1.5rem + 2.6vw, 3.25rem);
  --t-l: clamp(1.875rem, 1.45rem + 1.7vw, 2.75rem);
  --t-h2: clamp(1.5rem, 1.25rem + 1.1vw, 2.125rem);
  --t-h3: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  --t-bl: clamp(1.0625rem, 1.03rem + 0.2vw, 1.1875rem);
  --t-b: 1.0625rem; --t-s: 0.9375rem; --t-label: 0.8125rem;

  --r-sm: 8px; --r-lg: 14px; --r-pill: 999px;
  --gutter: clamp(1.25rem, 5vw, 2.25rem);
  --section: clamp(3.25rem, 2.4rem + 4vw, 6rem);
  --container: 72rem;
  --head-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --house-motion-reveal-duration: 600ms; --house-texture-opacity: 0;
  --shadow-card: 0 1px 2px rgba(27,26,46,.06), 0 3px 10px rgba(27,26,46,.06);
  --shadow-raised: 0 10px 34px rgba(27,26,46,.13);
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--t-b)/1.6 var(--f-body); }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--action); text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; transition: color .18s var(--ease), text-decoration-thickness .18s var(--ease); }
a:hover { color: var(--action-hover); text-decoration-thickness: 2px; }
::selection { background: var(--logo-yellow); color: var(--ink-deep); }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.16; letter-spacing: -0.015em; margin: 0 0 .5em; text-wrap: balance; color: var(--ink); }
h3 { font-size: var(--t-h3); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p, li, dd { text-wrap: pretty; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.icon--ext { width: .85em; height: .85em; margin-left: .25em; vertical-align: -0.05em; }
.tiles { width: 46px; height: auto; flex: none; }
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
main { display: block; }
main:focus { outline: none; }

.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 100; background: var(--ink-deep); color: #fff; padding: .75rem 1.25rem; border-radius: var(--r-sm); font-weight: 700; text-decoration: none; }
.skip:focus { top: .75rem; outline: 3px solid var(--focus-dark); outline-offset: 2px; }

/* ---------- buttons: the library's green pill, with dark words (7.7:1) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: 0 1.6rem; border-radius: var(--r-pill); font-weight: 700; font-size: var(--t-b); line-height: 1.2; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .12s var(--ease); }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--logo-green); color: var(--ink-deep); }
.btn--primary:hover { background: var(--green-hover); color: var(--ink-deep); }
.btn--quiet { background: var(--surface); color: var(--ink); border-color: var(--field-line); }
.btn--quiet:hover { border-color: var(--ink); color: var(--ink); }
.btn--lg { min-height: 56px; padding: 0 2rem; font-size: 1.1875rem; }
.btn--more { background: var(--logo-yellow); color: var(--ink-deep); border-radius: 0; font-family: var(--f-display); font-weight: 600; padding: 0 1.75rem; }
.btn--more:hover { background: var(--yellow-hover); color: var(--ink-deep); }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn--primary .icon--ext, .pills .icon--ext { margin-left: 0; }

/* ---------- header: logo and motto left; catalog search over the menu, right; the black rule under it ---------- */
.site-head { position: relative; z-index: 50; background: var(--surface); border-bottom: 8px solid var(--ink-deep); }
.site-head__bar { display: flex; align-items: center; gap: 1.5rem; min-height: 112px; padding-block: .75rem; }
.brand { display: flex; align-items: center; gap: .85rem; flex: none; border-radius: 6px; text-decoration: none; color: var(--ink-soft); }
.brand img { width: clamp(150px, 15vw, 196px); height: auto; }
/* the motto takes two lines, so the logo, the motto, the search and the menu all fit inside the page's own column */
.brand__tag { font-style: italic; font-size: var(--t-label); line-height: 1.35; max-width: 12.75rem; }
.site-head__right { margin-left: auto; display: grid; justify-items: end; gap: .3rem; }
.hsearch { display: flex; align-items: center; gap: .5rem; margin: 0; }
.hsearch label { font-weight: 600; }
.hsearch input { width: 13.5rem; min-height: 40px; padding: 0 .9rem; background: var(--surface); border: 1px solid var(--field-line); border-radius: var(--r-pill); font-size: 1rem; }
.hsearch input:focus-visible { border-color: var(--action); outline-offset: 2px; }
.hsearch button { display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: 0 1.1rem; border: 0; border-radius: var(--r-pill); background: var(--ink-deep); color: #fff; font-weight: 700; font-size: var(--t-s); cursor: pointer; transition: background-color .18s var(--ease), transform .12s var(--ease); }
.hsearch button:hover { background: var(--blue-600); }
.hsearch button:active { transform: scale(.97); }
.nav { display: flex; align-items: center; }
.nav__list { display: flex; gap: .15rem; list-style: none; margin: 0 -.8rem 0 0; padding: 0; }
.nav__item { position: relative; flex: none; }
.nav__top { position: relative; display: inline-flex; white-space: nowrap; align-items: center; gap: .25rem; min-height: 44px; padding: 0 .8rem; border: 0; background: none; color: var(--ink); font-weight: 700; font-size: var(--t-b); text-decoration: none; cursor: pointer; transition: color .18s var(--ease); }
.nav__top::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: 4px; height: 3px; border-radius: 2px; background: var(--logo-pink); transform: scaleX(0); transform-origin: 0 50%; transition: transform .28s var(--ease); }
.nav__top:hover { color: var(--pink-700); }
.nav__top:hover::after, .nav__top[aria-expanded="true"]::after { transform: scaleX(1); }
.nav__top[aria-current="page"], .nav__top.is-here { color: var(--pink-700); }
.nav__top[aria-current="page"]::after, .nav__top.is-here::after { transform: scaleX(1); }
.nav__chev { width: 1rem; height: 1rem; transition: transform .2s var(--ease); }
.nav__top[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }
.nav__sub { list-style: none; margin: 0; padding: .5rem; position: absolute; top: calc(100% + .35rem); left: 0; min-width: 17rem; background: var(--surface); border: 1px solid var(--line); border-radius: 0 0 var(--r-lg) var(--r-lg); box-shadow: var(--shadow-raised); display: none; }
.nav__sub::before { content: ""; position: absolute; inset: -4px -1px auto -1px; height: 4px; background: var(--rainbow); }
.nav__item:nth-last-child(-n+2) .nav__sub { left: auto; right: 0; }
.nav__top[aria-expanded="true"] + .nav__sub { display: block; animation: jgrls-drop .22s var(--ease) both; }
@keyframes jgrls-drop { from { opacity: 0; transform: translateY(-6px); } }
.nav__sub a { display: block; padding: .65rem .9rem; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-weight: 600; }
.nav__sub a:hover { background: var(--paper-2); color: var(--pink-700); }
.nav__sub a[aria-current="page"] { background: var(--pink-50); color: var(--pink-700); font-weight: 700; }
.menu-btn { display: none; margin-left: auto; align-items: center; gap: .5rem; min-height: 48px; padding: 0 1.1rem; border: 1px solid var(--field-line); border-radius: var(--r-pill); background: var(--surface); font-weight: 700; cursor: pointer; }
.menu-btn__close { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__open { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__close { display: block; }
.msearch { display: none; }

@media (max-width: 1180px) { .brand__tag { display: none; } }
@media (max-width: 1060px) {
  .site-head { position: sticky; top: 0; border-bottom-width: 6px; }
  .site-head__bar { min-height: var(--head-h); padding-block: .4rem; }
  .hsearch { display: none; }
  .msearch { display: block; background: var(--paper-2); padding: .9rem 0 1rem; border-bottom: 1px solid var(--line); }
  .msearch .catalog__label { font-size: var(--t-b); margin-bottom: .35rem; }
  .msearch .catalog__hint { display: none; }
  .msearch .catalog__row { flex-direction: row; }
  .msearch .catalog__go { width: auto; padding-inline: 1.1rem; }
  .js .menu-btn { display: inline-flex; }
  .js .site-head__right { display: block; margin: 0; }
  .js .nav { position: fixed; inset: calc(var(--head-h) + 6px) 0 0 0; background: var(--surface); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 2rem; overflow-y: auto; display: none; }
  .js .nav.is-open { display: flex; animation: jgrls-drop .22s var(--ease) both; }
  .js .nav__list { flex-direction: column; gap: 0; margin: 0; }
  .js .nav__item { border-bottom: 1px solid var(--line); }
  .js .nav__top { width: 100%; justify-content: space-between; min-height: 56px; padding: 0 .25rem; font-size: 1.125rem; }
  .js .nav__top::after { left: 0; right: auto; top: 12px; bottom: 12px; width: 4px; height: auto; transform: scaleY(0); }
  .js .nav__top[aria-current="page"], .js .nav__top.is-here { padding-left: .9rem; }
  .js .nav__top[aria-current="page"]::after, .js .nav__top.is-here::after { transform: scaleY(1); }
  .js .nav__top:hover::after { transform: scaleY(0); }
  .js .nav__top[aria-current="page"]:hover::after, .js .nav__top.is-here:hover::after { transform: scaleY(1); }
  .js .nav__sub, .js .nav__item:nth-last-child(-n+2) .nav__sub { position: static; box-shadow: none; border: 0; padding: 0 0 .75rem .75rem; min-width: 0; }
  .js .nav__sub::before { display: none; }
  html.menu-open { overflow: hidden; }
  html:not(.js) .site-head { position: relative; }
  html:not(.js) .site-head__bar { flex-wrap: wrap; }
  html:not(.js) .site-head__right { width: 100%; justify-items: start; }
  html:not(.js) .nav__list { flex-wrap: wrap; margin: 0; }
  html:not(.js) .nav__sub { display: block; position: static; box-shadow: none; border: 0; }
  html:not(.js) .nav__sub::before { display: none; }
}

/* ---------- page headings ---------- */
.eyebrow { display: flex; width: fit-content; align-items: center; gap: .75rem; margin: 0 0 1rem; font-size: var(--t-label); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.phead { padding: clamp(2.5rem, 2rem + 2.5vw, 4.25rem) 0 0; text-align: center; }
.phead__title { font-size: var(--t-l); max-width: 26ch; margin: 0 auto; }
.phead__title--long { font-size: var(--t-h3); line-height: 1.3; max-width: 44ch; } /* a sentence-long title reads as a sentence, not a wall */
.phead__title::after { content: ""; display: block; width: 5rem; height: 5px; margin: 1.1rem auto 0; border-radius: 3px; background: var(--rainbow); }
.phead__lede { font-size: var(--t-bl); color: var(--ink-soft); max-width: 40rem; margin: 1.25rem auto 0; }
.phead + .section, .phead + .band { padding-top: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.ph--top { object-position: 50% 12%; }
.ph--upper { object-position: 50% 30%; }
/* A photo whose building sign sits at its left edge (Moss Point): the banner shows the right side, so the sign never sits
   behind the page title; a branch card shows the left side, so the sign stays whole. */
.bhero__media .ph--sign-left { object-position: 100% 50%; }
.bcard__photo .ph--sign-left { object-position: 0% 50%; }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section--alt { background: var(--paper-2); }
.sechead { margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); max-width: 46rem; }
.sechead--center { margin-inline: auto; text-align: center; }
.sechead__title { font-size: var(--t-h2); margin: 0; }
.sechead__title--sm { font-size: clamp(1.3125rem, 1.2rem + .6vw, 1.625rem); margin: 0 0 1rem; }
.sechead__lede { color: var(--ink-soft); font-size: var(--t-bl); margin: .75rem 0 1.25rem; }
.subhead { font-size: var(--t-h3); margin: 3rem 0 1.25rem; }

/* bands: the library's white, grey, soft blue and soft yellow rows; and text beside a picture */
.band { padding-block: var(--section); }
.band--grey { background: var(--paper-2); }
.band--sky { background: var(--blue-50); }
.band--sun { background: var(--yellow-50); }
.band--tight { padding-block: clamp(2.25rem, 1.8rem + 2vw, 3.5rem); }
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.75rem, 1rem + 4vw, 4.5rem); align-items: center; }
.split--media-first { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.split--top { align-items: start; }
.split__text > :last-child { margin-bottom: 0; }
.split__text h2 { font-size: var(--t-h2); }
.split__text p, .split__text li { font-size: var(--t-bl); color: var(--ink-soft); max-width: 40rem; }
.split__media { margin: 0; }
.split__media img { width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: var(--shadow-raised); background: var(--paper-2); }
.split__media--paper img { border-radius: 4px; border: 1px solid var(--line); }
.split__media--narrow { width: 100%; max-width: 21rem; justify-self: center; }
.split__media a { display: block; border-radius: var(--r-lg); }
@media (max-width: 52rem) {
  .split, .split--media-first { grid-template-columns: minmax(0, 1fr); }
  .split__media { max-width: 30rem; }
  .split--media-first .split__media { order: 2; }
}
.center { text-align: center; }
.nb { white-space: nowrap; }   /* a year range or a phone number that must not break at its hyphen */
.center > p, .center > .prose-p { margin-inline: auto; }
.lede-p { font-size: var(--t-bl); color: var(--ink-soft); max-width: 40rem; }

/* pill links: e-resources, branches, minutes */
.pills { list-style: none; margin: 1.75rem auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .85rem 1rem; max-width: 58rem; }
.pills--two { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); justify-content: center; justify-items: center; gap: .85rem clamp(1.5rem, 8vw, 7rem); }
.pills--col { flex-direction: column; align-items: center; }
.pills a { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 48px; padding: .35rem 1.5rem; border-radius: var(--r-pill); background: var(--logo-green); color: var(--ink-deep); font-weight: 700; text-align: center; text-decoration: none; line-height: 1.25; transition: background-color .18s var(--ease), transform .12s var(--ease); }
.pills a:hover { background: var(--green-hover); }
.pills a:active { transform: scale(.97); }
.pills__meta { font-weight: 400; }
@media (max-width: 34rem) { .pills--two { grid-template-columns: minmax(0, 1fr); } }

/* ---------- home: the photo hero ---------- */
.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(26rem, 20rem + 18vw, 35.5rem); background: var(--violet-800); color: #fff; }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--fx, 78%) var(--fy, 30%); }
/* two or more home photos: each new one fades in OVER the last (which stays fully shown underneath until it is covered),
   so the picture never dims between them; slow and even (Jesse 2026-12-02: "fade very smoothly ... and not fast") */
.hero__media--fade .hero__ph { position: absolute; inset: 0; opacity: 0; z-index: 0; transition: opacity 3s cubic-bezier(.45, .05, .55, .95); }
.hero__media--fade .hero__ph.is-prev { opacity: 1; z-index: 1; transition: none; }
.hero__media--fade .hero__ph.is-on { opacity: 1; z-index: 2; }
.hero__play { position: absolute; z-index: 3; right: clamp(.75rem, .5rem + 1vw, 1.5rem); bottom: clamp(.75rem, .5rem + 1vw, 1.5rem); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 2px solid var(--ink-deep); border-radius: 50%; background: #fff; color: var(--ink-deep); cursor: pointer; transition: background-color .18s var(--ease), color .18s var(--ease), transform .12s var(--ease); }
.hero__play[hidden] { display: none; }
.hero__play:active { transform: scale(.95); }
.hero__play .icon { width: 1rem; height: 1rem; fill: currentColor; }
.hero__play .icon--play { display: none; margin-left: 2px; }
.hero:not(.is-fading) .hero__play .icon--pause { display: none; }
.hero:not(.is-fading) .hero__play .icon--play { display: block; }
@media (hover: hover) { .hero__play:hover { background: var(--ink-deep); color: #fff; } }
/* the library's purple, laid over the photo so it only ever darkens it: white words keep 7.5:1 at every point they
   can sit on, and the children still show through. It clears to the plain photo on the right. */
.hero__tint { position: absolute; inset: 0; z-index: -1; background: var(--violet-800); mix-blend-mode: multiply; -webkit-mask-image: linear-gradient(90deg, #000 0, #000 58%, rgba(0,0,0,.5) 70%, transparent 86%); mask-image: linear-gradient(90deg, #000 0, #000 58%, rgba(0,0,0,.5) 70%, transparent 86%); }
.hero__in { padding-block: clamp(2.5rem, 2rem + 2.5vw, 4rem); }
.hero__text { max-width: min(41rem, 56%); }
.hero__title { font-size: var(--t-xl); font-weight: 700; line-height: 1.14; color: #fff; margin: 0 0 clamp(1.25rem, 1rem + 1.5vw, 2.25rem); }
.hero__title .phrase { display: inline-block; }
.hero__lede { margin: 0 0 clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem); padding: .15rem 0 .15rem 1.25rem; border-left: 5px solid var(--logo-blue); max-width: 34rem; font-size: clamp(1.1875rem, 1.1rem + .55vw, 1.4375rem); line-height: 1.5; color: #fff; text-wrap: balance; }
/* the library's mission statement (on About since 2026-11-29, when the home photo took the library's new welcome) */
.mission { margin: 1.5rem 0; padding: .15rem 0 .15rem 1.25rem; border-left: 5px solid var(--logo-blue); max-width: 40rem; }
.mission p { margin: 0; font-style: italic; font-size: var(--t-bl); line-height: 1.55; color: var(--ink); }
.hero :focus-visible { outline-color: var(--focus-dark); }
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .hero__media:not(.hero__media--fade) img { animation: jgrls-drift 22s cubic-bezier(.2,.6,.3,1) both; } /* one photo drifts in; several only fade */
}
@keyframes jgrls-drift { from { transform: scale(1.09); } to { transform: scale(1); } }
@media (max-width: 52rem) {
  /* phones and small tablets: the whole photo across the top, clear, melting into the purple the words sit on */
  .hero { display: block; min-height: 0; --hero-photo: clamp(12.5rem, 54vw, 24rem); }
  .hero__media { inset: 0 0 auto 0; height: var(--hero-photo); }
  .hero__media img { object-position: var(--fx, 60%) var(--fy, 30%); }
  .hero__play { top: calc(var(--hero-photo) - 44px - .75rem); bottom: auto; right: .75rem; }
  .hero__tint { inset: 0 0 auto 0; height: var(--hero-photo); mix-blend-mode: normal; background: linear-gradient(180deg, transparent 52%, var(--violet-800) 100%); -webkit-mask-image: none; mask-image: none; }
  .hero__in { padding-top: calc(var(--hero-photo) + .75rem); padding-bottom: 2.25rem; }
  .hero__text { max-width: none; }
}

/* ---------- home: the six colour tabs ---------- */
.tabs { position: relative; z-index: 2; background: var(--ink-deep); }
.tabs__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tab { display: flex; }
.tab a { position: relative; flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; align-content: center; gap: .15rem .5rem; overflow-wrap: anywhere; min-height: 5.75rem; padding: 2rem clamp(.9rem, 2vw, 1.9rem) 1.1rem; font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; line-height: 1.2; color: var(--ink-deep); background: var(--tab); text-decoration: none; transition: transform .32s var(--ease), box-shadow .32s var(--ease); }
/* the row of fine ticks along the top of each tab, as on the library's own */
.tab a::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 20px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.62) 0 1px, transparent 1px 4px); }
.tab--purple { --tab: var(--tab-purple); } .tab--green { --tab: var(--logo-green); } .tab--yellow { --tab: var(--logo-yellow); }
.tab--blue { --tab: var(--logo-blue); } .tab--pink { --tab: var(--logo-pink); } .tab--black { --tab: var(--ink-deep); }
.tab--purple a, .tab--pink a, .tab--black a { color: #fff; }
.tab .icon { width: 1.3em; height: 1.3em; transition: transform .32s var(--ease); }
.tab a:focus-visible { outline: 3px solid currentColor; outline-offset: -9px; border-radius: 0; }
@media (hover: hover) {
  /* a tab rises like a book pulled from the shelf: it grows upward, nothing below it moves */
  .tab a:hover { transform: translateY(-12px); box-shadow: 0 12px 0 var(--tab); color: var(--ink-deep); }
  .tab--purple a:hover, .tab--pink a:hover, .tab--black a:hover { color: #fff; }
  .tab a:hover .icon { transform: translateX(6px); }
}
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .tab a { animation: jgrls-shelve .7s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 250ms); }
}
@keyframes jgrls-shelve { from { transform: translateY(100%); } }
@media (max-width: 64rem) { .tabs__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 34rem) {
  .tabs__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tab a { min-height: 5rem; padding: 1.75rem 1rem .9rem; font-size: 1.1875rem; }
  .tab a::before { height: 14px; }
}
@media (max-width: 23.5rem) { .tab .icon { display: none; } } /* the narrowest phones: the words keep their size, the arrow steps aside */

/* ---------- home: flyers on the hatched ground, About Us, the plan, the two special libraries ---------- */
.home-flyers { padding-block: clamp(2.5rem, 2rem + 2.5vw, 4.25rem) clamp(2rem, 1.5rem + 2vw, 3.5rem); background: repeating-linear-gradient(135deg, rgba(27,26,46,.028) 0 2px, transparent 2px 10px), var(--paper); }
.home-flyers__title { font-size: var(--t-h2); text-align: center; margin: 0; }
.home-flyers__title::after { content: ""; display: block; width: 5rem; height: 5px; margin: 1rem auto 0; border-radius: 3px; background: var(--rainbow); }

.about-band { position: relative; isolation: isolate; padding-block: clamp(3.5rem, 2.5rem + 5vw, 7rem); }
.about-band__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.about-band__bg img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; }
/* white wash over the stacks: dark text keeps 7:1 over the darkest book spine */
.about-band__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.95) 0, rgba(255,255,255,.9) 48%, rgba(255,255,255,.72) 100%); }
.about-band__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: center; }
.about-band h2 { font-size: var(--t-l); }
.about-band p { font-size: var(--t-bl); color: var(--ink); max-width: 34rem; }
.about-band__logo { justify-self: center; width: min(100%, 23rem); padding: 1.25rem 1.5rem; background: rgba(255,255,255,.86); border-radius: var(--r-lg); box-shadow: var(--shadow-raised); }
.about-band__logo img { width: 100%; height: auto; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .about-band__bg img { animation: jgrls-slide linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  }
}
@keyframes jgrls-slide { from { transform: translateY(-7%); } to { transform: translateY(7%); } }
@media (max-width: 52rem) { .about-band__in { grid-template-columns: minmax(0, 1fr); } .about-band__logo { justify-self: start; width: min(100%, 17rem); } }

.plan-row h2 { font-size: var(--t-h2); }
.plan-row__media a { display: block; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-raised); transition: box-shadow .25s var(--ease); }
.plan-row__media img { width: 100%; height: auto; transition: transform .6s var(--ease); }
@media (hover: hover) { .plan-row__media a:hover img { transform: scale(1.03); } }

.bookstop { padding-block: 0 var(--section); }
.bookstop__title { font-size: var(--t-l); text-align: center; margin: 0 auto clamp(2rem, 1.5rem + 2.5vw, 3.5rem); }
.bookstop__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: stretch; }
.feature { position: relative; display: flex; flex-direction: column; }
.feature__stage { position: relative; flex: 1 0 auto; min-height: clamp(19rem, 14rem + 16vw, 27rem); padding: 1.75rem 1rem 3.75rem; border-radius: var(--r-lg); background: var(--paper-2); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.feature__stage--photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; }
.feature__stage--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,13,25,.05), rgba(14,13,25,.35)); }
/* the library's flyers, laid on the table like papers: each one straightens and comes forward when pointed at */
.paper { position: relative; z-index: 1; display: block; height: clamp(13.5rem, 9rem + 12vw, 20rem); flex: none; margin-inline: -1rem; border-radius: 3px; box-shadow: 0 10px 28px rgba(14,13,25,.28); transform: rotate(var(--tilt, 0deg)); transition: transform .45s var(--ease), box-shadow .45s var(--ease); background: #fff; }
.paper img { height: 100%; width: auto; max-width: none; border-radius: 3px; }
.paper:nth-child(1) { --tilt: -5deg; } .paper:nth-child(2) { --tilt: 4deg; }
.feature__stage--photo .paper { --tilt: 3deg; z-index: 2; height: clamp(18rem, 12rem + 15vw, 26rem); }
.paper:focus-visible { outline: 3px solid var(--action); outline-offset: 4px; z-index: 3; }
@media (hover: hover) { .paper:hover { transform: rotate(0deg) scale(1.04); z-index: 3; box-shadow: 0 18px 44px rgba(14,13,25,.34); } }
.feature__card { position: relative; z-index: 4; flex: none; margin: -2.25rem clamp(.75rem, 2vw, 1.75rem) 0; padding: 1.5rem 1.6rem 2.6rem; background: var(--surface); border-radius: 6px; box-shadow: var(--shadow-raised); }
.feature__card h3 { font-size: var(--t-h3); }
.feature__card p { color: var(--ink-soft); }
.feature__card p:last-of-type { margin-bottom: 0; }
.feature__more { position: relative; z-index: 5; margin: -1.5rem 0 0 clamp(.75rem, 2vw, 1.75rem); }
@media (max-width: 52rem) { .bookstop__grid { grid-template-columns: minmax(0, 1fr); gap: 3rem; } }

/* ---------- catalog search ---------- */
.catalog__label { display: block; font-weight: 700; font-size: var(--t-bl); margin-bottom: .5rem; }
.catalog__row { display: flex; gap: .5rem; }
.catalog__field { flex: 1; min-width: 0; min-height: 56px; padding: 0 1.1rem; font-size: 1.125rem; background: var(--surface); border: 1px solid var(--field-line); border-radius: var(--r-pill); }
.catalog__field:focus-visible { border-color: var(--action); outline-offset: 2px; }
.catalog__go { min-height: 56px; }
.catalog__hint { font-size: var(--t-s); color: var(--ink-muted); margin: .6rem 0 0; }
.catalog--md .catalog__field, .catalog--md .catalog__go { min-height: 48px; }
.catalog--md { max-width: 40rem; }
.center .catalog--md { margin-inline: auto; text-align: left; }

/* status: words always, the dot is decoration */
.status { display: inline-flex; align-items: center; gap: .5rem; margin: 0; font-weight: 700; }
.status__dot { width: .7rem; height: .7rem; border-radius: 50%; flex: none; }
.status.is-open { color: var(--green-700); }
.status.is-open .status__dot { background: var(--logo-green); box-shadow: 0 0 0 3px var(--green-50); }
.status.is-closed { color: var(--pink-700); }
.status.is-closed .status__dot { border: 2px solid var(--pink-700); }

/* ---------- events ---------- */
.evlist { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.ev { display: flex; gap: 1rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1rem 1.1rem; transition: border-color .18s var(--ease); }
.ev__date { flex: none; width: 3.5rem; margin: 0; text-align: center; border-radius: var(--r-sm); background: var(--blue-600); padding: .35rem 0 .45rem; line-height: 1.1; }
.ev__mon { display: block; font-size: var(--t-label); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.ev__day { display: block; font-family: var(--f-display); font-size: 1.5rem; font-weight: 700; color: #fff; }
.ev__body { min-width: 0; }
.ev__title { font-family: var(--f-body); font-size: 1.125rem; font-weight: 700; line-height: 1.35; letter-spacing: 0; margin: 0 0 .25rem; }
.ev__title a { color: var(--ink); text-decoration-color: var(--line); }
.ev__title a:hover { color: var(--action); text-decoration-color: currentColor; }
.ev__meta { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; margin: 0; color: var(--ink-muted); font-size: var(--t-s); }
.ev__meta > span { display: inline-flex; align-items: center; gap: .35rem; }
.empty { padding: 1.25rem; border: 1px dashed var(--field-line); border-radius: var(--r-lg); color: var(--ink-soft); }

/* ---------- branches ---------- */
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr)); gap: 1rem; }
.bgrid--two { grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
.bcard { position: relative; display: flex; flex-direction: column; gap: .6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem; transition: border-color .18s var(--ease); }
.bcard__name { font-size: 1.1875rem; margin: 0; }
.bcard__name a { color: var(--ink); text-decoration-color: var(--line); }
.bcard__name a:hover { color: var(--action); text-decoration-color: currentColor; }
.bcard .status { font-size: var(--t-s); }
.addr { color: var(--ink-soft); line-height: 1.5; }
.addr__where { display: block; font-weight: 700; color: var(--ink); }
.bcard__links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: auto 0 0; padding-top: .25rem; }
.tel, .dir { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-weight: 700; }

/* ---------- doors (the 404 page's quick links) ---------- */
.doors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.doors a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: .2rem 1rem; align-items: center; height: 100%; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; color: var(--ink); font-weight: 700; transition: border-color .18s var(--ease); }
.doors a:hover { border-color: var(--action); color: var(--ink); }
.doors .icon { grid-row: span 2; width: 2.75rem; height: 2.75rem; padding: .6rem; border-radius: 12px; background: var(--blue-50); color: var(--blue-700); }
.doors li:nth-child(5n+2) .icon { background: var(--green-50); color: var(--green-700); }
.doors li:nth-child(5n+3) .icon { background: var(--yellow-50); color: var(--yellow-700); }
.doors li:nth-child(5n+4) .icon { background: var(--purple-50); color: var(--purple-700); }
.doors li:nth-child(5n+5) .icon { background: var(--pink-50); color: var(--pink-700); }
.doors__t { font-weight: 700; font-size: 1.125rem; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .18em; }
.doors a:hover .doors__t { text-decoration-color: currentColor; }
.doors__d { color: var(--ink-soft); font-size: var(--t-s); }
.doors--compact { margin-top: 2rem; }
.error404 main > .section { max-width: 54rem; }

/* ---------- documents ---------- */
.doc { display: inline-flex; align-items: center; gap: .55rem; min-height: 32px; font-weight: 700; }
.doc__meta { font-weight: 400; color: var(--ink-muted); }
.docs { list-style: none; margin: 1rem 0 2rem; padding: 0; display: grid; gap: .1rem; }
.docs li { padding: .6rem 0; border-bottom: 1px solid var(--line); }
/* the library's lists of minutes, policies and guides: one green pill each */
.docs--pills { margin: 1.75rem auto 0; max-width: 46rem; gap: .8rem; justify-items: center; }
.docs--pills li { padding: 0; border: 0; }
.docs--pills .doc { justify-content: center; min-height: 48px; padding: .35rem 1.5rem; border-radius: var(--r-pill); background: var(--logo-green); color: var(--ink-deep); text-decoration: none; text-align: center; line-height: 1.25; transition: background-color .18s var(--ease), transform .12s var(--ease); }
.docs--pills .doc:hover { background: var(--green-hover); }
.docs--pills .doc:active { transform: scale(.97); }
.docs--pills .doc__meta { color: var(--ink-deep); }

/* ---------- the library's own map (OpenStreetMap drawing, names as real text) ---------- */
.map { margin: 0; container-type: inline-size; }
.map__frame { position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--blue-50); }
.map__img { display: block; width: 100%; height: auto; border-radius: calc(var(--r-lg) - 1px); }
.map__pins { list-style: none; margin: 0; padding: 0; }
.map__pin, .map__ctx, .map__dot--other { position: absolute; left: var(--x); top: var(--y); }
.map__mark { position: absolute; display: flex; align-items: center; gap: .3rem; white-space: nowrap; min-height: 24px; color: var(--ink); font-weight: 700; font-size: var(--t-s); line-height: 1.2; text-decoration: none; }
.map__pin--e .map__mark { left: -.5rem; top: 0; transform: translateY(-50%); }
.map__pin--w .map__mark { right: -.5rem; top: 0; transform: translateY(-50%); flex-direction: row-reverse; }
.map__pin--n .map__mark { left: 0; bottom: -.5rem; transform: translateX(-50%); flex-direction: column-reverse; gap: .15rem; }
.map__pin--s .map__mark { left: 0; top: -.5rem; transform: translateX(-50%); flex-direction: column; gap: .15rem; }
.map__dot { flex: none; width: 1rem; height: 1rem; border-radius: 50%; background: var(--action); border: 3px solid var(--surface); box-shadow: 0 1px 3px rgba(27,26,46,.35); }
.map__name { padding: .05rem .45rem; border-radius: var(--r-pill); background: var(--surface); box-shadow: 0 1px 2px rgba(27,26,46,.18); }
a.map__mark:hover .map__name { text-decoration: underline; }
a.map__mark:hover .map__dot { background: var(--pink-700); }
.map__ctx { transform: translate(-50%, -50%); font-style: italic; font-size: var(--t-s); color: var(--ink-muted); white-space: nowrap; pointer-events: none; }
.map__dot--other { width: .6rem; height: .6rem; border-width: 2px; transform: translate(-50%, -50%); background: var(--field-line); box-shadow: none; }
.map__pin--here .map__dot { width: 1.25rem; height: 1.25rem; background: var(--pink-700); }
@container (max-width: 26rem) {
  .map__pin--k-gautier .map__mark, .map__pin--k-pascagoula .map__mark { left: 0; right: auto; top: -.5rem; bottom: auto; transform: translateX(-50%); flex-direction: column; gap: .15rem; }
  .map__pin--k-moss-point .map__mark { left: 0; right: auto; top: auto; bottom: -.5rem; transform: translateX(-50%); flex-direction: column-reverse; gap: .15rem; }
  .map__name { font-size: var(--t-label); }
  .map__ctx { font-size: var(--t-label); }
}
/* a library's card and its pin light each other (Locations) */
.map__dot, .map__name { transition: transform .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease); }
.map__pin.is-lit { z-index: 2; }
.map__pin.is-lit .map__dot { background: var(--pink-700); transform: scale(1.3); }
.map__pin.is-lit .map__name { background: var(--ink-deep); color: var(--surface); }
.bcard.is-lit { border-color: var(--action); box-shadow: 0 0 0 1px var(--action); }
.map__credit { margin: .4rem 0 0; font-size: var(--t-label); color: var(--ink-muted); }
.map__credit a { display: inline-block; padding-block: .3rem; color: var(--ink-muted); }
.locs { display: grid; grid-template-columns: minmax(0, 27rem) minmax(0, 1fr); gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: start; }
.locs__map { position: sticky; top: 1.5rem; }
.locs .subhead { margin-top: 2.5rem; }
@media (max-width: 60rem) { .locs { grid-template-columns: minmax(0, 1fr); } .locs__map { position: static; max-width: 34rem; margin-inline: auto; width: 100%; } }

/* ---------- branch page: the photo across the top with the library's name on it ---------- */
.bhero { position: relative; isolation: isolate; display: grid; align-items: end; min-height: clamp(15rem, 11rem + 15vw, 24rem); background: var(--ink-deep); }
.bhero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.bhero__media img { width: 100%; height: 100%; object-fit: cover; }
/* dark wash, strongest where the name sits: white on it clears 4.5:1 for the large name even over white sky */
.bhero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,13,25,.38) 0, rgba(14,13,25,.5) 45%, rgba(14,13,25,.86) 100%); }
.bhero__in { padding-block: clamp(2rem, 1.5rem + 3vw, 3.5rem) clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem); text-align: center; }
.bhero__title { font-size: var(--t-xl); color: #fff; margin: 0 auto .9rem; max-width: 24ch; text-shadow: 0 2px 18px rgba(14,13,25,.5); }
.bhero .status { padding: .4rem .95rem; border-radius: var(--r-pill); background: var(--surface); box-shadow: var(--shadow-card); }
.bhero :focus-visible { outline-color: var(--focus-dark); }
@media (prefers-reduced-motion: no-preference) { .js-reveal .bhero__media img { animation: jgrls-drift 18s cubic-bezier(.2,.6,.3,1) both; } }
.branch { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start; }
.branch__info { display: grid; gap: 1rem; }
.branch__main { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 1.5rem + 2vw, 3rem); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem 1.25rem 1rem; }
.panel__h { font-family: var(--f-display); font-size: 1.0625rem; font-weight: 700; letter-spacing: 0; color: var(--ink); margin: 0 0 .75rem; }
.panel__sub { font-family: var(--f-body); font-size: var(--t-b); font-weight: 700; letter-spacing: 0; margin: 1.25rem 0 .5rem; }
.panel__links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin: .5rem 0 0; }
/* a link alone on its line (not inside a sentence): its box is the whole line, so it is never under 24px to tap */
.tap { display: inline-block; padding-block: .125rem; }
.panel__note { color: var(--ink-muted); font-size: var(--t-s); margin: .5rem 0 0; }
.hours { margin: 0; }
.hours__row { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.hours__row:last-child { border-bottom: 0; }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; text-align: right; }
.closures { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); font-size: var(--t-s); }
.closures li { margin-bottom: .35rem; }
.closures a { display: inline-block; padding: .15rem 0; }
.addcal { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.addcal__btn { padding-inline: 1.1rem; }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.features li { display: flex; align-items: center; gap: .5rem; }
.features .icon { color: var(--green-700); }
.plain-list { margin: 0; padding-left: 1.1rem; }
.plain-list li { margin-bottom: .5rem; }
/* the holiday schedule: the library's table, blue down the left */
.holidays { width: 100%; max-width: 46rem; margin: 0 auto; border-collapse: separate; border-spacing: 0 4px; }
.holidays caption { caption-side: top; font-family: var(--f-display); font-weight: 700; font-size: var(--t-h2); letter-spacing: -0.015em; color: var(--ink); margin-bottom: 1.25rem; }
.holidays th, .holidays td { padding: .7rem 1rem; text-align: left; vertical-align: top; }
.holidays th[scope="row"] { width: 38%; background: var(--blue-600); color: #fff; font-weight: 700; border-radius: 6px 0 0 6px; }
.holidays td { background: var(--surface); border-radius: 0 6px 6px 0; }
.holidays thead th { font-size: var(--t-label); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); padding-block: .2rem; }
@media (max-width: 30rem) { .holidays th[scope="row"] { width: 42%; } .holidays th, .holidays td { padding: .6rem .7rem; } }

/* ---------- prose pages ---------- */
.prose { max-width: 46rem; }
.prose--wide { max-width: 44rem; }
.prose--center { margin-inline: auto; }
.prose h2 { font-size: var(--t-h2); margin: 2.5rem 0 .75rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .4rem; }
.prose p, .prose li { font-size: var(--t-bl); color: var(--ink-soft); max-width: 40rem; }
.prose .callout { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--logo-blue); border-radius: var(--r-sm); padding: 1rem 1.25rem; }
.prose strong { color: var(--ink); }

/* ---------- footer: the blue privacy band, the grey Locations block, the black bar ---------- */
.site-foot { margin-top: 0; background: var(--blue-600); }
.privacy-band { background: var(--blue-600); color: #fff; padding-block: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem); text-align: center; }
.privacy-band p { margin: 0 auto; max-width: 52rem; font-family: var(--f-display); font-style: italic; font-weight: 600; font-size: var(--t-bl); line-height: 1.5; text-wrap: balance; }
.privacy-band a { color: #fff; text-decoration-color: rgba(255,255,255,.6); }
.privacy-band a:hover { color: #fff; text-decoration-color: #fff; }
.privacy-band :focus-visible, .foot-bar :focus-visible { outline-color: var(--focus-dark); }
.foot-locs { background: var(--paper-2); padding-block: clamp(2.5rem, 2rem + 2.5vw, 4rem); }
/* The two bands at the foot of every page are laid out only as a reader nears them (their type faces are fetched then
   too), so the top of the page draws sooner on a slow phone. They stay in the page for screen readers, the keyboard
   and find-in-page. The sizes are close guesses the browser replaces with the real ones. */
.privacy-band { content-visibility: auto; contain-intrinsic-size: auto 11rem; }
.foot-locs { content-visibility: auto; contain-intrinsic-size: auto 38rem; }
@media (max-width: 40rem) { .privacy-band { contain-intrinsic-size: auto 16rem; } .foot-locs { contain-intrinsic-size: auto 62rem; } }
.foot-locs__h { font-size: var(--t-h2); text-align: center; margin: 0 0 clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem); }
.foot-locs__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2rem clamp(1rem, 2vw, 2.25rem); font-size: var(--t-s); line-height: 1.5; }
.foot-locs__list li { display: flex; flex-direction: column; align-items: flex-start; }
.foot-locs__name { display: inline-flex; align-items: center; min-height: 32px; font-family: var(--f-display); font-weight: 600; font-size: var(--t-s); line-height: 1.3; color: var(--ink); text-decoration-color: transparent; margin-bottom: .2rem; }
.foot-locs__name:hover { color: var(--action); text-decoration-color: currentColor; }
.foot-locs__list .tel { min-height: 32px; font-weight: 600; }
.foot-locs__mgr { color: var(--ink-muted); }
@media (max-width: 64rem) { .foot-locs__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .foot-locs__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 24rem) { .foot-locs__list { grid-template-columns: minmax(0, 1fr); } }
.foot-bar { background: var(--ink-deep); color: var(--on-dark); padding-block: 1rem; font-size: var(--t-s); }
.foot-bar__in { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.75rem; }
.foot-bar p { margin: 0; }
.foot-bar a { color: #fff; text-decoration-color: rgba(255,255,255,.4); }
.foot-bar a:hover { color: #fff; text-decoration-color: #fff; }
.foot-bar__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.foot-bar__links a { display: inline-flex; align-items: center; min-height: 44px; }
.social { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: .5rem; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 6px; color: #fff; background: var(--s); transition: transform .18s var(--ease); }
.social svg { width: 22px; height: 22px; }
.social a:hover { transform: translateY(-2px); }
@media (max-width: 40rem) { .social { margin-left: 0; } }

/* ---------- reveal (the first screen only; CSS, so nothing waits on a script) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal [data-reveal] { animation: jgrls-rise var(--house-motion-reveal-duration) var(--ease) both; }
  .js-reveal [data-reveal] + [data-reveal] { animation-delay: 90ms; }
  .js-reveal [data-reveal] + [data-reveal] + [data-reveal] { animation-delay: 180ms; }
}
@keyframes jgrls-rise { from { opacity: 0; transform: translateY(14px); } }
/* the colour bar under a page's title draws in from the left, after the title has risen */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .phead__title::after { animation: jgrls-draw .9s var(--ease) .32s both; }
}
@keyframes jgrls-draw { from { clip-path: inset(0 100% 0 0 round 3px); } to { clip-path: inset(0 0 0 0 round 3px); } }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  /* one column: address, hours and features first, then what is happening, and the map last */
  .branch { display: flex; flex-direction: column; align-items: stretch; gap: 1rem; }
  .branch__info, .branch__main { display: contents; }
  .branch__main > * { order: 2; margin-top: 1.25rem; }
  .panel--map { order: 3; margin-top: 1.25rem; }
}
@media (max-width: 640px) {
  :root { --head-h: 66px; }
  input, select, textarea { font-size: max(1rem, 1em) !important; }
  .site-head__bar { gap: .75rem; }
  .catalog__row { flex-direction: column; }
  .catalog__go { width: 100%; }
  .ev { padding: .9rem; gap: .8rem; }
}
@media (hover: hover) { .bcard:hover, .ev:hover { border-color: var(--field-line); } }
@media (forced-colors: active) {
  .status__dot, .tab a::before { forced-color-adjust: none; }
  .btn, .catalog__field, .bcard, .ev, .panel, .doors a, .pills a, .docs--pills .doc, .tab a, .chip span { border: 1px solid CanvasText; }
  .hero__tint { display: none; }
  .hero__play { border-color: CanvasText; }
}
@media print {
  .site-head, .site-foot, .skip, .catalog, .tabs, .msearch, .leaf, .hero__play { display: none !important; }
  body { background: #fff; }
}

/* ---------- the page turn ----------
   Following a link turns the page the way a paper page turns: the page lifts at its right edge and curls over toward
   the left, and the next page is lying underneath. Three pieces, all reading one number (--turn-p, 0 at the start of
   the turn, 1 at the end) so they can never drift apart:
     1. the old page, cut away along the fold as the fold travels right to left (tilted: the bottom corner lifts
        first, the way a hand turns a page, and the fold straightens as the page comes over);
     2. the leaf: the back of the page, a strip of paper riding the fold, bright along the ridge of the curl and
        dark in the crease, casting its shadow back onto the page it is leaving;
     3. the shadow the lifted page throws ahead of the fold, onto the page underneath; it grows as the page lifts and
        is gone as the page lands.
   Back runs the same number from 1 to 0: the page you return to comes over from the left and is laid flat.
   Built on the browser's own page-to-page transition: a browser without it simply opens the next page, and nobody
   who asks their device (or the footer switch) for no animation ever sees it. */
@property --turn-p { syntax: '<number>'; inherits: false; initial-value: 0; }
@keyframes jgrls-turn { from { --turn-p: 0; } to { --turn-p: 1; } }
:root { --turn-dur: .95s; --turn-ease: cubic-bezier(.6, .04, .3, 1); --turn-a0: 6.5; --turn-a1: 2.4; --leaf-w: .42; }
.leaf { position: fixed; inset: 0; z-index: 90; pointer-events: none; view-transition-name: page-leaf; }
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition { background: var(--ink-deep); }
::view-transition-group(root), ::view-transition-group(page-leaf) { animation: none; }
::view-transition-group(page-leaf) { z-index: 5; overflow: clip; }
::view-transition-old(root), ::view-transition-new(root), ::view-transition-image-pair(page-leaf), ::view-transition-new(page-leaf) {
  animation: jgrls-turn var(--turn-dur) var(--turn-ease) both; mix-blend-mode: normal;
  /* the fold leans most as the corner first lifts and straightens as the page comes over */
  --turn-angle: calc((var(--turn-a0) + (var(--turn-a1) - var(--turn-a0)) * var(--turn-p)) * 1deg);
  --turn-tilt: calc(tan(var(--turn-angle)) * 50vh);
  /* where the middle of the fold is, from just past the right edge to just past the left */
  --fold: calc((1 - var(--turn-p)) * (100% + 2 * var(--turn-tilt)) - var(--turn-tilt));
}
/* 1. the page on top is cut at the fold; the page underneath comes up out of the shade */
::view-transition-old(root) { z-index: 2; clip-path: polygon(0 0, calc(var(--fold) + var(--turn-tilt)) 0, calc(var(--fold) - var(--turn-tilt)) 100%, 0 100%); }
::view-transition-new(root) { z-index: 1; filter: brightness(calc(.88 + .12 * var(--turn-p))); }
/* 2. the leaf. Its left edge is the page's free edge; its right edge is the fold. */
::view-transition-image-pair(page-leaf) {
  inset: -7% auto -7% 0; width: 100%; height: auto; isolation: auto; transform-origin: 0 50%;
  transform: translateX(calc(var(--fold) - var(--turn-p) * var(--leaf-w) * 100%)) rotate(var(--turn-angle)) scaleX(calc(var(--turn-p) * var(--leaf-w)));
  background:
    linear-gradient(90deg, rgba(14,13,25,.18) 0, rgba(14,13,25,.05) 7%, rgba(14,13,25,0) 26%, rgba(255,255,255,0) 50%, rgba(255,255,255,.92) 79%, rgba(255,255,255,.35) 90%, rgba(14,13,25,.28) 100%),
    linear-gradient(90deg, #E9E6F0, #F7F6FA 52%, #FFFFFF 80%, #D9D5E3);
  box-shadow: -18px 0 38px rgba(14,13,25,.28), -3px 0 8px rgba(14,13,25,.2);
}
::view-transition-old(page-leaf) { display: none; animation: none; }
/* 3. the shadow ahead of the fold hangs off the leaf's right edge */
::view-transition-new(page-leaf) {
  display: block; inset: 0 auto 0 100%; width: 70%; height: 100%; transform-origin: 0 50%;
  transform: scaleX(calc(min(1, (1 - var(--turn-p)) * 3.2))); opacity: calc(min(1, var(--turn-p) * 8));
  background: linear-gradient(90deg, rgba(14,13,25,.46) 0, rgba(14,13,25,.22) 20%, rgba(14,13,25,.07) 58%, rgba(14,13,25,0) 100%);
}
/* back: the same number run from 1 to 0, with the two pages trading places */
html:active-view-transition-type(back)::view-transition-old(root), html:active-view-transition-type(back)::view-transition-new(root),
html:active-view-transition-type(back)::view-transition-image-pair(page-leaf), html:active-view-transition-type(back)::view-transition-new(page-leaf) { animation-direction: reverse; }
html:active-view-transition-type(back)::view-transition-old(root) { z-index: 1; clip-path: none; filter: brightness(calc(.88 + .12 * var(--turn-p))); }
html:active-view-transition-type(back)::view-transition-new(root) { z-index: 2; filter: none; clip-path: polygon(0 0, calc(var(--fold) + var(--turn-tilt)) 0, calc(var(--fold) - var(--turn-tilt)) 100%, 0 100%); }
@media (max-width: 640px) { :root { --turn-dur: .8s; --turn-a0: 4.2; --turn-a1: 1.8; --leaf-w: .5; } }

/* ---------- calendar ---------- */
.cal__controls { display: grid; gap: 1.25rem; margin-bottom: 2rem; }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem .7rem; }
.chips__legend { font-weight: 700; margin-bottom: .6rem; padding: 0; width: 100%; text-align: center; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: .35rem; min-height: 46px; padding: 0 1.15rem; border: 2px solid var(--logo-green); border-radius: var(--r-pill); background: var(--surface); color: var(--ink); font-weight: 700; transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease); }
.chip__tick { display: none; width: 1rem; height: 1rem; }
.chip input:checked + span { background: var(--logo-green); color: var(--ink-deep); }
.chip input:checked + span .chip__tick { display: inline-block; }
.chip input:focus-visible + span { outline: 3px solid var(--action); outline-offset: 3px; }
@media (hover: hover) { .chip input:not(:checked):hover + span { background: var(--green-50); } }
.cal__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; }
.cal__search { flex: 1 1 18rem; margin: 0; }
.cal__search label { display: block; font-weight: 700; margin-bottom: .4rem; }
.cal__search input { width: 100%; min-height: 48px; padding: 0 1rem; border: 1px solid var(--field-line); border-radius: var(--r-pill); background: var(--surface); }
.cal__search input::placeholder { color: var(--ink-muted); opacity: 1; }
.seg { border: 0; margin: 0; padding: 4px; display: inline-flex; background: var(--paper-2); border-radius: var(--r-pill); }
.seg__opt { position: relative; }
.seg__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg__opt span { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: 0 1rem; border-radius: var(--r-pill); font-weight: 700; color: var(--ink-soft); }
.seg__opt input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-card); }
.seg__opt input:focus-visible + span { outline: 3px solid var(--action); outline-offset: 2px; }
.js .cal__apply { display: none; }
.cal__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cal__month { font-size: clamp(1.375rem, 1.2rem + .8vw, 1.875rem); margin: 0; text-align: center; }
.cal__nav { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: 0 .75rem; font-weight: 700; text-decoration: none; border-radius: var(--r-pill); }
.cal__nav:hover { background: var(--paper-2); }
@media (max-width: 560px) { .cal__nav > span:not(.vh) { display: none; } .cal__nav { min-width: 44px; justify-content: center; } }
.cal__count { margin: 1rem 0 1.5rem; color: var(--ink-muted); font-weight: 600; }
.cal__out { min-height: 12rem; transition: opacity .2s var(--ease); }
.cal__out.is-loading { opacity: .45; }
.calday { margin-bottom: 2rem; scroll-margin-top: 6rem; }
.calday__h { font-family: var(--f-body); font-size: 1.125rem; letter-spacing: 0; margin: 0 0 .75rem; padding-bottom: .5rem; border-bottom: 2px solid var(--ink); }
.calday__dow { color: var(--action); }
.evlist--day .ev { padding: .9rem 1.1rem; }
.cal__feed { margin-top: 2.5rem; }
.cal__feed a { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; }
.month { width: 100%; border-collapse: collapse; table-layout: fixed; background: var(--surface); border: 1px solid var(--line); }
.month th { padding: .6rem .4rem; font-size: var(--t-label); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); background: var(--paper-2); }
.month th abbr { text-decoration: none; }
.month td { vertical-align: top; height: 7.5rem; padding: .4rem; border: 1px solid var(--line); }
.month__pad { background: var(--paper-2); }
.month__num { display: inline-flex; align-items: center; justify-content: center; min-width: 2rem; height: 2rem; border-radius: 50%; font-weight: 700; color: var(--ink); text-decoration: none; }
a.month__num:hover { background: var(--blue-50); }
.month td.is-today .month__num { background: var(--logo-pink); color: #fff; font-size: 1.1875rem; min-width: 2.25rem; height: 2.25rem; }
.month__ev { list-style: none; margin: .2rem 0 0; padding: 0; display: grid; gap: .2rem; }
/* the library's blue event bars */
.month__ev a { display: block; padding: .25rem .4rem; border-radius: 4px; background: var(--blue-600); color: #fff; font-size: .8125rem; line-height: 1.35; text-decoration: none; overflow-wrap: anywhere; transition: background-color .18s var(--ease); }
.month__ev a:hover { background: var(--action-hover); color: #fff; }
.month__t { font-weight: 700; }
.month__more { display: inline-block; margin-top: .2rem; font-size: .8125rem; font-weight: 700; }
.month__dots { display: none; }
.cal__agenda { display: none; margin-top: 2rem; }
@media (max-width: 760px) {
  .month td { height: 3.5rem; padding: .25rem; text-align: center; }
  .month__ev, .month__more { display: none; }
  .month__dots { display: flex; justify-content: center; gap: 3px; margin-top: 2px; }
  .month__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-600); }
  .month th { padding: .5rem 0; letter-spacing: 0; }
  .cal__agenda { display: block; }
}

/* ---------- event page ---------- */
.event { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start; }
.event__img { margin: 0 0 1.5rem; }
.event__img img { width: 100%; height: auto; border-radius: var(--r-lg); border: 1px solid var(--line); }
.prose .flyers__list.event__flyers { columns: 1; max-width: 26rem; margin: 0 0 1.75rem; padding: 0; list-style: none; } /* [2026-12-03] the event's own flyer */
.prose .event__flyers > li { margin: 0 0 1.25rem; padding: 0; }
.prose .event__flyers > li::before { content: none; }
.event__side { display: grid; gap: 1rem; }
.event__when { font-size: var(--t-bl); }
@media (max-width: 900px) { .event { grid-template-columns: minmax(0, 1fr); } .event__side { order: -1; } }

/* ---------- flyers (posted by staff) ---------- */
.flyers__list { list-style: none; margin: 0; padding: 0; columns: 4 15rem; column-gap: 1.25rem; }
.flyers__list > li { break-inside: avoid; margin-bottom: 1.25rem; }
.flyers__list--two { columns: 2 13rem; }
.flyer__fig { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.flyer__img { display: block; position: relative; background: var(--paper-2); overflow: hidden; }
.flyer__img img { width: 100%; height: auto; transition: transform .5s var(--ease); } /* the whole flyer always shows, at its own shape: never crop a notice */
@media (hover: hover) { .flyer__img:hover img { transform: scale(1.025); } }
.flyer__img::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--rainbow); }
.flyer__cap { display: grid; gap: .3rem; padding: .9rem 1rem 1rem; }
.flyer__title { font-weight: 700; line-height: 1.35; }
.flyer__where { font-size: var(--t-s); color: var(--ink-muted); }
.flyer__words { margin-top: .35rem; }
.flyer__words summary { cursor: pointer; font-weight: 700; color: var(--action); min-height: 44px; display: flex; align-items: center; }
.flyer__words summary:hover { text-decoration: underline; }
.flyer__text { font-size: var(--t-s); color: var(--ink-soft); max-height: 22rem; overflow: auto; padding-right: .25rem; }
.flyer__text p { margin: 0 0 .5em; }

/* ---------- the flyer carousel: this month's flyers, one at a time ----------
   A sideways-scrolling list that snaps one flyer to the middle. Every flyer keeps its own shape inside a stage of
   one height (a notice is never cropped); the one in the middle is full size with its words under it, and its
   neighbours wait at the sides, smaller and paler. The shrinking and fading are tied to the scroll itself (where
   the browser can do that), so nothing ever moves unless the reader moves it.
   [2026-11-20, Jesse] The flyer before and the flyer after always show at the sides, washed toward white, so a
   reader sees more are coming, and the row goes round (site.js stands copies of the end flyers at each end).
   Each neighbour is drawn in to stand just outside the middle flyer's place (--peek-x: its near edge --peek-gap
   from that place, whatever its own width, which is what the 41% is: half of its width at 82% size), and the row
   fades to nothing over --fade from there outward. */
.shelf { position: relative; container-type: inline-size; --slide-w: min(46rem, 84cqw); --slide-h: clamp(21rem, 13rem + 26vw, 32rem); --slide-cap: 6.5rem; --shelf-top: 1.75rem;
  --shelf-gap: clamp(1rem, 3cqw, 2.5rem); --peek-gap: .75rem; --peek-o: .55; --side: calc((100cqw - var(--slide-w)) / 2); --fade: min(var(--side), 13rem); --fade-in: var(--side);
  --peek-x: calc(var(--peek-gap) + 41% - var(--slide-w) / 2 - var(--shelf-gap)); }
/* laid out only as a reader nears it (its pictures are fetched then too): it sits below the first screen on most pages */
.shelf { content-visibility: auto; contain-intrinsic-size: auto 47rem; }   /* close to its real height, so the page barely moves when it is drawn */
.shelf--md { contain-intrinsic-size: auto 38rem; }
@media (max-width: 40rem) { .shelf, .shelf--md { contain-intrinsic-size: auto 34rem; } }
.shelf--md { --slide-w: min(30rem, 86cqw); --slide-h: clamp(17rem, 12rem + 13vw, 24rem); }
.shelf .shelf__track { position: relative; columns: auto; display: flex; align-items: stretch; gap: var(--shelf-gap); margin: 0; padding: var(--shelf-top) calc((100cqw - var(--slide-w)) / 2) 1rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.shelf .shelf__track::-webkit-scrollbar { display: none; }
html:not(.js) .shelf .shelf__track { scrollbar-width: thin; }
.shelf .shelf__track > li { position: relative; flex: 0 0 var(--slide-w); min-width: 0; margin: 0; display: flex; scroll-snap-align: center; scroll-snap-stop: always; }
.shelf .flyer__fig { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: calc(var(--slide-h) + var(--slide-cap)); border: 0; border-radius: 0; background: none; overflow: visible; }
.shelf .flyer__img { display: block; max-width: 100%; background: none; overflow: visible; border-radius: 8px; }
.shelf .flyer__img::after { display: none; }
/* the sheet itself: its own shape, as large as the stage allows, lying on a soft shadow */
.shelf .flyer__img img { width: auto; height: auto; max-width: 100%; max-height: var(--slide-h); border-radius: 6px; background: var(--surface); box-shadow: 0 20px 48px rgba(14,13,25,.20), 0 3px 10px rgba(14,13,25,.12); }
/* its place is held before the picture arrives (each carries its shape as --r), so the words under it never jump
   down under a reader or out from under the keyboard's focus */
@media (min-width: 40.01rem) { .shelf .flyer__img img[style*="--r"] { height: min(var(--slide-h), calc(var(--slide-w) / var(--r))); aspect-ratio: var(--r); } }
.shelf .flyer__cap { justify-items: center; width: 100%; max-width: 36rem; padding: 1.75rem 0 0; text-align: center; }
.shelf .flyer__title { font-family: var(--f-display); font-weight: 600; font-size: var(--t-h3); line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
.shelf .flyer__words { margin-top: .1rem; width: 100%; }
.shelf .flyer__words summary { justify-content: center; }
.shelf .flyer__text { text-align: left; margin-top: .5rem; padding: 1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.shelf--one .shelf__track { overflow-x: visible; }
/* where each flyer stands once the script has marked the one in the middle: those after it wait on the right, those
   before it on the left, drawn in and pale. This is the look for everyone, with nothing moving; the scroll-tied
   animation below takes over where the browser has it and the reader has not asked for less motion. */
.shelf.is-ready:not(.shelf--one) .shelf__track > li .flyer__img { transform: translateX(var(--peek-x)) scale(.82); opacity: var(--peek-o); }
.shelf.is-ready:not(.shelf--one) .shelf__track > li:has(~ .is-active) .flyer__img { transform: translateX(calc(-1 * var(--peek-x))) scale(.82); }
.shelf.is-ready:not(.shelf--one) .shelf__track > li.is-active .flyer__img { transform: none; opacity: 1; }
.shelf.is-ready:not(.shelf--one) .flyer__cap { opacity: 0; }
.shelf.is-ready .is-active .flyer__cap { opacity: 1; }
/* the row melts to nothing toward its two ends, so a waiting flyer is seen in part and never cut off by an edge */
.shelf:not(.shelf--one) .shelf__track {
  -webkit-mask-image: linear-gradient(90deg, transparent calc(var(--side) - var(--fade)), #000 var(--fade-in), #000 calc(100% - var(--fade-in)), transparent calc(100% - var(--side) + var(--fade)));
          mask-image: linear-gradient(90deg, transparent calc(var(--side) - var(--fade)), #000 var(--fade-in), #000 calc(100% - var(--fade-in)), transparent calc(100% - var(--side) + var(--fade))); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .shelf .flyer__img { animation: jgrls-shelf-sheet linear both; animation-timeline: view(inline); }
    .shelf .flyer__cap { animation: jgrls-shelf-words linear both; animation-timeline: view(inline); }
    .shelf--one .flyer__img, .shelf--one .flyer__cap { animation: none; }
  }
}
/* a browser without scroll-tied animation (Firefox today) eases between the standing places above; never while a
   waiting copy hands over to its flyer (.is-jumping), which must not be seen */
@supports not (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .shelf.is-ready:not(.shelf--one):not(.is-jumping) .flyer__img { transition: transform .45s var(--ease), opacity .45s var(--ease); }
    .shelf.is-ready:not(.shelf--one):not(.is-jumping) .flyer__cap { transition: opacity .3s var(--ease); }
  }
}
@keyframes jgrls-shelf-sheet {
  0%, 10%   { transform: translateX(var(--peek-x)) scale(.82); opacity: var(--peek-o); }
  43%, 57%  { transform: none; opacity: 1; }
  90%, 100% { transform: translateX(calc(-1 * var(--peek-x))) scale(.82); opacity: var(--peek-o); }
}
@keyframes jgrls-shelf-words { 0%, 32%, 68%, 100% { opacity: 0; } 46%, 54% { opacity: 1; } }
/* arrows, Pause and dots (shown by the script; without it the list still scrolls). They sit over the flyers, where
   they never move; on a wide screen the arrows stand at the two sides of the flyer and the dots go under it. */
.shelf__ctrl { display: flex; align-items: center; justify-content: center; gap: .9rem; margin-top: 1.1rem; padding-inline: var(--gutter); }
.shelf__ctrl[hidden] { display: none !important; }
.shelf__btn { flex: none; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: var(--ink-deep); color: #fff; cursor: pointer; transition: background-color .18s var(--ease), transform .12s var(--ease); }
.shelf__btn .icon { width: 1.6rem; height: 1.6rem; }
.shelf__btn:hover { background: var(--blue-600); }
.shelf__btn:active { transform: scale(.95); }
.shelf__btn[aria-disabled="true"] { background: var(--line); color: var(--ink-muted); cursor: default; }
.shelf__btn[aria-disabled="true"]:active { transform: none; }
.shelf__mid { display: flex; align-items: center; justify-content: center; gap: .4rem; min-width: 0; }
.shelf__dots { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; min-width: 0; }
/* Pause and Play: always there while the flyers can turn by themselves. The ring fills as the next turn comes. */
.shelf__play { position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; transition: background-color .18s var(--ease), color .18s var(--ease), transform .12s var(--ease); }
.shelf__play[hidden] { display: none; }
.shelf__play:hover { background: var(--ink-deep); color: #fff; }
.shelf__play:active { transform: scale(.95); }
.shelf__play .icon { width: 1rem; height: 1rem; fill: currentColor; }
.shelf__play .icon--play { display: none; margin-left: 2px; }
.shelf:not(.is-playing) .shelf__play .icon--pause { display: none; }
.shelf:not(.is-playing) .shelf__play .icon--play { display: block; }
.shelf__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.shelf__ring circle { fill: none; stroke-width: 3; }
.shelf__ring-rail { stroke: var(--field-line); }
.shelf__ring-run { stroke: var(--logo-pink); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
@media (prefers-reduced-motion: no-preference) {
  .shelf.is-ticking .shelf__ring-run { animation: jgrls-shelf-tick var(--shelf-every, 7s) linear both; }
}
@keyframes jgrls-shelf-tick { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.shelf__count { display: none; min-width: 4.25rem; font-family: var(--f-display); font-weight: 600; font-size: 1rem; text-align: center; font-variant-numeric: tabular-nums; }
.shelf__dots--count { font-family: var(--f-display); font-weight: 600; min-width: 5rem; text-align: center; }
.shelf__dot { position: relative; width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.shelf__dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--field-line); transition: background-color .25s var(--ease), transform .25s var(--ease); }
.shelf__dot:hover::before { background: var(--ink); }
.shelf__dot[aria-current="true"]::before { background: var(--logo-pink); transform: scale(1.5); }
@media (min-width: 64rem) {
  .shelf--lg .shelf__ctrl { display: contents; }
  .shelf--lg .shelf__track { padding-bottom: 3.5rem; }
  .shelf--lg .shelf__mid { position: absolute; z-index: 2; left: 0; right: 0; bottom: .35rem; pointer-events: none; }
  .shelf--lg .shelf__dot, .shelf--lg .shelf__play { pointer-events: auto; }
  .shelf--lg .shelf__btn { position: absolute; z-index: 2; top: calc(var(--shelf-top) + (var(--slide-h) + var(--slide-cap)) / 2 - 28px - 2.5rem); width: 56px; height: 56px; box-shadow: 0 6px 20px rgba(14,13,25,.22); }
  .shelf--lg .shelf__btn--prev { left: calc((100cqw - var(--slide-w)) / 2 - 5.25rem); }
  .shelf--lg .shelf__btn--next { right: calc((100cqw - var(--slide-w)) / 2 - 5.25rem); }
}
@media (max-width: 40rem) {
  /* phones: the arrows and dots sit under the heading, where they never move; each flyer starts right below them at
     its natural height, and the carousel takes the height of the flyer being shown (the script sets it) */
  .shelf { --shelf-top: 1rem; --peek-gap: .35rem; --peek-o: .8; --fade-in: calc(var(--side) * .5); }   /* a phone has a narrow strip each side: the waiting flyers stand closer and show stronger in it */
  /* a phone has no room for a row of dots beside the arrows and Pause: it shows "2 of 6" (swipe and the arrows move it) */
  .shelf__dots { display: none; }
  .shelf__count { display: block; }
  .shelf__ctrl { justify-content: space-between; }
  .shelf .shelf__track { align-items: flex-start; }
  .shelf.is-ready .shelf__track { overflow-y: hidden; transition: height .35s var(--ease); }
  @media (prefers-reduced-motion: reduce) { .shelf.is-ready .shelf__track { transition: none; } }
  .shelf .flyer__fig { justify-content: flex-start; min-height: 0; }
  .shelf .flyer__img { width: 100%; }
  .shelf .flyer__img img { width: 100%; max-height: 78vh; object-fit: contain; }
}

/* ---------- content pages ---------- */
.cpage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.cpage__main > * + * { margin-top: 0; }
.cpage__side { display: grid; gap: 1rem; position: sticky; top: 1.5rem; }
@media (max-width: 900px) { .cpage { grid-template-columns: minmax(0, 1fr); } .cpage__side { position: static; } }
.lcards { list-style: none; margin: 1rem 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: .75rem; }
.lcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1rem 1.1rem; display: grid; gap: .3rem; align-content: start; transition: border-color .18s var(--ease); }
@media (hover: hover) { .lcard:hover { border-color: var(--field-line); } }
.lcard__t { font-family: var(--f-body); font-size: 1.0625rem; font-weight: 700; letter-spacing: 0; margin: 0; }
.lcard__d { margin: 0; font-size: var(--t-s); color: var(--ink-soft); }
.lcard__u { margin: 0; font-size: .8125rem; color: var(--ink-muted); }
.storytimes { margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); gap: .5rem; }
.storytimes div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .7rem 1rem; }
.storytimes dt { font-weight: 700; color: var(--ink); }
.storytimes dd { margin: 0; color: var(--ink-soft); }
.rules { columns: 2 18rem; column-gap: 2.5rem; padding-left: 1.2rem; }
.rules li { break-inside: avoid; margin-bottom: .5rem; }
/* careers: the blue "Join Our Team" box */
.joinbox { max-width: 50rem; margin-inline: auto; padding: clamp(1.75rem, 1.4rem + 2vw, 3rem); background: var(--blue-600); color: #fff; border-radius: var(--r-lg); text-align: center; box-shadow: var(--shadow-raised); }
.joinbox h1, .joinbox h2 { color: #fff; font-size: var(--t-l); }
.joinbox p { color: #fff; font-weight: 600; max-width: 40rem; margin-inline: auto; }
.joinbox :focus-visible { outline-color: var(--focus-dark); }
.linklist { list-style: none; margin: 1rem 0 0; padding: 0; columns: 2 12rem; column-gap: 2rem; }
.linklist li { break-inside: avoid; }
.linklist a { display: inline-flex; align-items: center; min-height: 36px; font-weight: 600; }

/* ---------- the library's pages, piece by piece ---------- */
.about-title, .split-title { font-size: var(--t-l); margin-bottom: .6em; }
.about-title { font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.375rem); }
.minor-h, .split__text .minor-h, .prose .minor-h { font-size: var(--t-h3); font-weight: 600; line-height: 1.3; margin: 1.75rem 0 .5rem; }
.split--wide-text { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 52rem) { .split--wide-text { grid-template-columns: minmax(0, 1fr); } }
.infogrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 1.5rem + 3vw, 4rem) clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.infogrid .prose h2 { margin-top: 0; }
@media (max-width: 52rem) { .infogrid { grid-template-columns: minmax(0, 1fr); } }
.closing { margin: 1.75rem auto 0; text-align: center; color: var(--ink); }
.pills--two > li:last-child:nth-child(odd) { grid-column: 2; }
@media (max-width: 34rem) { .pills--two > li:last-child:nth-child(odd) { grid-column: auto; } }
.pills--after { margin-top: .8rem; }
.pills--locs { max-width: none; }
.docs--pills + .pills--after, .pills--col + .docs--pills { margin-top: .8rem; }
.svc-next { margin-top: clamp(2.25rem, 1.8rem + 2vw, 3.5rem); }
.polside .docs--pills { margin-top: clamp(0rem, -3rem + 8vw, 3.5rem); }
.violation { max-width: 52rem; margin: clamp(2.5rem, 2rem + 2vw, 4rem) auto 0; text-align: center; }
.violation strong { display: block; font-family: var(--f-display); font-size: var(--t-h3); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: 1.4; color: var(--ink); text-wrap: balance; }
.violation span { display: block; margin-top: .6rem; font-size: var(--t-s); color: var(--ink-muted); }
.trustees { list-style: none; margin: 1rem auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem .75rem; max-width: 46rem; }
.trustees li { padding: .45rem 1rem; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); font-weight: 600; }
.board-notice { max-width: 34rem; margin: 2rem auto 0; columns: 1; }
.twocol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.twocol .minor-h { margin-top: 0; }
@media (max-width: 46rem) { .twocol { grid-template-columns: minmax(0, 1fr); } }
.linkitems { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem clamp(2rem, 1rem + 4vw, 5rem); }
.linkitems + .linkitems { margin-top: 1.5rem; }
.linkitems h3 { font-size: 1.125rem; margin: 0 0 .3rem; }
.linkitems h3 a { display: inline-block; min-height: 24px; }
.linkitems p { margin: 0; color: var(--ink-soft); }
.linkitems .linkitems__u { margin-top: .25rem; font-size: var(--t-s); color: var(--ink-muted); overflow-wrap: anywhere; }
@media (max-width: 46rem) { .linkitems { grid-template-columns: minmax(0, 1fr); } }
.jobsites { text-align: center; }
.jobsites .linklist { display: inline-block; text-align: left; columns: 2 10rem; }
/* genealogy: the words left; the two flyers and their green buttons right; then the rest */
.gen { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start; }
.gen__more { grid-column: 1 / -1; }
.gen__links { padding-left: 0 !important; margin: .75rem 0 0; }
.gen__media { display: grid; gap: 1.25rem; justify-items: center; }
.gen__flyer { margin: 0; width: 100%; max-width: 19rem; } /* a set width: the space is held before the picture loads */
.gen__flyer a { display: block; border-radius: 4px; }
.gen__flyer img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow-raised); transition: transform .45s var(--ease); }
@media (hover: hover) { .gen__flyer a:hover img { transform: rotate(-1.5deg) scale(1.02); } }
.gen__pills { margin: 0; }
.branch__main .gen { grid-template-columns: minmax(0, 1fr); }
.branch__main .gen__media { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.branch__main .gen__pills { grid-column: 1 / -1; grid-row: 2; flex-direction: row; }
@media (max-width: 52rem) { .gen { grid-template-columns: minmax(0, 1fr); } }
.visitrow { display: grid; grid-template-columns: repeat(2, minmax(0, 24rem)); justify-content: center; gap: 2rem clamp(2rem, 1rem + 5vw, 6rem); }
.visitrow .btn { margin-top: 1rem; }
@media (max-width: 46rem) { .visitrow { grid-template-columns: minmax(0, 1fr); } }
/* a branch's own extras */
.friends { padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem); background: var(--blue-600); color: #fff; border-radius: var(--r-lg); text-align: center; box-shadow: var(--shadow-raised); }
.friends h2 { color: #fff; font-size: var(--t-h3); }
.friends p { color: #fff; }
.friends p:last-child { margin: 0; }
.friends :focus-visible { outline-color: var(--focus-dark); }
.branch-news { padding-top: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
.branch-news .pills { margin-top: 0; }
.branch-news + .section { padding-top: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem); }
.branch__all { margin: 1.25rem 0 0; }
.cal-intro { text-align: center; padding-top: 1.25rem; color: var(--ink-soft); }
.cal-intro p { margin: .35rem 0 0; }
.cal-intro a { display: inline-flex; align-items: center; min-height: 32px; font-weight: 600; }
.cal-intro__mgr { color: var(--ink-muted); }
/* a branch's coming events, each with its picture and the start of its words */
.stories { list-style: none; margin: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem) auto 0; padding: 0; display: grid; gap: 1.25rem; max-width: 58rem; }
.story { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: clamp(1rem, .5rem + 2vw, 2rem); align-items: start; padding: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.story--plain { grid-template-columns: minmax(0, 1fr); }
.story__img { margin: 0; }
.story__img img { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); }
.story__t { font-size: var(--t-h3); margin: 0 0 .4rem; }
.story__t a { color: var(--ink); text-decoration-color: var(--line); }
.story__t a:hover { color: var(--action); text-decoration-color: currentColor; }
.story__when { display: flex; align-items: center; gap: .4rem; margin: 0 0 .5rem; font-weight: 700; color: var(--blue-700); }
.story__sum { margin: 0; color: var(--ink-soft); }
@media (max-width: 34rem) { .story { grid-template-columns: minmax(0, 1fr); } .story__img { max-width: 16rem; } }
.flyers__list--spaced { margin-top: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem); }

/* ---------- contact ---------- */
.cform { display: grid; gap: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
.cf { margin: 0; display: grid; gap: .4rem; align-content: start; } /* [2026-12-03] a hint under one field never stretches its neighbour in a row */
.cf label { font-weight: 700; }
.cf-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.1rem; }
.cf input, .cf select, .cf textarea { width: 100%; min-height: 48px; padding: .6rem .9rem; border: 1px solid var(--field-line); border-radius: var(--r-sm); background: var(--surface); font-size: 1rem; }
.cf textarea { line-height: 1.5; }
.cf [aria-invalid="true"] { border-color: var(--pink-700); border-width: 2px; }
.ferr { color: var(--pink-700); font-weight: 600; font-size: var(--t-s); }
.opt { font-weight: 400; color: var(--ink-muted); }
.hint { font-size: var(--t-s); color: var(--ink-muted); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* checkboxes in a public form (the meeting room request, 2026-11-29): the staff area's own look */
.checks { margin: 0; padding: 0; border: 0; display: grid; gap: .75rem; min-width: 0; }
.checks legend { font-weight: 700; padding: 0; margin: 0 0 .5rem; }
.check { display: flex; align-items: flex-start; gap: .7rem; margin: 0; }
.check input { width: 1.75rem; height: 1.75rem; margin: 0; accent-color: var(--action); flex: none; }
.check label { min-height: 28px; display: inline-flex; align-items: center; }
/* the meeting rooms page: the policy's main points, then the request form */
.rooms__ask { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.cf-row--when { grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); }
.rooms__intro { font-size: var(--t-bl); color: var(--ink-soft); max-width: 40rem; margin: 0 0 1.5rem; }
.errsum { border: 2px solid var(--pink-700); background: var(--pink-50); border-radius: var(--r-sm); padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.errsum h2 { font-family: var(--f-body); font-size: 1.125rem; letter-spacing: 0; margin: 0 0 .5rem; color: var(--pink-700); }
.errsum ul { margin: 0; padding-left: 1.2rem; }
.notice-box { border: 1px solid #9ccf95; background: var(--green-50); border-radius: var(--r-lg); padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; }
.notice-box h2 { font-size: var(--t-h3); color: var(--green-700); margin: 0 0 .25rem; }
.notice-box p { margin: 0; }
.calls { list-style: none; margin: 0; padding: 0; }
.calls li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .1rem 1rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.calls li:last-child { border-bottom: 0; }
.calls .tel { min-height: 24px; font-weight: 600; }

/* ---------- page animations switch (footer) and accessibility helpers ---------- */
html.no-motion *, html.no-motion *::before, html.no-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
.motion-btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 1rem; border-radius: var(--r-pill); border: 1px solid rgba(255,255,255,.55); background: transparent; color: #fff; font-weight: 700; cursor: pointer; }
.motion-btn:hover { border-color: #fff; }
.motion-btn[aria-pressed="true"] { background: #fff; color: var(--ink-deep); }
abbr[title] { text-decoration: none; }

.plain-list a, .storytimes a, .cpage__side a { display: inline-flex; align-items: center; min-height: 32px; }
.lcard, .lcard__u, .docs li, .prose p { overflow-wrap: anywhere; }

/* ============ reading pages: long text made easy to take in (2026-11-13) ============
   The library's own words, set so the eye can find its way: a larger first paragraph, figures pulled from the words
   on the same page, notes set apart, cards with an icon, lists with a mark. Every word is real text at 7:1 or better,
   every icon is decoration (aria-hidden), and nothing is told by colour alone. */
.lead, .split__text .lead, .prose .lead { font-size: clamp(1.1875rem, 1.1rem + .55vw, 1.4375rem); line-height: 1.5; color: var(--ink); max-width: 42rem; text-wrap: pretty; }

/* figures, each one stated in the words of the same page */
.facts { list-style: none; margin: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.facts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts .fact { --c: var(--logo-purple); margin: 0; max-width: none; padding: 1.15rem 1.15rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.facts .fact::before { content: ""; display: block; width: 2.5rem; height: 5px; margin-bottom: .85rem; border-radius: 3px; background: var(--c); }
.facts .fact:nth-child(5n+2) { --c: var(--logo-green); }
.facts .fact:nth-child(5n+3) { --c: var(--logo-yellow); }
.facts .fact:nth-child(5n+4) { --c: var(--logo-blue); }
.facts .fact:nth-child(5n+5) { --c: var(--logo-pink); }
.fact__n { display: block; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.875rem, 1.5rem + 1.6vw, 2.75rem); line-height: 1.05; letter-spacing: -.03em; color: var(--ink); }
.fact__n.is-counting { position: relative; font-variant-numeric: tabular-nums; }
.fact__n.is-counting .fact__real { opacity: 0; }
.fact__n.is-counting .fact__show { position: absolute; left: 0; top: 0; white-space: nowrap; }
.facts .fact__l { display: block; margin-top: .45rem; font-size: var(--t-s); line-height: 1.4; color: var(--ink-soft); }
@media (max-width: 40rem) {
  /* phones: one figure to a row, the number on the left and its words beside it */
  .facts, .facts--3 { grid-template-columns: minmax(0, 1fr); }
  .facts .fact { display: grid; grid-template-columns: minmax(5.5rem, max-content) minmax(0, 1fr); align-items: center; column-gap: 1rem; }
  .facts .fact::before { grid-column: 1 / -1; }
  .facts .fact__l { margin-top: 0; }
}
@media (max-width: 24rem) { .fact__n { font-size: 1.5rem; } }

/* a note set apart, with its icon (the privacy words; things to know) */
.note { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1.1rem; align-items: center; margin-top: clamp(1.75rem, 1.4rem + 1.4vw, 2.75rem); padding: clamp(1.25rem, 1rem + 1.2vw, 2rem); border-radius: var(--r-lg); background: var(--blue-50); position: relative; padding-left: calc(clamp(1.25rem, 1rem + 1.2vw, 2rem) + 6px); }
.note::before { content: ""; position: absolute; left: 0; top: 1.25rem; bottom: 1.25rem; width: 6px; border-radius: 0 4px 4px 0; background: var(--blue-600); }
.note__icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--surface); color: var(--blue-700); }
.note__icon .icon { width: 1.5rem; height: 1.5rem; }
.note .note__title { margin: 0; font-size: var(--t-h3); font-weight: 600; line-height: 1.3; }
.note__body { grid-column: 2; margin-top: .7rem; }
.note--wide { max-width: 56rem; margin-inline: auto; margin-top: 0; }
.note .chips { margin: .25rem 0 1rem; }
.note .hint { font-size: var(--t-s); color: var(--ink-soft); }
.note .note__body p { margin: 0 0 .75rem; font-size: var(--t-b); color: var(--ink); max-width: 48rem; }
.note .note__body p:last-child { margin-bottom: 0; }
@media (max-width: 40rem) { .note__body { grid-column: 1 / -1; } }

/* cards with an icon: one subject each */
.topics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, .7rem + 1.3vw, 1.75rem); align-items: stretch; }
.topics--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.topics .topic { --c50: var(--purple-50); --c700: var(--purple-700); margin: 0; max-width: none; padding: clamp(1.35rem, 1.1rem + 1.1vw, 2.1rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.topics .topic:nth-child(5n+2) { --c50: var(--green-50); --c700: var(--green-700); }
.topics .topic:nth-child(5n+3) { --c50: var(--yellow-50); --c700: var(--yellow-700); }
.topics .topic:nth-child(5n+4) { --c50: var(--blue-50); --c700: var(--blue-700); }
.topics .topic:nth-child(5n+5) { --c50: var(--pink-50); --c700: var(--pink-700); }
.topics--tint .topic { background: var(--paper-2); border-color: transparent; }
.topic__icon { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; margin-bottom: 1.1rem; border-radius: 14px; background: var(--c50, var(--purple-50)); color: var(--c700, var(--purple-700)); }
.topic__icon .icon { width: 1.6rem; height: 1.6rem; }
.topics--tint .topic__icon { background: var(--surface); }
.topics .topic h2, .topics .topic h3 { margin: 0 0 .6rem; font-size: clamp(1.25rem, 1.15rem + .5vw, 1.5rem); line-height: 1.25; }
.topics .topic p, .topics .topic li { font-size: var(--t-b); color: var(--ink-soft); max-width: none; }
.topics .topic > :last-child { margin-bottom: 0; }
.topics .topic .cat-search { margin-top: 1.25rem; }
@media (max-width: 52rem) { .topics, .topics--3 { grid-template-columns: minmax(0, 1fr); } }
/* doors (the Law Library's page): smaller cards whose titles are links; the last odd one takes the whole row */
.topics--doors { gap: 1rem; }
.topics--doors .topic { padding: 1.25rem 1.3rem 1.3rem; }
.topics--doors .topic:last-child:nth-child(odd) { grid-column: 1 / -1; }
.topics--doors .topic h3 { font-size: 1.1875rem; margin-bottom: .4rem; }
.topics--doors .topic h3 a { display: inline-block; min-height: 24px; color: var(--ink); text-decoration-color: var(--line); }
.topics--doors .topic h3 a:hover { color: var(--action); text-decoration-color: currentColor; }
.topics--doors .topic p { font-size: var(--t-s); }
.topics--doors .topic__icon { width: 2.75rem; height: 2.75rem; margin-bottom: .85rem; }
.topics--doors + .note { margin-top: 1.25rem; }
.note .docs--pills { margin: 1rem 0 0; max-width: none; justify-items: start; }
@media (max-width: 34rem) { .topics--doors { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 52rem) and (min-width: 34.01rem) { .topics--doors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* how long a loan lasts, at a glance */
.loans { list-style: none; margin: 1rem 0 1.1rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.topics .topic .loans li { margin: 0; padding: .95rem 1rem; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); font-size: var(--t-s); line-height: 1.4; color: var(--ink-soft); }
.loans strong { display: block; margin-bottom: .25rem; font-family: var(--f-display); font-size: 1.5rem; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }

/* a list with a tick on each line */
.ticks { list-style: none; margin: .9rem 0 1.1rem; padding: 0; display: grid; gap: .55rem; }
.prose .ticks, .panel .ticks { padding-left: 0; }
.ticks li, .prose .ticks li { position: relative; margin: 0; padding-left: 2.2rem; }
.ticks--two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }
@media (max-width: 34rem) { .ticks--two { grid-template-columns: minmax(0, 1fr); } }
.panel .ticks li { font-size: var(--t-b); color: var(--ink-soft); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .12em; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--green-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E5719' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / .85rem no-repeat; }

/* a heading at the side, its words beside it */
.siderow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: .75rem clamp(1.5rem, 1rem + 3vw, 4rem); padding-block: clamp(1.5rem, 1.2rem + 1.4vw, 2.5rem); border-top: 1px solid rgba(27, 26, 46, .16); }
.siderow > h3 { margin: 0; font-size: clamp(1.3125rem, 1.2rem + .7vw, 1.75rem); line-height: 1.2; text-wrap: balance; }
.siderow__body > :first-child { margin-top: 0; }
.siderow__body > :last-child { margin-bottom: 0; }
.siderow__body p { font-size: var(--t-bl); color: var(--ink-soft); max-width: 42rem; }
.siderow__body strong { color: var(--ink); }
.siderow .pills { justify-content: flex-start; margin: 1.25rem 0 0; }
@media (max-width: 52rem) { .siderow { grid-template-columns: minmax(0, 1fr); } }

/* the strategic plan */
.plan-head { max-width: 52rem; margin: 0 auto clamp(1.5rem, 1.2rem + 1.4vw, 2.5rem); text-align: center; }
.plan-head h2 { margin: 0; font-size: var(--t-l); text-wrap: balance; }
.plan-head h2::after { content: ""; display: block; width: 5rem; height: 5px; margin: 1.1rem auto 0; border-radius: 3px; background: var(--rainbow); }
.plan-motto { margin: 1.1rem 0 0; font-family: var(--f-display); font-weight: 600; font-style: italic; font-size: var(--t-bl); color: var(--ink); }
.plan-sub { margin: 0 0 1.25rem; font-size: clamp(1.3125rem, 1.2rem + .7vw, 1.75rem); line-height: 1.2; }
.plan-block { padding-block: clamp(1.5rem, 1.2rem + 1.4vw, 2.5rem); border-top: 1px solid rgba(27, 26, 46, .16); }
.priorities { list-style: none; counter-reset: pr; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(.9rem, .6rem + 1.2vw, 1.5rem); }
.priorities li { --c50: var(--purple-50); --c700: var(--purple-700); counter-increment: pr; position: relative; grid-column: span 2; margin: 0; max-width: none; padding: clamp(1.25rem, 1rem + 1vw, 1.9rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); font-size: var(--t-b); color: var(--ink-soft); }
.priorities li:nth-child(n+4) { grid-column: span 3; }
.priorities li:nth-child(5n+2) { --c50: var(--green-50); --c700: var(--green-700); }
.priorities li:nth-child(5n+3) { --c50: var(--yellow-50); --c700: var(--yellow-700); }
.priorities li:nth-child(5n+4) { --c50: var(--blue-50); --c700: var(--blue-700); }
.priorities li:nth-child(5n+5) { --c50: var(--pink-50); --c700: var(--pink-700); }
.priorities li::before { content: "0" counter(pr); position: absolute; right: 1.3rem; top: 1.25rem; font-family: var(--f-display); font-weight: 700; font-size: 1.125rem; letter-spacing: .04em; color: var(--ink-muted); }
.priorities strong { display: block; margin-bottom: .4rem; font-family: var(--f-display); font-weight: 600; font-size: 1.1875rem; line-height: 1.3; color: var(--ink); text-wrap: balance; }
@media (max-width: 60rem) {
  .priorities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .priorities li, .priorities li:nth-child(n+4) { grid-column: auto; }
  .priorities li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 40rem) {
  .priorities { grid-template-columns: minmax(0, 1fr); }
  .priorities li:last-child:nth-child(odd) { grid-column: auto; }
}

/* E-Resources: the words on one side, the list of resources always in reach on the other */
.eres { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start; }
.eres__text > p:not(.lead) { font-size: var(--t-bl); color: var(--ink-soft); max-width: 42rem; }
.eres__list { position: sticky; top: 1.5rem; padding: clamp(1.25rem, 1rem + 1.2vw, 2rem); border-radius: var(--r-lg); background: var(--paper-2); }
.eres__h { margin: 0 0 1rem; font-size: var(--t-h3); }
.pills--stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: .65rem; margin: 0; max-width: none; }
.pills--stack a { display: flex; width: 100%; justify-content: space-between; padding-inline: 1.4rem; text-align: left; }
@media (max-width: 52rem) {
  .eres { grid-template-columns: minmax(0, 1fr); }
  .eres__list { position: static; }
}
@media (min-width: 34rem) and (max-width: 52rem) { .pills--stack { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Careers: the blue box, its words on the left and what to expect on the right */
.joinbox { max-width: none; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.1rem clamp(1.75rem, 1rem + 3.5vw, 4rem); align-items: start; text-align: left; }
.joinbox h1 { grid-column: 1; grid-row: 1; margin: 0; }
.joinbox .joinbox__lead { grid-column: 1; grid-row: 2; margin: 0; max-width: none; font-size: var(--t-bl); font-weight: 400; line-height: 1.6; }
.joinbox .joinbox__cta { grid-column: 1; grid-row: 3; margin: .5rem 0 0; }
.joinbox__steps { grid-column: 2; grid-row: 1 / span 3; align-self: center; list-style: none; margin: 0; padding: clamp(1.1rem, .9rem + 1vw, 1.75rem); display: grid; gap: 1.15rem; background: var(--surface); border-radius: var(--r-lg); }
.joinbox__steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .95rem; align-items: start; margin: 0; font-size: var(--t-b); line-height: 1.55; color: var(--ink); }
.joinbox__steps .topic__icon { --c50: var(--blue-50); --c700: var(--blue-700); width: 2.75rem; height: 2.75rem; margin: 0; }
.joinbox__steps .topic__icon .icon { width: 1.35rem; height: 1.35rem; }
@media (max-width: 52rem) {
  .joinbox { grid-template-columns: minmax(0, 1fr); }
  .joinbox h1, .joinbox .joinbox__lead, .joinbox .joinbox__cta, .joinbox__steps { grid-column: 1; grid-row: auto; }
}

/* links as chips: the job sites, and the jump links at the top of a long page */
.chips { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }
.chips--start { justify-content: flex-start; }
.chips li { margin: 0; font-size: var(--t-b); max-width: none; }
.chips a { display: inline-flex; align-items: center; gap: .45rem; min-height: 48px; padding: .3rem 1.3rem; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--field-line); color: var(--ink); font-weight: 700; line-height: 1.25; text-decoration: none; transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .12s var(--ease); }
.chips a:hover { background: var(--ink-deep); border-color: var(--ink-deep); color: #fff; }
.chips a:active { transform: scale(.97); }
.chips .icon { width: 1rem; height: 1rem; }
section[id], h2[id] { scroll-margin-top: 5.5rem; }
.jump { margin-top: 1.5rem; }
.jump__h { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: var(--t-s); color: var(--ink-soft); }
.jump .chips { margin-top: .6rem; }

/* a place as a card: its photo, where it is, when it is open */
.infocard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-raised); }
.infocard__photo { margin: 0; }
.infocard__photo img { display: block; width: 100%; height: auto; border-radius: calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px) 0 0; background: var(--paper-2); }
.infocard__body { padding: 1.35rem 1.5rem 1.5rem; }
.infocard__body > .minor-h:first-child { margin-top: 0; }
.infocard__body p { font-size: var(--t-b); color: var(--ink-soft); }
.infocard .docs--pills { margin: 1.1rem 0 0; max-width: none; justify-items: start; }
.infocard .docs--pills .doc { justify-content: flex-start; text-align: left; }

/* link lists as cards (law resources): the name, what it is, where it goes */
.linkitems { gap: clamp(.9rem, .6rem + 1.2vw, 1.5rem); }
.linkitems li { padding: 1.15rem 1.3rem; border-radius: var(--r-lg); background: var(--paper-2); }
.band--grey .linkitems li { background: var(--surface); }
.linkitems li:only-child { grid-column: 1 / -1; }   /* one item alone (Westlaw) takes the whole row instead of half of it */

/* Policies: the rules as a list that is easy to run down, the documents beside it, the warning set apart */
.rules-list { list-style: none; margin: 1.25rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.split__text .rules-list li { position: relative; margin: 0; max-width: none; padding: .8rem 0 .8rem 2rem; border-bottom: 1px solid var(--line); font-size: var(--t-b); color: var(--ink-soft); }
.rules-list li::before { content: ""; position: absolute; left: .2rem; top: 1.28rem; width: .7rem; height: .7rem; border-radius: 3px; background: var(--logo-purple); }
.rules-list li:nth-child(5n+2)::before { background: var(--logo-green); }
.rules-list li:nth-child(5n+3)::before { background: var(--logo-yellow); }
.rules-list li:nth-child(5n+4)::before { background: var(--logo-blue); }
.rules-list li:nth-child(5n+5)::before { background: var(--logo-pink); }
.polside { position: sticky; top: 1.5rem; padding: clamp(1.1rem, .9rem + 1vw, 1.75rem); border-radius: var(--r-lg); background: var(--paper-2); }
.polside__h { margin: 0 0 .9rem; font-size: var(--t-h3); }
.polside .docs--pills { margin: 0; max-width: none; justify-items: stretch; gap: .6rem; }
.polside .docs--pills .doc { display: flex; width: 100%; justify-content: flex-start; gap: .8rem; padding: .65rem 1.1rem; border-radius: 16px; text-align: left; }
.polside .docs--pills .doc .icon { width: 1.35rem; height: 1.35rem; }
.polside .doc__meta { display: block; font-size: var(--t-s); }
@media (max-width: 52rem) { .polside { position: static; } }
.violation { display: grid; justify-items: center; padding: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); border-radius: var(--r-lg); background: var(--pink-50); }
.violation .icon { width: 2rem; height: 2rem; margin-bottom: .7rem; color: var(--pink-700); }
.violation span { color: var(--ink-soft); }
/* inside a branch page's column the cards stand one under the other */
.branch__main .topics { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 34.01rem) { .branch__main .topics--doors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) {
  .joinbox { padding: 1.5rem 1.25rem; }
  .joinbox .joinbox__cta .btn { width: 100%; padding-inline: 1rem; font-size: 1.0625rem; white-space: nowrap; }
  .joinbox__steps li { gap: .75rem; }
}

/* ============ documents as tiles, minutes by year, contact, location photos (2026-11-14) ============ */
.wrap--mid { max-width: 60rem; }
.doctiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; text-align: left; }
.doctiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.doctiles li { margin: 0; max-width: none; }
.doctile { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .85rem; height: 100%; min-height: 64px; padding: .8rem 1.1rem; border-radius: 16px; background: var(--logo-green); color: var(--ink-deep); text-decoration: none; line-height: 1.25; transition: background-color .18s var(--ease), transform .12s var(--ease); }
.doctile:hover { background: var(--green-hover); color: var(--ink-deep); }
.doctile:active { transform: scale(.97); }
.doctile .icon { width: 1.4rem; height: 1.4rem; }
.doctile__t { display: block; font-weight: 700; overflow-wrap: anywhere; }
.doctile__m { display: block; margin-top: .15rem; font-size: var(--t-s); }
.doctile__tag { display: inline-block; margin-bottom: .3rem; padding: .1rem .55rem; border-radius: var(--r-pill); background: var(--ink-deep); color: #fff; font-size: var(--t-label); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
@media (max-width: 64rem) { .doctiles--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .doctiles { grid-template-columns: minmax(0, 1fr); } .doctiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 22rem) { .doctiles--4 { grid-template-columns: minmax(0, 1fr); } }

.years { display: grid; margin-top: clamp(1.5rem, 1.2rem + 1.4vw, 2.5rem); }
.year { display: grid; grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr); gap: 1rem clamp(1rem, .5rem + 2vw, 2.5rem); align-items: start; padding-block: clamp(1.5rem, 1.2rem + 1.4vw, 2.5rem); border-top: 1px solid var(--line); }
.year:last-child { padding-bottom: 0; }
.year__h { margin: 0; font-size: var(--t-xl); line-height: 1; letter-spacing: -.03em; }
@media (max-width: 52rem) { .year { grid-template-columns: minmax(0, 1fr); } .year__h { font-size: var(--t-l); } }

.meets { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.meets .facts { margin-top: 0; }
.facts--col { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 52rem) { .meets { grid-template-columns: minmax(0, 1fr); } }

/* Contact: the phone numbers stand out; what happens after sending; the map */
.callcard { padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); border-radius: var(--r-lg); background: var(--blue-600); color: #fff; box-shadow: var(--shadow-raised); }
.callcard__h { display: flex; align-items: center; gap: .6rem; margin: 0 0 .75rem; font-size: var(--t-h3); color: #fff; }
.callcard__h .icon { width: 1.35rem; height: 1.35rem; }
.callcard a { color: #fff; }
.callcard a:hover { color: #fff; text-decoration-thickness: 2px; }
.callcard :focus-visible { outline-color: var(--focus-dark); }
.callcard .calls li { border-bottom-color: rgba(255, 255, 255, .24); }
.callcard__note { margin: .9rem 0 0; font-size: var(--t-s); color: #fff; }
.steps { list-style: none; counter-reset: st; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
.steps li { --c50: var(--purple-50); --c700: var(--purple-700); counter-increment: st; position: relative; margin: 0; max-width: 34rem; min-height: 2.75rem; padding: .3rem 0 0 3.75rem; font-size: var(--t-bl); color: var(--ink-soft); }
.steps li:nth-child(3n+2) { --c50: var(--green-50); --c700: var(--green-700); }
.steps li:nth-child(3n+3) { --c50: var(--blue-50); --c700: var(--blue-700); }
.steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 2.75rem; height: 2.75rem; border-radius: 14px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; background: var(--c50); color: var(--c700); }
.band--grey .steps li::before { background: var(--surface); }
.twocol--mid { align-items: center; }
.findlib .btn { margin-top: 1.25rem; }

/* Locations: each library's own photo on its card */
.bcard--photo { padding: 0; overflow: hidden; gap: 0; }
.bcard__photo { position: relative; flex: none; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); }
.bcard__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bcard__body { display: flex; flex-direction: column; gap: .6rem; flex: 1; padding: 1.1rem 1.25rem 1.25rem; }

/* [2026-12-03] Outreach events, told afterwards: cards on /outreach/ and each event's own page */
.orcards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: clamp(1rem, .75rem + 1vw, 1.5rem); }
.orcard { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: border-color .18s var(--ease); }
.orcard:hover, .orcard:focus-within { border-color: var(--action); }
.orcard__photo { aspect-ratio: 4 / 3; background: var(--paper-2); overflow: hidden; }
.orcard__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.orcard__body { display: flex; flex-direction: column; gap: .45rem; padding: 1.1rem 1.25rem 1.3rem; flex: 1; }
.orcard__when { margin: 0; font-size: var(--t-s); color: var(--ink-muted); font-weight: 600; }
.orcard__title { margin: 0; font-size: 1.1875rem; line-height: 1.3; text-wrap: balance; }
.orcard__link { color: var(--ink); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .18em; }
.orcard__link::after { content: ""; position: absolute; inset: 0; }   /* the whole card opens the event */
.orcard:hover .orcard__link, .orcard__link:focus-visible { text-decoration-color: currentColor; }
.orcard__text { margin: 0; color: var(--ink-soft); }
.orcard__count { margin: auto 0 0; padding-top: .35rem; display: inline-flex; align-items: center; gap: .4rem; font-size: var(--t-s); color: var(--ink-muted); }
.orcard__count .icon { width: 1rem; height: 1rem; }
.orstory { display: grid; gap: clamp(1.75rem, 1.25rem + 2vw, 3rem); }
.orstory__lead { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--paper-2); max-height: 38rem; }
.orstory__lead a { display: block; }
.orstory__lead img { width: 100%; height: 100%; max-height: 38rem; object-fit: cover; display: block; }
.orstory__body { max-width: 65ch; font-size: var(--t-bl); }
.orgallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: .9rem; }
.orgallery__a { display: block; aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); transition: border-color .18s var(--ease); }
.orgallery__a:hover { border-color: var(--action); }
.orgallery__a img { width: 100%; height: 100%; object-fit: cover; display: block; }
.orstory__ask { margin: 0; }
