/* ══════════════════════════════════════════════════════════════════════
   Behavioral Health Wiki — Design System
   ══════════════════════════════════════════════════════════════════════ */

:root {
  /* ── Core palette ─────────────────────────────────────────────────── */
  --forest:        #0f2b1f;
  --forest-light:  #163d2c;
  --accent:        #1a7f5a;
  --accent-hover:  #15664a;
  --accent-light:  #e6f4ee;
  --accent-border: #b3dcc9;

  /* ── Neutrals ─────────────────────────────────────────────────────── */
  --obsidian:      #1a1a1a;
  --charcoal:      #2d2d2d;
  --graphite:      #555555;
  --pewter:        #888888;
  --ash:           #b0b0b0;
  --silver:        #d4d4d4;
  --fog:           #e8e8e8;
  --mist:          #f2f1ef;
  --paper:         #faf9f6;
  --white:         #ffffff;

  /* ── Semantic ─────────────────────────────────────────────────────── */
  --text:          #2d2d2d;
  --text-secondary:#666666;
  --text-on-dark:  #f0ede8;
  --text-muted:    #999999;
  --link:          #2a6496;
  --link-hover:    #1a4a70;
  --link-visited:  #5e4a8a;
  --border:        #ddd8d0;
  --card-shadow:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --card-shadow-hover: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);

  /* ── Warning / disclaimer ─────────────────────────────────────────── */
  --warn-bg:       #fdf6e3;
  --warn-border:   #e6d5a0;
  --warn-text:     #6b5c2a;

  /* ── Typography ───────────────────────────────────────────────────── */
  --font-body:     'Source Serif 4', 'Georgia', 'Times New Roman', serif;
  --font-ui:       'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* ── Layout ───────────────────────────────────────────────────────── */
  --content-width:  740px;
  --wide-width:     1020px;
  --header-height:  auto;
}

/* ── Reset ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15.5px; scroll-behavior: smooth; scroll-padding-top: 5rem; }

::selection { background: var(--accent-light); color: var(--forest); }

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Links ──────────────────────────────────────────────────────────── */
a { color: var(--link); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--link-hover); text-decoration: underline; }
a:visited { color: var(--link-visited); }

/* ══════════════════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════════════════ */
.site-header {
  background: var(--forest);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0.7rem 1.5rem 0;
}

.masthead-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.masthead-title {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.masthead-title a { color: var(--white); }
.masthead-title a:hover { text-decoration: none; color: var(--white); }
.masthead-title a:visited { color: var(--white); }

.masthead-sub {
  font-size: 0.68rem;
  color: var(--accent-border);
  font-family: var(--font-ui);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn-treatment {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--white);
  background: var(--accent);
  padding: 0.35rem 1rem;
  border-radius: 5px;
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn-treatment:hover {
  background: var(--accent-hover);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-treatment:visited { color: var(--white); }

.masthead-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

nav {
  margin-top: 0.45rem;
  padding: 0.4rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

nav > ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
}

nav a {
  color: rgba(255,255,255,0.78);
  font-size: 0.72rem;
  font-family: var(--font-ui);
  font-weight: 500;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

nav a:visited { color: rgba(255,255,255,0.78); }
nav a:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  text-decoration: none;
}

/* ── Dropdown menus ────────────────────────────────────────────────── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a::after {
  content: " ▾";
  font-size: 0.55rem;
  opacity: 0.6;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--forest-light);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 0.35rem 0;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 200;
  list-style: none;
}

.nav-dropdown:hover > .dropdown-menu,
.nav-dropdown:focus-within > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li { display: block; }

.dropdown-menu a {
  display: block;
  padding: 0.4rem 1rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.85);
  border-radius: 0;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.dropdown-menu a:visited { color: rgba(255,255,255,0.85); }

/* ══════════════════════════════════════════════════════════════════════
   MAIN CONTENT
   ══════════════════════════════════════════════════════════════════════ */
main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

main.wide { max-width: var(--wide-width); }

/* ── Headings ───────────────────────────────────────────────────────── */
h1 {
  font-family: var(--font-body);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--obsidian);
  margin-bottom: 0.15rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.4rem;
}

.page-info {
  font-size: 0.68rem;
  color: var(--pewter);
  font-family: var(--font-ui);
  margin-bottom: 1.3rem;
}

h2 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--obsidian);
  margin-top: 2.2rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--fog);
  padding-bottom: 0.25rem;
  padding-left: 0.6rem;
  border-left: 3px solid var(--accent);
}

