/* ===========================================================================
   WINE LEDGER — house style, October 2026.
   A friendly place to learn about wine, dressed in the materials of wine:
   · Stone and charcoal. Backgrounds are greys, like a cellar wall; the colour
     on a page comes from the photography and from one claret accent.
   · Labels. Anything "printed" — a card, a table, a fact box — is label white
     with a fine frame, square-cornered, set in Garamond and a plain sans.
   · Cork and glass. Cork is the warm note for tips and marks; bottle-glass
     green is the second dark, beside charcoal.
   · Words never sit on photographs. Our own photographs run in colour;
     library photographs of real estates and places run in black and white.
   =========================================================================== */
@import url("/static/fonts/fonts.css");

:root {
  --paper:      #F4F3F1;   /* limestone: the page */
  --paper-2:    #E9E8E4;   /* a shade down: quiet bands, table heads */
  --paper-3:    #FFFFFF;   /* label white: cards, tables, anything printed */
  --ink:        #1D1C1B;   /* cellar charcoal */
  --ink-2:      #4B4947;
  --ink-3:      #7B7875;
  --rule:       #DDDBD6;
  --rule-2:     #C3C0BA;

  --wine:       #7A1F35;   /* the one accent */
  --wine-deep:  #5A1425;
  --wine-soft:  #F4E9EA;
  --cork:       #B28B5B;
  --cork-soft:  #F1E8DA;
  --glass:      #25322B;   /* bottle green, nearly black */
  --glass-soft: #E3E8E4;
  --char:       #1D1C1B;   /* dark bands and the footer */
  --vine:       #4C6650;
  --vine-soft:  #E4EAE4;
  --oak:        #8A6535;
  --oak-soft:   #F1E8DA;
  --slate:      #3F4A54;
  --slate-soft: #E6E9EC;
  --gold:       #B28B5B;
  --gold-soft:  #F1E8DA;
  --blush:      #F4E9EA;
  --lime:       #C3C0BA;
  --brass:      #B28B5B;
  --up:         #2F6B45;
  --down:       #A63B2D;
  --on-wine:    #FFFFFF;

  --accent:      var(--wine);
  --accent-soft: var(--wine-soft);
  --maxw: 1180px;
  --gut: clamp(1.1rem, 4vw, 2rem);
  --prose: 44rem;
  --r: 3px;
  --r-sm: 2px;
  --shadow: 0 1px 2px rgba(20,18,17,.05), 0 12px 32px rgba(20,18,17,.09);
  --display: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: Jost, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: var(--sans);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #151413; --paper-2: #1D1C1A; --paper-3: #232220;
  --ink: #EFEDE9; --ink-2: #C6C3BD; --ink-3: #98948E;
  --rule: #33312E; --rule-2: #4B4844;
  --wine: #E19AA9; --wine-deep: #F0B6C2; --wine-soft: #33202A;
  --cork: #D2AE80; --cork-soft: #2E271D; --glass: #18221D; --glass-soft: #202B25; --char: #0E0D0D;
  --vine: #A3C2A6; --vine-soft: #1F2921; --oak: #D2AE80; --oak-soft: #2E271D;
  --slate: #A9B8C6; --slate-soft: #1E2328; --gold: #D2AE80; --gold-soft: #2E271D; --blush: #33202A;
  --brass: #D2AE80; --up: #86C79A; --down: #EC9484; --on-wine: #1A1012;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px rgba(0,0,0,.4);
  color-scheme: dark;
}
/* dark bands and the footer re-point the tokens, so everything inside them reads light on dark */
.sec.deep, .sec.glass, .footer {
  --ink: #F3F1ED; --ink-2: #CBC8C2; --ink-3: #9F9B95; --rule: #3A3836; --rule-2: #56534F;
  --paper-2: #2A2927; --paper-3: #262524; --wine: #E7A9B6; --wine-soft: #3A2A2E; --on-wine: #1A1012; color: var(--ink); }

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--rule-2); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--wine); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.12; }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -.018em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); line-height: 1.04; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.25; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1.05em; }
strong, b { font-weight: 600; }
small { font-size: .86em; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--ink-2); }
.eyebrow { font: 500 .76rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .7rem; }
.kicker { font-size: .84rem; font-weight: 500; color: var(--ink-3); }
.over { display: block; font: 500 .74rem/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .7rem; }
.fineprint { font-size: .86rem; line-height: 1.55; color: var(--ink-3); }
.metaline { font-size: .9rem; color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.up { color: var(--up); } .down { color: var(--down); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.sr-only:focus { width: auto; height: auto; margin: 0; clip-path: none; inset-inline-start: 1rem; top: 1rem; z-index: 300; background: var(--paper-3); padding: .6rem 1rem; box-shadow: var(--shadow); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }

/* --------------------------------------------------------------- header */
.topbar { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--rule); }
.topbar-in { max-width: 1320px; margin: 0 auto; padding: .55rem var(--gut); min-height: 64px; display: flex; align-items: center; gap: 1rem; }
.brandmark { display: flex; align-items: center; gap: .6rem; text-decoration: none; flex: 0 0 auto; color: var(--ink); }
.brandmark:hover { color: var(--ink); }
.brandmark svg { flex: 0 0 auto; }
.wordmark { font-family: var(--display); font-weight: 600; font-size: 1.55rem; letter-spacing: -.01em; line-height: 1; display: flex; flex-direction: column; gap: .2rem; white-space: nowrap; }
.wordmark .sub { font-family: var(--sans); font-size: .74rem; font-weight: 400; letter-spacing: 0; color: var(--ink-3); }
.mainnav { display: flex; align-items: center; gap: .1rem; margin-inline: auto; }
.mainnav > a, .ddbtn { display: flex; align-items: center; gap: .3rem; padding: .5rem .8rem; font-size: 1rem; font-weight: 500; text-decoration: none;
  color: var(--ink); white-space: nowrap; position: relative; }
.mainnav > a::before, .ddbtn::before { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .2rem; height: 1px; background: var(--wine); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.mainnav > a:hover, .ddbtn:hover, .ddbtn[aria-expanded="true"] { color: var(--wine); }
.mainnav > a:hover::before, .ddbtn:hover::before, .ddbtn[aria-expanded="true"]::before { transform: scaleX(1); }
.ddbtn::after { content: ""; width: .42em; height: .42em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-.12em) rotate(45deg); opacity: .6; }
.dd { position: relative; }
.ddmenu { display: none; position: absolute; top: calc(100% + 10px); inset-inline-start: 0; min-width: 17rem; background: var(--paper-3);
  border: 1px solid var(--rule); border-radius: var(--r); box-shadow: var(--shadow); padding: .5rem; z-index: 70; }
.ddmenu.right { inset-inline-start: auto; inset-inline-end: 0; }
.ddmenu.open { display: block; }
@media (hover: hover) and (min-width: 1041px) {
  .dd:hover > .ddmenu, .dd:focus-within > .ddmenu { display: block; }
  .ddmenu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
}
/* picture menus: a handful of places is nicer to pick from photographs than from a list */
.dd.pics { position: static; }
.ddmenu.picmenu { inset-inline-start: 50%; transform: translateX(-50%); top: 100%; width: min(66rem, calc(100vw - 2 * var(--gut))); padding: 1.1rem 1.1rem 1rem; border-radius: 0 0 var(--r) var(--r); border-top: 0; }
html[dir="rtl"] .ddmenu.picmenu { transform: translateX(50%); }
.ddmenu.picmenu.four { width: min(52rem, calc(100vw - 2 * var(--gut))); }
.ddmenu.picmenu::before { top: -16px; height: 16px; }
.navpics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem .8rem; }
.navpics.big { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.ddmenu a.navpic, .offcanvas a.navpic { display: block; padding: 0; border-radius: 0; background: none; text-decoration: none; color: var(--ink); min-width: 0; }
.navpic img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); background: var(--paper-2); transition: transform .25s ease, filter .25s ease; }
.navpics.big .navpic img { aspect-ratio: 3 / 2; }
.navpic b { display: block; font-family: var(--display); font-size: 1.12rem; font-weight: 500; line-height: 1.15; margin-top: .45rem; }
.navpics.big .navpic b { font-size: 1.3rem; }
.navpic small { display: block; color: var(--ink-3); font-size: .82rem; line-height: 1.3; margin-top: .1rem; }
.ddmenu a.navpic:hover { background: none; } .navpic:hover img { transform: translateY(-3px); filter: brightness(1.06); } .navpic:hover b { color: var(--wine); }
.ddmenu a.navpic.all { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; aspect-ratio: 4 / 3; background: var(--paper-2); border-radius: var(--r); align-self: start; }
.navpic.all span { font-family: var(--display); font-size: 1.15rem; font-weight: 500; } .navpic.all span::after { content: " →"; color: var(--wine); }
.ddmenu a.navpic.all:hover { background: var(--paper); color: var(--wine); }
.navlinks { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; border-top: 1px solid var(--rule); margin-top: 1rem; padding-top: .8rem; }
.ddmenu .navlinks a { display: flex; align-items: center; gap: .6rem; padding: .2rem .3rem .2rem 0; font-size: .96rem; }
.navlinks img { width: 2.6rem; height: 2.6rem; object-fit: cover; border-radius: 50%; flex: 0 0 auto; }
.picnav { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.4rem 1.2rem; margin: 0 0 2.6rem; }
.picnav a.navpic { display: block; text-decoration: none; color: var(--ink); min-width: 0; } .picnav .navpic img { aspect-ratio: 3 / 2; }
.picnav .navpic b { font-size: 1.35rem; margin-top: .6rem; } .picnav .navpic small { font-size: .92rem; line-height: 1.4; }
.oc-pics { border-top: 1px solid var(--rule); padding: .9rem 0 .5rem; } .oc-pics .over { margin-bottom: .6rem; }
.oc-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 7.4rem; gap: .7rem; overflow-x: auto; padding-bottom: .6rem; margin-inline-end: -1.2rem; padding-inline-end: 1.2rem; scrollbar-width: none; scroll-snap-type: x proximity; }
.oc-strip::-webkit-scrollbar { display: none; } .oc-strip > * { scroll-snap-align: start; }
.oc-strip .navpic b { font-size: 1rem; margin-top: .35rem; }
/* pickers on a page: the same idea, as tiles you tap instead of a select */
.pickrow { margin: 0 0 1.4rem; } .pickrow > .over { margin-bottom: .7rem; }
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.2rem, 1fr)); gap: .9rem .7rem; }
.pick { display: block; text-decoration: none; color: var(--ink); min-width: 0; }
.pick img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); background: var(--paper-2); outline: 2px solid transparent; outline-offset: 2px; transition: transform .2s ease; }
.pick b { display: block; font-family: var(--display); font-size: 1.05rem; font-weight: 500; line-height: 1.15; margin-top: .4rem; }
.pick:hover img { transform: translateY(-3px); } .pick:hover b, .pick.on b { color: var(--wine); }
.pick.on img { outline-color: var(--wine); }
.pick.any { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: var(--paper-3); border: 1px solid var(--rule-2); border-radius: var(--r); font-family: var(--display); font-size: 1.1rem; align-self: start; }
.pick.any.on { border-color: var(--wine); color: var(--wine); box-shadow: inset 0 0 0 1px var(--wine); }
.picks.round { display: flex; flex-wrap: wrap; gap: .6rem 1.3rem; }
.picks.round .pick { display: flex; align-items: center; gap: .6rem; }
.picks.round .pick img { width: 3.4rem; height: 3.4rem; aspect-ratio: 1; border-radius: 50%; } .picks.round .pick b { margin: 0; font-size: 1.15rem; }
.picks.round .pick.any { aspect-ratio: auto; width: 3.4rem; height: 3.4rem; border-radius: 50%; font-size: .95rem; }
label.pick { cursor: pointer; position: relative; } .pick input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick:has(input:checked) img { outline-color: var(--wine); } .pick:has(input:checked) b { color: var(--wine); }
.pick.any:has(input:checked) { border-color: var(--wine); color: var(--wine); box-shadow: inset 0 0 0 1px var(--wine); }
.pick:focus-within img, .pick.any:focus-within, .picks.words .pick:focus-within span { outline: 2px solid var(--ink); outline-offset: 2px; }
.picks.words { display: flex; flex-wrap: wrap; gap: .5rem; }
.picks.words .pick span { display: block; padding: .5rem .95rem; border: 1px solid var(--rule-2); border-radius: var(--r); background: var(--paper-3); font-size: .98rem; line-height: 1.2; }
.picks.words .pick:hover span { border-color: var(--ink); } .picks.words .pick:has(input:checked) span { background: var(--ink); color: var(--paper-3); border-color: var(--ink); }
.finder { margin-bottom: 1.6rem; } .finder .facets { margin: .4rem 0 0; } .facet.wide { grid-column: 1 / -1; }
label.check { display: flex; align-items: center; gap: .5rem; font-size: .98rem; color: var(--ink); } label.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--wine); }
.winelinks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 2rem; margin-top: 1rem; }
.winelinks .pick { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.winelinks img, .winelinks .dot { width: 3.2rem; height: 3.2rem; aspect-ratio: 1; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: var(--paper-2); outline: 0; }
.winelinks b { margin: 0; font-size: 1.15rem; line-height: 1.2; }
.picks.round.trynext { margin-top: .9rem; } a.pick { text-decoration: none; }
/* what land costs: one row per zone, a range bar, the figure in its own unit, and why */
.zones { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.zone { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) auto; grid-template-areas: "name bar val" "why why why"; gap: .35rem 1.4rem; align-items: center; padding: 1rem 0; border-top: 1px solid var(--rule-2); }
.zone:first-child { border-top: 1px solid var(--ink); }
.z-name { grid-area: name; display: flex; align-items: center; gap: .7rem; min-width: 0; }
.z-name img { width: 2.6rem; height: 2.6rem; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.z-name b { display: block; font-family: var(--display); font-size: 1.2rem; font-weight: 500; line-height: 1.15; } .z-name b a { color: inherit; text-decoration: none; } .z-name b a:hover { color: var(--wine); }
.z-name small { display: block; font-size: .84rem; color: var(--ink-3); } .z-name small a { color: inherit; text-decoration: none; }
.z-bar { grid-area: bar; min-width: 0; } .z-bar .track { display: block; position: relative; height: .7rem; background: var(--paper-2); border-radius: 2px; overflow: hidden; }
.z-bar .track i { position: absolute; top: 0; bottom: 0; background: var(--wine); border-radius: 2px; }
.z-val { grid-area: val; text-align: end; white-space: nowrap; } .z-val b { display: block; font-variant-numeric: tabular-nums; font-weight: 600; } .z-val small { display: block; font-size: .82rem; color: var(--ink-3); }
.zones.home .z-why { display: none; } .zones.home .zone:first-child { border-top: 0; }
.zone.border { grid-template-columns: minmax(0, 13rem) minmax(0, 1fr) auto; }
.taxlines { list-style: none; margin: .4rem 0 .8rem; padding: 0; max-width: 46rem; }
.taxlines li { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr) auto; gap: .2rem 1rem; padding: .35rem 0; border-top: 1px dotted var(--rule-2); font-size: .94rem; align-items: baseline; }
.taxlines li:first-child { border-top: 0; } .tl-what { font-weight: 500; color: var(--ink); } .tl-how { color: var(--ink-3); } .tl-amt { font-variant-numeric: tabular-nums; text-align: end; color: var(--ink); }
.track.stepbar { display: block; position: relative; height: .7rem; background: var(--paper-2); border-radius: 2px; overflow: hidden; margin: 0 0 1.1rem; } .track.stepbar i { position: absolute; top: 0; bottom: 0; background: var(--wine); border-radius: 2px; }
.z-why { grid-area: why; margin: 0; font-size: .98rem; line-height: 1.5; color: var(--ink-2); max-width: 46rem; }
.winetiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.8rem 1.2rem; margin-top: 1rem; }
.winetile { display: block; text-decoration: none; color: var(--ink); min-width: 0; }
.winetile img, .winetile .noph { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); background: var(--paper-2); }
.winetile .noph { display: grid; place-items: center; background: var(--paper-3); border: 1px solid var(--rule-2); outline: 1px solid var(--rule); outline-offset: -6px; }
.winetile .noph i { font-family: var(--display); font-style: italic; font-size: 1.1rem; color: var(--ink-3); padding: 0 1rem; text-align: center; }
.winetile b { display: block; font-family: var(--display); font-size: 1.3rem; font-weight: 500; line-height: 1.15; margin-top: .6rem; }
.winetile small { display: block; color: var(--ink-3); font-size: .9rem; line-height: 1.35; margin-top: .15rem; }
.winetile:hover b { color: var(--wine); }
.ddmenu a { display: block; padding: .5rem .75rem; font-size: .98rem; text-decoration: none; color: var(--ink); border-radius: var(--r-sm); }
.ddmenu a small { display: block; color: var(--ink-3); font-size: .84rem; line-height: 1.35; }
.ddmenu a:hover { background: var(--paper-2); color: var(--wine); }
.ddmenu .sep { height: 1px; background: var(--rule); margin: .4rem .5rem; }
.ddmenu .gh { font-size: .82rem; color: var(--ink-3); padding: .5rem .75rem .15rem; font-weight: 500; }
.utils { display: flex; align-items: center; gap: .15rem; flex: 0 0 auto; }
.searchwrap { position: relative; flex: 0 1 13.5rem; min-width: 0; }
.searchwrap svg { position: absolute; inset-inline-start: .8rem; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
#searchBox { width: 100%; min-width: 0; padding: .55rem .9rem .55rem 2.4rem; font: 400 .98rem var(--sans); color: var(--ink);
  background: var(--paper-2); border: 1px solid transparent; border-radius: var(--r-sm); -webkit-appearance: none; appearance: none; }
