/* Ridgewood High School Athletic Hall of Fame
   Layout idea: the real Hall of Fame is a corridor wall of maroon plaques.
   The site is that wall: quiet neutral surface, plaques and pictures lifted off it by a soft shadow, maroon as the one brand color, brass for focus. */
:root {
  color-scheme: light;
  --wall: #f3f2f0;        /* corridor wall */
  --paper: #ffffff;
  --ink: #1d1819;
  --muted: #655c5f;
  --line: #d9d5d2;
  --maroon: #6b0b1d;      /* from the logo */
  --maroon-deep: #3d0710;
  --rail: #201b1c;        /* plaque frames and the hanging rail */
  --brass: #a07a2c;
  --display: "Marcellus", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --w: 1180px;
  --pin: 80px;            /* height of the header that stays on screen while you scroll */
  --logo-h: clamp(52px, calc((100vw - 830px) / 2.8), 104px);   /* logo height when a page first opens; it eases down to 52px as you scroll */
  --lift: 0 1px 2px rgba(29, 24, 25, 0.18), 0 16px 28px -14px rgba(29, 24, 25, 0.55);     /* pictures sit on the wall with a soft shadow, no frame */
  --lift-sm: 0 1px 2px rgba(29, 24, 25, 0.16), 0 9px 18px -10px rgba(29, 24, 25, 0.45);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; -webkit-tap-highlight-color: rgba(107, 11, 29, 0.14); }