h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-top: 1.4rem;
  margin-bottom: 0.25rem;
}

p { margin-bottom: 0.85rem; }

/* ══════════════════════════════════════════════════════════════════════
   HERO SECTIONS
   ══════════════════════════════════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-light) 50%, var(--accent) 100%);
  color: var(--white);
  padding: 3rem 1.5rem 2.5rem;
  margin-bottom: 0;
}

.page-hero--image {
  background-size: cover;
  background-position: center;
  position: relative;
  color: var(--white);
  padding: 4rem 1.5rem 3rem;
  margin-bottom: 0;
}

.page-hero--image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,43,31,0.88) 0%, rgba(22,61,44,0.78) 50%, rgba(26,127,90,0.65) 100%);
  z-index: 1;
}

.page-hero .hero-inner,
.page-hero--image .hero-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-hero h1,
.page-hero--image h1 {
  color: var(--white);
  border-bottom: 2px solid rgba(255,255,255,0.3);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.page-hero p,
.page-hero--image p {
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem;
  max-width: 640px;
  line-height: 1.6;
}

.page-hero .page-info,
.page-hero--image .page-info {
  color: rgba(255,255,255,0.55);
}

/* ══════════════════════════════════════════════════════════════════════
   TABLE OF CONTENTS
   ══════════════════════════════════════════════════════════════════════ */
.toc {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.4rem;
  margin: 1.4rem 0 2rem;
  display: inline-block;
  border-radius: 0 6px 6px 0;
  box-shadow: var(--card-shadow);
}

.toc-title {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
  color: var(--charcoal);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.toc strong { color: var(--accent); font-size: 0.85rem; }

.toc ol { padding-left: 1.3rem; font-size: 0.82rem; }
.toc ol li { margin-bottom: 0.22rem; }
.toc a { color: var(--link); }
.toc a:visited { color: var(--link); }
.toc a:hover { color: var(--accent); }

/* ══════════════════════════════════════════════════════════════════════
   WIKI INDEX (Homepage)
   ══════════════════════════════════════════════════════════════════════ */
.wiki-index {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.2rem 0;
  padding-left: 0;
}

.wiki-index li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  transition: box-shadow 0.2s, transform 0.2s;
  box-shadow: var(--card-shadow);
}

.wiki-index li:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-1px);
}

.wiki-index .entry-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.wiki-index .entry-title a { color: var(--link); }
.wiki-index .entry-title a:visited { color: var(--link); }

.wiki-index .entry-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
  line-height: 1.55;
}

/* ══════════════════════════════════════════════════════════════════════
   STATE GRID & CARDS
   ══════════════════════════════════════════════════════════════════════ */
.state-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.2rem 0;
}

.state-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  transition: box-shadow 0.2s, transform 0.2s;
  box-shadow: var(--card-shadow);
}

.state-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-1px);
}

.state-card h3 {
  margin-top: 0;
  font-size: 0.95rem;
  font-family: var(--font-ui);
  font-weight: 600;
}

.state-card h3 a { color: var(--link); }
.state-card h3 a:visited { color: var(--link); }

.state-stats {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-ui);
  margin-bottom: 0.3rem;
}

.state-pages {
  list-style: none;
  display: flex;
  gap: 1rem;
  font-size: 0.78rem;
}

.state-pages a { color: var(--link); }
.state-pages a:visited { color: var(--link); }

/* ══════════════════════════════════════════════════════════════════════
   HUB ARTICLE LIST (Conditions, etc.)
   ══════════════════════════════════════════════════════════════════════ */
