/* ===== fonts (faces copied from ../work-v2/assets/fonts) ===== */
@font-face{font-family:"Sora";font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/sora-600-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:"Sora";font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/sora-600-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:"Reddit Sans";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/reddit-sans-400.woff2") format("woff2");}
@font-face{font-family:"Reddit Sans";font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/reddit-sans-500.woff2") format("woff2");}

/* ===== tokens (extracted from ../work-v2/assets/css/page.css) ===== */
:root{
  --cream:#F7F4EF;         /* body paper, warm neutral under the navy */
  --pink:#F0E7DB;          /* warm tint band */
  --dark:#13202f;          /* Ziwi navy - hero / header card */
  --black:#0C1622;         /* Ziwi deep navy - footer / CTA card */
  --panel:#16273A;         /* inner footer brand panel */
  --white:#FFFFFF;
  --ink:#13202f;           /* Ziwi navy as body ink on paper */
  --ink-2:#243547;
  --slate:#4C5D6E;         /* muted navy para, AA 5.6 on paper */
  --gray:#4F5A64;          /* secondary copy */
  --gray-d:#A3AEBA;        /* gray on navy */
  --line:rgba(19,32,47,.14);      /* hairline on paper */
  --line-d:rgba(255,255,255,.14); /* hairline on navy */
  --accent:#e0873a;        /* Ziwi orange - eyebrows, text links, rules, the logo. Do not use for button fills. */
  --accent-2:#C96F22;      /* deepened hover fill (non-button orange accents) */
  --accent-text:#A95C12;   /* AA orange for TEXT on paper (>=4.5 on #F7F4EF) */
  --accent-ink:#13202f;    /* navy ink on orange fills (5.4:1) - no longer used on the accent button, kept for other orange fills */
  /* 2026-09-12 (Brandon: "dark ink on orange is hard to read"): every FILLED
     button (ctapair--accent, the header CTA's orange hover fill) uses this
     token instead of --accent, paired with white label + arrow text. White on
     --accent-btn measures 4.96:1, white on --accent-btn-hover 6.4:1. */
  --accent-btn:#A95C12;
  --accent-btn-hover:#904E0F;

  --font-head:"Sora",system-ui,sans-serif;
  --font-body:"Reddit Sans",system-ui,sans-serif;
  --fs-body:16px;
  --r-card:30px;
  --r-med:16px;
  --r-sm:8px;
  --ease:cubic-bezier(.22,.61,.36,1);
  --inset:20px;
  --gut:40px;
}

/* ===== viewer.css ===== */
/* =============================================================================
   ZIWI DESIGN VIEWER - the shell only.
   The :root token block and the @font-face rules are prepended at build time
   from ../work-v2/assets/css/page.css (see build.mjs), so the viewer can never
   drift from the site chrome. Everything below is what this app surface adds:
   the top bar, the browse panel, the card list, the stage and the phone shell.
   This is an app surface, not a marketing page: no reveals, no hover lifts,
   nothing moves on hover.
   ============================================================================= */

*{box-sizing:border-box;}
html,body{height:100%;}
html{-webkit-text-size-adjust:100%;}
body{margin:0;font-family:var(--font-body);font-size:15px;line-height:1.5;color:var(--ink);
  background:var(--stage);overflow:hidden;-webkit-font-smoothing:antialiased;}
img{max-width:100%;display:block;}
svg{display:block;}
a{color:inherit;text-decoration:none;}
button{font-family:inherit;font-size:inherit;cursor:pointer;border:0;background:none;color:inherit;}
input{font-family:inherit;font-size:inherit;color:inherit;}
p{margin:0;}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}
[hidden]{display:none!important;}
.sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;
  clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0;}
.skip{position:absolute;left:-999px;top:0;z-index:200;background:var(--accent-btn);color:var(--white);
  padding:10px 16px;border-radius:var(--r-sm);}
.skip:focus{left:12px;top:12px;}

:root{
  --stage:#E9E4DC;          /* warm gray the preview sits in */
  --bar:64px;
  --panel-w:320px;
}

/* the two-row / two-column app frame ---------------------------------------- */
.app{display:grid;grid-template-rows:var(--bar) minmax(0,1fr);height:100dvh;}
.main{display:grid;grid-template-columns:0 minmax(0,1fr);min-height:0;
  transition:grid-template-columns .2s var(--ease);}
.is-panel .main{grid-template-columns:var(--panel-w) minmax(0,1fr);}

