/**
 * AqlVest Design Tokens
 * Evidence First. Decision Yours.
 *
 * Primitive palette → semantic aliases → component usage.
 * New styles should use semantic tokens (--surface-*, --text-*, --font-*).
 * Legacy aliases (--emerald, --off-white, etc.) remain for existing rules.
 */
:root {
  /* —— Primitive palette —— */
  --color-emerald: #0F2D24;
  --color-green: #1F4D3E;
  --color-gold: #C79A4F;
  --color-gold-light: #E8D5B0;
  --color-cream: #FFFFFF;
  --color-cream-canvas: #FFFFFF;
  --color-cream-inset: #F8FAF9;
  --color-slate: #6B7280;
  --color-slate-muted: #5C6B64;
  --color-white: #FFFFFF;
  --color-danger: #B42318;
  --color-warning: #B7791F;
  --color-success: #16794C;
  --color-ink: #17231f;
  --color-line: #dfd3bf;
  --color-border-refined: #E8E0D0;

  /* —— Semantic surfaces —— */
  --surface-canvas: #FFFFFF;
  --surface-1: var(--color-white);
  --surface-2: var(--color-white);
  --surface-3: var(--color-emerald);
  --surface-inset: var(--color-cream-inset);

  /* —— Semantic status —— */
  --status-success-bg: #e7f6ed;
  --status-warning-bg: #fff4d8;
  --status-danger-bg: #fde8e4;
  --status-neutral-bg: #edf2ef;

  /* —— Spacing scale —— */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* —— Typography families —— */
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-data: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* —— Typography scale —— */
  --text-display-xl: clamp(2.75rem, 5vw, 3.5rem);
  --text-display-lg: clamp(2rem, 3.5vw, 2.625rem);
  --text-heading-lg: 1.875rem;
  --text-heading-md: 1.375rem;
  --text-heading-sm: 1.125rem;
  --text-body-lg: 1.125rem;
  --text-body-md: 1rem;
  --text-body-sm: 0.8125rem;
  --text-label: 0.75rem;
  --text-data: 1rem;
  --leading-tight: 1.15;
  --leading-body: 1.55;
  --leading-relaxed: 1.65;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-heavy: 800;

  /* —— Radius —— */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;

  /* —— Shadows (legacy + refined targets for later phases) —— */
  --shadow-card: 0 18px 54px rgba(20, 42, 34, .10);
  --shadow-soft: 0 10px 28px rgba(20, 42, 34, .08);
  --shadow-none: none;
  --shadow-raised: 0 8px 24px rgba(15, 45, 36, .08);
  --shadow-elevated: 0 4px 12px rgba(15, 45, 36, .06);
  --shadow-focus: 0 0 0 3px rgba(199, 154, 79, .25);

  /* —— Legacy aliases (preserve existing component styles) —— */
  --emerald: var(--color-emerald);
  --emerald-2: var(--color-green);
  --gold: var(--color-gold);
  --off-white: #FFFFFF;
  --paper: var(--color-white);
  --ink: var(--color-ink);
  --muted: var(--color-slate);
  --line: var(--color-line);
  --border: var(--color-border-refined);
  --surface: var(--surface-1);
  --cream-2: var(--color-cream-inset);
  --success-bg: var(--status-success-bg);
  --success: var(--color-success);
  --warning-bg: var(--status-warning-bg);
  --warning: var(--color-warning);
  --danger-bg: var(--status-danger-bg);
  --danger: var(--color-danger);
  --neutral-bg: var(--status-neutral-bg);
  --neutral: #40514a;
  --shadow: var(--shadow-card);
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: #FFFFFF;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
code { background: #f1eadc; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1px 5px; }

.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;
}

.app-shell {
  min-height: 100vh;
  display: block;
  overflow-x: hidden;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: 22px 16px 20px;
  background: #0f2d24;
  color: #f8f4ea;
  border-right: 1px solid rgba(201, 154, 79, 0.22);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
}

.brand-lockup-sidebar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: auto;
  padding: 8px 6px 12px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(201, 154, 79, 0.22);
}

