/* ==========================================================================
   NORDIC - shared styles for the three Nordic trial pages
   (Listings /odeon/nordic/, Bills /odeon/nordic/bills/, Gantt /odeon/nordic/gantt/)

   THIS FILE IS THE ONLY PLACE COLOURS ARE DEFINED (Steve, 12 Oct 2026).
   Pages use var(--name) and keep only their own layout. Checker:
   node nordic/check-colours.js  -> fails on any colour literal outside this file.

   Each page links this file BEFORE its own <style>, so a page rule always wins a tie.
   Built 25 Oct 2026 from the rules that were byte-identical on all three pages.
   ========================================================================== */

/* ==========================================================================
   0. TOKENS - exact values from the Nordic handoff README ("Design tokens (Nordic)")
   ========================================================================== */
:root {
  --bg:#F4F6F8;           /* page; Gantt header row + corner */
  --panel:#FFFFFF;       /* cards, header bar, side panels, Gantt name column; also white text/ticks on accent fills */
  --panel-alt:#E9EEF3;   /* image backgrounds; Gantt EMPTY day cells */
  --sel:#E0F0FA;         /* selected / booked row, menu hover, open hamburger, tight chip, today header tint */
  --line-soft:#E8EDF2;   /* row dividers */
  --line:#E2E8F0;        /* borders */
  --line-strong:#CBD5E1; /* button outlines */
  --text:#1E293B;        /* primary (= Gantt BIG SCREEN bar) */
  --text2:#334155;       /* secondary */
  --muted:#64748B;       /* labels, meta, inactive nav (= Gantt NORMAL bar) */
  --accent:#0273B3;      /* booked, selected, active nav underline, "Odeon", links */
  --must3:#0F766E;       /* Must See: 3 stars (also the badge background) */
  --must2:#5EAAA2;       /* 2 stars */
  --must1:#CBD5E1;       /* 1 star */
  --rt-fresh:#15803D;    /* Rotten Tomatoes % (>= 60); "ok" gap chip text; per-showing note green */
  --rt-rotten:#334155;   /* Rotten Tomatoes % (< 60) on Listings - text-2: the palette has no red (Steve 12 Oct: only the specified colours) */
  --cs:#4D7C0F;          /* CinemaScore grade */

  /* see-through versions of the palette colours above (same colours, only the opacity differs) */
  --ring:rgba(2,115,179,.3);            /* accent at 30%: outline round the selected film / row / segment */
  --bg-clear:rgba(244,246,248,0);       /* bg at 0%: top of the fade behind the phone "Next up for you" hero text */
  --panel-95:rgba(255,255,255,.95);     /* panel at 95%: the phone film-sheet Close button */
  --scrim:rgba(30,41,59,.35);           /* text at 35%: dims the page behind the Gantt pop-up */

  /* shadows (text colour, see-through) */
  --shadow:0 16px 32px -12px rgba(30,41,59,.25);  /* dropdowns / pop-ups */
  --shadow-float:0 6px 16px -6px rgba(30,41,59,.4); /* the phone film-sheet Close button */
  --shadow-pop:0 18px 36px -10px rgba(30,41,59,.35); /* Gantt showing pop-up */

  /* type */
  --bebas:'Bebas Neue',Impact,'Arial Narrow',sans-serif;
  --barlow:'Barlow',system-ui,-apple-system,'Segoe UI',sans-serif;
}

/* ==========================================================================
   1. BASE
   ========================================================================== */
*, *::before, *::after { box-sizing:border-box; }
html, body { margin:0; height:100%; }
body {
  background:var(--bg); color:var(--text); font-family:var(--barlow);
  -webkit-font-smoothing:antialiased; -webkit-text-size-adjust:100%;
}
button { font:inherit; color:inherit; background:none; border:0; padding:0; margin:0; cursor:pointer; text-align:inherit; }
button:disabled { cursor:default; }
a { color:var(--accent); }
[hidden] { display:none !important; }

/* ==========================================================================
   2. HEADER BAR CONTENTS - hamburger menu, page nav, "Odeon" + revision stamp
      (the .bar box itself stays on each page: Gantt lines up with 1600px, the others 1480px)
   ========================================================================== */
