/* Gastronova Day – Nagomi V4: editorial trailer showcase + gallery (loaded only by day-nagomi.html V4).
   Static / no-JS: all three models stacked, gallery = big photo + thumbnail links to the full images. */
.ng-page .sc{background:var(--ng-off2)}
.ng-page .sc .dn-head{margin-bottom:clamp(28px,3.5vw,48px)}

/* model showcase */
.ng-page .sc-tabs{display:none}
.ng-page .sc-panels{display:grid;gap:clamp(28px,4vw,48px)}
.ng-page .sc-panel{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:clamp(24px,4vw,56px);align-items:center}
.ng-page .sc-media{margin:0;position:relative;overflow:hidden;border-radius:24px;background:#d9d6cb;aspect-ratio:4/3}
.ng-page .sc-media img{display:block;width:100%;height:100%;object-fit:cover}
.ng-page .sc-info h3{margin:0 0 12px;font-size:clamp(28px,2.8vw,42px);line-height:1.02;letter-spacing:-.04em;font-weight:500;color:#141a16}
.ng-page .sc-info>p{margin:0;font-size:17px;line-height:1.55;color:#454f43;max-width:44ch}
.ng-page .sc-kick{margin:0 0 10px!important;font-size:12px!important;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#6b5a00!important}
.ng-page .sc-chips{list-style:none;margin:20px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.ng-page .sc-chips li{padding:8px 14px;border-radius:999px;background:#fff;border:1px solid rgba(20,26,22,.12);font-size:14px;font-weight:700;color:#232b22}
.ng-page .sc-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 22px;margin-top:26px}
.ng-page .sc-actions .np-link{color:#141a16}

html.sc-js .ng-page .sc-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:22px}
.ng-page .sc-tabs button{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;gap:2px 12px;align-items:center;text-align:left;min-height:64px;padding:12px 16px;border-radius:16px;border:1px solid rgba(20,26,22,.14);background:rgba(255,255,255,.55);color:#141a16;font:inherit;cursor:pointer;transition:background-color .25s ease,border-color .25s ease}
.ng-page .sc-tabs .sc-n{grid-row:span 2;font-size:22px;font-weight:800;color:#8a8f84;font-variant-numeric:tabular-nums}
.ng-page .sc-tabs .sc-t{font-size:17px;font-weight:700;letter-spacing:-.01em}
.ng-page .sc-tabs .sc-l{font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#6a7466}
.ng-page .sc-tabs button[aria-selected=true]{background:#141a16;border-color:#141a16;color:#fff}
.ng-page .sc-tabs button[aria-selected=true] .sc-n{color:var(--ng-y)}
.ng-page .sc-tabs button[aria-selected=true] .sc-l{color:#c9d0c8}
.ng-page .sc-tabs button:focus-visible{outline:3px solid #141a16;outline-offset:3px}
html.sc-js .ng-page .sc-panels{display:block}
html.sc-js .ng-page .sc-panel[hidden]{display:none}
/* reveal: the photo opens with a wipe, the text rises – only when a model is chosen or first seen */
@media (prefers-reduced-motion:no-preference){
  html.sc-js .ng-page .sc-panel.is-enter .sc-media{animation:sc-wipe .8s cubic-bezier(.2,.7,.1,1) both}
  html.sc-js .ng-page .sc-panel.is-enter .sc-media img{animation:sc-zoom 1.4s cubic-bezier(.2,.7,.1,1) both}
  html.sc-js .ng-page .sc-panel.is-enter .sc-info>*{animation:sc-rise .6s cubic-bezier(.2,.7,.1,1) both}
  html.sc-js .ng-page .sc-panel.is-enter .sc-info>*:nth-child(2){animation-delay:.06s}
  html.sc-js .ng-page .sc-panel.is-enter .sc-info>*:nth-child(3){animation-delay:.12s}
  html.sc-js .ng-page .sc-panel.is-enter .sc-info>*:nth-child(n+4){animation-delay:.18s}
}
@keyframes sc-wipe{from{clip-path:inset(0 0 0 100% round 24px)}to{clip-path:inset(0 0 0 0 round 24px)}}
@keyframes sc-zoom{from{transform:scale(1.08)}to{transform:scale(1)}}
@keyframes sc-rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}

/* gallery */
.ng-page .gl{margin-top:clamp(56px,7vw,96px);scroll-margin-top:96px}
.ng-page .gl-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px 24px;margin-bottom:20px}
.ng-page .gl-head h3{margin:0;font-size:clamp(26px,2.6vw,38px);letter-spacing:-.035em;font-weight:500;color:#141a16}
.ng-page .gl-filter{display:none;gap:6px;padding:4px;border-radius:999px;background:rgba(255,255,255,.6);border:1px solid rgba(20,26,22,.1)}
html.sc-js .ng-page .gl-filter{display:flex}
.ng-page .gl-filter button{min-height:40px;padding:0 16px;border-radius:999px;border:0;background:transparent;font:700 14px Manrope,Arial,sans-serif;color:#2a312c;cursor:pointer}
.ng-page .gl-filter button span{color:#7c857a;font-weight:600;margin-left:4px}
.ng-page .gl-filter button[aria-pressed=true]{background:#141a16;color:#fff}
.ng-page .gl-filter button[aria-pressed=true] span{color:var(--ng-y)}
.ng-page .gl-stage{position:relative;border-radius:24px;overflow:hidden;background:#141a16}
.ng-page .gl-main{display:block;aspect-ratio:16/9;background:#101412;cursor:zoom-in}
.ng-page .gl-main img{display:block;width:100%;height:100%;object-fit:cover;transition:opacity .35s ease}
.ng-page .gl-main.is-swap img{opacity:0}
.ng-page .gl-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;padding:14px 16px 14px 20px;background:#141a16;color:#fff}
.ng-page .gl-cap{margin:0;font-size:15px;line-height:1.4;color:#e6ebe4}
.ng-page .gl-cap b{color:var(--ng-y);font-variant-numeric:tabular-nums;margin-right:8px}
.ng-page .gl-nav{display:none;gap:8px}
html.sc-js .ng-page .gl-nav{display:flex}
.ng-page .gl-nav button,.ng-page .gl-lb button{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;border:1px solid rgba(243,241,234,.3);background:transparent;color:#fff;font:700 18px Manrope,Arial,sans-serif;cursor:pointer}
.ng-page .gl-nav button:hover{background:rgba(243,241,234,.1)}
.ng-page .gl-nav button:focus-visible,.ng-page .gl-lb button:focus-visible,.ng-page .gl-thumb:focus-visible,.ng-page .gl-main:focus-visible{outline:3px solid var(--ng-y);outline-offset:3px}
.ng-page .gl-thumbs{list-style:none;margin:12px 0 0;padding:0 0 6px;display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:8px}
.ng-page .gl-thumbs li[hidden]{display:none}
.ng-page .gl-thumb{display:block;border-radius:12px;overflow:hidden;aspect-ratio:4/3;outline-offset:2px;box-shadow:0 0 0 0 transparent;transition:box-shadow .2s ease}
.ng-page .gl-thumb img{display:block;width:100%;height:100%;object-fit:cover;opacity:.72;transition:opacity .2s ease}
.ng-page .gl-thumb:hover img,.ng-page .gl-thumb[aria-current=true] img{opacity:1}
.ng-page .gl-thumb[aria-current=true]{box-shadow:0 0 0 3px var(--ng-y)}
.ng-page .gl-facts{list-style:none;margin:18px 0 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.ng-page .gl-facts li{display:grid;gap:2px;padding:14px 16px;border-radius:16px;background:#141a16;color:#b9c2b8;font-size:13px}
.ng-page .gl-facts b{font-size:22px;color:var(--ng-y);letter-spacing:-.02em}

/* lightbox */
.ng-page .gl-lb{width:100vw;height:100vh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:rgba(6,8,7,.96);color:#fff}
.ng-page .gl-lb::backdrop{background:rgba(6,8,7,.9)}
.ng-page .gl-lb[open]{display:grid;place-items:center}
.ng-page .gl-lb figure{margin:0;display:grid;gap:12px;justify-items:center;max-width:min(92vw,1400px);touch-action:pan-y}
.ng-page .gl-lb img{display:block;max-width:92vw;max-height:78vh;width:auto;height:auto;border-radius:12px;user-select:none;-webkit-user-drag:none}
.ng-page .gl-lb figcaption{font-size:15px;color:#dfe4dc;text-align:center}
.ng-page .gl-lb-x{position:fixed;top:16px;right:16px}
.ng-page .gl-lb-p,.ng-page .gl-lb-n{position:fixed;top:50%;transform:translateY(-50%)}
.ng-page .gl-lb-p{left:16px}.ng-page .gl-lb-n{right:16px}

@media (max-width:900px){
  .ng-page .sc-panel{grid-template-columns:1fr;gap:20px}
  html.sc-js .ng-page .sc-tabs{grid-template-columns:1fr;gap:6px}
  .ng-page .sc-tabs button{min-height:52px;grid-template-columns:auto 1fr auto;grid-template-rows:auto}
  .ng-page .sc-tabs .sc-n{grid-row:auto;font-size:16px}
  .ng-page .gl-thumbs{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:8px;padding-bottom:8px}
  .ng-page .gl-thumbs li{flex:0 0 88px;scroll-snap-align:start}
  .ng-page .gl-facts{grid-template-columns:1fr 1fr}
}
@media (max-width:760px){
  .ng-page .sc-media{border-radius:18px}
  .ng-page .gl-stage{border-radius:18px}
  .ng-page .gl-main{aspect-ratio:4/3}
  .ng-page .gl-head{align-items:flex-start}
  .ng-page .gl-filter{width:100%;justify-content:space-between}
  .ng-page .gl-filter button{flex:1;padding:0 8px;min-height:44px}
  .ng-page .gl-lb-p,.ng-page .gl-lb-n{top:auto;bottom:20px;transform:none}
  .ng-page .gl-lb-p{left:calc(50% - 56px)}.ng-page .gl-lb-n{right:calc(50% - 56px)}
}

/* V4 · touch targets ≥ 44 px across the whole page (Filip mobile audit) – only this V4 file, shared V3 CSS untouched */
.ng-page details>summary{min-height:44px;box-sizing:border-box;padding-top:8px;padding-bottom:8px}
.ng-page .registration-extra>summary{display:flex;align-items:center}
.ng-page .cal a{min-height:44px;box-sizing:border-box}
.ng-page .gl-filter button{min-height:44px}
.ng-nav .ng-pill,.ng-nav .ng-nav-menu>summary,.ng-nav summary{min-height:44px;box-sizing:border-box}
.ng-nav .ng-nav-logo{display:inline-flex;align-items:center;min-height:44px}
.ng-nav .ng-nav-links a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;box-sizing:border-box}
/* V4 · the dist action dock only holds "back to top" on this page – keep it a compact button instead of an empty full-width bar over the form */
.ng-page .action-dock{left:auto!important;right:12px;width:auto!important}
.ng-page .action-dock .back-top{min-width:44px;min-height:44px}
/* V4 · short landscape phones: contest photo starts with the text instead of floating mid-column (no blank area) */
@media (orientation:landscape) and (max-height:520px){
  .ng-page .dn-contest-in{align-items:start}
  .ng-page .dn-contest-ph img{max-height:80vh;object-fit:cover}
}
/* V4 · keyboard: the handover video (native controls) gets a visible focus ring too */
.ng-page video:focus,.ng-page video:focus-within{outline:3px solid var(--ng-y,#f7d21a);outline-offset:3px}