.brand-lockup-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-wordmark {
  color: #f8f4ea;
  font-size: 1.25rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.brand-mark {
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-mark--sidebar {
  width: 44px;
  height: 44px;
}

.brand-mark--shell {
  width: 32px;
  height: 32px;
}

.brand-mark--mobile {
  width: 36px;
  height: 36px;
}

.brand-mark--note {
  width: 28px;
  height: 28px;
  opacity: 0.92;
}

.brand-mark--pulse {
  opacity: 0.88;
}

.report-brand-logo {
  width: min(100%, 218px);
  height: auto;
  object-fit: contain;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  min-height: auto;
  padding: 10px 8px 4px;
}

.brand-logo {
  width: 100%;
  max-width: 216px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.brand-tagline {
  display: block;
  padding-left: 0;
}

.brand-tagline span {
  display: block;
  color: #d8bb83;
  font-size: 10px;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.brand-tagline strong {
  display: block;
  margin-top: 1px;
  color: #f8f4ea;
  font-size: 13px;
  font-weight: var(--weight-bold);
  letter-spacing: .01em;
}

.brand img {
  width: 216px;
  height: 66px;
  object-fit: contain;
  object-position: left center;
}

.sidebar-section-label {
  margin: 4px 8px 0;
  color: rgba(216, 187, 131, 0.85);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.side-nav {
  display: grid;
  gap: 4px;
  font-weight: 700;
}

.side-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: rgba(232, 241, 236, 0.92);
  text-decoration: none;
}

.side-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.side-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 3px 0 0 var(--gold);
}

.side-nav .nav-label {
  line-height: 1.2;
}

.sidebar-note {
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(201, 154, 79, 0.28);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-note-mantra {
  margin: 0;
  color: #f0e6d2;
  font-size: 0.875rem;
  font-weight: var(--weight-bold);
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.sidebar-note span {
  display: block;
  color: #d8bb83;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.sidebar-note strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.app-main {
  height: 100vh;
  margin-left: 280px;
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(242,235,221,.98), rgba(250,247,240,.98)),
    radial-gradient(circle at 20% 0%, rgba(201,163,74,.14), transparent 34%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 8px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 16px;
  overflow: visible;
  background: rgba(242, 235, 221, .94);
  border-bottom: 1px solid rgba(201,163,74,.28);
  backdrop-filter: blur(16px);
}

.shell-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  min-width: 0;
}

.shell-brand-mantra {
  color: var(--emerald);
  font-size: 0.8125rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--emerald);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.topbar-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

.methodology-picker {
  display: grid;
  gap: 8px;
  min-width: min(100%, 300px);
  max-width: 360px;
}

.topbar-methodology {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: none;
}

.topbar-methodology label {
  margin: 0;
  color: var(--emerald);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
  white-space: nowrap;
}

.topbar-methodology-select {
  min-height: 36px;
  min-width: 168px;
  width: auto;
  max-width: 220px;
  padding: 0 28px 0 10px;
  font-size: 13px;
  font-weight: 800;
}

.methodology-picker label {
  margin: 0;
  color: var(--emerald);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .02em;
}

.methodology-helper {
  margin: 0;
  max-width: 720px;
  line-height: 1.5;
  font-size: 13px;
}

.methodology-section-helper {
  margin-top: 10px;
}

.nav-close-testing-hidden {
  display: none !important;
}

.mobile-brand {
  display: none;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.mobile-brand-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.mobile-brand-text strong {
  color: var(--emerald);
  font-size: 0.9375rem;
  line-height: 1.1;
}

.mobile-brand-text span {
  color: #6b7872;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.25;
}

.mobile-brand img { width: 148px; height: 44px; object-fit: contain; object-position: left center; }

.hero-search {
  margin: 14px 0 0;
  max-width: 560px;
}

.search-form {
  position: relative;
  z-index: 12;
}

.search-field-wrap {
  position: relative;
}

.hero-search-row,
.report-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
  position: relative;
  z-index: 2;
}

.hero-search-input {
  min-height: 48px;
  padding: 0 16px;
  border: 2px solid rgba(15, 45, 36, .18);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--emerald);
  font-size: 16px;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.hero-search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,163,74,.18);
}

.hero-search-submit {
  min-height: 48px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: var(--weight-bold);
}

.hero-search-message {
  margin: 8px 0 0;
  max-width: 560px;
  font-size: 13px;
  position: relative;
  z-index: 1;
}

.hero-evidence-note {
  margin: 10px 0 0;
  max-width: 52ch;
  color: #4a5c55;
  font-size: 0.9375rem;
  line-height: 1.65;
  font-weight: var(--weight-medium);
}

.search-suggestions-panel,
.hero-search-results,
.report-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 40;
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow);
  max-height: min(280px, 42vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.search-suggestions-panel.is-open,
.hero-search-results.is-open,
.report-search-results.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-search.has-results ~ .search-discovery {
  margin-top: 22px;
}

.report-search-bar {
  margin: 0 0 20px;
  position: relative;
  z-index: 11;
}

.report-search {
  max-width: 520px;
  position: relative;
}

.report-search-input {
  min-height: 44px;
}

.search-result-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.search-result-card:first-child {
  border-top-left-radius: calc(var(--radius-md) - 1px);
  border-top-right-radius: calc(var(--radius-md) - 1px);
}

.search-result-card:last-child {
  border-bottom: 0;
  border-bottom-left-radius: calc(var(--radius-md) - 1px);
  border-bottom-right-radius: calc(var(--radius-md) - 1px);
}

.search-result-card:hover,
.search-result-card[aria-selected="true"] {
  background: #fff8e8;
}

.search-result-card[aria-selected="true"] {
  box-shadow: inset 3px 0 0 var(--gold);
}

.search-result-primary {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.search-result-name {
  color: var(--emerald);
  font-size: 14px;
  line-height: 1.25;
}

.search-result-ticker {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.search-result-secondary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.search-result-secondary .badge {
  padding: 4px 8px;
  font-size: 11px;
}

.search-result-year {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.mode-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 3px;
}
.mode-option {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  background: transparent;
  color: var(--emerald);
  font-size: 13px;
}
.mode-option.active {
  background: var(--emerald);
  color: #fff;
}

.methodology-select {
  min-height: 46px;
  min-width: 240px;
  width: 100%;
  border: 2px solid rgba(15, 45, 36, .22);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--emerald);
  padding: 0 36px 0 14px;
  font: inherit;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(20, 42, 34, .06);
}

.methodology-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,163,74,.18);
}

.report-methodology-picker {
  align-items: flex-start;
}

.report-methodology-picker .methodology-picker-copy {
  flex: 1 1 240px;
}

.report-methodology-picker .methodology-select {
  flex: 0 1 280px;
  min-width: 240px;
}

.mobile-nav { display: none; }

main { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }
.app-view { display: none; }
.app-view.active-view { display: block; }
.hero.app-view.active-view {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  grid-template-areas:
    "brand brand"
    "copy trust";
  gap: var(--space-6) var(--space-8);
}
.hidden-view { display: none !important; }
.hero {
  min-height: 0;
  align-items: start;
  padding: var(--space-8) 0 var(--space-6);
  overflow: visible;
}

.hero-brand-band {
  grid-area: brand;
  display: grid;
  gap: var(--space-5);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid rgba(15, 45, 36, .08);
}

.hero-brand-lockup {
  display: inline-flex;
  align-items: center;
}

.brand-lockup {
  text-decoration: none;
  color: inherit;
}

.brand-lockup-logo {
  width: min(100%, 340px);
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.hero-mantra {
  margin: 0;
  color: var(--emerald);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: var(--weight-bold);
  max-width: 18ch;
}

.hero-mantra span {
  display: block;
}

.hero-mantra span:last-child {
  color: var(--color-green);
}

.hero-copy {
  grid-area: copy;
  position: relative;
  z-index: 2;
  min-width: 0;
}

.hero-subtitle {
  max-width: 640px;
  margin: 0 0 var(--space-5);
  color: #4b5b55;
  font-size: var(--text-body-lg);
  line-height: var(--leading-relaxed);
}

.hero-trust-note {
  margin: var(--space-3) 0 0;
  max-width: 640px;
  padding: var(--space-3) var(--space-4);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(255, 255, 255, .55);
  color: #46554f;
  font-size: var(--text-body-sm);
  line-height: var(--leading-body);
}

.hero-trust-panel {
  grid-area: trust;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, #10372c 0%, #0F2D24 55%, #0a211b 100%);
  box-shadow: var(--shadow-raised);
  border: 1px solid rgba(201, 154, 79, .32);
}

.hero-trust-panel-label {
  margin: 0 0 var(--space-5);
  color: #d8bb83;
  font-size: var(--text-label);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.trust-metric-grid {
  display: grid;
  gap: var(--space-4);
}

.trust-metric {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
}

.trust-metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(201, 154, 79, .35);
  color: #f8f4ea;
  font-size: 11px;
  font-weight: var(--weight-bold);
  letter-spacing: .04em;
}

.trust-metric-icon-gold {
  color: var(--gold);
  font-size: 18px;
  font-weight: var(--weight-regular);
}

.trust-metric strong {
  display: block;
  color: #fff;
  font-size: 15px;
  font-weight: var(--weight-bold);
  line-height: 1.3;
}

.trust-metric p {
  margin: 4px 0 0;
  color: #c5d5ce;
  font-size: 13px;
  line-height: 1.45;
}

.hero-copy h1 {
  margin: 0 0 12px;
  color: var(--emerald);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}
.hero-copy p,
.hero-lead { max-width: 720px; color: #4b5b55; font-size: 18px; line-height: 1.65; margin: 0; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: var(--radius-md);
  padding: 0 16px;
  font-weight: 900;
}

.button.primary { background: var(--emerald); color: #fff; }
.button.secondary { background: #fff; color: var(--emerald); border: 1px solid var(--emerald); }
.button.primary:hover { background: #073f31; }
.button.secondary:hover { background: #f7efe1; }

.hero-panel {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #10372c, #0F2D24);
  box-shadow: var(--shadow);
  border: 1px solid rgba(201,154,79,.34);
}

/* Legacy hero-panel retained for any dynamic renders */

.hero-panel .metric {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
}

.hero-panel .metric span { color: #d8c9ad; }
.hero-panel .metric strong { color: #fff; font-size: 22px; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--emerald-2);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
}
.search-card, .panel {
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.search-card { padding: 22px; }
label { display: block; font-weight: 900; color: #143d31; margin-bottom: 8px; }
.search-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: 13px 14px;
  outline: none;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,163,74,.18); }
button {
  border: 0;
  border-radius: 8px;
  background: var(--emerald);
  color: #fff;
  padding: 13px 16px;
  font-weight: 900;
  cursor: pointer;
}
button:hover { background: #073f31; }
.link-button { padding: 8px 11px; font-size: 13px; }
.muted { color: var(--muted); font-size: 14px; }
.muted.success { color: var(--success); }
.muted.error,
.hero-search-message.error { color: var(--danger); }

.suggestion-empty {
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 10px 12px;
  color: var(--muted);
  background: #fff;
  font-size: 13px;
}

/* Phase 2 — Branded shell moments */
.brand-moment-shell {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.brand-moment {
  display: grid;
  gap: 12px;
  justify-items: start;
  max-width: 42rem;
  padding: 8px 0;
  text-align: left;
}

.brand-moment--compact {
  gap: 8px;
  padding: 4px 0;
}

.brand-moment--inline {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px 12px;
  max-width: none;
  padding: 12px 14px;
}

.brand-moment--inline .brand-moment-message {
  margin: 0;
}

.brand-moment--inline .brand-moment-mantra,
.brand-moment--inline .brand-moment-title,
.brand-moment--inline .brand-moment-actions {
  grid-column: 1 / -1;
}

.brand-moment-mantra {
  margin: 0;
  color: var(--gold-dark, #9a7b2e);
  font-size: 0.8125rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.04em;
}

.brand-moment-title {
  margin: 0;
  color: var(--emerald);
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
}

.brand-moment--compact .brand-moment-title {
  font-size: 1.125rem;
}

.brand-moment-message {
  margin: 0;
  color: #5a6b64;
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 58ch;
}

.brand-moment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.brand-moment-loader {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.report-unavailable-note {
  margin: 0;
  max-width: 52ch;
}

.search-suggestions-panel .brand-moment--inline,
.hero-search-results .brand-moment--inline,
.report-search-results .brand-moment--inline {
  border-top: 1px solid rgba(15, 45, 36, 0.08);
  background: #fff;
}

.report-document--loading .report-brand-band {
  align-items: center;
}

.section { padding: 56px 0; scroll-margin-top: 92px; }
.section-heading { max-width: 780px; margin-bottom: 18px; }
.section-heading p { color: #52615b; line-height: 1.65; }
.step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.step-card,
.evidence-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 18px;
}
.step-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--emerald);
  color: #fff;
  font-weight: 900;
}
.step-card h3,
.evidence-card strong { color: var(--emerald); }
.step-card p,
.evidence-card p { color: #53615c; line-height: 1.55; }

.search-discovery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 850px;
  margin-top: 22px;
}
.search-discovery section {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.72);
  padding: 14px;
}
.search-discovery h2,
.company-empty-discovery h3 {
  margin: 0 0 10px;
  color: var(--emerald);
  font-size: 16px;
}

.discovery-empty {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.company-empty-state {
  display: grid;
  gap: 24px;
  min-height: 0;
  margin-bottom: 0;
  padding: 4px 0 24px;
}

.company-empty-intro h2 {
  margin: 0 0 10px;
  color: var(--emerald);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
}

.company-empty-intro p {
  margin: 0;
  max-width: 640px;
  line-height: 1.6;
}

.company-empty-discovery {
  margin-top: 0;
  max-width: none;
}

.report-unavailable {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 220px;
}

.report-unavailable-actions {
  margin-top: 8px;
}
.quick-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  background: #fff;
  color: var(--emerald);
  border: 1px solid var(--line);
}
.quick-chip:hover { border-color: var(--gold); background: #fff8e8; }
.quick-chip span {
  color: var(--muted);
  font-size: 12px;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 16px;
}
.education-card,
.academy-card,
.academy-category {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.education-card { padding: 18px; }
.education-card dl {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}
.education-card dt,
.academy-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.education-card dd {
  margin: 3px 0 0;
  color: #263b34;
  line-height: 1.55;
}
.threshold-table table { min-width: 420px; }

.academy-search {
  max-width: 840px;
  margin-bottom: 18px;
}
.academy-sections,
.academy-results {
  display: grid;
  gap: 18px;
}
.academy-category { padding: 18px; }
.academy-category h3,
.academy-results h3 {
  margin: 0 0 12px;
  color: var(--emerald);
}
.academy-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}
.academy-card {
  padding: 15px;
  min-height: 170px;
}
.academy-card strong {
  display: block;
  margin: 6px 0 8px;
  color: var(--emerald);
}
.academy-card p {
  color: #53615c;
  line-height: 1.5;
}
.academy-card small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}
.video-thumb {
  height: 112px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #0F2D24, #1F4D3E 58%, #C79A4F);
  margin-bottom: 10px;
}
.video-card { min-height: 250px; }

.help-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-height: 22px;
  margin-left: 4px;
  padding: 0;
  border-radius: 50%;
  background: #fff8e8;
  border: 1px solid var(--gold);
  color: var(--emerald);
  font-size: 12px;
}
.help-popover {
  position: absolute;
  z-index: 30;
  width: min(340px, calc(100vw - 36px));
  margin-top: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--ink);
}
.help-popover strong { color: var(--emerald); }
.help-popover p {
  margin: 8px 0 0;
  color: #46554f;
  line-height: 1.5;
  font-weight: 500;
}
.simple-explainer {
  margin: 16px 0;
  border: 1px solid var(--line);
  border-left: 6px solid var(--gold);
  border-radius: var(--radius-md);
  background: #fffdf8;
  padding: 18px;
}
.simple-explainer h3 { margin: 0 0 8px; color: var(--emerald); }
.simple-explainer p,
.simple-gauge p { color: #46554f; line-height: 1.55; }

.workspace-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.78);
}
.workspace-tab {
  background: transparent;
  color: var(--emerald);
  min-height: 42px;
}
.workspace-tab.active,
.workspace-tab:hover {
  background: var(--emerald);
  color: #fff;
}
.workspace-panel { display: none; }
.workspace-panel.active { display: block; }
.workspace-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.workspace-builder {
  position: sticky;
  top: 96px;
}
.workspace-builder h3,
.workspace-builder h4,
.export-panel h3,
.portfolio-list h3,
.etf-header h2 {
  margin: 0 0 12px;
  color: var(--emerald);
}
.workspace-search,
.paste-form {
  position: relative;
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.workspace-suggestions {
  display: grid;
  gap: 8px;
}
.workspace-suggestion {
  display: grid;
  gap: 3px;
  text-align: left;
  background: #fff;
  color: var(--emerald);
  border: 1px solid var(--line);
}
.workspace-suggestion:hover {
  background: #fff8e8;
  border-color: var(--gold);
}
.workspace-suggestion span {
  color: var(--muted);
  font-size: 12px;
}
.portfolio-list {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
  padding-right: 3px;
}
.portfolio-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 10px;
}
.portfolio-list-row span {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: #47574f;
  font-size: 13px;
}
.portfolio-list-row strong {
  color: var(--emerald);
  font-size: 14px;
}
.portfolio-list-row div {
  display: inline-flex;
  gap: 4px;
}
.icon-button {
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border-radius: 6px;
  background: #fff8e8;
  color: var(--emerald);
  border: 1px solid var(--line);
}
.icon-button:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.workspace-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.workspace-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 16px;
}
.workspace-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.workspace-card strong {
  display: block;
  margin-top: 6px;
  color: var(--emerald);
  font-size: 22px;
}
.workspace-card p {
  color: #53615c;
  line-height: 1.45;
}
.methodology-pass-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.methodology-pass-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fffdf8;
  padding: 12px;
}
.methodology-pass-grid strong {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}
.methodology-pass-grid span {
  display: block;
  margin: 6px 0 2px;
  color: var(--emerald);
  font-size: 24px;
  font-weight: 900;
}
.methodology-pass-grid small {
  color: var(--muted);
  font-weight: 800;
}
.workspace-table table { min-width: 1120px; }
.workspace-table td small {
  display: block;
  color: var(--danger);
  margin-top: 4px;
  font-size: 12px;
}
.export-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.export-panel h3 { flex: 1 0 100%; }
.export-panel button {
  background: #f4efe5;
  color: var(--muted);
  border: 1px solid var(--line);
  cursor: not-allowed;
}
.export-panel button span {
  display: block;
  font-size: 11px;
  font-weight: 800;
}
.skeleton-list {
  display: grid;
  gap: 10px;
}
.skeleton-list span {
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(90deg, #fff, #f2eadc, #fff);
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-line,
.skeleton-pill,
.skeleton-avatar {
  display: block;
  border-radius: 6px;
  background: #ece4d4;
}

.skeleton-line {
  height: 14px;
  width: 100%;
}

.skeleton-line-xs { height: 10px; width: 56%; }
.skeleton-line-sm { height: 12px; width: 42%; }
.skeleton-line-lg { height: 22px; width: 78%; }
.skeleton-line-xl { height: 36px; width: 68%; }

.skeleton-pill {
  height: 32px;
  width: 88px;
  border-radius: 999px;
}

.skeleton-pill-wide {
  width: 180px;
}

.skeleton-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.skeleton-tabs {
  display: flex;
  gap: 8px;
  padding: 8px;
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.report-skeleton {
  display: grid;
  gap: 24px;
}

.skeleton-block {
  pointer-events: none;
}

.skeleton-methodology-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fffdf8;
}

.skeleton-summary-grid {
  margin: 0;
}

.skeleton-card {
  pointer-events: none;
  border-top-color: #d8c9ad;
}

.skeleton-content-block {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.skeleton-table {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

body.is-loading-report #globalMethodologySelect {
  opacity: 0.55;
  pointer-events: none;
}
.empty-state.compact {
  min-height: 130px;
  padding: 16px;
}
.empty-state.compact h3 { margin: 0 0 8px; color: var(--emerald); }
.etf-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.etf-header p { color: #53615c; }
.watch-row {
  width: 100%;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 8px;
  margin-top: 8px;
  text-align: left;
  background: #fffdf8;
  color: var(--ink);
  border: 1px solid var(--line);
}
.watch-row strong {
  margin: 0;
  font-size: 14px;
}
.watch-row span {
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
}
.watchlist-toggle {
  margin-top: 14px;
}

.preview-dashboard {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.preview-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}
.preview-header h3 {
  margin: 10px 0 4px;
  color: var(--emerald);
  font-size: 28px;
}
.preview-header p { margin: 0; color: var(--muted); }
.skeleton-card {
  background: linear-gradient(90deg, #fff, #f7f0e4, #fff);
}
.threshold-placeholder {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 16px;
}
.threshold-placeholder span {
  display: block;
  color: var(--muted);
  font-weight: 900;
  margin-bottom: 10px;
}
.threshold-placeholder div {
  height: 12px;
  border-radius: 999px;
  background: #efe5d4;
  overflow: hidden;
}
.threshold-placeholder i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--success), var(--gold));
}
.report-layout {
  display: block;
  max-width: 100%;
  padding-top: 8px;
}
.panel { padding: 22px; margin-bottom: 18px; }
.company-panel { display: none; }
.report-main {
  min-width: 0;
  max-width: 100%;
}
.report-main.is-loading .panel {
  margin-bottom: 0;
}
.company-panel h2, .section-heading h2, .panel h2 {
  margin: 0 0 10px;
  color: #123b30;
  font-size: 30px;
  line-height: 1.1;
}
.status-stack { display: grid; gap: 12px; margin-top: 22px; }
.status-stack div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.status-stack span { color: var(--muted); font-size: 13px; font-weight: 800; }
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.badge.success { background: var(--success-bg); color: var(--success); }
.badge.warning { background: var(--warning-bg); color: var(--warning); }
.badge.danger { background: var(--danger-bg); color: var(--danger); }
.badge.neutral { background: var(--neutral-bg); color: var(--neutral); }

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}
.panel-head p { color: #46554f; line-height: 1.6; }
.metric-grid, .coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.metric-grid.compact { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.coverage-stat {
  min-height: 86px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.coverage-stat span { color: #5f6f68; font-size: 0.9rem; }
.coverage-stat strong { font-size: 1.35rem; }
.coverage-summary h4 { margin-top: 20px; }
.clean-table tr.evidence-clickable { cursor: pointer; }
.clean-table tr.evidence-clickable:hover td { background: rgba(201, 162, 39, 0.08); }
.metric {
  min-height: 86px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 14px;
}
.metric.wide { grid-column: span 2; min-height: auto; }
.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.metric strong {
  display: block;
  color: var(--emerald);
  font-size: 26px;
  margin-top: 5px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}
.report-tabs {
  position: static;
  z-index: auto;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px;
  margin: 0 0 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: none;
}
.tab-button {
  flex: 0 0 auto;
  background: transparent;
  color: #40514a;
  border: 1px solid transparent;
  padding: 9px 12px;
  font-size: 14px;
}
.tab-button:hover,
.tab-button.active {
  background: var(--emerald);
  color: #fff;
  border-color: var(--emerald);
}
.report-section { display: none; }
.report-section.active { display: block; }
.report-section.report-summary.active {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Phase 1.5 — Institutional research report presentation */
.report-document {
  display: grid;
  gap: 0;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0 48px;
}

.report-brand-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--gold);
}

.report-brand-band--compact {
  padding-bottom: 14px;
  margin-bottom: 24px;
}

.report-brand-logo {
  width: min(100%, 218px);
  height: auto;
  object-fit: contain;
}

.report-brand-mantra {
  margin: 0;
  color: var(--emerald);
  font-size: 1.0625rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.report-brand-mantra--inline {
  margin-top: 16px;
  color: var(--gold-dark, #9a7b2e);
  font-size: 0.9375rem;
}

.report-cover {
  margin: 0 0 48px;
  padding: 48px 0 40px;
  border-bottom: 1px solid rgba(201, 168, 90, 0.35);
  background: transparent;
}

.report-cover-inner {
  display: grid;
  gap: 0;
  max-width: 100%;
}

.report-cover-eyebrow {
  margin: 0 0 16px;
  color: var(--gold-dark, #9a7b2e);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.report-cover-title {
  margin: 0 0 16px;
  color: var(--emerald);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 18ch;
}

.report-cover-subtitle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 36px;
  color: #5a6b64;
  font-size: 1.0625rem;
  line-height: 1.55;
}

.report-cover-ticker {
  color: #1f3a31;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.report-cover-sep {
  color: var(--gold);
  font-weight: 700;
  padding: 0 2px;
}

.report-cover-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px 32px;
  margin: 0;
  padding: 28px 0 0;
  border-top: 1px solid rgba(15, 45, 36, 0.1);
}

.report-cover-meta > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.report-cover-meta dt {
  margin: 0;
  color: #8a9690;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-cover-meta dd {
  margin: 0;
  color: #1f3a31;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
}

.report-cover-meta-wide {
  grid-column: 1 / -1;
}

.report-cover-actions {
  margin-top: 32px;
}

/* Executive summary — publication front matter */
.executive-summary {
  margin: 0 0 48px;
  padding: 0 0 40px;
  border-bottom: 1px solid rgba(15, 45, 36, 0.1);
}

.executive-summary-head {
  margin: 0 0 28px;
}

.executive-summary-title {
  margin: 0;
  color: var(--emerald);
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
}

.executive-summary-lead {
  margin: 8px 0 0;
  max-width: 58ch;
  color: #5a6b64;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.executive-summary-review {
  margin: 20px 0 0;
  font-size: 0.875rem;
  line-height: 1.55;
}

.executive-summary .report-assessment-grid {
  margin-top: 4px;
}

.executive-summary-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.executive-summary-item {
  display: grid;
  gap: 6px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(15, 45, 36, 0.08);
}

.executive-summary-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.executive-summary-item dt {
  margin: 0;
  color: var(--emerald);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.executive-summary-item dd {
  margin: 0;
  color: #3f524b;
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 62ch;
}

.report-chapter-label {
  margin: 0 0 8px;
  color: var(--gold-dark, #9a7b2e);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.report-chapter-title {
  margin: 0 0 10px;
  color: var(--emerald);
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
}

.report-chapter-lead {
  margin: 0;
  max-width: 58ch;
  color: #5a6b64;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.report-chapter-head {
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(15, 45, 36, 0.08);
}

.report-chapter {
  margin: 0;
  padding: 0 0 40px;
  border-bottom: 1px solid rgba(15, 45, 36, 0.08);
}

.report-document .report-section.report-summary.active {
  gap: 56px;
}

.report-document .report-section {
  padding-top: 12px;
}

.report-document .report-section > .eyebrow,
.report-document .report-chapter-label {
  margin: 0 0 8px;
}

.report-document .report-section > h2,
.report-document .report-chapter-title {
  margin: 0 0 14px;
}

/* Research tables */
.research-table {
  border: 1px solid rgba(15, 45, 36, 0.12);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: none;
}

.research-table table {
  min-width: 640px;
}

.research-table th {
  background: #f7f4ee;
  color: #4a5c55;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(15, 45, 36, 0.12);
}

.research-table td {
  padding: 16px;
  font-size: 0.9375rem;
  line-height: 1.5;
  border-bottom: 1px solid rgba(15, 45, 36, 0.08);
  vertical-align: middle;
}

.research-table tr:last-child td {
  border-bottom: none;
}

.research-table tbody tr:nth-child(even) td {
  background: rgba(247, 244, 238, 0.45);
}

/* Report component sharpening */
.report-document .mini-card,
.report-document .threshold-gauge,
.report-document .business-activity-card,
.report-document .review-card,
.report-document .evidence-card {
  border-radius: var(--radius-sm);
  box-shadow: none;
  border-color: rgba(15, 45, 36, 0.12);
}

.report-document .plain-box,
.report-document .matrix-block,
.report-document .simple-explainer,
.report-document .evidence-summary {
  border-radius: 0;
  box-shadow: none;
}

.report-tabs--editorial {
  gap: 0;
  overflow-x: auto;
  padding: 0;
  margin: 0 0 40px;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(15, 45, 36, 0.12);
  border-radius: 0;
  box-shadow: none;
  -webkit-overflow-scrolling: touch;
}

.report-tabs--editorial .tab-button {
  position: relative;
  flex: 0 0 auto;
  padding: 14px 18px;
  margin-bottom: -2px;
  background: transparent;
  color: #5a6b64;
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  white-space: nowrap;
}

.report-tabs--editorial .tab-button:hover {
  color: var(--emerald);
  background: transparent;
}

.report-tabs--editorial .tab-button.active {
  color: var(--emerald);
  background: transparent;
  border-bottom-color: var(--gold);
}

.report-tabs--editorial .tab-button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.report-section-head {
  margin: 0 0 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(15, 45, 36, 0.08);
}

.report-section-head--founder {
  margin-top: 0;
  padding-bottom: 24px;
  border-bottom-color: rgba(201, 168, 90, 0.35);
}

.report-section-title {
  margin: 0 0 10px;
  color: var(--emerald);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
}

.report-section-title--founder {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: clamp(1.625rem, 2.8vw, 2.25rem);
}

.report-section-lead {
  margin: 0;
  max-width: 62ch;
  color: #5a6b64;
  font-size: 1rem;
  line-height: 1.65;
}

.report-assessment-section {
  display: grid;
  gap: 0;
}

.report-assessment-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  width: 100%;
  min-width: 0;
}

.report-assessment-card {
  display: grid;
  gap: 10px;
  padding: 24px 0 24px 20px;
  border: none;
  border-left: 3px solid var(--neutral);
  border-bottom: 1px solid rgba(15, 45, 36, 0.08);
  border-radius: 0;
  background: transparent;
  min-width: 0;
}

.report-assessment-card:last-child {
  border-bottom: none;
}

.report-assessment-card.success { border-left-color: var(--success); }
.report-assessment-card.warning { border-left-color: var(--warning); }
.report-assessment-card.danger { border-left-color: var(--danger); }

.report-assessment-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}

.report-assessment-card-title {
  color: var(--emerald);
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.35;
}

.report-assessment-card-detail {
  margin: 0;
  color: #6b7872;
  font-size: 0.9375rem;
  line-height: 1.55;
  max-width: 58ch;
}

.report-document .report-section > .eyebrow {
  margin: 0 0 8px;
  color: var(--gold-dark, #9a7b2e);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.report-document .report-section > h2 {
  margin: 0 0 16px;
  color: var(--emerald);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
}

.report-document .report-section > .muted {
  margin: 0 0 24px;
  max-width: 62ch;
  color: #6b7872;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.report-document .plain-box,
.report-document .matrix-block,
.report-document .simple-explainer {
  padding: 24px 0;
  border: none;
  border-top: 1px solid rgba(15, 45, 36, 0.08);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.report-document .business-tab-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(201, 168, 90, 0.35);
}

.report-document .business-tab-header h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
}

.report-document .business-subheading {
  font-size: 1.125rem;
  font-weight: 800;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(201, 168, 90, 0.25);
}

.report-disclaimer {
  margin-top: 48px;
  padding: 28px 0 0;
  border: none;
  border-top: 2px solid rgba(201, 168, 90, 0.4);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.report-disclaimer p {
  margin: 0 0 6px;
  color: #6b7872;
  font-size: 0.875rem;
  line-height: 1.55;
}

.report-summary > .simple-explainer,
.report-summary > .plain-box,
.report-summary > .matrix-block,
.report-summary > .muted,
.report-summary > .report-assessment-section {
  margin: 0;
}
.result-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  border: 1px solid var(--line);
  border-left: 7px solid var(--neutral);
  background: #fff;
  border-radius: 8px;
  padding: 22px;
}
.result-card h2 { margin: 0 0 8px; color: #123b30; font-size: 28px; }
.result-card p { margin: 0; color: #46554f; line-height: 1.65; }
.result-card.success { border-left-color: var(--success); }
.result-card.warning { border-left-color: var(--warning); }
.result-card.danger { border-left-color: var(--danger); }

.company-hero-card,
.report-header-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .95fr);
  gap: 24px;
  padding: 24px;
  border: 1px solid rgba(15,45,36,.18);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ffffff, #fbf5e9);
  box-shadow: var(--shadow-soft);
}

.report-header-main h2,
.company-hero-card h2 {
  margin: 0 0 10px;
  color: var(--emerald);
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.08;
}

.report-meta-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  align-content: start;
}

.report-meta-item {
  display: grid;
  gap: 6px;
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.report-meta-item-wide {
  grid-column: 1 / -1;
}

.report-meta-item dt {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.report-meta-item dd {
  margin: 0;
  color: #223a32;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.report-meta-item dd .badge {
  justify-content: flex-start;
}

.company-description {
  margin: 0;
  color: #46554f;
  line-height: 1.65;
}
.company-facts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.company-facts-grid span {
  display: grid;
  gap: 4px;
  min-height: 62px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  color: #223a32;
  align-content: center;
}
.company-facts-grid strong {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.methodology-control {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin: 16px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}
.methodology-control h3 { margin: 0; color: var(--emerald); font-size: 24px; }

.business-tab-header {
  width: 100%;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.business-tab-header h2 {
  margin: 0 0 10px;
}

.business-tab-intro {
  margin: 0;
  max-width: none;
  line-height: 1.6;
}

.business-tab-body {
  display: grid;
  gap: 28px;
  width: 100%;
  min-width: 0;
}

.business-activities-block,
.business-review-block {
  display: grid;
  gap: 14px;
  align-content: start;
  width: 100%;
  min-width: 0;
}

.business-subheading {
  margin: 0;
  color: var(--emerald);
  font-size: 18px;
  line-height: 1.3;
}

.business-activity-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 14px;
  margin: 0;
  width: 100%;
}

.business-review-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 14px;
  align-items: stretch;
  width: 100%;
}

.business-activities-block .business-activity-grid {
  margin: 0;
}

.business-review-block .business-review-grid {
  margin: 0;
}

.business-tab .plain-box,
.business-empty-state {
  margin-top: 0;
  width: 100%;
}

.business-review-grid .review-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

.business-review-grid .review-card p {
  flex: 1 1 auto;
  margin: 0;
}

.business-review-grid .review-card .mini-card-top {
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.business-review-grid .review-card .mini-card-top strong {
  flex: 1 1 160px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.business-activity-card .badge {
  justify-self: start;
}

.business-activity-card strong {
  overflow-wrap: anywhere;
}

.summary-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}
.summary-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  height: 100%;
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--neutral);
  border-radius: var(--radius-md);
  background: #fff;
  min-width: 0;
}
.summary-card.success { border-top-color: var(--success); }
.summary-card.warning { border-top-color: var(--warning); }
.summary-card.danger { border-top-color: var(--danger); }
.summary-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.summary-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--emerald);
  color: #fff;
  font-weight: 900;
}
.summary-card strong {
  display: block;
  color: var(--emerald);
  margin: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.summary-card p {
  margin: 0;
  color: #53615c;
  line-height: 1.5;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.gauge-grid { display: grid; gap: 16px; margin-top: 0; }
.threshold-gauge {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 16px;
}
.gauge-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.gauge-head strong { color: var(--emerald); }
.gauge-track {
  position: relative;
  height: 54px;
  margin: 16px 8px 8px;
  border-bottom: 2px solid #d8c9ad;
}
.gauge-zero,
.gauge-limit {
  position: absolute;
  bottom: -26px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.gauge-zero { left: 0; }
.gauge-limit { right: 0; }
.limit-line {
  position: absolute;
  right: 0;
  bottom: -8px;
  width: 2px;
  height: 30px;
  background: var(--gold);
}
.gauge-dot {
  position: absolute;
  bottom: -8px;
  width: 18px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--emerald);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--emerald);
}
.threshold-gauge.exceeded .gauge-dot {
  left: calc(100% + 18px) !important;
  background: var(--danger);
  box-shadow: 0 0 0 2px var(--danger);
}
.gauge-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 30px;
}
.gauge-values span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.gauge-values strong {
  display: block;
  color: var(--emerald);
  font-size: 16px;
}
.matrix-block { margin-top: 18px; }
.report-summary .matrix-block { margin-top: 0; }
.methodology-matrix table { min-width: 980px; }
.matrix-cell {
  width: 100%;
  min-height: 38px;
  padding: 8px;
  font-size: 12px;
}
.matrix-cell.success { background: var(--success-bg); color: var(--success); }
.matrix-cell.warning { background: var(--warning-bg); color: var(--warning); }
.matrix-cell.danger { background: var(--danger-bg); color: var(--danger); }
.matrix-detail {
  display: none;
  margin-top: 8px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: #fffaf0;
  color: #47574f;
  font-size: 13px;
  line-height: 1.45;
}
td.expanded .matrix-detail { display: block; }
.business-activity-grid,
.evidence-card-grid,
.change-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 14px;
  margin: 0;
}
.business-activity-card,
.change-indicator {
  display: grid;
  gap: 10px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 15px;
}
.business-activity-card {
  min-height: 120px;
}
.business-activity-card strong,
.change-indicator strong { display: block; color: var(--emerald); margin: 0; }
.business-activity-card p,
.change-indicator p { color: #53615c; line-height: 1.45; }
.change-indicator.changed { border-left: 5px solid var(--gold); }
.evidence-card.rich dl {
  display: grid;
  gap: 9px;
  margin: 14px 0;
}
.evidence-card.rich dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.evidence-card.rich dd { margin: 2px 0 0; color: #203b32; }
.evidence-link { width: 100%; }
.timeline-placeholder {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 18px;
}
.timeline-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--emerald);
}
.timeline-head span { color: var(--muted); font-size: 13px; font-weight: 900; }
.timeline-chart-placeholder {
  height: 120px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 12px;
  margin-top: 16px;
  border-top: 1px dashed var(--line);
  border-bottom: 1px solid var(--line);
}
.timeline-chart-placeholder span {
  display: block;
  border-radius: 6px 6px 0 0;
  background: #e9dcc7;
}
.timeline-chart-placeholder span:nth-child(1) { height: 42%; }
.timeline-chart-placeholder span:nth-child(2) { height: 64%; }
.timeline-chart-placeholder span:nth-child(3) { height: 52%; }
.timeline-chart-placeholder span:nth-child(4) { height: 74%; }
.table-link { color: var(--emerald); font-weight: 900; text-decoration: underline; }
.research-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 48px;
  padding: 20px 24px;
  border-radius: 12px;
  border-left: 3px solid var(--gold-dark, #9a7b2e);
  background: #f9f6ee;
}
.research-notice-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(154, 123, 46, 0.16);
  color: var(--gold-dark, #9a7b2e);
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  font-weight: 800;
  font-style: italic;
}
.research-notice-body { min-width: 0; }
.research-notice-title {
  margin: 0 0 6px;
  color: var(--emerald);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.research-notice-body p { margin: 4px 0; color: #5a6b64; font-size: 0.875rem; line-height: 1.6; }
.research-notice-body p:first-of-type { margin-top: 0; }
@media (max-width: 560px) {
  .research-notice { flex-direction: column; gap: 10px; padding: 16px 18px; }
}
.data-quality-badge {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line, #e2e6e2);
  background: #f7faf8;
  font-size: 0.8125rem;
  color: #4b5a54;
}
.data-quality-badge-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f9e6b;
}
.data-quality-badge-dot--developing { background: #c9932f; }
.data-quality-badge-dot--early { background: #c0503f; }
.data-quality-badge-text strong { color: var(--emerald); }
.data-quality-badge-link {
  margin-left: auto;
  font-weight: 700;
  color: var(--emerald);
  text-decoration: underline;
  text-decoration-color: rgba(15, 78, 58, 0.35);
  white-space: nowrap;
}
.home-data-quality-slot .data-quality-badge { margin: 0 0 24px; }
.data-quality-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 16px 0;
  padding: 16px 20px;
  border-radius: 12px;
  border-left: 3px solid #c9932f;
  background: #fdf8ec;
}
.data-quality-banner-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(201, 147, 47, 0.18);
  color: #8a6410;
  font-weight: 800;
  font-size: 0.8125rem;
}
.data-quality-banner-title {
  margin: 0 0 6px;
  color: #8a6410;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.data-quality-banner-body p { margin: 4px 0; color: #5a6b64; font-size: 0.875rem; line-height: 1.6; }
.data-quality-banner-body a { color: #8a6410; font-weight: 700; }
.data-quality-panel { max-width: 760px; }
.data-quality-score-row { display: flex; align-items: center; gap: 14px; margin: 16px 0; }
.data-quality-score-value { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: var(--emerald); line-height: 1; }
.data-quality-score-scale { font-size: 1.1rem; font-weight: 500; color: #7d8a84; }
.data-quality-limitations { margin: 10px 0 0; padding-left: 20px; color: #46554f; line-height: 1.7; }
.data-quality-limitations li { margin-bottom: 8px; }
@media (max-width: 560px) {
  .data-quality-badge { flex-direction: column; align-items: flex-start; }
  .data-quality-badge-link { margin-left: 0; }
  .data-quality-banner { flex-direction: column; gap: 10px; padding: 14px 16px; }
}
.plain-box {
  margin-top: 14px;
  border: 1px solid var(--line);
  background: #fffdf8;
  border-radius: 8px;
  padding: 20px;
}
.report-summary .plain-box { margin-top: 0; }
.plain-box h3 { margin: 0 0 8px; color: var(--emerald); }
.plain-box p { margin: 8px 0; color: #46554f; line-height: 1.6; }
.company-summary-box { margin-bottom: 14px; }
.summary-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.summary-list span {
  display: grid;
  gap: 3px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  color: #2f4039;
}
.summary-list strong {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.comparison-block { margin-top: 18px; }
.comparison-table table { min-width: 1120px; }
.comparison-table th:first-child,
.comparison-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fffaf0;
}
.comparison-table td p {
  margin: 7px 0 0;
  color: #53615c;
  font-size: 13px;
  line-height: 1.45;
}
.comparison-table td small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 800;
}
.methodology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.methodology-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 16px;
}
.methodology-card.muted-card {
  background: #f6f3ed;
}
.methodology-card p {
  color: #46554f;
  line-height: 1.55;
}
.methodology-counts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 14px 0;
}
.methodology-counts span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  color: var(--muted);
  font-size: 13px;
}
.methodology-counts strong {
  display: block;
  color: var(--emerald);
  font-size: 20px;
}
.soft-list {
  margin: 12px 0;
  padding-left: 18px;
  color: #46554f;
  line-height: 1.55;
}
.evidence-links code { margin-right: 4px; }
.evidence-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.secondary-button {
  background: #fff;
  color: var(--emerald);
  border: 1px solid var(--emerald);
}
.secondary-button:hover { background: var(--success-bg); }
.mini-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 15px;
}
.mini-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.mini-card p { color: #46554f; line-height: 1.55; }
.mini-card small { color: var(--muted); font-weight: 700; }
.review-card dl {
  margin: 12px 0;
  display: grid;
  gap: 10px;
}

.review-card dl > div {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.review-card dl > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.review-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.review-card dd { margin: 2px 0 0; color: #243a32; }
.missing-card strong { color: #143d31; }
.quality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.quality-grid h3 { margin: 0 0 10px; color: #143d31; }
.kv-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.kv-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.kv-list span { color: var(--muted); }
.notice {
  border-left: 4px solid var(--gold);
  background: #fff9e8;
  padding: 12px 14px;
  border-radius: 6px;
}
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.clean-table { margin-top: 12px; }
table { width: 100%; min-width: 760px; border-collapse: collapse; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f8f0e2; color: #56645f; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
tr:last-child td { border-bottom: 0; }
.portfolio-form { max-width: 760px; }
.portfolio-results { margin-top: 18px; }
.policy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.policy-grid article { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 16px; }
.policy-grid h3 { margin: 0 0 8px; color: var(--emerald); }
.disclaimer p { margin: 10px 0; }
.empty-state { min-height: 240px; display: grid; align-content: center; justify-items: start; }
.empty-state.brand-moment-shell,
.evidence-global-empty.brand-moment-shell {
  justify-items: center;
  text-align: center;
}

.empty-state.brand-moment-shell .brand-moment,
.evidence-global-empty.brand-moment-shell .brand-moment {
  justify-items: center;
  text-align: center;
}

.empty-state.brand-moment-shell .brand-moment-actions,
.evidence-global-empty.brand-moment-shell .brand-moment-actions {
  justify-content: center;
}
.coverage-note {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  background: #fffdf8;
  border-radius: 8px;
  padding: 16px;
}
.coverage-note strong { color: var(--emerald); }
.coverage-note p { margin: 8px 0 0; color: #46554f; line-height: 1.6; }

footer,
.site-footer {
  margin-top: var(--space-12);
  padding: var(--space-10) var(--space-8);
  background: linear-gradient(180deg, #08382c, #062a21);
  color: #ecf7f2;
  display: grid;
  gap: var(--space-5);
  justify-items: center;
  text-align: center;
}

.footer-brand {
  display: grid;
  gap: var(--space-3);
  justify-items: center;
}

.footer-logo {
  width: min(100%, 240px);
  height: auto;
  object-fit: contain;
}

.footer-mantra {
  margin: 0;
  color: #f8f4ea;
  font-size: 1.125rem;
  font-weight: var(--weight-bold);
  letter-spacing: .02em;
}

.footer-disclaimer {
  margin: 0;
  max-width: 52ch;
  color: #c5d5ce;
  font-size: var(--text-body-sm);
  line-height: var(--leading-relaxed);
}

footer img { width: 52px; height: 52px; object-fit: contain; }
footer p { margin: 0; color: #d4e3dd; }

@media (min-width: 768px) {
  .report-assessment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 40px;
  }

  .report-assessment-card:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

@media (min-width: 641px) {
  .summary-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .summary-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .sidebar { width: 220px; }
  .app-main { margin-left: 220px; }
  .brand-logo,
  .brand img { width: 176px; max-width: 176px; }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .hero.app-view.active-view {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "trust"
      "copy";
  }
  .hero-trust-panel { max-width: 680px; }
}

@media (max-width: 900px) {
  html, body { overflow-x: hidden; }
  .sidebar { display: none; }
  .app-main {
    height: auto;
    min-height: 100vh;
    margin-left: 0;
    overflow: visible;
  }
  .topbar {
    padding: 8px 12px;
    gap: 8px;
  }
  .shell-brand {
    display: none;
  }

  .mobile-brand { display: flex; align-items: center; }
  .topbar-controls {
    width: 100%;
    margin-left: 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
  .mode-toggle { width: auto; flex: 0 0 auto; }
  .topbar-methodology {
    flex: 1 1 220px;
    justify-content: flex-end;
  }
  .topbar-methodology-select {
    flex: 1 1 140px;
    max-width: none;
    width: auto;
    min-width: 0;
  }
  .mobile-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .mobile-nav a {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #5a6b64;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
  }
  .mobile-nav a.active {
    background: transparent;
    color: var(--emerald);
    border-bottom-color: var(--gold);
  }
  main { width: min(100% - 24px, 1200px); }
  .hero, .report-layout { grid-template-columns: 1fr; }
  .workspace-layout { grid-template-columns: 1fr; }
  .workspace-builder { position: static; }
  .hero { min-height: auto; }
  .company-panel { position: static; }
  .evidence-summary, .result-card { display: block; }
  .evidence-summary button { margin-top: 10px; }
  .policy-grid { grid-template-columns: 1fr; }
  .preview-header { display: block; }
  .company-hero-card,
  .report-header-panel { grid-template-columns: 1fr; }
  .report-meta-panel { grid-template-columns: 1fr; }
  .business-review-grid,
  .business-activity-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero-search-row, .report-search-row { grid-template-columns: 1fr; }
  .hero-search-submit { width: 100%; }
  .search-result-card { grid-template-columns: 1fr; }
  .search-result-secondary {
    justify-items: start;
    grid-template-columns: auto auto;
    grid-auto-flow: column;
    align-items: center;
  }
  .hero-copy h1 { font-size: 34px; }
  .panel-head { display: block; }
  .metric.wide { grid-column: span 1; }
  table { min-width: 640px; }
  .step-grid { grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .search-discovery { grid-template-columns: 1fr; }
  .education-grid,
  .academy-card-grid { grid-template-columns: 1fr; }
  footer,
  .site-footer { padding: var(--space-8) var(--space-4); }
  .footer-logo { width: min(100%, 180px); }
  footer { display: block; text-align: center; }
  .report-cover {
    padding: 32px 0 28px;
    margin-bottom: 32px;
  }

  .report-brand-logo {
    width: min(100%, 196px);
  }

  .report-cover-title {
    font-size: clamp(2rem, 9vw, 2.75rem);
    max-width: none;
  }

  .report-cover-meta {
    grid-template-columns: 1fr 1fr;
    gap: 18px 16px;
  }

  .executive-summary {
    margin-bottom: 36px;
    padding-bottom: 28px;
  }

  .executive-summary-item {
    padding: 16px 0;
  }

  .executive-summary-item dd {
    font-size: 1rem;
  }

  .report-tabs--editorial .tab-button {
    padding: 12px 14px;
    font-size: 0.875rem;
  }

  .report-document {
    padding-bottom: 32px;
  }

  .company-facts-grid,
  .gauge-values { grid-template-columns: 1fr; }
  .timeline-head { display: block; }
  .workspace-tabs { width: 100%; display: grid; grid-template-columns: 1fr; }
  .etf-header { display: block; }
}

.founder-header h2 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.founder-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 20px 0; }
.founder-card dl { margin: 12px 0 0; display: grid; gap: 8px; }
.founder-decision-summary,
.founder-rule-trace,
.founder-knowledge,
.founder-knowledge-placeholder { margin: 16px 0; }
.founder-principle { margin-top: 8px; }
.founder-uncertainties ul { margin: 8px 0 0; padding-left: 18px; }
.rule-trace-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.rule-trace-list code { font-size: 12px; word-break: break-word; }
.knowledge-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.knowledge-chip { display: inline-block; padding: 6px 10px; border-radius: 999px; background: var(--cream-2); border: 1px solid var(--border); font-size: 13px; }
.evidence-clickable { cursor: pointer; transition: box-shadow 0.15s ease, transform 0.15s ease; }
.evidence-clickable:hover,
.evidence-clickable:focus-visible { box-shadow: 0 0 0 2px var(--gold); outline: none; transform: translateY(-1px); }
.evidence-hint { font-size: 12px; margin-top: 8px; }
.explanation-list { display: grid; gap: 10px; margin: 0; }
.explanation-list div { display: grid; gap: 4px; }
.explanation-list dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.search-result-meta { font-size: 12px; color: var(--muted); }
.document-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }

/* Data source banner */
.data-source-banner {
  width: 100%;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.data-source-banner.mock { background: #fff8e6; border: 1px solid #e6c200; color: #5c4a00; }
.data-source-banner.api { background: #eef8f1; border: 1px solid #b8dcc4; color: var(--emerald); }
.data-source-banner .link-button {
  background: none; border: none; color: inherit; text-decoration: underline; cursor: pointer; padding: 0; font: inherit;
}

/* Evidence drawer */
.evidence-drawer { position: fixed; inset: 0; z-index: 1200; pointer-events: none; }
.evidence-drawer.is-open { pointer-events: auto; }
.evidence-drawer-backdrop {
  position: absolute; inset: 0; background: rgba(16, 40, 32, 0.45); opacity: 0; transition: opacity 0.2s ease;
}
.evidence-drawer.is-open .evidence-drawer-backdrop { opacity: 1; }
.evidence-drawer-panel {
  position: absolute; top: 0; right: 0; width: min(480px, 100vw); height: 100%;
  background: var(--surface); box-shadow: -8px 0 32px rgba(0,0,0,0.12);
  transform: translateX(100%); transition: transform 0.25s ease;
  display: flex; flex-direction: column; overflow: hidden;
}
.evidence-drawer.is-open .evidence-drawer-panel { transform: translateX(0); }
.evidence-drawer-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 20px; border-bottom: 1px solid var(--border);
}
.evidence-drawer-close {
  background: none; border: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted);
}
.evidence-drawer-body { padding: 16px 20px 32px; overflow: auto; flex: 1; }
.evidence-drawer-section { margin-bottom: 20px; }
.evidence-drawer-section h3 { margin: 0 0 10px; font-size: 15px; }
.evidence-drawer-cards { display: grid; gap: 12px; }
.evidence-drawer-card { margin: 0; }
.evidence-drawer-note { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
body.evidence-drawer-open { overflow: hidden; }

.evidence-global-empty .report-unavailable-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.founder-empty { text-align: left; }

/* Milestone 3 beta integration blocks */
.lifecycle-notice,
.lifecycle-financial-pending {
  border: 1px solid rgba(183, 121, 31, 0.32);
  background: var(--status-warning-bg);
  color: var(--ink);
}

.lifecycle-notice {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  max-width: 760px;
}

.lifecycle-notice strong {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--warning);
}

.business-profile-block {
  margin-bottom: 18px;
}

.business-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.business-profile-list {
  min-width: 0;
}

.business-profile-list h4 {
  margin: 0 0 8px;
  font-size: 0.92rem;
}

.business-profile-list ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.business-profile-list li {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-inset);
}

.business-profile-list li span,
.business-profile-list li small {
  color: var(--muted);
  line-height: 1.45;
}

.lifecycle-financial-pending {
  margin-top: 16px;
}

@media (max-width: 860px) {
  .business-profile-grid {
    grid-template-columns: 1fr;
  }
}
