/* Inner pages (about, membership, visiting, sailing, racing, regattas, boat-club, lessons, dining, events, weddings).
   Same paper, ink and rules as the home page; each page mixes these pieces in its own order so no two read alike. */

/* ---------------------------------------------------------------- page opening */
.page-head .crumb .pennant { width: .9em; height: .52em; }
.page-head__fixes { align-self: end; }
.page-head__fixes .fixes { margin-top: 8px; }
.lead-plate { margin: 0; }
.lead-plate img { width: 100%; height: clamp(240px, 46vw, 640px); object-fit: cover; }
.lead-plate figcaption { font-family: var(--sans); font-size: .8125rem; color: var(--muted); padding: 10px var(--gutter) 0; max-width: var(--wrap); margin-inline: auto; }
.lead-plate--tall img { height: clamp(300px, 56vw, 760px); }

/* ---------------------------------------------------------------- reading */
.prose p { max-width: 64ch; }
.prose h3 { margin: 1.6em 0 .5em; }
.prose h3:first-child { margin-top: 0; }
.prose ul.marked { margin-bottom: 1.2em; }
.sec-title { margin-bottom: 18px; }
.lede-big { font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.45; max-width: 40ch; }

/* a pull quote: the club's own words, set in the display face */
.pull { margin: 0; padding: clamp(8px, 2vw, 20px) 0; }
.pull blockquote { margin: 0; font-family: var(--display); font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.12; max-width: 24ch; }
.pull figcaption { margin-top: 14px; font-family: var(--sans); font-size: .875rem; color: var(--muted); display: flex; gap: 10px; align-items: center; }

/* a contact or action box: a red rule on top, nothing else */
.callout { border-top: 3px solid var(--red); padding-top: 16px; }
.callout h3 { margin-bottom: 8px; }
.callout p:last-child { margin-bottom: 0; }

/* two photographs side by side, deliberately unequal */
.spread { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(14px, 2vw, 28px); align-items: start; }
.spread .plate:nth-child(2) { margin-top: clamp(0px, 6vw, 96px); }
.spread img { width: 100%; height: auto; }
@media (max-width: 700px) { .spread { grid-template-columns: minmax(0, 1fr); } .spread .plate:nth-child(2) { margin-top: 0; } }
.plate a { display: block; }

/* ---------------------------------------------------------------- the years (about) */
.years { list-style: none; margin: 0; padding: 0; }
.years > li { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr) minmax(0, 1fr); column-gap: clamp(20px, 3vw, 48px); padding: clamp(18px, 2.4vw, 30px) 0; border-top: 1px solid var(--rule); }
.years .yr { font-family: var(--display); font-size: clamp(2.2rem, 4.4vw, 4rem); line-height: .95; color: var(--fg); font-variant-numeric: lining-nums; }
.years .yr small { display: block; font-family: var(--sans); font-size: .8125rem; color: var(--muted); margin-top: 8px; }
.years p { margin-bottom: .6em; }
.years p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .years > li { grid-template-columns: minmax(0, 1fr); row-gap: 8px; } }

/* ---------------------------------------------------------------- people (about) */
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 44%), 1fr)); gap: clamp(22px, 3vw, 40px) clamp(14px, 2vw, 28px); }
.people figure { margin: 0; }
.people img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--panel); }
.people figcaption { padding-top: 10px; }
.people .name { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; line-height: 1.25; }
.people .role { display: block; font-family: var(--sans); font-size: .875rem; color: var(--muted); margin-top: 2px; }
.people a { font-family: var(--sans); font-size: .875rem; overflow-wrap: anywhere; }
.people--lead { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }

