/* ── Earl design tokens ─────────────────────────────────────
   Source of truth for the Earl brand. Mirrors the canonical
   tokens shipped with the design-system handoff bundle.
   ──────────────────────────────────────────────────────────── */
:root {

  /* Brand greens (default hue) */
  --earl-green:        #1B3D18; /* primary brand surface */
  --earl-green-deep:   #152E12; /* page background       */
  --earl-lime:         #C8FF33; /* accent / highlight    */
  --earl-cream:        #D0E8C5; /* foreground on green   */
  --earl-moss:         #4A6545; /* muted                 */
  --earl-border:       #253E22; /* hairline divider      */
  --earl-fg-light:     #0F2A0C; /* foreground on lime    */

  /* Pink hue (What we do) */
  --pink-bg-d:  #1F0510;
  --pink-bg-l:  #FFD6EB;
  --pink-fg-d:  #FFD6EB;
  --pink-fg-l:  #2D0818;
  --pink-hi-d:  #FF5CAD;
  --pink-hi-l:  #CC0066;
  --pink-bd-d:  #3D0F1E;

  /* Purple hue (About) */
  --purple-bg-d: #150830;
  --purple-bg-l: #EDE0FF;
  --purple-fg-d: #DFD0FF;
  --purple-fg-l: #1C0845;
  --purple-hi-d: #9955FF;
  --purple-hi-l: #6600CC;
  --purple-bd-d: #2A1260;

  /* Blue hue (Start / CTA) */
  --blue-bg-d: #020B1E;
  --blue-bg-l: #D5E8FF;
  --blue-fg-d: #C5DAFF;
  --blue-fg-l: #020B2E;
  --blue-hi-d: #4488FF;
  --blue-hi-l: #0044BB;
  --blue-bd-d: #0A1A45;

  /* News category accents */
  --cat-pr:        #FF5CAD;
  --cat-sport:     #C8FF33;
  --cat-ai:        #9955FF;
  --cat-company:   #C8FF33;
  --cat-financial: #4488FF;

  /* Hue-paired tokens (default = green) */
  --c-bg-l:  #C8FF33;             --c-bg-d:  #1B3D18;
  --c-fg-l:  #0F2A0C;             --c-fg-d:  #D0E8C5;
  --c-hi-l:  #0F2A0C;             --c-hi-d:  #C8FF33;
  --c-sub-l: rgba(15,42,12,.52);  --c-sub-d: rgba(208,232,197,.48);
  --c-bd-l:  rgba(15,42,12,.16);  --c-bd-d:  #253E22;

  /* Type scale */
  --t-h1:       clamp(48px, 7.5vw, 104px);
  --t-h2:       clamp(30px, 3.8vw, 52px);
  --t-h2-lg:    clamp(48px, 7vw,   88px);
  --t-h3:       clamp(20px, 2vw,   28px);
  --t-stat:     clamp(56px, 7.5vw, 92px);
  --t-lede:     clamp(17px, 1.5vw, 22px);
  --t-body-lg:  clamp(16px, 1.55vw, 20px);
  --t-body:     16px;
  --t-body-sm:  14.5px;
  --t-meta:     13px;
  --t-eyebrow:  11px;
  --t-tick:     10px;

  --tracking-eyebrow: .22em;
  --tracking-tag:     .2em;
  --tracking-headline: -.035em;
  --tracking-headline-tight: -.045em;
  --leading-headline: .94;
  --leading-body: 1.45;

  /* Spacing & layout */
  --max-w:           1200px;
  --pad-x:           52px;
  --pad-x-mob:       24px;
  --section-pad:     128px;
  --section-pad-lg:  160px;
  --section-pad-mob: 80px;

  /* Radii */
  --r-xs:   3px;
  --r-sm:   4px;
  --r-md:   6px;
  --r-lg:   8px;
  --r-card: 12px;
  --r-pill: 100px;

  /* Motion */
  --c-dur:  .4s;
  --c-ease: cubic-bezier(.59,.06,.1,1);
  --ease-out-expressive: cubic-bezier(.16,1,.3,1);
  --ease-out-power3:     cubic-bezier(.165,.84,.44,1);

  /* Brand-site chrome aliases.
     The main page sits on cream with dark headings, in line with the
     design system's light-theme behaviour. The sidebar carries a
     dark scope (see .sidebar below). */
  --bg:        var(--earl-cream);                    /* page surface     */
  --bg2:       #ffffff;                              /* cards on cream   */
  --accent:    var(--earl-lime);                     /* lime fills only  */
  --fg:        var(--earl-fg-light);                 /* primary text     */
  --muted:     var(--earl-moss);                     /* secondary text   */
  --border:    rgba(15,42,12,0.16);                  /* hairline on cream */

  /* Pink, purple, blue accents (on light surfaces use the -l variants
     because the -d highlights fail contrast on cream). */
  --pink:      var(--pink-hi-l);
  --purple:    var(--purple-hi-l);
  --blue:      var(--blue-hi-l);

  --sidebar-w: 240px;
  --font-h:    'Funnel Display', system-ui, -apple-system, sans-serif;
  --font-b:    'Geist', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  --radius:    var(--r-card);
  --tr:        0.18s ease;
}

