/* ══════════════════════════════════════════════
   TERI — Technology Ecosystem Readiness Index
   Page-specific styles (loads alongside base.css)
   v0.1 — April 2026
   ══════════════════════════════════════════════ */

/* ── Layer color tiers — all within Prompt-Ed teal palette ── */
/* Layers 1-2 = deepest (foundational/structural).
   Layers 3-4 = primary teal (practice/environment).
   Layer 5 = brightest (community/outward-facing). */
.layer-1, .layer-2 { --layer-color: var(--accent);        --layer-faint: var(--accent-faint); }
.layer-3, .layer-4 { --layer-color: var(--primary);       --layer-faint: var(--primary-faint); }
.layer-5           { --layer-color: var(--primary-light); --layer-faint: rgba(20,184,166,0.10); }

/* ── TERI dark page header (mirrors admins.html / about.html pattern) ── */
.teri-header {
  background: var(--dark);
  padding: 56px 24px 48px;
  position: relative;
  overflow: hidden;
}
.teri-header-inner {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.teri-breadcrumb {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-on-dark);
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}
.teri-breadcrumb a {
  color: var(--muted-on-dark);
  text-decoration: none;
}
.teri-breadcrumb a:hover { color: var(--pop); text-decoration: underline; }
.teri-breadcrumb-sep { margin: 0 8px; opacity: 0.45; }
.teri-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pop);
  margin-bottom: 12px;
}
.teri-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 700;
  color: var(--text-on-dark);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  max-width: 760px;
}
.teri-title-id {
  color: var(--pop);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.teri-subtitle {
  font-size: 16px;
  color: var(--muted-on-dark);
  line-height: 1.65;
  max-width: 620px;
}

/* ── Indicator badges (⚖ state-law, ◆ frontier) ── */
.teri-badges { display: inline-flex; gap: 8px; margin-left: 10px; vertical-align: 0.18em; }
.teri-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: help;
  position: relative;
}
.teri-badge svg { flex-shrink: 0; }
.teri-badge--state {
  background: rgba(13, 148, 136, 0.18);
  color: #5eead4;
  border-color: rgba(13, 148, 136, 0.4);
}
.teri-badge--frontier {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.45);
}
.teri-badge--sustainability {
  background: rgba(101, 163, 13, 0.18);
  color: #a7e635;
  border-color: rgba(101, 163, 13, 0.45);
}
/* Light-context badges — use on light gray / surface backgrounds where
   the dark-mode alpha levels would render too faint. Bumped 2026-04-25
   after Rebecca flagged the assessment-overview indicator key as too
   light. Keep alpha ≥ 0.18 and text in the deep-shade range so the
   pills remain legible on `--bg` (#f6f8fa-ish) without overpowering.
   Selectors cover BOTH patterns: `.light-context` on a parent wrapper
   (the `teri-badges` cluster) AND directly on the badge element. */
.light-context .teri-badge--state,
.teri-badge--state.light-context {
  background: rgba(13, 148, 136, 0.18);
  color: #115e59;
  border-color: rgba(13, 148, 136, 0.55);
  font-weight: 700;
}
.light-context .teri-badge--frontier,
.teri-badge--frontier.light-context {
  background: rgba(245, 158, 11, 0.24);
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.6);
  font-weight: 700;
}
.light-context .teri-badge--sustainability,
.teri-badge--sustainability.light-context {
  background: rgba(101, 163, 13, 0.20);
  color: #3f6212;
  border-color: rgba(101, 163, 13, 0.55);
  font-weight: 700;
}

/* ── Checkpoint page — main body ── */
.checkpoint-main {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}

/* Jump-nav chips */
/* base.css applies position:sticky, backdrop-filter, and background to every
   <nav>. The in-page <nav> inside .checkpoint-main is documentation, not
   site chrome — neutralize those globals so layout and colors match the
   surrounding content. Same treatment below for .checkpoint-nav. */
.checkpoint-jumpnav {
  position: static;
  top: auto;
  z-index: auto;
  background: transparent;
  backdrop-filter: none;
  height: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--gray-200);
}
.checkpoint-jumpnav a {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 5px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.checkpoint-jumpnav a:hover {
  color: var(--layer-color, var(--primary));
  border-color: var(--layer-color, var(--primary));
  background: var(--layer-faint, var(--primary-faint));
}

/* Sustainability lens cue — surfaced on static checkpoint pages between
   the jumpnav and the body sections. Uses the same lime-green palette
   as the live tool's .as-cp-sustainability-cue and the flyer's
   .ad-ind--sustainability so the system reads consistent across all
   three surfaces. Only renders when the JSON sustainabilityFlag +
   sustainabilityCue are both present. */
.checkpoint-sustainability-cue {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 18px;
  margin: 4px 0 28px;
  background: rgba(101, 163, 13, 0.08);
  border-left: 3px solid #65a30d;
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}
.checkpoint-sustainability-cue-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #65a30d;
  margin-top: 1px;
}
.checkpoint-sustainability-cue-icon svg { width: 16px; height: 16px; }
.checkpoint-sustainability-cue-body { margin: 0; }