/* ------------------------------------------------------------- the top bar --- */
.tbar{display:flex;align-items:center;gap:12px;padding:0 20px;background:var(--white);
  border-bottom:1px solid var(--line);min-width:0;}
.tbar__brand{flex:none;display:block;color:var(--ink);}
.tbar__brand .lockup{height:30px;width:auto;}
.tbar__r{margin-left:auto;display:flex;align-items:center;gap:12px;flex:none;}

.browse{display:inline-flex;align-items:center;gap:9px;height:40px;padding:0 16px;flex:none;
  border:1px solid var(--line);border-radius:999px;background:var(--white);font-weight:500;
  font-size:14px;white-space:nowrap;
  transition:border-color .2s var(--ease),color .2s var(--ease),background-color .2s var(--ease);}
.browse svg{width:17px;height:17px;flex:none;}
.browse:hover{border-color:var(--accent);color:var(--accent-text);}
.browse[aria-expanded="true"]{background:var(--cream);}
.tbar__count{flex:none;font-size:13px;color:var(--slate);font-variant-numeric:tabular-nums;
  white-space:nowrap;}

.now{display:flex;align-items:center;gap:12px;min-width:0;flex:1 1 auto;padding-left:6px;}
.now__txt{display:flex;flex-direction:column;min-width:0;}
.now__name{font-family:var(--font-head);font-weight:600;font-size:17px;letter-spacing:-.012em;
  line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.now__kind{font-size:14px;color:var(--slate);line-height:1.3;margin-top:2px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.now__tags{display:flex;align-items:center;gap:6px;flex:none;}
.tag{display:inline-block;padding:4px 10px;border-radius:999px;background:var(--cream);
  border:1px solid var(--line);font-size:12px;line-height:1.25;color:var(--slate);white-space:nowrap;}
.tag--client{background:var(--dark);border-color:var(--dark);color:var(--white);}

.nav{display:flex;align-items:center;gap:8px;flex:none;}
.iconbtn{width:40px;height:40px;flex:none;display:grid;place-items:center;border-radius:50%;
  border:1px solid var(--line);background:var(--white);color:var(--ink);
  transition:border-color .2s var(--ease),color .2s var(--ease);}
.iconbtn svg{width:18px;height:18px;}
.iconbtn:hover{border-color:var(--accent);color:var(--accent-text);}

.seg{display:flex;align-items:center;gap:3px;height:36px;padding:3px;flex:none;
  border:1px solid var(--line);border-radius:999px;background:var(--white);}
.seg__o{display:inline-flex;align-items:center;gap:7px;height:28px;padding:0 13px;border-radius:999px;
  font-size:13px;font-weight:500;color:var(--slate);white-space:nowrap;
  transition:background-color .2s var(--ease),color .2s var(--ease);}
.seg__o svg{width:15px;height:15px;flex:none;}
.seg__o:hover{color:var(--ink);}
.seg__o[aria-checked="true"]{background:var(--dark);color:var(--white);}

.cta{display:inline-flex;align-items:center;justify-content:center;height:44px;padding:0 22px;flex:none;
  border-radius:999px;background:var(--accent-btn);color:var(--white);font-weight:500;font-size:15px;
  white-space:nowrap;transition:background-color .2s var(--ease);}
.cta:hover{background:var(--accent-btn-hover);}

/* ---------------------------------------------------------- the browse panel --- */
.panel{min-width:0;overflow:hidden;background:var(--cream);border-right:1px solid var(--line);}
.panel__in{width:var(--panel-w);height:100%;overflow-y:auto;padding:18px 20px 28px;}
.panel__x{display:none;}
.srch{position:relative;display:block;}
.srch svg{position:absolute;left:13px;top:50%;margin-top:-8px;width:16px;height:16px;color:var(--slate);}
.srch input{width:100%;height:40px;padding:0 14px 0 38px;border:1px solid var(--line);
  border-radius:var(--r-sm);background:var(--white);font-size:14px;}
.srch input::placeholder{color:var(--slate);opacity:1;}
.srch input:focus{outline:2px solid var(--accent);outline-offset:2px;}

.chips{display:flex;flex-wrap:wrap;gap:8px;min-width:0;margin-top:16px;}
.chip{display:inline-flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:999px;
  background:var(--white);padding:9px 18px;font-family:var(--font-body);font-weight:500;font-size:15px;
  color:var(--ink);white-space:nowrap;
  transition:background-color .22s var(--ease),border-color .22s var(--ease),color .22s var(--ease);}
.chip::before{content:"";width:7px;height:7px;border-radius:50%;background:transparent;flex:none;
  transition:background-color .22s var(--ease);}
.chip:hover{border-color:var(--accent);color:var(--accent-text);}
.chip[aria-pressed="true"]{background:var(--dark);border-color:var(--dark);color:var(--white);}
.chip[aria-pressed="true"]::before{background:var(--accent);}
/* the panel is 320px: the chip scale that reads right on a marketing page is a
   touch large in a rail, so only the padding and size step down, nothing else */
.panel .chip{font-size:13.5px;padding:7px 13px;gap:7px;}
.panel .chip::before{width:6px;height:6px;}

.panel__n{margin-top:16px;font-size:14px;color:var(--slate);font-variant-numeric:tabular-nums;}
.cards{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;margin-top:10px;}
.card{display:block;width:100%;text-align:left;padding:8px;border:2px solid transparent;
  border-radius:14px;transition:border-color .2s var(--ease),background-color .2s var(--ease);}
.card__media{display:block;aspect-ratio:16/10;border-radius:12px;overflow:hidden;background:var(--white);
  border:1px solid var(--line);transition:border-color .2s var(--ease);}
.card__media img{width:100%;height:100%;object-fit:cover;object-position:top center;}
.card:hover .card__media{border-color:var(--accent);}
.card__b{display:block;margin-top:9px;}
.card__name{display:block;font-family:var(--font-head);font-weight:600;font-size:15px;
  line-height:1.25;letter-spacing:-.01em;color:var(--ink);}
.card__kind{display:block;margin-top:3px;font-size:13.5px;line-height:1.35;color:var(--slate);}
.card__soon{display:inline-block;margin-top:6px;padding:3px 9px;border-radius:999px;
  border:1px solid var(--line);background:var(--white);font-size:11.5px;color:var(--accent-text);}
.card[aria-current="true"]{border-color:var(--dark);background:var(--white);}
.card[aria-current="true"] .card__name::before{content:"";display:inline-block;width:7px;height:7px;
  border-radius:50%;background:var(--accent);margin-right:8px;vertical-align:middle;position:relative;top:-1px;}

.panel__empty{margin-top:18px;font-size:14px;color:var(--slate);}
.prenote__x{font-family:var(--font-body);font-weight:500;font-size:14px;color:var(--accent-text);
  padding:0;position:relative;}
.prenote__x::after{content:"";position:absolute;left:0;right:0;bottom:-2px;height:1.5px;
  background:currentColor;transform:scaleX(1);transform-origin:left center;
  transition:transform .3s var(--ease);}
.prenote__x:hover::after{transform:scaleX(0);transform-origin:right center;}

.scrim{display:none;}

/* ----------------------------------------------------------------- the stage --- */
.stage{position:relative;min-width:0;background:var(--stage);overflow:hidden;}
.shell{position:absolute;left:50%;top:50%;width:calc(100% - 40px);height:calc(100% - 40px);
  --shell-scale:1;transform:translate(-50%,-50%) scale(var(--shell-scale));
  background:var(--white);border:1px solid var(--line);border-radius:14px;padding:0;overflow:hidden;
  transition:width .2s var(--ease),height .2s var(--ease),padding .2s var(--ease),
    background-color .2s var(--ease),border-radius .2s var(--ease),transform .2s var(--ease);}
.shell.is-mobile{width:414px;height:868px;padding:12px;background:#13202f;border-color:#13202f;
  border-radius:44px;}
.shell__frame{display:block;width:100%;height:100%;border:0;background:var(--white);border-radius:0;
  transition:border-radius .2s var(--ease);}
.shell.is-mobile .shell__frame{border-radius:32px;}

/* state 1: loading */
.shell__load{position:absolute;inset:0;display:grid;place-items:center;background:var(--white);
  border-radius:inherit;overflow:hidden;}
.shell.is-mobile .shell__load{inset:12px;border-radius:32px;}
.shell__load img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  object-position:top center;opacity:.4;}
/* the art behind it is a full page capture at 40%, so the card needs a real
   edge or it dissolves into a busy hero (QA round 1) */
.skel{position:relative;width:min(280px,70%);border-radius:var(--r-med);background:var(--cream);
  border:1.5px solid var(--line);padding:18px 20px;box-shadow:0 16px 40px rgba(19,32,47,.18);}
.skel span{display:block;height:10px;border-radius:999px;background:rgba(19,32,47,.17);
  animation:pulse 1.4s var(--ease) infinite;}
.skel span+span{margin-top:10px;width:68%;}
.skel span:nth-child(3){width:44%;animation-delay:.18s;}
.skel span:nth-child(2){animation-delay:.09s;}
@keyframes pulse{0%,100%{opacity:1;}50%{opacity:.42;}}

/* state 3: no hosted preview */
.shell__none{position:absolute;inset:0;display:grid;place-items:center;background:var(--white);
  border-radius:inherit;overflow:hidden;}
.shell.is-mobile .shell__none{inset:12px;border-radius:32px;}
.shell__none img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  object-position:top center;}
.nonecard{position:relative;max-width:420px;margin:20px;padding:26px 28px;background:var(--white);
  border:1px solid var(--line);border-radius:var(--r-med);text-align:center;
  box-shadow:0 18px 44px rgba(19,32,47,.16);}