.hub-article-list {
  list-style: none;
  margin: 1rem 0;
  padding-left: 0;
}

.hub-article {
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--fog);
  font-size: 0.92rem;
  transition: background 0.15s;
  border-radius: 4px;
}

.hub-article:hover {
  background: var(--accent-light);
}

.hub-article a { color: var(--link); }
.hub-article a:visited { color: var(--link); }

/* ══════════════════════════════════════════════════════════════════════
   REFERENCE & INFO BOXES
   ══════════════════════════════════════════════════════════════════════ */
.reference-box {
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-left: 4px solid var(--accent);
  padding: 1.1rem 1.3rem;
  margin: 2rem 0;
  font-size: 0.8rem;
  border-radius: 0 6px 6px 0;
  line-height: 1.6;
}

.reference-box strong {
  font-size: 0.85rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.35rem;
}

/* ── Citation links ─────────────────────────────────────────────────── */
.citation-link {
  font-size: 0.6rem;
  color: var(--accent);
  font-weight: 700;
  vertical-align: super;
  line-height: 0;
  padding: 0 0.1rem;
}

.citation-link:visited { color: var(--accent); }
.citation-link:hover { color: var(--link); }

/* ── References list ────────────────────────────────────────────────── */
.ref-list {
  font-size: 0.74rem;
  color: var(--graphite);
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 2px solid var(--fog);
}

.ref-list h3 {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  margin-bottom: 0.5rem;
  border: none;
  color: var(--charcoal);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ref-list ol { padding-left: 1.4rem; }
.ref-list ol li { margin-bottom: 0.4rem; line-height: 1.55; }

/* ── References (alternate class) ───────────────────────────────────── */
ol.references {
  font-size: 0.74rem;
  color: var(--graphite);
  padding-left: 1.4rem;
}

ol.references li { margin-bottom: 0.4rem; line-height: 1.55; }

/* ── Medical disclaimer ─────────────────────────────────────────────── */
.medical-disclaimer {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: 6px;
  padding: 0.6rem 1rem;
  margin-bottom: 1.2rem;
  font-size: 0.72rem;
  color: var(--warn-text);
  font-family: var(--font-ui);
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════════════
   BLOCKQUOTES
   ══════════════════════════════════════════════════════════════════════ */
blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.3rem 0;
  padding: 0.6rem 1.2rem;
  background: var(--accent-light);
  border-radius: 0 6px 6px 0;
  font-size: 0.92rem;
  color: var(--charcoal);
  font-style: italic;
}

/* ══════════════════════════════════════════════════════════════════════
   TABLES
   ══════════════════════════════════════════════════════════════════════ */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 0.82rem;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

th {
  background: var(--forest);
  color: var(--white);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.75rem;
  text-align: left;
  padding: 0.6rem 0.9rem;
  letter-spacing: 0.02em;
}

td {
  padding: 0.5rem 0.9rem;
  border-bottom: 1px solid var(--fog);
  background: var(--white);
}

tr:nth-child(even) td { background: var(--mist); }
tr:hover td { background: var(--accent-light); }

/* ══════════════════════════════════════════════════════════════════════
   HUB SUBSECTIONS (State sub-pages, etc.)
   ══════════════════════════════════════════════════════════════════════ */
.hub-subsection {
  margin: 1.6rem 0;
  padding: 1rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

.hub-subsection h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.2rem 0;
  border: none;
  padding: 0;
}

.hub-subsection p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
}

.hub-links {
  list-style: none;
  font-size: 0.85rem;
}

.hub-links li { padding: 0.18rem 0; }
.hub-links a { color: var(--link); }
.hub-links a:visited { color: var(--link); }

.hub-links .placeholder {
  color: var(--ash);
  font-style: italic;
  font-size: 0.78rem;
}

.hub-cross-links {
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--fog);
}

.hub-cross-links h2 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.35rem 0;
  border: none;
  padding: 0;
}

