/* ===== fonts (Radiant: Besley display, Rethink Sans body, from ../assets/fonts) ===== */
@font-face{font-family:"Besley";font-style:normal;font-weight:400 900;font-display:swap;src:url("../../../assets/fonts/besley-latin-var.woff2") format("woff2");}
@font-face{font-family:"Rethink Sans";font-style:normal;font-weight:400 800;font-display:swap;src:url("../../../assets/fonts/rethink-sans-latin-var.woff2") format("woff2");}

/* ===== tokens (Radiant) ===== */
:root{--white:#FFFFFF;--ink:#111418;--dark:#0B0D10;--slate:#555B66;--line:#DDE0E5;--cream:#F3F4F6;
--accent:#FF9900;--accent-text:#A85800;--accent-btn:#FF9900;--accent-btn-hover:#E68A00;
--font-head:"Rethink Sans",system-ui,-apple-system,"Segoe UI",sans-serif;--font-body:"Rethink Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
--r-sm:4px;--r-med:4px;--ease:cubic-bezier(.22,.61,.36,1);}

/* ===== viewer.css ===== */
/* =============================================================================
   radiant 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:4px;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);}
/* 2026-10-07 (site builder phase 5): "Back to my build", shown only when the viewer was
   opened from the builder (viewer.js unhides it); same shape as the browse button */
.tbar__back{flex:none;display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 12px 0 8px;border:1px solid var(--line);border-radius:4px;color:var(--ink);font:inherit;font-size:13.5px;font-weight:600;text-decoration:none;background:var(--white);}
.tbar__back svg{width:16px;height:16px;}
.tbar__back:hover{border-color:var(--ink);}
.tbar__back[hidden]{display:none;}
.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:4px;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:4px;
  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:4px;background:var(--white);}
.seg__o{display:inline-flex;align-items:center;gap:7px;height:28px;padding:0 13px;border-radius:4px;
  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:4px;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:4px;
  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:4px;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:4px;
  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:4px;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:4px;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;}
}

/* ===== Radiant overrides ===== */
.tbar{background:var(--ink);color:var(--white);border-bottom:1px solid rgba(255,255,255,.12);}
.tbar__brand .lockup{height:46px;width:auto;}
.tbar__count,.now__kind{color:rgba(255,255,255,.66);}
.now__name{color:var(--white);}
.browse,.tbar__back,.iconbtn,.seg{border-color:rgba(255,255,255,.22);color:var(--white);background:transparent;}
.browse:hover,.iconbtn:hover,.tbar__back:hover{border-color:var(--accent);color:var(--accent);}
.browse[aria-expanded="true"]{background:rgba(255,255,255,.1);}
.seg__o{color:rgba(255,255,255,.75);}
.seg__o[aria-checked="true"]{background:var(--white);color:var(--ink);}
.tag{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.18);color:var(--white);}
.tbar .cta{background:var(--accent-btn);color:var(--ink);}
.tbar .cta:hover{background:var(--accent-btn-hover);}