#searchBox:focus { outline: none; border-color: var(--wine); background: var(--paper-3); }
#searchBox::placeholder { color: var(--ink-3); }
.searchresults { display: none; position: absolute; top: calc(100% + 8px); inset-inline-end: 0; width: min(24rem, 92vw); background: var(--paper-3); border: 1px solid var(--rule);
  border-radius: var(--r); max-height: 70vh; overflow: auto; z-index: 80; box-shadow: var(--shadow); padding: .4rem; }
.searchresults.open { display: block; }
.sr-group { font-size: .82rem; font-weight: 500; color: var(--ink-3); padding: .5rem .7rem .15rem; }
.sr-item { display: block; padding: .45rem .7rem; text-decoration: none; color: var(--ink); font-size: .98rem; border-radius: var(--r-sm); }
.sr-item small { display: block; color: var(--ink-3); font-size: .84rem; }
.sr-item:hover, .sr-item.sel { background: var(--paper-2); }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 0; border-radius: var(--r-sm); position: relative; text-decoration: none; }
.iconbtn:hover { background: var(--paper-2); color: var(--wine); }
.favbadge { position: absolute; top: .15rem; inset-inline-end: .1rem; background: var(--wine); color: var(--on-wine); font-size: .66rem; font-weight: 600; border-radius: 999px; min-width: 1.1rem; padding: 0 .28rem; line-height: 1.1rem; text-align: center; }
:root[data-theme="dark"] .favbadge { color: #1a1014; }
.burger { display: none; }

/* --------------------------------------------------------------- drawers */
.offcanvas { position: fixed; top: 0; bottom: 0; width: min(22rem, 90vw); background: var(--paper-3); z-index: 110; padding: 1rem 1.2rem 2rem;
  overflow-y: auto; transition: transform .25s ease; visibility: hidden; }
.offcanvas.left { inset-inline-start: 0; transform: translateX(-102%); }
.offcanvas.right { inset-inline-end: 0; inset-inline-start: auto; transform: translateX(102%); }
html[dir="rtl"] .offcanvas.left { transform: translateX(102%); }
html[dir="rtl"] .offcanvas.right { transform: translateX(-102%); }
.offcanvas.open { transform: none !important; visibility: visible; }
.oc-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: .6rem; margin-bottom: .4rem; }
.oc-head b { font-family: var(--display); font-size: 1.45rem; font-weight: 600; }
.oc-close { width: 2.6rem; height: 2.6rem; background: var(--paper-2); border: 0; border-radius: var(--r-sm); font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink); }
.offcanvas a { display: block; padding: .6rem 0; text-decoration: none; color: var(--ink); font-size: 1.06rem; }
.offcanvas a:hover { color: var(--wine); }
.offcanvas .oc-main a { font-family: var(--display); font-size: 1.5rem; font-weight: 500; padding: .45rem 0; }
.offcanvas details { border-top: 1px solid var(--rule); padding: .3rem 0; }
.offcanvas summary { cursor: pointer; font-size: 1.06rem; font-weight: 500; color: var(--ink); padding: .65rem 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.offcanvas summary::-webkit-details-marker { display: none; }
.offcanvas summary::after { content: "+"; font-size: 1.3rem; color: var(--ink-3); font-weight: 400; }
.offcanvas details[open] summary::after { content: "–"; }
.offcanvas details a { padding: .45rem 0 .45rem .9rem; font-size: 1rem; color: var(--ink-2); }
.oc-row { display: flex; justify-content: space-between; align-items: center; gap: .6rem; border-top: 1px solid var(--rule); padding: .8rem 0; font-size: 1rem; }
.oc-note { border-top: 1px solid var(--rule); padding-top: .8rem; margin-top: .5rem; font-size: .95rem; color: var(--ink-2); }
.oc-note a { display: inline; padding: 0; font-size: inherit; text-decoration: underline; }
.oc-backdrop { position: fixed; inset: 0; background: rgba(30,16,20,.5); z-index: 100; display: none; }
.oc-backdrop.open { display: block; }

/* ----------------------------------------------------------------- layout */
.page { max-width: var(--maxw); margin: 0 auto; padding: 2rem var(--gut) 4.5rem; }
.page.wide { max-width: 1320px; }
.page.home, .page.full { max-width: none; padding: 0; }
.prose { max-width: var(--prose); }
.prose h2 { margin-top: 2.2rem; } .prose h3 { margin-top: 1.6rem; }
.prose table { width: 100%; }
.prose ul, .prose ol { padding-inline-start: 1.3rem; } .prose li { margin-bottom: .5rem; }
.crumbs { font-size: .9rem; color: var(--ink-3); margin: 0 0 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .45rem; }
.crumbs a { text-decoration: none; color: var(--ink-3); } .crumbs a:hover { color: var(--wine); } .crumbs .sep { opacity: .6; }
.crumbs [aria-current] { color: var(--ink-2); }
.a-oxblood, .a-wine { --accent: var(--wine); --accent-soft: var(--wine-soft); }
.a-green, .a-vine { --accent: var(--vine); --accent-soft: var(--vine-soft); }
.a-tobacco, .a-oak { --accent: var(--oak); --accent-soft: var(--oak-soft); }
.a-navy, .a-slate { --accent: var(--slate); --accent-soft: var(--slate-soft); }
.a-charcoal { --accent: var(--ink-2); --accent-soft: var(--paper-2); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.4rem; } .two > * { min-width: 0; }
.main-side { display: block; }
.side { margin-top: 3.5rem; border-top: 1px solid var(--ink); padding: 1.6rem 0 0; columns: 3 15rem; column-gap: 2.6rem; }
.side h3 { font: 500 .74rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .5rem; break-after: avoid; }
.side > ul, .side > p, .side > .facts, .side > div { break-inside: avoid; margin: 0 0 1.8rem; }
.side .facts .row { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
.side .facts { border-top: 0; }

/* ------------------------------------------------------------ page header */
.phead { background: var(--paper-2); }
.phead-in { max-width: var(--maxw); margin: 0 auto; padding: clamp(1.6rem, 4vw, 3rem) var(--gut); display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem 3rem; align-items: center; }
.phead.has-img .phead-in { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.phead-text { min-width: 0; }
.phead h1 { margin: 0 0 .45em; text-wrap: balance; }
.phead .lede { margin: 0; max-width: 40rem; text-wrap: pretty; }
.phead .eyebrow { margin-bottom: .6rem; }
.phead-img { margin: 0; min-width: 0; }
.phead-img img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); background: var(--rule); }
.phead-img figcaption, .cred { font-size: .76rem; color: var(--ink-3); margin-top: .4rem; line-height: 1.4; }
.cred a { color: inherit; }
.phead.plain .phead-in { padding-block: clamp(1.6rem, 3.5vw, 2.6rem); }
.phead .herosearch { margin-top: 1.4rem; }
.phead .btnrow { margin: 1.4rem 0 0; }
.pagehead { margin-bottom: 1.6rem; }
.pagehead .ph-title { font-family: var(--display); font-weight: 500; font-size: clamp(2.2rem, 4.6vw, 3.3rem); line-height: 1.06; letter-spacing: -.015em; margin: 0 0 .5rem; }
.pagehead .lede { max-width: 46rem; } .pagehead .metaline { margin-top: .6rem; }
.has-banner .pagehead .ph-title, .has-banner .pagehead .eyebrow, .has-banner .entityhead h1 { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lede-up .pagehead .lede { display: none; }
.lede-up .pagehead { margin-bottom: 0; }
.entityhead { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: 2rem; align-items: start; margin-bottom: 1.8rem; }
.entityhead.nofig { grid-template-columns: minmax(0, 1fr); }
.hero-fig { margin: 0; } .hero-fig img { aspect-ratio: 4/3; object-fit: cover; width: 100%; display: block; border-radius: var(--r); }
.herosearch { display: flex; gap: .5rem; max-width: 34rem; }
.herosearch input { flex: 1 1 auto; min-width: 0; padding: .8rem 1.1rem; font: 400 1rem var(--sans); border: 1px solid var(--rule-2); background: var(--paper-3); color: var(--ink); border-radius: var(--r-sm); }
.herosearch input:focus { outline: none; border-color: var(--wine); }
.herosearch button { padding: .8rem 1.4rem; font: 500 1rem var(--sans); border: 0; background: var(--wine); color: var(--on-wine); cursor: pointer; border-radius: var(--r-sm); }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .78rem 1.5rem; font: 500 .98rem/1.2 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  background: var(--wine); color: var(--on-wine); border: 1px solid var(--wine); border-radius: var(--r-sm); transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--wine-deep); border-color: var(--wine-deep); color: var(--on-wine); }
.btn.quiet { background: none; color: var(--ink); border-color: var(--ink); } .btn.quiet:hover { color: var(--paper-3); border-color: var(--ink); background: var(--ink); }
.btn.sm { padding: .52rem 1rem; font-size: .92rem; }
.btn.inv { background: var(--ink); border-color: var(--ink); color: var(--char); } .btn.inv:hover { background: var(--cork); border-color: var(--cork); color: var(--char); }
.btn.cur { background: var(--wine); border-color: var(--wine); color: var(--on-wine); }
.btnrow { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 1rem 0 1.4rem; }
.btnrow .spacer { flex: 1 1 auto; }
.more { display: inline-flex; align-items: center; gap: .35rem; font-weight: 500; color: var(--wine); text-decoration: none; white-space: nowrap; }
.more::after { content: "→"; transition: transform .15s; } .more:hover::after { transform: translateX(3px); }
html[dir="rtl"] .more::after { content: "←"; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: .8rem 0; }
.chip, .tag { display: inline-block; font: 400 .92rem/1.3 var(--sans); padding: .38rem .8rem; border: 1px solid var(--rule-2); background: var(--paper-3);
  color: var(--ink-2); text-decoration: none; border-radius: var(--r-sm); cursor: pointer; }
.chip:hover, .tag:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper-3); }

/* ---------------------------------------------------------------- notes */
.note { background: var(--paper-3); border-inline-start: 2px solid var(--wine); padding: 1rem 1.2rem; margin: 1.4rem 0; color: var(--ink-2); font-size: 1rem; }
.note b { color: var(--ink); } .note p:last-child { margin-bottom: 0; }
.intro { font-size: 1rem; line-height: 1.6; color: var(--ink-2); max-width: 50rem; margin: .2rem 0 1rem; }
.intro b { color: var(--ink); }
.intro.sm { font-size: .94rem; margin: .1rem 0 .6rem; max-width: none; }
.fig .intro, .two .intro { max-width: none; }
.pull { font-family: var(--display); font-size: 1.6rem; line-height: 1.3; padding: 1.2rem 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); margin: 2rem 0; }
.tip { display: flex; gap: .9rem; align-items: flex-start; background: var(--cork-soft); border-radius: var(--r); padding: 1rem 1.2rem; margin: 1.8rem 0; }
.tip svg { flex: 0 0 auto; color: var(--cork); margin-top: .15rem; }
.tip p { margin: 0; }

/* explanations fold into a one-line toggle; long tables show their first rows and a button for the rest */
.howto { margin: .2rem 0 1rem; font-size: .96rem; color: var(--ink-2); max-width: 50rem; }
.howto summary { display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; color: var(--ink-3); font-size: .9rem; list-style: none; }
.howto summary::-webkit-details-marker { display: none; }
.howto summary::before { content: "?"; display: inline-flex; align-items: center; justify-content: center; width: 1.15rem; height: 1.15rem; border: 1px solid var(--rule-2); border-radius: 50%; font-size: .72rem; font-weight: 600; color: var(--ink-3); }
.howto summary:hover { color: var(--wine); } .howto summary:hover::before { border-color: var(--wine); color: var(--wine); }
.howto[open] summary { color: var(--ink); margin-bottom: .4rem; }
.howto p { margin: 0 0 .6rem; line-height: 1.6; }
.howto.pagehelp { margin-bottom: 1.6rem; }
table.data.clamp tbody tr:nth-child(n+7) { display: none; }
table.data.clamp.open tbody tr { display: table-row; }
.rowmore { display: block; width: 100%; padding: .8rem 1rem; background: var(--paper-3); border: 0; border-top: 1px solid var(--rule); font: 500 .95rem var(--sans); color: var(--wine); cursor: pointer; text-align: center; }
.rowmore:hover { background: var(--paper); }

