/* Product chrome shared by every screen. Colours, radii and shadows come from tokens.css. */
:root {
  font-family: var(--jc-font-sans, 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif);
  font-size: 15px;
  line-height: 1.45;
  color: var(--jc-ink, #1D1B18);
  background: var(--jc-ground, #F4F1EA);
  -webkit-font-smoothing: antialiased;
}
body { margin: 0; min-height: 100dvh; }
jc-app { display: block; min-height: 100dvh; }
/* Self-hosted subsets from Google Fonts (OFL). Schibsted Grotesk has no Vietnamese subset, so
   Vietnamese text falls back to the system sans; IBM Plex Mono covers Vietnamese. */
@font-face { font-family: 'Schibsted Grotesk'; src: url('../fonts/Schibsted-Grotesk-latin.woff2') format('woff2'); font-weight: 400 700; font-display: swap;
  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: 'Schibsted Grotesk'; src: url('../fonts/Schibsted-Grotesk-latin-ext.woff2') format('woff2'); font-weight: 400 700; font-display: swap;
  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: 'IBM Plex Mono'; src: url('../fonts/IBM-Plex-Mono-latin.woff2') format('woff2'); font-weight: 500; font-display: swap;
  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: 'IBM Plex Mono'; src: url('../fonts/IBM-Plex-Mono-latin-ext.woff2') format('woff2'); font-weight: 500; font-display: swap;
  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: 'IBM Plex Mono'; src: url('../fonts/IBM-Plex-Mono-vietnamese.woff2') format('woff2'); font-weight: 500; font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Instrument Serif'; src: url('../fonts/Instrument-Serif-latin.woff2') format('woff2'); font-weight: 400; font-display: swap; }

/* ---- shared chrome ---------------------------------------------------- */
.screen { padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); max-width: 720px; margin: 0 auto; }
.screen h1 { font-size: 26px; letter-spacing: -.02em; margin: 8px 0 6px; }
.muted { color: var(--jc-ink2); }
.mono { font-family: var(--jc-font-mono, ui-monospace, monospace); font-size: 11px; color: var(--jc-ink2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--jc-outline); background: var(--jc-surface); color: var(--jc-ink); font: inherit; font-weight: 600; cursor: pointer; }
.btn.primary { background: var(--jc-primary); border-color: var(--jc-primary); color: #fff; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }
.card { background: var(--jc-surface); border: 1px solid var(--jc-hairline); border-radius: 16px; padding: 14px 16px; box-shadow: var(--jc-shadow-card); }
.row { display: flex; align-items: center; gap: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--jc-primary-soft); color: var(--jc-primary-soft-text); }
.chip.amber { background: var(--jc-pending-bg); color: var(--jc-pending-text); }
.chip.live { background: var(--jc-live-pill); color: var(--jc-live-pill-text); }
.tile { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 700; flex: none; }
.field { display: block; margin: 14px 0; }
.field span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 12px; border-radius: 12px; border: 1px solid var(--jc-outline); background: var(--jc-surface); }
.error { color: var(--jc-danger); min-height: 1.4em; margin: 6px 0; }
.list { display: flex; flex-direction: column; gap: 10px; }
.sheet-backdrop { position: fixed; inset: 0; background: rgba(29,27,24,.35); display: grid; place-items: end center; z-index: 10; }
.sheet { width: min(560px, 100%); max-height: 80dvh; overflow: auto; background: var(--jc-surface); border-radius: 28px 28px 0 0; padding: 12px 16px 24px; }
.sheet::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--jc-outline); margin: 0 auto 12px; }
/* header + tab bar */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--jc-ground); }
.citybtn { font: inherit; font-weight: 700; background: none; border: 0; padding: 6px 0; color: var(--jc-ink); cursor: pointer; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: var(--jc-surface); border-top: 1px solid var(--jc-hairline); z-index: 5; }
.tabbar a { flex: 1; text-align: center; text-decoration: none; color: var(--jc-ink2); font-size: 11px; font-weight: 600; padding: 6px 0; border-radius: 999px; }
.tabbar a.active { color: var(--jc-primary-soft-text); background: var(--jc-primary-soft); }
.with-tabbar { padding-bottom: 84px; }
@media (min-width: 900px) {
  .tabbar { top: 0; bottom: auto; left: 0; right: auto; width: 220px; height: 100dvh; flex-direction: column; justify-content: flex-start; border-top: 0; border-right: 1px solid var(--jc-hairline); padding-top: 72px; }
  .tabbar a { flex: none; text-align: left; padding: 10px 14px; font-size: 14px; }
  .with-tabbar { padding-bottom: 24px; padding-left: 240px; }
  .topbar { padding-left: 256px; }
}
