/* ══════════════════════════════════════════════════════════════════
   venn · private dining, "how many of you?" (EN /private-dining/, PT /pt/private-dining/)
   Built 10 Oct 2026 from _private-dining-prototypes/2026-10-10/refined.html (round 3, revised).
   Night look in lavender 800 (#45374B, plum, the deep tone of the site's lavender), one dark theme. Changed from deep green #2D4535 on 10 Oct 2026. Header and footer come from venn-shell.js.
   The question, counter and seats sit on the top photo, which fades into the page colour.
   On a computer the photo shows clear above the question; on a phone only the question
   and its line sit on the photo. The form photo sits beside the form on a computer and
   after it on a phone. Between the two, six dishes from this year's menus as slices (11 Oct 2026).
   Behaviour: js/private-dining-2026.js.
   ══════════════════════════════════════════════════════════════════ */
:root{
  --deep:#45374B; --fg:#F1ECE2; --strong:#F7F2E8; --muted:rgba(241,236,226,.82);
  --line:rgba(241,236,226,.24); --field:rgba(241,236,226,.06); --edge:rgba(241,236,226,.5);
  --lamp:#E9B36A; --lamp-hi:#F0C383; --warn:#F2B8A0;
  --serif:'Cormorant Garamond',Georgia,'Times New Roman',serif;
  --sans:'Inter',-apple-system,BlinkMacSystemFont,'Helvetica Neue',Arial,sans-serif;
  --gut:clamp(16px,5vw,72px);
}
*{box-sizing:border-box}
body{margin:0;background:var(--deep);color:var(--fg);font-family:var(--sans);font-weight:400;font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
/* venn-header-system.css sets overflow-x:hidden on body, which stops position:sticky; clip does the same job without that */
body{overflow-x:clip}
img{display:block;max-width:100%;height:auto}
[hidden]{display:none!important}
@media (prefers-reduced-motion:reduce){.pd *{transition:none!important;scroll-behavior:auto!important}}
.pd :where(figure){margin:0}
.pd :where(h1,h2){font-family:var(--serif);font-weight:300;line-height:1.04;margin:0;text-wrap:balance;letter-spacing:-.005em;color:var(--strong)}
.pd :where(p){margin:0}
.pd :where(a){color:inherit}
.pd :where(button,input,textarea){font:inherit;color:inherit}
.pd :focus-visible{outline:2px solid var(--lamp);outline-offset:3px}
.pd-wrap{max-width:1180px;margin:0 auto;padding-inline:var(--gut)}
.pd-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden;opacity:0}

/* ── the top: the photo, then the count on it ── */
.pd-top{position:relative;display:grid;--lift:clamp(300px,max(36vw,50vh),580px)}
.pd-top>*{grid-area:1/1}
.pd-hero{position:relative;align-self:start}
.pd-hero img{width:100%;height:calc(var(--lift) + 330px);object-fit:cover;object-position:50% 42%}
.pd-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(69,55,75,0) 0,rgba(69,55,75,.12) calc(var(--lift) - 170px),rgba(69,55,75,.84) calc(var(--lift) + 80px),#45374B calc(var(--lift) + 240px)),linear-gradient(90deg,rgba(55,44,60,.5) 0%,rgba(55,44,60,0) 50%)}
.pd-top__in{position:relative;z-index:1;width:100%;padding-top:var(--lift)}