/* Theme maps (apply via data-theme on a section) */
[data-theme="light"] {
  --c-bg:  var(--c-bg-l);
  --c-fg:  var(--c-fg-l);
  --c-hi:  var(--c-hi-l);
  --c-sub: var(--c-sub-l);
  --c-bd:  var(--c-bd-l);
}
[data-theme="dark"] {
  --c-bg:  var(--c-bg-d);
  --c-fg:  var(--c-fg-d);
  --c-hi:  var(--c-hi-d);
  --c-sub: var(--c-sub-d);
  --c-bd:  var(--c-bd-d);
}

/* Hue overrides */
[data-hue="pink"] {
  --c-bg-l: var(--pink-bg-l); --c-bg-d: var(--pink-bg-d);
  --c-fg-l: var(--pink-fg-l); --c-fg-d: var(--pink-fg-d);
  --c-hi-l: var(--pink-hi-l); --c-hi-d: var(--pink-hi-d);
  --c-sub-l: rgba(45,8,24,.52); --c-sub-d: rgba(255,214,235,.45);
  --c-bd-l: rgba(45,8,24,.16);  --c-bd-d: var(--pink-bd-d);
}
[data-hue="purple"] {
  --c-bg-l: var(--purple-bg-l); --c-bg-d: var(--purple-bg-d);
  --c-fg-l: var(--purple-fg-l); --c-fg-d: var(--purple-fg-d);
  --c-hi-l: var(--purple-hi-l); --c-hi-d: var(--purple-hi-d);
  --c-sub-l: rgba(28,8,69,.52); --c-sub-d: rgba(223,208,255,.45);
  --c-bd-l: rgba(28,8,69,.16);  --c-bd-d: var(--purple-bd-d);
}
[data-hue="blue"] {
  --c-bg-l: var(--blue-bg-l); --c-bg-d: var(--blue-bg-d);
  --c-fg-l: var(--blue-fg-l); --c-fg-d: var(--blue-fg-d);
  --c-hi-l: var(--blue-hi-l); --c-hi-d: var(--blue-hi-d);
  --c-sub-l: rgba(2,11,46,.52); --c-sub-d: rgba(197,218,255,.45);
  --c-bd-l: rgba(2,11,46,.16);  --c-bd-d: var(--blue-bd-d);
}