.hub-cross-links ul {
  list-style: none;
  font-size: 0.85rem;
}

.hub-cross-links li { padding: 0.18rem 0; }
.hub-cross-links a { color: var(--link); }
.hub-cross-links a:visited { color: var(--link); }

/* ══════════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--forest);
  color: var(--text-on-dark);
  padding: 1.8rem 0 1rem;
  margin-top: 3rem;
  font-family: var(--font-ui);
}

.footer-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.footer-about {
  font-size: 0.72rem;
  color: rgba(240,237,232,0.7);
  max-width: 400px;
  line-height: 1.55;
}

.footer-about strong {
  display: block;
  color: var(--white);
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
}

.footer-links ul { list-style: none; display: flex; gap: 1.2rem; }
.footer-links a { color: var(--accent-border); font-size: 0.72rem; }
.footer-links a:visited { color: var(--accent-border); }
.footer-links a:hover { color: var(--white); text-decoration: none; }

.footer-contact {
  font-size: 0.7rem;
  color: rgba(240,237,232,0.7);
  text-align: center;
  margin-top: 1rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  max-width: var(--wide-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.footer-contact a {
  color: var(--accent-border);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--white);
}

.footer-copyright {
  font-size: 0.65rem;
  color: rgba(240,237,232,0.45);
  text-align: center;
  margin-top: 0.4rem;
  padding-top: 0;
  max-width: var(--wide-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.footer-disclaimer {
  max-width: var(--wide-width);
  margin: 0.5rem auto 0;
  padding: 0.3rem 1.5rem 0;
  font-size: 0.52rem;
  color: rgba(240,237,232,0.35);
  font-family: var(--font-ui);
}

/* ══════════════════════════════════════════════════════════════════════
   ARTICLE READING POLISH
   ══════════════════════════════════════════════════════════════════════ */

/* Subtle left accent on article (non-wide) pages */
main:not(.wide) {
  border-left: 3px solid var(--accent-light);
  padding-left: 2rem;
}

/* Better list styling in article bodies */
main ul, main ol {
  padding-left: 1.6rem;
  margin-bottom: 1rem;
}

main li {
  margin-bottom: 0.35rem;
  line-height: 1.65;
}

main li::marker {
  color: var(--accent);
}

/* Inline code */
code {
  font-size: 0.88em;
  background: var(--mist);
  padding: 0.12em 0.35em;
  border-radius: 3px;
  font-family: 'SF Mono', 'Consolas', 'Courier New', monospace;
}

/* Horizontal rules */
hr {
  border: none;
  border-top: 1px solid var(--fog);
  margin: 2rem 0;
}

/* Image handling */
main img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* Strong emphasis in body text */
strong { color: var(--obsidian); }

/* Smooth anchor scrolling offset for sticky header */
[id] { scroll-margin-top: 5rem; }

/* ══════════════════════════════════════════════════════════════════════
   TREATMENT CENTER PAGES
   ══════════════════════════════════════════════════════════════════════ */

.tc-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.tc-header-row h1 { margin-bottom: 0.15rem; }

.btn-suggest-edit {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--white);
  background: var(--accent);
  padding: 0.45rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}

.btn-suggest-edit:visited { color: var(--white); }
.btn-suggest-edit:hover { background: var(--accent-dark); color: var(--white); }

.tc-intro {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--slate);
  margin-bottom: 1.5rem;
}

.tc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.tc-card {
  background: var(--white);
  border: 1px solid var(--fog);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.tc-logo {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  flex-shrink: 0;
  object-fit: contain;
  background: var(--mist);
}

.tc-logo-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--mist);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tc-logo-placeholder svg {
  width: 24px;
  height: 24px;
  fill: var(--slate);
  opacity: 0.45;
}

.tc-card-body { flex: 1; min-width: 0; }

.tc-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.tc-name {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--obsidian);
  margin: 0 0 0.35rem;
}

.tc-city {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--slate);
  margin: 0 0 0.4rem;
}

.tc-web, .tc-phone {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  margin: 0 0 0.2rem;
}