/* ---------------------------------------------------------------- facts */
.facts { margin: 1.2rem 0 1.8rem; border-top: 1px solid var(--rule); }
.facts .row { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--rule); }
.facts .k { font-size: .95rem; color: var(--ink-3); }
.facts .v { min-width: 0; }
.facts .v .fnote, .facts .v .note, .facts .v .src { display: block; font-size: .9rem; color: var(--ink-3); margin: .15rem 0 0; background: none; padding: 0; border: 0; }
.facts .v.missing { color: var(--ink-3); }
.basis { display: inline-block; font-size: .72rem; font-weight: 400; padding: .02rem .4rem; border: 1px solid var(--rule-2); border-radius: var(--r-sm); color: var(--ink-3);
  vertical-align: middle; margin-inline-start: .35rem; white-space: nowrap; line-height: 1.5; background: none; }

/* ---------------------------------------------------------------- tables */
.tablewrap { overflow-x: auto; margin: 1.2rem 0; position: relative; border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper-3); -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: .96rem; }
table.data th { font-size: .86rem; font-weight: 500; color: var(--ink-3); text-align: right; padding: .75rem .9rem; white-space: nowrap; border-bottom: 1px solid var(--rule); background: var(--paper-2); }
table.data td { padding: .7rem .9rem; text-align: right; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data th.name, table.data td.name { text-align: left; }
html[dir="rtl"] table.data th.name, html[dir="rtl"] table.data td.name { text-align: right; }
table.data td.name { font-weight: 500; min-width: 10rem; }
table.data td.name a { text-decoration: none; color: var(--wine); } table.data td.name a:hover { text-decoration: underline; }
table.data td.name small { display: block; color: var(--ink-3); font-size: .84rem; font-weight: 400; }
table.data td.name small a { color: inherit; text-decoration: underline; }
table.data td.num, table.data th.num { font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
table.data .rank { color: var(--ink-3); font-size: .86rem; width: 2rem; text-align: right; }
table.data caption { caption-side: bottom; text-align: left; padding: .8rem .9rem; font-size: .86rem; color: var(--ink-3); border-top: 1px solid var(--rule); }
table.data tfoot td { border-top: 1px solid var(--rule-2); border-bottom: 0; font-weight: 600; background: var(--paper-2); }
table.data.compact { font-size: .92rem; } table.data.compact td { padding: .55rem .7rem; }
table.data tr.grp td { font-size: .9rem; font-weight: 600; color: var(--ink); background: var(--paper-2); padding-top: .7rem; }
table.cmp { width: 100%; border-collapse: collapse; font-size: .98rem; }
table.cmp th, table.cmp td { padding: .75rem .9rem; border-bottom: 1px solid var(--rule); vertical-align: top; text-align: left; }
table.cmp thead th { background: var(--paper-2); font-size: .95rem; font-weight: 600; color: var(--ink); }
table.cmp th.rowlab { font-size: .9rem; color: var(--ink-3); font-weight: 400; width: 12rem; }
table.cmp td.num { text-align: right; }

/* ---------------------------------------------------------------- cards */
.grid { display: grid; gap: 1.8rem 1.5rem; }
.g2 { grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); }
.grid > * { min-width: 0; }
.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; min-width: 0; }
.card:hover { color: inherit; }
.card .ph { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--paper-2); border-radius: var(--r); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2,.6,.2,1); }
.card:hover .ph img { transform: scale(1.03); }
.card .ph .ov { display: none; }
.card h3 { font-family: var(--display); font-size: 1.4rem; font-weight: 500; margin: .7rem 0 .2rem; letter-spacing: -.01em; }
.card:hover h3 { color: var(--wine); }
.card p { font-size: .96rem; color: var(--ink-2); margin: 0; line-height: 1.5; }
.card .kicker { margin-top: .7rem; } .card .kicker + h3 { margin-top: .1rem; }
.card.flat { background: var(--paper-3); border: 1px solid var(--rule-2); border-radius: var(--r); padding: 1.2rem 1.3rem; transition: border-color .15s; }
.card.flat:hover { border-color: var(--ink); }
.card.flat h3 { margin-top: 0; } .card.flat .kicker { margin-top: 0; }
.card .cstat { font-size: .88rem; color: var(--ink-3); margin-top: .35rem; }
.noph { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 4/3; padding: 1.1rem 1.2rem; background: var(--paper-3); border: 1px solid var(--rule-2); outline: 1px solid var(--rule); outline-offset: -6px; overflow: hidden; border-radius: var(--r); }
.noph .plate-name { font-family: var(--display); font-weight: 500; line-height: 1.08; font-size: clamp(1.3rem, 2vw, 1.7rem); color: var(--ink); overflow-wrap: anywhere; }
.noph .plate-meta { font-size: .86rem; color: var(--ink-3); margin-top: .35rem; }

/* photo tiles: the picture, then the words underneath */
.tiles { display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 1.4rem 0; }
.tiles.t2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles.t4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { position: relative; display: block; text-decoration: none; color: var(--ink); min-width: 0; }
.tile:hover { color: var(--ink); }
.tile img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; border-radius: var(--r); background: var(--paper-2); transition: opacity .2s; }
.tiles.t2 .tile img { aspect-ratio: 16/9; }
.tile:hover img { opacity: .9; }
.tile-over { display: block; padding: .75rem .1rem 0; }
.tile-over .kicker { display: block; }
.tile-over b { display: block; font-family: var(--display); font-size: 1.45rem; font-weight: 500; line-height: 1.12; letter-spacing: -.01em; }
.tile:hover .tile-over b { color: var(--wine); }
.tile-over small { display: block; font-size: .95rem; color: var(--ink-2); margin-top: .3rem; line-height: 1.45; }
.tile.plate { background: var(--paper-3); border: 1px solid var(--rule-2); outline: 1px solid var(--rule); outline-offset: -6px; border-radius: var(--r); padding: 1.3rem; aspect-ratio: 4/3; display: flex; align-items: flex-end; }
.tile.plate .tile-over { padding: 0; } .tile.plate .tile-over b { color: var(--ink); }
.ptiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.5rem; margin: 1.2rem 0; }
.ptile { position: relative; display: block; text-decoration: none; color: var(--ink); min-width: 0; }
.ptile:hover { color: var(--ink); }
.ptile img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; border-radius: var(--r); background: var(--paper-2); }
.ptile .ov { display: block; padding: .75rem .1rem 0; }
.ptile .ov .kicker { display: block; }
.ptile .ov b { display: block; font-family: var(--display); font-size: 1.35rem; font-weight: 500; line-height: 1.15; }
.ptile:hover .ov b { color: var(--wine); }
.ptile .ov .big { display: block; font-size: 1.15rem; font-weight: 600; color: var(--wine); margin-top: .2rem; }
.ptile .ov small { display: block; font-size: .88rem; color: var(--ink-3); }
.ptile.plate, .ptile.chart { background: var(--paper-3); border: 1px solid var(--rule-2); border-radius: var(--r); padding: 1.2rem; aspect-ratio: 3/2; display: flex; align-items: flex-end; overflow: hidden; }
.ptile.plate .ov, .ptile.chart .ov { padding: 0; position: relative; }
.ptile.chart { background: var(--paper-3); }
.ptile.chart > svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 70%; opacity: .55; }
.ptile.chart > svg path, .ptile.chart > svg polyline { stroke: var(--slate); stroke-width: 2; fill: none; }
.ptile.chart > svg .fill { fill: var(--slate); opacity: .12; stroke: none; }
.thumb-plate { display: flex; align-items: center; justify-content: center; width: 2.8rem; height: 2.8rem; background: var(--paper-2); color: var(--ink-2); font-size: .78rem; font-weight: 600; border-radius: var(--r-sm); }

/* feature bands: photograph beside words */
.band { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: center; margin: 3.5rem 0; }
.band img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; border-radius: var(--r); grid-column: 1; grid-row: 1; }
.band .over { grid-column: 2; grid-row: 1; }
.band .over-in h2 { margin-bottom: .4rem; }
.band .over-in p { color: var(--ink-2); margin: 0 0 1.1rem; }
.band .cred { grid-column: 1; grid-row: 2; margin-top: -1rem; }
.home-lead { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; margin-top: 1.6rem; }
.home-lead > * { min-width: 0; }
.feature-img { display: block; } .feature-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; border-radius: var(--r); }

/* ----------------------------------------------------------------- stats */
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: .8rem; margin: 1.4rem 0; }
.stat { min-width: 0; padding: 1rem 1.1rem; background: var(--paper-3); border: 1px solid var(--rule); border-top: 2px solid var(--ink); border-radius: 0; }
.stat-k { display: block; font-size: .88rem; color: var(--ink-3); line-height: 1.3; margin-bottom: .25rem; }
.stat-v { display: block; font-family: var(--display); font-size: 1.7rem; font-weight: 500; line-height: 1.15; font-variant-numeric: lining-nums; overflow-wrap: anywhere; }
.stat-v a { text-decoration: none; color: var(--wine); }
.stat-n { display: block; font-size: .84rem; color: var(--ink-3); line-height: 1.4; margin-top: .2rem; }
.stat-n .basis { margin-inline-start: 0; margin-top: .25rem; }
.stat-strip.big .stat-v { font-size: 2.1rem; }
.stat-v .qchip { font-family: var(--sans); font-size: .95rem; }

