/* ==========================================================================
   NORDIC - shared styles for the three Nordic trial pages
   (Listings /odeon/nordic-live/, Bills /odeon/nordic-live/bills/, Gantt /odeon/nordic-live/gantt/)
   V3 (26 Oct 2026) = v2 + warning colours F "tinted pills" (Steve chose F at 12:08, 26 Oct) - section 6.

   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:#2F8F86;       /* 2 stars - V3 26 Oct: was #5EAAA2, darkened so the three levels still step (3.9 : 1 on white) */
  --must1:#6FB7AE;       /* 1 star - V3 26 Oct: was #CBD5E1, the SAME grey as an empty star (Steve 12:08: "indistinguishable"); now a light teal (2.3 : 1) */
  --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-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); }

/* ==========================================================================
   5. V2 ADDITIONS (25 Oct 2026) - things Claude's guesses bring back, shared by all three pages.
      WARNING / CAUTION colours: palette only for now (Steve 25 Oct: not sure red and amber suit
      the scheme - see https://www.perfectportals.com/odeon/todo/demos/colours/). They are four
      tokens, so the option he picks is a four-line change here.
   ========================================================================== */
:root {
  /* V3: --warn / --caution and the rest are set per scheme in section 6 */
}
/* S2 "Static info" bar (static-notice.js puts it under the header bar; .v3s-static = its SAMPLE copy) */
#static-notice, .v3s-static {
  flex:0 0 auto; margin:0; padding:8px max(24px, calc((100% - 1480px) / 2 + 24px));
  background:var(--caution-bg); border-bottom:1px solid var(--line); color:var(--text2);
  font:400 14px/1.45 var(--barlow);
}
#static-notice strong, .v3s-static strong { color:var(--caution); font-weight:700; }
/* L6 / L11 alert banners at the top of the showings (data gap, not updated, settings not loaded) */
.alert {
  display:flex; gap:8px; align-items:flex-start; margin:10px 0 4px; padding:8px 12px;
  border-left:4px solid var(--warn-edge); border-radius:6px; background:var(--warn-bg);
  font-size:14px; line-height:1.45; color:var(--text2);
}
.alert strong { color:var(--warn); }
.alert.caution { border-left-color:var(--caution-edge); background:var(--caution-bg); }
.alert.caution strong { color:var(--caution); }
/* L5 / S6 / B7 footer: disclaimer, page-build stamp, links */
.vfoot { display:flex; flex-wrap:wrap; gap:4px 14px; font-size:12px; color:var(--muted); }
.vfoot a { color:var(--accent); }
.v2tag { font-family:var(--bebas); font-size:16px; letter-spacing:.06em; color:var(--must3); border:1px solid var(--must3);
  border-radius:3px; padding:0 5px; line-height:1.3; }
/* V2 B31: pale tints of the three Must See teals (Double Bills segments, Steve's 19 Sept choice) */
:root {
  --must3-tint:#E2EFEE;        /* must3 #0F766E at 12% on white */
  --must2-tint:#E6F2F0;        /* must2 #2F8F86 at 12% (V3) */
  --must1-tint:#EEF6F5;        /* must1 #6FB7AE at 12% (V3) */
}

/* ==========================================================================
   6. V3 WARNING COLOURS = F "TINTED PILLS" (Steve, 12:08 26 Oct 2026: "F is the winner ... lock in the F
      scheme ... and work from tweaking it from there"). Chosen in place from the seven on
      https://www.perfectportals.com/odeon/todo/demos/colours/ (the A-G drop-down is gone; values as option F).
      Pale red / amber backgrounds with dark red / amber text, like the blue BOOKED tag.
   ========================================================================== */
/* What each token colours:
   --warn / --caution             words: "Cancelled" / "Moved screen" in the changes pop-up, banner headings,
                                  rotten scores (warn)
   --warn-bg / --caution-bg       banner backgrounds (stale, data gap / settings not loaded, static info)
   --warn-edge / --caution-edge   the thick left edge of those banners
   --go-text / --go-bg / --go-pad the GOING tag (an amber pill)
   --tight-text / -bg / -edge     Double Bills gaps under 10 minutes and overlaps (a red pill) */