/* ── Fonts ──────────────────────────────────────────────────── */
@font-face {
  font-family: 'Funnel Display';
  src: url('/fonts/funnel-display-latin.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: 'Geist';
  src: url('/fonts/geist-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ─────────────────────────────────────────────────── */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

/* ── Sidebar ────────────────────────────────────────────────── */
/* Dark scope: every sidebar token flips to its dark-theme value so
   anything the partials drop in here reads correctly without per-rule
   overrides. */
.sidebar {
  --bg:     var(--earl-green);
  --bg2:    var(--earl-green-deep);
  --fg:     var(--earl-cream);
  --muted:  rgba(208,232,197,0.55);
  --border: var(--earl-border);

  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  background: var(--bg);
  color: var(--fg);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  padding: 28px 24px 22px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-logo-link {
  display: block;
  color: var(--accent);
  margin-bottom: 10px;
}

.sidebar-logo-link svg {
  width: 72px;
  height: auto;
  display: block;
}

.sidebar-logo {
  display: block;
  width: 72px;
  height: auto;
  margin-bottom: 10px;
}

.sidebar-label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.sidebar-nav {
  padding: 16px 0 24px;
  flex: 1;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 24px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--fg);
  text-decoration: none;
  transition: background var(--tr), color var(--tr), border-color var(--tr);
  border-left: 2px solid transparent;
  line-height: 1.3;
}

.sidebar-nav a:hover {
  background: rgba(255,255,255,0.03);
  color: var(--fg);
  border-left-color: var(--border);
  text-decoration: none;
}

.sidebar-nav a.active {
  background: rgba(200,255,51,0.06);
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 500;
}

/* ── Main content ───────────────────────────────────────────── */
.main {
  position: relative;
  padding: 56px 64px 96px;
  min-width: 0;
}

/* Copy-as-markdown button, top right of every page */
.copy-md-btn {
  position: absolute;
  top: 32px;
  right: 32px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-b);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: color var(--tr), border-color var(--tr), background var(--tr);
}

.copy-md-btn:hover {
  color: var(--earl-green);
  border-color: var(--earl-green);
  background: #fff;
}

.copy-md-btn .icon {
  width: 11px;
  height: 11px;
}

@media (max-width: 768px) {
  .copy-md-btn { top: 16px; right: 16px; }
}

.page-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-family: var(--font-h);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.04;
  color: var(--fg);
  margin-bottom: 12px;
}

.page-header .lead {
  font-size: 16px;
  color: var(--fg);
  line-height: 1.6;
  max-width: 520px;
  opacity: 0.85;
}

.section-title {
  font-family: var(--font-h);
  font-size: 20px;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 16px;
  margin-top: 48px;
}

.section-title:first-of-type { margin-top: 0; }

.section-note {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.55;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-b);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity var(--tr), border-color var(--tr), color var(--tr);
  line-height: 1;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: var(--earl-fg-light);
}

.btn-primary:hover { opacity: 0.85; }

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}

.btn-ghost:hover { border-color: var(--fg); color: var(--fg); }

/* ── Inline SVG icon sizing ─────────────────────────────────── */
.icon { flex-shrink: 0; }
.btn .icon { width: 13px; height: 13px; }
.swatch-hex .icon { width: 12px; height: 12px; }
.sidebar-nav .icon { width: 15px; height: 15px; opacity: 0.55; display: block; }
.sidebar-nav a.active .icon,
.sidebar-nav a:hover .icon { opacity: 1; }
.accordion-trigger .icon { width: 16px; height: 16px; color: var(--muted); transition: transform 0.22s ease; }
.accordion-trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }
.tile-deco .icon { width: clamp(64px, 7vw, 96px); height: clamp(64px, 7vw, 96px); }

/* ── Copy toast ─────────────────────────────────────────────── */
.copy-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--earl-green);
  color: var(--earl-cream);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 100px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 9999;
  white-space: nowrap;
}

.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Lightbox ───────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 42, 12, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.lightbox.show {
  display: flex;
  opacity: 1;
}

.lightbox-stage {
  max-width: min(92vw, 1400px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  cursor: default;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: calc(92vh - 60px);
  display: block;
  border-radius: var(--r-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  background: var(--earl-cream);
}

.lightbox-caption {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--earl-cream);
  letter-spacing: 0.04em;
  opacity: 0.75;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--earl-cream);
  font-size: 24px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--tr), border-color var(--tr), transform var(--tr);
}

.lightbox-close:hover {
  background: var(--earl-lime);
  color: var(--earl-fg-light);
  border-color: var(--earl-lime);
  transform: scale(1.05);
}

