/* Isometric Stack theme (int-theme-shortlist.html, theme 5). Loaded last on
   every page. Cool blue-grey paper, navy ink, one deep-blue accent, white
   cards on a soft border, bold display type. Light is the default mode; the
   homepage's isometric layer figure is the theme's centrepiece. */

/* Light palette from the mockup, on a white page. */
[data-theme="light"] {
  --surface-page: #FFFFFF;
  --surface-card: #FFFFFF;
  --surface-raised: #E4E7F0;
  --surface-wash: rgba(22, 26, 46, 0.03);
  --border-subtle: #DDE0EA;
  --border-strong: #C7CBDB;
  --text-primary: #161A2E;
  --text-muted: #5B6178;
  --text-faint: #646A80;
  --accent: #3343C3;

  /* Status and data colours: the dark theme's light red and amber read at
     1.7 to 2.4:1 on a light page, and #DC2626 at 4.2:1. These clear 4.5:1 on
     the page and on white cards. */
  --status-error: #B91C1C;
  --status-error-soft: rgba(185, 28, 28, 0.08);
  --status-error-hairline: rgba(185, 28, 28, 0.30);
  --status-warning: #A14A07;
  --status-warning-soft: rgba(161, 74, 7, 0.08);
  --status-warning-hairline: rgba(161, 74, 7, 0.30);
  --accent-red: #B91C1C;
  --accent-amber: #A14A07;

  /* homepage graph band and its fades: white, not the old warm paper, with
     labels in the theme's greys */
  --ink: #FFFFFF;
  --scrim0: #FFFFFF;
  --sc-a: rgba(255, 255, 255, 0.95); --sc-b: rgba(255, 255, 255, 0.74); --sc-c: rgba(255, 255, 255, 0.62);
  --sc-d: rgba(255, 255, 255, 0.52); --sc-e: rgba(255, 255, 255, 0.3);
  --hero-fade: rgba(255, 255, 255, 0.72);
  --ink-fg: #161A2E;
  --ink-fg2: #5B6178;
  --ink-fg3: #646A80;

  /* Code snippets on white: the comment and type colours were translucent
     tints made for the old paper (2.5 and 3.6:1); solid theme colours now. */
  --syn-punct: #3A3F55;
  --syn-dim: #646A80;
  --syn-type: #4F46E5;
}

/* Soft, consistent corners: 10px on controls, 14px on cards and panels. */
:root {
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 14px;
  --radius-2xl: 14px;
  --radius-pill: 10px;
}

/* Bold display type. Headings carry inline weights, so this needs
   !important to win. */
h1 { font-weight: var(--weight-bold) !important; letter-spacing: -0.04em !important; }

/* Plain paper: no dot grid, no film grain. */
body::before, body::after { display: none; }

/* Buttons that set a 100px pill radius inline (the nav and homepage CTAs)
   follow the theme's 10px corner too. Round icon buttons (50%) stay round. */
[style*="border-radius: 100px"] { border-radius: var(--radius-pill) !important; }

/* Embossed cards on the white page: a soft raised shadow under every card,
   light mode only (dark keeps its hairlines). Cards have no shared class, so
   this lists the named ones and catches the inline ones by their style. */
[data-theme="light"] {
  --shadow-emboss: 0 1px 2px rgba(22, 26, 46, 0.05), 0 8px 24px -6px rgba(22, 26, 46, 0.12);
}
[data-theme="light"] :is(
  .n-mis-grid, .n-paper, .n-wl-card, .n-sw-card, .n-sw-hub, .n-band-panel,
  .pr-plans, .icard, .panel, .n-cul-close, .n-cul-guard, .n-enfig,
  .cr-revs, .vm-grid, .vm-tiers, .vm-table-wrap,
  [style*="background: var(--surface-card)"][style*="border: 1px solid"]:not([style*="box-shadow"]),
  [style*="background: var(--surface-page)"][style*="border: 1px solid"][style*="border-radius: var(--radius"]:not([style*="box-shadow"])
) { box-shadow: var(--shadow-emboss); }

/* Closing CTA bands on code review and verum borrowed the terminal surface:
   page-coloured in dark, white in light. Every other page closes on the page
   colour, so these follow it in both themes. */
.cr-cta, .vm-cta { background: var(--surface-page); }
