/* Alpha Intel Desk: one look across every page (Nov 22, 2026, James: "more uniform, consistent, fluid").
   Loaded last on every page, so it settles the shared basics; each page keeps its own layout.
   1 font (Space Grotesk, the top menu's font) · 1 size scale · 1 panel/border look · 1 button family · 1 link colour. */
:root {
  --line: #2b4560;                 /* section and box borders: clearer than the old #1f3044 */
  --panel: #111d2c;
  --cyan: #3fdbe6;
  --amber: #ffb347;
  --muted: #95a8bc;
  --radius: 12px;
  --btn-bd: rgba(63, 219, 230, .42);
  --btn-bg: rgba(63, 219, 230, .06);
}
body { font-family: "Space Grotesk", system-ui, sans-serif; font-variant-numeric: tabular-nums; line-height: 1.55;
       -webkit-font-smoothing: antialiased; }
button, input, select, textarea, table, th, td, summary { font-family: inherit; }

/* ---- Type scale: page title, section title, body, small, label ---- */
main h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
main h2 { font-size: 1.3rem; line-height: 1.3; font-weight: 700; letter-spacing: .01em; }
main h3 { font-size: 1.05rem; font-weight: 700; }
main p, main li { font-size: 1rem; }
small { font-size: .8rem; }
th { font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* ---- Links: one colour everywhere, underline on hover ---- */
main p a:not([class]), main li a:not([class]), footer a:not([class]), .qa a, .note a { color: var(--cyan); text-decoration: none; }
main p a:not([class]):hover, main li a:not([class]):hover, footer a:not([class]):hover, .qa a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Boxes: same panel, same border, same corners ---- */
.card, .gp, .trk, .gkey, .short, .step, .tw, .fee-tbl, .rec div, .hp-box, .x-how, #x-how {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.tw { overflow: hidden; }
main section + section, main .card + .card { margin-top: 16px; }

/* ---- Buttons: one family. Secondary = cyan outline; on/selected = filled tint ---- */
.chip, .dz-sh, .gp-sh, .gb-sh, .sh, .x-more button, .tk summary, .cal-f button, .cal-sub summary, .gb-more a, .how-link,
.phmore, button.more, a.more {
  font: 600 .8rem/1.2 "Space Grotesk", system-ui, sans-serif !important; letter-spacing: .04em !important;
  text-transform: uppercase; border-radius: 8px !important; padding: 7px 12px !important;
  border: 1px solid var(--btn-bd) !important; background: var(--btn-bg) !important; color: #cdeff2 !important;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s; box-shadow: none !important; }
.chip:hover, .dz-sh:hover, .gp-sh:hover, .gb-sh:hover, .sh:hover, .x-more button:hover, .cal-f button:hover, .cal-sub summary:hover,
.gb-more a:hover, .how-link:hover, .phmore:hover {
  border-color: var(--cyan) !important; background: rgba(63, 219, 230, .14) !important; color: #fff !important; text-decoration: none !important; }
.chip.on, .cal-f button.on {
  border-color: var(--c, var(--cyan)) !important; color: var(--c, var(--cyan)) !important;
  background: color-mix(in srgb, var(--c, #3fdbe6) 16%, transparent) !important; }
.dz-sh, .gp-sh, .sh { padding: 4px 10px !important; font-size: .74rem !important; }
nav a.nav-tg { border-radius: 8px; }
.tk summary { display: block; border: 0 !important; background: none !important; padding: 9px 12px !important; color: #3ee88a !important; }
.tk summary span { text-transform: none; font-weight: 500; }

/* ---- Q&A blocks: separated like rows, not floating text ---- */
.qa { padding: 12px 0; border-top: 1px solid var(--line); margin: 0 !important; }
.qa b { font-size: 1rem; margin-bottom: 3px; }

/* ---- Footer ---- */
footer { border-top: 1px solid var(--line); }

@media (max-width: 640px) {
  main h1 { font-size: 1.8rem; }
  main h2 { font-size: 1.15rem; }
  .chip, .cal-f button { padding: 6px 10px !important; font-size: .74rem !important; }
}

/* ---- Danger Zone: "How it works" box, compact (James Nov 22) ---- */
.howpay { max-width: 760px; padding: 10px 14px !important; margin: 12px 0 !important; font-size: .88rem !important;
  border-radius: var(--radius) !important; border: 1px solid var(--line) !important; border-left: 3px solid var(--amber) !important; background: var(--panel) !important; }
.howpay b { font-size: .74rem; letter-spacing: .06em; color: var(--amber); }
.howpay p { margin: 4px 0 0 !important; line-height: 1.45 !important; }
.howpay small { display: block; margin-top: 4px; font-size: .74rem; }

/* ---- Catalyst Calendar: every day is its own solid box, date as the header (James Nov 22) ---- */
.split .cal-d { border: 2px solid rgba(63, 219, 230, .55) !important; border-radius: 10px !important; padding: 0 0 10px !important;
  background: rgba(14, 30, 46, .92) !important; min-height: max-content !important; }
.split .cal-d > :not(.cal-dn) { margin-left: 12px; margin-right: 12px; }
.split .cal-dn { margin: 0 0 4px !important; padding: 8px 12px !important; background: rgba(63, 219, 230, .13);
  border-bottom: 2px solid rgba(63, 219, 230, .55) !important; border-radius: 8px 8px 0 0; font-weight: 700; color: #eef6fb !important; }
.split .cal-d.today { border-color: var(--cyan) !important; }
.split .cal-d.today .cal-dn { background: rgba(63, 219, 230, .3); border-bottom-color: var(--cyan) !important; }

/* ---- Calendar day list: stacked, each day sized to its events (fixes overlap) ---- */
.split .cal-g { display: flex !important; flex-direction: column; gap: 10px !important; }

/* ---- Homepage sections: one professional frame (James Nov 22: "solid, fluid, consistent, professional") ----
   Same panel, border, corner radius, padding and header style for Calendar, Danger Zone and Market of the Week.
   No corner brackets, scan lines, grid patterns or blinking cursors. */
.calsec { background: var(--panel) !important; border: 1px solid var(--line) !important; border-radius: var(--radius) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 8px 24px rgba(0, 0, 0, .25) !important; padding: 22px 22px 16px !important; }
.calsec::before, .calsec::after, .cal-br, .cal-h h2 .cur { display: none !important; }
.cal-h { padding-bottom: 12px; margin-bottom: 14px !important; border-bottom: 1px solid var(--line); }
.cal-h h2 { font: 700 1.2rem "Space Grotesk", system-ui, sans-serif !important; letter-spacing: .04em !important;
  color: #eef4f9 !important; text-shadow: none !important; }
.cal-h p, .cal-h .cal-sub-t { color: var(--muted); }
.cal-foot { color: var(--muted); font-size: .8rem; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 12px; }
.hx-card { border: 1px solid var(--line) !important; background: var(--panel) !important; border-radius: var(--radius) !important; }
.hx-card:hover { border-color: rgba(63, 219, 230, .55) !important; box-shadow: 0 8px 24px rgba(0, 0, 0, .3) !important; }
.split { gap: 18px !important; }
.split .cal-d::after, .split .cal-now { margin-left: 12px; margin-right: 12px; }
@media (max-width: 1440px) and (min-width: 641px) { .split { padding: 0 16px; } body > .calsec, main > .calsec { margin-left: 16px !important; margin-right: 16px !important; } }

/* ---- One page width everywhere (James Nov 22: no black spaces): content lines up with the logo and menu ---- */
main.wrap, main.wrap.motw, body > main { max-width: 1120px !important; }
main p, main li { max-width: 80ch; }
main .card p, main .card li, main .gp p, main td p, main .xdd p { max-width: none; }
@media (max-width: 640px) {   /* homepage gap box on phones: compact column labels */
  .gapbox .gb-cols, .gapbox .gb-cols * { font-size: 10.5px !important; letter-spacing: .02em !important; }
  .gapbox .gb-r small, .gapbox .gb-r i, .gapbox .gb-r em { font-size: 10px !important; letter-spacing: 0 !important; }
}

/* ---- Callouts: one style (panel + 3px left accent). Cyan = info, amber = worked example / warning ---- */
.q1, .bl, .short, .note-box { background: var(--panel) !important; border: 1px solid var(--line) !important;
  border-left: 3px solid var(--cyan) !important; border-radius: var(--radius) !important; }
.step { border-top: 1px solid var(--line) !important; }
a.card { transition: border-color .15s, box-shadow .15s; }
a.card:hover, .gl a.card:hover { border-color: rgba(63, 219, 230, .55) !important; box-shadow: 0 8px 24px rgba(0, 0, 0, .3) !important; }

/* ---- Market of the Week tabs: same button family as everywhere else ---- */
.tabs a { font: 600 .8rem/1.2 "Space Grotesk", system-ui, sans-serif !important; letter-spacing: .04em !important; text-transform: uppercase;
  border-radius: 8px !important; padding: 7px 12px !important; border: 1px solid var(--btn-bd) !important; background: var(--btn-bg) !important;
  color: #cdeff2 !important; box-shadow: none !important; }
.tabs a.on { border-color: var(--amber) !important; color: var(--amber) !important; background: rgba(255, 179, 71, .12) !important; }

/* ---- Footer lines up with the logo and content on every page ---- */
footer .wrap { max-width: 1120px !important; }

/* Follow box at the end of tool pages (Nov 22) */
.follow{display:flex;gap:18px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:36px 0 8px;padding:18px 20px;background:var(--panel,#0f1b29);border:1px solid var(--line);border-left:3px solid var(--cyan,#22d3ee);border-radius:12px}
.follow h3{margin:0 0 4px}
.follow p{margin:0;color:var(--muted);max-width:60ch}
.follow-b{display:flex;gap:10px;flex-wrap:wrap}

/* Nov 22: boxes side by side in a grid stay the same size and line up (the "card + card" gap above is for stacked cards only) */
:is(.grid, .gl, .pick, .cols) > .card { margin-top: 0 !important; }

/* Comments box (Cusdis) on Market of the Week + Dossier, Nov 24, 2026 */
.cmt{margin:18px 0 8px;padding:18px 20px;background:var(--panel,#0f1b29);border:1px solid var(--line);border-radius:12px}
.cmt h3{margin:0 0 4px}
.cmt p{margin:0 0 12px;color:var(--muted);max-width:70ch}
.cmt-w{max-width:1120px !important;padding-top:0 !important}
.cmt-x{display:flex;flex-wrap:wrap;gap:10px}
/* Nov 28, 2026 (James): page headings centered on every page (nav.js marks them .pg-head). Tables, boxes and the
   longer text further down stay left-aligned so they're easy to read. */
main.wrap > .pg-head { text-align: center; margin-left: auto !important; margin-right: auto !important; }
main.wrap > .pg-tags > .tag { margin-left: 4px; margin-right: 4px; }
main.wrap > .pg-head.howpay { text-align: left; }
.calsec { box-shadow: 0 0 22px rgba(63,219,230,.10), inset 0 0 22px rgba(63,219,230,.04), 0 8px 24px rgba(0,0,0,.25) !important; }   /* Dec 6 */
/* ---- Dec 6 (James): ONE border for every section box on the site: solid amber, 2px (James: the yellow-orange, not cyan) (the width of the "THE DESK IS OPEN" sign).
   Inner panels inside a section keep their light lines; accent stripes (amber/cyan left edges) are folded into the one border. ---- */
.calsec, .gbw, .card, .gp, .trk, .gkey, .tw, .fee-tbl, .hp-box, .x-how, #x-how, .howpay, .hx-card,
.q1, .bl, .short, .note-box, .follow, .cmt, .wrp, .wr-pane, .ih-how, .ih-c, #edge, .table-wrap, .panel, .dos-disc
{ border: 2px solid var(--amber) !important; }
/* page-only boxes whose class names are reused elsewhere (.cta, .mv, .mk) get the same border in their own page's <style> */
/* one border per section, never two: on the homepage the Intel Hub panel is the section (its tab panes are inside it);
   on the Intel Hub page each pane is its own section (the wrapper around them gets no frame) */
.deskwrap .wrp .wr-pane { border:0 !important; }
.ih-page .wrp { border:0 !important; box-shadow:none !important; }
.calsec, .gbw, .wrp { box-shadow: 0 0 22px rgba(255,179,71,.10), inset 0 0 22px rgba(255,179,71,.04), 0 8px 24px rgba(0,0,0,.25) !important; }
a.card:hover, .gl a.card:hover, .hx-card:hover { border-color: #ffd28a !important; }
/* Dec 6 (James): no faint red frame around the homepage breaking-news ticker */
.brk.hubw { border:0 !important; box-shadow:none !important; }