/* Section blocks within checkpoint */
.checkpoint-section { margin-bottom: 44px; }
.checkpoint-section h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 14px;
  padding-left: 14px;
  border-left: 3px solid var(--layer-color, var(--primary));
}
.checkpoint-section p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 12px;
}
.checkpoint-section p:last-child { margin-bottom: 0; }

/* Maturity levels — 4-card grid */
.maturity-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
}
.maturity-card {
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-left: 5px solid var(--gray-400);
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
}
.maturity-card[data-level="not-started"] { border-left-color: #9ca3af; }
.maturity-card[data-level="emerging"]    { border-left-color: #d97706; }
.maturity-card[data-level="established"] { border-left-color: #0d9488; }
.maturity-card[data-level="leading"]     { border-left-color: #134e4a; }
.maturity-card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.maturity-card[data-level="not-started"] .maturity-card-label { color: #6b7280; }
.maturity-card[data-level="emerging"]    .maturity-card-label { color: #b45309; }
.maturity-card[data-level="established"] .maturity-card-label { color: var(--primary-hover); }
.maturity-card[data-level="leading"]     .maturity-card-label { color: var(--accent); }
.maturity-card-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
}

/* Go deeper */
.go-deeper-primary {
  background: var(--layer-faint, var(--primary-faint));
  border: 1px solid var(--layer-color, var(--primary));
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 16px;
}
.go-deeper-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--layer-color, var(--primary));
  margin-bottom: 6px;
}
.go-deeper-primary-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.65;
}
.go-deeper-also-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 20px;
  margin-bottom: 10px;
}
.go-deeper-also-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.go-deeper-also-list li {
  font-size: 14px;
  color: var(--text);
  line-height: 1.65;
  padding: 8px 0 8px 18px;
  border-bottom: 1px solid var(--gray-200);
  position: relative;
}
.go-deeper-also-list li:last-child { border-bottom: none; }
.go-deeper-also-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--layer-color, var(--primary));
  font-weight: 700;
}

/* Budget sidebar */
.budget-sidebar {
  margin-top: 48px;
  background: var(--dark-surface);
  border-radius: 12px;
  padding: 26px 28px;
  color: var(--text-on-dark);
}
.budget-sidebar-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pop);
  margin-bottom: 10px;
}
.budget-sidebar-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: 10px;
}
.budget-sidebar-body {
  font-size: 14px;
  color: var(--muted-on-dark);
  line-height: 1.7;
}

/* Prev/next checkpoint nav — neutralize base.css nav globals */
.checkpoint-nav {
  position: static;
  top: auto;
  z-index: auto;
  background: transparent;
  backdrop-filter: none;
  height: auto;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 16px;
  margin-top: 56px;
  padding: 28px 0 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: none;
}
.checkpoint-nav-link {
  flex: 1;
  padding: 16px 20px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.checkpoint-nav-link:hover {
  border-color: var(--layer-color, var(--primary));
  background: var(--layer-faint, var(--primary-faint));
}
.checkpoint-nav-link--next { text-align: right; }
.checkpoint-nav-link--disabled {
  opacity: 0.35;
  pointer-events: none;
}
.checkpoint-nav-direction {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.checkpoint-nav-id {
  font-size: 13px;
  font-weight: 600;
  color: var(--layer-color, var(--primary));
  margin-bottom: 2px;
}
.checkpoint-nav-name {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Layer page ── */
.layer-hero {
  background: var(--dark);
  padding: 56px 24px 44px;
}
.layer-hero-inner { max-width: 960px; margin: 0 auto; }
.layer-hero-meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  margin-bottom: 10px;
}
.layer-hero-meta a { color: var(--muted-on-dark); text-decoration: none; }
.layer-hero-meta a:hover { color: var(--pop); }
.layer-hero-number {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pop);
  margin-bottom: 14px;
}
.layer-hero-title {
  font-family: var(--serif);
  font-size: clamp(32px, 5.2vw, 52px);
  font-weight: 700;
  color: var(--text-on-dark);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.layer-hero-count {
  font-size: 14px;
  color: var(--muted-on-dark);
  font-weight: 500;
}

.layer-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 24px 64px;
}

/* ── Indicator key — sits above the card grid as a decoder for the
   ⚖ and ◆ icons on the checkpoint cards below. Reuses the existing
   `.teri-badge--state` / `.teri-badge--frontier` brand components via
   the `.light-context` modifier so the visual treatment matches the
   cards exactly. Only renders indicators that actually appear in the
   layer (Layer 5 has only frontier, etc.). ── */
.layer-key {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-bottom: 24px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
.layer-key-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.layer-key-text {
  color: var(--text-muted);
}
@media (max-width: 560px) {
  .layer-key { gap: 10px 16px; }
  .layer-key-item { width: 100%; }
}
/* Three columns by default — gets 9 checkpoint layers to 3 rows,
   5 checkpoint layers to 2 rows. Collapses to 2 then 1 on narrower
   viewports. Keeps the layer overview close to above-the-fold. */
.layer-checkpoint-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 880px) { .layer-checkpoint-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .layer-checkpoint-grid { grid-template-columns: 1fr; } }

.layer-checkpoint-card {
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-left: 5px solid var(--layer-color, var(--primary));
  border-radius: 0 10px 10px 0;
  padding: 16px 18px 14px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.layer-checkpoint-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}
.layer-checkpoint-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}
.layer-checkpoint-card-id {
  font-size: 11px;
  font-weight: 700;
  color: var(--layer-color, var(--primary));
  letter-spacing: 0.04em;
}
.layer-checkpoint-card-title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 8px;
}
.layer-checkpoint-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}
.layer-checkpoint-card-cta {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--layer-color, var(--primary));
  letter-spacing: 0.02em;
}

