/* sagd.app -- every component styled ONCE, from tokens.css only (spec P2, §3-§5). Layout concept: the map fills the
   screen; the panel is a sheet over its lower half on a phone and a column on the right on desktop. */
@import url('/vendor/fonts.css');

*{ box-sizing:border-box; }
html, body{ margin:0; height:100%; background:var(--ink); color:var(--frost); font:var(--w-reg) var(--t-m)/1.35 var(--font); -webkit-text-size-adjust:100%; }
button{ font:inherit; color:inherit; background:none; border:0; padding:0; cursor:pointer; }
:focus-visible{ outline:2px solid var(--here); outline-offset:1px; }

/* ---------- layout ---------- */
/* P1 (preship 2026-11-05, Phil: "we zoomed the page, not the map"): the map takes every gesture, the sheet pans vertically,
   a strip that scrolls sideways keeps that; the page itself never zooms */
/* (polish-1124 item 18, Phil: a pinch outside the map zoomed the whole page, three or four times on his phone: the page allows pans only --
   pan-x pan-y has no pinch-zoom (and no double-tap zoom); the map keeps its own pinch (touch-action none, MapLibre's); the sheet, tables and
   chip strips still scroll both ways. OLD manipulation, which allows a page pinch. main.js also cancels Safari's gesture events off the map) */
html, body{ touch-action:pan-x pan-y; }
#map, #map .maplibregl-canvas{ touch-action:none; }
#sheet{ touch-action:pan-y; }
.plot-row, .bar-others{ touch-action:pan-x pan-y; }
#map{ position:fixed; inset:0; }
#sheet{ position:fixed; left:0; right:0; bottom:0; height:52vh; height:52dvh; background:var(--ink); overflow-y:auto; overscroll-behavior:contain;
  border-top:var(--line-w) solid var(--frame); transition:height .2s cubic-bezier(.2,.8,.2,1); -webkit-overflow-scrolling:touch; }   /* (item 2: a quick snap to the stop) */
/* (F2 2026-11-22: the peek height lives in the vertical layout's block below -- here it held the desktop panel at 160 px after a narrow
   window widened: shot 1121-d) */
#panel{ padding:0 0 var(--s5); }
@media (min-width:1080px){
  /* THE SWITCH (F2): this block's flag is what the script reads (js/layout.js) -- the width is written only in these @media lines */
  :root{ --wide:1; }
  #map{ right:520px; }
  #sheet{ top:0; left:auto; width:520px; height:auto; border-top:0; border-left:var(--line-w) solid var(--frame); }
}