.image-card img,
.logo-panel img,
.logo-panel svg,
.favicon-preview img {
  cursor: zoom-in;
}

/* ── Overview / Homepage ────────────────────────────────────── */
.main--home {
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.main--home .overview-grid {
  flex: 1;
  height: calc(100dvh - 76px); /* 56px top + 20px bottom */
  grid-template-rows: 1fr 1fr 1fr;
}

.main--home .overview-tile {
  aspect-ratio: unset;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.overview-grid--3x3 {
  grid-template-rows: repeat(3, 1fr);
}

.overview-tile {
  background: var(--tile-bg, var(--bg2));
  color: var(--tile-color, var(--fg));
  border-radius: var(--radius);
  padding: 28px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  text-decoration: none;
  position: relative;
  transition: filter 0.2s ease, transform 0.18s ease;
}

.overview-tile:hover {
  filter: brightness(1.08);
  transform: translateY(-3px);
  text-decoration: none;
}

.tile-title {
  font-family: var(--font-h);
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 800;
  line-height: 1.1;
  color: currentColor;
}

.tile-deco {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  overflow: visible;
}

.tile-deco-text {
  font-family: var(--font-h);
  font-weight: 800;
  font-size: clamp(72px, 7.5vw, 110px);
  line-height: 0.82;
  color: currentColor;
  display: block;
  margin-right: -6px;
  margin-bottom: -8px;
  opacity: 0.9;
}

.tile-deco-svg {
  width: 75%;
  height: auto;
  overflow: visible;
  margin-right: -12px;
  margin-bottom: -12px;
  opacity: 0.88;
}

.tile-deco .icon,
.tile-deco-svg {
  margin-right: -6px;
  margin-bottom: -6px;
  display: block;
}

.tile-deco .icon {
  width: clamp(64px, 7vw, 96px);
  height: clamp(64px, 7vw, 96px);
}

/* ── Colour swatches ────────────────────────────────────────── */
.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 40px;
}

.swatch {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.swatch-preview {
  height: 88px;
}

.swatch-info {
  background: var(--bg2);
  padding: 12px 14px 14px;
}

.swatch-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 3px;
}

.swatch-hex {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 0;
  transition: color var(--tr);
}

.swatch-hex:hover { color: var(--earl-green); }

.swatch-hex svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.swatch-usage {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.4;
  opacity: 0.75;
}

/* ── Logos ──────────────────────────────────────────────────── */
.logo-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 32px;
}