/* ── the count ── */
.pd-count{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:clamp(28px,6vw,96px)}
.pd-count h1{font-size:clamp(2.65rem,5.6vw,4.9rem)}
.pd-sub{margin-top:14px!important;font-size:1.06rem;color:var(--muted);max-width:26em}
.pd-guests{margin-top:30px}
.pd-guests__label{display:block;font-size:.875rem;font-weight:500;letter-spacing:.02em;color:var(--fg);margin-bottom:6px}
.pd-step{display:flex;align-items:center;gap:14px}
.pd-step button{width:48px;height:48px;flex:none;border-radius:50%;border:1px solid var(--edge);background:transparent;font-size:1.4rem;line-height:1;cursor:pointer;transition:background .15s,opacity .15s}
.pd-step button:hover{background:rgba(241,236,226,.1)}
.pd-step button:disabled{opacity:.3;cursor:default}
.pd-num{width:2.3ch;padding:0 0 2px;border:0;border-bottom:1px solid var(--edge);border-radius:0;background:transparent;font-family:var(--serif)!important;font-weight:300;font-size:clamp(3.6rem,7vw,4.8rem)!important;line-height:1;text-align:center;color:var(--strong)!important;font-variant-numeric:lining-nums tabular-nums;-moz-appearance:textfield;appearance:textfield}
.pd-num:focus{outline:none;border-bottom-color:var(--lamp);box-shadow:0 2px 0 0 var(--lamp)}
.pd-num[aria-invalid="true"]{border-bottom-color:var(--warn)}
.pd-hint{margin-top:8px!important;font-size:.875rem;color:var(--muted)}
.pd-err{margin-top:8px!important;font-size:.875rem;color:var(--warn)}
.pd-answer{margin-top:26px!important;font-family:var(--serif);font-weight:300;font-size:clamp(1.55rem,2.6vw,2rem);line-height:1.25;color:var(--strong);max-width:22em;min-height:2.5em}
.pd-answer .pd-book{color:var(--lamp);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px}
.pd-whole{margin-top:10px!important;font-size:.95rem;color:var(--muted);max-width:30em}
.pd-switch{display:inline;padding:0;border:0;background:none;color:var(--lamp)!important;font-size:inherit!important;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.pd-right{padding-top:clamp(0px,1vw,12px)}
.pd-seats{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:clamp(8px,1.3vw,13px);max-width:460px}
.pd-seat{aspect-ratio:1;border-radius:50%;background:#675B69;transition:background .2s,border-color .2s}
.pd-seat--x{background:var(--deep);border:1px dashed rgba(241,236,226,.6)}
.pd-seat.on{background:var(--lamp)}
.pd-seat--x.on{border:1px solid var(--lamp)}
.pd-key{margin-top:14px!important;font-size:.875rem;color:var(--muted)}
.pd-menu{margin-top:26px!important;color:var(--fg);max-width:30em}
.pd-guide{margin-top:20px!important;padding-top:16px;border-top:1px solid var(--line);font-size:.95rem;color:var(--fg);max-width:30em}
.pd-example{margin-top:10px!important;font-size:.95rem;color:var(--fg);max-width:30em}
.pd-jump{display:inline-block;margin-top:20px;font-size:.95rem;color:var(--lamp)!important;text-decoration:none;border-bottom:1px solid currentColor;padding-bottom:2px}

/* ── the form ── */
.pd-form{margin-top:clamp(64px,9vw,130px);padding-top:28px;border-top:1px solid var(--line);display:grid;grid-template-columns:minmax(0,4fr) minmax(0,7fr);gap:24px clamp(32px,6vw,96px);scroll-margin-top:70px}
.pd-form h2{font-size:clamp(2.2rem,4vw,3.2rem)}
.pd-form__intro p{margin-top:12px!important;color:var(--muted);max-width:20em}
.pd-photo figcaption{margin-top:10px;font-size:.875rem;color:var(--muted)}
.pd-photo img{width:100%;aspect-ratio:4/5;object-fit:cover;object-position:32% 60%}
.pd-photo--beside{margin-top:30px}
.pd-photo--end{display:none}
.f{display:grid;gap:22px}
.f-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.f-field{display:grid;gap:6px;align-content:start;min-width:0}
.f-field label{font-size:.9375rem;font-weight:500;color:var(--fg)}
.f-field label small{font-weight:400;color:var(--muted);font-size:.875rem}
.f-input{width:100%;font-size:1rem;padding:13px 14px;border:1px solid var(--edge);border-radius:2px;background:var(--field);color:var(--strong);-webkit-appearance:none;appearance:none}
.f-input::placeholder{color:rgba(241,236,226,.5)}
textarea.f-input{resize:vertical;min-height:110px}
.f-input:focus{outline:none;border-color:var(--lamp);box-shadow:0 0 0 1px var(--lamp)}
.f-input[aria-invalid="true"]{border-color:var(--warn)}
.f-hint{font-size:.875rem;color:var(--muted)}
.f-err{font-size:.875rem;color:var(--warn)}
.f-arr{font-size:.875rem;color:var(--lamp)}
.f-date{min-height:50px;color-scheme:dark;cursor:pointer}
.f-date::-webkit-calendar-picker-indicator{opacity:.9;cursor:pointer;width:20px;height:20px}
.f-date:not(:valid):not(:focus){color:rgba(241,236,226,.5)}
.f-field .f-check{display:inline-flex;align-items:center;gap:10px;min-height:44px;font-size:.9375rem;font-weight:400;color:var(--fg);cursor:pointer}
.f-check input{width:20px;height:20px;margin:0;accent-color:var(--lamp);cursor:pointer}
.f-field .f-sub{font-size:.875rem;font-weight:400;color:var(--muted);margin-top:4px}
.f-arrange{border:0;margin:0;padding:0;min-width:0}
.f-arrange legend{padding:0;margin-bottom:8px;font-size:.9375rem;font-weight:500;color:var(--fg)}
.f-pills{display:flex;flex-wrap:wrap;gap:8px}
.f-pill{position:relative}
.f-pill input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
/* quiet selected state: amber border, faint fill and a filled marker, so it doesn't compete with the send button */
.f-pill span{position:relative;display:inline-flex;align-items:center;min-height:46px;padding:0 16px 0 42px;border:1px solid var(--edge);font-size:.95rem;cursor:pointer;transition:background .15s,border-color .15s}
.f-pill span::before{content:"";position:absolute;left:15px;top:50%;width:16px;height:16px;margin-top:-8px;border-radius:50%;border:1.5px solid var(--edge);box-sizing:border-box}
.f-pill input:checked + span{border-color:var(--lamp);background:rgba(233,179,106,.12);color:var(--strong)}
.f-pill input:checked + span::before{border-color:var(--lamp);background:var(--lamp);box-shadow:inset 0 0 0 3px var(--deep)}
.f-pill input:focus-visible + span{outline:2px solid var(--lamp);outline-offset:2px}
.f-send{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;margin-top:4px}
.f-btn{border:0;cursor:pointer;min-height:50px;padding:0 30px;font-size:.95rem;font-weight:500;letter-spacing:.02em;background:var(--lamp);color:#1b1a17!important;transition:background .15s}
.f-btn:hover{background:var(--lamp-hi)}
.f-btn[disabled]{opacity:.7;cursor:progress}
.f-send small{font-size:.875rem;color:var(--muted)}
.f-fail{font-size:.95rem;color:var(--warn)}
.f-done__h{font-family:var(--serif);font-weight:300;font-size:clamp(2rem,3.4vw,2.6rem);line-height:1.1;color:var(--strong)}
.f-done__p{margin-top:12px!important;font-size:1.0625rem;line-height:1.6;color:var(--fg);max-width:30em;overflow-wrap:anywhere}
.f-again{margin-top:16px;background:none;border:0;padding:0;font-size:.875rem;text-decoration:underline;cursor:pointer;color:var(--muted)!important}

/* ── six dishes from this year's menus as slices: six strips of the photos side by side; the one you point at,
   tap or tab to opens to the whole plate with its name, and the others close up. Phones: stacked bands with the
   names on them. Which one is open is set in js/private-dining-2026.js; without it the first stays open.
   Added 11 Oct 2026 (layout C), replacing the row of six tiles. Prototype: _private-dining-prototypes/2026-10-10/dish-layouts/ ── */
.pd-slices{margin-top:clamp(64px,8vw,112px)}
.pd-slices__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;height:calc(5 * 58px + 30px + 100vw - 2 * var(--gut))}
.pd-slices__item{position:relative;flex:0 0 58px;overflow:hidden;background:#3B3040;transition:flex-grow .6s cubic-bezier(.2,.7,.2,1)}
.pd-slices__item.is-on{flex-grow:1}
.pd-slices__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.pd-slices__item::after{content:"";position:absolute;inset:0;background:rgba(31,25,34,.5);transition:opacity .45s;pointer-events:none}
.pd-slices__item.is-on::after{opacity:0}
.pd-slices__btn{position:absolute;inset:0;z-index:3;width:100%;height:100%;background:none;border:0;padding:0;margin:0;cursor:pointer}
.pd-slices__btn:focus-visible{outline:2px solid var(--lamp);outline-offset:-2px}
.pd-slices__peek{position:absolute;z-index:2;left:16px;right:16px;top:50%;transform:translateY(-50%);font-family:var(--serif);font-weight:300;font-size:1.15rem;line-height:1.2;color:var(--strong);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:opacity .2s;pointer-events:none}
.pd-slices__item.is-on .pd-slices__peek{opacity:0}
.pd-slices__cap{position:absolute;z-index:2;left:0;right:0;bottom:0;display:grid;gap:3px;padding:96px 18px 16px;background:linear-gradient(180deg,rgba(31,25,34,0) 0%,rgba(31,25,34,.62) 42%,rgba(31,25,34,.92) 100%);text-shadow:0 1px 10px rgba(16,12,18,.5);opacity:0;transition:opacity .2s;pointer-events:none}
.pd-slices__item.is-on .pd-slices__cap{opacity:1;transition:opacity .35s .3s}
.pd-slices__name{display:block;font-family:var(--serif);font-weight:300;font-size:1.45rem;line-height:1.12;letter-spacing:-.005em;color:var(--strong);text-wrap:balance}
.pd-slices__sub{display:block;font-size:.8rem;line-height:1.45;color:var(--fg)}
.pd-slices__season{display:block;font-family:var(--serif);font-style:italic;font-weight:300;font-size:1rem;line-height:1.3;color:var(--muted)}
@media (min-width:700px){
  .pd-slices__list{flex-direction:row;gap:8px;height:clamp(420px,50vw,620px)}
  .pd-slices__item{flex:1 1 0;min-width:0}
  .pd-slices__item.is-on{flex-grow:4.6}
  .pd-slices__peek{display:none}
  /* the open slice is about 48% of the row; the caption keeps that width while the slice opens, so the words don't reflow */
  .pd-slices__cap{min-width:min(300px,calc((min(100vw,1180px) - 2 * var(--gut) - 40px) * .46));padding:130px 24px 22px}
  .pd-slices__name{font-size:clamp(1.5rem,2.2vw,2rem)}
}

/* ── cooking elsewhere: a full-width photo that closes the page, the words over its darkened lower edge ── */
.pd-away{margin-top:clamp(80px,10vw,140px)}
.pd-away__band{position:relative;display:flex;align-items:flex-end;min-height:clamp(500px,54vw,780px);overflow:hidden}
.pd-away__band img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 80%}
/* the page colour fades into the top of the photo */
.pd-away__band::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#45374B 0%,rgba(69,55,75,0) 14%);pointer-events:none}
/* the shade sits behind the words whatever the band's height, so they always read */
.pd-away__shade{position:relative;z-index:1;width:100%;padding-top:clamp(110px,12vw,180px);background:linear-gradient(180deg,rgba(31,25,34,0) 0%,rgba(31,25,34,.74) 42%,rgba(31,25,34,.94) 100%)}
.pd-away__in{padding-bottom:clamp(40px,5vw,64px)}
.pd-away__in p{font-family:var(--serif);font-weight:300;font-size:clamp(1.7rem,3vw,2.6rem);line-height:1.18;color:var(--strong);max-width:24em;text-wrap:pretty}
.pd-away__btn{display:inline-flex;align-items:center;gap:18px;margin-top:22px;min-height:48px;padding:0 20px;background:var(--lamp);color:#151714!important;text-decoration:none;font-size:.95rem;font-weight:500;transition:background .15s}
.pd-away__btn::after{content:"→"}
.pd-away__btn:hover{background:var(--lamp-hi)}
.pd-away__cap{display:block;margin-top:14px;font-size:.8rem;color:rgba(241,236,226,.75)}
.pd{padding-bottom:0}
/* narrower desktops: a little taller and cropped lower, so the first line clears the seated group */
@media (min-width:901px) and (max-width:1300px){
  .pd-away__band{min-height:clamp(560px,60vw,780px)}
  .pd-away__band img{object-position:50% 86%}
}
/* tablets: the same overlay as desktop, cropped from the bottom so the group sits above the words */
@media (max-width:900px){
  .pd-away__band{min-height:clamp(560px,92vw,780px)}
  .pd-away__band img{object-position:50% 100%}
  .pd-away__shade{padding-top:90px}
  .pd-away__in p{font-size:1.6rem}
}
/* small tablets and large phones held sideways: a little less text height, so the words stay under the group */
@media (max-width:700px){
  .pd-away__shade{padding-top:80px}
  .pd-away__in{padding-bottom:32px}
  .pd-away__in p{font-size:1.5rem}
  .pd-away__btn{margin-top:18px}
}
/* phones: the upright photo at full width, its grass fading into the shade; the words start on the grass */
@media (max-width:580px){
  .pd-away__band{display:block;min-height:0;background:#1F1922}
  .pd-away__band img{inset:auto;top:0;left:0;height:auto}
  .pd-away__band::after{height:150vw;inset:0 0 auto 0;background:linear-gradient(180deg,#45374B 0%,rgba(69,55,75,0) 16%)}
  .pd-away__shade{padding-top:calc(110vw + 34px);background:linear-gradient(180deg,rgba(31,25,34,0) 0,rgba(31,25,34,0) 104vw,rgba(31,25,34,.74) calc(110vw + 34px),rgba(31,25,34,.92) 140vw,#1F1922 150vw)}
  .pd-away__in{padding-bottom:48px}
  .pd-away__in p{font-size:1.5rem;text-shadow:0 1px 14px rgba(20,16,22,.45)}
}

@media (min-width:901px){
  .pd-form__intro{position:sticky;top:70px;align-self:start}
}
@media (max-width:900px){
  .pd-count{grid-template-columns:1fr;gap:28px}
  .pd-hero img{height:116vw}
  .pd-hero::after{background:linear-gradient(180deg,rgba(69,55,75,0) 0%,rgba(69,55,75,.12) 28%,rgba(69,55,75,.74) 48%,rgba(69,55,75,.9) 62%,#45374B 88%)}
  .pd-top__in{padding-top:64vw}
  .pd-form{grid-template-columns:1fr}
  /* phones: the photo comes after the form, so the fields follow straight on from the heading */
  .pd-photo--beside{display:none}
  .pd-photo--end{display:block;margin-top:44px}
  .pd-photo img{aspect-ratio:16/10}
}
@media (max-width:640px){.f-row{grid-template-columns:1fr}}