/* ---------- top chrome: the trail (left) and the gear (right) ---------- */
#chrome{ position:fixed; top:calc(env(safe-area-inset-top, 0px) + 10px); left:10px; right:10px; display:flex; align-items:center; gap:var(--s3); pointer-events:none; z-index:20; }
@media (min-width:1080px){ #chrome{ right:530px; } }
#chrome > *{ pointer-events:auto; }
.pill{ height:38px; min-width:38px; padding:0 12px; border-radius:19px; background:#fff; color:var(--ink); font-weight:var(--w-bold); display:inline-flex; align-items:center; justify-content:center; box-shadow:0 2px 8px rgba(0,0,0,.25); }
.pill b{ font-weight:var(--w-bold); color:var(--core); }
.pill.dot{ width:38px; padding:0; }
.pill img{ max-width:26px; max-height:26px; }
.pill.ghost{ opacity:.55; }
#chrome .spacer{ flex:1; }

/* ---------- the stack (§5) ---------- */

/* Others: its members' stripes and a dark label -- its own thing, never a white border (C5, K4) */

/* region tabs */

/* M6 (2026-11-09): the shell's one "feedback" link, at the right end of the first bar, centred on its row, its right edge on the
   panel content's right edge */
/* P4 (review run, Phil 2026-11-10: "the feedback is right against the right. lets put a bit of a buffer. or center it in that space"):
   centred in the space between the bar's last item and its right edge (auto margins both sides), never closer than 16 px to
   either at desktop, 12 px on a phone (its own side padding); the whole bar height is the tap target */
.fb-link{ flex:none; align-self:stretch; display:flex; align-items:center; margin:0 auto; padding:0 16px; position:relative; left:var(--fb-shift, 0px); white-space:nowrap; font:var(--w-reg) var(--t-xs)/1.2 var(--font); color:var(--core); text-decoration:none; }
.fb-link:hover, .fb-link:focus-visible{ text-decoration:underline; text-decoration-color:var(--core); text-underline-offset:3px; }
body > #fb{ display:none; }
.card-head{ display:flex; align-items:center; }
@media (max-width:480px){ .fb-link{ padding:0 12px; } }
/* (the auto margins split the free space; the bar's gap before the link and its own right padding are not free space -- the shift
   puts the text back on the middle: half of (right padding + border - gap)) */

/* the level's head line (levels above you, Q6) and KPIs */

/* ---------- the table (§7) ---------- */
.tb-frame{ margin:var(--s3) 0; }
.tb{ width:100%; border-collapse:collapse; font-variant-numeric:tabular-nums; }
.tb th{ position:sticky; top:var(--pin-h, 0px); z-index:5; background:var(--th-bg, var(--ink)); color:var(--core); font-size:var(--t-s); font-weight:var(--w-mid); text-align:right; vertical-align:bottom; padding:var(--s3) var(--s3) var(--s2); border-bottom:var(--line-w) solid var(--frame); white-space:nowrap; }
.tb th.tb-name{ text-align:left; color:var(--frost); font-size:var(--t-m); }
.tb td{ height:var(--row); padding:0 var(--s3); text-align:right; border-bottom:var(--line-w) solid var(--line); white-space:nowrap; }
.tb td.tb-name{ text-align:left; white-space:normal; width:100%; }
.tb .tb-rank{ width:1%; padding-right:0; color:var(--core); font-size:var(--t-s); text-align:left; }
.tb-title{ display:inline-flex; align-items:center; gap:var(--s2); }
.tb-sub{ display:block; font-size:var(--t-s); font-weight:var(--w-reg); color:var(--core); }
.tb-main{ display:block; }
.tb-second{ display:block; font-size:var(--t-s); color:var(--core); }
.tb-row[data-go]{ cursor:pointer; }
.tb-row:hover td{ background:var(--raise); }
.tb-lit td{ background:var(--raise); }
.tb-total td{ font-weight:var(--w-bold); border-top:var(--line-w) solid var(--frame); border-bottom:0; }
.tb-unit{ font-size:var(--t-s); font-weight:var(--w-reg); color:var(--core); }
.tb .mark{ height:20px; width:auto; vertical-align:middle; margin-right:var(--s3); }
.tb-est{ font-size:var(--t-xs); color:var(--core); margin-right:1px; }
@media (max-width:480px){ .tb .tb-wide{ display:none; } }

/* ---------- THE TIP (WORDS run 2026-11-11, W1): the one hover / tap / focus component (ui/tip.js) ---------- */
.tip{ position:fixed; z-index:80; left:0; top:0; width:max-content; max-width:min(240px, calc(100vw - 16px)); padding:var(--s3) var(--s4) 7px; pointer-events:none;
  background:var(--raise-2); border:var(--line-w) solid var(--frame); border-radius:0; color:var(--frost); font:var(--w-reg) var(--t-card)/1.4 var(--font); text-align:left; white-space:normal; box-shadow:var(--shadow-card);
  display:flex; flex-direction:column; gap:3px; }
.tip[data-kind="definition"]{ max-width:min(260px, calc(100vw - 16px)); }
.tip[hidden]{ display:none; }
/* (a hover card never takes the pointer -- it sits over a neighbouring block or name; a pinned card does: its "Open ›") */
.tip.hc-pin{ pointer-events:auto; }
/* THE CARD (HOVERS run 2026-11-20): one look for every hover -- name row, label / value rows, sentence, grey source, grey foot */
.hc-h{ display:flex; align-items:center; gap:var(--s3); min-width:0; }
.hc-logo{ display:inline-flex; flex:none; }
.hc-logo .pop-logo{ min-width:18px; max-width:40px; height:18px; padding:0 2px; }
.hc-logo .pop-logo img{ max-height:14px; max-width:36px; }
.hc-logo .pop-ini{ font-size:9px; }
.hc-logo .hc-sw{ display:block; width:12px; height:12px; background:var(--c, #8fa6b3); outline:var(--line-w) solid rgba(0,0,0,.5); outline-offset:-1px; }
.hc-name, .hc-term{ font-weight:var(--w-bold); line-height:1.3; overflow-wrap:anywhere; }
.hc-sub{ color:var(--core); }
.hc-rows{ display:grid; grid-template-columns:max-content minmax(0, 1fr); gap:1px var(--s4); margin:2px 0 0; }
.hc-r{ display:contents; }
.hc-r dt{ color:var(--core); white-space:nowrap; }
.hc-r dd{ margin:0; min-width:0; overflow-wrap:anywhere; }
.hc-g{ display:block; color:var(--core); font-size:var(--t-s); line-height:1.3; }
.hc-body{ display:block; }
.hc-cites{ display:flex; flex-direction:column; gap:var(--s2); }
.hc-cite{ display:flex; flex-direction:column; gap:1px; }
.hc-src, .hc-foot{ display:block; color:var(--core); font-size:var(--t-s); line-height:1.35; }
.hc-foot{ margin-top:2px; }
.tip .tip-open{ display:block; margin-top:2px; color:var(--frost); }
[data-tip]{ cursor:help; }
a[data-tip], button[data-tip], [data-go] [data-tip], th[data-tip]{ cursor:pointer; }
[data-tip]:focus-visible{ outline:1px dotted var(--frost); outline-offset:2px; }
.tb-why{ color:var(--core); }

/* ---------- the opener chart (§6) ---------- */
.opener-wrap{ position:relative; margin:var(--s3) 0; }
.opener{ display:block; width:100%; height:auto; overflow:visible; }
.opener text{ font-family:var(--font); }
.ch-end{ font-size:20px; font-weight:var(--w-bold); }
.ch-end-s{ font-size:16px; }
.ch-end-u{ font-size:10px; font-weight:var(--w-mid); }
.ch-guide{ font-size:9px; opacity:.8; }
.ch-mark{ font-size:9px; fill:var(--core); }
.ch-date{ font-size:10px; fill:var(--core); }
.opener-tools{ display:flex; justify-content:flex-end; gap:var(--s2); align-items:center; margin-bottom:var(--s2); }
.chip{ height:24px; padding:0 var(--s3); border:var(--line-w) solid var(--frame); color:var(--core); font-size:var(--t-s); }
.chip[aria-pressed="true"]{ background:var(--frost); color:var(--ink); border-color:var(--frost); }

/* ---------- sections ---------- */
.note{ color:var(--core); font-size:var(--t-s); padding:var(--s3) 0; }
.loading{ color:var(--core); padding:var(--s5) var(--s3); }

/* marks and swatches in table names; the children bar; open Others rows; the levels-above line */
.tb td.tb-name{ display:table-cell; }
.tb-name .tb-dot{ float:left; display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px; margin:5px var(--s3) 0 0; background:var(--bx); }
.tb-name .tb-dot .mark{ max-width:20px; max-height:20px; margin:0; }
.tb-swatch{ display:inline-block; width:10px; height:10px; margin-right:var(--s3); vertical-align:middle; }
.tb-tag{ font-style:normal; font-size:var(--t-s); color:var(--core); }

/* the trail's drop-down (N1) */
#chrome{ flex-wrap:wrap; }
.trail{ display:flex; gap:var(--s3); align-items:center; flex-wrap:wrap; }
.pill.open{ outline:2px solid var(--here); outline-offset:1px; }
.trail-drop{ position:absolute; top:46px; left:0; width:min(320px, calc(100vw - 20px)); max-height:min(60vh, 460px); overflow-y:auto; background:var(--raise-2); border:var(--line-w) solid var(--frame); box-shadow:0 10px 24px rgba(0,0,0,.45); padding:var(--s2) 0; }
.trail-item{ display:flex; align-items:center; gap:var(--s3); width:100%; min-height:var(--row); padding:0 var(--s4); text-align:left; color:var(--frost); }
.trail-item:hover, .trail-item.lit{ background:var(--raise); }
.trail-item.lit{ box-shadow:inset 3px 0 var(--here); }
.ti-name{ flex:1; }
.ti-val{ color:var(--core); font-size:var(--t-s); font-variant-numeric:tabular-nums; }
.ti-mark{ height:18px; width:auto; }
.ti-dot{ display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px; flex:none; }
.ti-dot img{ max-width:18px; max-height:18px; }
/* the gear and its drawer (N2) */
.gear{ font-size:18px; margin-left:auto; }
.drawer{ position:fixed; top:0; right:0; bottom:0; width:min(320px, 88vw); background:var(--raise-2); border-left:var(--line-w) solid var(--frame); padding:calc(env(safe-area-inset-top, 0px) + var(--s5)) var(--s5) var(--s5); z-index:50; display:flex; flex-direction:column; gap:var(--s5); }
.drawer-head{ display:flex; justify-content:space-between; align-items:center; }
.drawer-t{ font-size:var(--t-s); color:var(--core); text-transform:uppercase; letter-spacing:.08em; margin-bottom:var(--s3); }
.opt{ display:flex; align-items:center; gap:var(--s3); min-height:var(--tap); }
.drawer-link{ color:var(--frost); }
.drawer-foot{ margin-top:auto; color:var(--core); font-size:var(--t-s); line-height:1.45; }
/* map hover card (desktop) */
.maplibregl-popup-content{ background:var(--raise-2); color:var(--frost); border:var(--line-w) solid var(--frame); border-radius:0; box-shadow:var(--shadow-card); padding:var(--s3) var(--s4); font:var(--t-m)/1.35 var(--font); }
.maplibregl-popup-tip{ display:none; }
/* the opener map's overlay (map/marks.js): bars and squares -- over the canvas, under the popups and controls; only the
   marks themselves take a tap (the names are MapLibre's own layer, map.js proj-label) */
.mk{ position:absolute; inset:0; pointer-events:none; z-index:1; overflow:hidden; }
.maplibregl-popup{ z-index:3; }
.hov-pop{ pointer-events:none; }
.mk-svg{ position:absolute; left:0; top:0; }
.mk-hit rect{ cursor:pointer; }
.hov{ display:flex; gap:var(--s3); align-items:center; }
.hov span{ color:var(--core); font-size:var(--t-s); }
.hov-dot{ width:26px; height:26px; display:inline-flex; align-items:center; justify-content:center; flex:none; }
.hov-dot img{ max-width:20px; max-height:20px; }
.hov-k{ display:flex; gap:var(--s4); margin-top:var(--s2); color:var(--core); font-size:var(--t-s); }
.hov-k b{ color:var(--frost); font-size:var(--t-m); }
/* Project Data */
.details{ margin:var(--s3) 0; }
.chip-go{ display:inline-flex; align-items:center; height:var(--tap); padding:0 var(--s4); color:var(--frost); text-decoration:none; font-size:var(--t-m); font-weight:var(--w-mid); }

/* a phone: bars a touch shorter at rest; below the company level the sheet stands higher (B2) */
@media (max-width:480px){
  :root{ --bar:34px; }
  #sheet.deep{ height:60vh; height:60dvh; }
  .opener-tools .chip{ height:22px; }
  
}

/* a heading may wrap to two lines; a figure never does (B3) */
.tb th.tb-num{ white-space:normal; min-width:34px; line-height:1.15; }
.tb td{ padding:0 var(--s2); }
.tb th{ padding-left:var(--s2); padding-right:var(--s2); }
#panel{ overflow-x:clip; }

/* the Project Data card (N4) */
#sheet.card-open #panel{ display:none; }
#card{ padding:var(--s4) var(--s4) var(--s5); --logo-w:34px; --logo-gap:var(--s3); }   /* the title's logo column: the name and the line under it start past it */
.card-head{ position:sticky; top:0; z-index:7;   /* (phone audit P12, 2026-11-22: above a table heading -- a positioned th, z 5 -- that scrolled up over the pinned Back button) */  background:var(--ink); padding:var(--s2) 0 var(--s3); }
.card-title{ display:flex; align-items:center; gap:var(--logo-gap); margin:var(--s3) 0; }
.card-title b{ display:block; font-size:var(--t-l); }
.card-title span{ color:var(--core); font-size:var(--t-s); }
.card-title .tb-dot{ display:inline-flex; align-items:center; justify-content:center; width:var(--logo-w); height:var(--logo-w); flex:none; background:var(--bx); }
.card-ranks{ display:grid; grid-template-columns:repeat(var(--n, 4), minmax(0, 1fr)); gap:var(--s3); margin:var(--s3) 0; }
.cr{ background:var(--raise); padding:var(--s3); display:flex; flex-direction:column; gap:2px; min-width:0; }
.cr > *{ display:block; line-height:1.25; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cr b{ font-size:var(--t-l); }
.cr span{ color:var(--core); font-size:var(--t-s); }
/* (review run, after the preview shots: five tiles cut their labels -- "AER producing ...", "kbpd bit..." at 390. A label wraps to
   two lines; on a phone the tiles sit three to a row) */
.cr > span{ white-space:normal; overflow:visible; text-overflow:clip; }
@media (max-width:480px){ .card-ranks{ grid-template-columns:repeat(3, minmax(0, 1fr)); } }
.cr i{ font-style:normal; color:var(--frost); font-size:var(--t-s); font-weight:var(--w-reg); }
.cr .cr-flag{ height:.9em; width:auto; margin-right:var(--s2); vertical-align:-0.05em; }   /* the region tab's Canada flag: the rank is in Canada */
.card-sec{ border-top:var(--line-w) solid var(--frame); }
.card-sec > summary{ list-style:none; cursor:pointer; min-height:var(--tap); display:flex; align-items:center; font-weight:var(--w-mid); padding:var(--s3) 0; }
.card-sec > summary::before{ content:'▸'; color:var(--core); margin-right:var(--s3); }
.card-sec[open] > summary::before{ content:'▾'; }
.card-body ul{ margin:0; padding-left:var(--s5); display:grid; gap:var(--s2); }
.card-body li{ line-height:1.4; }
.feed-y{ border-bottom:var(--line-w) solid var(--line); }
.feed-y > summary{ list-style:none; cursor:pointer; display:flex; gap:var(--s4); align-items:baseline; min-height:var(--tap); padding:var(--s2) 0; }
.fy{ font-weight:var(--w-bold); width:44px; }
.fh{ color:var(--core); }
.fh b{ color:var(--frost); }
.fh i.up{ color:#7fd39a; font-style:normal; }
.fh i.dn{ color:#e8836b; font-style:normal; }
.feed-y ul{ padding-bottom:var(--s3); }
.route-l{ margin:var(--s2) 0; }
.cap{ color:var(--core); }
.fact-g{ margin-bottom:var(--s3); }
.card-foot{ margin-top:var(--s5); }
.card-title .tb-dot .mark{ max-width:26px; max-height:26px; width:auto; height:auto; margin:0; }

/* filed plots and figures */
.plots{ margin:var(--s4) 0; }
.plot-row{ display:flex; gap:var(--s3); overflow-x:auto; padding-bottom:var(--s2); -webkit-overflow-scrolling:touch; }
.plot{ flex:none; width:120px; display:flex; flex-direction:column; gap:2px; color:var(--core); font-size:var(--t-s); text-align:left; }
.plot img{ width:120px; height:92px; object-fit:cover; background:#fff; border:var(--line-w) solid var(--line); }
.plot-wide{ width:160px; } .plot-wide img{ width:160px; height:110px; }
.plot span{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#plot-view{ position:fixed; inset:0; z-index:80; background:rgba(var(--ink-rgb),.94); display:flex; align-items:center; justify-content:center; padding:var(--s5); }
#plot-view figure{ margin:0; max-width:100%; max-height:100%; display:flex; flex-direction:column; gap:var(--s3); }
#plot-view img{ max-width:100%; max-height:80vh; object-fit:contain; background:#fff; }
#plot-view figcaption{ color:var(--frost); font-size:var(--t-s); }

/* ---------- 2026-10-29 late (Phil's 9:50 / 10:01 / 10:16 notes) ---------- */
/* logos keep their own shape in every box they sit in (Cenovus and CNRL were squeezed square) */
img.mark, img.logo, .pill img, .ti-mark{ object-fit:contain; }
.tb .mark, .tb-name .tb-dot .mark{ width:20px; height:20px; max-width:none; max-height:none; }

/* the path reads bright, everything off it dims: in a bar that has a pick, the other boxes' text takes their own box
   colour, darkened (on a light box) or lightened (on a dark one) the same amount everywhere; their logos fade */
   /* (Phil: "needs to be dimmer when one project is selected") */

/* the level's five numbers: a figure, then its unit and its period in two small lines */

.kc{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.kc b{ font-size:var(--t-l); font-weight:var(--w-reg); color:var(--frost); line-height:1; margin:0; }
.kc-oil b{ color:var(--oil); } .kc-steam b{ color:var(--steam); } .kc-sor b{ color:var(--sor); }
.kc-vol b{ font-weight:var(--w-bold); }   /* U16: the bitumen and steam rates bold; iSOR, cSOR, capacity regular */
.kc i{ font-style:normal; font-size:var(--t-xs); line-height:1.15; color:var(--core); white-space:nowrap; }
.kc .tb-est{ font-size:var(--t-s); }

@media (max-width:480px){ .kc b{ font-size:18px; } .kc i{ white-space:normal; overflow-wrap:anywhere; } }   /* (R10: "kbpd steam capacity" / "peak month Jun '24" wraps at 375, never clips) */
@media (max-width:360px){ .kc b{ font-size:16px; }  }

/* the chart's corner: All time and the source, over the bottom-right of the bands */
.opener-wrap{ position:relative; }
.opener-wrap .opener-tools{ position:absolute; right:0; bottom:var(--s2); margin:0; }
.opener-wrap .chip{ background:rgba(var(--ink-rgb),.8); height:20px; }

/* nothing runs off the right edge: the sheet never scrolls sideways, and a source bubble stays on screen */
html, body, #sheet{ overflow-x:hidden; }
.drawer-foot a{ color:var(--core); }

/* the hero bar's shares, under each box (classic had them; Phil: "that needs to be there") */

/* U12: placed under its own box (stack.js placePcts: each share at its box's left + width); a non-breaking space keeps the row's line */

/* a table's name cell: mark and name centred on the row (Phil: "the project is off-center") */
.tb-nm{ display:flex; align-items:center; gap:var(--s3); min-height:var(--row); }
.tb-nm-t{ display:flex; flex-direction:column; justify-content:center; min-width:0; }
.tb-name .tb-dot{ float:none; margin:0; flex:none; }
/* headings: a label and its unit/period, two lines at most */
.tb th .tb-sub{ font-size:var(--t-xs); white-space:nowrap; }
.tb th.tb-name .tb-sub{ font-size:var(--t-s); }
.ch-low{ font-size:11px; font-weight:var(--w-bold); paint-order:stroke; stroke:var(--ink); stroke-width:3px; stroke-linejoin:round; }
.al-name{ color:var(--frost); font-weight:var(--w-bold); font-size:var(--t-m); }
/* an open Others row inside the pinned bar: the second row of the same level */

/* the table, Phil's 11:09 markup: the month over bitumen, steam and iSOR, ruled left and right; smaller text */
.tb th.tb-grp{ height:16px; padding:var(--s2) var(--s2) 0; border-bottom:0; text-align:center; font-size:var(--t-s); color:var(--core); font-weight:var(--w-mid); }
.tb-grouped .tb-hrow th{ top:calc(var(--pin-h, 0px) + 16px + var(--s2)); }
.tb .tb-g0{ border-left:var(--line-w) solid var(--frame); }
.tb .tb-g1{ border-right:var(--line-w) solid var(--frame); }
@media (max-width:480px){
  .tb td{ font-size:12px; padding:0 3px; }
  .tb td.tb-name{ font-size:var(--t-m); }
  .tb th{ font-size:var(--t-xs); padding-left:3px; padding-right:3px; }
  .tb td.tb-wells{ padding-left:3px; }
  .tb .tb-rank{ font-size:var(--t-xs); }
  .tb-name .tb-dot{ width:22px; height:22px; }
  .tb .mark, .tb-name .tb-dot .mark{ width:17px; height:17px; }
}
/* a grouped head pins as one block (two sticky rows let the rows beneath show through between them) */
.tb-grouped thead{ position:sticky; top:var(--pin-h, 0px); z-index:5; background:var(--th-bg, var(--ink)); }
.tb-grouped thead th{ position:static; }
@media (max-width:380px){ .tb td, .tb th{ padding-left:2px; padding-right:2px; } }

/* the Project Data pill: under the trail while you are inside a project */

/* (OLD: the grabber -- an 18 px strip of its own between the map and the tabs, holding only the handle. NEW, Phil 2026-11-21, his shot
   1121-c: "what is this space? ... put the slide control of the window over by the X instead and give us map space here") THE GRIP
   (phone): one control at the right end of the sheet's first row, 44 px square -- drag it to size the sheet, tap it to go between the
   resting height and full height. It scrolls with the row (the sheet's top row is the drag area too, as before, while the sheet is at
   its top). The first row keeps clear of it. */
/* (polish-1124 item 2, Phil: "make it a real button styled like the tabs beside it, living outside the scrolling content so it never scrolls
   away and always responds") THE GRIP: a button in the tab's look (its border, its raised ground, its height), on a zero-height bar that is
   sticky at the top of the sheet -- it stays at the sheet's top edge however far the panel is scrolled; a finger's 44 px round it. OLD: a bare
   icon in a 44 px square, absolute in the scrolling sheet: scrolled away with the content */
#grip, #grip-bar{ display:none; }
@media (max-width:1079.98px){
  #sheet{ --grip-w:44px; border-top:0; }
  #grip-bar{ display:block; position:sticky; top:0; height:0; z-index:40; }
  /* (once the panel scrolls, the grip's bar is a 44 px strip of the sheet's ground at its top -- a table's head pins under it (ui/table.js
     wireStickyHeads), never under the grip; no layout shift: its height is given back by its margin) */
  #sheet.scrolled #grip-bar{ height:44px; margin-bottom:-44px; background:var(--ink); }
  #grip{ display:flex; position:absolute; top:6px; right:6px; width:34px; height:32px; box-sizing:border-box; padding:0; align-items:center; justify-content:center; border:var(--line-w) solid var(--frame); border-radius:0; background:var(--raise-2); color:var(--frost); touch-action:none; cursor:grab; }
  #grip::after{ content:''; position:absolute; inset:calc(-6px - var(--line-w)); }   /* (the 44 px finger target: 6 px round the BORDER box; OLD -6px from the padding box left it 42 px tall) */
  #grip:active{ cursor:grabbing; }
  #grip svg{ display:block; width:18px; height:18px; }
  #sheet.card-open #grip-bar{ display:none; }
  #panel .scr > :first-child{ margin-right:var(--grip-w); }
  .scr-tabs .tab{ flex-shrink:0; }   /* (the tabs never squeeze under their text: ui/trail.js fitTabs gives padding, then type size, to fit beside the grip) */
  #sheet.dragging{ transition:none; }
  #sheet[data-detent="full"]{ height:88vh; height:88dvh; }
  /* (Phil 2026-11-21: "the height of the whole card should be exactly so the bottom of the treemap is at the bottom. then its maximum
     map height") the home screens' resting height: the treemap's bottom at the bottom of the visible screen (main.js restH) */
  #sheet.home[data-detent="half"]{ height:var(--rest-h, 52dvh); }
  /* (Phil 2026-11-21, B: every screen rests on its headline block -- main.js restH; the Project Data card keeps 60%) */
  #sheet[data-detent="half"]:not(.card-open){ height:var(--rest-h, 52dvh); }
  #sheet.deep[data-detent="half"]:not(.card-open){ height:var(--rest-h, 60dvh); }
  /* (polish-1124 item 15, Phil: a bare band above "Back to <project>" at 481-1079 px: the map was sized for 60% (main.js detentH) while this
     sheet fell to the base 52%. ONE height: the card's sheet is the height main.js gives the map's complement, --stop-h (syncMapHeight)) */
  #sheet.card-open[data-detent="half"]{ height:var(--stop-h, 60dvh); }
}
@media (max-width:1079.98px){
  /* (item 2) MIN: the first row alone (the tabs, or the name row below a project) -- the map at full height */
  #sheet[data-detent="min"], #sheet.deep[data-detent="min"], #sheet.home[data-detent="min"]{ height:var(--min-h, 48px); }
  #sheet.deep[data-detent="full"]{ height:88vh; height:88dvh; }
}
/* (phone audit P10: on its side a phone's sheet rests at 38% of the height -- main.js LAND_REST -- the map keeps the rest) */
@media (max-width:1079.98px) and (orientation:landscape) and (max-height:599px){
  #sheet[data-detent="half"], #sheet.deep[data-detent="half"]{ height:38vh; height:38dvh; }
  #sheet.card-open[data-detent="half"]{ height:var(--stop-h, 38dvh); }
}
/* (phone audit P11, 2026-11-21: the safe areas -- the panel's foot clears the home indicator, the chrome and the sheet's content clear
   a notch on a phone on its side) */
#panel{ padding-bottom:calc(var(--s5) + env(safe-area-inset-bottom, 0px)); }
#chrome{ left:calc(10px + env(safe-area-inset-left, 0px)); }
@media (max-width:1079.98px){
  #map .maplibregl-ctrl-zoom-in, #map .maplibregl-ctrl-zoom-out, #map .maplibregl-ctrl-group{ display:none; }   /* (F2: the zoom buttons are the desktop layout's; a phone pinches) */
  #chrome{ right:calc(10px + env(safe-area-inset-right, 0px)); }
  #sheet{ padding-left:env(safe-area-inset-left, 0px); padding-right:env(safe-area-inset-right, 0px); }
}

/* Project Data: the latest filing, the reservoir grid, and a citation under every line (shown, not hidden) */
.card-latest{ margin:var(--s3) 0; color:var(--core); font-size:var(--t-s); }
.card-title.has-mark + .card-latest{ padding-left:calc(var(--logo-w) + var(--logo-gap)); }
/* the summary under the rank tiles: one line per fact, two columns on a desktop, one on a phone; an odd last line spans both */
.card-sum{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:var(--s2) var(--s4); margin:var(--s3) 0 var(--s4); }
.card-sum > .rv-l:last-child:nth-child(odd){ grid-column:1 / -1; }
.card-sum .rv-l > span:first-child{ width:7.5em; }
.card-sum .rv-v i{ font-style:normal; color:var(--core); }
@media (max-width:480px){ .card-sum{ grid-template-columns:minmax(0, 1fr); } }
.card-latest b{ color:var(--frost); }
.card-latest a, .cite a{ color:var(--oil); }
.rv-grid{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:var(--s3); }
.rv{ background:var(--raise); padding:var(--s3) var(--s4); display:flex; flex-direction:column; gap:2px; min-width:0; }
.rv span{ color:var(--core); font-size:var(--t-s); }
.rv b{ font-size:var(--t-l); }
.rv b i{ font-style:normal; font-size:var(--t-s); color:var(--core); font-weight:var(--w-reg); }
.rv em{ font-style:normal; font-size:var(--t-s); color:var(--core); }
.cite{ font-size:var(--t-s); color:var(--core); margin-top:2px; }
.cite > summary{ list-style:none; cursor:pointer; display:inline-flex; align-items:center; gap:4px; color:var(--oil); }
.cite > summary::before{ content:'§'; opacity:.8; }
.cite blockquote{ margin:var(--s2) 0; padding:var(--s2) var(--s3); border-left:2px solid var(--oil); color:var(--frost); font-size:var(--t-s); white-space:normal; }
li .cite{ display:block; }
/* tables, 2026-10-30 (Phil: "i dont love the lines... slight color differences to show the things we want to show.
   centered?"): no rules between rows or around the month; the month's columns sit on a faint tint; figures centred */
.tb td{ border-bottom:0; }
.tb .tb-g0, .tb .tb-g1{ border-left:0; border-right:0; }
.tb th{ border-bottom:0; }
.tb thead tr:last-child th{ box-shadow:inset 0 -1px 0 var(--line); }
.tb td.tb-num, .tb th.tb-num, .tb th.tb-grp{ text-align:center; }
.tb-grouped td.tb-gm, .tb-grouped th.tb-gm, .tb-grouped th.tb-grp.tb-g0{ background:rgba(238,236,230,.045); }
.tb-total td{ border-top:0; background:var(--raise); }
.tb th.tb-sort, .tb th.tb-name{ cursor:pointer; }
.tb th[aria-sort="descending"]::after{ content:' ▾'; color:var(--oil); }
.tb th[aria-sort="ascending"]::after{ content:' ▴'; color:var(--oil); }
.tb-fly{ cursor:pointer; }
/* the company bar is to scale (Phil 2026-10-30: "this makes it seem like cenovus is not dominant. they are"): every box
   exactly its share; a logo shrinks inside its box, Others takes only its own share */

/* "bitumen" everywhere; "oil" only where space is short (Phil 2026-10-30): a phone's table heading */
.tb-sm{ display:none; }
@media (max-width:480px){ .tb-lg{ display:none; } .tb-sm{ display:inline; } }
.tb-area td{ font-weight:var(--w-bold); }
/* tables inside Project Data scroll with the card (their heads would pin over its Back button) */
#card .tb th, #card .tb-grouped thead{ position:static; }
/* desktop: a size up and a wider panel (the phone sizes read small on a big screen) */
@media (min-width:1080px){
  :root{ --t-xs:10px; --t-s:12px; --t-m:14px; --t-l:22px; --tb-title:16px; --bar:44px; --bar-thin:30px; }
  #map{ right:600px; } #sheet{ width:600px; } #chrome{ right:610px; }
}
/* the full chart (trio) and the crosshair */
.trio-wrap{ margin:var(--s4) 0; }
.trio{ margin:0; position:relative; touch-action:pan-y; }
.trio svg{ display:block; width:100%; height:auto; }
.tr-grid{ stroke:var(--line); stroke-width:1; }
.tr-yr{ stroke:var(--line); stroke-width:1; stroke-dasharray:2 3; }
.tr-ax{ font:9px var(--font); fill:var(--core); }
.tr-oil{ fill:none; stroke:var(--oil); stroke-width:1.8; }
.tr-steam{ fill:none; stroke:var(--steam); stroke-width:1.4; }
.tr-isor{ fill:none; stroke:var(--sor); stroke-width:.9; opacity:.6; }
.tr-csor{ fill:none; stroke:var(--sor); stroke-width:1.8; }
.tr-key{ font:9px var(--font); fill:var(--core); }
.k-oil{ fill:var(--oil); color:var(--oil); } .k-steam{ fill:var(--steam); color:var(--steam); } .k-isor, .k-csor{ fill:var(--sor); color:var(--sor); }
.tr-flag.up{ fill:var(--oil); } .tr-flag.ms{ fill:var(--core); opacity:.7; }
.scrub-x{ stroke:var(--frost); stroke-width:1; opacity:.8; }
.scrub-read{ min-height:16px; font-size:var(--t-s); color:var(--core); font-variant-numeric:tabular-nums; }
.scrub-read b{ color:var(--frost); }
.scrub-ev{ font-size:var(--t-s); color:var(--core); }
.scrub-ev .up{ color:var(--oil); }
.opener-wrap{ touch-action:pan-y; }
.opener-wrap .scrub-read{ position:absolute; top:0; right:0; text-align:right; pointer-events:none; }
.trio-t{ display:flex; align-items:center; gap:var(--s2); font-weight:var(--w-mid); color:var(--frost); font-size:var(--t-m); margin-bottom:var(--s2); }
/* an Others row: every member at its whole name, a strip you swipe sideways (its shares are too small to size boxes) */

/* THE ONE POPUP (Phil 2026-11-19): every line and terminal on the map, one frame (map/popup.js) -- logo + name + subtitle, then
   label / value rows (labels lower case, as the tables' headings), a rule, the licence and the sources. Fits a 390 px phone. */
.tap-pop{ max-width:min(340px, calc(100vw - 24px)) !important; }
.tap-pop .maplibregl-popup-content{ padding:var(--s4) var(--s4) var(--s3); }
.tap-pop .maplibregl-popup-close-button{ color:var(--core); font-size:20px; width:32px; height:32px; padding:0; line-height:32px; z-index:2; }  /* (above the sticky name row .pop-h, z-index 1: a tap on the x reaches the button) */
.pop{ display:flex; flex-direction:column; gap:var(--s3); font-size:var(--t-s); color:var(--frost); min-width:0; overflow-wrap:anywhere; overflow-y:auto; overscroll-behavior:contain; }
/* a card capped to the open map scrolls: a thin bar, and its foot fades while more lies below (map.js toggles .pop-more) */
.pop{ scrollbar-width:thin; scrollbar-color:var(--core) transparent; }
.pop.pop-more{ -webkit-mask-image:linear-gradient(to bottom, #000 calc(100% - 32px), transparent); mask-image:linear-gradient(to bottom, #000 calc(100% - 32px), transparent); }
.pop-h{ display:flex; align-items:flex-start; gap:var(--s3); padding-right:24px; }
/* (phone audit P5 / Phil's shot 1121-f: the name row is read first -- it stays pinned while the card's body scrolls under it) */
.pop-h{ position:sticky; top:0; z-index:1; background:var(--raise-2); padding-bottom:var(--s2); }
.pop-hd{ min-width:0; }
.pop-t{ font-size:var(--t-m); font-weight:var(--w-bold); line-height:1.25; }
.pop-s{ color:var(--core); font-weight:var(--w-reg); line-height:1.35; margin-top:2px; }
.pop-logo{ display:inline-flex; flex:none; align-items:center; justify-content:center; min-width:28px; max-width:64px; height:28px; padding:0 3px; background:var(--bx, #8fa6b3); box-sizing:border-box; }
.pop-logo img{ display:block; max-height:22px; max-width:58px; width:auto; height:auto; object-fit:contain; }
.pop-ini{ width:28px; background:#56626a; color:var(--frost); font-size:11px; font-weight:var(--w-bold); letter-spacing:.02em; }
.pop-rows{ display:grid; grid-template-columns:max-content minmax(0, 1fr); gap:var(--s2) var(--s4); margin:0; }
.pop-r{ display:contents; }
.pop-r dt{ color:var(--core); white-space:nowrap; }
.pop-r dd{ margin:0; min-width:0; line-height:1.35; }
.pop-b{ margin:0; color:var(--frost); line-height:1.35; }
.pop-g{ display:block; color:var(--core); font-size:var(--t-xs); line-height:1.3; }
.pop-fine{ border-top:1px solid var(--line); padding-top:var(--s3); font-size:11px; }
.pop-fine dd{ color:var(--core); }
.pop-fine a{ color:var(--frost); text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:2px; }
.pop-dotsep{ color:var(--core); }
/* THE RECEIPT (Phil 2026-10-30: "that specific page of the pdf right there for you"): the year a filed figure is for,
   orange and underlined, is the link (10-31: the i and its circle are gone everywhere); a 44px target; the sheet it
   opens comes from the bottom on a phone, a centred panel on desktop */
.rcpt{ position:relative; display:inline; margin-left:0; padding:0; color:var(--oil); font:inherit; font-weight:var(--w-mid); text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px; white-space:nowrap; }
.rcpt::before{ content:''; position:absolute; top:50%; left:-6px; right:-6px; height:44px; transform:translateY(-50%); }   /* (phone audit P8: a 44 px finger target) */
#receipt{ position:fixed; inset:0; z-index:90; display:flex; align-items:flex-end; justify-content:center; }
#receipt[hidden]{ display:none; }
html.rc-lock, html.rc-lock body, html.rc-lock #sheet{ overflow:hidden; }
.rc-scrim{ position:absolute; inset:0; background:rgba(var(--ink-rgb),.72); }
.rc-sheet{ position:relative; width:100%; max-height:92vh; max-height:92dvh; overflow-y:auto; overscroll-behavior:contain; background:var(--ink); border-top:var(--line-w) solid var(--frame);
  padding:0 var(--s4) calc(env(safe-area-inset-bottom, 0px) + var(--s5)); display:flex; flex-direction:column; gap:var(--s3); }
.rc-top{ position:sticky; top:0; z-index:2; display:flex; align-items:center; justify-content:center; height:40px; background:var(--ink); margin:0 calc(var(--s4) * -1); }
.rc-grab{ width:40px; height:5px; border-radius:3px; background:var(--core); opacity:.7; }
.rc-x{ position:absolute; right:var(--s2); top:0; width:44px; height:40px; font-size:24px; line-height:1; color:var(--core); }
.rc-view{ background:#fff; }
.rc-frame{ position:relative; width:100%; overflow:hidden; }
.rc-frame img{ display:block; width:100%; height:100%; touch-action:none; user-select:none; -webkit-user-select:none; will-change:transform; }
.rc-nav{ display:flex; align-items:center; justify-content:center; gap:var(--s4); color:var(--core); font-size:var(--t-s); }
.rc-nav[hidden]{ display:none; }
.rc-nav button{ width:44px; height:36px; font-size:22px; color:var(--frost); }
.rc-text{ display:flex; flex-direction:column; gap:var(--s2); }
.rc-q{ margin:0; padding:var(--s2) var(--s3); border-left:2px solid var(--oil); color:var(--frost); font-size:var(--t-s); white-space:normal; overflow-wrap:anywhere; }
.rc-fix{ font-size:var(--t-s); color:var(--frost); }
.rc-cap{ font-size:var(--t-s); color:var(--core); }
.rc-links{ display:flex; flex-wrap:wrap; gap:var(--s2) var(--s4); }
.rc-l{ color:var(--oil); font-size:var(--t-s); text-decoration:none; padding:var(--s2) 0; }
@media (min-width:1080px){
  #receipt{ align-items:center; }
  .rc-sheet{ width:min(900px, calc(100vw - 48px)); max-height:calc(100vh - 48px); border:var(--line-w) solid var(--frame); }
  .rc-grab{ visibility:hidden; }
}
/* the site footer (spec §11): the data month, the build, Method, Privacy, Altadore, no warranty -- one short block */
.site-foot{ margin:var(--s5) var(--s3) 0; padding-top:var(--s3); border-top:var(--line-w) solid var(--line); color:var(--core); font-size:var(--t-xs); display:flex; flex-wrap:wrap; gap:var(--s2) var(--s4); }
.site-foot a{ color:var(--core); position:relative; }
/* (review run R11: tap targets on a phone at least 30 px tall -- the design standard's row = tap target -- without moving the
   layout: the footer links and the "source" links reach 30 px; the breadcrumb bar is 32 px (30 inside) and its crumbs and
   "feedback" fill it; a visually hidden heading names the view) */
.site-foot a::before{ content:''; position:absolute; left:0; right:0; top:50%; height:44px; transform:translateY(-50%); }   /* (phone audit P8: 44 px) */
.vh{ position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.site-foot p{ width:100%; margin:var(--s1) 0 0; }
/* Project Data round 2 (2026-10-30): one line per filed fact, the value and its year, the receipt by it */
.rv-lines{ display:flex; flex-direction:column; gap:var(--s2); margin-top:var(--s3); }
.rv-l{ display:flex; gap:var(--s4); align-items:baseline; font-size:var(--t-s); }
.rv-l > span:first-child{ color:var(--core); flex:none; width:76px; }
.rv-v{ color:var(--frost); min-width:0; }
.card-ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:var(--s3); font-size:var(--t-s); }
.card-ul .cap{ color:var(--core); }
.ops{ display:flex; flex-direction:column; gap:var(--s3); }
.op-l{ display:flex; align-items:center; gap:var(--s3); font-size:var(--t-s); min-width:0; }
.op-k{ color:var(--core); flex:none; width:108px; }
.op-k:empty{ visibility:hidden; }
/* (OLD: one line with an ellipsis on a phone, whole on a desktop. NEW, phone audit P6 2026-11-21: 32 notes were cut and a tap did not
   open them -- a note wraps at every width) */
.op-v{ min-width:0; flex:1 1 auto; white-space:normal; overflow-wrap:anywhere; }
.op-l{ align-items:baseline; }
.op-l .cap{ color:var(--core); flex:none; }
.rec-row{ cursor:pointer; }
.rec-row[aria-expanded="true"] td{ background:var(--raise); }
.rec-x td{ padding:var(--s3) 0 var(--s4) !important; background:var(--raise); }
.rec-chart{ position:relative; max-width:420px; margin:0 auto; }
.rec-chart svg{ display:block; width:100%; height:auto; }
.rec-line{ fill:none; stroke:var(--oil); stroke-width:1.6; }
.rec-pt{ position:absolute; width:9px; height:9px; margin:-4.5px 0 0 -4.5px; border-radius:50%; background:var(--oil); border:1.5px solid var(--ink); }
.rec-pt::before{ content:''; position:absolute; inset:-12px; }
.yrc{ white-space:nowrap; }
/* recovery by pad (10-31: "why is this so hidden"): a caret on every pad row says it opens its series */
.rec-row{ cursor:pointer; }
.rec-car::before{ content:'▸'; display:inline-block; width:1em; color:var(--oil); }
.rec-row[aria-expanded="true"] .rec-car::before{ content:'▾'; }
.ct-sub a{ color:inherit; text-decoration:underline; text-decoration-color:var(--core); text-underline-offset:3px; }
.card-latest a{ color:var(--oil); }

/* ---------- 2026-10-31, Phil's lists (Round 2 S, Round 3 T) ---------- */
/* S1: the lit tab's sides run down through the % row, so the tab meets its frame */

/* (M5, 2026-11-09, Phil: "the bar is still hanging weird at the top here": one flat row -- every share on one baseline, one
   height, no side lines and no gap in the frame's rule under the picked one; the picked share is told apart by weight and colour
   only, white and bold, as its box is in the bar. Supersedes the desktop "tab" under the picked share, PL S1.) */

/* K1 (preship 2026-11-06, Phil: "that line is looking stupid again"): on a phone the picked tile is marked by its white treatment
   alone; no outline, no connector, the frame's top line runs whole. The folder stays on the desktop. */

/* S4: a band in the stacked chart is a link */
.opener .ch-band{ cursor:pointer; }
.opener .ch-band:hover{ opacity:1; }
.opener .ch-pb{ stroke-width:0.75px; vector-effect:non-scaling-stroke; stroke-linejoin:round; outline:none; }   /* (P5d: the stroke attribute is the band's own fill, a hairline: no seam, no visible outline) */   /* (M3, 2026-11-09, Phil: "get rid of the black lines between the pads": colour alone separates the bands) */
.opener .ch-rest{ cursor:default; }
.opener-wrap .ch-over{ position:absolute; left:0; top:0; width:100%; height:auto; overflow:visible; pointer-events:none; will-change:transform; }
.opener .scrub-x, .ch-over .scrub-x{ pointer-events:none; }
.opener.ch-pads path[fill="none"]{ pointer-events:none; }
.ch-over .ch-dim{ fill:var(--ink); opacity:.45; pointer-events:none; }
.ch-over .ch-hl{ stroke:var(--frost); stroke-width:1px; vector-effect:non-scaling-stroke; pointer-events:none; }
.scrub-read .ch-name{ color:var(--frost); }
.scrub-read .ch-sw{ display:inline-block; width:8px; height:8px; margin-right:var(--s2); vertical-align:baseline; }
/* S7: every figure in every table centred (headings too); the name column reads from the left */
.tb td:not(.tb-name):not(.tb-rank), .tb th:not(.tb-name):not(.tb-rank){ text-align:center; }
/* T4: the sort arrow never takes room (a two-line heading no longer bumps the row) */
.tb-grouped thead th, .tb-grouped .tb-hrow th, #card .tb th{ position:relative; top:0; }
.tb th[aria-sort]::after{ position:absolute; top:1px; right:0; font-size:9px; line-height:1; }
/* L7: "source" is a muted link to the method page, underlined only on hover (LK R10) */
.src{ position:relative; z-index:2; flex:none; margin-left:var(--s2); padding:0 2px; font:var(--w-reg) var(--t-xs)/1.2 var(--font); color:var(--core); text-decoration:none; }
.src::before{ content:''; position:absolute; inset:-16px -10px; }   /* (OLD R11: 35 px of tap height. NEW phone audit P8 2026-11-21: 44 px) */
.src:hover, .src:focus-visible{ text-decoration:underline; text-decoration-color:var(--core); text-underline-offset:3px; }
/* the derived pad's name mark */
/* T1: the Project Data pill at the foot of a project, centred */
.details{ display:flex; justify-content:center; }
/* J: filings by year, the combo chart */
.fc-wrap{ margin:var(--s2) 0 var(--s3); }
.fc{ display:block; width:100%; height:auto; }
.fc-bar{ fill:var(--oil); opacity:.55; }
.fc-line{ fill:none; stroke:var(--frost); stroke-width:1.6; }
.fc-dot{ fill:var(--frost); }
.fc-ax{ font-size:9px; fill:var(--core); font-family:var(--font); }
.fc-key{ font-size:var(--t-s); color:var(--core); margin-bottom:var(--s2); }
.fc-key .k-oil{ color:var(--oil); } .fc-key .k-pairs{ color:var(--frost); } .fc-key b{ color:var(--frost); }

/* U4 (10-31, "CNRL has some white on white conflicts"): a brand colour reaches the UI only through its roles (engine.js
   colorRoles -> --bx fill, --bx-on text on it, --bx-accent orange on it, --bx-edge a hairline where the fill vanishes into
   the dark panel). Every tile, pill, logo dot and swatch reads them here. */
.bx, .tb-dot, .ti-dot, .pd-dot, .pop-dot, .pop-logo, .hov-dot, .tb-swatch, .pd-pill{ outline:var(--line-w) solid var(--bx-edge, transparent); outline-offset:calc(-1 * var(--line-w)); }
.ti-dot, .pop-dot, .hov-dot, .tb-swatch{ background:var(--bx); }
/* the Others tile wears the same white edge as a tile (Phil 10-31 23:15: "i put a white border on the others data (which you
   forgot)") -- this supersedes C5's "Others never wears a white border" (10-28) */

/* U5 (Phil 10-31: "when you hover, it pops up at the bottom of the table, and moves everything around... a gap basically"):
   the full chart's month reading and its filed-event caption sit in fixed slots, always there, empty until you point --
   nothing under the chart moves. A month with more events than fit scrolls inside its slot. */
.trio .scrub-read{ height:calc(2 * 1.35em); line-height:1.35; overflow:hidden; }
.trio .scrub-ev{ height:calc(3 * 1.35em); line-height:1.35; overflow-y:auto; overscroll-behavior:contain; margin-top:var(--s2); }
@media (min-width:481px){ .trio .scrub-read{ height:1.35em; white-space:nowrap; text-overflow:ellipsis; } }

/* CSS model (2026-10-31): the pads/areas table's reconciliation note, and a cyclic pad's wells by phase under its numbers */
.tb-note{ margin:var(--s1) 0 var(--s3); font-size:var(--t-xs); line-height:1.35; color:var(--core); }

/* the main tables (main-tables spec §5, 2026-11-01): the grain toggle over them; a deck figure with its filing year (the
   receipt) under it; text columns left; the Saskatchewan line under a table */
/* S1 THE segmented control (controls spec 2026-11-05): every choice of one among few. A rounded track, equal segments, the
   picked one a filled pill in the accent (design-standard A2: the accent is white, so its text is ink); height = a table row */
.seg{ position:relative; display:inline-grid; grid-auto-flow:column; grid-auto-columns:1fr; height:var(--row); margin:var(--s3) 0 0; padding:2px; border-radius:calc(var(--row) / 2); background:var(--raise); box-sizing:border-box; }
.seg::before{ content:''; position:absolute; top:2px; bottom:2px; left:2px; width:calc((100% - 4px) / var(--n, 2)); border-radius:calc(var(--row) / 2); background:var(--frost); transform:translateX(calc(100% * var(--i, 0))); transition:transform 150ms ease; }
.seg-b{ position:relative; z-index:1; min-width:96px; padding:0 var(--s4); border:0; border-radius:calc(var(--row) / 2); background:transparent; color:var(--frost); font-size:var(--t-s); font-weight:var(--w-reg); transition:color 150ms ease; }
.seg-b.seg-on{ color:var(--ink); }
.tb-fact{ display:inline-flex; flex-direction:column; align-items:center; line-height:1.15; }
.tb-fact .rcpt{ font-size:var(--t-xs); font-weight:var(--w-reg); text-underline-offset:2px; }
.tb-deck td{ height:auto; padding-top:3px; padding-bottom:3px; }
.tb-deck td.tb-txt, .tb-deck th.tb-txt{ text-align:left; }
.tb-deck td.tb-txt .tb-fact{ align-items:flex-start; }
.tb-deck td.tb-txt{ white-space:normal; min-width:5.5em; max-width:9em; }
.tb-k{ display:block; }
.tb-deck td.tb-txt .tb-main{ text-align:left; }
.card-sk{ margin:var(--s1) 0 0; font-size:var(--t-s); color:var(--core); }
/* ---------- the pad table: each pad's standing against the filing (track 16; scoped to .tb-pads) ----------
   One line each for the name and its second line (R1): what does not fit ends in an ellipsis, the whole on hover / in
   the receipt. The status mark is the small size in the muted colour, a receipt (the slide's page) on tap. */
.tb-pads td.tb-name{ max-width:0; }
.tb-pads .tb-nm, .tb-pads .tb-nm-t{ min-width:0; }
.tb-pads .tb-nm-t{ flex:1; }
.tb-pads .tb-main, .tb-pads .tb-second{ display:flex; align-items:center; min-width:0; white-space:nowrap; }
.tb-pads .tb-swatch{ flex:none; }
.tb-pads .pd-l{ display:flex; align-items:baseline; min-width:0; }
.tb-pads .pd-t{ min-width:0; overflow:hidden; text-overflow:ellipsis; }

/* ---------- THE MAIN TABLES' LOOK (spec 2026-11-02, Phil: "these tables look horrid... font sizes, spacing, links"):
   one component (ui/table.js look:'main' -> table.tb-mt) for production, reservoir, wells, facilities and steam plants,
   both grains. R1 one line per row, one row height; A1 (amendment 2026-11-04) two-line headings, the name over its unit
   ("bitumen" / "kbpd"), never three; R7 three sizes (--tb-body / --tb-small / --tb-title); R8 every column's width fixed
   (the cw-* below, the same in both grains; the name takes the rest; figures centred, names and words left); R3 the receipt
   is the cell (hover / tap), its year on the hover only (A4: no "filed" column, no year superscripts); R5 every empty cell
   the dash (.tb-dash), muted, its reason on hover; R10 no orange, no underline but on hover. */
.tb.tb-mt{ table-layout:fixed; width:100%; font-size:var(--tb-body); }
.tb.tb-mt td, .tb.tb-mt th{ padding:0 3px; }
.tb.tb-mt tbody td, .tb.tb-mt tfoot td{ height:var(--row); max-height:var(--row); font-size:var(--tb-body); line-height:1.2; vertical-align:middle; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tb.tb-mt td.tb-name{ width:auto; white-space:nowrap; }
.tb.tb-mt td.tb-txt, .tb.tb-mt th.tb-txt{ text-align:left; min-width:0; max-width:none; white-space:nowrap; }
.tb.tb-mt .tb-nm{ min-height:0; height:var(--row); gap:5px; min-width:0; }
.tb.tb-mt .tb-nm-t{ min-width:0; overflow:hidden; }
.tb.tb-mt .tb-nm-t > span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; line-height:1.2; }
.tb.tb-mt .tb-second{ font-size:var(--tb-small); line-height:1.15; }
.tb.tb-mt .tb-dot{ width:20px; height:20px; }
.tb.tb-mt .mark, .tb.tb-mt .tb-dot .mark{ width:17px; height:17px; }
.tb.tb-mt .tb-rank{ font-size:var(--tb-small); padding:0 2px 0 0; }
.tb.tb-mt .tb-est, .tb.tb-mt .tb-unit{ font-size:var(--tb-small); }
/* headings (A1): the small size, the name on one line and its unit in grey under it; a heading with no unit may wrap its
   words once. Two lines, never three. */
.tb.tb-mt th{ font-size:var(--tb-small); line-height:1.2; white-space:normal; vertical-align:bottom; padding-top:var(--s3); padding-bottom:var(--s2); overflow:visible; }
.tb.tb-mt th .tb-hn, .tb.tb-mt th .tb-hu{ display:block; white-space:nowrap; }
.tb.tb-mt th .tb-hn.tb-hw2{ white-space:normal; }
.tb.tb-mt th .tb-hw{ white-space:nowrap; }
.tb.tb-mt th .tb-u{ color:var(--core); font-weight:var(--w-reg); }
.tb.tb-mt th .tb-sub{ font-size:var(--tb-small); }
.tb.tb-mt th.tb-name{ font-size:var(--tb-small); vertical-align:bottom; }
.tb.tb-mt th.tb-name .tb-title{ font-size:var(--tb-title); font-weight:var(--w-bold); line-height:1.2; }
.tb.tb-mt th.tb-name .tb-sub{ font-size:var(--tb-small); white-space:normal; }   /* (A9: a subtitle wraps, never clips) */
.tb.tb-mt th.tb-grp{ font-size:var(--tb-small); white-space:nowrap; }
.tb.tb-mt th[aria-sort]::after{ font-size:var(--tb-small); color:var(--core); }
.tb.tb-mt .src{ font-size:var(--tb-small); }
@media (max-width:480px){ .tb.tb-mt td, .tb.tb-mt th{ padding-left:3px; padding-right:3px; } .tb.tb-mt td{ font-size:var(--tb-body); } .tb.tb-mt th{ font-size:var(--tb-small); } .tb.tb-mt .tb-rank{ font-size:var(--tb-small); } }
/* the receipt is the cell: the whole cell is the control; the figure underlines in grey on hover / focus, never orange */
.tb.tb-mt td.tb-has{ padding:0; }
.tb.tb-mt td.tb-num, .tb.tb-mt th.tb-num, .tb.tb-mt td.tb-num .tb-cl{ padding-left:2px; padding-right:2px; }
/* R9: a head its table is pushing out from under the bars is not drawn (ui/table.js wireStickyHeads) */
.tb.tb-head-off thead, .tb.tb-head-off thead th{ visibility:hidden; }
.tb.tb-mt .tb-cl{ position:relative; display:block; width:100%; height:var(--row); line-height:var(--row); padding:0 3px; color:inherit; font:inherit; text-align:inherit; text-decoration:none; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; cursor:pointer; }
/* (a link to a page outside the corpus or an AER approval is an <a>, the rest <button>s: both centre their figure the same way) */
.tb.tb-mt a.tb-cl{ display:flex; align-items:center; justify-content:center; line-height:1.2; }
.tb.tb-mt td.tb-txt a.tb-cl{ justify-content:flex-start; }
.tb.tb-mt .tb-rg{ cursor:default; display:flex; align-items:center; justify-content:center; }
.tb.tb-mt td.tb-txt .tb-rg{ justify-content:flex-start; }
.tb.tb-mt .tb-end{ color:inherit; font:inherit; line-height:1.2; vertical-align:baseline; text-decoration:none; cursor:pointer; padding:0; }
.tb.tb-mt button.tb-cl:hover .tb-main, .tb.tb-mt a.tb-cl:hover .tb-main, .tb.tb-mt .tb-cl:focus-visible .tb-main, .tb.tb-mt .tb-end:hover, .tb.tb-mt .tb-end:focus-visible{ text-decoration:underline; text-decoration-color:var(--core); text-decoration-thickness:1px; text-underline-offset:3px; }
/* R5 the dash and A5 a word in a figure's place: one token each, the muted colour, centred like the figures */
.tb.tb-mt .tb-dash{ color:var(--core); cursor:help; }
.tb.tb-mt td.tb-txt .tb-dash{ display:inline-block; padding-left:3px; }
.tb.tb-mt .tb-word{ font-size:var(--tb-small); color:var(--core); cursor:help; }
.tb.tb-mt td.tb-txt .tb-v{ display:inline-block; line-height:1.2; vertical-align:middle; }
.tb.tb-mt td.tb-txt .tb-cl{ padding-right:0; }
.tb.tb-mt td.tb-name{ padding-right:0; }
.tb.tb-mt .tb-nm{ gap:3px; }
/* the title cell never clips: "source" wraps under the title when the name column is narrow */
.tb.tb-mt th.tb-name .tb-title{ flex-wrap:wrap; column-gap:var(--s3); row-gap:0; }
.tb.tb-mt th.tb-name .src{ margin-left:0; }
/* R8: the widths (CSS px at --tb-body 13 / --tb-small 11 at weight 500 for headings; a column fits its widest heading line
   or figure + its padding). Amendment 2026-11-04: the "filed" column and the year superscripts are gone (A4), the "n of N
   filed" sub-lines too (A6), and the headings are the name over its unit (A1), so the columns are as wide as their longest
   heading line; the width goes to the name column (A8: names never truncate to the same text). */
.tb-mt col.cw-rank{ width:20px; }
.tb-mt col.cw-oil{ width:52px; }     /* "bitumen" / "kbpd" (phone "oil" / "kbpd": 36) */
.tb-mt col.cw-steam-k{ width:40px; } /* "steam" / "kbpd"; "5482" bold in the Total */
.tb-mt col.cw-sor{ width:33px; }     /* "iSOR", "20.7" */
.tb-mt col.cw-sorsince{ width:56px; }   /* "SOR" / "since '22" (definitions T1: the SOR column names its window) */
.tb-mt col.cw-cap{ width:51px; }     /* "steam" / "capacity" */
.tb-mt col.cw-share{ width:38px; }
.tb-mt col.cw-proj{ width:32px; }
.tb-mt col.cw-form{ width:85px; }    /* "Grand Rapids": the primary alone, the list on hover (A11) */
.tb-mt col.cw-caprock{ width:110px; } /* "Clearwater shale": the lithology word stays (A12) */
.tb-mt col.cw-depth{ width:61px; }   /* "490–530"; a range from two pages is two links, "200–280" */
.tb-mt col.cw-pay{ width:47px; }     /* "max net" / "pay m": the one three-word heading breaks once, its unit after its last word (A1 / A8) */
.tb-mt col.cw-poro{ width:45px; }    /* "33–35", two links where two pages */
.tb-mt col.cw-so{ width:34px; }      /* "max" / "sat. %": gives the caprock its word (A12), names stay whole (A8) */
.tb-mt col.cw-mop{ width:53px; }     /* "max MOP" / "MPa" */
.tb-mt col.cw-steam{ width:104px; }  /* "steam generator" (as filed), "OTSG+HRSG" */
.tb-mt col.cw-water{ width:86px; }   /* "evaporator" */
.tb-mt col.cw-design{ width:46px; }  /* "design" / "kbpd" */
.tb-mt col.cw-appr{ width:58px; }    /* "approved" / "kbpd" */
.tb-mt col.cw-cogen{ width:58px; }   /* "5.67 MW" */
.tb-mt col.cw-pairs{ width:94px; }   /* (A5; B3 2026-11-06: SK rows read "N/A") */
.tb-mt col.cw-wellsprod{ width:62px; }   /* "wells" / "producing" (definitions T1, M3) */
.tb-mt col.cw-perpair{ width:50px; }  /* "per well" / "bbl/d" */
.tb-mt col.cw-first{ width:44px; }    /* "on" / "prod." */
.tb-mt col.cw-gas{ width:46px; }      /* "gas" / "MMcf/d" */
.tb-mt col.cw-gasuse{ width:50px; }   /* "gas use" / "cf/bbl" */
@media (max-width:480px){
  .tb-mt col.cw-oil{ width:36px; }
  .tb-mt col.tb-wide{ display:none; }
}
/* THE GRID (front-page template 2026-11-09, T2; ui/table.js gridTable): Production, Reservoir and Facilities share one name
   column N and one data column D -- D = (W - N) / 7 from the frame's own width (container units), the same in all three tables
   and at both grains, so every column lines up down the page. Facilities' six columns stop one short (ragged right). N holds the
   longest name at 1440 on one line ("Christina Lake North", "Algar / Great Divide", "ConocoPhillips"); on a phone the same
   seven columns, the name wraps to two lines, the headings take the column-heading size (--t-xs). Figures centred. */
.tb-gf{ container-type:inline-size; }
.tb.tb-grid{ --tn:var(--grid-n); --td:calc((100cqw - var(--tn)) / 7); width:calc(var(--tn) + var(--nc) * var(--td)); table-layout:fixed; }
.tb-grid col.cw-gn{ width:var(--tn); }
.tb-grid col.cw-gd{ width:var(--td); }
.tb.tb-grid td.tb-num, .tb.tb-grid th.tb-num{ text-align:center; padding-left:1px; padding-right:1px; }
.tb.tb-grid th .tg-l{ display:block; white-space:nowrap; line-height:1.2; }
.tb.tb-grid th .tg-l.tb-u, .tb.tb-grid th .tg-l.tg-mo{ color:var(--core); font-weight:var(--w-reg); }
.tb.tb-grid th.tb-num{ overflow:visible; vertical-align:bottom; }
/* (polish-1124 item 7, Phil: no empty line between a band -- "depth", "porosity", the month, "steam" -- and the column headings under it: those
   headings hang from the band (top), the others stay bottom-aligned) */
.tb.tb-grid th.tb-num.tg-ub{ vertical-align:top; }
.tb.tb-grid th.tb-grp{ height:auto; padding:var(--s2) 1px 0; }
.tb.tb-grid th.tg-e{ background:transparent; }
/* (F4 c: a band that dates columns is ruled under, its ends ticked -- what it spans reads at a glance) */
.tb.tb-grid th.tg-rule{ border-bottom:var(--line-w) solid var(--frame); border-left:var(--line-w) solid var(--frame); border-right:var(--line-w) solid var(--frame); background:transparent; }
.tb.tb-grid th.tb-name{ padding-right:var(--s2); }
/* the month over Oil, Steam and iSOR keeps the faint tint the month has worn since 10-30; Facilities' Steam and Bitumen groups
   wear the steam blue and the bitumen orange (T3), heading, column headings and cells */
.tb.tb-grid .tg-month{ background:rgba(238,236,230,.045); }
.tb.tb-grid .tg-steam{ background:var(--steam-tint); }
.tb.tb-grid .tg-oil{ background:var(--oil-tint); }
/* (R10: no orange text in a table -- the tint carries the group's colour, the heading stays the headings' grey) */
.tb.tb-grid .tb-row:hover td.tg-steam, .tb.tb-grid .tb-row:hover td.tg-oil, .tb.tb-grid .tb-row:hover td.tg-month{ background-image:linear-gradient(var(--raise), var(--raise)); background-blend-mode:normal; }
:root{ --grid-n:178px; }
@media (max-width:480px){
  :root{ --grid-n:103px; }
  /* (R7 three sizes on the phone too: the grid's small size -- headings, units, sub-lines, "source" -- is the column-heading
     size --t-xs; the figures and names stay --tb-body) */
  .tb.tb-grid{ --tb-small:var(--t-xs); }
  .tb.tb-grid th.tb-num, .tb.tb-grid th.tb-grp{ font-size:var(--t-xs); }
  /* (a 40 px column holds "Approved" at the heading size: no side padding, the label's regular weight, a hair of tracking) */
  /* (2026-11-22: at the phone's 11 px floor (P7) "bitumen", "capacity", "approved" and "cSOR22" ran 0.6-1.2 px past a 39 px column --
     spec GRID L2 / B3 red on the merged release: a little more tracking, OLD -0.03em NEW -0.07em, the size kept) */
  .tb.tb-grid th.tb-num{ padding-left:0; padding-right:0; font-weight:var(--w-reg); letter-spacing:-0.07em; }
  /* (a name on two lines, and its sub-line, inside the one row height: 2 x 13 + 9 px at line-height 1) */
  .tb.tb-grid td.tb-name .tb-nm-t > .tb-main{ white-space:normal; line-height:1; overflow-wrap:normal; }
  .tb.tb-grid td.tb-name .tb-second{ line-height:1; }
}
/* A8: a project's name is one line (R1), never cut to the same text as another row's: the name column takes what the fixed
   columns leave, and the names are the short ones from scheme_identity.json (a phone variant where one does not fit) */

/* ---------- T4 presentation (reader review 2026-11-03) ---------- */
/* province tabs: the name beside the rate ("Alberta 1,814"); "Sask." and no share where a phone has no room */

/* a phone at a pad or a pair: the levels above as one breadcrumb line, pinned like a bar */

/* a table's difference row: the rows add to the Total, which is the level's own figure */
.tb tr.tb-rest td{ color:var(--core); font-style:italic; }
.tb tr.tb-rest .tb-rest-n{ font-size:var(--t-s); }
.tb .tb-ph{ min-width:0; }

/* cyclic steam: said beside the name, once on the project */
.bx-tag, .al-css, .pd-css{ font-style:normal; font-size:var(--t-xs); font-weight:var(--w-bold); letter-spacing:.04em; padding:0 var(--s1); border:var(--line-w) solid currentColor; margin-left:var(--s2); line-height:1.3; }
.al-css{ color:var(--frost); margin-left:0; }

/* the stacked chart's axes and its one-line key */
.opener .ch-grid{ stroke:var(--line); stroke-width:1; vector-effect:non-scaling-stroke; }
.opener .ch-base, .opener .ch-tick{ stroke:var(--frame); stroke-width:1; vector-effect:non-scaling-stroke; }
.opener .ch-ax, .ch-over .ch-ax{ font:var(--t-xs) var(--font); fill:var(--core); paint-order:stroke; stroke:rgba(var(--ink-rgb),.7); stroke-width:2px; }
.ch-cap{ margin:var(--s1) 0 0; color:var(--core); font-size:var(--t-s); line-height:1.35; }
.ch-cap{ white-space:nowrap; }
.ch-key-sw{ display:inline-block; width:10px; height:10px; vertical-align:-1px; margin-right:var(--s2); }   /* (M4: a band swatch, the ramp's mid colour) */
.ch-key-line{ display:inline-block; width:14px; height:2px; background:var(--oil); vertical-align:middle; margin-right:var(--s2); }

/* the full chart: unit words on both scales, a line sample in the key, iSOR dashed */
.tr-unit{ font-weight:var(--w-mid); }
.tr-isor{ stroke-dasharray:3 2; opacity:.85; }
.tr-chip{ fill:none; }

/* the pair's on-production tile */
.kc-date b{ font-size:var(--t-m); font-weight:var(--w-mid); color:var(--frost); line-height:1.5; }

/* the trail's project pill: the full name, cut by width */
.pill .pill-t{ display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* ================= THE ONE SCREEN (ONE SCREEN run 2026-11-11; projects/sagd-app-screen-template-2026-11-11.md) =================
   One screen at every level, the same slots in the same order on a phone and a laptop: the scope tabs, the title, the headline
   (two numbers stacked, the chart to their right), the bar (a graphic), the chips, the table, the level's record. */
.scr{ padding:0 4px; }   /* (the tables keep the template's grid width: W 382 at 390, as inside the old frames) */
.scr > .scr-row, .scr > .scr-hl, .scr > .scr-bar, .scr > .scr-chips, .scr > .scr-facts, .scr > .scr-state{ margin-left:6px; margin-right:6px; }
.scr-row{ display:flex; align-items:center; gap:var(--s3); min-width:0; min-height:var(--tap); }   /* (R11: the row's feedback link taps over 30 px) */
/* the scope tabs (S4): real padding inside each tab; no border touches text; feedback at the row's end (M6 / P4) */
.scr-tabs{ padding:var(--s3) 0 var(--s2); gap:var(--s3); }
.tab{ display:inline-flex; align-items:center; gap:var(--s2); min-width:0; height:34px; padding:0 var(--s4); border:var(--line-w) solid var(--line); background:var(--raise); color:var(--core); font-size:var(--t-m); white-space:nowrap; flex:0 1 auto; }
.tab-lit{ border-color:var(--frame); background:var(--raise-2); color:var(--frost); }
.tab[disabled]{ opacity:.4; cursor:default; }
.tab-flag{ height:16px; width:auto; flex:none; }
.tab-num{ font-weight:var(--w-bold); margin-left:var(--s1); }
.tab-unit{ font-size:var(--t-s); color:var(--core); }
.tab-sm{ display:none; }
@media (max-width:480px){ .scr-tabs{ gap:var(--s2); } .tab{ padding:0 7px; gap:3px; font-size:13px; height:32px; } .tab-num{ margin-left:0; } .tab-unit{ font-size:13px; } .tab-lg{ display:none; } .tab-sm{ display:inline; } .tab-flag{ height:13px; } }
/* the title: the name of the thing you are on, the biggest text on the panel */
.scr-top{ padding:var(--s4) 0 var(--s2); flex-wrap:wrap; }
.scr-title{ margin:0; font-size:24px; line-height:1.15; font-weight:var(--w-bold); color:var(--frost); min-width:0; overflow-wrap:anywhere; }
.scr-tag{ font-size:var(--t-s); padding:1px var(--s3); border:var(--line-w) solid var(--line); color:var(--core); white-space:nowrap; }
/* (polish-1124 item 16) a tag that is a link (the pending deal's announcement, the CSS definition): the tag's look, the link's hover */
a.scr-tag{ text-decoration:none; cursor:pointer; }
a.scr-tag:hover, a.scr-tag:focus-visible{ color:var(--frost); border-color:var(--frost); }
a.scr-tag[target="_blank"]::after{ content:' \2197'; font-size:.85em; }
/* the headline: bitumen over iSOR on the left, the chart to their right */
.scr-hl{ display:flex; align-items:flex-start; gap:var(--s4); padding:var(--s2) 0 var(--s3); }
.scr-nums{ flex:none; display:flex; flex-direction:column; gap:var(--s4); width:92px; padding-top:var(--s3); }
.scr-nums .kc-mo{ font-style:normal; font-size:var(--t-xs); line-height:1.15; color:var(--core); margin-top:calc(-1 * var(--s3)); }   /* (PADS B2, T5: the data month once, under the pair of numbers) */
.scr-nums .kc b{ font-size:26px; font-weight:var(--w-bold); }
.scr-nums .kc-sor b{ font-weight:var(--w-reg); }
.scr-nums .kc i{ white-space:normal; }
.scr-chart{ flex:1; min-width:0; }
.scr-chart .opener-wrap{ margin:0; }
@media (max-width:480px){ .scr-nums{ width:78px; } .scr-nums .kc b{ font-size:22px; } }
/* the bar: the children by share, a graphic only */
.scr-bar{ display:flex; height:12px; gap:1px; margin:var(--s3) 0 var(--s2); overflow:hidden; }
.sb-seg{ display:block; min-width:0; }
/* the chips: every child, its name and share, scrolling sideways; a tap goes there */
.scr-chips{ display:flex; gap:var(--s3); overflow-x:auto; overflow-y:hidden; padding:var(--s2) 0 var(--s4); scrollbar-width:none; touch-action:pan-x pan-y; -webkit-overflow-scrolling:touch; }
.scr-chips.chips-more{ -webkit-mask-image:linear-gradient(to right, #000 calc(100% - 32px), transparent); mask-image:linear-gradient(to right, #000 calc(100% - 32px), transparent); }   /* (PADS B2: more chips to the right -- ui/chips.js) */
.chip-k{ flex:none; display:inline-flex; align-items:center; gap:var(--s3); height:32px; padding:0 var(--s4) 0 var(--s3); border:var(--line-w) solid var(--line); border-radius:16px; background:var(--raise); color:var(--frost); font-size:var(--t-m); white-space:nowrap; }
.chip-k:hover{ border-color:var(--frame); }
.ck-dot{ flex:none; width:12px; height:12px; border-radius:6px; display:inline-flex; align-items:center; justify-content:center; overflow:hidden; }
.ck-dot.ck-mark{ width:22px; height:22px; border-radius:11px; }
.ck-dot img{ max-width:80%; max-height:80%; object-fit:contain; }
.ck-p{ color:var(--core); font-size:var(--t-s); }
/* the front page's control: one segmented control across the panel, centred, clear space above and below (S5) */
.seg-wrap{ display:flex; justify-content:center; padding:var(--s5) 0 var(--s4); }
.seg-wrap .seg{ margin:0; width:min(100%, 360px); }
.seg-wrap .seg-b{ font-size:var(--t-m); }
/* a well's facts under its chart */
.scr-facts{ display:flex; flex-wrap:wrap; gap:var(--s2) var(--s5); margin:var(--s2) 0 var(--s4); color:var(--core); font-size:var(--t-m); }
.scr-facts b{ color:var(--frost); font-weight:var(--w-bold); }
/* the trail: one row (S3); the lowest bubble's name is cut before the row would wrap */
#chrome{ flex-wrap:nowrap; }
.trail{ flex-wrap:nowrap; min-width:0; overflow:hidden; padding:2px; margin:-2px; }
.trail .pill{ flex:none; }
.trail .pill[hidden]{ display:none; }
.trail .pill-low{ flex:0 1 auto; min-width:0; }   /* (S3: only the lowest bubble gives way -- its name is cut before the row would wrap; the full name on hover) */
@media (max-width:480px){ .trail{ gap:5px; } .trail .pill{ padding:0 10px; font-size:14px; } .trail .pill.dot{ padding:0; } }   /* (F5, Phil: "i didnt like how the canada/ab/sk flags disappeared on mobile" -- the tab flags show at every width) */
.pill-t{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pill-pd{ margin-left:4px; color:#a35a00 !important; }   /* (the "Project Data" orange, dark enough to read on the white bubble: 4.6:1) */
.pill-lit{ box-shadow:0 0 0 2px var(--here), 0 2px 8px rgba(0,0,0,.25); }
/* the info card (S8) */
/* (P4 on the one screen's first row: the row's gap sits before the link -- half of it back, so the link is centred in the free space) */
.scr-row .fb-link{ --fb-shift:-3px; min-height:32px; }   /* (R11: a tap target of 30 px or more) */
@media (max-width:480px){ .scr-tabs .fb-link{ --fb-shift:-2px; } }
/* F3 (DATA run 2026-11-11): a headline dash says why on a tap (phones) as on a hover (the reason in a bubble under it) */
.kc-why{ position:relative; cursor:pointer; }
.kc-why b{ text-decoration:underline dotted; text-decoration-thickness:1px; text-underline-offset:4px; }

/* F5: the title line carries "feedback" on every level (it left the tabs row); its place in that row is P4's, as on the project, pad and well screens */
.scr-tabs{ flex-wrap:nowrap; }
/* WORDS run W1: a pad's STATE sentence under its name (the phone's path to the map's pad hover) */
.scr-state{ margin:var(--s1) 0 var(--s2); color:var(--core); font:var(--w-reg) var(--t-s)/1.4 var(--font); }
/* THE CREDIT BUTTON (F4, Phil 2026-11-21; OLD, WORDS run W5: the whole credit line as a 10 px strip): a small "OpenStreetMap" button in the
   map's bottom-left corner; hover, focus or a tap shows the full line with its links in the site's card above it (map.js paintCredit) */
/* (polish-1124 item 3, Phil: the OpenStreetMap credit sits in the map's bottom-RIGHT corner on every layout, its card anchored right; on a
   desktop clear of the zoom buttons' column (MapLibre bottom-right, 10 px margin + 29 px wide: right 46 px). OLD left:6px, card left:0) */
.map-credit{ position:absolute; right:6px; bottom:6px; z-index:3; pointer-events:auto; }
@media (min-width:1080px){ .map-credit{ right:46px; } }
.mc-btn{ display:block; height:24px; padding:0 8px; border-radius:12px; background:rgba(255,255,255,.85); color:#2b2b28; font:var(--w-reg) 11px/24px var(--font); box-shadow:0 1px 3px rgba(0,0,0,.18); white-space:nowrap; }
.mc-btn:hover, .map-credit.mc-open .mc-btn{ background:#fff; }
.mc-btn::after{ content:''; position:absolute; left:-6px; right:-6px; top:-10px; bottom:-10px; }   /* (a finger's 44 px) */
.mc-btn{ position:relative; }
.mc-full{ display:none; position:absolute; right:0; bottom:calc(100% + 6px); width:max-content; max-width:min(320px, calc(100vw - 32px)); padding:var(--s3) var(--s4) 7px;
  background:var(--raise-2); border:var(--line-w) solid var(--frame); color:var(--frost); font:var(--w-reg) var(--t-card)/1.45 var(--font); box-shadow:var(--shadow-card); white-space:normal; }
.mc-full a{ color:var(--frost); text-decoration:underline; text-decoration-color:var(--core); text-underline-offset:2px; }
.mc-full a:hover{ text-decoration-color:var(--frost); }
.mc-full .mc-sat{ color:var(--core); }
.map-credit.mc-open .mc-full, .map-credit:focus-within .mc-full{ display:block; }
@media (hover:hover){ .map-credit:hover .mc-full{ display:block; } }
/* (the card's bridge: the pointer crosses the 6 px gap to the links without the hover ending) */
.mc-full::after{ content:''; position:absolute; left:0; right:0; top:100%; height:8px; }
/* WORDS run W2: N/A ("Does not apply") reads in the small muted size, like the dash */
.tb .tb-na{ color:var(--core); font-size:max(.85em, var(--t-xs)); }   /* (phone audit P7: never under the 11 px floor) */
.tb.tb-mt .tb-na{ font-size:var(--tb-small); }
/* (NUMBERS run, the lead 2026-11-11: a value whose period differs from its column's band carries it in the cell, small and muted -- "19 2025") */
/* (2026-11-12, the proof's LOOK checks: no fourth type size and no superscript (A4); the period sits on its own line under the
    figure, in the table's small size, so the cell keeps its column's width on a phone) */
/* (the lead, 2026-11-12 19:14: the mark sits on its own second line under the figure, right-aligned with it, in the table's existing
    small size; the figure line keeps the column's width and precision. One rule for every cell that carries a mark: the element
    holding the figure and its mark stacks them, right edges together) */
*:not(td):not(th):has(> .tb-per){ display:inline-flex; flex-direction:column; align-items:flex-end; vertical-align:top; }
.tb-per, .tb.tb-mt .tb-per{ font-size:var(--tb-small); font-weight:500; color:var(--core); line-height:1.1; white-space:nowrap; }

/* ================= THE TOP BLOCK, composed (FRONT run 2026-11-14: F1-F4, the lead's rulings; Phil: "make it look great") ===========
   One block, one rhythm: the name; bitumen over iSOR at the left, their tops on the chart's head row; the chart -- its head row (the
   key at rest, the reading while you point), the plot, the years -- its right edge the panel's; then the share bar and the chips, one
   legend, the same children, order and colours, edge to edge with the chart. Type: one scale (--t-s 11 for every small figure and
   word: readout, key, axis, bar, share; --t-m 13 the chip names; 24 the name; 26/22 the two numbers). Space: the --s tokens only. */
.scr-hl{ gap:var(--s5); padding:var(--s2) 0 var(--s4); }
.scr-nums{ padding-top:0; }
/* the head row: the key and the reading share one cell, right-aligned, bottom on the plot; the reading hides the key while it shows */
.opener-wrap > .ch-head{ display:grid; justify-items:end; align-items:end; min-height:16px; margin:0 0 var(--s3); }
.ch-head > *{ grid-area:1 / 1; }
.ch-head .ch-cap{ margin:0; line-height:16px; text-align:right; }
.opener-wrap > .ch-head .scrub-read{ position:static; min-height:0; max-width:100%; line-height:16px; text-align:right; color:var(--core); }
/* (polish-1124 item 20) a reading reserves no height: shown, it lies over the head row from its bottom up, on the panel's ground, right-aligned */
.opener-wrap > .ch-head{ position:relative; }
.opener-wrap > .ch-head .scrub-read:not(:empty):not(.ch-probe){ position:absolute; right:0; bottom:0; width:max-content; max-width:100%; z-index:4; background:var(--ink); padding-left:var(--s2); box-shadow:0 0 0 2px var(--ink); }
.ch-head:has(.scrub-read:not(:empty)) .ch-cap{ visibility:hidden; }
/* the plot: drawn to its box; the guides' figures in the gutter at its right, the years under it */
.opener-wrap{ --gut:calc(var(--gut-em, 0) * var(--t-s) + var(--s3)); }
.ch-plot{ position:relative; height:var(--plot); margin-right:var(--gut, 0px); }
.ch-plot > svg.opener, .opener-wrap .ch-plot > svg.ch-over{ position:absolute; left:0; top:0; width:100%; height:100%; }
.opener .ch-oil, .ch-over .ch-oil, .opener .scrub-x, .ch-over .scrub-x{ vector-effect:non-scaling-stroke; }
.ch-axes{ position:absolute; top:0; bottom:0; left:100%; width:var(--gut, 0px); pointer-events:none; }
span.ch-ax{ font:var(--w-reg) var(--t-s)/1 var(--font); color:var(--core); font-variant-numeric:tabular-nums; white-space:nowrap; }
.ch-axv{ position:absolute; left:var(--s3); transform:translateY(-50%); }
.ch-years{ position:relative; height:calc(var(--t-s) + var(--s3)); margin-right:var(--gut, 0px); }
.ch-yr{ position:absolute; top:var(--s2); transform:translateX(-50%); }
.ch-yr-a{ transform:none; } .ch-yr-z{ transform:translateX(-100%); }
.ch-unit{ position:absolute; top:var(--s2); left:calc(100% + var(--s3)); }
.opener-wrap .acq-marks{ margin-right:var(--gut, 0px); }
@media (max-width:480px){ .ch-plot{ height:var(--plot-phone); } .scr-hl{ gap:var(--s4); } }
/* the share bar: each segment its child's colour and, where it fits, its share in the ink for that colour (ui/ink.js) */
.scr > .scr-bar{ height:var(--bar-figs); gap:1px; margin-top:var(--s2); margin-bottom:var(--s3); }
.sb-seg{ display:flex; align-items:center; justify-content:center; overflow:hidden; color:var(--k-tone, var(--core)); font:var(--w-mid) var(--t-xs)/1 var(--font); font-variant-numeric:tabular-nums; }
.sb-p{ white-space:nowrap; }
.sb-seg.sb-tight .sb-p{ visibility:hidden; }
/* the chips: full of the child's colour; name and share in its ink; the circle (logo or dot) ringed in that ink */
.chip-k{ background:var(--k, var(--raise)); color:var(--k-ink, var(--frost)); border-color:var(--k-edge, var(--line)); gap:var(--s3); }
.chip-k:hover{ border-color:var(--k-edge, var(--line)); outline:var(--line-w) solid var(--frame); outline-offset:1px; }
.chip-k:focus-visible{ outline:2px solid var(--here); outline-offset:2px; }
.chip-k .ck-n{ font-weight:var(--w-mid); }
.chip-k .ck-p{ color:inherit; font-variant-numeric:tabular-nums; }
.chip-k .ck-dot{ box-shadow:0 0 0 1.5px var(--k-ring, transparent); }
/* a child with no logo: the chip itself is its colour's swatch -- no plain dot of the same colour inside it (it read as a radio
   button); the name sits at the chip's padding, the same both sides */
.chip-k .ck-dot:not(.ck-mark){ display:none; }
.chip-k:not(:has(.ck-mark)){ padding-left:var(--s4); }
/* (FRONT run 2026-11-14, the lead's revision on Phil's first circle -- "feedback" floated in the middle of the title row, attached to
   nothing): on the title line it sits flush right, its right edge the panel content's -- the edge the readout, the axis column, the
   bar and the chips end on -- on the title's baseline, in the key's size and colour. Its tap height stays 32 px (padding above and
   below the 16 px line); the space to its left is its tap area, never a gap that moves it. Supersedes P4's centring on this row (the
   card's head and the static pages keep P4) */
.scr > .scr-top{ align-items:baseline; }
.scr-top .fb-link{ align-self:baseline; display:inline-block; margin:0 0 0 auto; left:0; padding:var(--s3) 0 var(--s3) var(--s4); min-height:0; font-size:var(--t-s); line-height:20px; color:var(--core); }
/* (the title line keeps "feedback" at every level and width: the title takes the line's room up to the link -- a long name wraps
   onto a second line, nothing cut -- and a project's tags (status, CSS, pending) sit on their own line under the name) */
.scr > .scr-top{ flex-wrap:wrap; row-gap:var(--s1); }
.scr-top .scr-title{ flex:1 1 0; min-width:0; }
.scr-top .fb-link{ order:1; }
.scr-top:has(.scr-tag)::after{ content:''; order:2; flex-basis:100%; height:0; }
.scr-top .scr-tag{ order:3; }
/* (FRONT H4) a row with nothing to show in the data month: its state, quiet, across the empty cells */
.tb td.tb-state{ text-align:left !important; color:var(--core); font-size:var(--tb-small); font-style:normal; white-space:normal; padding-left:var(--s4); }
.tb td.tb-st-sm{ display:none; }
@media (max-width:480px){ .tb td.tb-st-lg{ display:none; } .tb td.tb-st-sm{ display:table-cell; } }
/* ================= FRONT L1 (Phil 2026-11-14, his final layout of the top block) =================
   The title alone on its line. The chart from the panel's left edge (the title's, the bar's, the table's); the two numbers in a narrow
   column at its right that ends on the panel's right edge -- bitumen, "kbpd bitumen", iSOR, "iSOR" and the month -- the bitumen
   figure's top level with the legend line; under them, on the row of the year labels, "feedback" right-aligned. The legend / reading
   line ends on the plot's right edge, where the column begins. No scale column. Bar and chips full width under it all. */
.scr > .scr-hl{ gap:var(--s5); }
.scr-hl .scr-chart{ order:1; flex:1 1 0; min-width:0; }
.scr-hl .scr-nums, .scr-hl .scr-nums.scr-nums{ order:2; flex:none; width:auto; position:relative; align-self:stretch; padding-top:0; }
.scr-hl .scr-nums .kc i, .scr-hl .scr-nums .kc-mo{ white-space:nowrap; }
.scr-hl .scr-nums .fb-link{ display:block; position:static; margin:var(--s3) 0 0; padding:6px 0; min-height:0; left:0; text-align:right; font:var(--w-reg) var(--t-s)/18px var(--font); color:var(--core); }
.scr-hl .scr-nums .fb-link.fb-at{ position:absolute; right:0; margin:0; padding-left:var(--s4); }
@media (max-width:480px){ .scr > .scr-hl{ gap:var(--s4); } }
/* FRONT L2 (Phil 2026-11-14: "all 7 of the columns should shrink 80% and the projects/operators column should absorb the shrink"): at
   laptop widths every grid figure column is 80% of D, the name column takes the rest, the figures a tighter group at the right; a
   heading row that no longer fits its columns steps down one size (ui/table.js fitGridHeads). The phone keeps its grid (D unchanged) */
:root{ --grid-d-k:0.8; }
@media (max-width:480px){ :root{ --grid-d-k:1; } }
.tb.tb-grid{ --td:calc((100cqw - var(--grid-n)) / 7 * var(--grid-d-k)); --tn:calc(100cqw - 7 * var(--td)); }
.tb.tb-grid.tb-hsm th.tb-num, .tb.tb-grid.tb-hsm th.tb-grp{ font-size:var(--t-xs); }
/* (the smaller heading row takes the phone grid's heading setting whole -- no side padding, the regular weight, a hair of tracking -- so
   "Approved" sits in a 47 px column as it does in the phone's 40) */
.tb.tb-grid.tb-hsm th.tb-num{ padding-left:0; padding-right:0; font-weight:var(--w-reg); letter-spacing:-0.03em; }
.tb.tb-grid.tb-hsm{ --tb-small:var(--t-xs); }   /* (R7: still three sizes -- the table's small size steps with its headings, as on the phone) */
/* (L1: one left edge and one right edge for the block and the tables -- the tables' own, the panel's content edge; no scale gutter) */
.scr > .scr-row, .scr > .scr-hl, .scr > .scr-bar, .scr > .scr-chips, .scr > .scr-facts, .scr > .scr-state{ margin-left:0; margin-right:0; }
.opener-wrap{ --gut:0px; }
/* (H5 / L1; Q2 the lead 2026-11-14: a screen with no chart -- an upcoming pad, a pad with no volumes in the record -- keeps the block with
   the chart row collapsed: ONE compact row, the two numbers side by side at the left and "feedback" at the right on their baseline; no
   reserved height) */
.scr-hl:not(:has(.scr-chart)){ padding-bottom:var(--s3); }
.scr-hl:not(:has(.scr-chart)) .scr-nums{ flex:1 1 auto; flex-direction:row; align-items:flex-end; gap:var(--s5); }
.scr-hl:not(:has(.scr-chart)) .scr-nums .kc-mo{ margin-top:0; align-self:flex-end; line-height:1.15; }
.scr-hl:not(:has(.scr-chart)) .scr-nums .fb-link{ margin:0 0 0 auto; padding-top:6px; padding-bottom:0; align-self:flex-end; }
.tb th.tb-statecol{ text-align:left !important; padding-left:var(--s4); }
/* FRONT B1 (Phil 2026-11-14): the project buttons at the title line's right end, on every screen at or below a project -- a light pill
   "Project Data" ("Data" in the trail's Project Data orange) and two round arrows, the trail bubbles' family, 44 px; a dim, inert arrow at
   the end of the list. When the title and the buttons do not fit one line they take their own row under the title, right-aligned. */
.scr-top .scr-title{ flex:0 1 auto; }
.scr-top .scr-nav{ order:1; margin-left:auto; display:inline-flex; align-items:center; gap:var(--s3); align-self:center; }
.nav-btn{ height:44px; min-width:44px; padding:0; border:0; border-radius:22px; background:var(--frost); color:var(--ink); font:var(--w-bold) var(--t-m)/1 var(--font); display:inline-flex; align-items:center; justify-content:center; cursor:pointer; }
.nav-btn.nav-pd{ padding:0 var(--s5); white-space:nowrap; }
.nav-btn.nav-pd b{ color:#a35a00; margin-left:0.3em; font-weight:var(--w-bold); }
.nav-btn.nav-arrow{ width:44px; font-size:22px; font-weight:var(--w-reg); padding-bottom:3px; }
.nav-btn[aria-disabled="true"]{ opacity:.35; cursor:default; }
.nav-btn:focus-visible{ outline:2px solid var(--here); outline-offset:2px; }
.scr > .scr-top{ row-gap:var(--s3); }
/* (FRONT Q3) the filing's pair count against the well records: a quiet line under the pairs heading, across the table, wrapping */
.tb td.tb-fnote{ text-align:left !important; white-space:normal; font:var(--w-reg) var(--tb-small)/1.35 var(--font); color:var(--core); padding:0 0 var(--s3) 0; background:transparent; }
.tb tr.tb-noterow td{ border:0; position:static; }
/* (the lead 2026-11-17: a pairs table's wells line under its heading, the table's full width -- wraps only at the panel's width) */
.tb td.tb-wells{ text-align:left !important; white-space:normal; padding:2px 0 var(--s2) var(--s2); background:transparent; }   /* (its left edge the title's: th's own inset) */
.tb td.tb-wells .tb-sub{ display:block; white-space:normal; font-size:var(--t-s); }
.tb tr.tb-subrow td{ border:0; position:static; }
/* (Q2) a table of only state rows: the name takes its own width, the state the rest of the row, one line where it fits */
.tb:has(th.tb-statecol) td.tb-name{ width:auto; white-space:nowrap; }
.tb:has(th.tb-statecol) td.tb-state, .tb th.tb-statecol{ width:100%; }
/* ================= REL1 (Phil 2026-11-16, his markup of Surmont 104W-A) =================
   P3 THE GUTTER ("this is pretty tight against the right"): one gutter, equal left and right, for the whole screen -- title row, chart
   row, numbers column, feedback, bar, chips, tables and footer; nothing sits closer to the panel's right edge than the title to its left */
:root{ --gutter:var(--s5); }
@media (max-width:480px){ :root{ --gutter:8px; } }
.scr{ padding:0 var(--gutter); }
#panel > .site-foot{ margin-left:var(--gutter); margin-right:var(--gutter); }
/* P1 THE HEADER ("we can center the pad name vertically with the bubbles"): the title and its three buttons on one row, the title's text
   centred on the buttons; the status sentence and the chart row follow at the block's one step (--s3), no orphan gap */
.scr > .scr-top{ align-items:center; padding:var(--s3) 0 0; min-height:0; }
.scr-top .scr-title{ line-height:1.15; }
.scr > .scr-state{ margin:var(--s3) 0 0; line-height:1.4; }
.scr > .scr-hl{ padding-top:var(--s3); }
/* P4: the wells line under a pad's pairs heading wraps inside the name column -- it never widens the table */
.tb-pairs th.tb-name .tb-sub{ white-space:normal; }
.tb-pairs table:not(:has(th.tb-statecol)) th.tb-name{ max-width:0; }   /* (a table of only state rows keeps its name column its own width: its "source" stays tappable) */
/* (P3's gutter narrows the grid's columns by a few pixels: the smaller heading row tracks a hair tighter so "Approved" still sits
   inside its column -- same size, no column widened, nothing clipped) */
.tb.tb-grid.tb-hsm th.tb-num{ letter-spacing:-0.05em; }
@media (max-width:480px){ .tb.tb-grid th.tb-num, .tb.tb-grid.tb-hsm th.tb-num{ letter-spacing:-0.07em; } }   /* (2026-11-22: OLD -0.05em NEW -0.07em on the phone: "bitumen" 40.2 px in a 39 px column at the 11 px floor, GRID L2 / B3) */
/* (release pass 2026-11-23, OLD -> NEW: front-labels' phone rule giving Facilities' "approved" 6 px of "well pairs" is backed out -- it moved
   Facilities' last two columns 6 px off the Production / Reserves columns above (spec T2, Phil's one fixed grid). "approved" runs ~5 px past
   its 39 px column again (listed R3) until a fix that keeps the grid) */
/* ================= LAYOUT LEFT (Phil 2026-11-16, his mock-ups phil-shot-1116-e and -h) =================
   DESKTOP ONLY (above the width where the panel becomes the bottom sheet; a phone keeps the shipped layout -- Phil: "on the mobile i
   think the old photos look better"). The panel on the left, the map on the right at full height; the map carries only its zoom
   buttons, the options button (top right) and its credits. The panel's row 1: the trail's bubbles, its right-hand control at the right
   (Project Data inside a project, the Companies / Projects switch on the home screens); row 2 the name with its status beside it and the
   back / forward arrows; on the home and company screens the name sits on the chart's key line. */
.pill.gear{ color:var(--ink); }
.gear-ic{ display:block; }
@media (min-width:1080px){
  #map{ left:600px; right:0; }
  #sheet{ left:0; right:auto; border-left:0; border-right:var(--line-w) solid var(--frame); }
  #chrome{ left:auto; right:10px; justify-content:flex-end; }
  /* row 1 */
  .scr > .scr-crumbs{ display:flex; align-items:center; gap:var(--s3); padding:var(--s4) 0 var(--s2); position:relative; min-height:58px; }
  .crumbs-slot{ flex:1 1 auto; min-width:0; display:flex; align-items:center; }
  .crumbs-slot .spacer{ display:none; }
  .crumbs-slot .trail{ flex-wrap:nowrap; overflow:hidden; padding:3px 2px; margin:-3px -2px; min-width:0; }
  .crumbs-slot .trail .pill{ flex:none; }
  .crumbs-slot .trail .pill[hidden]{ display:none; }
  .crumbs-slot .pill{ box-shadow:none; }
  .crumbs-slot .pill-lit{ box-shadow:0 0 0 2px var(--here); }
  .crumbs-slot .trail-drop{ top:52px; z-index:30; }
  .scr-crumbs > .nav-pd{ flex:none; margin-left:auto; }
  /* the home screens' switch in row 1, at the right, a pill the height of the bubbles */
  /* the scope tabs: larger, across the panel */
  .scr > .scr-tabs{ padding:var(--s2) 0 var(--s3); }
  .scr-tabs .tab{ flex:1 1 0; justify-content:center; height:42px; font-size:var(--t-l); }
  .scr-tabs .tab-flag{ height:.82em; }   /* (F1: the flag and the unit scale with the tab's one type size -- ui/trail.js fitTabs) */
  .scr-tabs .tab-unit{ font-size:.64em; }
  /* row 2 */
  .scr > .scr-top{ flex-wrap:nowrap; align-items:center; column-gap:var(--s4); padding:var(--s2) 0 0; }
  .scr-top .scr-title{ flex:none; line-height:1.15; }
  .scr-top > .scr-state{ flex:0 1 auto; min-width:0; margin:0; color:var(--core); font:var(--w-reg) var(--t-m)/1.35 var(--font); text-wrap:balance; padding-top:0.3em; }
  .scr-top > .scr-nav{ margin-left:auto; flex:none; }
  .scr > .scr-top.state-below{ flex-wrap:wrap; row-gap:var(--s1); }
  .scr-top.state-below > .scr-state{ order:3; flex-basis:100%; padding-top:0; text-wrap:pretty; }
  .scr > .scr-tags{ display:flex; gap:var(--s3); flex-wrap:wrap; margin:var(--s2) 0 0; }
  /* the name on the chart's key line (home and company screens), the key at the right as before; the row above where they would meet */
  .opener-wrap > .ch-head.ch-head-t{ grid-template-columns:auto 1fr; column-gap:var(--s4); align-items:end; }
  .ch-head.ch-head-t > .ch-title{ grid-area:1 / 1; justify-self:start; align-self:end; margin:0; line-height:1.1; }
  .ch-head.ch-head-t > .ch-cap, .ch-head.ch-head-t > .scrub-read{ grid-area:1 / 2; }
  .ch-head.ch-head-t.ch-title-above{ grid-template-columns:1fr; row-gap:var(--s2); }
  .ch-head.ch-head-t.ch-title-above > .ch-title{ grid-area:1 / 1; }
  .ch-head.ch-head-t.ch-title-above > .ch-cap, .ch-head.ch-head-t.ch-title-above > .scrub-read{ grid-area:2 / 1; min-height:var(--read-h, 16px); }
  .scr-front .scr-hl, .scr-company .scr-hl{ padding-top:var(--s3); }
}

/* ---------- THE HOME TREEMAP (Phil 2026-11-18; ui/treemap.js) ---------- */
.sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.tm-wrap{ margin:var(--s2) 0 0; }
/* a pad's reviewed note (2026-11-19: "filed as Pattern AJ"), one line under its name in the status line's grey */
.scr-note{ margin:var(--s1, 2px) 0 var(--s2); font-size:var(--t-s); color:var(--core); line-height:1.3; }
/* (the height the chart block used, so the tables start no lower than before; the full panel width inside the gutters) */
.tm{ position:relative; width:100%; height:clamp(200px, 46vw, 260px); background:var(--ink); overflow:hidden; touch-action:manipulation; }
@media (min-width:1080px){ .tm{ height:260px; } }
.tm-c{ position:absolute; background:var(--c); cursor:pointer; outline:none; transition:filter .12s, opacity .12s; }
.tm-c:focus-visible{ box-shadow:inset 0 0 0 2px var(--frost); }
.tm-logo{ position:absolute; left:6px; top:6px; height:22px; width:auto; max-width:calc(100% - 12px); object-fit:contain; pointer-events:none; }
/* a project tile: a thin line in a darker tint of the company colour -- drawn at the project grain, faint on a company's hover */
.tm-p{ position:absolute; box-sizing:border-box; border:1px solid transparent; outline:none; }
/* (polish-1124 item 4, Phil: in the Companies view every block always shows its project divisions as thin lines, lighter than the old hover
   lines (OLD: invisible at rest, 55% on hover), a picture only -- not hit targets; the Projects view keeps its 55% lines) */
.tm:not(.tm-proj) .tm-p{ border-color:color-mix(in srgb, var(--c) 78%, #1b1b1a); pointer-events:none; }
.tm.tm-proj .tm-p{ border-color:color-mix(in srgb, var(--c) 55%, #1b1b1a); }
.tm.tm-hov .tm-c:not(.tm-on){ filter:brightness(.42) saturate(.7); }
.tm.tm-proj.tm-hov .tm-c.tm-on .tm-p:not(.tm-on){ background:rgba(27,27,26,.45); }
.tm.tm-proj .tm-p.tm-on, .tm .tm-p:focus-visible{ border:2px solid var(--frost); }
/* (polish-1124 item 17) the Companies / Projects switch: its own row directly above the treemap, every width (OLD .tm-foot under it below 1080; row 1 above) */
.seg-wrap.tm-grain{ padding:var(--s4) 0 0; }

/* ---------- THE PROVINCE MARK (P1, Phil 2026-11-18: blue for Alberta, green for Saskatchewan -- "that needs to stick") ----------
   one token pair: a strip under the Alberta and Saskatchewan tabs and a 3 px strip at the left of every company and project row in
   the tables (half each for a company in both). Not on the treemap, the map markers or the bubbles (Phil 2026-11-18). Contrast:
   #498cdf 5.0:1 on the ink, 3.0:1 on the map ground; #279b6b 4.9:1 and 3.1:1 (non-text, 3:1) */
:root{ --prov-ab:#498cdf; --prov-sk:#279b6b; }
.tab{ position:relative; }
.tab .tab-prov{ position:absolute; left:0; right:0; bottom:0; height:3px; }
.tab.tab-ab .tab-prov{ background:var(--prov-ab); }
.tab.tab-sk .tab-prov{ background:var(--prov-sk); }
.tb tr[data-prov] > td:first-child{ background-repeat:no-repeat; background-size:3px 100%; background-position:left top; }
.tb tr[data-prov="AB"] > td:first-child{ background-image:linear-gradient(var(--prov-ab), var(--prov-ab)); }
.tb tr[data-prov="SK"] > td:first-child{ background-image:linear-gradient(var(--prov-sk), var(--prov-sk)); }
.tb tr[data-prov="AB SK"] > td:first-child{ background-image:linear-gradient(var(--prov-ab), var(--prov-ab)), linear-gradient(var(--prov-sk), var(--prov-sk)); background-size:3px 50%, 3px 50%; background-position:left top, left bottom; }


/* (Phil 2026-11-18) a block's / tile's share, bottom right, the tables' number face */
/* (polish-1124 item 22) the Companies view: logo, name and share each on a pad of the block's own colour, above the division lines */
.tm:not(.tm-proj) .tm-logo, .tm:not(.tm-proj) .tm-name, .tm:not(.tm-proj) .tm-share{ z-index:1; background:var(--c); box-shadow:0 0 0 2px var(--c); }
.tm-name{ position:absolute; left:6px; font:600 12px/14px var(--font); white-space:nowrap; pointer-events:none; }
.tm-share{ position:absolute; right:6px; bottom:4px; font:var(--w-mid) 12px/14px var(--font); font-variant-numeric:tabular-nums; pointer-events:none; white-space:nowrap; }
/* (Phil 2026-11-18) the boiler column: a word or two, the number face, set to fit the slot */
.tb.tb-grid td .tb-bo{ display:inline-block; font-size:var(--tb-small); line-height:1.15; text-align:center; white-space:nowrap; }
/* (Phil 2026-11-18) each line of the boiler cell is its own receipt: a tappable, focusable button that reads as the cell's text */
.tb.tb-grid td .tb-bo .tb-bo-l{ display:inline; width:auto; height:auto; font:inherit; color:inherit; background:none; border:0; padding:0; margin:0; line-height:inherit; cursor:pointer; }
/* the pads table's count line ("34 of 38 active, 14 upcoming", Phil 2026-11-19) wraps under the title: it never widens the name column */
.tb-pads th.tb-name .tb-sub{ white-space:normal; }
/* THE FEEDBACK BAR (Phil 2026-11-19): a plain row above a table's frame, the link at its right end -- never inside a table, no positioned
   ancestor (ui/table.js fbBar). The link here is static: no relative shift */
.tb-fbbar{ display:flex; justify-content:flex-end; align-items:center; margin:var(--s3) 0 calc(-1 * var(--s2)); }
.tb-fbbar .fb-slot{ display:block; }
.tb-fbbar .fb-link{ position:static; left:auto; display:inline-block; align-self:auto; margin:0; padding:var(--s2) 0; min-height:0; font-weight:var(--w-reg); }
/* SCROLLBARS (Phil 2026-11-19, Safari with "always show scroll bars"): the chips row and the plot strip scroll sideways with no bar
   drawn (Safari ignores scrollbar-width; ::-webkit-scrollbar hides it) -- the chip cut at the right edge says there is more. The panel's
   own bar stays (a mouse needs it) but thin and quiet: a 6 px warm-grey thumb on no track, not a light grey gutter */
.scr-chips::-webkit-scrollbar, .plot-row::-webkit-scrollbar, .acq-chips::-webkit-scrollbar{ display:none; }
/* (polish-1124 item 19, Phil: the chart's ownership changes as numbered chips (1) (2) (3) in ONE row on the phone and the vertical layout;
   the markers on the chart carry the same numbers; a tap opens the card (ui/tip.js), its "Open" the record's link. Desktop: the full lines) */
.acq-n{ display:none; }
.acq-chips{ display:none; }
@media (max-width:1079.98px){
  .acq-marks .acq-lb{ display:none !important; }
  .acq-marks .acq-n{ display:block; position:absolute; top:2px; white-space:nowrap; font-size:11px; line-height:12px; font-weight:var(--w-mid); color:var(--frost); }
  .acq-chips{ display:flex; flex-wrap:nowrap; gap:var(--s3); overflow-x:auto; overflow-y:hidden; scrollbar-width:none; padding:var(--s2) 0 var(--s2); touch-action:pan-x pan-y; }
  .acq-chips.chips-more{ -webkit-mask-image:linear-gradient(to right, #000 calc(100% - 32px), transparent); mask-image:linear-gradient(to right, #000 calc(100% - 32px), transparent); }
  .acq-chip{ flex:none; display:inline-flex; align-items:center; justify-content:center; min-width:28px; height:28px; padding:0 var(--s2); box-sizing:border-box; border-radius:14px; border:var(--line-w) solid rgba(238,236,230,.5); background:var(--raise); color:var(--frost); font-size:var(--t-s); font-weight:var(--w-mid); text-decoration:none; font-variant-numeric:tabular-nums; }
}
.plot-row{ scrollbar-width:none; }
#sheet{ scrollbar-width:thin; scrollbar-color:rgba(161,157,147,.35) transparent; }
#sheet::-webkit-scrollbar{ width:6px; height:6px; background:transparent; }
#sheet::-webkit-scrollbar-track{ background:transparent; }
#sheet::-webkit-scrollbar-thumb{ background:rgba(161,157,147,.35); border-radius:3px; }
/* (phone audit P1, 2026-11-21: the recovery and Export lines tables ran 434-437 px wide in a 370 px frame, their last columns out of
   reach) a Project Data table fits its frame: its title and its cells wrap; where one still cannot fit, its frame scrolls sideways and
   a fade at the right edge says there is more (main.js markScrollers) */
#card .tb th.tb-name, #card .tb td.tb-name, #card .tb td.tb-txt{ white-space:normal; overflow-wrap:anywhere; }
@media (max-width:480px){ #card .tb td, #card .tb th{ padding-left:2px; padding-right:2px; } }
#card .tb th.tb-name{ min-width:0; }
#card .tb-frame{ overflow-x:auto; position:relative; -webkit-overflow-scrolling:touch; }
#card .tb-frame.tb-more{ -webkit-mask-image:linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image:linear-gradient(to right, #000 calc(100% - 28px), transparent); }
/* (phone audit P7) a phone's full chart draws its words at the 11 px floor (ui/trio.js lays them out at that size) */
.trio svg.tr-ph .tr-ax, .trio svg.tr-ph .tr-key{ font-size:11.2px; }
@media (max-width:480px){ .fc-ax{ font-size:11.4px; } }   /* (phone audit P7: the facility chart, drawn 360 wide, at about 1:1 on a phone) */
#card .tb td:last-child .rcpt::before, #card .tb th:last-child .src::before{ right:0; }   /* (a hit area never widens a scrolling frame) */

/* THE cSOR FORM (F5, Phil 2026-11-21): "cSOR" with its window's start as a real subscript in the small style (definitions.js csorHtml) */
.csor{ white-space:nowrap; }
.csor-s, .csor sub{ font-size:max(.72em, var(--t-xs));   /* (the phone's 11 px floor, P7) */ line-height:0; vertical-align:-.28em; margin-left:1px; color:inherit; font-weight:inherit; }
.tb .tb-nodata{ display:inline-block; color:var(--core); font-size:var(--tb-small); line-height:1.15; white-space:normal; max-width:4.5em; }   /* (two short lines where the column is narrow, as the boiler's own two-line cells) */   /* (F7: the boiler column's "no data", small and grey) */
/* (F2 2026-11-22: the vertical layout on a tablet or a narrow desktop window: the panel's content keeps a reading width, centred in the
   sheet -- at 1024 px a table ran the window's full width; the grip stays at the sheet's right edge) */
@media (min-width:700px) and (max-width:1079.98px){ #panel{ max-width:760px; margin-left:auto; margin-right:auto; } }
/* (phone audit P17, 2026-11-22: the rank number crowded the row's colour square on a phone -- 3 px between them) */
/* (P17 reverted 2026-11-22: 3 px more on the rank took width from the phone's boiler column -- tables R1 cut 'OTSG+ cogen'; listed open) */
/* (2026-11-22: on a phone the boiler column is 39 px; "OTSG+" in 11 px type needs it all -- its cell gives up its side padding. tables R1 /
   treemap B2: 'OTSG+ cogen' spilled by 11 px at 390) */
@media (max-width:480px){ .tb.tb-grid td:has(> .tb-bo), .tb.tb-grid td:has(> .tb-nodata){ padding-left:0; padding-right:0; } }
/* ================= THE INTRO CARD (intro-1125, the owner's mock: popup-1) =================
   A wide dark card centred over the page, two columns: the headline with the wordmark and the leaf, and the disclaimer quiet beneath it,
   at the left; the "Built from" list (five linked sources) with the two links beneath it, at the right; a round ✕ top right.
   Below the site's 1080 switch and on a phone it is one column: headline, list, links, disclaimer. The card fits the screen; taller
   than it, the inside scrolls and the ✕ stays put. Its sizes step with the width so the headline is never over six lines. */
#info{ position:fixed; inset:0; z-index:60; display:grid; place-items:center; padding:16px; background:rgba(var(--ink-rgb), .62); }
#info[hidden]{ display:none; }
.info-card{ position:relative; box-sizing:border-box; width:min(920px, 100%); max-height:100%; display:flex; background:var(--raise-2); color:var(--frost); border:var(--line-w) solid var(--frame); box-shadow:0 10px 24px rgba(0,0,0,.45); font-size:var(--t-m); line-height:1.5; overflow:hidden; }
.info-in{ flex:1; min-width:0; overflow-y:auto; overscroll-behavior:contain; box-sizing:border-box; padding:56px 20px 20px; display:grid; grid-template-columns:minmax(0,1fr); grid-template-areas:"head" "built" "links" "fine"; row-gap:28px; }
.info-x{ position:absolute; top:10px; right:10px; z-index:1; width:44px; height:44px; box-sizing:border-box; display:flex; align-items:center; justify-content:center; padding:0; border:var(--line-w) solid var(--frame); border-radius:50%; background:var(--raise-2); color:var(--frost); cursor:pointer; }
.info-x svg{ width:14px; height:14px; display:block; }
.info-x:hover{ border-color:var(--frost); }
.info-card .info-head{ grid-area:head; margin:0; font-size:26px; font-weight:800; line-height:1.12; letter-spacing:-0.02em; color:#fff; text-wrap:balance; }   /* (800 is vendored; #fff: the mock's white -- the --frost token is off-white by design, kept for the body text) */
.info-wm{ font-weight:800; color:#fff; white-space:nowrap; }
.info-wm b{ font-weight:800; color:var(--core); }
.info-leaf{ height:0.62em; width:auto; vertical-align:0.04em; margin:0 0.04em; }
.info-head .ih-nb{ white-space:nowrap; }
.info-built{ grid-area:built; }
.info-built h2{ width:fit-content; margin:0 0 8px; font-size:16px; font-weight:var(--w-reg); line-height:1.3; color:var(--core); }
.info-built ul{ list-style:none; margin:0; padding:0; border-bottom:var(--line-w) solid var(--line); }
.info-built li{ border-top:var(--line-w) solid var(--line); }
.info-built a{ display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:48px; padding:8px 6px; margin:0 -6px; color:#fff; font-size:17px; font-weight:var(--w-bold); text-decoration:none; }
.info-built a:hover span:first-child{ text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:4px; }
.info-ar{ flex:none; color:var(--core); font-size:13px; font-weight:var(--w-reg); }
.info-card .info-links{ grid-area:links; display:flex; flex-wrap:wrap; gap:8px 24px; margin:0; }
.info-card .info-links a{ display:inline-flex; align-items:center; min-height:44px; font-size:var(--t-m); font-weight:var(--w-mid); color:var(--frost); text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:4px; }
.info-card .info-links a:hover{ text-decoration-thickness:2px; }
.info-card .info-fine{ grid-area:fine; margin:0; max-width:46ch; font-size:var(--t-s); line-height:1.5; color:var(--core); }
@media (min-width:481px){
  .info-in{ padding:64px 40px 32px; row-gap:32px; }
  .info-card .info-head{ font-size:34px; }
  .info-built h2{ font-size:17px; }
  .info-built a{ font-size:19px; }
}
@media (min-width:1080px){
  .info-card{ min-height:460px; }
  .info-in{ padding:40px 40px 34px; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); grid-template-rows:1fr auto; grid-template-areas:"head built" "fine links"; column-gap:56px; row-gap:40px; }
  .info-card .info-head{ font-size:38px; letter-spacing:-0.025em; text-wrap:pretty; }
  .info-built{ padding-top:16px; }
  .info-built h2{ font-size:18px; margin-bottom:12px; }
  .info-built a{ font-size:18px; min-height:52px; }
  .info-card .info-links{ align-self:end; justify-content:flex-end; }
  .info-card .info-fine{ align-self:end; max-width:56ch; }
  .info-x{ top:22px; right:22px; }
  .info-card .info-head{ font-size:41px; }
}
@media (max-width:480px){ #info{ padding:10px; } .info-x{ top:8px; right:8px; } .info-card .info-head{ font-size:24px; } }

/* (the lead 2026-11-25: on the vertical layout a table heading never widens its column -- a qualifier line (.tb-hq, the cSOR start "since '22")
   adds no MINIMUM width (it may break anywhere, so it never forces the column wider) but offers its full width when the table has room;
   fitGridHeads (ui/table.js) then steps it 11 -> 9 px to fit the column it got ([data-fits]: one line) and, still too wide at 9, wraps it at
   its spaces inside the column ([data-wrap]). The fixed grid (.tb-grid) and the desktop layout are unchanged) */
@media (max-width:1079.98px){
  .tb:not(.tb-grid) th .tb-hq{ display:block; white-space:normal; overflow-wrap:anywhere; }
  .tb:not(.tb-grid) th .tb-hq[data-fits]{ white-space:nowrap; }
  .tb:not(.tb-grid) th [data-wrap]{ white-space:normal; }
}
