/* The site's one navigation (nav.css): the pill, its desktop panels, and the phone menu. Markup: src/partials/nav.html.
   Behaviour: nav.js. Everything is prefixed nv- (or sits under .navwrap) so no page's own styles reach in or out.
   The circled mark is injected into .nav .mark by brandkit.js; brandkit.css hides the traced one. The mark has no hover. */

/* ---------- Skip link: first stop on every page, seen only while focused ---------- */
.navwrap .skip{position:fixed;left:16px;top:-80px;z-index:70;padding:12px 14px 11px;background:#fff;color:var(--ink);border:2px solid var(--ink);border-radius:3px;
  font-size:var(--t-small);line-height:1;text-transform:uppercase;font-weight:700;font-stretch:condensed;letter-spacing:.004em;text-decoration:none}
.navwrap .skip:focus{top:calc(env(safe-area-inset-top,0px) + 12px)}
/* On a phone the pill is centered and wide enough to meet the link's left end, so the focused link sits just under it */
@media (max-width:760px){ .navwrap .skip:focus{top:calc(env(safe-area-inset-top,0px) + 68px)} }

/* ---------- The pill ---------- */
.navwrap{position:fixed;top:calc(env(safe-area-inset-top,0px) + 16px);left:0;right:0;z-index:20;display:flex;justify-content:center;pointer-events:none;
  font-family:var(--display);-webkit-font-smoothing:antialiased}
.navwrap > *{pointer-events:auto}
.navwrap,.nv-sheet{--btn-r:3px}
.navwrap [hidden]{display:none!important}
.nav{position:relative;top:auto;left:auto;transform:none;margin:0;display:flex;align-items:center;gap:18px;background:var(--ink);color:#fff;border-radius:999px;
  padding:9px 18px 9px 16px;box-shadow:0 6px 24px rgba(0,0,0,.14);text-transform:uppercase;font-weight:700;font-stretch:condensed;letter-spacing:.004em}
