/* Hold a screen of space until the winery is drawn (design audit, 30 Oct 2026):
       the empty root put the footer on screen and the profile then pushed it away —
       a layout shift of 0.8 on tablet and desktop. Not only while empty: a winery that
       isn't found draws a short note, which pulled the footer back up (0.16–0.28). */
    #wy-root { min-height: 100vh; min-height: 100dvh; }
    .wy-crumb { display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-family:'JetBrains Mono','JetBrains Mono Fallback',monospace; font-size:11px; letter-spacing:0.16em; text-transform:uppercase; color:var(--muted); padding:28px var(--pad-x) 0; }
    .wy-crumb a:hover { color:var(--claret); } .wy-crumb .sep { opacity:0.4; } .wy-crumb .here { color:var(--ink); }
    .fcrumb ~ main .wy-crumb { display:none; }   /* one breadcrumb: the bar under the header carries region + winery */

    /* HERO — rich (cellar door). Copy + Visit stack in the LEFT column, image right.
       align-items:start (not center) because the left column is now tall. */
    .wy-hero { padding:40px var(--pad-x) clamp(36px,5vw,64px); display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,0.75fr); gap:clamp(36px,5vw,72px); align-items:start; }
    @media (max-width:880px){ .wy-hero{ grid-template-columns:1fr; gap:28px; } }
    .wy-hero.noimg { grid-template-columns:1fr; max-width:760px; }
    .wy-hero.basic { display:block; max-width:820px; }
    /* Image sticks while the copy scrolls past — only meaningful now the left
       column can be considerably taller than the photo. */
    @media (min-width:881px){ .wy-hero-img { position:sticky; top:96px; } }
    /* Copy measure: ~66 characters. Was a flat 600px, which at the larger body
       size ran to ~72ch — wide enough that the eye loses the line on return. The
       Visit card fills the whole column beneath it rather than matching the text
       measure, so the two blocks read as copy-then-detail, not as two columns. */
    .wy-copy { max-width:66ch; }
    .wy-copy p { font-size:17px; line-height:1.72; color:var(--ink-soft); margin-bottom:18px; text-wrap:pretty; }
    .wy-copy p:last-child { margin-bottom:0; }
    .wy-copy p:first-child { font-size:18.5px; line-height:1.66; color:var(--ink); }
    .wy-intro .wy-visit { margin-top:34px; }
    .wy-founding { display:inline-flex; align-items:center; gap:9px; font-family:'JetBrains Mono','JetBrains Mono Fallback',monospace; font-size:11px; letter-spacing:0.16em; text-transform:uppercase; color:#634A26; background:color-mix(in oklab,var(--brass),var(--bg) 78%); border:1px solid color-mix(in oklab,var(--brass),var(--bg) 52%); padding:8px 14px; border-radius:999px; margin-bottom:24px; }
    .wy-region { font-family:'JetBrains Mono','JetBrains Mono Fallback',monospace; font-size:12px; letter-spacing:0.2em; text-transform:uppercase; color:var(--brass-ink); display:flex; align-items:center; gap:11px; margin-bottom:18px; }
    .wy-region::before { content:''; width:28px; height:1px; background:var(--brass); }
    .wy-hero h1 { font-family:'Cormorant Garamond','Cormorant Fallback',serif; font-size:clamp(46px,6.5vw,86px); font-weight:400; line-height:0.98; letter-spacing:-0.015em; margin-bottom:22px; }
    .wy-hero h1 em { font-style:italic; color:var(--claret); }
    /* T168: the winery's logo, small, on white (many are dark ink, or come on a white box) */
    .wy-logo { display:inline-flex; align-items:center; height:76px; padding:10px 16px; margin-bottom:22px; background:#fff; border:1px solid var(--line); border-radius:10px; }
    .wy-logo img { display:block; height:56px; width:auto; max-width:180px; object-fit:contain; }
    .wy-lead { font-size:18px; line-height:1.65; color:var(--ink-soft); max-width:560px; }
    /* Photo is a companion to the copy, not the page. The column was free to grow
       to whatever 0.9fr of the viewport happened to be, so on a wide screen a 4:5
       image ran taller than the entire story beside it. Capped and pinned right;
       the inset rule (::after) is unchanged. */
    /* Sized by HEIGHT, not width. A width cap in px is wrong at both ends — 0.9fr
       of a 2560px viewport made a 4:5 photo taller than the whole story beside it,
       and a flat 400px cap then made it a stamp on the same screen. Height is what
       was actually too big, so bound that and let the ratio derive the width:
       roughly 60% of the fold, never shorter than 430px, never taller than 700px.
       max-width keeps it honest inside a narrow column. */
    .wy-hero-img { position:relative; aspect-ratio:4/5; height:clamp(430px,60vh,700px); width:auto; max-width:100%; justify-self:end; overflow:hidden; border:1px solid var(--line); background:#2a1019; }
    @media (max-width:880px){ .wy-hero-img { justify-self:center; } }
    .wy-hero-img picture { display:block; width:100%; height:100%; }
    .wy-hero-img img { width:100%; height:100%; object-fit:cover; display:block; }
    .wy-hero-img::after { content:''; position:absolute; inset:10px; border:1px solid rgba(255,255,255,0.25); pointer-events:none; }

    /* upgrade strip (free-tier wineries) */
    .wy-upsell { margin-top:22px; display:inline-flex; align-items:center; gap:10px; font-size:13px; color:var(--muted); }
    .wy-upsell .dot { width:6px; height:6px; border-radius:50%; background:var(--brass); }

    /* WINES */
    .wy-wines { padding:clamp(36px,5vw,64px) var(--pad-x) var(--pad-y); background:var(--bg-alt); border-top:1px solid var(--line); }
    .wy-wines.no-door { border-top:1px solid var(--line); }
    .wy-sec-head { margin-bottom:26px; }
    .wy-sec-head .label { color:var(--claret); }
    .wy-sec-head h2 { font-family:'Cormorant Garamond','Cormorant Fallback',serif; font-size:clamp(30px,4vw,48px); font-weight:400; line-height:1.05; margin-top:12px; letter-spacing:-0.01em; }
    .wy-sec-head h2 em { font-style:italic; color:var(--claret); }
    .wine-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(250px, 100%),1fr)); gap:22px; }
    .wine-card { display:flex; flex-direction:column; background:var(--card); border:1px solid var(--line); transition:transform .3s, box-shadow .3s; }
    .wine-card { cursor:pointer; }
    .wine-label { aspect-ratio:4/5; position:relative; background:linear-gradient(180deg, var(--tint,var(--claret)) 0%, color-mix(in oklab, var(--tint,var(--claret)), black 28%) 100%); padding:22px; color:rgba(255,255,255,0.95); display:flex; flex-direction:column; justify-content:space-between; overflow:hidden; }
    .wine-label::before { content:''; position:absolute; inset:12px; border:1px solid rgba(255,255,255,0.18); pointer-events:none; }
    .wine-label-meta { font-family:'JetBrains Mono','JetBrains Mono Fallback',monospace; font-size:9px; letter-spacing:0.16em; text-transform:uppercase; opacity:0.85; }
    .wine-label-name { font-family:'Cormorant Garamond','Cormorant Fallback',serif; font-size:23px; line-height:1.05; font-style:italic; font-weight:400; }
    .wine-label-winery { font-family:'JetBrains Mono','JetBrains Mono Fallback',monospace; font-size:10px; letter-spacing:0.16em; text-transform:uppercase; margin-bottom:6px; }
    .wine-label-foot { display:flex; justify-content:space-between; align-items:flex-end; font-family:'JetBrains Mono','JetBrains Mono Fallback',monospace; font-size:10px; letter-spacing:0.1em; text-transform:uppercase; opacity:0.85; }
    .wine-organic { position:absolute; bottom:14px; right:14px; width:24px; height:24px; border-radius:50%; background:rgba(255,255,255,0.92); color:var(--ink); font-family:'JetBrains Mono','JetBrains Mono Fallback',monospace; font-size:9px; font-weight:700; display:flex; align-items:center; justify-content:center; }
    .wine-award { position:absolute; top:14px; right:14px; background:rgba(255,255,255,0.92); color:var(--ink); font-family:'JetBrains Mono','JetBrains Mono Fallback',monospace; font-size:9px; letter-spacing:0.1em; text-transform:uppercase; padding:4px 8px; }
    .wine-body { padding:16px 18px 18px; display:flex; flex-direction:column; gap:10px; flex:1; }
    .wine-notes { font-size:13px; color:var(--ink-soft); line-height:1.5; flex:1; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:5; line-clamp:5; overflow:hidden; }
    .ql-modal .wine-notes { -webkit-line-clamp:unset; line-clamp:unset; display:block; overflow:visible; }
    .wine-foot { display:flex; justify-content:space-between; align-items:center; padding-top:10px; border-top:1px solid var(--line); }
    .wine-price { font-family:'JetBrains Mono','JetBrains Mono Fallback',monospace; font-size:16px; font-weight:500; }
    .wine-add { padding:9px 16px; border:1px solid var(--ink); border-radius:999px; font-size:11px; font-weight:600; letter-spacing:0.04em; transition:all .2s; }
    .wine-add:hover { background:var(--ink); color:var(--bg); }
    .wine-add.added { background:var(--claret); border-color:var(--claret); color:var(--bg); }
    .wine-add.sold-out, .wine-add:disabled { opacity:0.5; cursor:default; }
    .wy-empty { padding:40px 0; color:var(--muted); font-family:'Cormorant Garamond','Cormorant Fallback',serif; font-style:italic; font-size:20px; }

    /* STORY + VISIT — .wy-body and .wy-story are GONE (1 Sep 2026); the copy and
       the Visit card both live in the hero now. .wy-visit is kept and no longer
       sticky, because its parent (.wy-intro) scrolls with the page. */
    .wy-visit { background:var(--card); border:1px solid var(--line); padding:30px 32px; }
    /* HOURS — an even two-column list, one row per day-group. Was icon rows with a
       heading, a value and a sub-line, which made the first day-group look like the
       real opening times and the rest like footnotes. Every row now carries equal
       weight: same type, same size, same rule. */
    /* One <div> a row, so the line under it is one piece. Drawn on a row's two cells
       it stepped where their baselines differed, and lost half its length above a
       full-width line. Lining figures: tabular ones made 11am read "1 1am". */
    .wy-hours { margin:0; }
    .wy-hours > div { display:flex; justify-content:space-between; align-items:baseline; gap:2px clamp(16px,3vw,36px); padding:13px 0; border-bottom:1px solid var(--line); }
    .wy-hours > div:first-child { padding-top:0; }
    .wy-hours > div:last-child { border-bottom:none; padding-bottom:0; }
    .wy-hours dt, .wy-hours dd { margin:0; }
    .wy-hours dt { font-size:14.5px; font-weight:600; color:var(--ink); }
    .wy-hours dd { font-family:'Cormorant Garamond','Cormorant Fallback',serif; font-size:20px; line-height:1.25; color:var(--ink); text-align:right; font-variant-numeric:lining-nums; }
    .wy-hours-sub { display:block; font-family:'Manrope','Manrope Fallback',sans-serif; font-size:12.5px; color:var(--muted); margin-top:3px; }
    .wy-hours-na { color:var(--muted); font-weight:400; }
    /* A statement with no hours attached ("By appointment", "Closed public holidays",
       a venue or address): alone in its row, so it is not read as a day whose hours
       failed to load. A long web address may break anywhere rather than spill out. */
    .wy-hours-full { overflow-wrap:anywhere; }
    @media (max-width:520px){
      .wy-hours > div { flex-direction:column; align-items:flex-start; }
      .wy-hours dd { text-align:left; }
    }
    .wy-visit .vt { font-family:'JetBrains Mono','JetBrains Mono Fallback',monospace; font-size:11px; letter-spacing:0.18em; text-transform:uppercase; color:var(--brass-ink); display:flex; align-items:center; gap:10px; margin-bottom:20px; }
    .wy-visit .vt::after { content:''; flex:1; height:1px; background:var(--line); }
    .wy-visit-row { display:flex; gap:14px; padding:16px 0; border-bottom:1px solid var(--line); }
    .wy-visit-row:last-child { border-bottom:none; padding-bottom:0; }
    .wy-visit-ic { width:38px; height:38px; border-radius:10px; flex-shrink:0; background:var(--bg-alt); display:flex; align-items:center; justify-content:center; color:var(--claret); }
    .wy-visit-k { font-family:'JetBrains Mono','JetBrains Mono Fallback',monospace; font-size:9.5px; letter-spacing:0.14em; text-transform:uppercase; color:var(--muted); margin-bottom:5px; }
    .wy-visit-v { font-family:'Cormorant Garamond','Cormorant Fallback',serif; font-size:22px; line-height:1.25; color:var(--ink); }
    .wy-visit-sub { font-size:13px; color:var(--ink-soft); margin-top:3px; }
    .wy-visit-note { margin-top:22px; font-size:12.5px; line-height:1.6; color:var(--muted); padding-top:18px; border-top:1px solid var(--line); }

    .wy-cta { padding:clamp(56px,7vw,100px) var(--pad-x); text-align:center; }
    .wy-cta h2 { font-family:'Cormorant Garamond','Cormorant Fallback',serif; font-size:clamp(30px,4vw,50px); font-weight:400; line-height:1.06; margin-bottom:24px; }
    .wy-cta h2 em { font-style:italic; color:var(--claret); }
    .wy-cta-btns { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
    .wy-missing { padding:120px var(--pad-x); text-align:center; color:var(--muted); }
    .wy-missing h1 { font-family:'Cormorant Garamond','Cormorant Fallback',serif; font-size:40px; color:var(--ink); margin-bottom:12px; font-weight:500; }
