/* =====================================================================
   Winter Ball Updates · vintage.css (Lane 0, v6-hero)
   Operator 2026-10-21: "we aren't losing anything. we are just adapting this top graphic i've got you."
   ONLY THE TOP changes: the vintage masthead, the newspaper nav bar under it, the sub-menu row under that
   (replacing the left rail on desktop; a chip row on phone) and the compact sticky bar on scroll.
   Everything below the top (cards, strip, tables, fonts, colours, dark theme) is the Exit-B site, untouched.

   The top is printed on the masthead's own paper in both themes (it is the brand art; the navy wordmark
   needs its cream paper). Colours sampled from design/assets/brand/vintage/*.png:
     paper #F2E0C4, ink navy #14213D (wordmark #00183A), Caribbean red #9B1C1F (rules / UPDATES #940A10).
   AA on the paper (measured): navy 12.4:1, ink-2 #3A4254 7.8:1, red 6.3:1; on the paper tile's darkest
   texture (#E2CBA6) navy 10.6:1, red 5.4:1.
   ===================================================================== */

:root { --vt-paper:#F2E0C4; --vt-paper-2:#EAD6B4; --vt-ink:#14213D; --vt-ink-2:#3A4254; --vt-red:#9B1C1F;
  --vt-serif:"Source Serif 4","Libre Caslon Text","Georgia","Times New Roman",serif;
  --vt-tex:url("../brand/vintage/paper-tile-240.webp"); }

/* ---------- masthead: the two engravings, the wordmark, the red double rules, the dateline ---------- */
.masthead { background: var(--vt-tex) 0 0 / auto 100% repeat-x, var(--vt-paper); color: var(--vt-ink); }
.mh-in { max-width: var(--maxw); margin: 0 auto; padding: 8px var(--gutter) 0; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(24px, 3.4vw, 52px); }
.mh-vig { display: block; min-width: 0; }
.mh-vig img { display: block; height: clamp(90px, 9.7vw, 140px); width: auto; max-width: 100%; object-fit: contain; }
/* operator 2026-10-22: the logo dead centre with equal space on both sides: the two vignettes (191 vs 244 px wide) hug
   the logo at the same gap instead of the page edges (the left gap was 163 px, the right 110) */
.mh-l img { margin-left: auto; margin-right: 0; object-position: right center; }
.mh-r img { margin-right: auto; margin-left: 0; object-position: left center; }
.mh-logo { display: block; line-height: 0; }
.mh-logo img { height: clamp(82px, 9.7vw, 140px); width: auto; }
.mh-rule { display: none; }
.dateline { max-width: var(--maxw); margin: 0 auto; padding: 2px var(--gutter) 7px; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 8px; font: 500 12.5px/1.3 var(--vt-serif); letter-spacing: .06em; text-transform: uppercase; color: var(--vt-ink); }
.dateline .dl-sep { color: var(--vt-red); }
@media (max-width: 1100px) { .mh-vig img { height: clamp(70px, 9vw, 110px); } }
@media (max-width: 860px) { .mh-vig { display: none; } .mh-in { grid-template-columns: 1fr; justify-items: center; } }
@media (max-width: 599px) { .mh-in { padding: 8px var(--gutter) 0; } .mh-logo img { height: 56px; } .dateline { font-size: 10.5px; letter-spacing: .04em; padding-bottom: 6px; } .dateline .hide-sm, .dateline .dl-sep { display: none; } .dateline { flex-direction: column; align-items: center; gap: 0; } }
/* phone (operator 2026-10-23): a larger mark, nudged left so the wordmark (not the palm) sits centred over the dateline;
   the dateline bigger and bolder, with a paper halo so the texture's dashes don't cut through the letters */
@media (max-width: 599px) {
  .mh-logo img { height: 64px; }
  .mh-logo { transform: translateX(-10px); }
  .dateline { font: 600 12.5px/1.4 var(--vt-serif); letter-spacing: .05em; padding: 4px var(--gutter) 8px; background: linear-gradient(90deg, transparent, var(--vt-paper) 14%, var(--vt-paper) 86%, transparent); }
}

