/* Public-only overrides + new collapsible-section styles. */

/* --- Joel's personal-brand palette (advocate-facing version) ---
   Overrides the audit's forest-green / warm-cream defaults with the
   blue + orange palette Joel ships on snap-impact-web. See
   ~/.claude-work/projects/-Users-mcclurg/memory/reference-joel-personal-brand.md
   for the canonical palette. Tier colors on the spectrum + state-tile
   map are left untouched so the data-encoded coloring stays legible. */
:root {
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --ink: #1A1A2E;
  --ink-muted: #6B7280;
  --ink-soft: #9CA3AF;
  --border: #E5E7EB;
  --accent: #2563EB;
  --accent-soft: #EFF6FF;
  --link: #2563EB;
  --link-hover: #1D4ED8;
  --editorial-bg: #FFF7ED;
  --editorial-border: #FED7AA;
  --editorial-ink: #7C2D12;
}
/* Slightly cooler border on stat cards to match the new palette. */
.stat-grid .stat {
  border-color: #C7DBFB;
}
/* Tasteful personal byline in the footer. */
.byline {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--ink-muted);
}
.byline a {
  color: var(--accent);
  border-bottom: 1px solid rgba(37, 99, 235, 0.25);
  transition: border-color 0.14s ease;
}
.byline a:hover {
  text-decoration: none;
  border-bottom-color: var(--accent);
}


/* The base styles.css ships with .tab-panel { display: none } and
   .tab-panel.active { display: block }. The advocate page only has one
   panel; force-show it so we don't depend on the tab-init JS. */
.tab-panel { display: block; }

/* Collapsible section (modernization spectrum / state map / glossary).
   Default closed. Light-touch styling so it harmonizes with stat-grid
   and hero-callout cards on the page. */
.public-collapse {
  margin: 36px 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.public-collapse > summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  user-select: none;
  transition: background 120ms ease;
}
.public-collapse > summary::-webkit-details-marker { display: none; }
.public-collapse > summary::after {
  content: "▾";
  color: var(--ink-soft);
  font-weight: 400;
  font-size: 0.9rem;
  margin-left: auto;
  transition: transform 160ms ease;
}
.public-collapse[open] > summary::after { transform: rotate(180deg); }
.public-collapse > summary:hover { background: #fafaf3; }
.public-collapse-title {
  font-size: 1.15rem;
}
.public-collapse-hint {
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.public-collapse-body {
  padding: 4px 22px 26px;
  border-top: 1px solid var(--border);
}
.public-collapse-body > .section-lede {
  margin-top: 18px;
}

/* When edit mode is OFF, the data-edit attributes should not paint any
   outline. (When ON, edit-mode.css owns the dashed outline via
   .edit-editable.) */
body:not(.edit-mode) [data-edit] { outline: none; }

/* Tighten the hero on the public page — no eyebrow, no internal
   "Propel only" framing. */
.hero { padding-top: 8px; }

/* Apply the highlighted-stat treatment to every stat card on the public
   site. Joel preferred the green-gradient look uniformly, not just on
   the lead stat. */
.stat-grid .stat {
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--surface) 70%);
  border-color: #b8d8c5;
}