/* ---------------------------------------------------------------- credits (about) */
.credits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px clamp(24px, 4vw, 56px); }
.credits h3 { font-family: var(--sans); font-size: .875rem; font-weight: 700; margin-bottom: 8px; }
.credits p, .credits li { font-family: var(--sans); font-size: .9375rem; line-height: 1.55; color: var(--fg); }
.credits ul { padding-left: 1.1em; margin: 0; }
@media (max-width: 760px) { .credits { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- membership */
.cats { display: grid; gap: clamp(28px, 4vw, 48px); }
.cat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 14px clamp(24px, 4vw, 56px); padding-top: 22px; border-top: 1px solid var(--rule); }
.cat h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 10px; }
.cat .elig { font-size: 1rem; line-height: 1.55; }
.cat .foot { font-family: var(--sans); font-size: .875rem; color: var(--muted); }
.cat .ledger caption { font-family: var(--sans); font-size: .8125rem; font-weight: 600; color: var(--muted); }
.cat .big { font-family: var(--sans); font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums; }
.cat .big small { font-size: .4em; font-weight: 500; margin-left: .25em; }
@media (max-width: 860px) { .cat { grid-template-columns: minmax(0, 1fr); } }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.4em minmax(0, 1fr); gap: 10px; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--rule); }
.steps li::before { content: counter(step); font-family: var(--display); font-size: 1.8rem; line-height: 1; }
.terms { margin: 0; padding-left: 1.6em; list-style: lower-alpha; columns: 2 26rem; column-gap: clamp(24px, 4vw, 56px); }
.terms li { break-inside: avoid; margin-bottom: .7em; font-size: 1rem; line-height: 1.55; }
.terms li::marker { font-family: var(--sans); font-weight: 700; color: var(--red-ink); }

/* ---------------------------------------------------------------- visiting */
.fixgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.fixgrid > div { padding: 18px 20px 20px 0; border-bottom: 1px solid var(--rule); }
.fixgrid > div + div { padding-left: 20px; border-left: 1px solid var(--rule); }
.fixgrid > div:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.fixgrid .fix-label { margin-bottom: 6px; }
.fixgrid .val { font-family: var(--sans); font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.3; }
.fixgrid .note { margin: 6px 0 0; }
@media (max-width: 860px) { .fixgrid { grid-template-columns: minmax(0, 1fr); } .fixgrid > div, .fixgrid > div + div { padding-left: 0; border-left: 0; } }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(24px, 3vw, 48px); }
.cols3 h3 { margin-bottom: 10px; }
.cols3 ul { margin: 0; }
@media (max-width: 860px) { .cols3 { grid-template-columns: minmax(0, 1fr); } }
.webcam { border: 1px solid var(--rule); }
.webcam__frame { position: relative; aspect-ratio: 16 / 9; background: var(--panel); display: grid; place-items: center; overflow: hidden; }
.webcam__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.webcam__frame .act { position: relative; }
.webcam__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.webcam__cap { padding: 12px 16px; margin: 0; }

/* ---------------------------------------------------------------- sailing: the week, as a stacking deck */
.scroll-stack { list-style: none; margin: 0; padding: 0; position: relative; }
.scroll-stack__slot { margin-bottom: 28px; }
.scroll-stack.is-live .scroll-stack__slot { position: sticky; }
.scroll-stack-card { position: relative; transform-origin: 50% 0; will-change: transform; background: var(--panel); border: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: clamp(300px, 34vw, 420px); }
.scroll-stack-card::after { content: ""; position: absolute; inset: 0; background: #14204a; opacity: var(--scroll-stack-dim, 0); pointer-events: none; }
.scroll-stack-card .txt { padding: clamp(20px, 3vw, 40px); display: grid; align-content: start; gap: 10px; }
.scroll-stack-card .day { font-family: var(--sans); font-size: .875rem; font-weight: 700; color: var(--red-ink); }
.scroll-stack-card h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 2.8vw, 2.5rem); }
.scroll-stack-card p { font-size: 1rem; margin: 0; }
.scroll-stack-card img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .scroll-stack-card { grid-template-columns: minmax(0, 1fr); } .scroll-stack-card img { height: 200px; order: -1; } }
@media (prefers-reduced-motion: reduce) {
  .scroll-stack .scroll-stack__slot { position: static; }
  .scroll-stack-card { transform: none !important; will-change: auto; }
  .scroll-stack-card::after { display: none; }
}