/* ── Landing page ── */
.teri-landing-hero {
  background: var(--dark);
  padding: 80px 24px 72px;
  position: relative;
  overflow: hidden;
}
.teri-landing-hero-art {
  position: absolute;
  top: 0;
  right: 0;
  width: 32%;
  height: 100%;
  /* Alpha-cut PNG — flower + USB cable on transparent background.
     No opacity needed (true alpha handles the blend with --dark) and
     no gradient overlay needed (the PNG has no rectangular edges to
     mask). */
  background-image: url('../tech-flower-4.png');
  background-size: contain;
  background-position: right 48px bottom 0;
  background-repeat: no-repeat;
  pointer-events: none;
}
@media (max-width: 768px) {
  /* Keep the flower as a subtle backdrop behind text on mobile — true
     alpha + a lower opacity instead of the prior opaque-image + dark
     overlay combo. */
  .teri-landing-hero-art { width: 100%; opacity: 0.22; background-size: contain; background-position: center; }
}
.teri-landing-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Brand identity block — mirrors the printable flyer's title treatment.
   "Prompt-Ed" small wordmark on top, then the big TERI wordmark with a
   vertical divider rule and the stacked label, then the italic tagline. */
.teri-landing-hero-brand {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-on-dark);
  margin-bottom: 18px;
}
.teri-landing-hero-brand span { color: var(--pop); }

.teri-landing-hero-wordmark {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.92;
  color: var(--text-on-dark);
  margin: 0 0 16px;
  display: inline-flex;
  align-items: stretch;
  gap: 22px;
}
.teri-landing-hero-wordmark-mark {
  font-size: clamp(64px, 9vw, 110px);
  line-height: 0.92;
}
.teri-landing-hero-wordmark-sub {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  font-family: var(--sans);
  font-size: clamp(13px, 1.4vw, 18px);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  padding-left: 22px;
  border-left: 1.5px solid rgba(255, 255, 255, 0.55);
  line-height: 1.05;
  max-width: 4.5in;
}

.teri-landing-hero-tagline {
  font-family: var(--serif);
  font-size: clamp(16px, 1.8vw, 19px);
  font-style: italic;
  color: var(--pop);
  margin: 0 0 28px;
  line-height: 1.35;
}

/* Hero CTAs — primary action group sitting beneath the tagline.
   Inherit the dark-bg ghost styling from base.css (white text + white
   border) since the hero background is var(--dark). */
.teri-landing-hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 540px) {
  .teri-landing-hero { padding: 56px 24px 48px; }
  .teri-landing-hero-wordmark { gap: 16px; }
  .teri-landing-hero-wordmark-sub { padding-left: 16px; }
}

/* Pitch section — sits below the hero on the light bg. Carries the
   "One policy isn't a plan." headline (the punchy hook), the
   descriptive paragraph that used to live in the hero, and the four
   primary CTAs. This is where a visitor decides what to do next. */
.teri-landing-pitch {
  background: var(--surface);
  padding: 56px 24px 48px;
}
.teri-landing-pitch-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.teri-landing-pitch-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
}
.teri-landing-pitch-sub {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 28px;
}
.btn-coming-soon {
  background: var(--pop);
  color: var(--dark);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  position: relative;
  opacity: 0.75;
  cursor: not-allowed;
}
.btn-coming-soon::after {
  content: 'Phase 2';
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--dark-surface);
  color: var(--pop);
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Problem statement block. Bottom padding tighter when followed by
   the inline tool — the tool's own padding handles the gap, and
   stacking 72px below + 32px above creates dead air the user has
   to scroll past. */
.teri-problem {
  background: var(--bg);
  padding: 72px 24px 32px;
}
.teri-problem-inner { max-width: 1100px; margin: 0 auto; }
.teri-problem-lead {
  font-family: var(--serif);
  font-size: clamp(18px, 2.1vw, 21px);
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.teri-problem-body {
  font-size: 16px;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 14px;
}

/* Five-layer map */
.five-layer-section {
  background: var(--surface);
  padding: 72px 24px;
}
.five-layer-inner { max-width: 960px; margin: 0 auto; }
.five-layer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.five-layer-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-top: 5px solid var(--layer-color, var(--primary));
  border-radius: 0 0 12px 12px;
  padding: 20px 22px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.five-layer-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}
.five-layer-card-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--layer-color, var(--primary));
  margin-bottom: 8px;
}
.five-layer-card-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 8px;
}
.five-layer-card-count {
  font-size: 12px;
  color: var(--text-faint);
  font-weight: 500;
}

/* Positioning (how TERI differs) */
.teri-positioning {
  background: var(--dark);
  padding: 72px 24px;
  color: var(--text-on-dark);
}
.teri-positioning-inner { max-width: 880px; margin: 0 auto; }
.teri-positioning-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pop);
  margin-bottom: 12px;
}
.teri-positioning-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3.8vw, 34px);
  color: var(--text-on-dark);
  margin-bottom: 28px;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.teri-positioning-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.teri-positioning-card {
  background: var(--dark-surface);
  border-left: 3px solid var(--pop);
  padding: 20px 22px;
  border-radius: 0 10px 10px 0;
}
.teri-positioning-card h3 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: 8px;
}
.teri-positioning-card p {
  font-size: 14px;
  color: var(--muted-on-dark);
  line-height: 1.65;
}

