/* Bard Works UI: shared stylesheet for every page under bard.studio/works.
   Source: the Bard design system (Product UI) and the approved mockups (16 Nov 2026).
   Fonts are self-hosted (OFL licences alongside in /puck/fonts). */
@font-face{font-family:"Schibsted Grotesk";font-style:normal;font-weight:400 900;font-display:swap;src:url(/puck/fonts/schibsted-grotesk-latin-ext-wght-normal.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:"Schibsted Grotesk";font-style:normal;font-weight:400 900;font-display:swap;src:url(/puck/fonts/schibsted-grotesk-latin-wght-normal.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:"Sofia Sans Extra Condensed";font-style:normal;font-weight:700;font-display:swap;src:url(/puck/fonts/sofia-sans-extra-condensed-latin-ext-700-normal.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:"Sofia Sans Extra Condensed";font-style:normal;font-weight:700;font-display:swap;src:url(/puck/fonts/sofia-sans-extra-condensed-latin-700-normal.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}

:root {
  /* brand */
  --ink: #10131E;
  --ink-muted: #5A5D6A;      /* secondary text, 6.4:1 on white */
  --navy: #142252;           /* primary actions, selected states, score bars */
  --modena: #F9C80E;         /* dots only in the UI: current page, running, waiting on you */
  --paper: #F4F6FA;          /* sidebar, quiet fills */
  --white: #FFFFFF;

  /* UI tints (soft areas; always with their ink) */
  --navy-tint: #E8ECF7;  --navy-wash: #F3F5FB;
  --modena-wash: #FFF6D1; --modena-ink: #5C4A00;
  --sage-tint: #E3F0E8;   --sage-ink: #2E5E45;
  --grey-tint: #EEF0F4;

  /* lines and controls */
  --line: #E4E6EC;
  --control: #C9CCD6;
  --frame: #2A3052;          /* video and robot thumbnails */

  /* type */
  --font-human: "Schibsted Grotesk", Arial, sans-serif;
  --font-machine: "Sofia Sans Extra Condensed", "Arial Narrow", Arial, sans-serif;

  /* shape and space */
  --radius: 8px; --radius-sm: 6px; --radius-xs: 4px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 36px;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--white); color: var(--ink); font: 15px/1.45 var(--font-human); }
a { color: var(--ink); }
a:hover { color: var(--ink-muted); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
h1 { margin: 0; font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
h2 { margin: 0; font-size: 16px; font-weight: 700; }
h3 { margin: 0; font-size: 15px; font-weight: 700; }
.muted { color: var(--ink-muted); }
.machine { font-family: var(--font-machine); text-transform: uppercase; font-weight: 700; letter-spacing: .06em; }

/* ---- app shell: sidebar + main ---- */
.bw-app { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100vh; }
.bw-side { background: var(--paper); border-right: 1px solid var(--line); padding: 20px 12px; display: flex; flex-direction: column; gap: 16px; }
.bw-lockup { display: flex; align-items: baseline; gap: 8px; padding: 4px 10px; }
.bw-lockup .machine { font-size: 16px; }
.bw-nav { display: flex; flex-direction: column; gap: 1px; }
.bw-nav-group { margin: 14px 8px 4px; font: 700 12px var(--font-machine); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); }
.bw-nav a { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 8px; border-radius: var(--radius-sm); text-decoration: none; font-size: 14px; font-weight: 500; }
.bw-nav a[aria-current="page"] { background: var(--white); box-shadow: 0 0 0 1px var(--line); font-weight: 600; }
.bw-nav a[aria-current="page"]::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--modena); margin-left: auto; }
.bw-main { padding: 24px 36px 48px; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.bw-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.bw-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* tool monogram tile; tint by group */
.bw-tile { flex: none; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-xs); font: 700 12px var(--font-machine); letter-spacing: .02em; width: 22px; height: 22px; }
.bw-tile.lg { width: 40px; height: 40px; border-radius: var(--radius); font-size: 17px; }
.tint-works { background: var(--navy-tint); color: var(--navy); }      /* Bard Works */
.tint-nhrl { background: var(--modena-wash); color: var(--modena-ink); } /* NHRL modules */
.tint-general { background: var(--sage-tint); color: var(--sage-ink); } /* General tools */
.tint-internal { background: var(--grey-tint); color: var(--ink); }   /* Internal Bard */

/* ---- surfaces ---- */
.bw-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.bw-band { background: var(--navy-wash); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.bw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.bw-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bw-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

/* pipeline stage columns (Folio) */
.bw-stage { border-radius: var(--radius); padding: 14px 16px; min-height: 104px; display: flex; flex-direction: column; gap: 10px; }
.bw-stage header { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; }
.bw-stage header strong { font-size: 22px; }
.stage-production { background: var(--navy-tint); color: var(--navy); }
.stage-post { background: var(--modena-wash); color: var(--modena-ink); }
.stage-ready { background: var(--sage-tint); color: var(--sage-ink); }
.stage-published { background: var(--grey-tint); color: var(--ink); }

/* ---- controls ---- */
.bw-btn { height: 36px; padding: 0 14px; border-radius: var(--radius-sm); font: 600 14px var(--font-human); cursor: pointer; white-space: nowrap; border: 1px solid var(--control); background: var(--white); color: var(--ink); }
.bw-btn.primary { background: var(--navy); border-color: var(--navy); color: var(--white); } /* one per area */
.bw-btn.quiet { background: transparent; border-color: transparent; }
.bw-btn.sm { height: 30px; padding: 0 10px; font-size: 12px; }
.bw-btn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.bw-input, .bw-select { height: 36px; border: 1px solid var(--control); border-radius: var(--radius-sm); padding: 0 12px; font: 14px var(--font-human); background: var(--white); color: var(--ink); }
.bw-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); }
.bw-tabs a { padding: 8px 2px; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink-muted); border-bottom: 2px solid transparent; }
.bw-tabs a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }

/* ---- small labels ---- */
.bw-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.bw-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--white); }
.pill-ready, .pill-done { background: var(--grey-tint); }
.pill-ready .bw-dot, .pill-done .bw-dot { background: var(--ink); }
.pill-running .bw-dot { background: var(--modena); }
.pill-needs { background: var(--modena-wash); }
.pill-needs .bw-dot { background: var(--modena); }
.pill-queued { color: var(--ink-muted); }
.pill-queued .bw-dot { background: var(--control); }
.pill-dev { background: var(--modena-wash); border-color: transparent; font-size: 12px; padding: 2px 8px; } /* "In development" */
.pill-dev .bw-dot { background: var(--modena); }

.bw-tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: var(--radius-xs); font-size: 11px; font-weight: 600; white-space: nowrap; }
.tag-tournament { background: var(--navy-tint); color: var(--navy); }
.tag-angle { background: var(--modena-wash); color: var(--modena-ink); } /* Streak, Last chance, Debut, Expert picks… */
.tag-author { background: var(--paper); color: var(--ink-muted); }     /* By Chris */
.tag-weight { background: var(--navy-tint); color: var(--navy); font-weight: 700; } /* 30lb, 12lb, 3lb */

.bw-score { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.bw-score .bar { width: 32px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.bw-score .bar span { display: block; height: 100%; background: var(--navy); }

/* confidence labels: dot + word; dots differ in lightness */
.bw-conf { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-muted); }
.conf-confirmed .bw-dot { background: var(--ink); }
.conf-measured .bw-dot { background: var(--frame); }
.conf-suggested .bw-dot { background: #8E92A3; }
.conf-estimated .bw-dot { background: #C9CCD6; }
.conf-unknown .bw-dot { background: transparent; border: 1.5px dashed var(--ink); }

.bw-thumb { width: 26px; height: 26px; border-radius: var(--radius-xs); background: var(--frame); object-fit: cover; flex: none; }

/* ---- phones ---- */
@media (max-width: 900px) {
  .bw-app { grid-template-columns: minmax(0, 1fr); }
  .bw-nav { flex-direction: row; flex-wrap: wrap; }
  .bw-grid-3, .bw-grid-4 { grid-template-columns: minmax(0, 1fr); }
  .bw-main { padding: 20px; }
}