/* ---------- the nav bar under the masthead (also the compact sticky bar) ---------- */
.topbar { background: var(--vt-paper); border-top: 1px solid var(--vt-ink); border-bottom: 1px solid var(--vt-ink); box-shadow: 0 2px 0 var(--vt-paper), 0 3px 0 var(--vt-ink); color: var(--vt-ink); }
html.mh-stuck .topbar { box-shadow: 0 2px 0 var(--vt-paper), 0 3px 0 var(--vt-ink), 0 10px 18px -12px rgb(20 33 61 / .55); }
.topbar .mainnav a { font: 500 14px/1 var(--vt-serif); letter-spacing: .1em; text-transform: uppercase; color: var(--vt-ink); }
.topbar .mainnav a:hover, .topbar .mainnav a.on { color: var(--vt-ink); }
.topbar .mainnav a:hover { text-decoration: underline; text-decoration-color: var(--vt-red); text-underline-offset: 6px; }
.topbar .mainnav a.on::after { background: var(--vt-red); height: 2px; border-radius: 0; }
.topbar .mainnav a.disc .dot { background: var(--vt-red); box-shadow: none; }
.topbar .mainnav { justify-content: space-evenly; }
/* nine sections since Club tools (v6.1): the nav sizes down so it fits on one line at every desktop width */
.topbar .mainnav a { font-size: 13px; letter-spacing: .05em; padding: 0 7px; }
/* the "Nerd stats" words are clipped, never removed, where the bar is tight: the switch keeps its name for screen readers */
@media (min-width: 601px) and (max-width: 1699px) { .topbar .nerd { position: relative; } .topbar .nerd .nerd-l { display: inline; position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; } }
@media (min-width: 1700px) { .topbar .mainnav a { letter-spacing: .03em; padding: 0 4px; } }
@media (max-width: 1279px) { .topbar .mainnav a { font-size: 12px; letter-spacing: .02em; padding: 0 5px; } }
@media (max-width: 1099px) { .topbar .mainnav a { font-size: 11px; letter-spacing: 0; padding: 0 4px; } }
/* eleven items since WB Blog joined the menu (2026-10-27): one notch tighter where the bar is narrowest */
@media (min-width: 981px) and (max-width: 1099px) { .topbar .mainnav a { font-size: 10.5px; padding: 0 2px; } }
@media (min-width: 1700px) { .topbar .mainnav a { letter-spacing: .01em; padding: 0 3px; } }
@media (min-width: 1700px) { html[lang="es"] body .topbar .mainnav#topnav a { padding: 0 2px; } }
/* the compact bar (masthead scrolled away) leaves the nav less room: tighter there */
@media (min-width: 1100px) { html.mh-stuck body .topbar .mainnav#topnav a { padding: 0 2px; } }
/* the bar's controls in the paper's ink (both themes: the bar is printed on the masthead paper) */
.topbar .icon-btn, .topbar .nerd, .topbar .seg, .topbar .menubtn, .topbar .search { background: transparent; color: var(--vt-ink); border-color: rgb(20 33 61 / .35); border-radius: 3px; }
.topbar .seg button { color: var(--vt-ink); }
.topbar .seg button[aria-pressed="true"] { background: var(--vt-ink); color: var(--vt-paper); }
.topbar .nerd-l, .topbar .nerd-v { color: var(--vt-ink); }
.topbar .search input { color: var(--vt-ink); background: #FBF4E8; }
.topbar .search input::placeholder { color: var(--vt-ink-2); }
.topbar .menubtn { font: 600 13px/1 var(--vt-serif); letter-spacing: .08em; text-transform: uppercase; }
/* the small logo: shown once the masthead (with the big wordmark) has scrolled away; on phone it keeps its space so nothing moves */
.topbar .brand img.wbu-logo { height: 40px; width: auto; }
.topbar .brand { transition: opacity var(--d-2) var(--e-std); }
html:not(.mh-stuck) .topbar .brand { opacity: 0; visibility: hidden; }
@media (min-width: 981px) { html:not(.mh-stuck) .topbar .brand { width: 0; min-width: 0; margin: 0; padding: 0; overflow: hidden; } }
@media (max-width: 599px) { .topbar .brand img.wbu-logo { height: 32px; } }

/* ---------- sub-menus underneath: one row under the nav bar (no left rail) ---------- */
.layout { grid-template-columns: minmax(0, 1fr); }
.side.subnav { position: static; max-width: none; margin: 0; padding: 0 max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); background: var(--vt-paper-2); border: 0; border-bottom: 1px solid rgb(20 33 61 / .35); border-radius: 0; box-shadow: none; display: flex; align-items: center; gap: 12px; overflow-x: auto; scrollbar-width: none; }
.side.subnav::-webkit-scrollbar { display: none; }
.side.subnav:empty { display: none; }
.side.subnav .side-h { display: none; }
.side.subnav nav { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 4px; }
.side.subnav a { flex: none; padding: 10px 12px 9px; font: 500 14px/1 var(--vt-serif); letter-spacing: .02em; color: var(--vt-ink); background: transparent; border: 0; border-radius: 0; height: auto; white-space: nowrap; }
.side.subnav a:hover { background: transparent; color: var(--vt-ink); text-decoration: underline; text-underline-offset: 5px; }
.side.subnav a.on { background: transparent; color: var(--vt-red); text-decoration: underline; text-decoration-color: var(--vt-red); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.side.subnav a.on::before { display: none; }
.side.subnav a:focus-visible { outline: 2px solid var(--vt-red); outline-offset: -2px; }
.side.subnav .side-note, .side.subnav .side-foot { display: none; }
/* Today's in-page sub-tabs are the same links as the row: shown once, in the row */
.toolrow .subtabs { display: none; }
.toolrow { justify-content: flex-end; }
@media (max-width: 599px) {
  .side.subnav { position: sticky; top: var(--tbh-px, 52px); z-index: 25; padding: 6px var(--gutter); gap: 6px; }
  .side.subnav a { padding: 0 11px; height: 30px; display: flex; align-items: center; border: 1px solid rgb(20 33 61 / .35); border-radius: 3px; background: #FBF4E8; font-size: 13px; text-decoration: none; }
  .side.subnav a.on { background: var(--vt-ink); color: var(--vt-paper); border-color: var(--vt-ink); text-decoration: none; } }

/* 40% shorter at every width (operator 2026-10-23: "the hero shot is too big vertically ... like 40% less tall"):
   the old clamp(420px, 100svh - 380px, 720px) and phones clamp(380px, 52svh, 560px), each times .6. The loading
   placeholder carries the same height, so nothing below moves when the photo arrives. The overlay is tightened to fit:
   smaller logo disc, name and button, caption clamped to 2 lines; on phones the disc sits beside the text block.
   (Today no longer shows it, operator 2026-10-31, so no placeholder reserves its height on Today.) */
.pride { height: clamp(252px, calc((100svh - 380px) * .6), 432px); min-height: 0; max-height: none; }
.pr-over { gap: 14px; }
.pr-crest { flex: 0 0 auto; }
.pr-crest .logo-badge, .pr-crest img { --ls: 60px; width: 60px; height: 60px; }
.pr-txt { padding: 9px 14px 10px; border-radius: 12px; }
.pr-meta { font-size: 10.5px; }
.pr-name { margin: 3px 0 5px; font-size: clamp(32px, 3.4vw, 60px); }
.pr-cap { margin: 0 0 9px; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pr-go { font-size: 14px; padding: 7px 14px; }
.pr-ctl { top: 12px; }
.pr-b { width: 32px; height: 32px; font-size: 17px; }
@media (max-width: 599px) {
  .pride { height: clamp(228px, 31.2svh, 336px); }
  .pr-over { left: 12px; right: 12px; flex-direction: row; align-items: flex-end; gap: 8px; }
  .pr-crest .logo-badge, .pr-crest img { --ls: 40px; width: 40px; height: 40px; }
  .pr-txt { width: auto; flex: 1 1 auto; padding: 7px 10px 8px; border-radius: 10px; }
  .pr-meta { font-size: 9.5px; letter-spacing: .12em; }
  .pr-name { margin: 2px 0 3px; font-size: 26px; }
  .pr-cap { margin-bottom: 6px; font-size: 12.5px; line-height: 1.32; }
  .pr-go { font-size: 13px; padding: 6px 12px; }
  .pr-ctl { top: 8px; right: 8px; gap: 4px; padding: 3px 5px; }
  .pr-b { width: 30px; height: 30px; }
}
.side.subnav a.on, .side.subnav a { box-shadow: none; border-left: 0; }
.topbar .menubtn .chev, .topbar .menubtn #menulabel { color: var(--vt-ink); }
/* the sub-menu row scrolls inside its nav, so the active chip is kept in view (m1, core.js afterRoute) */
.side.subnav { overflow: hidden; }
.side.subnav nav { overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1 1 auto; }
.side.subnav nav::-webkit-scrollbar { display: none; }
/* the rail used to sit between the strip and the page on phones; the page keeps that breathing room */
@media (max-width: 599px) { .layout { padding-top: 12px; } }

/* ---------- Exit-2 look check, round 1 (V1, V2, V6) ---------- */
/* V1: the phone menu label never pushes the search button off the screen (320-430 px) */
@media (max-width: 600px) {
  .topbar .menubtn { min-width: 0; max-width: 46vw; }
  .topbar #menulabel { display: inline-block; min-width: 0; max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
  .topbar .tb-in { min-width: 0; }
  .topbar .tb-tools { min-width: 0; }
}
/* V2: the phone section menu: 44 px tap rows, spacing, paper in both themes, a visible focus ring */
@media (max-width: 600px) {
  .topbar .mainnav { background: var(--vt-paper); border-bottom: 1px solid var(--vt-ink); padding: 4px 0; }
  .topbar .mainnav a { min-height: 44px; display: flex; align-items: center; padding: 10px var(--gutter); font: 500 15px/1.25 var(--vt-serif); letter-spacing: .08em; border-bottom: 1px solid rgb(20 33 61 / .12); }
  .topbar .mainnav a:last-child { border-bottom: 0; }
  .topbar .mainnav a.on::after { left: var(--gutter); right: auto; width: 28px; bottom: 6px; }
}
.topbar .mainnav a:focus-visible { outline: 2px solid var(--vt-red); outline-offset: -3px; box-shadow: none; border-radius: 2px; }
@media (max-width: 600px) {
  .topbar .brand img.wbu-logo { height: 32px; }
  .topbar .menubtn { max-width: max(60px, calc(100vw - 262px)); overflow: hidden; padding-left: 10px; padding-right: 9px; gap: 5px; }
  .topbar #menulabel { max-width: 100%; flex: 1 1 auto; }
  .topbar .menubtn .chev { flex: none; }
}

/* W1: the phone panel (rows + the settings row) is one sheet of paper with ink, in both themes */
.topbar .navpanel { background: var(--vt-paper); color: var(--vt-ink); border-bottom-color: var(--vt-ink); }
.topbar .navpanel .mainnav a.on { background: var(--vt-paper-2); box-shadow: inset 3px 0 0 0 var(--vt-red); color: var(--vt-ink); }
.topbar .tb-set { border-top-color: rgb(20 33 61 / .25); }
.topbar .tb-set button, .topbar .tb-set .nerd-l, .topbar .tb-set .nerd-v, .topbar .tb-set .icon-btn { color: var(--vt-ink); }
.topbar .seg { background: #FBF4E8; border-color: rgb(20 33 61 / .35); }
.topbar .seg button { background: transparent; color: var(--vt-ink); }
.topbar .seg button[aria-pressed="true"] { background: var(--vt-ink); color: var(--vt-paper); }
.topbar .nerd { background: #FBF4E8; }
.topbar .dialpop { background: var(--vt-paper); color: var(--vt-ink); border-color: rgb(20 33 61 / .35); }
.topbar .dialpop .kick, .topbar .dialpop button { color: var(--vt-ink); }
.topbar .dialpop button[aria-pressed="true"], .topbar .dialpop button.on { background: var(--vt-ink); color: var(--vt-paper); }
@media (max-width: 600px) { .topbar .tb-set .nerd-l { display: inline; } }
/* the phone menu button names the whole section (no ellipsis) at 320-430 px: a smaller serif label that may take two lines;
   the 32 px logo and the search button keep their size. At 360 px and under the chevron gives its room to the label. */
@media (max-width: 600px) {
  .topbar .menubtn { max-width: none; padding-left: 6px; padding-right: 6px; gap: 3px; flex: 0 1 auto; }
  .topbar #menulabel { max-width: none; white-space: normal; overflow: visible; text-overflow: clip; font-size: 11px; line-height: 1.1; letter-spacing: .01em; text-transform: none; overflow-wrap: normal; }
}
@media (max-width: 360px) {
  .topbar .menubtn { padding-left: 4px; padding-right: 4px; }
  .topbar .menubtn .chev { display: none; }
  .topbar #menulabel { font-size: 10.5px; letter-spacing: 0; }
}
