/* W2W portal theme, v2 (founder's Claude Design files, 28 Nov 2026; tokens from design-v2/.../DESIGN-SPEC.md).
   This is the ONE theme file: every colour, font, radius and shadow the portal uses lives here as a CSS variable.
   Screens never hard-code colours. Fonts: Schibsted Grotesk for headings and numbers, Atkinson Hyperlegible Next
   for body text, with digits drawn in Schibsted Grotesk (Atkinson's zero is slashed). No black fills.
   Every page in the portal and the report loads this file first. */
/* Fonts are served from our own site (Google Fonts files, OFL licence): no extra connections before text shows. */
@font-face{font-family:"Atkinson Hyperlegible Next";font-style:normal;font-weight:400 700;font-display:swap;src:url(/portal/assets/fonts/atkinson-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:"Atkinson Hyperlegible Next";font-style:normal;font-weight:400 700;font-display:swap;src:url(/portal/assets/fonts/atkinson-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Schibsted Grotesk";font-style:normal;font-weight:500 800;font-display:swap;src:url(/portal/assets/fonts/schibsted-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:"Schibsted Grotesk";font-style:normal;font-weight:500 800;font-display:swap;src:url(/portal/assets/fonts/schibsted-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"W2W Digits";font-style:normal;font-weight:400 900;font-display:swap;src:url(/portal/assets/fonts/schibsted-latin.woff2) format("woff2");unicode-range:U+0030-0039}

:root {
  /* ---- Core palette (DESIGN-SPEC) ---- */
  --pine-deep: #1E3A31;     /* sidebar, client top bar, modal backdrop */
  --pine: #335246;          /* primary buttons, today marker */
  --pine-hover: #284239;
  --pine-active: #4C7A64;   /* active menu item */
  --pine-edit: #477A60;     /* role card buttons */
  --pine-icon: #4F8268;     /* icon button glyphs */
  --sea: #70C17D;           /* brand accent */
  --mint: #E5F0E8;          /* icon buttons, segmented controls, selected tabs */
  --mint-hover: #D3E7D9;
  --mint-2: #E3EDE7;        /* board pills */
  --ink: #14251F;           /* text */
  --ink-2: #3F4F48;         /* table text, secondary labels */
  --muted: #5B6B64;         /* secondary text */
  --faint: #8A9690;         /* placeholders, close glyphs */
  --line: #E3E8E5;          /* borders */
  --line-input: #DCE3DF;    /* input outlines */
  --line-card: #E6EBE8;     /* card borders */
  --line-row: #EEF1EF;      /* row separators */
  --line-box: #D3DCD7;      /* checkbox outline, toggle off */
  --canvas: #F5F7F6;        /* page */
  --soft: #F2F4F3;          /* notes well, small pills */
  --soft-2: #F8FAF9;        /* call rows */
  --thead: #F0F3F1;         /* table header */
  --white: #FFFFFF;
  --link: #21703C;          /* the master's #2E8A55 is 4.3:1 on white; the active chip ink passes 4.5:1 */
  --red-dot: #E0533D;
  --backdrop: rgba(17, 33, 27, .58);
  --scrim: rgba(17, 33, 27, .5);

  /* ---- Status chips: background / text ---- */
  --chip-pending-bg: #FFF4CC;  --chip-pending: #7A5800;
  --chip-active-bg: #DFF3E4;   --chip-active: #21703C;
  --chip-overdue-bg: #FCE1DB;  --chip-overdue: #A8331C;
  --chip-info-bg: #DCEAFB;     --chip-info: #245A96;
  --chip-review-bg: #ECE5F8;   --chip-review: #553A99;
  --chip-neutral-bg: #EEF1EF;  --chip-neutral: #3F4F48;
  --hl-bg: #FFEDA6; --hl: #5C4300; --hl-dot: #F2C230;   /* "Reports due" highlight */
  --danger-hover-bg: #FCE1DB; --danger-hover: #B4371F;

  /* ---- Overview rows (row tint / icon tile / ink) ---- */
  --ov-yellow-bg: #FFFBEA; --ov-yellow-tile: #FFE89A; --ov-yellow: #7A5800;
  --ov-red-bg: #FFF3F1;    --ov-red-tile: #FBD3CB;    --ov-red: #A8331C;
  --ov-green-bg: #F1FAF3;  --ov-green-tile: #C7EBD0;  --ov-green: #21703C;
  --ov-blue-bg: #F0F6FD;   --ov-blue-tile: #D3E5F8;   --ov-blue: #245A96;

  /* ---- Avatars (background / text) ---- */
  --av1-bg: #CDEBD3; --av1: #1F5A33;
  --av2-bg: #FCE0C2; --av2: #7A4510;
  --av3-bg: #D3E5F8; --av3: #1F4F85;
  --av4-bg: #F8D5CF; --av4: #8C2C1C;
  --av5-bg: #E4DCF6; --av5: #4B3391;

  /* ---- Board column pairs (background / title) ---- */
  --col1-bg: #FBEFD9; --col1: #7E5200;
  --col2-bg: #D9E9FB; --col2: #245A96;
  --col3-bg: #FBDDD4; --col3: #A8331C;
  --col4-bg: #E2F4D9; --col4: #36701D;
  --col5-bg: #E6DDF6; --col5: #553A99;
  --col6-bg: #D4F0EA; --col6: #1A6E5D;
  --col7-bg: #F8DCE7; --col7: #962F57;
  --col8-bg: #EFE9DA; --col8: #62532A;

  /* ---- Brighter accents (founder, 28 Nov 2026: "keep our colours, make it vibrant"). Each has a strong colour for
     bars and icons, an ink that passes 4.5:1 on its wash for text, and a wash for backgrounds.
     Stage identity everywhere: Assessment amber, Stage 1 green, Stage 2 sky, Stage 3 violet; extra pipelines coral, teal. */
  --amber: #E8A13A;  --amber-ink: #7A4E00;  --amber-wash: #FFF3DD;
  --green: #3FA35A;  --green-ink: #1E6B35;  --green-wash: #E2F4E6;
  --sky: #2F80C8;    --sky-ink: #1D5690;    --sky-wash: #E4F0FB;
  --violet: #6E55C2; --violet-ink: #4B3391; --violet-wash: #EEE9FA;
  --coral: #E2674A;  --coral-ink: #9E3820;  --coral-wash: #FDEAE4;
  --tealb: #1F9C8A;  --tealb-ink: #0F6559;  --tealb-wash: #DDF3EF;

  /* ---- Shape and type ---- */
  --r-card: 18px; --r-col: 22px; --r-kc: 14px; --r-btn: 8px; --r-input: 8px; --r-tile: 12px;
  --shadow: 0 1px 2px rgba(20, 37, 31, .05);
  --shadow-pop: 0 18px 48px rgba(20, 37, 31, .18);
  --font: "W2W Digits", "Atkinson Hyperlegible Next", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --head: "Schibsted Grotesk", "Atkinson Hyperlegible Next", "Segoe UI", Arial, sans-serif;
  --fs-title: clamp(30px, 3vw, 40px);
  --fs-card: clamp(21px, 1.8vw, 24px);
  --pad-card: clamp(18px, 2vw, 26px);
  --gap: clamp(16px, 2vw, 24px);

  /* ---- Older names, kept so every existing screen picks up v2 without a rewrite ---- */
  --teal: var(--pine);
  --teal-2: var(--ink-2);
  --teal-3: var(--muted);
  --teal-line: var(--line);
  --teal-wash: var(--mint);
  --sea-light: #B7E0BE;
  --sea-wash: var(--mint);
  --page: var(--canvas);
  --radius: 10px;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font); -webkit-text-size-adjust: 100%; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
a { color: var(--link); }
input::placeholder, textarea::placeholder { color: var(--faint); }
.card { background: var(--white); border: 1px solid var(--line-card); border-radius: var(--r-card); padding: var(--pad-card); }
.btn { background: var(--pine); color: var(--white); border: 0; border-radius: var(--r-btn); padding: 10px 18px; font: 500 17px var(--font); cursor: pointer; }
.btn.secondary { background: var(--white); color: var(--ink); border: 1.5px solid var(--line-input); }
/* Score bands keep their names; v2 colours: Strong green, Developing yellow, To build red */
.band-strong { background: var(--chip-active-bg); color: var(--chip-active); }
.band-developing { background: var(--chip-pending-bg); color: var(--chip-pending); }
.band-to_build { background: var(--chip-overdue-bg); color: var(--chip-overdue); }
.test-banner { background: var(--hl-bg); color: var(--hl); text-align: center; padding: 6px; font-size: 13px; }
.logo { display: inline-block; width: 150px; height: 40px; background: var(--pine);
  -webkit-mask: url(/portal/assets/w2w-logo.webp) left center / contain no-repeat; mask: url(/portal/assets/w2w-logo.webp) left center / contain no-repeat; }