/* --------------------------------------------------------------- charts */
.fig { margin: 1.6rem 0; background: var(--paper-3); border: 1px solid var(--rule); border-radius: var(--r); padding: 1.1rem 1.2rem; }
.fig h3 { margin-bottom: .6rem; }
.fig .chart { display: block; width: 100%; height: auto; }
.chart .grid { stroke: var(--rule); stroke-width: 1; } .chart .grid.v { stroke: var(--rule); opacity: .6; }
.chart .tick { font-family: var(--sans); font-size: 12px; fill: var(--ink-3); }
.chart .ln { fill: none; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.chart .s0, .chart .lg.s0 { stroke: var(--wine); fill: var(--wine); } .chart .ln.s0 { fill: none; }
.chart .s1, .chart .lg.s1 { stroke: var(--slate); fill: var(--slate); } .chart .ln.s1 { fill: none; }
.chart .s2, .chart .lg.s2 { stroke: var(--oak); fill: var(--oak); } .chart .ln.s2 { fill: none; }
.chart .s3, .chart .lg.s3 { stroke: var(--vine); fill: var(--vine); } .chart .ln.s3 { fill: none; }
.chart .s4, .chart .lg.s4 { stroke: var(--brass); fill: var(--brass); } .chart .ln.s4 { fill: none; }
.chart .dot { stroke: var(--paper-3); stroke-width: 1.5; }
.chart .marker { stroke: var(--oak); stroke-dasharray: 3 3; }
.chart .mlabel, .chart .legend { font-family: var(--sans); font-size: 12px; fill: var(--ink-2); }
.chart .area { fill: var(--wine); opacity: .08; }
.chart .bar { fill: var(--wine); opacity: .88; } .chart .bar.up { fill: var(--up); } .chart .bar.down { fill: var(--down); }
.chart .bar.prev { fill: var(--rule-2); opacity: 1; } .chart .bar.cur { fill: var(--wine); opacity: 1; }
.chart .blabel { font-family: var(--sans); font-size: 13px; fill: var(--ink); } .chart .bval { font-family: var(--sans); font-size: 12px; fill: var(--ink-3); }
.chart .axlabel { font-family: var(--sans); font-size: 12px; fill: var(--ink-2); }
.chart .cnote { font-family: var(--sans); font-size: 11.5px; fill: var(--ink-3); }
.chart .seg.c0, .costbar .seg.c0, .costlegend i.c0 { fill: #7B1E3A; background: #7B1E3A; }
.chart .seg.c1, .costbar .seg.c1, .costlegend i.c1 { fill: #4F6A45; background: #4F6A45; }
.chart .seg.c2, .costbar .seg.c2, .costlegend i.c2 { fill: #C3922E; background: #C3922E; }
.chart .seg.c3, .costbar .seg.c3, .costlegend i.c3 { fill: #35495C; background: #35495C; }
.chart .seg.c4, .costbar .seg.c4, .costlegend i.c4 { fill: #D98B7E; background: #D98B7E; }
.chart .seg.c5, .costbar .seg.c5, .costlegend i.c5 { fill: #946330; background: #946330; }
.chart .seg.c6, .costbar .seg.c6, .costlegend i.c6 { fill: #9DB08C; background: #9DB08C; }
.chart .seg.c7, .costbar .seg.c7, .costlegend i.c7 { fill: #B9AFA6; background: #B9AFA6; }
.chart .seg.mkt { fill: var(--brass); opacity: .75; }
.spark { width: 110px; height: 26px; } .spark path { fill: none; stroke-width: 1.6; stroke: var(--ink-3); } .spark.up path { stroke: var(--up); } .spark.down path { stroke: var(--down); }
.figmeta { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; font-size: .84rem; color: var(--ink-3); margin-top: .6rem; }
.figmeta a { color: inherit; }

/* horizontal bars in plain HTML */
.hbars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(5rem, max-content) minmax(4rem, 1fr) auto; gap: .6rem 1rem; align-items: center; }
.hbars li { display: contents; }
.hb-l { font-size: .96rem; text-align: end; max-width: 24rem; line-height: 1.3; }
.hb-t { display: block; height: .6rem; background: var(--paper-2); min-width: 0; }
.hb-t i { display: block; height: 100%; background: var(--wine); }
.hb-t i.down { background: var(--ink); }
.hb-v { font-size: .94rem; font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.hb-note { font-size: .84rem; color: var(--ink-3); margin: .9rem 0 0; }
.hbars.pairs .hb-t { height: auto; background: none; display: grid; gap: 3px; }
.hbars.pairs .hb-t i { height: .45rem; } .hb-t i.prev, .hb-legend i.prev { background: var(--rule-2); } .hb-t i.cur, .hb-legend i.cur { background: var(--wine); }
.hb-legend { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; font-size: .88rem; color: var(--ink-2); margin: 0 0 1rem; }
.hb-legend i { display: inline-block; width: .9rem; height: .5rem; margin-inline-end: .4rem; }
.two .hbars { display: block; } .two .hbars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l v" "t t"; gap: .25rem .8rem; margin-bottom: .8rem; }
.two .hb-l { grid-area: l; text-align: start; max-width: none; } .two .hb-v { grid-area: v; } .two .hb-t { grid-area: t; }

/* -------------------------------------------------------------- heat map */
.heat { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--r); background: var(--paper-2); overflow: hidden; }
.heat-full { display: block; } .heat-phone { display: none; }
.heat-band { position: absolute; font-size: .72rem; color: var(--ink-2); padding: .1rem .35rem; overflow: hidden; white-space: nowrap; }
.heat-tile { position: absolute; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; text-decoration: none;
  border: 1px solid var(--paper); overflow: hidden; font-size: .72rem; line-height: 1.15; padding: .2rem; color: var(--ink); }
.heat-tile b { font-weight: 600; font-size: .8rem; } .heat-tile span { opacity: .9; }
.heat-tile.t-lg b { font-size: 1.15rem; } .heat-tile.t-lg span { font-size: .9rem; }
.heat-tile.t-md b { font-size: .9rem; } .heat-tile.t-xs b, .heat-tile.t-xs span { display: none; }
.heat-tile:hover { outline: 2px solid var(--ink); z-index: 2; }
.hm-d4 { background: #9E3B2E; color: #fff; } .hm-d3 { background: #B9614F; color: #fff; } .hm-d2 { background: #D69A8B; } .hm-d1 { background: #EACBC2; }
.hm-0 { background: #E9E0D0; } .hm-u1 { background: #CFDDC8; } .hm-u2 { background: #9DBF9C; } .hm-u3 { background: #5A9A6F; color: #fff; } .hm-u4 { background: #2F6B45; color: #fff; }
.hm-na { background: var(--paper-2); color: var(--ink-3); }
:root[data-theme="dark"] .hm-d1 { background: #4A2B27; color: #EDE5D6; } :root[data-theme="dark"] .hm-d2 { background: #6B3A32; color: #F0DAD5; }
:root[data-theme="dark"] .hm-0 { background: #2A2E35; color: #EDE5D6; } :root[data-theme="dark"] .hm-u1 { background: #25412F; color: #EDE5D6; } :root[data-theme="dark"] .hm-u2 { background: #2F5A3F; color: #DCEEE2; }
.heat-legend { display: flex; align-items: center; gap: .2rem; font-size: .82rem; color: var(--ink-3); margin: .6rem 0; }
.heat-legend i { display: inline-block; width: 1.4rem; height: .8rem; } .heat-legend b { margin: 0 .3rem; font-weight: 500; }
.mapwrap { position: relative; border-radius: var(--r); background: var(--paper-3); border: 1px solid var(--rule); margin: 1rem 0; overflow: hidden; }
.mapwrap svg { display: block; width: 100%; height: auto; }
.mapwrap .land { fill: var(--paper-2); stroke: var(--rule-2); stroke-width: .5; }
.mapwrap .land.hm-d4, .mapwrap .land.hm-d3, .mapwrap .land.hm-u3, .mapwrap .land.hm-u4 { stroke: var(--paper-3); }
.mapwrap .pin circle { stroke: var(--paper-3); stroke-width: 1.2; } .mapwrap .pin text { font-family: var(--sans); font-size: 11px; fill: var(--ink); paint-order: stroke; stroke: var(--paper-3); stroke-width: 3px; }
.mapwrap .pin.hm-u1 circle, .mapwrap .pin.hm-u2 circle { fill: #93BD9B; } .mapwrap .pin.hm-u3 circle, .mapwrap .pin.hm-u4 circle { fill: #2F6B45; }
.mapwrap .pin.hm-d1 circle, .mapwrap .pin.hm-d2 circle { fill: #D69A8B; } .mapwrap .pin.hm-d3 circle, .mapwrap .pin.hm-d4 circle { fill: #9E3B2E; }
.mapwrap .pin.hm-0 circle, .mapwrap .pin.hm-na circle { fill: var(--lime); }
.mapcard { position: absolute; background: var(--paper-3); border-radius: var(--r-sm); box-shadow: var(--shadow); padding: .5rem .7rem; font-size: .88rem; max-width: 16rem; pointer-events: none; z-index: 5; display: none; }

/* ------------------------------------------------------------- depth tabs */
.depths { margin: 0 0 1.6rem; }
.depth-nav, .tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.2rem; }
.depth-nav, .tabs { gap: 0; border-bottom: 1px solid var(--rule-2); }
.depth-nav button, .tabs a { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; font: 500 .98rem var(--sans); color: var(--ink-3); padding: .6rem 1.1rem .6rem 0; margin-inline-end: 1rem; text-decoration: none; }
.depth-nav button:hover, .tabs a:hover { color: var(--ink); }
.depth-nav button.on, .tabs a.on { color: var(--ink); border-bottom-color: var(--wine); }
.depth-pane { display: none; } .depth-pane.on { display: block; }
.simple { font-size: 1.18rem; line-height: 1.6; }
.guided-only { display: none; } :root[data-view="guided"] .guided-only { display: block; } :root[data-view="guided"] .expert-only { display: none; }

/* ---------------------------------------------------------------- figures */
figure { margin: 1.6rem 0; } figure img { display: block; width: 100%; border-radius: var(--r); background: var(--paper-2); }
figcaption { font-size: .86rem; color: var(--ink-3); line-height: 1.45; margin-top: .5rem; }
figcaption .cred { display: block; font-size: .76rem; margin-top: .12rem; } figcaption a { color: inherit; }
.figside { float: inline-end; width: 20rem; margin: .3rem 0 1.2rem 1.6rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1rem; margin: 1.4rem 0; }
.gallery figure { margin: 0; } .gallery img { aspect-ratio: 4/3; object-fit: cover; cursor: zoom-in; }
.photostrip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; margin: 2rem 0; }
.photostrip.s4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.photostrip figure { margin: 0; }
.photostrip img { aspect-ratio: 4/3; object-fit: cover; width: 100%; display: block; }
.photostrip figcaption { font-size: .78rem; margin-top: .35rem; }
.photostrip figcaption .cred { display: inline; }
figure.wide { margin: 2.4rem 0; }
figure.wide img { width: 100%; height: min(46vh, 420px); object-fit: cover; display: block; }

/* -------------------------------------------------------------- sources */
.sources { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); }
.sources h2 { font-size: 1.4rem; } .sources h3 { font-size: 1rem; }
.sources ol { padding-inline-start: 1.3rem; margin: 0; } .sources li { font-size: .92rem; color: var(--ink-2); margin-bottom: .45rem; overflow-wrap: anywhere; } .sources li .pub { color: var(--ink-3); }
.verify { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: baseline; padding: .9rem 0; margin: 1.4rem 0; font-size: .88rem; color: var(--ink-3); border-top: 1px solid var(--rule); }
.verify b { color: var(--ink-2); font-weight: 500; } .stalemark { color: var(--down); font-weight: 500; }

/* ----------------------------------------------------------------- forms */
.facets { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .9rem; background: var(--paper-3); border: 1px solid var(--rule); border-top: 2px solid var(--ink); padding: 1.1rem 1.2rem; margin-bottom: 1.4rem; }
.facets > * { min-width: 0; }
.facet label { display: block; font-size: .88rem; color: var(--ink-2); margin-bottom: .3rem; }
.facet select, .facet input, form.stack input, form.stack textarea, form.stack select, .lab-controls select, .lang-sel, .askbox textarea, .fsub input, .cmp-pick select, .cmp-pick input {
  width: 100%; min-width: 0; padding: .6rem .8rem; font: 400 1rem var(--sans); background: var(--paper-3); color: var(--ink); border: 1px solid var(--rule-2); border-radius: var(--r-sm); }
.facet select:focus, .facet input:focus, form.stack input:focus, form.stack textarea:focus, .askbox textarea:focus, .fsub input:focus { outline: none; border-color: var(--wine); }
.lang-sel { width: auto; padding: .45rem .7rem; }
form.stack label { display: block; font-size: .92rem; color: var(--ink-2); margin: .9rem 0 .3rem; }
form.stack textarea.code { font-family: ui-monospace, Menlo, monospace; font-size: .84rem; min-height: 14rem; }
.askbox textarea { min-height: 6rem; padding: 1rem 1.1rem; font-size: 1.05rem; }
.fav { background: none; border: 0; cursor: pointer; color: var(--rule-2); font-size: 1.15rem; padding: 0 .2rem; line-height: 1; vertical-align: baseline; } .fav.on, .fav:hover { color: var(--cork); }

/* ---------------------------------------------------------------- sections */
.sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 3.2rem 0 1.1rem; }
.sechead h2 { margin: 0; }
.sechead a { font-weight: 500; text-decoration: none; color: var(--wine); white-space: nowrap; }
.sechead a:hover { text-decoration: underline; }
.linklist { column-count: 3; column-gap: 2rem; } .linklist a { display: block; padding: .3rem 0; text-decoration: none; break-inside: avoid; color: var(--wine); } .linklist a:hover { text-decoration: underline; }
.related { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--rule); }
.related h2 { font-size: 1.5rem; }
.relgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .7rem; }
.relgrid a { display: block; text-decoration: none; background: var(--paper-3); border: 1px solid var(--rule); border-radius: var(--r-sm); padding: .7rem .9rem; } .relgrid .kicker { display: block; font-size: .8rem; } .relgrid b { font-weight: 500; } .relgrid a:hover b { color: var(--wine); }
.dash { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1.4rem; }
.dash > section { min-width: 0; background: var(--paper-3); border: 1px solid var(--rule); border-top: 2px solid var(--ink); padding: 1.2rem 1.3rem; }
.dash h2 { font-family: var(--sans); font-size: 1.1rem; font-weight: 600; letter-spacing: 0; margin-bottom: .4rem; }
.dash h2 a { text-decoration: none; color: inherit; } .dash h2 a:hover { color: var(--wine); }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; padding: .55rem 0; border-bottom: 1px solid var(--rule); font-size: .98rem; }
.rows li:last-child { border-bottom: 0; }
.rows li a { text-decoration: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rows li a:hover { text-decoration: underline; }
.rows li .num { font-size: .95rem; flex: 0 0 auto; }
.rows li small { color: var(--ink-3); font-size: .84rem; }
.rows.rich li { display: grid; grid-template-columns: 2.8rem minmax(0, 1fr) auto auto; gap: .7rem; align-items: center; padding: .5rem 0; }
.rows.rich li img { width: 2.8rem; height: 2.8rem; object-fit: cover; display: block; border-radius: var(--r-sm); }
.rows.rich li .nm { min-width: 0; } .rows.rich li .nm a { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rows.rich li .nm small { display: block; }
.rows.rich .spark { width: 72px; height: 22px; }
.cost-calc { margin-top: 1rem; }
.cost-calc .facets { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.cost-out { font-family: var(--display); font-size: 2rem; font-weight: 500; color: var(--wine); }
.newsitem { border-top: 1px solid var(--rule); padding: 1rem 0; }
.newsitem .kicker { display: block; margin-bottom: .15rem; } .newsitem h3 { font-size: 1.12rem; margin: 0 0 .25rem; } .newsitem h3 a { text-decoration: none; } .newsitem h3 a:hover { text-decoration: underline; }
.newsitem p { font-size: .98rem; color: var(--ink-2); margin: 0; }
.newsrow { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; align-items: start; border-top: 1px solid var(--rule); padding: .9rem 0; }
.newsrow:not(:has(img)) { grid-template-columns: minmax(0, 1fr); } .newsrow > span:empty { display: none; }
.newsrow img { width: 6.5rem; height: 4.6rem; object-fit: cover; display: block; border-radius: var(--r-sm); }
.newsrow h3 { font-size: 1.05rem; margin: .1rem 0 .2rem; } .newsrow h3 a { text-decoration: none; }
.newsrow p { font-size: .95rem; color: var(--ink-2); margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0; border-inline-start: 2px solid var(--rule); }
.timeline li { position: relative; display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: .2rem 1rem; padding: .6rem 0 .8rem 1.3rem; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 1rem; width: 10px; height: 10px; border-radius: 50%; background: var(--wine); border: 2px solid var(--paper); }
.timeline .d { grid-column: 1; font-size: .9rem; color: var(--ink-3); }
.timeline b { grid-column: 2; display: block; font-size: 1.02rem; }
.timeline .tl-body { grid-column: 2; font-size: .96rem; color: var(--ink-2); }
.timeline .tl-src { grid-column: 2; font-size: .88rem; color: var(--wine); }
.scorebar { display: inline-block; width: 6rem; height: .4rem; background: var(--rule); overflow: hidden; vertical-align: middle; margin-inline-end: .4rem; }
.scorebar i { display: block; height: 100%; background: var(--wine); }
details.fold { border-top: 1px solid var(--rule-2); margin: 0; padding: 0; }
details.fold > summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; list-style: none; padding: 1.15rem 0; font-family: var(--display); font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 500; line-height: 1.15; color: var(--ink); }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: "+"; font: 300 1.7rem/1 var(--sans); color: var(--ink-3); flex: 0 0 auto; }
details.fold[open] > summary::after { content: "–"; }
details.fold > summary:hover, details.fold > summary:hover::after { color: var(--wine); }
details.fold > summary small { display: block; font: 400 .94rem/1.4 var(--sans); letter-spacing: 0; color: var(--ink-3); margin-top: .2rem; }
details.fold > .fold-in { padding: .2rem 0 2rem; }
details.fold > .fold-in > :first-child { margin-top: 0; }
.folds { margin: 3rem 0; border-bottom: 1px solid var(--rule-2); }
.folds:has(+ details.fold) { margin-bottom: 0; border-bottom: 0; }
.rows.stack li { flex-direction: column; align-items: flex-start; gap: .1rem; }
.rows.stack li a { white-space: normal; overflow: visible; }
details.fold.last { border-bottom: 1px solid var(--rule-2); margin-bottom: 2.5rem; }
.folds > details.fold.last { border-bottom: 0; margin-bottom: 0; }

/* the story first: a short standfirst, a handful of facts in large type, then more on request */
.bigp { font-family: var(--display); font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.36; letter-spacing: -.005em; max-width: 47rem; margin: 0 0 1.2rem; text-wrap: pretty; }
.keyfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr)); gap: 0 2.2rem; margin: 2.2rem 0 0; }
.keyfacts > div { border-top: 1px solid var(--ink); padding: .9rem 0 1.5rem; min-width: 0; }
.keyfacts dt { font: 500 .72rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.keyfacts dd { margin: .4rem 0 0; font-family: var(--display); font-size: 1.5rem; line-height: 1.14; overflow-wrap: anywhere; }
.keyfacts dd small { display: block; font: 400 .88rem/1.4 var(--sans); color: var(--ink-3); margin-top: .3rem; }
.keyfacts dd a { text-decoration-color: var(--rule-2); }
.keyfacts dd .qchip { font-family: var(--sans); font-size: .95rem; vertical-align: middle; }
.block { margin: 3.2rem 0 0; }
.block > h2 { margin-bottom: .3rem; }
.block > .sub { color: var(--ink-2); max-width: 44rem; margin: 0 0 1.2rem; }
.yearstrip { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.3rem, 1fr)); gap: 4px; margin: 1.2rem 0 .9rem; }
.ychip { display: flex; align-items: center; justify-content: center; height: 3.1rem; font: 500 .98rem var(--sans); font-variant-numeric: tabular-nums; text-decoration: none; transition: transform .12s; }
.ychip:hover { transform: translateY(-2px); }
.ychip.cur { outline: 2px solid var(--ink); outline-offset: 2px; }
.winelist { list-style: none; margin: 1rem 0 0; padding: 0; border-top: 1px solid var(--ink); }
.winelist li { border-bottom: 1px solid var(--rule-2); break-inside: avoid; }
.winelist.cols { columns: 2 22rem; column-gap: 3rem; border-top: 0; } .winelist.cols li:first-child, .winelist.cols li { border-top: 0; }
.winelist a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 0; text-decoration: none; color: var(--ink); }
.winelist b { font-family: var(--display); font-size: 1.5rem; font-weight: 500; line-height: 1.15; }
.winelist a:hover b { color: var(--wine); }
.winelist small { color: var(--ink-3); font-size: .92rem; text-align: end; flex: 0 0 auto; max-width: 50%; }
.winelist.reads a { flex-direction: column; gap: .2rem; } .winelist.reads small { max-width: 44rem; text-align: start; font-size: .98rem; color: var(--ink-2); line-height: 1.5; }

.pill-note { font-size: .88rem; color: var(--ink-3); margin: .2rem 0 .8rem; }
.qchip { display: inline-block; font-size: .82rem; font-weight: 500; padding: .12rem .6rem; border-radius: var(--r-sm); color: #fff; white-space: nowrap; }
.qchip.ch5 { background: #4E0F20; } .qchip.ch4 { background: #7A1F35; } .qchip.ch3 { background: #A8556A; } .qchip.ch2 { background: #D9AAB5; color: #3a0f1b; } .qchip.ch1 { background: #EEDADE; color: #3a0f1b; } .qchip.ch0 { background: #B7B4AE; color: #1D1C1B; } .qchip.chn { background: none; border: 1px dashed var(--rule-2); color: var(--ink-3); }

/* ---------------------------------------------------------------- learn */
.lab { background: var(--paper-3); border: 1px solid var(--rule); border-top: 2px solid var(--ink); margin: 2rem 0; padding: clamp(1.2rem, 3vw, 2rem); }
.lab-head h2 { margin: .2rem 0 .3rem; }
.lab-head p { max-width: 46rem; color: var(--ink-2); }
.lab-body { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: 2rem; align-items: start; }
.lab-body > * { min-width: 0; }
.lab-controls label { display: block; font-size: .95rem; color: var(--ink-2); margin: .9rem 0; }
.lab-controls output { float: right; color: var(--ink); font-weight: 600; }
.lab-controls input[type=range] { display: block; width: 100%; margin-top: .5rem; accent-color: var(--wine); }
.lab-controls select { margin-top: .4rem; }
.lab-adv summary { cursor: pointer; font-weight: 500; color: var(--wine); margin-top: 1rem; }
.lab-out { background: var(--paper); padding: 1rem 1.1rem; }
.lab-out .stat-strip { margin-top: .8rem; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); }
.lab-out .stat-v { font-size: 1.35rem; }
.costbar { display: flex; height: 2.8rem; width: 100%; overflow: hidden; background: var(--paper-2); border-radius: var(--r-sm); }
.costbar .seg { display: block; height: 100%; transition: width .4s cubic-bezier(.2,.6,.2,1); }
.costbar .seg.rest { background: repeating-linear-gradient(135deg, var(--paper-2) 0 6px, var(--rule) 6px 8px); }
.costlegend { display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .88rem; color: var(--ink-2); margin: .6rem 0; }
.costlegend i { display: inline-block; width: .75rem; height: .75rem; margin-inline-end: .35rem; vertical-align: -1px; border-radius: 3px; }
.modules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.5rem; }
.module { display: block; text-decoration: none; color: inherit; position: relative; }
.mod-ph { display: block; aspect-ratio: 3/2; background: var(--paper-2); overflow: hidden; border-radius: var(--r); }
.mod-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mod-n { display: none; }
.mod-t { display: block; padding: .7rem 0 0; }
.mod-t b { display: block; font-family: var(--display); font-weight: 500; font-size: 1.4rem; line-height: 1.15; }
.module:hover .mod-t b { color: var(--wine); }
.mod-t span { display: block; font-size: .96rem; color: var(--ink-2); margin-top: .25rem; line-height: 1.5; }
.mod-t small { display: block; font-size: .86rem; color: var(--ink-3); margin-top: .4rem; }
.mod-done { display: none; color: var(--up); font-style: normal; font-weight: 500; }
.module.is-done .mod-done { display: inline; }
.quiz { max-width: 40rem; }
.quiz-q { font-family: var(--display); font-size: 1.6rem; line-height: 1.2; margin: .4rem 0 1rem; }
.quiz-opt { display: block; width: 100%; text-align: start; font: 400 1.02rem var(--sans); padding: .85rem 1.1rem; margin: .5rem 0; background: var(--paper-3); color: var(--ink); border: 1px solid var(--rule-2); border-radius: var(--r-sm); cursor: pointer; }
.quiz-opt:hover:not(:disabled) { border-color: var(--ink); }
.quiz-opt.right { border-color: var(--up); background: var(--vine-soft); }
.quiz-opt.wrong { border-color: var(--down); background: var(--wine-soft); }
.quiz-fb p { margin: .9rem 0 .7rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .9rem; perspective: 1000px; }
.card3d { position: relative; height: 11rem; background: none; border: 0; padding: 0; cursor: pointer; text-align: start; font: inherit; color: inherit; transform-style: preserve-3d; transition: transform .5s; }
.card3d.flipped { transform: rotateY(180deg); }
.card3d .face { position: absolute; inset: 0; padding: 1.1rem 1.2rem; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: var(--r); background: var(--paper-3); border: 1px solid var(--rule-2); outline: 1px solid var(--rule); outline-offset: -6px; display: flex; flex-direction: column; justify-content: center; }
.card3d .front b { font-family: var(--display); font-size: 1.55rem; font-weight: 500; }
.card3d .front small { font-size: .84rem; color: var(--ink-3); margin-top: .4rem; }
.card3d .back { transform: rotateY(180deg); font-size: .92rem; line-height: 1.45; background: var(--cork-soft); border-color: var(--cork); outline-color: transparent; overflow: hidden; }
.lab .chart .tick, .lab .chart .legend, .lab .chart .mlabel { font-size: 14px; }

/* ============================================================ vintage grid */
.vg-filter { display: flex; flex-wrap: wrap; gap: .45rem; margin: .8rem 0 1rem; }
.vg-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .9rem; color: var(--ink-2); margin-bottom: 1rem; align-items: center; }
.vg-legend i { display: inline-block; width: 1rem; height: 1rem; margin-inline-end: .4rem; vertical-align: -2px; }
.vg-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.vgrid { border-collapse: separate; border-spacing: 3px; width: 100%; }
table.vgrid th.yr { font-size: .9rem; font-weight: 500; color: var(--ink-2); text-align: right; padding-right: .5rem; width: 3.2rem; }
table.vgrid thead th { vertical-align: bottom; padding: 0; }
table.vgrid thead th a { display: block; text-decoration: none; color: inherit; }
table.vgrid thead th img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; margin-bottom: .3rem; }
table.vgrid thead th span { display: block; font-size: .95rem; font-weight: 600; padding: .1rem 0 .4rem; text-align: left; }
table.vgrid td { padding: 0; }
.vcell { display: flex; align-items: baseline; justify-content: space-between; gap: .3rem; padding: .4rem .55rem; min-height: 2.2rem; text-decoration: none; color: var(--ink); font-size: .8rem; }
.vcell b { font-weight: 500; } .vcell small { font-size: .72rem; opacity: .8; }
.vcell:hover { outline: 2px solid var(--ink); color: inherit; }
.ch5, .vcell.ch5 { background: #4E0F20; color: #fff; } .ch4, .vcell.ch4 { background: #7A1F35; color: #fff; } .ch3, .vcell.ch3 { background: #A8556A; color: #fff; }
.ch2, .vcell.ch2 { background: #D9AAB5; color: #3a0f1b; } .ch1, .vcell.ch1 { background: #EEDADE; color: #3a0f1b; } .ch0, .vcell.ch0 { background: #B7B4AE; color: #1D1C1B; }
.chn, .vcell.chn { background: none; box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink-3); }
.vcell.ch5:hover, .vcell.ch4:hover, .vcell.ch3:hover, .ychip.ch5:hover, .ychip.ch4:hover, .ychip.ch3:hover { color: #fff; }
.ychip.ch2:hover, .ychip.ch1:hover { color: #3a0f1b; } .ychip.ch0:hover { color: #1D1C1B; }
table.vgrid.one td .vcell { justify-content: flex-start; gap: 1rem; min-height: 2.5rem; font-size: .95rem; }

/* ------------------------------------------------------ regions map */
.regions-lead.wide { grid-template-columns: minmax(0, 1fr); }
.regions-lead { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.4rem 2.4rem; align-items: start; margin: .5rem 0 1.6rem; }
.rmap-fig { margin: 0; min-width: 0; }
.rmap-grid { display: flex; flex-wrap: wrap; gap: .6rem; }
.rmap { display: block; height: 15.5rem; width: auto; aspect-ratio: var(--ar); flex: 1 1 auto; max-width: 100%; font-family: var(--sans); border-radius: var(--r); overflow: hidden; }
.rmap-grid .rmap:first-child { height: 20rem; }
.rmap .sea { fill: var(--slate-soft); }
.rmap .land { fill: var(--paper-3); stroke: var(--rule-2); stroke-width: .8; stroke-linejoin: round; }
.rmap .frame { fill: none; stroke: var(--paper); stroke-width: 3; }
.rmap .country { font-size: 10px; letter-spacing: .1em; fill: var(--ink-3); text-anchor: middle; pointer-events: none; }
.rmap .ptitle { font-size: 11px; fill: var(--ink-3); pointer-events: none; }
.rmap a { cursor: pointer; }
.rmap .app circle { fill: var(--wine); opacity: .4; transition: opacity .15s, r .15s; }
.rmap .app:hover circle { opacity: 1; r: 3.4; }
.rmap .pin .halo { fill: var(--wine-soft); stroke: var(--wine); stroke-width: 1; opacity: .92; transition: fill .15s, r .15s; }
.rmap .pin .dot { fill: var(--wine); }
.rmap .pin text { font-size: 12px; font-weight: 600; fill: var(--ink); paint-order: stroke; stroke: var(--paper-3); stroke-width: 3px; stroke-linejoin: round; }
.rmap .pin:hover .halo, .rmap .pin:focus .halo { fill: var(--wine); opacity: .3; r: 17; }
.rmap .pin:hover text, .rmap .pin:focus text { fill: var(--wine); }
.rmap-fig figcaption { font-size: .86rem; color: var(--ink-3); margin-top: .5rem; line-height: 1.45; }
.regions-merit h2 { margin: 0 0 .6rem; }
.regions-merit p { font-size: 1rem; line-height: 1.6; color: var(--ink-2); margin: 0 0 .85rem; }
.regions-merit p b { color: var(--ink); font-weight: 600; }
.regions-merit .regions-merit-note { font-size: .9rem; color: var(--ink-3); }

/* ================================================================ home + learning blocks */
.sec { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.sec.tight { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.sec.sand { background: var(--paper-2); }
.sec.blush { background: var(--paper-3); }
.sec.deep { background: var(--char); }
.sec.glass { background: var(--glass); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; border-top: 1px solid var(--ink); padding-top: 1.3rem; margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.sec-head h2 { margin: 0; max-width: 20ch; text-wrap: balance; font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.05; }
.sec-head p { margin: .7rem 0 0; max-width: 36rem; color: var(--ink-2); font-size: 1.08rem; }
.sec-head > div { min-width: 0; }
.sec-head .more { padding-bottom: .3rem; }

.hero { background: var(--paper-2); overflow: hidden; }
.hero-in { max-width: 1320px; margin: 0 auto; padding: clamp(2rem, 5vw, 4.5rem) var(--gut) clamp(2.4rem, 5vw, 5rem); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2rem clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { font-size: clamp(3rem, 7.6vw, 6rem); line-height: .96; letter-spacing: -.03em; margin: 0 0 .35em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--wine); }
.hero .lede { font-size: clamp(1.12rem, 1.8vw, 1.32rem); max-width: 30rem; margin-bottom: 1.8rem; }
.hero .btnrow { margin: 0; }
.hero-pics { position: relative; min-width: 0; padding-bottom: 9%; padding-inline-start: 11%; }
.hero-pics .main { display: block; width: 100%; aspect-ratio: 5/4; object-fit: cover; border-radius: var(--r); }
.hero-pics .inset { position: absolute; inset-inline-start: 0; bottom: 0; width: 33%; aspect-ratio: 4/5; object-fit: cover; border-radius: 999px 999px 0 0; border: 8px solid var(--paper-2); }
/* the label: a small printed card, as on a bottle */
.label { position: relative; display: block; background: var(--paper-3); border: 1px solid var(--rule-2); outline: 1px solid var(--rule); outline-offset: -6px; padding: 1.3rem 1.4rem; text-decoration: none; color: var(--ink); }
a.label:hover { border-color: var(--ink); color: var(--ink); }
.hero-label { position: absolute; inset-inline-end: -.6rem; bottom: 3%; width: min(15.5rem, 46%); text-align: center; box-shadow: var(--shadow); padding: 1.3rem 1.1rem 1.2rem; }
.hero-label .over { margin-bottom: .5rem; }
.hero-label b { display: block; font-family: var(--display); font-size: 1.5rem; font-weight: 500; line-height: 1.08; }
.hero-label i { display: block; width: 1.6rem; height: 1px; background: var(--ink); margin: .7rem auto; }
.hero-label small { display: block; font-size: .86rem; color: var(--ink-3); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; list-style: none; margin: 0; padding: 0; }
.steps > li { border-inline-start: 1px solid var(--rule-2); min-width: 0; }
.steps > li:first-child { border-inline-start: 0; }
.step { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); padding: .4rem 1.6rem 1rem; min-width: 0; height: 100%; }
.steps > li:first-child .step { padding-inline-start: 0; }
.step:hover { color: var(--ink); }
.step .n { font-family: var(--display); font-size: 4.4rem; line-height: .9; color: var(--wine); font-weight: 400; margin-bottom: .9rem; }
.step h3 { font-family: var(--display); font-size: 1.55rem; font-weight: 500; letter-spacing: -.01em; margin: 0 0 .4rem; }
.step:hover h3 { color: var(--wine); }
.step p { font-size: .98rem; color: var(--ink-2); margin: 0 0 1.1rem; line-height: 1.55; }
.step .more { margin-top: auto; }
.steps.pics { gap: 1.8rem 1.5rem; } .steps.pics > li { border: 0; } .steps.pics .step, .steps.pics > li:first-child .step { padding: 0; }
.step-pic { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); background: var(--paper-2); margin-bottom: 1.2rem; }

.types { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.2rem; }
.type { min-width: 0; text-decoration: none; color: var(--ink); display: block; }
.type img { display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 999px 999px 0 0; background: var(--paper-2); }
.type h3 { font-family: var(--display); font-size: 1.6rem; font-weight: 500; margin: .8rem 0 .25rem; }
.type p { font-size: .96rem; color: var(--ink-2); margin: 0 0 .5rem; line-height: 1.5; }
.type .tastes { font-size: .9rem; color: var(--ink-3); margin: 0; }
.type .tastes b { color: var(--ink-2); font-weight: 500; }

.grapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.grape { position: relative; display: flex; flex-direction: column; min-width: 0; text-decoration: none; color: var(--ink); background: var(--paper-3); border: 1px solid var(--rule-2); outline: 1px solid var(--rule); outline-offset: -6px; padding: 1.7rem 1.6rem 1.5rem; transition: border-color .15s; }
.grape:hover { border-color: var(--ink); color: var(--ink); }
.grape-pic { display: block; width: calc(100% + 1.4rem); max-width: none; height: auto; margin: -.6rem -.7rem 1.3rem; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 1px; background: var(--paper-2); }
.grape-top { display: flex; align-items: center; gap: .9rem; margin-bottom: .9rem; padding-bottom: .9rem; border-bottom: 1px solid var(--rule); }
.drop { flex: 0 0 auto; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--wine); position: relative; box-shadow: inset 0 -3px 6px rgba(0,0,0,.18); }
.drop.white { background: #DCC06A; } .drop.rose { background: #E3A39C; }
.drop::after { content: ""; position: absolute; top: 18%; left: 22%; width: 26%; height: 26%; border-radius: 50%; background: rgba(255,255,255,.4); }
.grape h3 { font-family: var(--display); font-size: 1.7rem; font-weight: 500; margin: 0; line-height: 1.05; letter-spacing: -.01em; }
.grape:hover h3 { color: var(--wine); }
.grape .say { display: block; font-size: .86rem; color: var(--ink-3); margin-top: .15rem; }
.grape p { font-size: .98rem; color: var(--ink-2); margin: 0 0 1rem; line-height: 1.5; }
.flavs { display: block; margin: auto 0 0; padding: 0; list-style: none; font-size: .92rem; color: var(--ink-2); }
.flavs li { display: inline; }
.flavs li + li::before { content: "  ·  "; color: var(--cork); white-space: pre; }

.meter { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); align-items: center; gap: .3rem .9rem; margin: 0; }
.meter dt { font-size: .95rem; font-weight: 500; }
.meter dd { margin: 0; }
.meter .bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.meter .bar i { height: .34rem; background: var(--rule); }
.meter .bar i.on { background: var(--wine); }
.meter .ends { display: flex; justify-content: space-between; font-size: .8rem; color: var(--ink-3); margin-top: .2rem; }

.glance { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 3rem; background: var(--paper-3); border: 1px solid var(--rule-2); outline: 1px solid var(--rule); outline-offset: -7px; padding: clamp(1.5rem, 3.2vw, 2.4rem); margin: 0 0 2.6rem; }
.glance > * { min-width: 0; }
.glance h2 { font-size: 1.6rem; margin-bottom: .6rem; }
.glance .plain { font-size: 1.2rem; line-height: 1.5; margin-bottom: 1rem; }
.glance .say { color: var(--ink-3); font-size: .95rem; margin: -.3rem 0 1rem; }
.glance dl.kv { margin: 0; }
.glance dl.kv dt { font: 500 .72rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-top: 1.1rem; }
.glance dl.kv dt:first-child { margin-top: 0; }
.glance dl.kv dd { margin: .1rem 0 0; font-size: 1.02rem; }
.glance .meter { margin-top: .4rem; row-gap: .9rem; }

.places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.5rem; }
.place { display: block; min-width: 0; text-decoration: none; color: var(--ink); }
.place img { display: block; width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--r); background: var(--paper-2); }
.place .where { display: block; font-size: .88rem; color: var(--ink-3); margin-top: .75rem; }
.place h3 { font-family: var(--display); font-size: 1.6rem; font-weight: 500; margin: .05rem 0 .2rem; }
.place:hover h3 { color: var(--wine); }
.place p { font-size: .98rem; color: var(--ink-2); margin: 0; line-height: 1.5; }
.place .gr { display: block; font-size: .9rem; color: var(--ink-3); margin-top: .35rem; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split > * { min-width: 0; }
.split img.pic { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); }
.split.flip > :first-child { order: 2; }
.split h2 { text-wrap: balance; }
.split p { font-size: 1.08rem; color: var(--ink-2); max-width: 34rem; }

.bottle { display: flex; flex-direction: column; gap: .5rem; margin: 1.4rem 0 1.6rem; padding: 0; list-style: none; max-width: 34rem; }
.bottle li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .2rem 1rem; font-size: 1rem; }
.bottle .lbl { min-width: 0; }
.bottle .amt { font-variant-numeric: tabular-nums; font-weight: 600; }
.bottle .track { grid-column: 1 / -1; height: .3rem; background: var(--rule); overflow: hidden; }
.bottle .track i { display: block; height: 100%; background: var(--cork); }
.bottle.wide { max-width: 40rem; gap: .8rem; margin-top: .4rem; } .bottle.wide li { font-size: 1.08rem; } .bottle.wide .track { height: .4rem; }
.plainlist { list-style: none; margin: 0 0 1.6rem; padding: 0; max-width: 44rem; }
.plainlist li { padding: .8rem 0; border-top: 1px solid var(--rule-2); font-size: 1.06rem; line-height: 1.55; color: var(--ink-2); }
.plainlist li:first-child { border-top: 0; padding-top: .2rem; } .plainlist b { color: var(--ink); font-weight: 500; }
.place .price { font-size: 1rem; color: var(--ink-2); margin: 0 0 .35rem; } .place .price b { font-family: var(--display); font-size: 1.35rem; font-weight: 500; color: var(--wine); margin-inline-end: .2rem; }
.costgrid { margin-top: .6rem; }
h2.withpic { display: flex; align-items: center; gap: .75rem; } h2.withpic img { width: 2.9rem; height: 2.9rem; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.regioncard { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: 1.2rem 1.8rem; align-items: center; max-width: 46rem; margin: 2.6rem 0; padding: .8rem; text-decoration: none; color: var(--ink); background: var(--paper-3); border: 1px solid var(--rule-2); outline: 1px solid var(--rule); outline-offset: -6px; }
.regioncard img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 1px; }
.regioncard .rc-text { display: block; padding: .4rem .6rem .4rem 0; min-width: 0; } .regioncard .over { margin-bottom: .35rem; }
.regioncard b { display: block; font-family: var(--display); font-size: 1.7rem; font-weight: 500; line-height: 1.1; }
.regioncard small { display: block; color: var(--ink-2); font-size: 1rem; line-height: 1.45; margin: .3rem 0 .7rem; }
.regioncard:hover { border-color: var(--ink); } .regioncard:hover b { color: var(--wine); }
.place.bare { background: var(--paper-3); border: 1px solid var(--rule-2); outline: 1px solid var(--rule); outline-offset: -6px; padding: 1.2rem 1.3rem; align-self: start; } .place.bare .where { margin-top: 0; }
.places.reads .place h3 { font-size: 1.4rem; line-height: 1.15; margin-top: .8rem; text-wrap: balance; } .places.reads { margin-bottom: 1rem; }
figure.wide img.hf { border-radius: var(--r); }

.words { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2.2rem; margin: 0; }
.words > div { padding: 1rem 0; border-top: 1px solid var(--rule-2); min-width: 0; break-inside: avoid; }
.words dt { font-family: var(--display); font-size: 1.45rem; font-weight: 500; line-height: 1.15; }
.words dd { margin: .2rem 0 0; font-size: .98rem; color: var(--ink-2); line-height: 1.5; }
.words dd a { color: var(--wine); }

.lessons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.lesson { display: block; min-width: 0; text-decoration: none; color: var(--ink); }
.lesson img { display: block; width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--r); background: var(--paper-2); }
.lesson .mins { display: block; font-size: .86rem; color: var(--ink-3); margin-top: .7rem; }
.lesson h3 { font-family: var(--display); font-size: 1.4rem; font-weight: 500; line-height: 1.12; margin: .1rem 0 .3rem; }
.lesson:hover h3 { color: var(--wine); }
.lesson p { font-size: .95rem; color: var(--ink-2); margin: 0; line-height: 1.5; }
.lesson .read { display: none; font-size: .84rem; font-weight: 500; color: var(--up); }
.lesson.is-done .read { display: inline; }