.tc-web a { color: var(--accent); }
.tc-web a:hover { color: var(--accent-dark); }
.tc-phone a { color: var(--slate); text-decoration: none; }
.tc-phone a:hover { color: var(--accent); }

.tc-none {
  font-size: 0.88rem;
  color: var(--slate);
  font-style: italic;
  margin-bottom: 2rem;
}

.tc-none a { color: var(--accent); }

.tc-cta {
  background: var(--mist);
  border: 1px solid var(--fog);
  border-radius: 8px;
  padding: 1.2rem 1.5rem;
  text-align: center;
  margin: 2.5rem 0 1.5rem;
}

.tc-cta p {
  font-size: 0.9rem;
  margin: 0 0 0.8rem;
  color: var(--obsidian);
}

.tc-back {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  margin-top: 1.5rem;
}

.tc-back a { color: var(--accent); }
.tc-back a:hover { color: var(--accent-dark); }

/* ══════════════════════════════════════════════════════════════════════
   SUGGEST EDIT FORM
   ══════════════════════════════════════════════════════════════════════ */

.edit-form-intro {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--slate);
  margin-bottom: 1.5rem;
}

.suggest-edit-form {
  max-width: 640px;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--obsidian);
  margin-bottom: 0.35rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--fog);
  border-radius: 5px;
  background: var(--white);
  color: var(--obsidian);
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(26,127,90,0.12);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.btn-submit-edit {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--white);
  background: var(--accent);
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit-edit:hover { background: var(--accent-dark); }

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .state-grid { grid-template-columns: repeat(2, 1fr); }
  .wiki-index { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  .masthead-row { flex-wrap: wrap; gap: 0.5rem; }
  .masthead-right { gap: 0.6rem; }
  .masthead-sub { font-size: 0.6rem; }
  .btn-treatment { font-size: 0.65rem; padding: 0.3rem 0.7rem; }
  nav > ul { gap: 0.08rem; }
  nav a { padding: 0.22rem 0.4rem; font-size: 0.68rem; }
  .nav-dropdown { position: static; }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    min-width: 0;
    display: none;
  }
  .nav-dropdown:hover > .dropdown-menu,
  .nav-dropdown:focus-within > .dropdown-menu {
    display: block;
  }
  .dropdown-menu a { padding: 0.22rem 0.4rem 0.22rem 1.2rem; font-size: 0.66rem; }
  main { padding: 1.2rem 1rem; }
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.08rem; }
  .toc { display: block; width: 100%; }
  .footer-inner { flex-direction: column; gap: 1rem; }
  .footer-links ul { flex-wrap: wrap; }
  .state-grid { grid-template-columns: 1fr; }
  .wiki-index { grid-template-columns: 1fr; }
  .state-card:hover { transform: none; }
  .wiki-index li:hover { transform: none; }
  .page-hero { padding: 2rem 1rem 1.8rem; }
  .page-hero h1,
  .page-hero--image h1 { font-size: 1.5rem; }
  .page-hero--image { padding: 2.5rem 1rem 2rem; }
  main:not(.wide) { border-left: none; padding-left: 1rem; }
  .tc-header-row { flex-direction: column; gap: 0.5rem; }
  .tc-grid { grid-template-columns: 1fr; }
  .tc-card:hover { transform: none; }
  .tc-logo, .tc-logo-placeholder { width: 40px; height: 40px; }
  .tc-logo-placeholder svg { width: 20px; height: 20px; }
}

/* ── Video embeds ─────────────────────────────────────────── */
.video-section {
  margin: 2rem 0;
}
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 8px;
  margin: 1rem 0;
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-caption {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.4rem;
}

@media (max-width: 480px) {
  nav a { padding: 0.2rem 0.3rem; font-size: 0.62rem; }
  .masthead-title { font-size: 1.15rem; }
  .btn-treatment { font-size: 0.6rem; padding: 0.25rem 0.6rem; }
  .state-card { padding: 0.7rem 0.8rem; }
}