/* ── "What you'll walk away with" — report preview card on landing ── */
.teri-preview {
  background: var(--surface);
  padding: 72px 24px;
  border-top: 1px solid var(--gray-200);
}
.teri-preview-inner { max-width: 960px; margin: 0 auto; }
.teri-preview-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 28px 32px 26px;
  margin-top: 36px;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.teri-preview-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.08);
  border-color: var(--primary);
}
.teri-preview-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--gray-200);
  flex-wrap: wrap;
  gap: 10px;
}
.teri-preview-card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}
.teri-preview-card-label strong { color: var(--accent); }
.teri-preview-card-meta {
  font-size: 12px;
  color: var(--text-faint);
}
.teri-preview-card-dist {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
@media (max-width: 520px) { .teri-preview-card-dist { grid-template-columns: repeat(2, 1fr); } }
.teri-preview-dist-item {
  text-align: center;
  padding: 14px 10px 12px;
  background: var(--bg);
  border-top: 4px solid var(--gray-400);
  border-radius: 0 0 8px 8px;
}
.teri-preview-dist-item[data-level="leading"]      { border-top-color: #134e4a; }
.teri-preview-dist-item[data-level="established"]  { border-top-color: #0d9488; }
.teri-preview-dist-item[data-level="emerging"]     { border-top-color: #f59e0b; }
.teri-preview-dist-item[data-level="not-started"]  { border-top-color: #9ca3af; }
.teri-preview-dist-count {
  display: block;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.02em;
}
.teri-preview-dist-item[data-level="leading"] .teri-preview-dist-count     { color: #134e4a; }
.teri-preview-dist-item[data-level="established"] .teri-preview-dist-count { color: #0d9488; }
.teri-preview-dist-item[data-level="emerging"] .teri-preview-dist-count    { color: #b45309; }
.teri-preview-dist-item[data-level="not-started"] .teri-preview-dist-count { color: #6b7280; }
.teri-preview-dist-label {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.teri-preview-card-heatmap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.teri-preview-heatmap-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 14px;
  align-items: center;
}
@media (max-width: 520px) { .teri-preview-heatmap-row { grid-template-columns: 1fr; gap: 4px; } }
.teri-preview-heatmap-label {
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
}
.teri-preview-heatmap-label strong { font-weight: 700; }
.teri-preview-heatmap-bar {
  display: flex;
  height: 16px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--gray-200);
}
.teri-preview-heatmap-segment { min-width: 0; }
.teri-preview-heatmap-segment--leading     { background: #134e4a; }
.teri-preview-heatmap-segment--established { background: #0d9488; }
.teri-preview-heatmap-segment--emerging    { background: #f59e0b; }
.teri-preview-heatmap-segment--not-started { background: #d1d5db; }
.teri-preview-card-includes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--gray-200);
  margin-bottom: 22px;
}
@media (max-width: 520px) { .teri-preview-card-includes { grid-template-columns: 1fr; } }
.teri-preview-card-includes div {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}
.teri-preview-card-includes div::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}
.teri-preview-card-includes div strong { color: var(--accent); }
.teri-preview-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--primary);
  color: white;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s;
}
.teri-preview-card:hover .teri-preview-card-cta {
  background: var(--primary-hover);
}

/* Sample checkpoint block on landing */
.teri-sample {
  background: var(--bg);
  padding: 72px 24px;
}
.teri-sample-inner { max-width: 780px; margin: 0 auto; }

/* ── About page ── */
.about-body {
  max-width: 1100px;     /* was 780px — matches the report sheet width
                            so prose fills the page instead of cramming
                            into a narrow center column. */
  margin: 0 auto;
  padding: 56px 32px 72px;
}
.about-section { margin-bottom: 44px; }
/* Status & feedback section — marigold-accented panel at the top of
   the About page so a reader sees the "still in development" framing
   before diving into the rest of the methodology. */
.about-section--status {
  padding: 22px 28px;
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--pop);
  border-radius: 0 10px 10px 0;
  margin-bottom: 36px;
}
.about-section--status h2 {
  font-size: 20px;
  margin-bottom: 10px;
}
.about-section--status p:last-child { margin-bottom: 0; }
.about-section--status a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.about-section--status a:hover { color: var(--primary-hover); }
/* "Coming soon" roadmap inside the Status & feedback panel — small
   subhead + label-and-description list so the three confirmed
   roadmap items (year-over-year, board report, pilot data) read as
   a follow-on to the in-development framing without breaking out
   into its own About section. */
.about-status-subhead {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pop);
  margin-top: 22px;
  margin-bottom: 12px;
  padding-left: 0;
  border-left: none;
}
.about-status-roadmap {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.about-status-roadmap li {
  background: rgba(245, 158, 11, 0.06);
  border-left: 3px solid var(--pop);
  border-radius: 0 6px 6px 0;
  padding: 12px 16px;
}
.about-status-roadmap-label {
  display: block;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.about-status-roadmap-desc {
  display: block;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}
.about-section h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 14px;
  padding-left: 14px;
  border-left: 3px solid var(--primary);
}
.about-section h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 10px;
}
.about-section p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 14px;
}
.about-section ul {
  padding-left: 22px;
  margin-bottom: 14px;
}
.about-section li {
  font-size: 16px;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 6px;
}
.about-indicator-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--bg);
  border-radius: 10px;
  margin-bottom: 12px;
}
.about-indicator-row p { margin: 0; font-size: 15px; line-height: 1.65; }
.about-indicator-row .teri-badge { flex-shrink: 0; margin-top: 2px; }
/* Force light-context badge colors on the About page indicator rows.
   The page background is light (--bg), so the default dark-context
   pill colors (mint-teal, gold, lime-green text on translucent fills)
   render almost invisibly. Apply the same alpha + deep-shade text
   that the .light-context modifier provides elsewhere. */
.about-indicator-row .teri-badge--state {
  background: rgba(13, 148, 136, 0.18);
  color: #115e59;
  border-color: rgba(13, 148, 136, 0.55);
  font-weight: 700;
}
.about-indicator-row .teri-badge--frontier {
  background: rgba(245, 158, 11, 0.24);
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.6);
  font-weight: 700;
}
.about-indicator-row .teri-badge--sustainability {
  background: rgba(101, 163, 13, 0.20);
  color: #3f6212;
  border-color: rgba(101, 163, 13, 0.55);
  font-weight: 700;
}

/* Four observable maturity levels — methodology block on About page,
   mirroring the flyer's mi-level visual but using about-prefixed
   classes so the about page does not have to load assessment.css.
   Color rails match the level colors used inside the assessment tool. */
.about-maturity-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 18px;
}
.about-maturity-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--gray-300, #cbd5e1);
  border-radius: 0 10px 10px 0;
}
.about-maturity-row[data-level="not-started"] { border-left-color: #9ca3af; }
.about-maturity-row[data-level="emerging"]    { border-left-color: #f59e0b; }
.about-maturity-row[data-level="established"] { border-left-color: #0d9488; }
.about-maturity-row[data-level="leading"]     { border-left-color: #134e4a; }
.about-maturity-label {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.about-maturity-row[data-level="not-started"] .about-maturity-label { color: #6b7280; }
.about-maturity-row[data-level="emerging"]    .about-maturity-label { color: #b45309; }
.about-maturity-row[data-level="established"] .about-maturity-label { color: #0f766e; }
.about-maturity-row[data-level="leading"]     .about-maturity-label { color: #134e4a; }
.about-maturity-desc {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
}
.about-maturity-coda {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-200);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}
.about-maturity-coda strong { color: var(--text); }
@media (max-width: 640px) {
  .about-maturity-row { grid-template-columns: 1fr; gap: 4px; }
}

/* Inline code in the About page (used in the Privacy and storage
   section to call out localStorage key, share-URL letter codes, etc.).
   Subtle gray fill, monospace, no language-specific syntax coloring. */
.about-section code {
  font-family: 'SF Mono', Menlo, Monaco, 'Courier New', monospace;
  font-size: 0.88em;
  background: var(--gray-100, #f3f4f6);
  color: var(--text);
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid var(--gray-200, #e5e7eb);
}

/* Framework positioning grid — moved from the TERI landing accordion
   on 2026-05-08. Light-context variant (the landing version on
   .teri-positioning-card uses dark cards on a black accordion body;
   the about page sits on a white surface, so cards need a light fill
   with a teal-anchored left rail). */
.about-positioning-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 16px 0 6px;
}
.about-positioning-card {
  background: var(--bg);
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--primary);
  padding: 16px 18px;
  border-radius: 0 8px 8px 0;
}
.about-positioning-card h3 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
  line-height: 1.25;
}
.about-positioning-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Board-questions companion CTA — link with chevron treatment so it
   reads as a navigational pointer, not a hero button. Sits at the
   bottom of the companion section. */
.about-board-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 8px 16px;
  background: var(--primary);
  color: white;
  font-weight: 600;
  font-size: 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s;
}
.about-board-cta:hover {
  background: var(--primary-hover);
  color: white;
}

/* Cross-reference links within body text */
a.teri-xref {
  color: var(--layer-color, var(--primary));
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}
a.teri-xref:hover { border-bottom-style: solid; }

/* Layer context strip above checkpoint title */
.teri-layer-strip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pop);
  margin-bottom: 16px;
}
.teri-layer-strip a { color: inherit; text-decoration: none; }
.teri-layer-strip a:hover { text-decoration: underline; }

/* ── Print styles ── */
@media print {
  nav, footer, .teri-landing-hero-ctas, .checkpoint-jumpnav, .checkpoint-nav {
    display: none !important;
  }
  .teri-header, .layer-hero, .teri-landing-hero, .teri-positioning {
    background: white !important;
    color: black !important;
    padding: 20px 0;
  }
  .teri-title, .layer-hero-title, .teri-landing-hero-title {
    color: black !important;
  }
  .teri-subtitle, .layer-hero-count, .teri-landing-hero-sub {
    color: #333 !important;
  }
  .teri-eyebrow, .teri-breadcrumb, .layer-hero-number, .teri-landing-hero-meta, .teri-positioning-label {
    color: #555 !important;
  }
  .checkpoint-main, .about-body, .layer-body {
    max-width: 100%;
    padding: 0 0 24px;
  }
  .maturity-card, .go-deeper-primary, .layer-checkpoint-card, .budget-sidebar {
    break-inside: avoid;
  }
  .budget-sidebar {
    background: #f5f5f5 !important;
    color: black !important;
    border: 1px solid #ccc;
  }
  .budget-sidebar-title, .budget-sidebar-body { color: black !important; }
  .budget-sidebar-label { color: #555 !important; }
  body { font-size: 11pt; color: black; }
  a.teri-xref {
    color: black !important;
    border-bottom: 1px solid #999;
  }
  a[href^="/teri/"]::after {
    content: " [" attr(href) "]";
    font-size: 9pt;
    color: #666;
  }
}

/* ── Landing-page additions (2026-04-25 single-flow + tier system) ── */

/* Layer-card descriptions — short paragraph below the count on the
   landing page's five-layer grid. JSON-driven from layers[].description. */
.five-layer-card-desc {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-top: 10px;
}

/* "Five tiers" landing section — sliding scale matching the in-report
   visualization (Audited / Developing / Operating / Leading / Innovating),
   plus prose. Mirrors .rp-tier-* but renders in a light surface (the
   section sits between two white sections so we use light gray for
   contrast). 5-dot positions: 0%, 25%, 50%, 75%, 100%. */
.teri-tiers {
  background: var(--bg);
  padding: 64px 24px;
}
.teri-tiers-inner {
  max-width: 960px;
  margin: 0 auto;
}
.teri-tier-scale-landing {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 32px 40px 28px;
  margin-top: 32px;
  margin-bottom: 22px;
  position: relative;
}
.teri-tier-scale-track {
  position: relative;
  height: 6px;
  background: var(--gray-200);
  border-radius: 999px;
  margin: 24px 0 18px;
  overflow: hidden;
}
.teri-tier-scale-fill {
  height: 100%;
  background: linear-gradient(90deg, #94a3b8 0%, #5eead4 25%, #0d9488 55%, #134e4a 80%, #f59e0b 100%);
  border-radius: 999px;
}
.teri-tier-scale-nodes {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.teri-tier-scale-node {
  position: relative;
  padding-top: 18px;
  text-align: center;
}
.teri-tier-scale-node:nth-child(1) { text-align: left; }
.teri-tier-scale-node:nth-child(5) { text-align: right; }
.teri-tier-scale-dot {
  position: absolute;
  top: -38px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gray-200);
  border: 3px solid white;
  box-shadow: 0 0 0 1px var(--gray-300, #cbd5e1);
}
/* 5-dot positions on the track: 0%, 25%, 50%, 75%, 100%. Each dot
   inherits the gradient-stop colour for its position so the bar +
   dots tell the same story as the live tool's tier scale. */
.teri-tier-scale-node:nth-child(1) .teri-tier-scale-dot { left: 0; background: #94a3b8; box-shadow: 0 0 0 1px #94a3b8; }
.teri-tier-scale-node:nth-child(2) .teri-tier-scale-dot { left: 25%; transform: translateX(-50%); background: #5eead4; box-shadow: 0 0 0 1px #5eead4; }
.teri-tier-scale-node:nth-child(3) .teri-tier-scale-dot { left: 50%; transform: translateX(-50%); background: #0d9488; box-shadow: 0 0 0 1px #0d9488; }
.teri-tier-scale-node:nth-child(4) .teri-tier-scale-dot { left: 75%; transform: translateX(-50%); background: #134e4a; box-shadow: 0 0 0 1px #134e4a; }
.teri-tier-scale-node:nth-child(5) .teri-tier-scale-dot { right: 0; background: #f59e0b; box-shadow: 0 0 0 1px #f59e0b; }
.teri-tier-scale-label {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}
.teri-tier-scale-node[data-tier="audited"]     .teri-tier-scale-label { color: #4b5563; }
.teri-tier-scale-node[data-tier="emerging"]    .teri-tier-scale-label { color: #115e59; }
.teri-tier-scale-node[data-tier="established"] .teri-tier-scale-label { color: #0d9488; }
.teri-tier-scale-node[data-tier="leading"]     .teri-tier-scale-label { color: #134e4a; }
.teri-tier-scale-node[data-tier="pioneer"]     { color: #b45309; }
.teri-tier-scale-node[data-tier="pioneer"] .teri-tier-scale-label { color: #b45309; }
.teri-tier-scale-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 200px;
  margin-left: auto;
  margin-right: auto;
}
.teri-tier-scale-node:nth-child(1) .teri-tier-scale-desc { margin-left: 0; }
.teri-tier-scale-node:nth-child(5) .teri-tier-scale-desc { margin-right: 0; }
@media (max-width: 760px) {
  /* Stack the nodes on narrow screens — the 5-column grid breaks
     unreadably below ~760px. Each node becomes a row with the dot
     beside the label + desc instead of above it. */
  .teri-tier-scale-track { display: none; }
  .teri-tier-scale-nodes { grid-template-columns: 1fr; gap: 14px; }
  .teri-tier-scale-node,
  .teri-tier-scale-node:nth-child(1),
  .teri-tier-scale-node:nth-child(5) {
    text-align: left;
    padding-top: 0;
    padding-left: 28px;
  }
  .teri-tier-scale-dot,
  .teri-tier-scale-node:nth-child(1) .teri-tier-scale-dot,
  .teri-tier-scale-node:nth-child(2) .teri-tier-scale-dot,
  .teri-tier-scale-node:nth-child(3) .teri-tier-scale-dot,
  .teri-tier-scale-node:nth-child(4) .teri-tier-scale-dot,
  .teri-tier-scale-node:nth-child(5) .teri-tier-scale-dot {
    top: 4px;
    left: 0;
    right: auto;
    transform: none;
    width: 14px;
    height: 14px;
  }
  .teri-tier-scale-desc { max-width: none; }
}
.teri-tiers-honesty {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  font-style: italic;
  max-width: 720px;
  margin-top: 8px;
}
@media (max-width: 720px) {
  .teri-tier-scale-landing { padding: 24px 22px 20px; }
  .teri-tier-scale-nodes { grid-template-columns: 1fr; gap: 18px; }
  .teri-tier-scale-node { text-align: left !important; padding-top: 4px; padding-left: 28px; }
  .teri-tier-scale-dot { position: absolute; top: 4px; left: 0; right: auto; transform: none !important; }
  .teri-tier-scale-track { display: none; }
  .teri-tier-scale-desc { max-width: none; margin-left: 0 !important; margin-right: 0 !important; }
}

/* Preview card tier badge — replaces the old "Standard depth · 14 min"
   meta line in the landing page's sample-report preview card. */
.teri-preview-card-tier {
  display: inline-flex;
  align-items: center;
}
.teri-preview-tier-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.16);
  color: #0d9488;
  border: 1px solid rgba(13, 148, 136, 0.5);
  letter-spacing: 0.01em;
}

/* ════════════════════════════════════════════════════════
   LANDING-EMBEDDED ASSESSMENT TOOL — chrome rules
   ════════════════════════════════════════════════════════ */

/* When the user is in the audit (run) or report (results) panels,
   body.teri-active hides the surrounding landing content so only the
   audit shell + tool occupy the viewport. Returning to entry removes
   the class and the landing reappears. */
body.teri-active .teri-landing-hero,
body.teri-active .teri-landing-pitch,
body.teri-active .teri-landing-extras,
body.teri-active #as-entry { display: none !important; }

/* Accordion shell for the framework-context sections (Five Layers,
   Three Tiers, How TERI fits with what you already use). Closed by
   default; AI-Guidelines-style chevron and rounded card shell. */
.teri-landing-extras {
  background: var(--bg);
  padding: 56px 24px 72px;
}
.teri-landing-extras-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.teri-landing-extras-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
  text-align: center;
}
/* In-development + feedback callout — sits below the orientation
   accordions on the landing. Marigold left accent + pill so a reader
   leaving the page knows the instrument is still being refined and
   where to send feedback. Hidden when the audit is active so it
   doesn't crowd the run/results panels. */
.teri-landing-status {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 22px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--pop);
  border-radius: 0 10px 10px 0;
}
.teri-landing-status-pill {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: white;
  background: var(--pop);
  padding: 4px 9px;
  border-radius: 4px;
  margin-top: 2px;
}
.teri-landing-status p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text);
}
.teri-landing-status a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.teri-landing-status a:hover { color: var(--primary-hover); }
body.teri-active .teri-landing-status { display: none !important; }

.teri-landing-accordion {
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.teri-landing-accordion:last-child { margin-bottom: 0; }
.teri-landing-accordion[open] {
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: 0 1px 3px rgba(13, 148, 136, 0.06);
}
.teri-landing-accordion summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 26px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  gap: 16px;
}
.teri-landing-accordion summary::-webkit-details-marker { display: none; }
.teri-landing-accordion summary:hover {
  background: rgba(13, 148, 136, 0.04);
}
.teri-landing-accordion-title {
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.015em;
  line-height: 1.25;
  flex: 1;
}
.teri-landing-accordion-caret {
  font-size: 18px;
  color: var(--text-muted);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.teri-landing-accordion[open] .teri-landing-accordion-caret {
  transform: rotate(180deg);
  color: var(--primary);
}
.teri-landing-accordion-body {
  padding: 8px 28px 28px;
  border-top: 1px solid var(--gray-200);
}
.teri-landing-accordion-body .section-lead {
  margin-bottom: 22px;
}
/* Accordion bodies host the existing five-layer-grid, tier-scale, and
   positioning-grid components. Tighten their outer paddings since
   they no longer carry their own section padding. */
.teri-landing-accordion-body .five-layer-grid {
  margin-top: 8px;
}
.teri-landing-accordion-body .teri-tier-scale-landing {
  margin: 16px 0 18px;
}
.teri-landing-accordion-body .teri-positioning-grid {
  margin-top: 8px;
}
.teri-landing-accordion-body .teri-tiers-honesty {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.65;
}

/* Entry panel inline on landing — horizontal padding lives on #as-entry
   itself (matching the .teri-problem outer padding pattern of 24px) so
   the inner 1100px-max content aligns horizontally with the problem
   paragraphs above. Vertical padding lives on .as-entry-inner. */
#as-app {
  background: var(--bg);
}
#as-entry {
  padding: 0 24px;
}
/* Keep the brand gradient strip — it's now the "begin self-assessment
   HERE" marker. Marigold-leaning so it echoes the primary CTA color. */
#as-entry .as-entry-gradient {
  height: 4px;
  background: linear-gradient(90deg, var(--pop) 0%, var(--accent) 50%, var(--primary) 100%);
  /* Stretch across the full section width, not just the centered
     inner column, so the marker reads as a section-wide visual cue. */
  margin: 0 -24px 0;
  max-width: calc(100% + 48px);
}
#as-entry .as-entry-inner {
  padding-top: 24px;
  padding-bottom: 40px;
}

/* Begin-here header polish. The eyebrow + title + subtitle block sits
   right under the gradient strip; bumping the eyebrow gives the user
   a clear "the interactive tool starts NOW" signal. */
.as-entry-header {
  position: relative;
}
.as-entry-header .as-eyebrow {
  /* Override assessment.css default. Bigger, marigold, more directional. */
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 800;
}
.as-entry-header .as-eyebrow::after {
  content: " ↓";
  font-weight: 700;
  letter-spacing: 0;
  margin-left: 4px;
  color: var(--accent);
}

/* ════════════════════════════════════════════════════════
   /teri/board-questions — governance question companion page.
   Six sections (5 layers + cross-cutting anchors). Each section
   has a colored left rail matching the layer palette and a stack
   of question cards. Cards are scannable: number + title + spans
   + the question itself + a one-line "why this question" rationale.
   ════════════════════════════════════════════════════════ */

.board-questions-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.bq-intro {
  margin-bottom: 48px;
  max-width: 820px;
}
.bq-intro p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 14px;
}
.bq-intro p:last-child { margin-bottom: 0; }
.bq-intro em { font-style: italic; color: var(--text); font-weight: 500; }

.bq-layer-section {
  margin-bottom: 48px;
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--gray-300, #cbd5e1);
  border-radius: 0 12px 12px 0;
}
.bq-layer-section:last-of-type { margin-bottom: 32px; }

/* Layer color rails matching the palette used elsewhere on the site */
.bq-layer-section.bq-layer-1 { border-left-color: #134e4a; }
.bq-layer-section.bq-layer-2 { border-left-color: #0d9488; }
.bq-layer-section.bq-layer-3 { border-left-color: #5EAB94; }
.bq-layer-section.bq-layer-4 { border-left-color: #6d28d9; }
.bq-layer-section.bq-layer-5 { border-left-color: #f59e0b; }
.bq-layer-section.bq-anchors-section {
  border-left-color: var(--text-muted);
  /* Same white surface as the layer cards above — the muted left
     rail alone signals the cross-cutting category. */
}

.bq-section-head {
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gray-200);
}
.bq-section-label {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-bottom: 4px;
}
.bq-section-sub {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
}

/* Single-column stack — each question gets its own row. Picked over
   a 2-column grid (which left an asymmetric orphan on row 2 with three
   questions per layer) and over adding a 4th question per layer
   (which would push the count past the 18-question institutional
   sweet spot). Stack reads top-to-bottom in expected order, balances
   evenly, and works at every viewport without a breakpoint. */
.bq-questions {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.bq-question {
  padding: 0;
}
.bq-question-head {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 10px;
}
.bq-num {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.02em;
}
.bq-layer-1 .bq-num { color: #134e4a; }
.bq-layer-2 .bq-num { color: #0d9488; }
.bq-layer-3 .bq-num { color: #0f766e; }
.bq-layer-4 .bq-num { color: #6d28d9; }
.bq-layer-5 .bq-num { color: #b45309; }
.bq-anchors-section .bq-num { color: var(--text-muted); }
.bq-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0;
}
.bq-spans {
  grid-column: 2;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

.bq-question-text {
  margin: 0 0 10px;
  padding: 12px 16px;
  background: var(--bg);
  border-left: 2px solid var(--primary);
  border-radius: 0 6px 6px 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  font-style: normal;
  font-family: var(--serif);
}
.bq-layer-1 .bq-question-text { border-left-color: #134e4a; }
.bq-layer-2 .bq-question-text { border-left-color: #0d9488; }
.bq-layer-3 .bq-question-text { border-left-color: #5EAB94; }
.bq-layer-4 .bq-question-text { border-left-color: #6d28d9; }
.bq-layer-5 .bq-question-text { border-left-color: #f59e0b; }
.bq-anchors-section .bq-question-text { border-left-color: var(--text-muted); }

.bq-rationale {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  padding-left: 44px;
}
.bq-rationale-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-right: 8px;
}

.bq-citation-block {
  margin-top: 32px;
  padding: 24px 28px;
  background: var(--bg);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
}
.bq-citation-block p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 8px;
}
.bq-citation-block p:last-child { margin: 0; }
.bq-citation-block strong { color: var(--text); font-weight: 700; }
.bq-citation-license { font-size: 12px !important; color: var(--text-faint) !important; }
.bq-citation-license a { color: inherit; }

@media (max-width: 640px) {
  .bq-layer-section { padding: 18px 18px; }
  .bq-rationale { padding-left: 0; }
}