.famous { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.4rem; }
.cta-card { background: var(--paper-3); border: 1px solid var(--rule-2); outline: 1px solid var(--rule); outline-offset: -7px; padding: clamp(1.6rem, 3.2vw, 2.4rem); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: center; }
.cta-card h2 { margin: 0 0 .3rem; font-size: clamp(1.5rem, 2.6vw, 1.9rem); } .cta-card p { margin: 0; color: var(--ink-2); }

.article { max-width: 46rem; margin: 0 auto; }
.article h2 { font-size: clamp(1.5rem, 2.8vw, 1.9rem); margin-top: 2.4rem; }
.article p, .article li { font-size: 1.1rem; line-height: 1.7; }
.article ul { padding-inline-start: 1.2rem; } .article li { margin-bottom: .6rem; }
.article .next { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: var(--paper-3); border: 1px solid var(--rule-2); outline: 1px solid var(--rule); outline-offset: -6px; padding: 1.4rem 1.6rem; margin-top: 3rem; text-decoration: none; color: var(--ink); }
.article .next:hover { color: var(--ink); border-color: var(--ink); }
.article .next small { display: block; color: var(--ink-3); font-size: .9rem; }
.article .next b { font-family: var(--display); font-size: 1.5rem; font-weight: 500; }
.back { display: inline-block; margin-top: 1.4rem; font-weight: 500; color: var(--wine); text-decoration: none; }