:root {
  --warn:#991B1B;              /* red-800: 8.3 : 1 on white */
  --caution:#92400E;           /* amber-800: 7.1 : 1 on white */
  --warn-bg:#FEF2F2; --caution-bg:#FFFBEB;
  --warn-edge:#FCA5A5; --caution-edge:#FCD34D;
  --go-text:#92400E; --go-bg:#FEF3C7; --go-pad:1px 6px;
  --tight-text:#991B1B; --tight-bg:#FEE2E2; --tight-edge:#FEE2E2;
}
:root { --rt-rotten:var(--warn); }   /* rotten scores and D / F CinemaScores follow the scheme */

/* the things the schemes colour (page <style> blocks keep only their sizes) */
.tag-go { color:var(--go-text); background:var(--go-bg); padding:var(--go-pad); border-radius:2px; }
.cm-bad { color:var(--warn); }
.cm-warn { color:var(--caution); }

/* the Samples tick in the header bar (warn-picker.js) */
.wpick { display:flex; flex-wrap:wrap; justify-content:flex-end; align-items:center; gap:8px 12px; font:600 13px/1 var(--barlow); color:var(--muted); }   /* wraps when there are three controls (29 Oct) */
.wpick label { display:flex; align-items:center; gap:6px; cursor:pointer; }
.wpick input:focus-visible { outline:2px solid var(--ring); outline-offset:1px; }
.wpick input { accent-color:var(--accent); width:16px; height:16px; margin:0; }

/* the SAMPLE strip under the header (Samples ticked) */
#v3-samples { flex:0 0 auto; padding:8px max(24px, calc((100% - 1480px) / 2 + 24px)) 10px; background:var(--panel);
  border-bottom:1px solid var(--line); font:400 14px/1.45 var(--barlow); color:var(--text2); }
.v3s-head { font-size:12px; color:var(--muted); margin-bottom:2px; }
.v3s-head strong { color:var(--text); letter-spacing:.06em; }
.v3s-grid { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:0 12px; }
.v3s-grid .alert { margin:6px 0 0; }
.v3s-static { margin:6px 0 0; padding:8px 12px; border-radius:6px; border-bottom:0; }
.v3s-row { display:flex; flex-wrap:wrap; align-items:center; gap:8px 10px; margin-top:8px; }
.v3s-cap { font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin-left:6px; }
.v3s-cap:first-child { margin-left:0; }
.v3s-row .tag-go { font-size:12px; font-weight:700; letter-spacing:.06em; }
.v3s-gap { font-size:14px; font-weight:600; padding:2px 8px; border-radius:4px; border:1px solid var(--line-strong); background:var(--panel); color:var(--rt-fresh); }
.v3s-gap.tight { font-weight:700; color:var(--tight-text); background:var(--tight-bg); border-color:var(--tight-edge); }
.v3s-sc { font-family:var(--bebas); font-size:26px; line-height:1; }
.v3s-fresh { color:var(--rt-fresh); }
.v3s-rot { color:var(--rt-rotten); }
.v3s-btn { margin-left:auto; height:34px; padding:0 14px; border-radius:6px; border:1px solid var(--accent); color:var(--accent);
  background:var(--panel); font:700 13px/1 var(--barlow); letter-spacing:.04em; }
.v3s-btn:hover { background:var(--sel); }
@media (max-width:760px) {
  .wpick { font-size:12px; }
  #v3-samples { padding:8px 12px 10px; }
  .v3s-grid { grid-template-columns:1fr; }
  .v3s-btn { margin-left:0; }
}
@media (min-width:601px) and (max-width:1099px) and (min-height:481px), (max-width:600px) and (orientation:landscape) and (min-height:481px) {
  /* narrower windows: no room for the tick in line, so it takes a second row under ODEON / Rev. */
  .bar .brand { flex-wrap:wrap; justify-content:flex-end; row-gap:8px; }
  .wpick { order:3; flex:1 0 100%; justify-content:flex-end; }
}