.nav a{color:#fff;text-decoration:none;font-size:var(--t-small);line-height:1;transition:color .2s}
.nav a.is-open{color:#8f8f8f}
.nav .mark{display:flex}
.nav .mark svg{height:19px;width:auto;display:block}
.nav .nv-links{display:flex;gap:18px}
.nav .nv-links a{position:relative}
.nav .nv-links a::after{content:"";position:absolute;inset:-12px -9px}
.nav .nv-links a[aria-current]{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1.5px}
.nav a:focus-visible,.nav .nv-menu:focus-visible{outline:2px solid #fff;outline-offset:4px;border-radius:2px}
/* Menu (phones and screens without hover): the button that opens the sheet */
.nav .nv-menu{all:unset;display:none;position:relative;cursor:pointer;font-size:var(--t-small);line-height:1;color:#fff;-webkit-tap-highlight-color:transparent}
/* Its label rolls from Menu to Close and back (nav.js, TSM.roll), and the pill's width follows */
.nav .nv-menu-l{display:inline-block;vertical-align:top}

/* Homepage: the mark alone on desktop, mark plus Menu on a phone (the large list is the menu). html.nv-home-links is the revert switch, set by the homepage's
   homePillLinks through TSNAV.homeLinks(true). */
html[data-path="/"] .nav{box-shadow:0 6px 24px rgba(0,0,0,.18)}
html[data-path="/"]:not(.nv-home-links) .nav .nv-links{display:none!important}
/* Wider than a phone: the mark alone. On a phone the homepage pill carries Menu like every other page (Palace does the same). */
@media (min-width:761px){
  html[data-path="/"]:not(.nv-home-links) .nav{padding:9px 16px}
  html[data-path="/"]:not(.nv-home-links) .nav .nv-menu{display:none!important}
}

/* ---------- Desktop panels (Palace pattern): frosted, under the pill ---------- */
/* One surface for the three names. It is a grid of one row so that nav.js can ease the row's height from one name's
   contents to the next (.nv-sizing while it does); contents on their way out are lifted out of the row (.nv-leaving). */
.nv-panel{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;position:absolute;top:calc(100% + 8px);left:50%;width:min(640px,calc(100vw - 32px));box-sizing:border-box;padding:16px;border-radius:16px;color:#fff;
  text-transform:uppercase;font-weight:700;font-stretch:condensed;letter-spacing:.004em;
  background:rgba(22,22,22,.8);-webkit-backdrop-filter:blur(26px) saturate(1.4);backdrop-filter:blur(26px) saturate(1.4);box-shadow:0 18px 50px rgba(0,0,0,.18);
  opacity:0;visibility:hidden;transform:translate(-50%,-6px) scale(.985);transform-origin:top center;
  transition:opacity .18s ease,transform .22s cubic-bezier(.2,.7,.2,1),visibility 0s linear .22s}
.nv-panel.open{opacity:1;visibility:visible;transform:translate(-50%,0) scale(1);transition:opacity .18s ease,transform .22s cubic-bezier(.2,.7,.2,1),visibility 0s}
.nv-panel.nv-sizing{overflow:clip}
.nv-panel > [data-for]{grid-area:1/1;min-width:0}
.nv-panel > .nv-leaving{position:absolute;left:16px;right:16px;top:16px;pointer-events:none}
.nv-panel a{color:#fff;text-decoration:none;transition:color .15s}
.nv-panel a:hover{color:rgba(255,255,255,.6)}
.nv-panel a:focus-visible{outline:2px solid #fff;outline-offset:2px}
.nv-panel .nv-dim{color:rgba(255,255,255,.62)}
.nv-h{display:block;font-size:var(--t-label);color:rgba(255,255,255,.62);margin:0 0 8px}
.nv-cols{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.5fr);gap:18px}
.nv-plist{list-style:none;margin:0;padding:0;display:grid;gap:7px;font-size:var(--t-small)}
.nv-plist a{display:flex;justify-content:space-between;gap:10px}
.nv-thumbs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.nv-thumb{display:grid;gap:7px;font-size:var(--t-small);line-height:1.2}
.nv-thumb img{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:4px;display:block;background:var(--set)}
.nv-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;font-size:var(--t-small);line-height:1.3}
.nv-panel .btn--inv,.nv-panel .btn--inv:hover{color:var(--ink)}
.nv-panel .btn--sm{padding:10px 14px 9px}
.nv-priced{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.nv-priced a{display:grid;gap:6px;padding:12px 12px 11px;border-radius:8px;background:rgba(255,255,255,.1)}
.nv-priced a:hover{background:rgba(255,255,255,.16);color:#fff}
.nv-priced .nv-big{font-size:22px;line-height:.95}
.nv-priced small{font-size:var(--t-label);color:rgba(255,255,255,.75)}
/* The Store audit: the one thing with a price a visitor can buy outright, so it is the one bright button (Millar, 12 November 2026) */
.nv-priced a.nv-buy,.nv-priced a.nv-buy:hover{background:var(--bk-lime,#E2FF4A);color:var(--ink)}
.nv-priced a.nv-buy:hover{background:#EDFF7E}
.nv-priced a.nv-buy:focus-visible{outline-offset:3px}
.nv-priced a.nv-buy small{color:rgba(11,11,11,.72)}
.nv-priced .nv-top{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.nv-priced .nv-cost{white-space:nowrap}
.nv-line{margin:14px 0 0;font-size:var(--t-small);line-height:1.7;text-align:center;text-wrap:balance}
.nv-line .nv-sep{opacity:.5;margin:0 8px}
.nv-line a{white-space:nowrap}
.nv-about{display:grid;gap:12px;align-content:start;justify-items:start}
.nv-intro{margin:0;font-size:var(--t-text);line-height:1.45;max-width:36ch;text-transform:none;font-weight:400;font-stretch:normal;letter-spacing:0}
.nv-panel a.nv-quiet{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}
.nv-panel a.nv-quiet:hover{color:#fff}
.nv-posts{list-style:none;margin:0;padding:0;display:grid;gap:9px;font-size:var(--t-small);line-height:1.25}
.nv-posts a{display:flex;justify-content:space-between;gap:16px}
.nv-posts .nv-dim{white-space:nowrap}
.nv-rate{display:flex;gap:16px;font-size:var(--t-small)}

/* ---------- The phone menu: the homepage's list as a white sheet ---------- */
.nv-sheet{position:fixed;inset:0;z-index:60;box-sizing:border-box;display:flex;flex-direction:column;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;
  padding:calc(env(safe-area-inset-top,0px) + 72px) calc(env(safe-area-inset-right,0px) + 16px) calc(env(safe-area-inset-bottom,0px) + 16px) calc(env(safe-area-inset-left,0px) + 16px);
  background:#fff;color:var(--ink);font-family:var(--display);-webkit-font-smoothing:antialiased;
  opacity:0;visibility:hidden}
/* Open or shut is a state with no transition of its own: where motion is allowed nav.js grows the sheet out of the pill
   and closes it back in (a clip), and .open stays until the closing has played. html.nv-open is the sheet open;
   html.nv-over is the sheet on screen at all (open, or still closing), which keeps the pill above it. */
.nv-sheet.open{opacity:1;visibility:visible}
html:not(.nv-open) .nv-sheet{pointer-events:none}
html.nv-open{overflow:hidden}
html.nv-over .navwrap{z-index:61}
/* While the sheet is on screen the pill is the mark and Close at every width (the sheet carries the names) */
html.nv-over .nav .nv-links{display:none}
/* The list sits at the foot of the screen, inside the thumb's reach */
.nv-sheet-in{margin-top:auto;width:100%;max-width:560px}
.nv-list{list-style:none;margin:0;padding:0;border-top:var(--rule)}
.nv-list li{border-bottom:var(--hair)}
.nv-list a{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:baseline;gap:0 10px;padding:17px 0 14px;color:var(--ink);text-decoration:none;-webkit-tap-highlight-color:transparent}
.nv-n{font-size:var(--t-label);line-height:1;color:var(--mute);font-variant-numeric:tabular-nums}
.nv-t{font-size:32px;line-height:1;text-transform:uppercase;font-weight:700;font-stretch:condensed;letter-spacing:.004em}
.nv-p{font-size:var(--t-small);line-height:1;text-align:right;white-space:nowrap}
.nv-list a[aria-current] .nv-t{text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:2px}
.nv-list a:active .nv-t{color:var(--mute)}
.nv-sheet a:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.nv-start{display:block;margin-top:16px;width:100%;padding-left:16px;padding-right:16px;text-align:left;-webkit-tap-highlight-color:transparent}
.nv-start[aria-current]{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1.5px}
.nv-foot{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-top:22px;font-size:var(--t-small);line-height:1.2;
  text-transform:uppercase;font-weight:700;font-stretch:condensed;letter-spacing:.004em}
.nv-where{display:flex;flex-wrap:wrap;gap:4px 14px}
/* The phone number: a thumb-sized target without moving the line */
.nv-where a{color:inherit;text-decoration:none;padding:13px 0;margin:-13px 0}
/* The script wordmark, as in the footer (wordmark-studios.svg), in ink */
.nv-foot .nv-word{flex:none;height:30px;aspect-ratio:3994/1117;background:var(--ink);-webkit-mask:url(/wordmark-studios.svg) right bottom/contain no-repeat;mask:url(/wordmark-studios.svg) right bottom/contain no-repeat}

/* ---------- Which form shows ---------- */
/* Screens without hover (tablets) keep the three links, which open their pages on a tap, and gain Menu for the rest */
@media (hover:none), (pointer:coarse){
  .nav .nv-menu{display:block}
}
/* Thumb-sized targets around the mark and Menu */
@media (max-width:760px), (hover:none), (pointer:coarse){
  .nav .mark{position:relative}
  .nav .nv-menu::after,.nav .mark::after{content:"";position:absolute;inset:-14px -12px}
}
@media (max-width:760px){
  html:not([data-path="/"]) .navwrap{top:calc(env(safe-area-inset-top,0px) + 10px)}
  .nav .nv-links{display:none}
  .nav .nv-menu{display:block}
  .nv-panel{display:none}
}
@media (max-width:340px){ .nv-t{font-size:27px} }
@media (max-height:560px){ .nv-list a{padding:11px 0 9px} .nv-t{font-size:24px} .nv-start{padding:16px 16px 14px} .nv-foot{margin-top:14px} }
@media (prefers-reduced-motion:reduce){ .nav a,.nv-panel,.nv-panel.open,.nv-panel a{transition:none} }