.logo-panel {
  border-radius: var(--radius);
  padding: 44px 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

/* Dark scope inside the dark logo demo so children read correctly. */
.logo-panel--dark {
  --fg:     var(--earl-cream);
  --muted:  rgba(208,232,197,0.55);
  --border: var(--earl-border);

  background: var(--earl-green);
  color: var(--fg);
  border: 1px solid var(--border);
}

.logo-panel--light {
  background: var(--earl-lime);
  color: var(--earl-green);
}

.logo-panel img,
.logo-panel svg {
  max-width: 160px;
  height: auto;
  display: block;
}

.logo-panels--hues {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}

.favicon-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

.favicon-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.favicon-preview {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.favicon-preview img {
  display: block;
  width: 48px;
  height: 48px;
}

.favicon-meta {
  flex: 1;
  min-width: 0;
}

.favicon-name {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--fg);
  margin-bottom: 2px;
}

.favicon-format {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
}

@media (max-width: 860px) {
  .logo-panels--hues { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .logo-panels--hues { grid-template-columns: 1fr; }
}

.logo-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
}

.logo-panel-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.logo-panel--dark .logo-panel-label { color: var(--muted); }
.logo-panel--light .logo-panel-label { color: rgba(27,61,24,0.5); }

.logo-panel--light .btn-ghost {
  color: var(--earl-green);
  border-color: rgba(27,61,24,0.25);
}

.logo-panel--light .btn-ghost:hover {
  border-color: var(--earl-green);
}

/* Logo variants grid */
.logo-variants {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 40px;
}

.logo-variant {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.logo-variant-preview {
  height: 52px;
  display: flex;
  align-items: center;
}

.logo-variant-preview img {
  max-width: 100%;
  max-height: 48px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.logo-variant-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.logo-variant-name {
  font-size: 12px;
  color: var(--muted);
}

/* Do / Don't guidelines */
.guidelines {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 32px;
}

.guideline-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.guideline-card--do   { border-top: 3px solid var(--accent); }
.guideline-card--dont { border-top: 3px solid var(--pink); }

.guideline-card h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.guideline-card--do h4   { color: var(--earl-green); }
.guideline-card--dont h4 { color: var(--pink); }

.guideline-card ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.guideline-card ul li {
  font-size: 13px;
  color: var(--fg);
  padding-left: 20px;
  position: relative;
  line-height: 1.45;
}

.guideline-card ul li::before {
  position: absolute;
  left: 0;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
}

.guideline-card--do   ul li::before { content: '✓'; color: var(--earl-green); }
.guideline-card--dont ul li::before { content: '×'; color: var(--pink); }

/* ── Typography ─────────────────────────────────────────────── */
.type-specimen {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px 32px;
  margin-bottom: 14px;
}

.type-specimen-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

.type-specimen-name {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.type-specimen-detail {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  text-align: right;
}

.specimen-display {
  font-family: var(--font-h);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.04;
  color: var(--fg);
}

.specimen-body {
  font-family: var(--font-b);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--fg);
}

.type-scale {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.type-scale th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.type-scale td {
  padding: 14px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  vertical-align: middle;
}

.type-scale td:nth-child(1) { font-family: var(--font-mono); font-size: 12px; color: var(--muted); width: 60px; }
.type-scale td:nth-child(2) { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.type-scale td:nth-child(3) { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.type-scale td:nth-child(4) { color: var(--fg); }

.type-scale .specimen-text {
  font-family: var(--font-h);
  font-weight: 800;
  line-height: 1.1;
  color: var(--fg);
}

.font-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* ── Imagery ────────────────────────────────────────────────── */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 40px;
}

.image-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg2);
  border: 1px solid var(--border);
}

.image-card img {
  width: 100%;
  height: 148px;
  object-fit: cover;
  display: block;
  transition: opacity var(--tr);
}

.image-card:hover img { opacity: 0.85; }

.image-card-footer {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.image-card-name {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.image-card-footer .btn {
  flex-shrink: 0;
  padding: 5px 12px;
  font-size: 11px;
}

/* ── Email signatures ───────────────────────────────────────── */
.sig-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 24px 24px;
  margin-bottom: 14px;
  border: 1px solid #e5e5e5;
}

.sig-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
  gap: 16px;
}

.sig-person {
  font-size: 12px;
  font-weight: 600;
  color: #595959;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-b);
}

/* Accordion */
.accordion {
  margin-top: 40px;
}

.accordion h3 {
  font-family: var(--font-h);
  font-size: 18px;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 14px;
}

.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  background: var(--bg2);
  border: none;
  padding: 15px 20px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--fg);
  font-family: var(--font-b);
  font-size: 14px;
  font-weight: 500;
  transition: background var(--tr);
  gap: 12px;
}

.accordion-trigger:hover { background: rgba(15,42,12,0.04); }

.accordion-body {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-body-inner {
  padding: 20px 24px;
}

.accordion-body ol {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accordion-body li {
  font-size: 13.5px;
  color: var(--fg);
  line-height: 1.55;
}

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--earl-green);
  color: var(--earl-lime);
  padding: 2px 7px;
  border-radius: 5px;
}

/* ── Colour tool ────────────────────────────────────────────── */
.tool-intro {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.tool-wrapper {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.tool-wrapper iframe {
  display: block;
  width: 100%;
  height: calc(100dvh - 200px);
  min-height: 760px;
  border: none;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 860px) {
  .main {
    padding: 40px 32px 80px;
  }
}

@media (max-width: 768px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    height: auto;
    flex-direction: row;
    align-items: stretch;
    border-right: none;
    border-bottom: 1px solid var(--border);
    overflow: visible;
  }

  .sidebar-brand {
    padding: 14px 20px;
    border-bottom: none;
    border-right: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
  }

  .sidebar-logo { margin-bottom: 0; width: 52px; }
  .sidebar-label { display: none; }

  .sidebar-nav {
    padding: 0;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .sidebar-nav::-webkit-scrollbar { display: none; }

  .sidebar-nav a {
    padding: 14px 16px;
    white-space: nowrap;
    border-left: none;
    border-bottom: 2px solid transparent;
    font-size: 13px;
  }

  .sidebar-nav a:hover,
  .sidebar-nav a.active {
    border-left: none;
    border-bottom-color: var(--accent);
  }

  .sidebar-nav .icon { display: none; }

  .main {
    padding: 28px 20px 64px;
  }

  .logo-panels,
  .guidelines,
  .overview-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Theme-pair tiles (colours page) ────────────────────────── */
.theme-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.theme-tile {
  background: var(--c-bg);
  color: var(--c-fg);
  border: 1px solid var(--c-bd);
  border-radius: var(--r-lg);
  padding: 24px;
  font-size: 12px;
}

.theme-tile-meta {
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 14px;
  font-family: var(--font-mono);
}

.theme-tile-h3 {
  font-family: var(--font-h);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.theme-tile-hi {
  display: inline-block;
  background: var(--c-hi);
  color: var(--c-bg);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--r-pill);
}

.swatch-usage code {
  font-size: 11px;
  padding: 1px 6px;
}

/* ── Voice page ─────────────────────────────────────────────── */
.voice-rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .voice-rules { grid-template-columns: 1fr; }
}

.voice-rule {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 24px 26px;
}

.voice-rule h4 {
  font-family: var(--font-h);
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--earl-green);
}

.voice-rule p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg);
}