/* ---------------------------------------------------------------- racing: documents, results, the circle */
.docs-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
@media (max-width: 760px) { .docs-cols { grid-template-columns: minmax(0, 1fr); } }
.docs .kind { font-variant-numeric: tabular-nums; }
.results { margin: 0; }
.results summary { font-family: var(--sans); font-weight: 600; font-size: 1rem; padding: 14px 0; border-top: 1px solid var(--rule); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.results summary::-webkit-details-marker { display: none; }
.results summary::after { content: "Show"; font-weight: 500; color: var(--muted); font-size: .875rem; }
.results[open] summary::after { content: "Hide"; }
.race-chart { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.race-chart svg { width: 100%; height: auto; max-width: 560px; margin-inline: auto; overflow: visible; }
.race-chart .ring { fill: none; stroke: var(--fg); stroke-width: 1.2; }
.race-chart .course { fill: none; stroke: var(--data); stroke-width: 1.6; stroke-dasharray: none; }
.race-chart .grid line { stroke: var(--rule); stroke-width: 1; }
.race-chart .mk circle { fill: var(--red); }
.race-chart .mk text, .race-chart .lbl { font-family: var(--sans); font-size: 13px; font-weight: 700; fill: var(--fg); }
.race-chart .lbl { font-weight: 500; fill: var(--muted); font-size: 12px; }
.race-chart [data-mark] { transition: opacity .3s ease; }
@media (max-width: 860px) { .race-chart { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- regattas */
.regatta { padding-block: clamp(56px, 7vw, 104px); border-top: 1px solid var(--rule); }
.regatta__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 18px clamp(24px, 4vw, 56px); align-items: end; margin-bottom: clamp(24px, 3vw, 40px); }
.regatta__head .dates { font-family: var(--sans); font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .regatta__head { grid-template-columns: minmax(0, 1fr); } }
.banner-img { width: 100%; height: auto; border: 1px solid var(--rule); }
.logos { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }
.logos img { height: 64px; width: auto; object-fit: contain; }
.sched th { white-space: nowrap; }
.poster { margin: 0; }
.poster img { width: 100%; height: auto; border: 1px solid var(--rule); }

/* ---------------------------------------------------------------- boat club: the pile of prints */
.fleet { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (max-width: 860px) { .fleet { grid-template-columns: minmax(0, 1fr); } }
.stack-wrap { display: grid; gap: 14px; justify-items: center; }
.stack { width: min(100%, 440px); aspect-ratio: 4 / 3.4; }
.stack:not(.is-ready) { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; aspect-ratio: auto; }
.stack:not(.is-ready) .stack-card { position: relative; }
.stack.is-ready { position: relative; touch-action: pan-y; }
.stack-card { margin: 0; background: #fbf8f1; padding: 10px 10px 0; outline: 1px solid rgba(20, 32, 74, .2); }
.stack-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.stack-card figcaption { font-family: var(--sans); font-size: .8125rem; line-height: 1.35; color: var(--muted); padding: 9px 2px 11px; }
.stack.is-ready .stack-card { position: absolute; inset: 0 0 auto 0; transform-origin: 50% 50%; transition: transform .55s cubic-bezier(.2, 1.25, .4, 1), opacity .35s ease-out; will-change: transform; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.stack.is-ready .stack-card[data-top] { cursor: grab; }
.stack.is-ready.is-dragging .stack-card[data-top] { cursor: grabbing; }
.stack.is-ready .stack-card.is-dragging { transition: none; }
.stack.is-ready .stack-card.is-flying { transition: transform .33s cubic-bezier(.3, .7, .4, 1); }
.stack.is-ready .stack-card::after { content: ""; position: absolute; inset: 0; background: #14204a; opacity: var(--stack-shade, 0); pointer-events: none; transition: opacity .35s; }
.stack.stack--reduced .stack-card, .stack.stack--reduced .stack-card.is-flying { transition: opacity .2s ease-out; }
.stack-cap { font-family: var(--sans); font-size: .9375rem; margin: 0; min-height: 1.5em; text-align: center; }
@media (prefers-reduced-motion: reduce) { .stack.is-ready .stack-card { transition: opacity .2s ease-out; } }
.rules { margin: 0; padding-left: 1.6em; columns: 2 24rem; column-gap: clamp(24px, 4vw, 56px); }
.rules li { break-inside: avoid; margin-bottom: .7em; font-size: 1rem; line-height: 1.55; }
.rules li::marker { font-family: var(--sans); font-weight: 700; color: var(--red-ink); }
.rent { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.rent article { border-top: 3px solid var(--red); padding-top: 18px; display: grid; align-content: start; gap: 10px; }
.rent h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.rent p { margin: 0; }
@media (max-width: 760px) { .rent { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- lessons: the fan */
.bounce-cards:not(.is-ready) { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.bounce-cards:not(.is-ready) .bounce-cards__card { position: relative; width: 150px; transform: none; }
.bounce-cards.is-ready { position: relative; width: 100%; touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.bounce-cards__card { position: absolute; top: 50%; left: 50%; width: var(--bounce-size, 200px); aspect-ratio: 4 / 5; padding: 0; overflow: hidden; border: 7px solid #fbf8f1; border-bottom-width: 22px; border-radius: 0; background: #fbf8f1; outline: 1px solid rgba(20, 32, 74, .2); transform: translate(-50%, -50%) scale(0); will-change: transform; cursor: pointer; font: inherit; color: inherit; }
.bounce-cards:not(.is-ready) .bounce-cards__card { aspect-ratio: 4 / 5; }
.bounce-cards__card[data-active] { outline: 2px solid var(--red); }
.bounce-cards__card:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }
.bounce-cards__card img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; }
.fan { height: clamp(300px, 36vw, 420px); margin-block: 8px 8px; }
.two-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.two-ways article { border-top: 1px solid var(--rule); padding-top: 18px; }
.two-ways h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 2.8vw, 2.4rem); margin-bottom: 6px; }
@media (max-width: 760px) { .two-ways { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- dining: the menu card */
.menu-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px clamp(28px, 5vw, 72px); }
.menu-card section { break-inside: avoid; }
.menu-card h3 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; margin: 18px 0 6px; }
.menu-card .ledger td.num { width: 5em; }
.menu-card .ledger th { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; }
@media (max-width: 760px) { .menu-card { grid-template-columns: minmax(0, 1fr); } }
.hours { font-family: var(--sans); }
.hours li { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- events */
.season-list td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.posters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3.5vw, 48px); }
.posters article { border-top: 1px solid var(--rule); padding-top: 18px; }
.posters h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 6px; }
.posters .when { font-family: var(--sans); font-weight: 600; font-size: 1rem; margin-bottom: 10px; }
@media (max-width: 760px) { .posters { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- weddings: two numbers, big */
.capacity { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.capacity > div { padding: clamp(18px, 2.4vw, 30px) clamp(12px, 2vw, 24px) clamp(18px, 2.4vw, 30px) 0; }
.capacity > div + div { padding-left: clamp(12px, 2vw, 24px); border-left: 1px solid var(--rule); }
.capacity .n { font-family: var(--display); font-size: clamp(3rem, 7vw, 6rem); line-height: .9; display: block; }
.capacity .what { font-family: var(--sans); font-size: .9375rem; color: var(--muted); display: block; margin-top: 8px; }
@media (max-width: 700px) { .capacity { grid-template-columns: minmax(0, 1fr); } .capacity > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); } }

/* in-page contents for the longer pages */
.onpage { display: flex; flex-wrap: wrap; gap: 6px 22px; font-family: var(--sans); font-size: .9375rem; margin-top: 22px; }
.onpage a { text-decoration: none; display: inline-flex; gap: .45em; align-items: center; min-height: 44px; }
.onpage a:hover { text-decoration: underline; }

/* dated ledgers (js/pages.js marks the rows): past rows struck through, today marked */
.season__table tbody th { font-family: var(--serif); font-size: 1.1rem; font-weight: 500; }
.season__table tr.is-past { color: var(--muted); }
.season__table tr.is-past th, .season__table tr.is-past td { text-decoration: line-through; text-decoration-thickness: 1px; }
.season__table tr.is-past td.num a { display: none; }
.season__table tr.is-today th::after { content: "Today"; margin-left: 10px; font-family: var(--sans); font-size: .75rem; font-weight: 700; color: #fff; background: var(--red-ink); padding: 2px 6px; vertical-align: middle; text-decoration: none; display: inline-block; }

/* phones: crumb, then the title and lede, then the margin facts (the margin column comes first in the markup) */
@media (max-width: 860px) {
  .page-head .pilot { display: flex; flex-direction: column; align-items: stretch; }
  .page-head .page-head__fixes { display: contents; }
  .page-head .crumb { order: -2; }
  .page-head .main { order: -1; }
  .page-head .page-head__fixes .fixes { margin-top: 26px; }
}
/* the print pile: leave room for the tilted prints so they never push the page sideways */
.fleet { overflow-x: clip; }
@media (max-width: 860px) { .stack { width: min(100% - 56px, 440px); margin-top: 18px; } }