.menu-wrap { position:relative; z-index:5; grid-area:menu; }
.menu-btn {
  width:44px; height:44px; display:flex; align-items:center; justify-content:center;
  border:1px solid var(--line-strong); border-radius:8px; background:var(--panel);
  color:var(--text); font-size:20px;
}
.menu-btn[aria-expanded="true"] { background:var(--sel); }
.menu {
  position:absolute; top:52px; left:0; min-width:220px; background:var(--panel);
  border:1px solid var(--line); border-radius:10px; box-shadow:var(--shadow); padding:6px;
  display:flex; flex-direction:column; font-family:var(--bebas); font-size:22px; letter-spacing:.04em;
}
.menu a { padding:10px 14px; border-radius:6px; color:var(--text); text-decoration:none; }
.menu a:hover, .menu a:focus-visible { background:var(--sel); outline:none; }
.nav { grid-area:nav; display:flex; gap:26px; font-family:var(--bebas); font-size:24px; letter-spacing:.04em; }
.nav a { color:var(--muted); text-decoration:none; border-bottom:2px solid transparent; }
.nav a:hover { color:var(--text); }
.nav a.cur { color:var(--text); border-bottom-color:var(--accent); }
.brand { grid-area:brand; margin-left:auto; display:flex; align-items:center; gap:32px; }
.odeon { font-family:var(--bebas); font-size:24px; letter-spacing:.04em; color:var(--accent); }
.rev { font-size:14px; color:var(--muted); }

/* ==========================================================================
   3. LIST BUTTONS 1-4 (and Bills' screen buttons) + Must See star colours
   ========================================================================== */
.slots { display:flex; gap:4px; font-family:var(--bebas); font-size:18px; }
.slot {
  width:28px; height:28px; display:flex; align-items:center; justify-content:center;
  border-radius:4px; color:var(--muted); border:1px solid var(--line);
}
.slot.on { background:var(--accent); border-color:var(--accent); color:var(--panel); }
.slot:not(.on):hover { color:var(--text); border-color:var(--line-strong); }

.s3 { color:var(--must3); } .s2 { color:var(--must2); } .s1 { color:var(--must1); }

/* ==========================================================================
   4. "ODEON CHANGED ITS SCHEDULE" POP-UP (nordic/changes-modal.js; same markup and
      class names as the real site's changes-modal.js - only the look is Nordic).
      The palette has no red or amber (emphasis colours are on hold - Steve, 12 Oct),
      so the kind of change is carried by its bold label: Cancelled / Whole day gone /
      Moved screen in dark text, Put back in green, New week in accent blue.
   ========================================================================== */
.cm-back {
  position:fixed; inset:0; z-index:9999; background:var(--scrim);
  display:flex; align-items:center; justify-content:center; padding:16px;
}
.cm-box {
  width:100%; max-width:540px; max-height:calc(100vh - 32px); overflow:auto;
  background:var(--panel); border:1px solid var(--line); border-radius:10px; box-shadow:var(--shadow-pop);
  padding:20px 22px 18px; color:var(--text); font-family:var(--barlow);
}
.cm-box h2 { font-family:var(--bebas); font-weight:400; font-size:30px; line-height:1; letter-spacing:.04em; margin:0 0 10px; color:var(--text); }
.cm-box ul { list-style:none; margin:0 0 16px; padding:0; }
.cm-box li { font-size:15px; line-height:1.45; padding:7px 0; border-bottom:1px solid var(--line-soft); color:var(--text2); }
.cm-box li:last-child { border-bottom:0; }
.cm-bad, .cm-warn { color:var(--text); }
.cm-good { color:var(--rt-fresh); }
.cm-new { color:var(--accent); }
.cm-more { font-size:13px; color:var(--muted); margin:-8px 0 16px; }
.cm-row { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.cm-row a { color:var(--accent); font-size:15px; font-weight:700; text-decoration:none; }
.cm-row a:hover { text-decoration:underline; }
.cm-row button {
  margin-left:auto; height:44px; padding:0 24px; border-radius:8px;
  background:var(--accent); color:var(--panel); font-size:15px; font-weight:700; letter-spacing:.06em;
}
.cm-row button:hover { filter:brightness(1.08); }