/* ==========================================================================
   7. V3 GANTT BARS - three options on a "Bars" drop-down (bars-picker.js puts data-bars="1".."3" on <html>;
      no choice saved = 1). Steve, 12:08 26 Oct: booked / big screen / normal were "virtually impossible" to tell
      apart (dark slate vs mid slate, 3.1 : 1 apart, and booked was only a thin blue outline).
      In every option: booked = blue and always full height; a booked BIG-SCREEN showing also gets a dark stripe
      along its top, so it still says "big screen".
        1  Light / dark / blue   normal pale slate, big dark slate (5.7 : 1 apart), booked solid blue
        2  Size                  normal half height (mid slate), big full height dark, booked solid blue
        3  Pills (like F)        normal pale slate, big dark, booked pale blue with a blue edge + dark tick
        4  Amber big screen      normal pale slate, big amber, booked blue
        5  Red big screen        normal pale slate, big F red, booked blue
        6  Size + amber          normal half height, big full height amber, booked blue
        7  Amber big, red booked normal pale slate, big amber, booked F red
      Once he picks one, the others go and the winner stays here.
   ========================================================================== */
:root {
  --bar-norm:#94A3B8;          /* slate-400: 2.2 : 1 against the day cell, 5.7 : 1 apart from the dark big-screen bar */
  --bar-big:var(--text);
  --bar-bk:var(--accent);
  --bar-bk-tick:var(--panel);
  --bar-norm-top:0; --bar-norm-h:100%;
}
:root[data-bars="2"] { --bar-norm:var(--muted); --bar-norm-top:25%; --bar-norm-h:50%; }
:root[data-bars="3"] { --bar-bk:#A9C9E3; --bar-bk-tick:var(--text); }   /* pale blue; dark tick 8.5 : 1 on it */
/* 4-7 (Steve 12:27: "try using the colours elsewhere used for warning and danger ... a mix of the two could work"):
   F's red #991B1B and an amber. F's own amber-800 #92400E reads as brown on a thin bar, so the bars use its
   brighter sibling amber-600 #D97706 (2.7 : 1 on the day cell; a clearly different hue from slate and blue). */
:root[data-bars="4"] { --bar-big:#D97706; }                                                  /* amber big screen */
:root[data-bars="5"] { --bar-big:var(--warn); }                                              /* red big screen (F red) */
:root[data-bars="6"] { --bar-big:#D97706; --bar-norm:var(--muted); --bar-norm-top:25%; --bar-norm-h:50%; }   /* size + amber */
:root[data-bars="7"] { --bar-big:#D97706; --bar-bk:var(--warn); }                            /* amber big, red booked */

.lz.norm { background:var(--bar-norm); top:var(--bar-norm-top); height:var(--bar-norm-h); }
.lz.big  { background:var(--bar-big); }
.lz.bk   { background:var(--bar-bk); top:0; height:100%; z-index:1; }
.lz.big.bk { background:linear-gradient(var(--bar-big) 0 5px, var(--bar-bk) 5px); }   /* booked + big screen: dark top stripe */
:root[data-bars="3"] .lz.bk { box-shadow:inset 0 0 0 2px var(--accent); }
.lz.bk .tk { color:var(--bar-bk-tick); }

/* the legend swatches follow the same option */
.sw.norm { background:var(--bar-norm); }
:root[data-bars="2"] .sw.norm, :root[data-bars="6"] .sw.norm { height:5px; }
.sw.big  { background:var(--bar-big); }
.sw.bk   { background:var(--bar-bk); }
.sw.big.bk { background:linear-gradient(var(--bar-big) 0 3px, var(--bar-bk) 3px); }
:root[data-bars="3"] .sw.bk { box-shadow:inset 0 0 0 2px var(--accent); }

/* the Bars drop-down sits in the same header box as the Samples tick (Gantt only) */
.wpick select { font:600 14px/1 var(--barlow); color:var(--text); background:var(--panel); border:1px solid var(--line-strong);
  border-radius:6px; padding:5px 6px; max-width:190px; cursor:pointer; }
.wpick select:focus-visible { outline:2px solid var(--ring); outline-offset:1px; }
@media (max-width:760px) { .wpick select { max-width:120px; font-size:13px; padding:4px; } .wpick-b .wpick-l { display:none; } }   /* fits 590px wide */
@media (max-width:600px) and (orientation:portrait) {   /* phone: Bars + Samples get their own row under ODEON / Listings */
  .bar .brand:has(.wpick-b) { flex-wrap:wrap; row-gap:10px; }
  .wpick:has(.wpick-b) { order:3; flex:1 0 100%; justify-content:space-between; }
  .wpick select { max-width:none; font-size:14px; padding:6px; }
  .wpick-b .wpick-l { display:inline; }
}

/* ==========================================================================
   8. V3 SMALL FIXES
   ========================================================================== */
.nav a { white-space:nowrap; }
/* version stamp next to "Odeon" (Steve 29 Oct 11:29: "update the version date"); deploy scripts fill it in */
.vstamp { font-size:12px; font-weight:600; color:var(--muted); white-space:nowrap; }   /* "Double Bills" broke onto two lines on Gantt at ~700px wide (v2 too) */

/* ==========================================================================
   9. SHOWING LABELS (29 Oct 2026) - Odeon's tags on a showing, made loud. Steve 11:31: "invisible if I haven't
      got my glasses on ... I'd kill you if I went and saw a movie with open caps and hadn't noticed it".
      show-tags.js sorts each label into red (Open Caps, subtitles, another language), amber (Kids, Silver,
      Newbies, 3D ...) or blue (Event, £1 ...). Four looks on the "Labels" drop-down (data-labels on <html>):
        A solid pills (default) · B solid + a red / amber edge on the whole row · C big coloured words · D pale pills
      "html:root" so these beat each page's own plain .otag rules.
   ========================================================================== */
html:root .ttag { display:inline-flex; align-items:center; gap:4px; padding:3px 7px; border:0; border-radius:4px;
  font:800 12px/1.15 var(--barlow); letter-spacing:.05em; text-transform:uppercase; white-space:nowrap; }
html:root .ttag.red { background:var(--warn); color:var(--panel); }
html:root .ttag.red::before { content:'⚠'; }
html:root .ttag.amber { background:var(--caution); color:var(--panel); }
html:root .ttag.blue { background:var(--sel); color:var(--accent); box-shadow:inset 0 0 0 1px var(--accent); }
/* B: the whole showing row carries the label's colour too */
:root[data-labels="B"] .row.t-red { box-shadow:inset 5px 0 0 var(--warn); }
:root[data-labels="B"] .row.t-amber { box-shadow:inset 5px 0 0 var(--caution); }
:root[data-labels="B"] .row.t-red:not(.bk):not(.sel) { background:var(--warn-bg); }
:root[data-labels="B"] .row.t-amber:not(.bk):not(.sel) { background:var(--caution-bg); }
/* C: no boxes - big coloured capitals */
:root[data-labels="C"] .ttag { background:none !important; box-shadow:none !important; padding:0 !important; font-size:15px !important; }
:root[data-labels="C"] .ttag.red { color:var(--warn) !important; }
:root[data-labels="C"] .ttag.amber { color:var(--caution) !important; }
:root[data-labels="C"] .ttag.blue { color:var(--accent) !important; }
/* D: the gentler F pills, but bigger and bolder than before */
:root[data-labels="D"] .ttag.red { background:var(--tight-bg) !important; color:var(--warn) !important; box-shadow:inset 0 0 0 1px var(--warn-edge); }
:root[data-labels="D"] .ttag.amber { background:var(--go-bg) !important; color:var(--caution) !important; box-shadow:inset 0 0 0 1px var(--caution-edge); }
/* the card's labels for its showing, and a ⚠ beside "also showing" times that carry a red label */
.ctags { display:flex; flex-wrap:wrap; gap:6px; }
.alsowarn { color:var(--warn); font-weight:800; }
.ftip .tt-lab { display:flex; flex-wrap:wrap; gap:5px; margin-top:6px; }
