/* lexicon — 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;--wine:#8a4a56}
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:11px;line-height:1.45}
.page{width:816px;min-height:1056px;margin:18px auto;background:var(--paper);padding:36px 52px 24px;
  box-shadow:0 10px 40px rgba(0,0,0,.25);display:flex;flex-direction:column}
.kicker{font-size:9px;letter-spacing:.32em;text-transform:uppercase;color:var(--mute)}
h1{font-family:'Archivo Black',sans-serif;font-weight:400;font-size:34px;letter-spacing:.03em;
  text-transform:uppercase;color:var(--rose);-webkit-text-stroke:1.8px var(--ink);paint-order:stroke fill;
  line-height:1.05;margin:3px 0 1px}
.sub{font-size:10px;letter-spacing:.22em;text-transform:uppercase;color:var(--mute);margin-bottom:7px}
.lede{font-size:10.3px;line-height:1.55;color:#453f30;max-width:72ch}
.sec{font-size:8.5px;font-weight:700;letter-spacing:.2em;text-transform:uppercase;color:var(--mute);
  border-top:1px solid var(--ink);padding-top:4px;margin:8px 0 4px}
.lex{border:1.5px solid var(--ink);display:grid;grid-template-columns:76px 1fr 1fr 1fr}
.lex>div{border-right:1px solid #d8d0ba;border-bottom:1px solid #d8d0ba;padding:3px 7px;font-size:9px;
  line-height:1.4;color:#454032}
.lex>div:nth-child(4n){border-right:none}
.lex .hd{background:#efe9d8;font-size:8.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  color:#55503f;display:flex;flex-direction:column;justify-content:center}
.lex .hd s{text-decoration:none;font-weight:400;font-size:7px;letter-spacing:.03em;text-transform:none;color:#6d6650}
.lex .fam{background:#efe9d8;font-size:8.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  color:#55503f;display:flex;align-items:center}
.lex .dim{color:#6d6650;font-style:italic}
.lex .cl{display:inline-block;font-size:6.5px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;background:var(--wine);color:#fdf9ef;padding:1px 4px;margin-right:2px;vertical-align:.5px}
.gr{display:flex;gap:12px}
.gr>div{flex:1;border:1px solid #d8d0ba;padding:6px 9px 5px}
.gr .sw{height:7px;margin:-7px -9px 6px;border-bottom:1px solid rgba(0,0,0,.15)}
.gr b{font-size:11.5px;display:block}
.gr i{font-style:normal;display:block;font-size:8px;letter-spacing:.14em;text-transform:uppercase;color:var(--wine);margin:1px 0 3px}
.gr p{font-size:9.2px;color:#55503f;line-height:1.5}
.gr p b{display:inline;font-size:9.2px;font-weight:650;color:var(--ink)}
.tip{font-size:9.5px;color:#55503f;line-height:1.55;margin-top:5px}
.tip b{font-weight:650}
.imprint{font-size:7.5px;color:var(--mute);line-height:1.55;margin-top:auto;border-top:1px solid #d8d0ba;padding-top:6px}
.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}
/* SHEET:SCREEN */
/* ── SCREEN LAYER — generated by build/convert_sheets.py ───────────────────────
   Everything above describes the Letter artefact and is untouched; printing uses
   it alone. This block applies on screen only, and turns the sheet into a page.
   ------------------------------------------------------------------------- */