/* ---- words with a photograph beside them: lessons, grape and region pages. The sides swap down the page. */
.chapters { display: grid; gap: clamp(3rem, 7vw, 6rem); margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.cgroup[id] { scroll-margin-top: 5.5rem; }
.cgroup { display: grid; gap: clamp(1.6rem, 3.5vw, 2.6rem); min-width: 0; }
.cgroup > .article { width: 100%; } .cgroup > .article > :first-child { margin-top: 0; } .cgroup > .article > :last-child { margin-bottom: 0; }
.chapter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-areas: "head pic" "text pic"; column-gap: clamp(2rem, 5.5vw, 5rem); }
.chapter.flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "pic head" "pic text"; }
.chapter > * { min-width: 0; }
.chapter-head { grid-area: head; align-self: end; } .chapter-text { grid-area: text; align-self: start; } .chapter-pic { grid-area: pic; align-self: center; }
.chapter.beside { margin: 0 0 clamp(2.4rem, 5vw, 3.6rem); }
.chapter.solo, .chapter.solo.flip { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "text"; max-width: 46rem; }
.chapter-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.1; margin: 0 0 .6em; text-wrap: balance; }
.chapter-text h3 { font-size: 1.25rem; margin: 1.4rem 0 .3rem; }
.chapter-text p, .chapter-text li { font-size: 1.1rem; line-height: 1.7; color: var(--ink-2); }
.chapter-text .bigp { color: var(--ink); font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.36; margin-bottom: .7rem; }
.chapter-text ul { padding-inline-start: 1.2rem; } .chapter-text li { margin-bottom: .55rem; }
.chapter-text > :last-child { margin-bottom: 0; }
.chapter-pic, .duo figure, .wordpic, .labelfig { margin: 0; }
.chapter-text .inset { margin: 1.5rem 0 0; display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 1rem; align-items: center; }
.inset.solo { margin: 1.6rem 0 0; display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 24rem); gap: 1rem; align-items: center; } .inset.solo figcaption { margin: 0; font-size: .93rem; line-height: 1.5; color: var(--ink-3); }
.types.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.chapter-text .inset figcaption { margin: 0; font-size: .93rem; line-height: 1.5; color: var(--ink-3); }
.chapter-pic img, .duo img, .style img, .wordpic img, .inset img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); background: var(--paper-2); }
.chapter-pic figcaption, .duo figcaption { font-size: .93rem; line-height: 1.5; color: var(--ink-3); margin-top: .65rem; max-width: 34rem; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem clamp(1.2rem, 3vw, 2.4rem); }
.stylerow > .over { margin-bottom: 1rem; }
.styles, .wordpics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.wordpics { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; margin-bottom: .6rem; }
.style { min-width: 0; background: var(--paper-3); border: 1px solid var(--rule-2); outline: 1px solid var(--rule); outline-offset: -6px; padding: .85rem .85rem 1.2rem; }
.style img { border-radius: 1px; }
.style h3, .wordpic h3 { font-family: var(--display); font-size: 1.55rem; font-weight: 500; line-height: 1.15; margin: .9rem .25rem .3rem; }
.style p { font-size: .98rem; line-height: 1.55; color: var(--ink-2); margin: 0 .25rem .55rem; }
.style .try { font-size: .93rem; color: var(--ink-3); margin-bottom: 0; } .style .try b { font-weight: 500; color: var(--ink-2); }
.wordpic h3 { margin-inline: 0; color: var(--ink); }
a.wordpic { display: block; text-decoration: none; color: var(--ink); } a.wordpic:hover h3 { color: var(--wine); }
.glance > h2 { grid-column: 1 / -1; margin-bottom: 0; }
.wordpic p { font-size: .98rem; line-height: 1.5; color: var(--ink-2); margin: 0 0 .45rem; }
.wordpic .spot { color: var(--ink-3); font-size: .93rem; margin: 0; }
/* the label lesson: two specimen labels drawn in type, with numbered pins that match the list above them */
.lpin { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--wine); color: #fff; font: 500 .8rem/1 var(--sans); font-style: normal; letter-spacing: 0; flex: 0 0 auto; }
.pinlist { list-style: none; margin: 0; padding: 0; }
.pinlist li { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: .8rem; align-items: start; margin-bottom: .7rem; }
.pinlist .lpin { margin-top: .28rem; }
.labels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.2rem clamp(1.5rem, 4vw, 3.5rem); width: 100%; max-width: 52rem; margin: 0 auto; }
.labelfig { text-align: center; }
.labelfig h3 { font-family: var(--display); font-size: 1.5rem; font-weight: 500; margin: 0 0 .15rem; }
.labelfig .where { font-size: .95rem; color: var(--ink-3); margin: 0 0 1.1rem; }
.winelabel { background: var(--paper-3); color: var(--ink); border: 1px solid var(--rule-2); outline: 1px solid var(--rule); outline-offset: -9px; padding: 2.6rem 1rem 2.2rem; display: grid; gap: .7rem; justify-items: center; align-content: center; min-height: 22rem; max-width: 21rem; margin: 0 auto; box-shadow: 0 1px 0 var(--rule), 0 14px 30px -22px rgba(0, 0, 0, .35); }
.ll { position: relative; display: block; padding: 0 2.1rem; line-height: 1.15; white-space: nowrap; }
.ll .lpin { position: absolute; inset-inline-start: 0; top: 50%; transform: translateY(-50%); }
.ll.head { font-family: var(--display); font-size: clamp(1.7rem, 6.4vw, 2.1rem); font-weight: 500; }
.ll.caps { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; }
.ll.ital { font-family: var(--display); font-style: italic; font-size: 1.35rem; }
.ll.year { font-family: var(--display); font-size: 1.5rem; margin-top: .5rem; }
.ll.tiny { font-size: .6rem; letter-spacing: .12em; padding: 0; text-transform: uppercase; color: var(--ink-3); }
.ll.foot { font-size: .7rem; letter-spacing: .08em; color: var(--ink-3); margin-top: 1.1rem; padding: .7rem 0 0; border-top: 1px solid var(--rule-2); min-width: 9rem; }
.labelfig figcaption { font-size: 1rem; line-height: 1.5; color: var(--ink-2); max-width: 20rem; margin: 1.1rem auto 0; }