body { margin: 0; background: var(--wall); color: var(--ink); font: 400 1.125rem/1.62 var(--body); }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--maroon); text-underline-offset: 0.18em; }
a:hover { color: var(--maroon-deep); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); letter-spacing: -0.005em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
.wrap { width: min(100% - 40px, var(--w)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: 10px 14px; z-index: 40; }
.skip:focus { left: 12px; top: 12px; }

/* header */
/* the header travels down the page with you. It opens tall with a large logo; as you scroll, the logo eases down to its small size
   and the bar settles at 80px. --p (0 at the top of the page, 1 once settled) is set by site.js from the scroll position. */
.site-head { background: var(--paper); border-bottom: 8px solid var(--rail); position: sticky; top: 0; z-index: 30; }
.site-head .wrap { display: flex; align-items: center; gap: 12px 26px; padding-block: 12px; min-height: calc(var(--logo-h) + 24px); }
.brand { flex: none; display: flex; align-items: center; height: calc(var(--logo-h) - var(--p, 0) * (var(--logo-h) - 52px)); }
.brand img { height: 100%; width: auto; }
@media (min-width: 921px) {
  .js .site-head { top: calc(48px - var(--logo-h)); }
  .js .brand, .js .main-nav, .js .head-cta { transform: translateY(calc(var(--p, 0) * (var(--logo-h) / 2 - 24px))); }
  .menu { padding-top: calc((var(--logo-h) - 45px) / 2 + 20px - var(--p, 0) * (var(--logo-h) / 2 - 24px)); }
}
.main-nav { display: flex; align-items: center; gap: 6px 26px; margin-left: auto; }
.nav-item { position: relative; }
.nav-item > a { display: inline-block; color: var(--ink); text-decoration: none; font-weight: 600; padding: 8px 0; border-bottom: 3px solid transparent; white-space: nowrap; }
.nav-item > a:hover, .nav-item > a[aria-current] { border-bottom-color: var(--maroon); color: var(--maroon); }
/* drop-down lists under Inductees and History: computers only (hover or keyboard). Touch screens keep the plain row. */
.menu { display: none; position: absolute; left: -18px; top: 100%; padding-top: 21px; z-index: 35; }
.menu-panel { background: var(--paper); box-shadow: var(--lift); border-top: 3px solid var(--maroon); padding: 8px 0 10px; min-width: 236px; }
.menu-panel ul { list-style: none; }
.menu-panel a { display: block; padding: 9px 20px; color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
.menu-panel a:hover, .menu-panel a:focus-visible { background: var(--wall); color: var(--maroon); }
.menu-panel p { padding: 10px 20px 2px; color: var(--muted); font-size: 0.95rem; font-weight: 600; border-top: 1px solid var(--line); margin-top: 6px; }
.menu-years { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0 10px; }
.menu-years a { padding: 8px 10px; text-align: center; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) and (min-width: 921px) {
  .has-menu > a::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
  .has-menu:hover .menu, .has-menu:focus-within .menu { display: block; }
}
.head-cta { flex: none; }
.nav-home { display: none; }
@media (max-width: 1000px) { .site-head .wrap, .main-nav { column-gap: 16px; } }
/* phones and upright tablets: logo and Nominate on one line, the five sections in a row beneath. Scrolling tucks the logo line away and keeps the section row on screen, with the R from the logo as the home link. */
@media (max-width: 920px) {
  :root { --pin: 55px; }
  .site-head { top: -96px; }
  .brand { height: 76px; }
  .site-head .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; padding-block: 10px 0; min-height: 0; }
  .head-cta { grid-column: 2; grid-row: 1; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; margin: 10px -6px 0; justify-content: space-between; gap: 0; border-top: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .nav-item { flex: none; }
  .nav-item > a { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; min-width: 44px; padding: 0 6px; font-size: clamp(0.8rem, 3.6vw, 1rem); transition: padding 0.2s ease; }
  /* once the logo line has scrolled away, the R from the logo joins the pinned row: tap it to go back to the home page */
  .nav-home { display: inline-flex; align-items: center; justify-content: flex-start; flex: none; align-self: stretch; width: 0; opacity: 0; visibility: hidden; overflow: hidden;
    transition: width 0.2s ease, opacity 0.2s ease, visibility 0s linear 0.2s; }
  .nav-home img { height: 30px; width: auto; margin-left: 6px; }
  .site-head.pinned .nav-home { width: 44px; opacity: 1; visibility: visible; transition: width 0.2s ease, opacity 0.2s ease; }
  .site-head.pinned .nav-item > a { padding-inline: 3px; }
}

/* buttons */
.btn { display: inline-block; background: var(--maroon); color: #fff; font-weight: 700; text-decoration: none; padding: 12px 22px; border-radius: 3px; border: 2px solid var(--maroon); line-height: 1.2; }
.btn:hover { background: var(--maroon-deep); border-color: var(--maroon-deep); color: #fff; }
.btn.small { padding: 8px 16px; }
.btn.ghost { background: transparent; color: var(--maroon); }
.btn.ghost:hover { background: var(--maroon); color: #fff; }
.btn.light { background: #fff; color: var(--maroon); border-color: #fff; }
.btn.light:hover { background: var(--wall); color: var(--maroon-deep); }

/* page shells */
main { display: block; min-height: 50vh; }
main > * { width: min(100% - 40px, var(--w)); margin-inline: auto; }
main > .loading { padding-block: 80px; color: var(--muted); }
.hero, .page, .bio, .classpage, .wallpage { padding-block: clamp(32px, 6vw, 64px) 24px; }
.band, .split-band { padding-block: clamp(28px, 5vw, 52px); }
.lede { font-size: 1.25rem; color: var(--muted); margin-top: 12px; max-width: 60ch; }
.count, .inducted { color: var(--muted); font-weight: 600; margin-top: 8px; }
.note { color: var(--muted); margin-top: 20px; }
.crumbs { display: flex; align-items: center; gap: 10px; font-weight: 600; margin: -10px 0 8px; font-size: 1rem; }
.crumbs a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { color: var(--line); }
h2.quiet { font-size: 1.2rem; color: var(--muted); margin: 56px 0 14px; }

/* the wall of plaques */
.wall { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 34px 24px; margin-top: 28px; }
.plaque-card a { display: block; text-decoration: none; color: var(--ink); }
.frame { display: block; box-shadow: var(--lift); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.frame img { width: 100%; aspect-ratio: 11 / 14; object-fit: cover; background: var(--maroon); }
.plaque-card a:hover .frame, .plaque-card a:focus-visible .frame { transform: translateY(-4px); box-shadow: 0 2px 3px rgba(29, 24, 25, 0.18), 0 24px 32px -16px rgba(29, 24, 25, 0.6); }
.who { display: block; font-family: var(--display); font-size: 1.06rem; line-height: 1.25; margin-top: 12px; }
.plaque-card a:hover .who { color: var(--maroon); text-decoration: underline; }
.wall-year { margin-top: 56px; scroll-margin-top: calc(var(--pin) + 104px); }
@media (min-width: 1100px) { .wall.seven { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.wall-year h2 { border-top: 8px solid var(--rail); padding-top: 16px; }
.wall-year h2 a { color: var(--ink); text-decoration: none; }
.wall-year h2 a:hover { color: var(--maroon); text-decoration: underline; }

/* hero */
/* home hero: words and search on the left; the pewter relief of the school and field hangs on the right as a framed plaque */
.hero { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); grid-template-areas: "copy art" "find art"; column-gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy { grid-area: copy; align-self: end; }
.hero-copy > p { margin-top: 18px; max-width: 56ch; }
.hero-find { grid-area: find; align-self: start; }
.hero-art { grid-area: art; margin: 0; }
.hero-art img { width: 100%; height: auto; box-shadow: var(--lift); }
.mission-short, .hero-find .short { display: none; }
/* tablets: the plaque hangs full width, with the words and the search side by side beneath it */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); grid-template-areas: "art art" "copy find"; row-gap: 30px; align-items: end; }
  .hero-find { align-self: end; }
  .hero-find .finder-row button { flex: 1 0 auto; }
}
/* phones: the relief runs edge to edge directly under the header, cropped to the school, the stands and the R; words and a one-line search follow */
@media (max-width: 720px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "art" "copy" "find"; row-gap: 0; padding-block: 0 6px; }
  .hero-art { margin-inline: -20px; background: #2b2727; }
  .hero-art img { height: clamp(200px, 64vw, 320px); object-fit: cover; object-position: center; box-shadow: none; }
  .hero-copy { padding-top: 20px; }
  .hero h1 { font-size: clamp(1.55rem, 7.3vw, 2.1rem); }
  .hero-copy > p { margin-top: 8px; }
  .mission { display: none; }
  .mission-short { display: block; }
  .hero-find { margin-top: 16px; }
  .hero-find label { margin-bottom: 6px; }
  .hero-find .finder-row { flex-wrap: nowrap; gap: 8px; }
  .hero-find .finder-row input { flex: 1 1 auto; min-width: 0; }
  .hero-find .finder-row button { flex: none; padding-inline: 18px; }
  .hero-find .long { display: none; }
  .hero-find .short { display: inline; }
  .welcome { padding-top: 24px; }
}
.welcome h2 a { text-decoration-thickness: 1px; }

.swipe-note { display: none; color: var(--muted); font-size: 0.98rem; }
/* phones: the newest class is one row you swipe along, with the next plaque showing at the edge */
@media (max-width: 560px) {
  .welcome .wall { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 14px -20px 0; padding: 12px 20px 22px; scroll-padding-inline: 20px; scrollbar-width: none; }
  .welcome .wall::-webkit-scrollbar { display: none; }
  .welcome .plaque-card { flex: 0 0 42%; scroll-snap-align: start; }
  .swipe-note { display: block; margin-top: -6px; }
}

/* finder */
.finder { margin-top: 28px; }
.finder label { display: block; font-weight: 700; margin-bottom: 8px; }
.finder input { font: inherit; width: min(100%, 460px); padding: 12px 14px; border: 2px solid var(--rail); border-radius: 3px; background: var(--paper); color: var(--ink); }
.finder-row { display: flex; gap: 10px; flex-wrap: wrap; }
.finder-row input { flex: 1 1 220px; min-width: 0; width: auto; }
.finder-row button { flex: 1 0 auto; }
@media (min-width: 561px) { .finder-row button { flex: none; } }
.finder button { font: inherit; font-weight: 700; background: var(--maroon); color: #fff; border: 2px solid var(--maroon); border-radius: 3px; padding: 12px 20px; cursor: pointer; }
.finder button:hover { background: var(--maroon-deep); border-color: var(--maroon-deep); }
.finder-status { margin-top: 8px; color: var(--muted); font-weight: 600; }
.finder-status:empty { display: none; }
/* the wall is long: the search box stays at the top of the screen while you scroll (its label scrolls away) */
.wallpage .finder { position: sticky; top: calc(var(--pin) - 1.62em - 18px); z-index: 5; background: var(--wall); margin: 18px -20px 0; padding: 10px 20px 12px; }
.wallpage .finder.stuck { box-shadow: 0 12px 14px -14px rgba(32, 27, 28, 0.55); }
.wallpage .finder input { width: min(100%, 520px); }
h2.quiet.jump-label { margin: 26px 0 0; }
.wallpage .years { margin-top: 12px; }
.wall-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.wall-art { margin: 0; }
.wall-art img { width: 100%; height: auto; }
@media (max-width: 900px) {
  .wall-head { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .wall-art { order: -1; margin: -8px -20px 0; }
  .wall-art img { height: clamp(210px, 44vw, 340px); object-fit: cover; object-position: right center; }
}
.empty { margin-top: 40px; font-size: 1.2rem; }

/* class years */
.years { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.years a { font-family: var(--display); font-size: 1.15rem; font-variant-numeric: tabular-nums; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-bottom: 3px solid var(--rail); padding: 8px 16px; min-height: 44px; display: inline-flex; align-items: center; }
.years a:hover { border-color: var(--maroon); color: var(--maroon); }
.years a[aria-current] { background: var(--maroon); border-color: var(--maroon); color: #fff; }

/* home sections */
.split-band, .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.split { margin-top: 28px; }
.split-band > div > p { margin-top: 14px; }
.split-band .btn { margin-top: 8px; }
.roster { list-style: none; margin-top: 18px; border-left: 4px solid var(--brass); padding-left: 18px; display: grid; gap: 6px; }
.roster li { font-family: var(--display); font-size: 1.15rem; line-height: 1.3; }
main > .nominate-band { width: 100%; background: var(--maroon); color: #fff; padding: clamp(36px, 6vw, 64px) max(20px, calc((100% - var(--w)) / 2)); display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; margin-block: 24px; }
.nominate-band > div { flex: 1 1 420px; max-width: 70ch; }
.nominate-band p { margin-top: 12px; }
.tiles { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 26px; margin-top: 26px; }
.tiles a { display: grid; gap: 4px; text-decoration: none; color: var(--ink); }
.tile-img { display: block; box-shadow: var(--lift-sm); margin-bottom: 12px; }
.tile-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tiles strong { font-family: var(--display); font-weight: 400; font-size: 1.3rem; }
.tiles span:last-child { color: var(--muted); }
.tiles a:hover strong { color: var(--maroon); text-decoration: underline; }

.fig.group { margin-top: 26px; max-width: 980px; }
.fig.group img { width: 100%; box-shadow: var(--lift); }
.fig.group figcaption { margin-top: 14px; color: var(--muted); font-size: 1.02rem; line-height: 1.55; max-width: 78ch; }
.congrats .btn { margin-top: 22px; }
.classpage .fig.group { margin-top: 56px; }

.dinner { margin-top: 64px; scroll-margin-top: calc(var(--pin) + 16px); }
.photo-columns { columns: 3 260px; column-gap: 22px; margin-top: 26px; }
.photo-columns .fig { break-inside: avoid; margin-bottom: 24px; }
.photo-columns .fig img { width: 100%; box-shadow: var(--lift-sm); }
.photo-columns figcaption { margin-top: 8px; color: var(--muted); font-size: 0.98rem; line-height: 1.45; }
.photo-strip { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 22px; max-width: 980px; }
.photo-strip img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; box-shadow: var(--lift-sm); }
.strip-actions { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; margin-top: 22px; font-weight: 600; }
.congrats .strip-actions .btn { margin-top: 0; }
@media (max-width: 720px) { .photo-strip { grid-template-columns: minmax(0, 1fr); } }

/* home: Class of 2026 block. Group photo and caption share one column; three dinner photos fill the column beside it. */
.congrats-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 28px; margin-top: 26px; align-items: stretch; }
.congrats-grid .fig.group { margin: 0; max-width: none; }
.congrats-grid .fig.group figcaption { max-width: none; margin-top: 16px; }
.congrats-side { display: flex; flex-direction: column; gap: 20px; min-height: 0; }
.congrats-side .photo-strip { flex: 1 1 auto; margin: 0; max-width: none; grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 20px; min-height: 0; }
.congrats-side .photo-strip li { position: relative; min-height: 0; }
.congrats-side .photo-strip img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.congrats .congrats-side .btn { margin-top: 0; text-align: center; }
@media (max-width: 900px) {
  .congrats-grid { grid-template-columns: minmax(0, 1fr); }
  .congrats-side .photo-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; gap: 14px; }
  .congrats-side .photo-strip li { position: static; }
  .congrats-side .photo-strip img { position: static; height: auto; aspect-ratio: 3 / 2; }
}

/* inductee page */
.bio-grid { display: grid; grid-template-columns: minmax(220px, 380px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.plaque { margin: 0; box-shadow: var(--lift); position: sticky; top: calc(var(--pin) + 20px); }
.plaque img { width: 100%; }
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.05em; }
.prose h2, .prose h3 { margin-top: 1.7em; }
.prose h1 + .inducted { margin-top: 8px; margin-bottom: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: 0.4em; }
.prose ul.roster, .prose ul.gallery { padding-left: 18px; }
.prose ul.gallery { padding-left: 0; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 64px; border-top: 8px solid var(--rail); padding-top: 20px; }
.pager a { text-decoration: none; font-family: var(--display); font-size: 1.25rem; display: grid; gap: 2px; }
.pager a:hover { text-decoration: underline; }
.pager small { font-family: var(--body); font-size: 0.95rem; color: var(--muted); font-weight: 600; }
.pager .next { text-align: right; }

/* content pages */
.page h1 { max-width: 22ch; }
.subnav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.subnav a { text-decoration: none; font-weight: 600; color: var(--muted); padding: 9px 0 6px; border-bottom: 3px solid transparent; }
/* phones: the section links sit on one line you can slide, instead of wrapping into a block */
@media (max-width: 720px) {
  .subnav { flex-wrap: nowrap; overflow-x: auto; gap: 0 22px; margin-inline: -20px; padding: 0 48px 0 20px; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
  .subnav::-webkit-scrollbar { display: none; }
  .subnav a { flex: none; white-space: nowrap; padding: 12px 0 9px; }
}
.subnav a:hover, .subnav a[aria-current] { color: var(--maroon); border-bottom-color: var(--maroon); }
.prose.wide { max-width: none; margin-top: 30px; }
.prose.wide > .row + .row { margin-top: 2.4em; }
.row > * + *, .col > * + * { margin-top: 1.05em; }
.row > p, .row > ul, .row > ol, .row > h2, .row > h3, .row > details { max-width: 72ch; }
.row.cols { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: clamp(24px, 4vw, 52px); align-items: start; }
.row[id] { scroll-margin-top: calc(var(--pin) + 16px); }
.fig { margin: 0; }
.fig img { background: var(--paper); box-shadow: var(--lift-sm); }
.fig.logo img { background: none; box-shadow: none; max-height: 220px; width: auto; }
.gallery { list-style: none; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 18px; }
.gallery img { width: 100%; box-shadow: var(--lift-sm); }
.gallery.logos { align-items: center; gap: 28px; }
.gallery.logos li { background: var(--paper); box-shadow: var(--lift-sm); padding: 16px; display: grid; place-items: center; aspect-ratio: 4 / 3; }
.gallery.logos img { box-shadow: none; max-height: 120px; width: auto; object-fit: contain; }
.acc { border-top: 1px solid var(--line); padding: 8px 0; }
.acc summary { font-family: var(--display); font-size: 1.3rem; cursor: pointer; padding-block: 8px; min-height: 44px; }
.acc > div { margin-top: 12px; }
.acc > div > * + * { margin-top: 1em; }
.contact-card { margin-top: 44px; background: var(--paper); border-left: 6px solid var(--maroon); padding: 22px 26px; display: flex; flex-wrap: wrap; gap: 8px 40px; align-items: baseline; }
.contact-card p { margin: 0; }
.booklet-wrap { margin-top: 60px; }
.booklet { margin-top: 16px; }
.embed { aspect-ratio: 5 / 3; max-width: 980px; box-shadow: var(--lift); margin-bottom: 20px; }
.embed iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 560px) { .embed { aspect-ratio: 3 / 4; } }

/* photo band across the top of a page */
main > .page-banner { width: 100%; margin: 0; background: var(--maroon); overflow: hidden; }
.page-banner img { display: block; width: 100%; height: auto; min-height: 170px; max-height: 480px; object-fit: cover; object-position: center; }
.page-banner + .page { padding-top: clamp(28px, 4.5vw, 48px); }

/* expandable entry with a photo beside its text */
.acc-media { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 22px; align-items: start; }
.acc-media.wide { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.acc-media.group { grid-template-columns: 200px minmax(0, 1fr); }
.acc-media img { width: 100%; height: auto; background: var(--paper); box-shadow: var(--lift-sm); }
.acc-media.wide img { max-width: 300px; }
.acc-media img[src$=".png"] { background: none; box-shadow: none; }
.acc-text > * + * { margin-top: 0.8em; }
.acc-text > p { font-family: var(--display); font-size: 1.1rem; margin-top: 1.1em; }
.acc-text > p:first-child { margin-top: 0; }
.acc-text > p + ul { margin-top: 0.3em; }

/* one picture beside a list of expandable entries */
.split-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 56px; align-items: start; }
.split-media { position: sticky; top: calc(var(--pin) + 24px); }
.split-media .fig { text-align: center; }
.split-media .fig img { width: 100%; max-width: min(var(--nw, 100%), calc(min(620px, 100vh - var(--pin) - 56px) * var(--ar, 1)), 100%); margin-inline: auto; }
.split-body > * + * { margin-top: 1.05em; }
.split-body > p:first-child { font-size: 1.2rem; line-height: 1.55; }

/* galleries are never held to the reading width */
.row > ul.gallery, .col > ul.gallery { max-width: none; }

/* yearbook archive page: logo beside the pitch, then a full-width shelf of covers */
.page-rhsarrow-org .row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px 56px; align-items: center; }
.page-rhsarrow-org .row > * { margin-top: 0; max-width: none; }
.page-rhsarrow-org .row > .fig.logo { grid-column: 1; grid-row: 1 / span 2; }
.page-rhsarrow-org .row > .fig.logo img { max-height: none; width: 100%; }
.page-rhsarrow-org .row > h2, .page-rhsarrow-org .row > h3 { grid-column: 2; grid-row: 1; align-self: end; font-size: clamp(1.45rem, 2.5vw, 2rem); line-height: 1.25; }
.page-rhsarrow-org .row > p { grid-column: 2; grid-row: 2; align-self: start; }
.page-rhsarrow-org .row > ul.gallery { grid-column: 1 / -1; grid-row: 3; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.page-rhsarrow-org .gallery img { aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
@media (max-width: 900px) {
  .page-rhsarrow-org .row { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .page-rhsarrow-org .row > .fig.logo, .page-rhsarrow-org .row > h2, .page-rhsarrow-org .row > h3, .page-rhsarrow-org .row > p, .page-rhsarrow-org .row > ul.gallery { grid-column: 1; grid-row: auto; }
  .page-rhsarrow-org .row > .fig.logo { max-width: 520px; }
  .page-rhsarrow-org .row > ul.gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 22px; }
}
@media (max-width: 560px) { .page-rhsarrow-org .row > ul.gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* content pages: two balanced reading columns; headings, wide pictures, galleries and grids span both */
.flow { columns: 2; column-gap: 56px; margin-top: 30px; overflow-wrap: anywhere; }
.flow > * { margin: 0 0 1.05em; }
.flow > .span { column-span: all; }
.flow > h2 { margin: 1.5em 0 0.7em; }
.flow > h2:first-child { margin-top: 0; }
.flow > h3 { margin: 0.3em 0 0.5em; break-after: avoid; }
.flow > p { orphans: 3; widows: 3; }
.flow > .keep, .flow > figure, .flow > details, .flow > ul:not([class]) li { break-inside: avoid; }
.flow > ul:not([class]), .flow > ol { padding-left: 1.3em; }
.flow > ul:not([class]) li + li, .flow > ol li + li { margin-top: 0.4em; }
.flow > figure.fig { text-align: center; }
/* pictures never grow past their real size; widths are set (not heights) so the page keeps the right space while they load */
.flow > figure.fig img { width: 100%; max-width: min(var(--nw, 100%), 100%); margin-inline: auto; }
.flow > figure.fig.tall img { max-width: min(var(--nw, 100%), calc(620px * var(--ar, 1)), 100%); }
.flow .row.cols .fig img { width: 100%; }
.flow > figure.fig.span img { width: 100%; max-width: 100%; }
.flow figcaption { margin-top: 8px; color: var(--muted); font-size: 0.98rem; line-height: 1.45; text-align: left; }
.flow > p.lede-wide { font-size: 1.2rem; line-height: 1.55; }
.flow > hr.band-rule { border: 0; border-top: 1px solid var(--line); margin: 0.6em 0 1.7em; }
.flow > .row.cols { margin-block: 0.4em 1.6em; }
.flow > .gallery { margin-block: 0.4em 1.6em; }
.flow > details.acc { margin: 0; padding: 7px 0; }
.flow > .acc-group { break-inside: avoid; }
.acc-group .acc { padding: 6px 0; }
.acc-group .acc:last-child { border-bottom: 1px solid var(--line); }
.acc-group .acc > div ul { padding-left: 1.2em; }
.acc-group .acc > div li + li { margin-top: 0.3em; }
.flow > details.acc.span > div { columns: 2; column-gap: 56px; }
.flow > details.acc.span > div > * { margin: 0 0 1em; }
.flow > details.acc > div ul { padding-left: 1.2em; }
.flow [id] { scroll-margin-top: calc(var(--pin) + 16px); }
.feature { display: grid; grid-template-columns: minmax(0, min(var(--fw, 50%), 58%)) minmax(0, 1fr); gap: 44px; align-items: center; }
.feature .fig img { width: 100%; max-width: min(var(--nw, 100%), 100%); }
.feature-text { font-size: 1.2rem; line-height: 1.55; max-width: 52ch; }
.feature-text > * + * { margin-top: 0.9em; }

/* partner logos: equal tiles, each logo fitted to the same box, named underneath */
.partners { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; padding: 0; }
.partners a, .partners .tile { display: grid; grid-template-rows: 150px 1fr; height: 100%; background: var(--paper); box-shadow: var(--lift-sm); text-decoration: none; color: var(--ink); transition: transform 0.18s ease; }
.partners .logo { display: grid; place-items: center; padding: 20px 22px; min-height: 0; }
.partners .logo img { max-width: 100%; max-height: 110px; width: auto; height: auto; object-fit: contain; }
.partners .name { display: grid; place-items: center; padding: 12px 14px; border-top: 1px solid var(--line); text-align: center; font-family: var(--display); font-size: 1.02rem; line-height: 1.25; }
.partners a:hover { transform: translateY(-3px); }
.partners a:hover .name { color: var(--maroon); }

/* class page: group photo with its names beside it */
.classpage .fig.group { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 36px; align-items: center; max-width: none; }
.classpage .fig.group figcaption { margin: 0; max-width: none; font-size: 1.08rem; line-height: 1.6; }

@media (max-width: 900px) {
  .flow, .flow > details.acc.span > div { columns: 1; }
  .feature, .classpage .fig.group, .split-row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .split-media { position: static; }
  .split-media .fig img { max-width: min(var(--nw, 100%), calc(380px * var(--ar, 1)), 100%); }
  .partners { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partners li:last-child:nth-child(odd) { grid-column: 1 / -1; }   /* the fifth tile takes the full row instead of sitting alone */
  .partners li:last-child:nth-child(odd) a, .partners li:last-child:nth-child(odd) .tile { grid-template-rows: 110px 1fr; }
  .acc-media, .acc-media.group { grid-template-columns: 110px minmax(0, 1fr); gap: 6px 16px; }
  .acc-media.wide { grid-template-columns: minmax(0, 1fr); }
}

/* footer */
.site-foot { background: var(--maroon-deep); color: #f1e9ea; margin-top: 80px; padding-top: 52px; font-size: 1rem; }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.2fr repeat(4, minmax(0, 1fr)); gap: 32px 28px; }
.site-foot h2 { font-size: 1.15rem; color: #fff; margin-bottom: 10px; }
.site-foot ul { list-style: none; display: grid; gap: 6px; }
.foot-brand img { width: 74px; filter: brightness(0) invert(1); opacity: 0.92; margin-bottom: 12px; }
.foot-brand p { font-family: var(--display); font-size: 1.2rem; line-height: 1.3; color: #fff; }
.foot-brand .est { font-family: var(--body); font-size: 1rem; color: #d9c6c9; margin-top: 6px; }
.legal { margin-top: 44px; padding-block: 18px; border-top: 1px solid rgba(255, 255, 255, 0.18); color: #d9c6c9; font-size: 0.95rem; }
.legal p { padding-right: 96px; }   /* keeps the line clear of the back-to-top button */
.legal .credit { margin-top: 4px; }

@media (max-width: 900px) {
  .split-band, .split { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 24px; }
  .foot-brand { grid-column: 1 / -1; }
  .site-foot ul { gap: 0; }
  .site-foot li a, .site-foot p a { display: inline-flex; align-items: center; min-height: 44px; }
  .site-foot h2 { margin-bottom: 4px; }
  .row.cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 1.06rem; }
  .bio-grid { grid-template-columns: minmax(0, 1fr); }
  .plaque { position: static; max-width: 340px; margin-inline: auto; }
  .gallery { grid-template-columns: repeat(min(var(--n), 2), minmax(0, 1fr)); }
  .wall { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 26px 16px; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager .next { text-align: left; }
}
@media (max-width: 460px) {
  .tiles { gap: 24px 14px; }
  .tiles strong { font-size: 1.12rem; line-height: 1.25; }
  .tiles span:last-child { font-size: 0.95rem; line-height: 1.4; }
  .site-foot { margin-top: 56px; padding-top: 40px; }
}

/* Coaches Award of Merit: the list beside the photo page; the photos stay in view while the list scrolls */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.merit-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; margin-top: 26px; }
.merit-photos { margin: 0; position: sticky; top: calc(var(--pin) + 24px); }
.merit-photos img { width: 100%; height: auto; box-shadow: var(--lift); }
table.merit { width: 100%; border-collapse: collapse; background: var(--paper); box-shadow: var(--lift-sm); font-size: 1.05rem; line-height: 1.4; }
.merit th, .merit td { text-align: left; vertical-align: top; padding: 10px 16px; border-top: 1px solid var(--line); }
.merit thead th { border-top: 0; color: var(--muted); font-weight: 600; font-size: 0.95rem; padding-block: 12px 10px; }
.merit tbody th { font-family: var(--display); font-weight: 400; font-size: 1.14rem; white-space: nowrap; }
.merit .m-years { font-variant-numeric: tabular-nums; color: var(--muted); }
.merit tr.more td { border-top: 0; padding-top: 0; }
@media (max-width: 900px) {
  .merit-layout { grid-template-columns: minmax(0, 1fr); }
  .merit-photos { position: static; max-width: 560px; margin-inline: auto; }
}
/* phones: each person becomes a short block (name, then sport and years) instead of three tight columns */
@media (max-width: 560px) {
  .merit thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table.merit, .merit tbody, .merit tr, .merit th, .merit td { display: block; }
  .merit tbody th { white-space: normal; padding: 12px 16px 2px; }
  .merit tbody tr:first-child th { border-top: 0; }
  .merit td { border-top: 0; padding: 0 16px; }
  .merit td.m-years { padding-bottom: 12px; }
  .merit tr.more td.m-role { margin-top: -6px; }
}

/* a row of actions under a page title */
.page-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; }
.page-cta span { color: var(--muted); flex: 1 1 240px; }
.notfound .prose > p:first-child { font-size: 1.2rem; }

/* printed pages (lists, clippings, sheet music): the picture opens full size so it can be read */
.fig a.zoom { display: block; position: relative; }
.fig a.zoom::after { content: "View full size"; position: absolute; right: 8px; bottom: 8px; background: rgba(32, 27, 28, 0.88); color: #fff; font: 600 0.84rem/1 var(--body); padding: 7px 10px; border-radius: 3px; }
.fig a.zoom:hover::after, .fig a.zoom:focus-visible::after { background: var(--maroon); }

/* tablets: one reading column, so the type steps up to keep lines a comfortable length and pictures stay in view */
@media (min-width: 600px) and (max-width: 900px) {
  .flow > .row.cols { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 24px; }   /* paired pictures stay side by side */
  .flow, .prose.wide { font-size: 1.2rem; }
  .flow > figure.fig:not(.span):not(.doc) img { max-width: min(var(--nw, 100%), calc(560px * var(--ar, 1)), 100%); }
}

/* back to top */
.to-top { position: fixed; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); z-index: 20; display: inline-flex; align-items: center; gap: 6px;
  min-height: 46px; padding: 0 14px 0 10px; background: var(--rail); color: #fff; font-weight: 700; font-size: 1rem; text-decoration: none; border-radius: 3px; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.55); }
.to-top:hover { background: var(--maroon); color: #fff; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .frame, .partners a, .nav-home, .site-head.pinned .nav-home, .nav-item > a { transition: none; }
  .plaque-card a:hover .frame, .plaque-card a:focus-visible .frame { transform: none; }
}

/* ---- lists and pictures moved from the 2026 banquet book (Nov 30, 2026) ---- */
.years.jumps { margin: 0 0 1.6em; }
.years.jumps a { font-size: 1.05rem; }
.by-class, .hof-recipients { list-style: none; padding: 0; column-gap: 40px; font-size: 1.04rem; line-height: 1.4; }
.by-class { columns: 4 230px; }
.hof-recipients { columns: 3 260px; }
.by-class li, .hof-recipients li { break-inside: avoid; padding: 7px 0; border-top: 1px solid var(--line); }
.by-class li { display: grid; grid-template-columns: 3em minmax(0, 1fr); column-gap: 10px; }
.by-class b { font-weight: 600; color: var(--maroon); font-variant-numeric: tabular-nums; }
.hof-recipients li { font-variant-numeric: tabular-nums; }
.flow > p.list-note { color: var(--muted); font-size: 1rem; }
.flow > h2 + p.list-note { margin-top: -0.3em; }
.scorers { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 30px clamp(16px, 2.4vw, 28px); --cols: 4; max-width: 1080px; }
.scorers.girls { --cols: 5; }
.scorers li { display: flex; flex-direction: column; font-size: 1rem; line-height: 1.4; color: var(--muted); }
.scorers img { width: 100%; height: auto; aspect-ratio: var(--ar); object-fit: cover; object-position: center top; background: var(--paper); box-shadow: var(--lift-sm); margin-bottom: 12px; }
.scorers .who { font-family: var(--display); font-size: 1.16rem; line-height: 1.25; color: var(--ink); margin-bottom: 2px; }
.scorers .pts { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.window-pics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto auto; gap: 0 clamp(16px, 2.6vw, 32px); max-width: 1040px; margin-block: 0.2em 2em; }
.window-pics .fig { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; }
.window-pics .fig img { width: 100%; max-width: var(--nw); height: auto; align-self: end; }
@media (max-width: 720px) {
  .scorers { --cols: 2; }
  .scorers.girls { --cols: 3; gap: 24px 14px; }
  .scorers.girls .who { font-size: 1.04rem; }
  .window-pics { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 0; }
  .window-pics .fig { margin-bottom: 22px; }
}

/* ---- pages added Nov 30, 2026 from the banquet book: roll of honor, Thanksgiving rivalry, early teams ---- */
table.data { width: 100%; border-collapse: collapse; background: var(--paper); box-shadow: var(--lift-sm); font-size: 1.04rem; line-height: 1.4; }
.data th, .data td { text-align: left; vertical-align: top; padding: 9px 16px; border-top: 1px solid var(--line); }
.data thead th { border-top: 0; color: var(--muted); font-weight: 600; font-size: 0.95rem; padding-block: 12px 10px; white-space: nowrap; }
.data tbody th { font-family: var(--display); font-weight: 400; font-size: 1.12rem; }
.data .lbl { display: none; }
.data .ref { color: var(--muted); font-size: 0.9rem; }
.data.roll .d-class, .data.roll .d-died, .data.rivalry td, .data.rivalry tbody th { font-variant-numeric: tabular-nums; }
.data.roll .d-died { white-space: nowrap; }
.data.rivalry tbody th { color: var(--maroon); }
.data abbr { text-decoration: none; }
.roll-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 40px; align-items: start; margin-top: 1.6em; }
.roll-notes { margin: 0; padding-left: 1.4em; color: var(--muted); font-size: 1rem; }
.roll-notes li { margin-bottom: 0.45em; }
.roll-foot .fig { margin: 0; max-width: 200px; }
.roll-foot .fig img { width: 92px; height: auto; }
.early-teams { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 32px; align-items: start; max-width: 1080px; }
.early-teams .fig { margin: 0; width: min(100%, var(--nw)); }
.early-teams .fig img { width: 100%; height: auto; }
.early-teams figcaption b { display: block; font-weight: 600; color: var(--ink); }
.bio .fig.bio-photo { margin: 1.8em 0 0; }
.bio .fig.bio-photo img { width: 100%; max-width: var(--nw); height: auto; }
@media (max-width: 720px) {
  .data thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table.data, .data tbody { display: block; }
  .data tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; padding: 12px 16px; border-top: 1px solid var(--line); }
  .data tbody tr:first-child { border-top: 0; }
  .data th, .data td { display: block; border: 0; padding: 0; }
  .data td[data-l]::before { content: attr(data-l) ": "; color: var(--muted); }
  .data .lbl { display: inline; }
  .data.roll .d-class { color: var(--muted); text-align: right; white-space: nowrap; }
  .data.roll .d-sport, .data.roll .d-died { grid-column: 1 / -1; }
  .data.rivalry tr { display: block; position: relative; padding-left: 4.6em; }      /* year at the left; the score on its own line; the rest runs on beneath it */
  .data.rivalry tbody th { position: absolute; left: 16px; top: 12px; }
  .data.rivalry .d-result { font-weight: 600; margin-bottom: 2px; }
  .data.rivalry td[data-l] { display: inline; font-size: 0.97rem; margin-right: 12px; white-space: nowrap; }
  .early-teams { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
  .roll-foot { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) { .early-teams { grid-template-columns: minmax(0, 1fr); } }

/* header: Program Books sits beside the yearbook archive. On the stacked header the yearbook link drops its "RHS" and moves to the end of the row;
   on phones the two-word links stand on two lines so all five fit without sliding. */
@media (max-width: 920px) {
  .nav-wide { display: none; }
  .nav-item.nav-last { order: 1; }
  .nav-item > a.two-line { column-gap: 0.26em; }
}
@media (max-width: 560px) {
  .nav-item > a.two-line { flex-direction: column; line-height: 1.14; }
}
@media (max-width: 340px) {
  .site-head.pinned .nav-home { width: 36px; }
  .site-head.pinned .nav-item > a { padding-inline: 2px; }
}

/* program books: the newest book beside its details, then a shelf with one book for each class */
.program-feature { display: grid; grid-template-columns: minmax(170px, 290px) minmax(0, 1fr); gap: clamp(24px, 5vw, 60px); align-items: center; margin-top: 34px; }
.program-cover { display: block; background: var(--paper); box-shadow: var(--lift); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.program-cover img { width: 100%; height: auto; }
.program-cover:hover, .program-cover:focus-visible { transform: translateY(-4px); box-shadow: 0 2px 3px rgba(29, 24, 25, 0.18), 0 24px 32px -16px rgba(29, 24, 25, 0.6); }
.program-about > * + * { margin-top: 12px; }
.program-about .count { margin-top: 0; }
.program-about > p:not([class]) { max-width: 52ch; }
.program-about .page-cta { margin-top: 22px; font-weight: 600; }
.program-about .note { margin-top: 14px; font-size: 1rem; }
.shelf-wrap { margin-top: 68px; }
.shelf-wrap h2 { border-top: 8px solid var(--rail); padding-top: 16px; }
.shelf { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 36px 24px; margin-top: 28px; }
.book { display: grid; grid-template-rows: auto 1fr auto; aspect-ratio: 11 / 14; padding: 16px 12px 15px; background: var(--maroon); color: #fff; text-align: center; text-decoration: none;
  outline: 1px solid rgba(255, 255, 255, 0.34); outline-offset: -7px; box-shadow: var(--lift); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.book-org, .book-kind { font: 600 0.7rem/1.3 var(--body); letter-spacing: 0.09em; text-transform: uppercase; color: #ecdcdf; text-wrap: balance; }
.book-year { align-self: center; font-family: var(--display); font-size: 2.5rem; line-height: 1; font-variant-numeric: tabular-nums; }
.book:hover, .book:focus-visible { color: #fff; transform: translateY(-4px); box-shadow: 0 2px 3px rgba(29, 24, 25, 0.18), 0 24px 32px -16px rgba(29, 24, 25, 0.6); }
.book:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
.book-class { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; font-family: var(--display); font-size: 1.06rem; text-decoration: none; color: var(--ink); }
.book-class:hover { color: var(--maroon); text-decoration: underline; }
/* class page: the program as a cover with its link, for the years kept as a PDF */
.booklet.has-cover { display: grid; grid-template-columns: minmax(130px, 210px) minmax(0, 1fr); gap: clamp(20px, 4vw, 40px); align-items: center; max-width: 760px; margin-top: 22px; }
.booklet.has-cover > div > * + * { margin-top: 14px; }
.booklet-wrap[id] { scroll-margin-top: calc(var(--pin) + 16px); }
@media (max-width: 600px) {
  .program-feature { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 26px; }
  .program-feature .program-cover { max-width: 230px; }
  .booklet.has-cover { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .booklet.has-cover .program-cover { max-width: 200px; }
  .shelf { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 18px 14px; }
  .book { padding: 12px 8px 11px; outline-offset: -6px; }
  .book-org { display: none; }
  .book { grid-template-rows: 1fr auto; }
  .book-year { font-size: 1.9rem; }
  .book-kind { font-size: 0.6rem; }
  .book-class { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .program-cover, .book { transition: none; }
  .program-cover:hover, .program-cover:focus-visible, .book:hover, .book:focus-visible { transform: none; }
}

/* Thanksgiving rivalry: vintage programs and photos in one row at an even height (each takes width in proportion to its shape) */
.rivalry-photos { display: flex; gap: 22px; align-items: flex-start; margin-block: 0.4em 1.9em; }
.rivalry-photos .fig { flex: var(--ar, 1) 1 0; min-width: 0; margin: 0; }
.rivalry-photos img { width: 100%; height: auto; box-shadow: var(--lift-sm); }
.rivalry-photos figcaption { font-size: 0.95rem; }
@media (max-width: 720px) {
  .rivalry-photos { flex-wrap: wrap; gap: 20px 16px; }
  .rivalry-photos .fig { flex: 1 1 100%; order: 2; }
  .rivalry-photos .fig.cover { flex: 1 1 calc(50% - 8px); order: 1; }
}
/* rivalry table: years and names wrap at spaces only, never mid-word (showed as "194 4" and "Ridgewoo d" on tablets) */
.data.rivalry th, .data.rivalry td { overflow-wrap: normal; }
@media (min-width: 721px) { .data.rivalry tbody th, .data.rivalry .d-winner, .data.rivalry td:nth-child(4) { white-space: nowrap; } }

/* inductees: the search box and the sport list share one row (and stay side by side on phones, so the pinned bar is one line) */
.wallpage .finder-fields { display: flex; gap: 10px; max-width: 760px; }
.wallpage .finder-fields input { flex: 1 1 auto; min-width: 0; width: auto; }
.finder select { font: inherit; flex: 0 1 230px; min-width: 0; padding: 12px 10px; border: 2px solid var(--rail); border-radius: 3px; background: var(--paper); color: var(--ink); cursor: pointer; }
@media (max-width: 560px) {
  .wallpage .finder-fields { gap: 8px; }
  .finder select { flex: 0 0 44%; padding-inline: 6px; }
}