@media screen{
  body{background:var(--paper);margin:0}

  /* the sheet stops pretending to be paper on a desk */
  .sheetwrap{max-width:68rem;margin:0 auto;padding:0 8px 40px;overflow-x:auto;
    -webkit-overflow-scrolling:touch}
  /* CENTRED, AND WIDER THAN THE PAPER.
     816px is 8.5in — the Letter page — and `margin:0` was right for paper, which
     has no viewport to be centred in. On screen it meant the sheet hugged the
     left of its own centred .sheetwrap and left ~360px of empty paper down the
     right at 1280. guide.html, rebuilt by hand, was centred; the six were not,
     and the two sat 99px apart on the same screen.

     The old screen layer did re-centre them — but only inside
     @media (max-width:1060px), so the fix applied to phones and tablets and
     stopped exactly where a desk begins.

     Width is the other half. At a fixed 816 the page ignored every pixel beyond
     it: measured identical at 1280 and at 1440, with a copy column of 318px
     carrying 39 characters a line. Comfortable reading is 45-75. 62rem (992px)
     with the row rebalanced below puts it near 56, and the same words in a wider
     column cost noticeably less height. .sheetwrap is 68rem, so it still fits.

     Side padding is 16px, not the print layout's 30: guide.html uses 16 and the
     two pages have to share a left edge, which is the whole point. */
  .page{width:100%;max-width:62rem;min-height:0;margin:0 auto;padding:26px 16px 22px;
    box-shadow:none;background:none}

  /* ── THE TYPE SCALE, generated per sheet ────────────────────────────────────
     Replaces the zoom ladder. zoom magnified the paper design — type, spacing and
     boxes together — which made the sheets legible without making them pages, and
     produced a title that grew as the screen shrank (45.6px phone, 40.1px tablet).
     Every size below is the paper size translated for a screen: the body lands on
     16px, which is guide.html's, and the title adopts guide.html's exact fluid
     rule. See screen_size() for why the smallest three sizes collapse. */
  body{font-size:16.0px}
  .kicker{font-size:13.1px}
  h1{font-size:clamp(28px,5.2vw,46px)}
  .sub{font-size:14.5px}
  .lede{font-size:15.0px}
  .sec{font-size:12.4px}
  .lex>div{font-size:13.1px}
  .lex .hd{font-size:12.4px}
  .lex .hd s{font-size:12.0px}
  .lex .fam{font-size:12.4px}
  .lex .cl{font-size:12.0px}
  .gr b{font-size:16.7px}
  .gr i{font-size:12.0px}
  .gr p{font-size:13.4px}
  .gr p b{font-size:13.4px}
  .tip{font-size:13.8px}

  /* The foot print bar belongs to the narrow layout only; on a wide screen the
     masthead button is still there. This must sit ABOVE the narrow block: both
     rules live inside @media screen at equal specificity, so source order decides,
     and when it sat below the narrow block it won and the phone lost its print
     button altogether. */
  .sheetfoot{display:none}

  /* ── NARROW: the sheet stops being a sheet ──────────────────────────────────
     Until now this block ended above, and `.page` kept `width:816px` at every
     size. zoom stepped down to 1 but zoom never changed the BOX, so on a phone
     the page simply hung 816px wide inside a scrolling wrapper and the reader
     had to drag sideways to finish a sentence. guide.html had been rebuilt
     properly and went fluid; these six had not, so six of the seven reference
     pages were unusable on a phone while the seventh was fine.

     The original note here argued that horizontal scrolling beat "crushing a
     dosage scale into unreadability". Measured at a 392px viewport, that was
     wrong: with the page fluid, five of the six sheets reflow with NOTHING
     overflowing, and the sixth (label) needed only its bottle-and-legend row to
     stack. The interiors adapt; it was the 816px box that never could.

     The two-column rows stack rather than squeezing into ~170px columns, and the
     12px paper body lifts to 15px, which the px-pinned children tolerate because
     almost none of them pin their own size. */
  @media (max-width:1060px){
    .sheetwrap{overflow-x:visible;padding:0 0 40px}
    /* A little air under the chrome. With the masthead gone and the body's own
       top padding zeroed, the big title sat hard against the section bar's
       bottom rule — two heavy elements touching. James: "too tight with menu,
       needs a few px of space." 18px, not the 44 that used to push the whole
       header down the page. */
    /* Only the padding changes here now. The base rule above already centres
       and caps the page, and `width:100%` does the rest — carrying 52rem at
       this breakpoint would have snapped the page from 992px to 832px at
       exactly 1060 for no reason anyone could see. */
    .page{padding:18px 16px 0}

    /* side-by-side becomes stacked */
    .two,.spec,.laws,.gr{display:block}
    .two > * + *,.spec > * + *,.laws > * + *,.gr > * + *{margin-top:16px}
    .lblcard{flex:none;width:100%;max-width:252px;margin:0 auto}

    /* The masthead costs 123px before the title on a phone: a 33px eyebrow that
       repeats what the section bar directly above it already says, and a 44px
       print button. It goes; terroir's title moves from 227px (34% of the
       screen) to roughly 100px.

       The foot used to bring the download back, because the masthead held the
       only copy of it. It no longer does — the rebuilt headline carries the
       download in the page flow under the lede — so restoring it at the foot
       put the same link on a phone twice, top and bottom, and on a phone only.
       The sheetfoot stays hidden at every width. */
    .sheethead{display:none}

    /* Small flex rows of boxes wrap instead of hanging off the edge. Measured at
       320px: terroir's .stat row of metric boxes totalled 328px and was the only
       thing still overflowing on any of the seven pages. Wrapping costs nothing
       when they already fit. */
    .stat,.glasses,.angle,.code,.scale,.big,.laws{flex-wrap:wrap}
  }


  /* ══ THE MOCKUP TEMPLATE ═══════════════════════════════════════════════════
     Shared by all six sheets, because all six mockups have the same bones: a
     title, a lede, the download link, an "ON THIS PAGE" strip, then numbered
     sections that alternate side to side — eyebrow, serif heading, body on one
     side and an illustration on the other — divided by hairlines. */


  /* 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. */
  .otp{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}
  .otp > 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}
  .otp ul{display:flex;list-style:none;margin:0;padding:0}
  .otp 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){
    .otp ul{flex:1 1 auto}
    .otp 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. */
    .otp a{min-width:0}
  }
  .otp 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}
  .otp a:hover{color:var(--rose)}
  .otp 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. */
  .otp .otpic{width:30px;height:30px;flex:none;display:block}
  .otp 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. */
  .otp svg{width:30px;height:30px;flex:none;fill:none;stroke:currentColor;
    stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;opacity:.92}


  /* A SECTION: copy one side, illustration the other, alternating down the page. */
  /* CENTRED, not top-aligned: the shorter of the two columns hangs against the
     middle of the taller one, which is how every mockup draws these rows. */
  /* A JUMP HAS TO CLEAR THE STICKY STRIP.
     These six sheets had no scroll offset at all, so tapping an item in "On
     this page" scrolled the section to y=0 — underneath the strip pinned
     there. Measured on the live site: the section landed at 0 with its eyebrow
     at 24 and the strip's lower edge at 72, so the eyebrow and the top of the
     heading were covered. guide never had this because it carries
     `scroll-margin-top:92px`; nothing equivalent was ever written for these.

     The number has to clear the TALLER of the two strips: it measures 72px on
     a phone but 87px at 1280, where the marks and labels are bigger. 100px
     clears 87 with a little air and leaves 28px on a phone — guide's own
     rhythm is 20px of air, so this is the same idea, sized to what was
     measured rather than copied across. The inset is added for the app, where
     the strip itself now sits that far down. */
  .srow{display:flex;gap:40px;align-items:center;
    padding:30px 0;border-top:1px solid #e4ddc8;
    scroll-margin-top:calc(100px + env(safe-area-inset-top,0px))}
  .srow:first-of-type{border-top:0}
  .srow.rev{flex-direction:row-reverse}
  /* Some illustrations are panoramas — the slope cross-section is 712x132 — and
     halving the row crushes them. `wide` drops the two columns and lets the art
     run the full measure beneath its copy. */
  .srow.wide{display:block}
  /* A wide row carries the print blocks — the lexicon grid, the grape panels,
     the producer codes, the blind worksheet — and those were measured for an
     816px paper page. Let the block scroll inside its own column rather than
     push the document: lexicon was two pixels wider than a 390px phone, which
     is invisible to look at and a real horizontal scrollbar to use. */
  .srow.wide .sart{margin-top:18px;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .srow.wide .sart svg,.srow.wide .sart img{width:100%;height:auto;max-width:none}
  .scopy{flex:1 1 0;min-width:0}
  /* EQUAL COLUMNS, AND THE ART HUNG AGAINST THE MIDDLE OF THE COPY.
     flex:1.25 was a patch — the Geology cut block's leader labels were colliding
     and widening its column was the quick way out. It then taxed every other
     section on every sheet, squeezing the copy to 318px. With the page at 62rem
     the block has more room than 1.25 ever gave it, so the columns go back to
     even and the copy gets the width.

     The row centres (see .srow) rather than the art centring inside it. Hanging
     only the art was the first attempt and it was a no-op the moment the columns
     went even: at 318px of copy the plate was the SHORT one (217 against 313) and
     read as stuck to the ceiling, but at 446px the copy shortens and the plate
     grows, and the plate becomes the tall one (258 against 224). Which side is
     short varies by section, so the rule has to be on the row. It is also what
     the mockups draw — Pressing and Glassware both hang a short copy block
     against a tall illustration. */
  .sart{flex:1 1 0;min-width:0;text-align:center}
  .sart img{max-width:100%;height:auto;display:block;margin:0 auto}
  .seyebrow{font-size:12px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;
    color:var(--rose);margin:0 0 6px}
  .shead{font-family:Georgia,'Iowan Old Style','Palatino Linotype',serif;font-weight:400;
    font-size:clamp(24px,3.1vw,33px);line-height:1.2;color:var(--ink);margin:0 0 12px}
  .sbody{font-size:15px;line-height:1.65;color:#443f31;margin:0}
  .sbody + .sbody{margin-top:11px}

  /* A ROW OF SPECIMENS: plate, name, one line of description.
     EVERY RULE IS SCOPED UNDER `.specs`. `.spec` is not mine — label.html has
     used it since it was paper, for the block holding the specimen card and the
     bottle neck — so a bare `.spec img{height:118px}` reached across and shrank
     that card to a thumbnail on a sheet this file had never been asked to
     touch. Bare class names in a shared stylesheet are borrowed, not owned. */
  /* THE AROMA TABLE'S LABEL COLUMN IS ONE WIDTH, NOT THREE.
     Each row is its own flex box, and the label cell is `flex:0 0 72px` — but
     a flex item still has `min-width:auto`, so it refuses to go below its own
     content. 72px was measured for 8px paper type; at the 12px screen size
     MATURITY needs 86 and FULLNESS 85, while YOUTH fits in 72. Each row
     therefore sized its own column and the three bodies began at 233, 247 and
     246 — the rows visibly stepping right. A basis wide enough for the longest
     label, with the automatic minimum released, holds all three to one edge.
     Print keeps 72px: at 8px type the labels fit, and the sheets are measured
     around that column. */
  .nose .nh{flex:0 0 96px;min-width:0}

  .specs{display:flex;gap:20px;margin-top:4px}
  .specs .spec{flex:1 1 0;min-width:0;text-align:center;
    display:flex;flex-direction:column}
  /* A fixed plate box. The masters are not one aspect — a pile of chalk is
     squarer than a heap of marl — so sizing by width alone stepped the captions
     down the row. */
  .specs .spec img{width:auto;max-width:100%;height:118px;object-fit:contain;
    display:block;margin:0 auto 8px}
  .specs .spec b{display:block;font-size:14.5px;margin-bottom:3px}
  .specs .spec span{display:block;font-size:12.5px;line-height:1.45;color:var(--mute)}

  /* THE NUMBERED CALLOUTS on the two bottles. The disc sits just off the glass
     at the height of the thing it names, with a short leader pointing back at
     it, and the numbers key to the list in the copy column. Positions are
     fractions of the plate's height, measured off the plates themselves rather
     than guessed: the capsule, the neck band and the body label read as distinct
     bands down the centre of the image. */
  .bwrap{position:relative;display:block;margin:0}
  .bpin{position:absolute;transform:translateY(-50%);display:flex;
    align-items:center;gap:7px;pointer-events:none}
  .bpin::before{content:"";width:18px;height:1px;background:var(--ink);opacity:.5}
  .bpin i{font-style:normal;width:1.55em;height:1.55em;border-radius:50%;
    background:var(--rose);color:#fff;font-size:12.5px;font-weight:700;
    display:flex;align-items:center;justify-content:center;flex:none}

  /* A print two-column block sitting inside a rebuilt section. The sheet's own
     `.two` is a flex pair whose children were sized for a 816px paper page; in
     a 960px section it collapsed to two ~60px columns reading one word a line,
     which is what "the back label is a mess" was. */
  .srow .two{display:grid;grid-template-columns:1fr 1fr;gap:8px 30px}
  /* ...except Worth Hunting For, which is FOUR items, not a table. Two columns
     made it a grid to scan; it is a list to read, so it runs as one column,
     indented, across the whole measure. */
  #s-hunting .two{display:block}
  #s-hunting .cue{margin:0 0 14px 1.6rem}
  /* The lead-in and the first term were touching: the four entries are spaced
     14px from each other, but the block carrying them had no margin at all, so
     "Disgorgement date" began immediately under "...none is required by law."
     The gap above the first term should be larger than the gap between terms,
     not smaller. */
  #s-hunting .two{margin-top:18px}
  #s-hunting .cue b{display:inline-block;min-width:11rem}
  .srow .two > *{min-width:0}
  @media (max-width:700px){ .srow .two{grid-template-columns:1fr} }

  /* A SPECIMEN ROW INSIDE A SECTION'S ART COLUMN.
     Five plates, each with a name and a line of description, want about 525px;
     an even column gives 446 and the captions start breaking after two words.

     This is a MODIFIER on the rows that carry one, not a change to `.sart`. The
     difference matters: `.sart{flex:1.25}` was once set globally to solve one
     collision on one section of one sheet, and it then squeezed the copy column
     on every section of all six. Here the copy still lands near 48 characters a
     line, inside the 45-75 band, and no row without a specimen grid is touched. */
  /* THE NUMBERED LEGEND. The term leads its own explanation, so it is the
     larger of the two, not the smaller — see the note in build_sheet_pages
     about the inline 10px these carried from the paper layout. */
  .leg .cue b{font-size:14.5px;letter-spacing:0;text-transform:none}
  .leg .cue{align-items:baseline;margin-bottom:9px}

  /* THE SPECIMEN BOTTLES. The label text and the red numbered discs are DRAWN
     INTO the plates, generated with the words the way the mockup was made, so
     there is no overlay here — only the pair and their sizes. An earlier version
     laid HTML over blank plates, which merged the picture and the list that the
     mockup deliberately keeps on opposite sides of the row.
     flex-end: one plate is a whole bottle and the other a close view, so
     aligning their tops left them standing on two different invisible floors. */
  .btls{display:flex;gap:40px;align-items:flex-end;justify-content:center;
    flex-wrap:wrap;margin:0}
  .btl{position:relative;margin:0;width:var(--bw);max-width:100%}
  .btl > img{width:100%;height:auto;display:block}
  @media (max-width:700px){ .btls{gap:24px} .btl{--bw:280px !important} }

  /* THE BOTTLE PAIR that opens Reading the Label. Not `.spec`: that caps its
     plate at 118px tall, which is right for a heap of chalk in a row of five and
     turns a 240px bottle into a 45px thumbnail. These are the sheet's main
     image. Bottom-aligned, because two bottles standing on different invisible
     floors is the first thing the eye catches. */
  .bottles{display:flex;gap:30px;align-items:flex-end;justify-content:center}
  .bottles img{width:auto;max-width:46%;height:auto;display:block}

  /* THE PRODUCER CODES, as the mockup draws them: six columns across a desk,
     not six stacked rows. The sheet's `.code` is a two-part row — a bold
     two-letter mark and a paragraph — which stacks correctly on a phone and
     wastes the whole right half of the measure on a screen. */
  .codes{display:grid;grid-template-columns:repeat(3,1fr);gap:22px 26px;margin-top:4px}
  @media (min-width:1000px){ .codes{grid-template-columns:repeat(6,1fr)} }
  @media (max-width:620px){ .codes{grid-template-columns:repeat(2,1fr)} }
  .codes .code{display:block;min-width:0}
  .codes .code .cc{display:block;margin:0 0 4px;font-size:15px}
  .codes .code b{display:block;font-size:13.5px;line-height:1.25;margin-bottom:4px}
  .codes .code p{margin:0;font-size:12.5px;line-height:1.45;color:var(--mute)}

  /* THE FAMILY COLUMN'S GROUND, lightened to the paper.
     `.lex .fam` is tinted #efe9d8 and holds the eight family plates, which are
     flattened onto #f7f3e8 like every other illustration here — so each one sat
     in the column as a visibly lighter square. Matching the panel to the paper
     is the one-line fix; the column still reads as a column because the grid's
     rules divide it. It is the only tinted block on any of the seven sheets
     that contains an image, so this is the whole of the problem, not a sample.
     The header row keeps its tint: it carries text only. */
  .lex .fam{background:var(--paper)}

  /* DECODING THE GRAPE: three rows, grape against the descriptors that point to
     it. It was the tail of the aroma table — one `.cue` whose span held all
     three mappings separated by middots, which is a sentence pretending to be a
     table. As three rows it can be read down. */
  .dgrape{display:grid;gap:0}
  .dg-r{display:grid;grid-template-columns:9.5rem 1fr;gap:0 18px;
    padding:11px 0;border-top:1px solid #e4ddc8;align-items:baseline}
  .dg-r:first-child{border-top:0}
  .dg-r b{font-size:15px;letter-spacing:.01em}
  .dg-r span{font-size:14.5px;line-height:1.5;color:#443f31}
  @media (max-width:560px){ .dg-r{grid-template-columns:1fr;gap:3px} }

  /* 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{
  /* SHEET:PRINT */
  .sheethead,.sheetfoot{display:none}
  .sheetwrap{max-width:none;margin:0;padding:0;overflow:visible}
 .abtog{display:none} .cv-2,.cv-3{display:none!important} }



  /* A CUE ROW: swatch, name, description — all three on one baseline grid.
     It was `display:flex` with a content-width name column, so every row's
     description began at a different x — "The bead" short, "Strawberry pink"
     long — and a description that wrapped indented its second line deeper than
     its first. The swatch was `align-self:center` against a baseline row, which
     dropped the dot below the cap height of the name beside it.
     A grid fixes all three: one column for the swatch, one for the name, one
     for the text, so the descriptions line up down the page and a wrapped line
     returns to its own column. */
  /* The swatch column is a FIXED width, not `auto`. With auto, the one row
     that has no swatch ("The bead") collapsed that column to zero and its
     description started 11px left of every other — two left edges down the
     page instead of one. */
  .cue{display:grid;grid-template-columns:15px 9.5rem 1fr;gap:2px 10px;
    align-items:baseline;margin-bottom:9px}
  /* THE SWATCH IS A <span> TOO, which is why it must be named in every rule
     here that targets spans. On the phone `.cue > span{grid-column:2}` caught
     it as well as the description and moved the dot into the text column, where
     it took the first row and shunted the name down — so the dot sat on its own
     line ABOVE its own label. Measured at 430px: swatch and name both at x=38,
     the dot 18px above the name's centre.
     `align-self:center` was wrong as well. It centres against the whole row,
     and these rows run two or three lines, so the dot drifted down the taller
     ones — 11px off on a two-line row, 21px on a three-line one. It now sits on
     the FIRST line and stays there whatever the row's height. 11px -> 13px. */
  .cue > .sw{width:13px;height:13px;grid-column:1;grid-row:1;
    align-self:start;margin-top:.3em}
  .cue > b{font-size:14.5px}
  .cue > span:not(.sw){font-size:14.5px;line-height:1.5;color:#443f31}
  /* a cue with no swatch starts at the name column */
  .cue > b:first-child{grid-column:2}
  /* A CUE THAT IS JUST A PARAGRAPH GETS THE WHOLE WIDTH.
     The three columns above are for swatch / name / description rows. Some
     sections use `.cue` as a plain prose carrier instead — one bare <span>, no
     swatch, no name — and that span auto-placed into column ONE, which is the
     15px swatch column. Fieldkey's Quality Assessment paragraph was being
     wrapped inside fifteen pixels while its heading ran the full 960. The
     class is shared, so the component has to recognise the shape it is given
     rather than assume the swatch row. Higher specificity than the phone rule
     below, so it holds at every width. */
  .cue > span:not(.sw):only-child{grid-column:1 / -1}
  /* `.scale` is the same row in a different component — Palate and Structure
     use it — and it was ragged the same way: three descriptions, three left
     edges. Same grid, no swatch column. */
  .scale{display:grid;grid-template-columns:9.5rem 1fr;gap:2px 9px;
    align-items:baseline;margin-bottom:9px}
  .scale > b{font-size:14.5px}
  .scale > span{font-size:14.5px;line-height:1.5;color:#443f31}

  @media (max-width:620px){
    .cue{grid-template-columns:15px 1fr}
    .scale{grid-template-columns:1fr}
    .cue > b{grid-column:2}
    .cue > span:not(.sw){grid-column:2;grid-row:2}
  }

  /* A LADDER: one plate of N evenly spaced subjects, with a caption under each.
     The mockups draw two of these — six glasses rising from Brut Nature to Doux,
     and five rising from Simple to Outstanding — and in both the caption is the
     content. Shipped without them the plate is just "more glasses", which is
     exactly what it looked like: In the Glass already shows glasses twice above,
     so an unlabelled third row read as repetition rather than as a scale.
     The captions are a grid of N equal columns under a full-width image, so they
     line up with the subjects without anyone measuring pixels in the art. */
  .ladder{margin:0}
  .ladder img{width:100%;height:auto;display:block;margin:0}
  .lcaps{display:grid;grid-template-columns:repeat(var(--n),1fr);gap:0 6px;margin-top:4px}
  .lcap{text-align:center;min-width:0}
  .lcap b{display:block;font-size:13.5px;line-height:1.25}
  .lcap span{display:block;font-size:12px;line-height:1.35;color:var(--mute)}
  @media (max-width:560px){
    /* six columns at 390px is 58px each, which breaks every caption after one
       word. Two rows of three keep the pairing with the glass above readable. */
    .lcaps{grid-template-columns:repeat(3,1fr);gap:10px 6px}
    .ladder img{margin-bottom:2px}
  }

  /* The label specimen is a FIXED 252px artefact, not a fluid block: its line
     breaks were set at that width when it was paper. `flex:0 0 252px` held it
     there inside the old two-column print row, but the rebuilt page puts it in a
     block, where the flex basis means nothing and it stretched to the full
     measure — breaking "The Chalk Sea" across two lines with a numbered callout
     badge stranded on the second. */
  .lblcard{flex:none;width:252px;max-width:100%;margin:0 auto}

  /* A COPY-HEAVY ROW. The mirror of `.specimens`: where a section's weight is
     in a bordered text block rather than in its plate, the copy takes the larger
     share. Serving's temperature box is a two-column panel inside the copy
     column, so at an even split it ran a line or two taller than it needed to
     while the ice bucket beside it had room to spare. Copy lands near 62
     characters a line, still inside the 45-75 band. */
  /* COPY AT THE TOP. `.srow` centres by default, which is right when the two
     columns are near enough in height. Against a full-length bottle the copy is
     half the height of the plate, so centring floated the heading into the
     middle of the row with empty paper above it. */
  .srow.copytop .scopy{align-self:flex-start}

  .srow.copywide .scopy{flex:1.4 1 0}
  .srow.copywide .sart{flex:1 1 0}

  .srow.specimens .sart{flex:1.33 1 0}
  .srow.specimens .specs{margin-top:0;gap:14px}
  .srow.specimens .spec img{height:92px}

  @media (max-width:760px){
    .srow,.srow.rev{display:block;padding:24px 0}
    .srow .sart{margin-top:18px}
    .specs{flex-wrap:wrap;gap:18px 14px}
    /* SCOPED to match the base rule's specificity. `.spec` alone is (0,1,0) and
       `.specs .spec` is (0,2,0), so once the base rules were scoped this one
       stopped winning inside its own media query: five specimens kept sitting in
       one row at 60px each on a phone instead of wrapping two-up, and a gloss
       with a long word pushed the document two pixels wider than the screen. */
    /* AN ODD SPECIMEN OUT KEEPS ITS COLUMN. With `flex:1 1 40%` a row that
       holds a single wrapped item grows it to the full width, so the third of
       three — Tertiary under Primary and Secondary — sat centred at 468px while
       the two above it were 227px, its caption wrapping on a different measure.
       Fixed basis, no grow: two per row still fill the width exactly
       (227 + 14 gap + 227), and a leftover sits in the first column, aligned
       under the one above it. */
    .specs .spec{flex:0 1 calc(50% - 7px)}
  }


  /* ── THE HEADLINE: title, opening paragraph, download ──────────────────────
     The mockups put the download in the page flow under the lede, not up in a
     masthead. .sheethead is therefore suppressed on a rebuilt sheet — its print
     button is now this link, and its eyebrow repeats the section bar above it. */
  body:has(.shl) .sheethead{display:none}
  .shl{max-width:46rem;margin:2px 0 0}
  .shl-lede{font-size:17px;line-height:1.55;color:#443f31;margin:0 0 14px}
  .shl-pdf{display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:2px 0;
    color:var(--rose);text-decoration:none;font-size:15px;font-weight:500}
  .shl-pdf::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>')}
  .shl-pdf::after{content:"→";font-size:17px;line-height:1;transition:transform .15s ease}
  .shl-pdf:hover{text-decoration:underline;text-underline-offset:3px}
  .shl-pdf:hover::after{transform:translateX(3px)}

  /* The letterspaced subtitle and the statistics row are print furniture the
     mockups do not carry; the opening paragraph says what the subtitle said. */
  body:has(.shl) .page > .sub,
  body:has(.shl) .page > .stat{display:none}

  /* ── THE CUT BLOCK, with its labels in HTML over the plate ─────────────────
     The illustration carries no lettering — a generated image cannot be trusted
     to spell "limestone" — so the four bands are named here and positioned by
     percentage, which keeps them against their layer at any width. */
  .blk{position:relative;margin:0;padding-right:8.8rem}
  .blk img{width:100%;height:auto;display:block}
  .blk-l{position:absolute;right:0;width:8.2rem;transform:translateY(-50%);
    text-align:left;line-height:1.3}
  .blk-l::before{content:"";position:absolute;left:-1.05rem;top:.62em;width:.8rem;
    height:1px;background:#b9ad90}
  .blk-l b{display:block;font-size:10.5px;font-weight:700;letter-spacing:.1em;
    text-transform:uppercase;color:var(--ink)}
  .blk-l span{display:block;font-size:11.5px;line-height:1.35;color:var(--mute)}
  @media (max-width:760px){
    .blk{padding-right:0}
    .blk-l{position:static;width:auto;transform:none;display:flex;gap:10px;
      align-items:baseline;border-top:1px solid #e4ddc8;padding:7px 0}
    .blk-l::before{display:none}
    .blk-l b{flex:0 0 7.5rem}
  }

  /* ── BOXES THAT WERE SIZED AROUND SMALL TYPE ────────────────────────────────
     Six rules across the six sheets pin a height in px. Four of them hold text —
     the dosage ladder, the pressing and ageing bars — and were measured around
     7-8px paper type. At 12px they burst: on label the sweetness ladder collided
     with its own heading. Height goes auto on screen and the bar keeps its shape
     through padding instead. The other two fixed heights are colour swatches with
     no text in them, so they are left alone. Print keeps all six.

     `.dbar` IS NOT IN THIS LIST, though it was until 2026-10-29. The dosage
     ladder stopped being each sheet's own bar when it became one component, and
     this rule is only stamped into the six sheets — guide never sees it. So the
     padding it added landed on label and not on guide: a 7px band of bare paper
     between the tinted cells and the ladder's own border, top and bottom, on one
     page only. Measuring the CELLS said the two ladders were identical, because
     they were; the difference was in the box around them. The component sets its
     own padding below, and borrows nothing from the page it lands on. */
  .pressbar,.agebar{height:auto;min-height:0;padding:7px 0}

  /* THE DOSAGE LADDER SCROLLS; IT DOES NOT RESHAPE.
     Seven columns across 390px is about 50px each, so every name wrapped and the
     rows lost their baselines. The first fix here turned it into a vertical list
     on a phone — which reads, but it is a SECOND treatment of a table guide.html
     already solved, and it quietly dropped the colour ramp that carries the
     sweetness. guide keeps the bar a bar at a workable minimum width and lets it
     scroll sideways inside its own box; the same answer applies here, so the one
     ladder in this library looks and behaves the same on both pages.

     Each cell also takes its tint from guide's own ramp, pale cream through to
     deep gold, so the colour says what the words say. */

  /* 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 */

  .pressbar div,.agebar div{padding:9px 8px;line-height:1.3;text-align:center}
  /* ...except .agebar, where `height:auto` means NOTHING. Every one of its three
     segments is `position:absolute` with top:0/bottom:0, so none of them
     contributes height and the bar collapsed to its own 14px of padding while
     its labels, stretched to that height, overlapped each other inside it. Its
     partner .pressbar is flex and renders 50px, so the pair sat at 50 and 16 —
     which is the wonkiness. A min-height gives the absolute children something
     to stretch to, and 47 + the 1.5px borders lands on .pressbar's 50. */
  .agebar{min-height:47px;padding:0}

  /* THE TWO LAW BARS, stacked and labelled.
     They were a side-by-side pair, which invites a comparison that does not
     exist — one is measured in hectolitres of juice, the other in months of
     rest. And the fills were a near-white #fffdf6 against a cream page, so the
     cuvée segment glowed rather than reading as the larger share of a
     measurement. Both fills now come off the page's own palette, so the bar
     reads as one object divided rather than two different materials. */
  .laws{display:block}
  /* `.lawblk`, NOT `.law`: the sheet has used `.law` since it was paper, for the
     small dark badge that marks a step the law decides. Naming my wrapper the
     same gave every explanatory paragraph inside it a black ground and
     letter-spaced uppercase — the second time a bare class name I assumed was
     mine turned out to be borrowed. */
  .lawblk + .lawblk{margin-top:26px}
  .lawh{font-size:12px;letter-spacing:.16em;color:var(--rose);margin-bottom:7px}
  /* left, not centred: a wide row's art column is `text-align:center`, which
     is right for a plate and wrong for a paragraph of explanation. */
  .lawblk{text-align:left}
  .lawn{font-size:14.5px;line-height:1.55;color:#443f31;margin:9px 0 0;max-width:46rem}
  .pressbar .cuv{background:#efe7d2}
  .pressbar .tai{background:#d8c9a3}
  .agebar .nv{background:#efe7d2}
  .agebar .vin{background:#e2d5b4}
  .agebar .more{background:transparent}

  /* The callout circle was a fixed 12x12 box around 7.5px type. Sized in em it
     grows with whatever the type scale gives it and stays a circle. */
  .no{width:1.5em;height:1.5em;flex:none}

  /* THE ORPHANED CALLOUT NUMBER, which is what James spotted first.
     The markup is `Produit de France<i class="no">8</i>` — no whitespace — so it
     looks unbreakable, but .no is inline-flex and the line breaker treats an
     atomic inline as something it may break BEFORE. So the number fell to its own
     line, away from the phrase it annotates. The generator now wraps the last word
     and its number together; this keeps them there.
     SCREEN ONLY. The span is inert in print, so the Letter artefact's line breaks
     are exactly what they were — verified by rendering the PDFs before and after
     and diffing the extracted text.

     NAMED cs-nobr, NOT nb. The first attempt used `.nb`, which fieldkey.html
     already uses for its three `.nose .nb` description blocks. A generic utility
     name silently matched them, made whole paragraphs unbreakable, and pushed a
     1009px element past a 390px viewport. A shared stylesheet generated across six
     files written by different hands cannot afford two-letter class names. */
  .cs-nobr{white-space:nowrap}

  /* ── PHONE ──────────────────────────────────────────────────────────────────
     The zoom ladder is gone; the type scale above does this work now. What stays
     is the lexicon's aroma matrix: a four-column grid with a fixed first column,
     whose GRID ITEMS DEFAULT TO min-width:auto, so the flexible columns refuse to
     shrink below their longest word and the table pushes past the viewport. That
     was true under zoom and is still true with larger type. min-width:0 lets them
     shrink; overflow-wrap lets long varietal names break rather than setting the
     floor themselves. CSS only, so paper is untouched. */
  @media (max-width:480px){
    .lex>div{min-width:0;overflow-wrap:anywhere}
  }

  /* real chrome instead of a floating button */
  .printbar{position:static;padding:0}
  .sheethead{max-width:68rem;margin:0 auto;padding:24px 20px 10px}
  .sheethead .eyebrow{font-size:11px;letter-spacing:.28em;text-transform:uppercase;
    color:var(--mute);margin-bottom:12px}
  /* It is an <a> now, not a <button>, so it needs the underline removed and its
     colour stated — an anchor inherits neither from the button rules it replaced. */
  .sheetprint{display:inline-flex;align-items:center;min-height:44px;padding:11px 20px;
    border:1px solid var(--rose);background:var(--rose);color:var(--ink);
    border-radius:3px;font:inherit;font-family:"Inter",system-ui,sans-serif;
    font-size:13px;font-weight:600;letter-spacing:.04em;cursor:pointer;
    text-decoration:none;
    transition:background .15s ease,border-color .15s ease}
  .sheetprint:hover,.sheetprint:focus-visible{background:#fffdf6;border-color:#d8d0ba}

  /* print furniture that means nothing on a screen */
  .page > .kicker{display:none}
  /* The imprint is the Letter sheet's colophon — an epigraph plus a copyright
     line. The shell footer now carries the copyright, so on screen this read as a
     second footer stacked directly above the real one, which is exactly what
     James saw. Hidden on screen, untouched in print, where it belongs. */
  .imprint{display:none}
  .imprint{font-size:11px;line-height:1.6;margin-top:26px}
}
/* /SHEET:SCREEN */
@media print{
  /* SHEET:PRINT */
  .sheethead,.sheetfoot{display:none}
  .sheetwrap{max-width:none;margin:0;padding:0;overflow:visible}
@page{size:Letter portrait;margin:0}body{background:none}.page{margin:0;box-shadow:none}.printbar{display:none}}


/* 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}}


/* SHEET ART — generated by build/build_sheet_art.py. Screen only.
   Every rule here is inside @media screen, so the Letter artefact prints from the
   original CSS with its own drawings, exactly as it did before. */
@media screen{
  /* Terroir: the vine sits inside the lede so the text wraps it, lifted to sit
     level with the title. `.page` is a flex container, so a float on one of its
     CHILDREN is ignored — the picture has to float inside the paragraph, which is
     also why it is a span and not a figure. */
  .xvine{float:right;display:block;width:min(34%,195px);margin:-62px 0 6px 20px;
    shape-outside:border-box}
  .xvine img{display:block;width:100%;height:auto;border-radius:2px}

  /* Process: each picture inside its own numbered step. */
  .step .xstep{float:right;width:84px;margin:0 0 6px 14px}
  .step .xstep img{display:block;width:100%;height:auto}

  /* Serving: the illustration stands in front of the line drawing. The svg is
     NOT removed — print still needs it. */
  .glasses .glass svg{display:none}
  .glasses .glass img{display:block;height:96px;width:auto;margin:0 auto 4px}

  /* Lexicon: a plate in each family's own row. That first column is a fixed 76px
     at every viewport with 7px of padding either side, so 58px is the whole of
     the room there is — these are thumbnails by design, not by compromise. The
     cell is already flex; turning it on its side puts the picture over the name. */
  .lex .fam{flex-direction:column;justify-content:center;gap:2px;text-align:center;
    padding-top:6px;padding-bottom:6px}
  .lex .fam .xfam{display:block;width:58px;max-width:100%;height:auto;margin:0 auto}

  /* Reading the Label: the bottle neck beside the specimen card. `.spec` is a
     flex row of card + legend, so this is simply a third column — narrow, because
     the eight cues in `.leg` are what the section is for. Below 620px `.spec`
     becomes `display:block`, where an unpinned figure would go full width, so it
     is capped and centred the same way `.lblcard` is. */
  .spec .xneck{flex:0 0 110px;margin:0}
  .spec .xneck img{display:block;width:100%;height:auto}

  /* In the Glass: the progression under the step that says to hold it to the light.
     Capped by HEIGHT, not width. At full width it stood 360px tall and pushed the
     colour swatches — the thing the reader came to tap — off the first screen,
     which is the "burning space at the top" James has flagged twice. This is a
     three-tap parlor key; the illustration sets the scene, the swatches do the work. */
  .xcolour{margin:0 0 10px}
  .xcolour img{display:block;height:200px;width:auto;max-width:100%;margin:0 auto}
}
@media (max-width:620px){
  /* max-width, not just width:100%. Unpinned, this stretched to whatever the
     viewport gave it — 559px on a 606px window — and a 360px-wide export was
     being blown up past two device pixels per CSS pixel on exactly the screens
     that are retina. Capped at 360 the plate is served at its true resolution,
     and it is a better size on a small tablet than a full-bleed one. */
  .xvine{float:none;width:100%;max-width:360px;margin:12px auto 14px}
  .step .xstep{width:68px;margin-left:10px}
  .spec .xneck{max-width:110px;margin:0 auto}
}
@media print{
  /* belt and braces: the screen-only art never reaches paper */
  .xvine,.step .xstep,.glasses .glass img,.lex .fam .xfam,.xcolour,.xneck{display:none !important}
  .glasses .glass svg{display:block !important}
}