.voice-rule p + p { margin-top: 10px; color: var(--muted); }

.voice-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.voice-pair-col {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 22px 24px;
}

.voice-pair-col h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.voice-pair-col--use h4   { color: var(--earl-green); }
.voice-pair-col--avoid h4 { color: var(--pink); }

.voice-pair-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.voice-pair-col li {
  font-size: 13.5px;
  color: var(--fg);
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}

.voice-pair-col li::before {
  position: absolute;
  left: 0;
  font-weight: 700;
}

.voice-pair-col--use li::before   { content: '✓'; color: var(--earl-green); }
.voice-pair-col--avoid li::before { content: '×'; color: var(--pink); }

@media (max-width: 768px) {
  .voice-pair { grid-template-columns: 1fr; }
}

/* ── Iconography page ───────────────────────────────────────── */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

.icon-tile {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 28px 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.icon-tile .icon-chip {
  width: 64px;
  height: 64px;
  background: var(--earl-green);
  border: 1px solid var(--earl-border);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--earl-lime);
  font-size: 28px;
  line-height: 1;
}

.icon-tile-meta {
  text-align: center;
}

.icon-tile-name {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 3px;
}

.icon-tile-role {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ── Components page ────────────────────────────────────────── */
.cmp {
  margin-bottom: 56px;
}

.cmp-canvas {
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  margin-bottom: 14px;
}

.cmp-canvas > .canvas-frame {
  padding: 28px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.cmp-canvas--green   { background: var(--earl-green); color: var(--earl-cream); }
.cmp-canvas--lime    { background: var(--earl-lime);  color: var(--earl-fg-light); }
.cmp-canvas--white   { background: #fff;              color: #0F2A0C; }

.cmp-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* Pill button (canonical) */
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--r-pill);
  font-family: var(--font-h);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.22s, box-shadow 0.22s;
}
.pill-btn:hover { transform: translateY(-2px); text-decoration: none; }
.pill-btn--lime { background: var(--earl-lime); color: var(--earl-green); }
.pill-btn--lime:hover { box-shadow: 0 10px 36px rgba(200,255,51,0.30); }
.pill-btn--dark { background: var(--earl-green); color: var(--earl-lime); }
.pill-btn--dark:hover { box-shadow: 0 10px 36px rgba(27,61,24,0.35); }

.pill-btn .arrow { transition: transform 0.22s; }
.pill-btn:hover .arrow { transform: translate(4px, -4px); }

.nav-cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  min-height: 44px;
  border-radius: var(--r-pill);
  background: var(--earl-lime);
  color: var(--earl-green);
  border: 1.5px solid var(--earl-lime);
  font-family: var(--font-h);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.025em;
  text-decoration: none;
  transition: opacity 0.22s;
}
.nav-cta-pill:hover { opacity: 0.85; text-decoration: none; }