.nonecard h2{margin:0;font-family:var(--font-head);font-weight:600;font-size:21px;line-height:1.2;
  letter-spacing:-.012em;color:var(--ink);}
.nonecard p{margin-top:9px;font-size:14.5px;line-height:1.55;color:var(--slate);}
.nonecard .cta{margin-top:18px;}

/* ------------------------------------------------------------ the phone bar --- */
.bbar{display:none;}

/* ======================================================= the viewer on a phone === */
@media(max-width:899.98px){
  :root{--bar:56px;}
  .app{grid-template-rows:var(--bar) minmax(0,1fr) 48px;}
  .main,.is-panel .main{grid-template-columns:minmax(0,1fr);}
  .tbar{gap:10px;padding:0 14px;}
  .tbar__brand .lockup{height:24px;}
  .tbar__count,.now__kind,.now__tags,.tbar__r .nav,.tbar__r .seg,.tbar__r .iconbtn,
  .tbar__r .cta,.browse .browse__l{display:none;}
  .now{padding-left:0;}
  .now__name{font-size:15.5px;}
  .browse{width:40px;padding:0;justify-content:center;}

  .bbar{display:flex;align-items:center;gap:10px;padding:0 14px;background:var(--white);
    border-top:1px solid var(--line);}
  .bbar .iconbtn{width:36px;height:36px;}
  .bbar .iconbtn svg{width:16px;height:16px;}
  .bbar .cta{height:38px;flex:1 1 auto;font-size:14.5px;padding:0 16px;}

  .panel{position:fixed;left:0;right:0;top:40px;bottom:0;z-index:70;border-right:0;
    border-radius:20px 20px 0 0;transform:translateY(101%);
    transition:transform .2s var(--ease);box-shadow:0 -12px 40px rgba(19,32,47,.22);}
  .is-panel .panel{transform:none;}
  .panel__in{width:100%;padding:16px 16px 32px;}
  .panel__head{display:flex;align-items:center;gap:10px;}
  .panel__head .srch{flex:1 1 auto;min-width:0;}
  .panel__x{display:grid;flex:none;}
  .cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 8px;}
  .scrim{display:block;position:fixed;inset:0;z-index:65;background:rgba(19,32,47,.40);}

  .stage{border-radius:0;}
  .shell,.shell.is-mobile{width:100%;height:100%;padding:0;border:0;border-radius:0;
    background:var(--white);transform:none;left:0;top:0;}
  .shell.is-mobile .shell__frame,.shell__frame{border-radius:0;}
  .shell.is-mobile .shell__load,.shell.is-mobile .shell__none{inset:0;border-radius:0;}
}

/* the bar is dense between 900 and 1180: the count line and the kind line are
   the two things the panel already says, so they go first */
@media(min-width:900px) and (max-width:1179.98px){
  .tbar__count{display:none;}
  .browse .browse__l{display:none;}
  .browse{width:40px;padding:0;justify-content:center;}
  .now__kind{display:none;}
  .tbar{gap:10px;padding:0 16px;}
  .tbar__r{gap:10px;}
}
@media(min-width:900px) and (max-width:1379.98px){
  .cta{padding:0 18px;font-size:14.5px;}
}

@media(prefers-reduced-motion:reduce){
  *,.main,.shell,.panel,.chip,.card,.cta,.browse,.iconbtn,.seg__o,.prenote__x::after{
    transition:none!important;animation:none!important;}
}
