/* guide — THE PRINT LAYER.
   Generated by build/split_layers.py from the page's own <style>
   blocks, concatenated in document order and otherwise untouched.
   Linked with media="print", so the browser never parses it for the
   screen: an edit here cannot move the website, and an edit to the
   page's <style> cannot move this. The @media screen blocks below
   are inert here and are kept only so the two layers stay
   line-comparable. Prove any change with:
       python3 build/check_layers.py
*/

:root{--paper:#f7f3e8;--ink:#2b2822;--mute:#6d6650;--rose:#d9705f;
  --noirs:#d4879a;--mixte:#cf9a35;--blancs:#e5ac25}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:"Inter",system-ui,sans-serif;background:#e8e2d2;color:var(--ink);font-size:12px;line-height:1.5}
.page{width:816px;min-height:1056px;margin:18px auto;background:var(--paper);padding:33px 56px 19px;
  box-shadow:0 10px 40px rgba(0,0,0,.25);display:flex;flex-direction:column}
.kicker{font-size:9px;letter-spacing:.34em;text-transform:uppercase;color:var(--mute)}
h1{font-family:'Archivo Black',sans-serif;font-weight:400;font-size:40px;letter-spacing:.03em;
  text-transform:uppercase;color:var(--rose);-webkit-text-stroke:2px var(--ink);paint-order:stroke fill;
  line-height:1.05;margin:4px 0 2px}
.region{font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:var(--mute);margin-bottom:8px}
.stats{display:flex;border-top:2px solid var(--ink);border-bottom:1px solid #d8d0ba;margin-bottom:10px}
.stat{flex:1;padding:8px 10px 7px;border-right:1px solid #e4ddc8}
.stat:last-child{border-right:none}
.stat b{display:block;font-size:16px;font-weight:700}
.stat span{font-size:8px;letter-spacing:.16em;text-transform:uppercase;color:var(--mute)}
.sec{font-size:9px;font-weight:700;letter-spacing:.22em;text-transform:uppercase;color:var(--mute);
  border-top:1px solid var(--ink);padding-top:4px;margin:7px 0 4px}
.lede,.glance-p{font-size:11px;line-height:1.5;color:#443f31}
.grapes{display:flex;gap:14px;margin-top:0}
.grape{flex:1;border:1px solid #d8d0ba;padding:7px 11px 6px}
.grape .sw{height:8px;margin:-9px -11px 7px;border-bottom:1px solid rgba(0,0,0,.15)}
.grape b{font-size:12.5px;display:block}
.grape .pct{font-size:10px;color:var(--mute);letter-spacing:.08em;margin-bottom:3px}
.grape p{font-size:10px;color:#55503f;line-height:1.42}
/* Paper keeps the character line and the note as one paragraph — the split is a
   screen device and would strand "Structure and spine" on a line of its own. */
.gdesc{font-style:normal}
.gdesc::after{content:". "}
.gdetail{display:inline}
.hgr{font-size:10.5px;color:#443f31;line-height:1.45;margin-top:4px}
.hgr b{font-weight:600;color:#2b2822}
.gc-wrap{display:flex;gap:14px}
.gc-col{flex:1}
.gc-col h4{font-size:9px;letter-spacing:.14em;text-transform:uppercase;color:#6d6650;margin-bottom:4px}
.chip{display:inline-block;font-size:10px;font-weight:600;border:1px solid #c9c2ac;background:#fffdf6;
  padding:2px 8px;margin:0 4px 4px 0}
/* Sector list. Deliberately NOT chips: a chip is a bare name, and a bare sector name
   is the hollow thing James called out — the reader needs the name to arrive with
   enough to place it. Name, published scale and grape share, then one clause of
   geography. Numbers are the Union des Maisons de Champagne's own per-sector figures,
   which is why they can appear here at all: a sector aggregate is published, whereas
   the list of villages inside each sector is not, and is what we decline to invent. */
.sct-cols{display:flex;gap:16px;margin-top:5px}
/* Slightly unequal, and the value is measured, not chosen. A flex row equalises BOX
   height, never content, so the two columns have to be balanced by width: widening one
   makes its text wrap less and shortens it. Swept 50->58 in half-point steps against
   the real text; the result plateaus in ~13px steps because text reflows a whole line
   at a time, so there is a floor to how level these can get. 52/48 hits 578 vs 572 —
   6px apart, the floor. Re-sweep after any edit to this section: the optimum moves
   with the words. (Multi-column balances perfectly and was tried; it breaks print,
   where a multicol box with auto height expands to fill its page fragment.) */
.sct-col{flex:52}
.sct-col + .sct-col{flex:48}
.sct-col h4{font-size:9px;letter-spacing:.14em;text-transform:uppercase;color:#6d6650;
  margin:0 0 3px;border-bottom:1px solid #d8d0ba;padding-bottom:2px;
  break-after:avoid;break-inside:avoid}   /* never strand a heading at a column foot */
.sct-col h4 + .sct{margin-top:0}
.sct-col h4:not(:first-child){margin-top:7px}
.sct-col > .hgr{break-inside:avoid}
.sct{font-size:9.5px;line-height:1.36;color:#55503f;margin-bottom:3.5px;break-inside:avoid}
.sct b{font-weight:600;color:#2b2822;font-size:10px}
.sct em{font-style:normal;color:#6d6650;letter-spacing:.03em;white-space:nowrap}
.matrix{display:grid;grid-template-columns:86px 1fr 1fr;}
.m3{grid-template-columns:96px 1fr 1fr 1fr}
.matrix s{text-decoration:none;font-weight:400;font-style:italic;font-size:8px;letter-spacing:.04em;text-transform:none;color:#6d6650;display:block}
.aftr{font-size:8px;font-style:italic;color:#6d6650;margin-top:3px}
.matrix-OLD{display:grid;grid-template-columns:86px 1fr 1fr;border:1.5px solid var(--ink);margin-top:2px}
.matrix>div{padding:4px 8px;border-right:1px solid #d8d0ba;border-bottom:1px solid #d8d0ba;font-size:10px;line-height:1.4}
.matrix .hd{background:#efe9d8;font-size:9px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#55503f;display:flex;align-items:center}
.matrix .rowhd{background:#efe9d8;font-size:9.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#55503f;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}
.matrix i{font-style:normal;font-weight:650}
.dosage{margin-top:4px}
.dbar{display:flex;border:1.5px solid var(--ink);height:22px}
.dbar div{flex:1;display:flex;align-items:center;justify-content:center;font-size:8px;font-weight:700;
  letter-spacing:.08em;text-transform:uppercase;border-right:1px solid rgba(43,40,34,.25)}
.dbar div:last-child{border-right:none}
.dlbl{display:flex;margin-top:3px}
.dlbl span{flex:1;text-align:center;font-size:8px;color:var(--mute)}
.narr{columns:2;column-gap:26px;font-size:9.9px;line-height:1.4;color:#3c382c;margin-top:2px}
.narr p{margin-bottom:5px;break-inside:avoid}
.narr b{font-weight:650}
.imprint{font-size:7.5px;color:var(--mute);line-height:1.5;margin-top:auto;border-top:1px solid #d8d0ba;padding-top:6px}
/* Two designed sheets rather than one page that overflows onto a second.
   .page is already a flex column, so `margin-top:auto` on the last element of each
   sheet pins the footer to the bottom edge and lets the slack fall where it belongs
   — between the footer and the content — instead of as a ragged tail. */
.folio{margin-top:auto;display:flex;justify-content:space-between;align-items:baseline;
  font-size:8px;letter-spacing:.2em;text-transform:uppercase;color:var(--mute);
  border-top:1px solid #d8d0ba;padding-top:6px}
.folio span{letter-spacing:.06em;text-transform:none}
.runhead{display:flex;justify-content:space-between;align-items:baseline;
  border-bottom:2px solid var(--ink);padding-bottom:5px;margin-bottom:9px}
.rh-l{font-size:9px;letter-spacing:.24em;text-transform:uppercase;color:var(--mute)}
.rh-r{font-family:'Archivo Black',sans-serif;font-size:13px;letter-spacing:.04em;
  text-transform:uppercase;color:var(--rose);-webkit-text-stroke:1px var(--ink);paint-order:stroke fill}
/* The qualifier that stops the Cote des Blancs column being read as a geographic claim. */
.sct.note{margin-top:5px;padding-top:5px;border-top:1px solid #e0d8c2;font-size:9px;
  font-style:italic;color:#6d6650;line-height:1.4}
/* Spoken names nested inside a counted row. They carry no figures because the source
   publishes none for them — they are not sectors in the statistical table, they are what
   the people who farm the ground call it. Indented and rule-marked so the eye reads them
   as a subdivision of the row above rather than as peers of the counted seventeen, which
   is what they are: 51 crus counted once, three names used daily. */
.sct.sub{margin-left:9px;padding-left:8px;border-left:2px solid #ddd4bc;margin-bottom:2.5px}
.printbar{position:fixed;top:10px;left:10px;z-index:1000}
.printbar button{font:inherit;font-size:13px;padding:8px 18px;background:var(--ink);color:var(--paper);border:none;cursor:pointer;letter-spacing:.1em}

/* ── SCREEN LAYER (2026-10-24) ───────────────────────────────────────────────────
   EVERYTHING ABOVE THIS LINE IS THE PRINT ARTEFACT and is not touched: a two-page
   Letter sheet at 816x1056, type at 8-12px, folios, running heads, column widths
   balanced by measurement against the real text. It is a good piece of print design.

   It was also, until now, the web page. viewport width=816, a drop shadow to look
   like paper on a desk, and a floating "Print / Save PDF" button as the only chrome.
   On a phone it was a sheet you pinched at.

   A masthead alone does not fix that — the first attempt added one and the result
   was a nice header sitting on top of a PDF, with folios and running heads still
   visible below the fold. So this block is wrapped in @media screen and rebuilds the
   page AS A WEB DOCUMENT: the paper metaphor goes, the print furniture is hidden,
   and the type is re-scaled from a 12px print body to a 17px reading body.

   Print therefore uses the original CSS alone, exactly as designed.
   ------------------------------------------------------------------------------ */
.gjump,.glance-label,.glance-q,.gcmap-wrap,.gberry,.glance-plate{display:none}
@media screen{
  /* Two objects on this page cannot shrink: .matrix.m3 and .dbar are
     1fr grids whose cells have a 176px min-content floor, so they held the
     document open to 656px at a 392px viewport and the whole page scrolled
     sideways. Capping them with max-width does nothing — the tracks still
     resolve to 672px. They get their own scroll box instead, which is the
     standard treatment for a wide table and keeps the comparison legible. */
  .xscroll{overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%}
  /* the bar and its figures are one object: same floor, one scroller */
  .xscroll .dbar,.xscroll .dlbl{min-width:50rem}   /* one floor, set below */

  body{background:var(--paper);font-size:17px;line-height:1.6}

  /* The sheet stops being a sheet. No fixed width, no Letter height, no shadow,
     no paper-on-a-desk ground behind it. */
  .page{width:100%;max-width:62rem;min-height:0;margin:0 auto;padding:0 16px;
    background:none;box-shadow:none;display:block}

  /* Print furniture: meaningless on screen. Folios number pages that no longer
     exist, running heads repeat a title the masthead already carries. */
  /* The two .page boxes are one article on screen; see the note in
     convert_guide about the strip unsticking at the Sectors section. */
  .page{display:contents}
  /* The two `.page` boxes are two PRINTED pages and one article on
     screen. The jump strip lives in the first, and a sticky element
     only sticks while its containing block is on screen — so it
     unstuck exactly where page one ends, which is where the Sectors
     section begins. The measure moves to a wrapper spanning both and
     the page boxes are dissolved. Print keeps them: this is screen. */
  .gpages{width:100%;max-width:62rem;margin:0 auto;padding:0 16px}
  .page{display:contents}
  .folio,.runhead,.page > .kicker,.page > h1,.page > .region{display:none}

  /* ── masthead ───────────────────────────────────────────── */
  .masthead{max-width:62rem;margin:0 auto;padding:18px 16px 0}
  .masthead a.back{display:inline-flex;align-items:center;min-height:44px;
    color:var(--rose);text-decoration:none;font-size:13px;font-weight:600;
    letter-spacing:.04em}
  .masthead a.back:hover{text-decoration:underline}
  .gtitle{font-family:'Archivo Black',sans-serif;font-weight:400;
    font-size:clamp(28px,5.2vw,46px);letter-spacing:.02em;text-transform:uppercase;
    color:var(--rose);-webkit-text-stroke:1.8px var(--ink);paint-order:stroke fill;
    line-height:1.04;margin:8px 0 14px}
  .gsub{font-size:1.15rem;line-height:1.55;color:#443f31;max-width:40rem;margin-bottom:12px}
  .gschool{font-size:.95rem;color:var(--mute);margin-bottom:18px}
  .gschool a{color:var(--rose)}
  /* A LINK, NOT A BUTTON. A filled rose slab competed with the title directly
     above it; the mockup makes this a quiet rose link with a document mark and an
     arrow, which is what a download off a reference page should look like. The
     icon is a data-URI SVG — inline, so the page still makes no outside request. */
  .getpdf{display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:4px 0;
    background:none;border:0;border-radius:0;color:var(--rose);text-decoration:none;
    font:inherit;font-size:15px;font-weight:500;letter-spacing:0}
  .getpdf::before{content:"";width:17px;height:20px;flex:none;
    background:no-repeat center/contain url('data:image/svg+xml;utf8,\
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 17 20" fill="none" stroke="%23d9705f" \
stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">\
<path d="M10 1H3a2 2 0 00-2 2v14a2 2 0 002 2h11a2 2 0 002-2V7z"/><path d="M10 1v6h6"/>\
<path d="M5 12h7M5 15h5"/></svg>')}
  .getpdf::after{content:"\2192";font-size:17px;line-height:1;transition:transform .15s ease}
  .getpdf:hover{text-decoration:underline;text-underline-offset:3px}
  .getpdf:hover::after{transform:translateX(3px)}




  /* ON THIS PAGE. A row, not a card: the label sits at the left and the items
     are divided by hairlines, with rules above and below.

     STICKY, which is what makes the placement work. Sitting it below the lede
     keeps it away from the section bar, but on a phone that puts it ~1000px
     down — a "quick jump" you have to scroll a long way to reach is not quick.
     Sticky resolves both: it starts far from the section bar, the bar scrolls
     away above it, and from then on it is always one tap away. The two rows are
     therefore never adjacent and never on screen together. */
  /* `top` IS THE SAFE-AREA INSET, NOT ZERO.
     The pages carry `viewport-fit=cover`, added 2026-10-28 so that
     env(safe-area-inset-*) stops computing to zero on iOS — three safe-area
     fixes in the app were silently inert without it. The side effect is that
     the page now runs edge to edge under the status bar, so `top:0` is the
     physical top of the display and this strip pins underneath the clock,
     where it cannot be seen or tapped. It is an APP-ONLY symptom: in Safari
     the address bar occupies that space, so the strip pins below it and looks
     correct, which is why the website never showed it.
     On anything without an inset — every desktop browser, every non-notched
     phone — env() resolves to 0 and this is exactly what it was. */
  .gjump{display:flex;align-items:stretch;gap:0;margin:20px 0 2px;
    background:var(--paper);position:sticky;top:env(safe-area-inset-top,0px);z-index:5;
    border-top:1px solid #e0d8c4;border-bottom:1px solid #e0d8c4;
    overflow-x:auto;-webkit-overflow-scrolling:touch}
  .gjump > h2{flex:none;align-self:center;margin:0;padding:0 16px 0 2px;
    font-size:11px;font-weight:700;letter-spacing:.2em;text-transform:uppercase;
    color:var(--rose);white-space:nowrap}
  .gjump ul{display:flex;list-style:none;margin:0;padding:0}
  .gjump li{flex:1 0 auto;border-left:1px solid #e9e1cd}
  /* EQUAL COLUMNS ON A DESK, A SCROLLING ROW ON A PHONE.
     Six items fit the measure; Lexicon has eight and Process will have nine. At
     eight the last was cut off at the right edge — the strip does scroll, but a
     clipped row on a wide screen reads as broken rather than as scrollable.

     The item width is set by its LABEL, not by `min-width`: "Secondary Aromas"
     on one line is 134px and eight of those overflow. `flex:1 1 0` makes the
     items share the measure and lets a long label wrap to two lines, which is
     what the strip's extra height is for.

     Two other answers were tried and are recorded so they are not tried again.
     `flex-wrap:wrap` cleared the clipping and looked like an accident — seven
     items on one line, the eighth alone on the next. A grid with
     `auto-fit`/`minmax` would give even columns but collapses to ONE column
     here: the ul sits inside `overflow-x:auto`, so auto-fit has no definite
     inline size to resolve against, and `flex:1` on the ul did not change that.

     Below the phone breakpoint the items keep their natural width and the strip
     scrolls — sharing 390px between nine items is not a strip any more. */
  @media (min-width:761px){
    .gjump ul{flex:1 1 auto}
    .gjump li{flex:1 1 0;min-width:0}
    /* The 88px floor below is a TOUCH target, and on a desk it is the thing that
       stops the items sharing: ten of them (Process) need 880px plus the label
       and the measure is 960, so the tenth was clipped off the right edge even
       though every item was willing to shrink. Dropped here only. */
    .gjump a{min-width:0}
  }
  .gjump a{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;
    gap:5px;min-width:88px;min-height:44px;padding:9px 10px 10px;
    text-decoration:none;color:var(--mute);font-size:12.5px;line-height:1.25;
    text-align:center}
  .gjump a:hover{color:var(--rose)}
  .gjump a[aria-current="true"]{color:var(--ink)}
  /* THE MARKS. Generated line drawings — pure outline, no wash, no shading, one
     weight — so twelve across two pages read as one family. Hand-coded SVG paths
     came first and full-colour engravings before that; a plate at 30px is mush.
     Transparent PNG with the ink baked at --mute, so a mark sits on the strip,
     the paper or a tinted panel without carrying a cream square with it. The
     price is that it no longer tints on hover, which the opacity stands in for.
     Sized here AND on the element, so the strip does not reflow as they load. */
  .gjump .otpic{width:30px;height:30px;flex:none;display:block}
  .gjump a:hover .otpic{opacity:.72}
  /* The inline-SVG rule outlives the SVGs themselves: guide.html's print layer
     and any sheet not yet rebuilt may still carry them. */
  .gjump svg{width:30px;height:30px;flex:none;fill:none;stroke:currentColor;
    stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;opacity:.92}
  /* THE THREE-WAY COPY SWITCH. Temporary, and deliberately obvious: every line
     of prose on the sheet ships in three versions — the original, a warmed
     rewrite, and one written fresh from the line's content — and a control in
     the corner swaps between them, so the comparison happens on the real page
     at real width rather than in a list of quotations. The choice is remembered
     per browser and follows the reader across the seven sheets.
     Version 1 is the original, kept byte-for-byte with its markup, so turning
     the experiment off restores the page exactly. Remove by deleting this
     block, the script that writes data-copy, and _versions() in
     build_sheet_pages.py. */
  .cv-2,.cv-3{display:none}
  html[data-copy="2"] .cv-1,html[data-copy="3"] .cv-1{display:none}
  html[data-copy="2"] .cv-2{display:inline}
  html[data-copy="3"] .cv-3{display:inline}
  .abtog{position:fixed;right:14px;bottom:14px;z-index:60;display:flex;
    align-items:center;gap:4px;background:var(--paper);border:1px solid #d8d0ba;
    border-radius:999px;padding:5px 6px 5px 12px;
    box-shadow:0 2px 10px rgba(43,40,34,.14);
    font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--mute)}
  .abtog button{font:inherit;letter-spacing:inherit;text-transform:inherit;
    border:1px solid transparent;background:none;color:var(--mute);
    border-radius:999px;padding:5px 10px;cursor:pointer;min-height:32px}
  .abtog button[aria-pressed="true"]{background:var(--rose);color:#fff;
    border-color:var(--rose)}
  @media print{ .abtog{display:none} .cv-2,.cv-3{display:none!important} }

  /* so a jumped-to heading does not land flush against the top of the viewport */
  .sec{scroll-margin-top:calc(92px + env(safe-area-inset-top,0px))}   /* clears the pinned jump strip */

  /* ── CHAMPAGNE AT A GLANCE ──────────────────────────────────────────────────
     The block the page never had. A rose section label, a serif pull-quote that
     says what the guide is for in one breath, and the page's own lede underneath
     it — the lede is more specific than the mockup's placeholder copy, so it is
     kept rather than replaced. */
  .glance-label{display:block;color:var(--rose);border-top-color:var(--rose)}
  .glance-q{display:block}
  .glance{margin:0 0 26px}
  .glance-q{font-family:Georgia,'Iowan Old Style','Palatino Linotype',serif;
    font-size:clamp(21px,3.4vw,27px);line-height:1.3;color:var(--ink);
    margin:10px 0 12px;font-weight:400}
  .glance-p{font-size:15px;line-height:1.62;color:#443f31;margin:0;max-width:40rem}

  /* ── THE SEVENTEEN GRANDS CRUS, drawn from the atlas's own coordinates ──────
     Screen only: the Letter sheet keeps its chips, so the artefact is unchanged. */
  .gcmap-wrap{display:block;margin:14px 0 22px}
  .gcmap{width:100%;height:auto;display:block;background:transparent;
    border:1px solid #e0d8c4;border-radius:3px}
  .gcm-v{font-family:"Inter",system-ui,sans-serif;font-size:13px;fill:#2b2822}
  .gcm-d{font-family:Georgia,'Iowan Old Style',serif;font-style:italic;font-size:17px;
    fill:#6d6650;letter-spacing:.04em}
  .gcm-town{font-family:"Inter",system-ui,sans-serif;font-size:12px;fill:#6d6650;
    letter-spacing:.14em;text-transform:uppercase;text-anchor:middle}
  .gcm-key{display:flex;flex-wrap:wrap;gap:6px 20px;margin-top:9px;
    font-size:12.5px;color:var(--mute)}
  .gcm-key span{display:inline-flex;align-items:center;gap:7px}
  .gcm-key i{width:11px;height:11px;border-radius:50%;border:1px solid var(--ink);flex:none}

  /* ── THE PRINCIPAL GRAPES: three up, detail on demand ───────────────────────
     The mockup shows three columns, each a plate, a name and a two-word character
     — not three stacked paragraphs. The full note is still there; it opens when
     you choose the grape, which is what James asked for. */
  .grapes{display:flex;gap:20px;align-items:flex-start}
  .grape{flex:1;text-align:center;min-width:0}
  /* A fixed plate box so the three names land on one baseline. The masters are
     not the same aspect — pinot is squarer than chardonnay — so sizing by width
     alone left the row stepped. */
  .gberry{display:block;width:auto;max-width:100%;height:150px;object-fit:contain;
    margin:0 auto 8px}
  .grape .sw{display:none}   /* screen shows the plate; paper keeps the block */
  .grape b{display:block;font-size:17px;letter-spacing:.01em}
  .gdesc{display:block;font-family:Georgia,'Iowan Old Style',serif;font-size:15px;
    font-style:italic;color:#443f31;margin:2px 0 4px}
  .grape .pct{font-size:12px;color:var(--mute);letter-spacing:.02em}
  .gdetail{text-align:left;font-size:14.5px;line-height:1.6;margin:10px 0 0}
  .glance-plate{display:none}

  /* JS collapses the detail and makes each grape a button. Without JS every note
     is simply visible, which is where this started — the enhancement can fail
     without costing a reader anything. */
  .grapes[data-js] .gdetail{display:none}
  .grapes[data-js] .grape{cursor:pointer;border:1px solid transparent;border-radius:3px;
    padding:8px 8px 10px;transition:border-color .15s ease,background .15s ease}
  /* NO BACKGROUND FILL ON HOVER. It was #fffdf6, six points lighter than the
     page, and the three plates are flattened onto the page colour — so hovering
     a card drew a pale rectangle around its grapes. The hover now moves the
     border and lifts the card instead, which reads as interactive without
     putting a second colour behind an opaque illustration. */
  .grapes[data-js] .grape:hover{border-color:var(--rose);
    box-shadow:0 1px 0 var(--rose) inset,0 -1px 0 var(--rose) inset}
  .grapes[data-js] .grape[aria-expanded="true"]{border-color:#e0d8c4;background:#fffdf6}
  .grapes[data-js] .grape[aria-expanded="true"] .gdetail{display:block}
  .grapes[data-js] .grape::after{content:"Read more";display:block;margin-top:7px;
    font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--rose)}
  .grapes[data-js] .grape[aria-expanded="true"]::after{content:"Close"}

  /* The plate the mockup floats beside the at-a-glance copy. */
  .glance{position:relative}
  @media (min-width:721px){
    .glance-plate{display:block;float:right;width:200px;margin:-6px 0 10px 26px;
      shape-outside:circle(50%)}
  }
  @media (max-width:720px){
    .grapes{display:block}
    .grape + .grape{margin-top:20px}
    .gberry{height:132px}
  }

  /* The three bunches. Drawn, not photographed — there is no image generator in
     this stack, and a bunch in the atlas's own grape hue ties this section to the
     map legend above it rather than being decoration from somewhere else. */
  @media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
  :focus-visible{outline:2px solid #8a4a56;outline-offset:2px}

  /* ── section headings become real headings ──────────────── */
  .sec{font-family:'Archivo Black',sans-serif;font-weight:400;font-size:1.05rem;
    letter-spacing:.06em;text-transform:uppercase;color:#8a4a56;
    border-top:1px solid #d8d0ba;padding-top:18px;margin:34px 0 14px}

  /* ── the numbers strip ──────────────────────────────────── */
  /* ONE ROW, ALWAYS. flex-wrap left five figures breaking 2 + 2 + 1 on a phone,
     with "8 / principal grapes" stranded alone on a third line. The mockup shows a
     single row of five divided by hairlines, so it scrolls sideways if it must
     rather than collapsing into an uneven grid. */
  .stats{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;
    border-top:2px solid var(--ink);border-bottom:1px solid #d8d0ba;margin:0 0 24px}
  .stat{flex:0 0 auto;padding:13px 16px 11px;border-right:1px solid #e4ddc8}
  /* Both lines stay on one line. At min-width:7.2rem the figure broke as
     "≈ / 34,000 / ha" down three lines and the labels wrapped under it, which read
     as a fault rather than a statistic. Sizing to content and refusing the wrap
     keeps each one a single tidy pair; the row scrolls if five will not fit. */
  .stat b{font-size:1.3rem;white-space:nowrap}
  .stat span{font-size:.7rem;letter-spacing:.14em;white-space:nowrap}

  .lede{font-size:1.05rem;line-height:1.6;color:#443f31;max-width:40rem}

  /* ── grapes: cards, not print columns ───────────────────── */
  /* The guide's original screen rules for this row lived here — a grid of cream
     cards with borders. They are gone rather than overridden: they sat AFTER the
     new three-up rules and silently won, which is why every plate was sitting on
     a pale card the page did not want. One source of truth per element. */
  .hgr{font-size:1rem;line-height:1.6;margin-top:14px}

  /* ── cru chips ──────────────────────────────────────────── */
  .gc-wrap{display:grid;gap:18px;grid-template-columns:repeat(auto-fit,minmax(16rem,1fr))}
  .gc-col h4{font-size:.75rem;letter-spacing:.16em;margin-bottom:8px}
  .chip{font-size:.92rem;padding:5px 12px;margin:0 6px 6px 0;border-radius:3px}

  /* ── the aroma matrix: a table that scrolls rather than crushes ── */
  .matrix{grid-template-columns:9rem repeat(3,minmax(11rem,1fr));
    border:1px solid var(--ink);border-radius:3px;overflow:hidden;min-width:40rem}
  .matrix-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 -16px;padding:0 16px}
  .matrix>div{padding:11px 13px;font-size:.95rem;line-height:1.5}
  .matrix .hd,.matrix .rowhd{font-size:.78rem;letter-spacing:.1em}

  /* ── dosage scale ───────────────────────────────────────── */
  .dosage{margin-top:10px;overflow-x:auto}

  /* The dosage ladder is the one table on this page a reader uses as a reference
     rather than reads once, and both its rows were still at paper scale: the band
     names 8px and the gram ranges beneath them smaller again. */
  /* THE LADDER SCROLLS, SO THE CELLS DO NOT HAVE TO SHRINK.
     Raising the type to a readable size broke it twice over: the base rule pins
     .dbar to a 22px height, which 14px text cannot sit in, and the minimum width
     was 430px shared by seven cells — about 61px each, where "Brut Nature" wants
     nearer 90. Height goes auto, and both rows get the SAME wider minimum so the
     band names and the gram ranges beneath them stay in column. It is inside
     .xscroll, so on a narrow screen it scrolls sideways rather than crushing. */
  .dbar{height:auto;min-width:50rem}
  /* justify-content centres the flex LINE; text-align centres the words inside
     it. Without the second, a band name that wraps has its first line centred
     and its second ranged left, which is what reads as crooked. */
  .dbar div{flex:1 0 7rem;font-size:14px;padding:12px 10px;line-height:1.3;
    text-align:center}
  .dlbl{min-width:50rem}
  .dlbl span{flex:1 0 7rem;font-size:13px;padding:0 10px}
  .dosage{margin-top:14px}

  /* THE SEVENTEEN GRANDS CRUS: the village list beside the map, not under it.
     The map is a drawn plate now, not the generated SVG — James supplied it —
     so it has a fixed aspect and wants half the measure rather than all of it,
     and the three district columns read better as a single column next to it. */
  .gcrus{display:flex;gap:34px;align-items:flex-start;margin:14px 0 22px}
  .gcrus-list{flex:1 1 0;min-width:0}
  .gcrus .gcmap-wrap{flex:0 1 520px;margin:0;min-width:0}
  .gcmap-img{width:100%;height:auto;display:block;border-radius:2px}
  .gcrus .gc-wrap{display:block}
  .gcrus .gc-col + .gc-col{margin-top:16px}
  @media (max-width:860px){
    .gcrus{display:block}
    .gcrus .gcmap-wrap{margin-top:18px}
    .gcrus .gc-wrap{display:grid;grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));gap:0 24px}
    .gcrus .gc-col + .gc-col{margin-top:0}
  }

  /* ── sectors: one measured print column becomes readable prose ── */
  .sct-cols{display:grid;gap:10px 26px;grid-template-columns:repeat(auto-fit,minmax(19rem,1fr))}
  .sct-col,.sct-col + .sct-col{flex:none}
  .sct-col h4{font-size:.78rem;letter-spacing:.16em;margin:34px 0 10px}
  .sct-col h4:not(:first-child){margin-top:34px}
  .sct{font-size:1rem;line-height:1.55;margin-bottom:9px}
  .sct b{font-size:1.02rem}
  .sct.note{font-size:.93rem;padding-top:9px;margin-top:10px}
  .sct.sub{margin-left:12px;padding-left:12px}

  /* ── narrative: two 9.9px print columns is not a web paragraph ── */
  .narr{columns:auto;font-size:1.02rem;line-height:1.6;color:#3c382c}
  .narr p{margin-bottom:12px}






  /* THE RAMP, pale cream through to deep gold, so the colour says what the
     words say. It lived in the six sheets' screen block, which guide.html never
     receives — and swapping guide's markup for the shared one removed the
     inline `style="background:…"` its original carried. The result was the one
     table James had always liked losing the only thing that made it legible at
     a glance. It belongs with the component. */
  .dbar > div:nth-child(1){background:#fffdf6}
  .dbar > div:nth-child(2){background:#f5efdd}
  .dbar > div:nth-child(3){background:#eee3c3}
  .dbar > div:nth-child(4){background:#e8d9a8}
  .dbar > div:nth-child(5){background:#e2cf90}
  .dbar > div:nth-child(6){background:#dcc478}
  .dbar > div:nth-child(7){background:#d4b65c}

  /* THE COMPONENT CARRIES ITS OWN STYLING. Sharing the markup was not enough:
     each page still had its own `.dbar div` rule from when it was paper, and
     they disagreed. label stacked the cell in a column with `b` and `i` rules
     of its own; guide laid it in a ROW, uppercase, letter-spaced, with no rules
     for `b` or `i` at all — so the same markup rendered as a sentence-case
     stack on one page and as an uppercase name with an italic range jammed
     beside it on the other. Every property that differed is set here, so the
     ladder looks the same wherever it is dropped. */
  .dosage,.dbar-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .dbar{min-width:50rem;height:auto}
  .dbar > div{flex:1 0 7rem;display:flex;flex-direction:column;
    align-items:center;justify-content:center;gap:3px;
    padding:11px 10px;line-height:1.3;text-align:center;
    font-size:inherit;font-weight:400;letter-spacing:0;text-transform:none;
    border-right:1px solid rgba(43,40,34,.3)}
  .dbar > div:last-child{border-right:0}
  .dbar b{font-size:14px;font-weight:700;letter-spacing:.01em;
    text-transform:none;font-style:normal}
  .dbar i{font-size:12.5px;color:#55503f;font-style:normal;
    text-transform:none;letter-spacing:0;font-weight:400}

  /* THE RAMP, pale cream through to deep gold, so the colour says what the
     words say. It lived in the six sheets' screen block, which guide.html never
     receives — and swapping guide's markup for the shared one removed the
     inline `style="background:…"` its original carried. The result was the one
     table James had always liked losing the only thing that made it legible at
     a glance. It belongs with the component. */
  .dbar > div:nth-child(1){background:#fffdf6}
  .dbar > div:nth-child(2){background:#f5efdd}
  .dbar > div:nth-child(3){background:#eee3c3}
  .dbar > div:nth-child(4){background:#e8d9a8}
  .dbar > div:nth-child(5){background:#e2cf90}
  .dbar > div:nth-child(6){background:#dcc478}
  .dbar > div:nth-child(7){background:#d4b65c}

  /* LADDER:CSS */
  /* THE COMPONENT CARRIES ITS OWN STYLING. Sharing the markup was not enough:
     each page still had its own `.dbar div` rule from when it was paper, and
     they disagreed. label stacked the cell in a column with `b` and `i` rules
     of its own; guide laid it in a ROW, uppercase, letter-spaced, with no rules
     for `b` or `i` at all — so the same markup rendered as a sentence-case
     stack on one page and as an uppercase name with an italic range jammed
     beside it on the other. Every property that differed is set here, so the
     ladder looks the same wherever it is dropped. */
  .dosage,.dbar-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .dbar{min-width:50rem;height:auto;padding:0;margin:0}
  .dbar > div{flex:1 0 7rem;display:flex;flex-direction:column;
    align-items:center;justify-content:center;gap:3px;
    padding:11px 10px;line-height:1.3;text-align:center;
    font-size:14px;font-weight:400;letter-spacing:0;text-transform:none;
    border-right:1px solid rgba(43,40,34,.3)}
  .dbar > div:last-child{border-right:0}
  .dbar b{font-size:14px;font-weight:700;letter-spacing:.01em;
    text-transform:none;font-style:normal}
  .dbar i{font-size:12.5px;color:#55503f;font-style:normal;
    text-transform:none;letter-spacing:0;font-weight:400}

  /* THE RAMP, pale cream through to deep gold, so the colour says what the
     words say. It lived in the six sheets' screen block, which guide.html never
     receives — and swapping guide's markup for the shared one removed the
     inline `style="background:…"` its original carried. The result was the one
     table James had always liked losing the only thing that made it legible at
     a glance. It belongs with the component. */
  .dbar > div:nth-child(1){background:#fffdf6}
  .dbar > div:nth-child(2){background:#f5efdd}
  .dbar > div:nth-child(3){background:#eee3c3}
  .dbar > div:nth-child(4){background:#e8d9a8}
  .dbar > div:nth-child(5){background:#e2cf90}
  .dbar > div:nth-child(6){background:#dcc478}
  .dbar > div:nth-child(7){background:#d4b65c}
  /* /LADDER:CSS */

  /* ── footer ─────────────────────────────────────────────── */
  .imprint{font-size:.8rem;line-height:1.6;margin-top:36px;padding-top:14px}
  .gfoot{max-width:52rem;margin:0 auto;padding:6px 16px 44px;font-size:.95rem;color:var(--mute)}
  .gfoot a{color:var(--rose)}

  @media (max-width:700px){
    body{font-size:16px}
    .gtitle{-webkit-text-stroke:1.4px var(--ink)}
    .stat{flex:1 1 44%}
  }
}

@media print{
  @page{size:Letter portrait;margin:0}
  body{background:none}
  /* Fixed height, not min-height: each sheet must be exactly one Letter page, so the
     break falls where it is designed to and never where the text happens to run out. */
  .page{margin:0;box-shadow:none;height:1056px;min-height:0;break-after:page}
  .page:last-of-type{break-after:auto}
  .printbar{display:none}
  /* The screen layer lives in @media screen, so nothing here needs undoing — the
     artefact prints from its original rules alone. Only the web-only chrome is
     hidden, and .matrix-wrap must not introduce a scroll box on paper. */
  .masthead,.gfoot{display:none}
  .matrix-wrap{overflow:visible;margin:0;padding:0}
}


/* The Chalk Sea shell — generated by build/build_shell.py. Do not hand-edit. */
.cs-top,.cs-foot{font-family:"Inter",system-ui,sans-serif;background:#f7f3e8;color:#2b2822}
/* THE STATUS BAR SITS ON TOP OF THIS BAR IN THE iOS APP.
   The webview runs edge to edge (capacitor.config contentInset:never), so the
   page begins at y=0 — underneath the clock and the battery. On James's iPhone
   17 Pro the clock was drawn over THE CHALK SEA, and the brand link and the
   menu button, which are the only two ways back from a sheet, sat in the strip
   iOS reserves for its own taps. The navigation was there and unreachable.
   Harmless on the web, where the inset resolves to 0. */
.cs-top{border-bottom:1px solid #d8d0ba;padding-top:env(safe-area-inset-top)}
.cs-wrap{max-width:68rem;margin:0 auto;padding:0 16px;display:flex;align-items:center;
  flex-wrap:wrap;gap:4px 18px}
/* Pages written before the shell padded their own top edge so the title would not
   sit against the viewport ceiling. The shell header now lives inside that
   padding, so it was being pushed down and a band of empty paper showed above the
   brand: 48px on privacy, 44px on sources and terms, 28px on villages, 0 on
   everything built since. The header supplies its own spacing, so the page's does
   not apply any more. This wins without !important because the shell's own
   stylesheet is injected after the page's.
   (That sentence once named the tag literally. build_crosslinks.py split the
   page on /<[^>]+>/ and counted the mention inside this CSS comment as an
   opening tag that never closed, which pinned its skip-depth and suppressed
   every cross-link below. The parser is fixed too, but do not write raw tag
   names into generated CSS. */
body{padding-top:0}
.cs-brand{display:inline-flex;align-items:center;min-height:48px;margin-right:auto;
  /* the words were the whole hit area, in a row that is mostly empty space */
  padding-right:14px;
  font-size:13px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;
  color:#2b2822;text-decoration:none;white-space:nowrap}
.cs-nav{display:flex;flex-wrap:wrap;gap:2px 26px;justify-content:flex-end}
.cs-nav a{display:inline-flex;align-items:center;min-height:44px;font-size:13px;
  font-weight:500;letter-spacing:.01em;color:#6d6650;text-decoration:none;
  border-bottom:2px solid transparent}
.cs-nav a:hover{color:#8a4a56}
.cs-nav a[aria-current]{color:#c75c4a;border-bottom-color:#c75c4a}
.cs-search{display:inline-flex;align-items:center;justify-content:center;
  width:44px;height:44px;margin-left:4px;color:#6d6650}
.cs-search svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;
  stroke-linecap:round}
.cs-search:hover{color:#8a4a56}
/* NARROW — the header stops being a desktop bar.
   On a phone the brand took line one on its own (margin-right:auto), the nav
   wrapped beneath it, and `justify-content:flex-end` right-aligned every wrapped
   line. The result was four ragged lines flush to the right edge with nothing
   lining up on the left — wonky, and inconsistent with the section bar directly
   below it, which is left-aligned and reads fine.
   The nav cannot borrow the section bar's trick of one scrolling row, because
   "Champagne Finishing School" is wide enough to push the rest off-screen. So the
   items stay visible and wrap LEFT-aligned, and the search glyph moves up beside
   the brand where a phone expects it. */
@media (max-width:760px){
  .cs-wrap{padding:0 14px;gap:0 14px}
  .cs-brand{margin-right:auto;min-height:44px}
  .cs-search{order:1;margin-left:0}
  .cs-menu{order:2;display:inline-flex}
  .cs-nav{order:3;width:100%;justify-content:flex-start;gap:0 20px;
    margin:0 0 4px;padding-top:2px}
  .cs-nav a{min-height:40px;font-size:13.5px}

  /* The chrome was taking 252px of a 667px phone — 38% of the screen before a
     word of content. Two things buy it back.

     ONE, the section bar scrolls instead of wrapping. It was always written to be
     a single row (its links carry white-space:nowrap and its wrap carries
     overflow-x:auto) but .cs-wrap's base rule sets flex-wrap:wrap and nothing
     overrode it, so it stacked three rows deep and the scrolling never engaged.
     That was a bug, not a layout choice. 121px -> 56px. */
  .cs-secnav .cs-wrap{flex-wrap:nowrap}
  .cs-secnav{position:relative}
  .cs-secnav::after{content:"";position:absolute;right:0;top:0;bottom:0;width:30px;
    background:linear-gradient(to right,rgba(255,253,246,0),#fffdf6 70%);
    pointer-events:none}

  /* TWO, the primary nav collapses behind the menu button. PROGRESSIVE
     ENHANCEMENT ON PURPOSE: the nav is visible by default and JS adds data-js to
     collapse it. This is the first script the shell has ever carried, and if it
     fails the reader gets a tall menu rather than no menu. */
  .cs-top[data-js] .cs-nav{display:none}
  .cs-top[data-js] .cs-nav[data-open]{display:flex}
}
@media (min-width:761px){ .cs-menu{display:none} }
.cs-menu{align-items:center;justify-content:center;width:44px;height:44px;
  margin-left:2px;padding:0;background:none;border:0;color:#6d6650;cursor:pointer}
.cs-menu svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;
  stroke-linecap:round}
.cs-menu:hover{color:#8a4a56}
.cs-menu:focus-visible{outline:2px solid #8a4a56;outline-offset:2px}
.cs-secnav{background:#fffdf6;border-bottom:1px solid #e4ddc8}
.cs-secnav .cs-wrap{gap:0 14px;overflow-x:auto;-webkit-overflow-scrolling:touch}
.cs-secnav a{display:inline-flex;align-items:center;min-height:40px;font-size:11.5px;
  letter-spacing:.06em;text-transform:uppercase;color:#8a8268;text-decoration:none;
  white-space:nowrap;border-bottom:2px solid transparent}
.cs-secnav a:hover{color:#8a4a56}
.cs-secnav a[aria-current]{color:#2b2822;border-bottom-color:#d9705f}
.cs-foot{border-top:1px solid #d8d0ba;margin-top:40px}
.cs-foot .cs-wrap{display:block;padding-top:18px;padding-bottom:28px}
.cs-foot h2{font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:#8a8268;
  font-weight:700;margin:0 0 8px}
.cs-foot ul{list-style:none;margin:0 0 16px;padding:0;display:flex;flex-wrap:wrap;gap:2px 18px}
.cs-foot a{display:inline-flex;align-items:center;min-height:40px;font-size:13px;
  color:#8a4a56;text-decoration:none}
.cs-foot a:hover{text-decoration:underline}
.cs-foot p{font-size:11.5px;line-height:1.6;color:#8a8268;margin:0}
/* THE IMPRINT LINE, taken from the one James circled on sources.html.
   Two things were better about the hand-written version and are kept here: the
   copyright says WHAT is claimed — "map, text & cartography" rather than a bare
   © — and the link set is complete, including corrections and support, which the
   shell footer did not carry at all.
   The reason it was better was an accident, though. Those hand-written imprints
   had drifted into six different versions: six links on sources, five on terms,
   a different five on privacy, a different five again on accessibility, and only
   TWO on report. One emitter ends that. */
/* THE SECOND FOOTER, which James caught on school.html.
   Nine pages carry their own <p class="imprint"> — a credit line that predates the
   shared footer. Six of them are Letter sheets and already hide it on screen; the
   other three (guide, school, school-week) did not, so the page ended with an
   imprint and then, immediately below it, the shell footer saying almost exactly
   the same thing. Two footers.

   It is NOT redundant markup, which is why the fix is a screen rule and not a
   deletion: every one of these pages hides `.cs-foot` in @media print, so on paper
   the imprint is the only thing carrying the copyright. Hiding it on screen and
   keeping it on paper is what the sheets were already doing — this just makes it
   true everywhere instead of in six places out of nine.

   guide.html's imprint also carries the map attributions (ODbL, Cadastre, IGN,
   Mapzen). Checked before hiding: guide.html has no map, and index.html — the page
   that does — carries the full ODbL attribution in its own Leaflet control. So
   nothing that is legally required to appear beside the data stops appearing. */
@media screen{.imprint{display:none}}
.cs-foot .cs-legal{margin-top:6px}
.cs-foot .cs-legal a{display:inline;min-height:0;font-size:11.5px;
  text-decoration:underline;text-underline-offset:2px}
.cs-foot .cs-legal a:hover{text-decoration:none}
/* The footer lists wrapped as a flex row, which on a phone produced a ragged
   pseudo-table: every row started at the left margin but the second item began
   wherever the first one happened to end — 112px, then 147px, then 156px. Nothing
   lined up vertically and it read as broken rather than as two columns.
   A grid gives real columns that align. auto-fit lets the browser decide how many
   fit, so it is one column on a small phone, two on a large one and a single row
   on the desktop, without a breakpoint for each case. A long label like
   "Champagne Finishing School" now wraps inside its own cell instead of shoving
   the next item sideways.
   The track floor is 140px with a 1fr ceiling rather than `auto`: at `auto` the
   longest label (179px) sized the whole track and only ONE column fitted a phone,
   which aligned everything into a 553px tower — taller than the ragged version it
   replaced. 1fr gives two equal columns and lets the long label wrap.
   The floor is 124px, not 140px, because at 140 the thing flipped between one and
   two columns depending on whether a scrollbar was present: two tracks plus the
   gap wanted 304px and the wrap offered 301. A three-pixel margin is not a
   layout. At 124 two columns need 266px and the narrowest phone offers ~292, so
   the result is the same everywhere. */
.cs-foot ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(124px,1fr));
  gap:0 18px}
.cs-foot li{min-width:0}
.cs-skip{position:absolute;left:-9999px;top:0;z-index:1000;background:#fffdf6;color:#2b2822;
  padding:12px 16px;border:2px solid #8a4a56;font-size:14px}
.cs-skip:focus{left:16px}
.cs-top a:focus-visible,.cs-foot a:focus-visible{outline:2px solid #8a4a56;outline-offset:2px}
@media print{.cs-top,.cs-foot,.cs-skip{display:none}}