/* Tag pills (categories / status) */
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.tag-pill--pr    { color: #FF5CAD; background: rgba(255,92,173,0.14); }
.tag-pill--sport { color: #C8FF33; background: rgba(200,255,51,0.14); }
.tag-pill--ai    { color: #B488FF; background: rgba(153,85,255,0.16); }
.tag-pill--fin   { color: #4488FF; background: rgba(68,136,255,0.14); }
.tag-pill--live  { color: #C8FF33; background: rgba(200,255,51,0.16); }
.tag-pill--live::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #C8FF33;
  box-shadow: 0 0 8px #C8FF33;
}

/* Eyebrow label */
.eyebrow-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-b);
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--earl-lime);
}
.eyebrow-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

/* Stat block */
.stat-block {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: 100%;
}
.stat-block .stat-cell {
  padding: 0 24px;
  border-right: 1px solid rgba(15,42,12,0.16);
}
.stat-block .stat-cell:first-child { padding-left: 0; }
.stat-block .stat-cell:last-child  { padding-right: 0; border-right: none; }
.stat-num {
  font-family: var(--font-h);
  font-weight: 800;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.045em;
  margin-bottom: 8px;
}
.stat-lbl {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(15,42,12,0.55);
}

/* Pillar card */
.pillar-card {
  padding: 32px 32px 36px;
  border: 1px solid rgba(15,42,12,0.16);
  border-radius: var(--r-sm);
  max-width: 360px;
  background: var(--earl-lime);
  color: var(--earl-fg-light);
}
.pillar-card .pillar-num {
  font-family: var(--font-h);
  font-weight: 800;
  font-size: 54px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(15,42,12,0.16);
  margin-bottom: 20px;
}
.pillar-card .pillar-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(15,42,12,0.52);
  margin-bottom: 12px;
}
.pillar-card h4 {
  font-family: var(--font-h);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin-bottom: 14px;
  color: var(--earl-fg-light);
}
.pillar-card p {
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(15,42,12,0.6);
}

/* Spacing & radii ramps */
.token-row {
  display: grid;
  grid-template-columns: 180px 1fr 80px;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  font-size: 12.5px;
  border-bottom: 1px solid var(--border);
}
.token-row:last-child { border-bottom: none; }
.token-row .token-name {
  font-family: var(--font-mono);
  color: var(--muted);
}
.token-row .token-bar {
  height: 14px;
  background: var(--accent);
  border-radius: 2px;
}
.token-row .token-val {
  font-family: var(--font-mono);
  color: var(--muted);
  text-align: right;
}

.radii-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 14px;
}
.radii-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: 11.5px;
}
.radii-shape {
  width: 88px;
  height: 56px;
  background: var(--earl-green);
  border: 1px solid var(--earl-border);
}
.radii-shape--pill {
  width: 88px;
  height: 36px;
  background: var(--earl-lime);
  border-radius: var(--r-pill);
  border: none;
}

/* Trusted-by inline */
.trusted-inline {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--earl-lime);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  width: 100%;
}
.trusted-inline .eyebrow {
  font-family: var(--font-h);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.028em;
  color: var(--earl-green);
}
.trusted-inline .logos {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.trusted-inline .logos img { height: 36px; width: auto; }
.trusted-inline .logos img.strip { height: 24px; }
.trusted-inline .logos img.f1    { height: 24px; }

/* Guardrail-style yes/no list (already present as .guidelines) reused below. */