/* ------------------------------------------------- colour for ours, black and white for the archive */
.page img:not(.hf), .phead img:not(.hf) { filter: grayscale(1) contrast(1.06); transition: filter .35s ease; }
a:hover img:not(.hf), figure:hover img:not(.hf) { filter: none; }
.lb img { filter: none; }

/* ---- the strip of numbers under the header: real, sourced figures, each a link */
.ticker { display: flex; align-items: stretch; background: var(--char); color: #E9E6E1; border-bottom: 1px solid #000; font-family: var(--sans); font-size: .86rem; line-height: 1.2; }
.tk-label { flex: 0 0 auto; display: flex; align-items: center; padding: .55rem var(--gut) .55rem var(--gut); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: .68rem; color: #BDB7AE; border-inline-end: 1px solid rgba(255,255,255,.12); background: var(--char); position: relative; z-index: 1; }
.tk-view { flex: 1 1 auto; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 2.5rem, #000 calc(100% - 2.5rem), transparent); mask-image: linear-gradient(to right, transparent, #000 2.5rem, #000 calc(100% - 2.5rem), transparent); }
.tk-track { display: flex; width: max-content; animation: tk-run calc(var(--n) * 5.5s) linear infinite; }
.ticker:hover .tk-track, .ticker:focus-within .tk-track { animation-play-state: paused; }
.tk-item { display: flex; align-items: baseline; gap: .55rem; padding: .55rem 1.6rem .55rem 0; color: inherit; text-decoration: none; white-space: nowrap; }
.tk-item::after { content: "·"; color: #6F6A63; margin-inline-start: 1.6rem; }
.tk-item:last-child::after { content: "·"; }
.tk-k { color: #BDB7AE; } .tk-item b { font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.tk-c { font-size: .8rem; } .tk-c.up { color: #9BD3A3; } .tk-c.down { color: #E8A39A; }
.tk-item small { font-size: .78rem; color: #8F8A82; }
.tk-item:hover b, .tk-item:hover .tk-k { color: #F2C6CF; }
@keyframes tk-run { from { transform: translateX(0); } to { transform: translateX(-50%); } }
html[dir="rtl"] .tk-track { animation-name: tk-run-rtl; } @keyframes tk-run-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) { .tk-track { animation: none; width: auto; } .tk-view { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scrollbar-width: none; } .tk-track > .tk-item[aria-hidden] { display: none; } }
@media (max-width: 640px) { .ticker { font-size: .82rem; } .tk-label { padding-inline: var(--gut) .8rem; font-size: .62rem; } }

/* ---------------------------------------------------------------- footer */
.footer { background: var(--char); margin-top: 0; }
.footer-in { max-width: var(--maxw); margin: 0 auto; padding: clamp(2.5rem, 5vw, 4rem) var(--gut) 2.4rem; }
.ftop { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); gap: 2.5rem 4rem; }
.fbrand .wordmark { font-size: 1.9rem; }
.fbrand p { color: var(--ink-2); max-width: 24rem; margin: .8rem 0 1.2rem; }
.fcols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.8rem 1.5rem; }
.fcol b { display: block; font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: .6rem; }
.fcol a { display: block; padding: .22rem 0; font-size: .98rem; text-decoration: none; color: var(--ink-2); } .fcol a:hover { color: var(--wine); }
.fsub { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; max-width: 26rem; }
.fsub label { flex: 0 0 100%; font-size: .95rem; color: var(--ink-2); margin-bottom: .2rem; }
.fsub input { flex: 1 1 12rem; padding-inline: 1rem; }
.fsub #subMsg { flex: 0 0 100%; }
.flegal { border-top: 1px solid var(--rule-2); margin-top: 2.5rem; padding-top: 1.4rem; font-size: .8rem; line-height: 1.6; color: var(--ink-3); }
.flegal p { margin-bottom: .75rem; max-width: 70rem; } .flegal b { color: var(--ink-2); }
.flegal details summary { cursor: pointer; font-size: .9rem; font-weight: 500; color: var(--ink-2); margin-bottom: .8rem; }
.fbottom { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; justify-content: space-between; align-items: center; border-top: 1px solid var(--rule-2); margin-top: 1rem; padding-top: 1.2rem; font-size: .88rem; color: var(--ink-3); }
.fbottom .row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; } .fbottom a { color: var(--ink-3); }
.f-family { font-size: .9rem; color: var(--ink-3); margin-top: 1.6rem; }
.f-family a { color: var(--ink-2); }
.lb { display: none; position: fixed; inset: 0; background: rgba(20,10,13,.94); z-index: 200; place-items: center; padding: 2rem; }
.lb.open { display: grid; } .lb img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: var(--r-sm); }
.lb .cap { color: #e6dcd3; font-size: .9rem; margin-top: .8rem; max-width: 46rem; text-align: center; }
.lb .x { position: absolute; top: 1rem; inset-inline-end: 1.2rem; background: none; border: 0; color: #e6dcd3; font-size: 2rem; cursor: pointer; }
pre, code { overflow-wrap: anywhere; word-break: break-word; }
pre { max-width: 100%; white-space: pre-wrap; background: var(--paper-2); border-radius: var(--r-sm); padding: 1rem; font-size: .88rem; }

@media print { .topbar, .footer, .offcanvas, .oc-backdrop, .depth-nav, .fav { display: none !important; } body { background: #fff; color: #000; font-size: 11pt; } .depth-pane { display: block !important; } }

/* ================================================================ wide tablet and down */
@media (max-width: 1180px) {
  .mainnav > a, .ddbtn { padding: .5rem .6rem; font-size: .96rem; }
  .searchwrap { flex-basis: 10.5rem; }
  .wordmark .sub { display: none; }
  .lessons, .famous { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1040px) {
  .burger { display: inline-flex; } .mainnav { display: none; }
  .topbar-in { gap: .4rem; } .brandmark { margin-inline-end: auto; }
  .wordmark .sub { display: block; }
  .searchwrap { flex: 0 1 15rem; }
  .entityhead { grid-template-columns: minmax(0, 1fr) 16rem; } .linklist { column-count: 2; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
  .steps > li:nth-child(odd) { border-inline-start: 0; } .steps > li:nth-child(odd) .step { padding-inline-start: 0; }
  .types { grid-template-columns: repeat(5, minmax(11.5rem, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gut) * -1); padding: 0 var(--gut) 1rem; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
  .type { scroll-snap-align: start; } .types.four { grid-template-columns: repeat(4, minmax(11.5rem, 1fr)); }
  .words { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftop { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .phead.has-img .phead-in { grid-template-columns: minmax(0, 1fr); }
  .phead-img img { aspect-ratio: 16 / 9; }
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .hero-pics { padding-inline-start: 8%; max-width: 40rem; }
  .split, .band, .home-lead, .glance, .two, .regions-lead { grid-template-columns: minmax(0, 1fr); }
  .split.flip > :first-child { order: 0; }
  .chapter, .chapter.flip { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "pic" "text"; }
  .chapter-head h2 { margin-bottom: .7em; } .chapter-pic { margin-bottom: 1.1rem; }
  .wordpics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band .over { grid-column: 1; grid-row: 2; } .band .cred { grid-row: 3; margin-top: 0; }
  .entityhead { grid-template-columns: minmax(0, 1fr); } .figside { float: none; width: auto; margin: 1.2rem 0; }
  .lab-body { grid-template-columns: minmax(0, 1fr); }
  .grapes, .places, .modules, .ptiles, .tiles, .tiles.t4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lessons, .famous { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .winetiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .picnav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-card { grid-template-columns: minmax(0, 1fr); }
}

/* ================================================================= phone */
@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .page { padding-top: 1.4rem; padding-bottom: 3.5rem; }
  .topbar-in { min-height: 58px; padding-block: .4rem; }
  .wordmark { font-size: 1.4rem; } .wordmark .sub { display: none; }
  .searchwrap { position: static; flex: 0 0 auto; }
  .searchwrap svg { display: none; }
  #searchBox { display: none; position: absolute; left: var(--gut); right: var(--gut); top: calc(100% + 8px); width: auto; padding-inline-start: 1.1rem; box-shadow: var(--shadow); background: var(--paper-3); border-color: var(--rule-2); }
  .topbar.searching #searchBox { display: block; }
  .searchresults { left: var(--gut); right: var(--gut); top: calc(100% + 62px); width: auto; }
  .search-toggle { display: inline-flex !important; }
  .utils .theme-toggle, .utils #userBtn { display: none; }
  .facts .row { grid-template-columns: minmax(0, 1fr); gap: .1rem; padding: .7rem 0; }
  .linklist { column-count: 1; } .grid { gap: 1.5rem 1rem; } .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g2 { grid-template-columns: minmax(0, 1fr); }
  .card.flat { padding: .9rem 1rem; } .card h3 { font-size: 1.25rem; }
  .pull { font-size: 1.25rem; } .sechead { flex-wrap: wrap; gap: .2rem 1rem; margin-top: 2.6rem; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; } .stat { padding: .8rem .9rem; } .stat-v { font-size: 1.4rem; } .stat-strip.big .stat-v { font-size: 1.6rem; }
  .heat-full { display: none; } .heat-phone { display: block; aspect-ratio: 4/3; }
  .tablewrap { margin-inline: calc(var(--gut) * -1); border-radius: 0; border-inline: 0; }
  .tablewrap.pin table.data td.name, .tablewrap.pin table.data th.name { position: sticky; inset-inline-start: 0; background: var(--paper-3); box-shadow: 1px 0 0 var(--rule); z-index: 2; min-width: 9rem; max-width: 11.5rem; }
  .tablewrap.pin table.data th.name { background: var(--paper-2); }
  .hide-sm { display: none !important; } table.data { font-size: .92rem; width: max-content; min-width: 100%; max-width: 46rem; } table.data th, table.data td { padding: .6rem .7rem; }
  table.data td.name small { max-width: 15rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
  table.cmp th.rowlab { width: 6.5rem; } table.cmp th, table.cmp td { padding: .55rem .5rem; font-size: .9rem; }
  input, select, textarea, #searchBox, .facet select, .facet input, .lang-sel, .fsub input, .askbox textarea, .herosearch input, form.stack input, form.stack select, form.stack textarea { font-size: 16px !important; }
  .photostrip, .photostrip.s4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .photostrip figcaption { display: none; }
  figure.wide img { height: 34vh; }
  .tiles, .tiles.t4, .tiles.t2, .ptiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem .9rem; }
  .tile-over b, .ptile .ov b { font-size: 1.2rem; } .tile-over small, .ptile .ov small { display: none; }
  .modules { grid-template-columns: minmax(0, 1fr); } .card3d { height: 10rem; } .quiz-q { font-size: 1.35rem; }
  .lab .chart .tick, .lab .chart .legend, .lab .chart .mlabel { font-size: 19px; }
  .chart .axlabel { font-size: 15px; } .chart .cnote { font-size: 13.5px; } .chart .tick { font-size: 14px; } .chart .legend, .chart .mlabel { font-size: 14px; } .chart.bars .blabel { font-size: 14px; } .chart.bars .bval { font-size: 14px; }
  .fig { padding: .9rem; margin-inline: calc(var(--gut) * -.4); overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .fig > svg.chart { min-width: 34rem; }
  .tablewrap.stack table, .tablewrap.stack tbody, .tablewrap.stack tr, .tablewrap.stack td { display: block; width: 100%; }
  .tablewrap.stack thead { display: none; }
  .tablewrap.stack tr { border-bottom: 1px solid var(--rule-2); padding: .6rem var(--gut); }
  .tablewrap.stack td { border: 0; padding: .15rem 0; text-align: left; display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .6rem; white-space: normal; }
  .tablewrap.stack td::before { content: attr(data-l); font-size: .84rem; color: var(--ink-3); }
  .tablewrap.stack td.name { min-width: 0; }
  .tablewrap.stack td > * { grid-column: 2; }
  .tablewrap.stack caption { display: block; }
  .tablewrap.stack tr { display: flex; flex-direction: column; } .tablewrap.stack table.data { width: 100%; max-width: none; }
  .tablewrap.stack td.lead { display: block; order: -1; padding-bottom: .35rem; font-size: 1.05rem; } .tablewrap.stack td.lead::before { content: none; }
  .tablewrap.stack td.lead small { display: block; max-width: none; -webkit-line-clamp: 2; }
  .tablewrap.stack td.num { font-variant-numeric: tabular-nums; }
  .photostrip figure:only-child { grid-column: 1 / -1; } .photostrip figure:only-child img { aspect-ratio: 16 / 9; }
  .hbars { display: block; } .hbars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l v" "t t"; gap: .25rem .8rem; margin-bottom: .8rem; }
  .hb-l { grid-area: l; text-align: start; max-width: none; } .hb-v { grid-area: v; } .hb-t { grid-area: t; }
  .timeline li { grid-template-columns: minmax(0, 1fr); }
  .timeline b, .timeline .tl-body, .timeline .tl-src { grid-column: 1; }
  table.vgrid { min-width: 760px; } table.vgrid.one { min-width: 0; } table.vgrid thead th span { font-size: .84rem; } .vcell { font-size: .7rem; padding: .3rem .35rem; } .vcell b { display: none; } table.vgrid.one td .vcell b { display: inline; }
  .rows.rich li { grid-template-columns: 2.4rem minmax(0, 1fr) auto; } .rows.rich .spark { display: none; } .rows.rich li img, .thumb-plate { width: 2.4rem; height: 2.4rem; }
  .chips .chip { white-space: normal; text-align: start; }
  .hero h1 { font-size: clamp(2.7rem, 13vw, 3.6rem); }
  .hero .btnrow .btn { flex: 1 1 auto; justify-content: center; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps > li { border-inline-start: 0; border-top: 1px solid var(--rule-2); }
  .steps > li:first-child { border-top: 0; }
  .step, .steps > li:first-child .step { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); column-gap: .4rem; padding: 1.1rem 0; }
  .step .n { font-size: 3rem; margin: 0; grid-row: 2 / span 3; }
  .step-pic { grid-column: 1 / -1; aspect-ratio: 2 / 1; margin-bottom: .8rem; }
  .steps.pics { gap: 0; } .steps.pics > li { border-top: 0; } .steps.pics .step, .steps.pics > li:first-child .step { padding: 0 0 1.6rem; }
  .steps.pics .step:not(:has(.n)), .steps.pics > li:first-child .step:not(:has(.n)) { grid-template-columns: minmax(0, 1fr); }
  .step h3, .step p, .step .more { grid-column: 2; }
  .step p { margin: 0 0 .6rem; }
  .step:not(:has(.n)) { grid-template-columns: minmax(0, 1fr); } .step:not(:has(.n)) > * { grid-column: 1; }
  .hero-label { inset-inline-end: 0; width: 52%; padding: 1rem .8rem .9rem; } .hero-label b { font-size: 1.2rem; }
  .grapes { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
  .places { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
  .lessons, .famous { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
  .lessons.compact, .famous { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem .9rem; }
  .lessons.compact .lesson p, .famous .tile-over small { display: none; } .lessons.compact .lesson h3 { font-size: 1.2rem; }
  .words { grid-template-columns: minmax(0, 1fr); }
  .relgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; } .relgrid a { padding: .6rem .7rem; }
  /* swipe rows: on a phone, a set of cards runs sideways instead of making the page longer */
  .swipe { display: grid !important; grid-auto-flow: column; grid-auto-columns: 78%; grid-template-columns: none !important; gap: 1rem !important; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gut) * -1); padding: 0 var(--gut) 1rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .swipe::-webkit-scrollbar { display: none; }
  .swipe > * { scroll-snap-align: start; }
  .swipe.narrow { grid-auto-columns: 62%; }
  .fcols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article p, .article li { font-size: 1.06rem; }
  .winetiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem .9rem; } .winetile b { font-size: 1.12rem; }
  .zone { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name val" "bar bar" "why why"; gap: .4rem .8rem; }
  .zone.border { grid-template-columns: minmax(0, 1fr) auto; }
  .taxlines li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "what amt" "how how"; } .tl-what { grid-area: what; } .tl-amt { grid-area: amt; } .tl-how { grid-area: how; font-size: .86rem; }
  .z-val { white-space: normal; } .z-val b { font-size: .98rem; }
  .rmap, .rmap-grid .rmap:first-child { height: auto; width: 100%; flex: 1 1 100%; }
  .winelinks { grid-template-columns: minmax(0, 1fr); }
  .regioncard { grid-template-columns: minmax(0, 1fr); padding: .7rem; } .regioncard .rc-text { padding: 0 .4rem .5rem; } .regioncard b { font-size: 1.45rem; }
  h2.withpic img { width: 2.4rem; height: 2.4rem; }
  .picks.words { margin: 0; padding: 0; overflow: visible; }
  .picks:not(.round):not(.words) { display: grid; grid-auto-flow: column; grid-auto-columns: 6.6rem; grid-template-columns: none; overflow-x: auto; margin-inline: calc(var(--gut) * -1); padding: 4px var(--gut) .6rem; scrollbar-width: none; }
  .picks:not(.round):not(.words)::-webkit-scrollbar { display: none; }
  .chapter-text p, .chapter-text li { font-size: 1.06rem; }
  .duo, .labels { grid-template-columns: minmax(0, 1fr); }
  .style h3, .wordpic h3 { font-size: 1.4rem; }
  .glance { padding: 1.3rem; }
  .side { columns: 1; }
  .keyfacts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.2rem; } .keyfacts dd { font-size: 1.25rem; }
  .yearstrip { grid-template-columns: repeat(auto-fill, minmax(3.6rem, 1fr)); } .ychip { height: 2.8rem; font-size: .9rem; }
  .winelist a { flex-direction: column; gap: .15rem; } .winelist small { max-width: none; text-align: start; } .winelist b { font-size: 1.3rem; }
  .sec-head h2 { max-width: none; }
}
.search-toggle { display: none; }
@media (max-width: 380px) { .wordmark { font-size: 1.25rem; } .iconbtn { width: 2.4rem; height: 2.4rem; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------------------------------------------------------------- Learn: the economics tracks and the courses */
.el-big .over, .el-example .over, .el-lessons .over { color: var(--wine); margin-bottom: .45rem; }
.el-intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.6rem, 5vw, 4rem); align-items: start; }
.el-intro .article { margin: 0; } .el-intro .article p:first-child { margin-top: 0; }
.el-outcomes { background: var(--paper-3); border: 1px solid var(--rule); border-radius: var(--r); padding: 1.4rem 1.6rem; }
.el-outcomes h2 { font-size: 1.45rem; margin: 0 0 .8rem; }
.el-outcomes ul { margin: 0; padding: 0; list-style: none; }
.el-outcomes li { position: relative; padding-inline-start: 1.7rem; margin: .55rem 0; line-height: 1.5; color: var(--ink-2); }
.el-outcomes li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 0; color: var(--up); font-weight: 600; }
.el-chapters, .el-courses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.2rem 1.5rem; list-style: none; margin: 0; padding: 0; counter-reset: none; }
.el-card, .el-course { display: block; min-width: 0; text-decoration: none; color: var(--ink); height: 100%; }
.el-card img, .el-course img { display: block; width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--r); background: var(--paper-2); }
.el-n { display: block; font-size: .86rem; color: var(--ink-3); margin-top: .75rem; }
.el-card h3, .el-course h3 { font-family: var(--display); font-size: 1.45rem; font-weight: 500; line-height: 1.12; margin: .15rem 0 .35rem; }
.el-card p, .el-course p { font-size: .97rem; color: var(--ink-2); margin: 0; line-height: 1.5; }
.el-card:hover h3, .el-course:hover h3 { color: var(--wine); }
.el-card .read { display: none; color: var(--up); font-weight: 500; } .el-card.done .read { display: inline; }
.el-status { display: inline-block; font-size: .88rem; font-weight: 500; color: var(--ink-3); margin-top: .5rem; }
.el-course.passed .el-status, .el-status:not(:empty) { color: var(--up); }
.el-res { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 2.4rem; }
.el-res li { border-top: 1px solid var(--rule-2); padding-top: .9rem; }
.el-res a { color: var(--ink); text-decoration: none; font-size: 1.08rem; } .el-res a:hover b { color: var(--wine); }
.el-res .by, .el-links .by { display: block; font-size: .86rem; color: var(--ink-3); margin-top: .1rem; }
.el-res p { margin: .35rem 0 0; color: var(--ink-2); font-size: .97rem; line-height: 1.5; }
.el-progress { display: flex; gap: .3rem; margin-top: .9rem; max-width: 22rem; }
.el-progress i { flex: 1 1 0; height: 4px; border-radius: 2px; background: var(--rule-2); } .el-progress i.on { background: var(--wine); }
.el-big { border-inline-start: 4px solid var(--wine); background: var(--wine-soft); padding: 1.1rem 1.4rem; border-radius: 0 var(--r) var(--r) 0; margin: 0 0 clamp(2rem, 5vw, 3.5rem); }
.el-big p { font-family: var(--display); font-size: clamp(1.3rem, 2.4vw, 1.6rem); line-height: 1.3; margin: 0; color: var(--ink); }
.el-example { background: var(--paper-3); border: 1px solid var(--rule-2); outline: 1px solid var(--rule); outline-offset: -6px; padding: 1.6rem clamp(1.1rem, 3vw, 2rem); margin: 0 0 2.6rem; }
.el-example h2 { margin-top: 0 !important; }
.el-table { width: 100%; border-collapse: collapse; margin: 1.1rem 0; font-size: 1.02rem; }
.el-table th, .el-table td { padding: .6rem .2rem; border-bottom: 1px solid var(--rule); text-align: start; vertical-align: top; }
.el-table th { font-weight: 400; color: var(--ink-2); } .el-table td { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 500; padding-inline-start: 1rem; }
.el-table tr.tot th, .el-table tr.tot td { border-top: 2px solid var(--ink); border-bottom: 0; font-weight: 600; color: var(--ink); }
.el-example .res { margin-bottom: 0; }
.el-terms dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.6rem; margin: 1rem 0 2.4rem; }
.el-terms dl > div { border-top: 1px solid var(--rule-2); padding-top: .7rem; }
.el-terms dt { font-family: var(--display); font-size: 1.25rem; font-weight: 600; }
.el-terms dd { margin: .2rem 0 0; color: var(--ink-2); line-height: 1.55; }
.el-check ol { padding-inline-start: 1.3rem; margin: 1rem 0 2.4rem; }
.el-check li { margin-bottom: 1rem; } .el-check li > p { margin: 0 0 .35rem; font-weight: 500; }
.el-check details summary { cursor: pointer; color: var(--wine); font-weight: 500; font-size: .95rem; }
.el-check details p { margin: .5rem 0 0; background: var(--vine-soft); padding: .8rem 1rem; border-radius: var(--r-sm); font-size: 1.02rem; }
.el-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2rem; border-top: 1px solid var(--ink); padding-top: 1.2rem; }
.el-links h2 { font-size: 1.35rem !important; margin: 0 0 .6rem !important; }
.el-links ul { list-style: none; padding: 0; margin: 0; } .el-links li { margin: 0 0 .8rem; font-size: 1.02rem; line-height: 1.4; }
.el-finish { align-items: center; }
.el-nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.el-toc { margin: 0; padding-inline-start: 1.4rem; } .el-toc li { margin: .4rem 0; } .el-toc li[aria-current] a { font-weight: 600; color: var(--ink); text-decoration: none; }
.el-tracklinks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; } .el-tracklinks .next { margin: 0; }
.el-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; counter-reset: none; }
.el-steps a { display: block; padding: .65rem .9rem; background: var(--paper-3); border: 1px solid var(--rule); border-radius: var(--r-sm); text-decoration: none; color: var(--ink); line-height: 1.3; }
.el-steps a:hover { border-color: var(--ink); } .el-steps a span { display: block; font-size: .8rem; color: var(--ink-3); }
.el-lessons { margin-top: clamp(2.6rem, 6vw, 4.5rem); } .el-lessons .chapter { scroll-margin-top: 5.5rem; }
.el-key { background: var(--cork-soft); border-radius: var(--r); padding: .9rem 1.1rem; color: var(--ink) !important; }
.el-key b { display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--oak); margin-bottom: .2rem; }
#test { scroll-margin-top: 4.5rem; }
.ctest { max-width: 62rem; scroll-margin-top: 5rem; }
.ct-bar { display: flex; gap: .3rem; margin: 0 0 1.2rem; max-width: 30rem; }
.ct-bar i { flex: 1 1 0; height: 6px; border-radius: 3px; background: var(--rule-2); }
.ct-bar i.cur { background: var(--ink-3); } .ct-bar i.ok { background: var(--up); } .ct-bar i.no { background: var(--down); }
.ct-card { background: var(--paper-3); border: 1px solid var(--rule); border-radius: var(--r); padding: clamp(1.1rem, 3vw, 1.8rem); }
.ct-card.has-pic { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.2rem, 3vw, 2.2rem); align-items: start; }
.ct-pic { margin: 0; } .ct-pic img { display: block; width: 100%; height: auto; border-radius: var(--r); }
.ct-body .kicker { margin: 0; } .ct-body .quiz-q { margin-top: .3rem; }
.ct-letter { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; margin-inline-end: .7rem; border: 1px solid var(--rule-2); border-radius: 50%; font-size: .8rem; font-weight: 500; color: var(--ink-3); flex: 0 0 auto; }
.ctest .quiz-opt { display: flex; align-items: center; }
.ct-result { background: var(--paper-3); border: 1px solid var(--rule); border-inline-start: 5px solid var(--down); border-radius: var(--r); padding: 1.4rem 1.6rem; max-width: 40rem; }
.ct-result.pass { border-inline-start-color: var(--up); }
.ct-score { font-family: var(--display); font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.1; margin: .3rem 0 .5rem; }
.ct-score b { color: var(--wine); }
@media (max-width: 1040px) { .el-chapters, .el-courses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .el-intro, .el-res, .el-links, .el-tracklinks { grid-template-columns: minmax(0, 1fr); }
  .ct-card.has-pic { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .el-chapters, .el-courses, .el-terms dl { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
  .el-table td { white-space: normal; }
}

/* ---------------------------------------------------------------- the reader's currency (app/currency.py) */
.cur-sel { width: auto; min-width: 0; padding: .45rem .7rem; font: 400 1rem var(--sans); background: var(--paper-3); color: var(--ink); border: 1px solid var(--rule-2); border-radius: var(--r-sm); cursor: pointer; }
.cur-sel:focus { outline: none; border-color: var(--wine); }
.cur-sel.top { padding: .3rem .4rem; font-size: .86rem; font-weight: 500; background: transparent; border-color: transparent; color: var(--ink-2); margin-inline-end: .1rem; }
.cur-sel.top:hover { border-color: var(--rule-2); color: var(--ink); }
.fx-note { font-size: .82rem; color: var(--ink-3); margin: .9rem 0 0; }
@media (max-width: 640px) { .cur-sel.top { display: none; } .cur-sel { font-size: 16px; } }

/* ---------------------------------------------------------------- masthead: the homepage and the top-tab pages open on a centred title */
.masthead { text-align: center; padding: clamp(1.4rem, 3.5vw, 2.4rem) var(--gut) clamp(1rem, 2.4vw, 1.6rem); background: var(--paper); }
.mh-brand { display: inline-flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--ink); }
.mh-brand:hover { color: var(--ink); }
.mh-glass { flex: 0 0 auto; width: clamp(30px, 4vw, 44px); height: auto; }
.mh-name { font-family: var(--display); font-weight: 600; font-size: clamp(2.5rem, 6vw, 4.2rem); line-height: 1; letter-spacing: -.015em; }
.mh-tag { font-family: var(--sans); font-size: clamp(1rem, 1.7vw, 1.3rem); color: var(--ink-2); margin: .7rem auto 0; max-width: 40rem; text-wrap: balance; }
.topbar.under-mh .topbar-in { display: grid; grid-template-columns: 1fr auto 1fr; }
.topbar.under-mh .brandmark { justify-self: start; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.topbar.under-mh.mh-out .brandmark { opacity: 1; visibility: visible; }
.topbar.under-mh .mainnav { margin-inline: 0; }
.topbar.under-mh .utils { justify-self: end; }
@media (max-width: 1040px) { .topbar.under-mh .topbar-in { display: flex; } .topbar.under-mh .brandmark { margin-inline-end: auto; } }
@media print { .masthead { display: none; } }
.cur-sel.top { flex: 0 0 auto; }

/* ---------------------------------------------------------------- the name: "Cork" in wine-red italic, "onomics" upright */
.bn { white-space: nowrap; }
.bn-cork { font-style: italic; color: var(--wine); padding-inline-end: .04em; }
.mh-name .bn-cork { font-weight: 600; letter-spacing: -.01em; }
.mh-name { position: relative; }
.mh-name::after { content: ""; position: absolute; left: 0; width: 1.72em; bottom: -.1em; height: .07em; min-height: 2px; border-radius: 1px; background: var(--wine); opacity: .55; }
.mh-brand .cork { transform: translateY(-.15rem); transition: transform .35s ease; }
.mh-brand:hover .cork { transform: translateY(-.55rem) rotate(-6deg); }
@media (prefers-reduced-motion: reduce) { .mh-brand:hover .cork { transform: translateY(-.15rem); } }

/* ---------------------------------------------------------------- vintage finder: the search box */
.finder-search { display: flex; gap: .5rem; margin: 0 0 1.6rem; max-width: 44rem; }
.finder-search input { flex: 1 1 auto; min-width: 0; padding: .8rem 1rem; font: 400 1.05rem var(--sans); background: var(--paper-3); color: var(--ink); border: 1px solid var(--rule-2); border-radius: var(--r-sm); }
.finder-search input:focus { outline: none; border-color: var(--wine); }
.finder-search .btn { flex: 0 0 auto; }
@media (max-width: 640px) { .finder-search input { font-size: 16px; } }
