/* ==========================================================================
   Law Offices of Dana Jonson, LLC — Design System
   Brand tokens sampled from the live site (specialed.law) so this prototype
   matches existing brand colors/logo exactly.
   ========================================================================== */

:root {
  /* Brand colors — navy + emerald palette (chosen to stand apart from
     competitors who mostly use navy+gold or navy+red) */
  --navy: #1b3373;
  --navy-dark: #12224f;
  --navy-tint: #e6e9f2;
  --accent: #008450;
  --accent-dark: #00623c;
  --accent-button: #008450;
  --accent-button-hover: #00703f;
  --accent-tint: #dcefe4;
  --sand-tint: #f3ede0;
  /* Brighter emerald for text placed directly on navy backgrounds — the
     deep --accent doesn't have enough contrast there (checked: ~2.5-3.2:1). */
  --accent-on-navy: #4fce93;
  /* Legacy variable names still referenced below for the "tile-*" classes;
     kept as aliases so the HTML class names don't need renaming. */
  --gold: var(--accent);
  --gold-button: var(--accent-button);
  --gold-button-hover: var(--accent-button-hover);
  --teal: var(--accent-dark);
  --teal-tint: var(--accent-tint);
  --cream-tint: var(--sand-tint);
  --sky-tint: #dceaf7;
  --ink: #24303d;
  --ink-soft: #4b5a68;
  --paper: #fdfcfa;
  --hairline: #dfe4ea;

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Rhythm */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.2rem, 4vw + 1rem, 3.6rem); }
h2 { font-size: clamp(1.7rem, 2.5vw + 1rem, 2.5rem); }
h3 { font-size: clamp(1.25rem, 1.2vw + 1rem, 1.6rem); }

p { margin: 0 0 1em; color: var(--ink-soft); }
.lede { font-size: 1.15rem; color: var(--ink); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold);
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section { padding: clamp(3rem, 6vw, 5.5rem) 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
  background: var(--gold-button);
  color: #fff;
}
.btn-gold:hover { background: var(--gold-button-hover); box-shadow: 0 8px 20px -8px rgba(0,132,80,0.5); }
.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}
.btn-outline-light:hover { background: #fff; color: var(--navy); }

/* ---- Header / Nav ---- */
.site-header {
  border-bottom: 4px solid var(--navy);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .top-bar {
  background: var(--navy);
  color: #fff;
  font-size: 0.78rem;
  text-align: center;
  padding: 0.4rem var(--gutter);
  letter-spacing: 0.03em;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem var(--gutter);
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo { height: 64px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav > ul { list-style: none; display: flex; gap: 1.9rem; margin: 0; padding: 0; }
.main-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 0.25rem 0;
}
.main-nav a.active { color: var(--gold); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: -1rem;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: 0 16px 32px -12px rgba(0,53,107,0.25);
  min-width: 240px;
  padding: 0.5rem;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.15s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 0.6rem 0.75rem; border-radius: 4px; font-weight: 500; font-size: 0.9rem; }
.dropdown a:hover { background: var(--navy-tint); }
.dropdown a::after { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--navy);
  cursor: pointer;
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--hairline);
    padding: 1rem var(--gutter) 1.5rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .main-nav.open { display: flex; }
  .main-nav > ul { flex-direction: column; gap: 0.25rem; width: 100%; }
  .main-nav > ul > li { width: 100%; }
  .dropdown { position: static; box-shadow: none; border: none; opacity: 1; visibility: visible; transform: none; display: none; padding-left: 1rem; }
  .has-dropdown.open .dropdown { display: block; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  color: #fff;
  background-size: cover;
  background-position: center;
  padding: clamp(4.5rem, 10vw, 8rem) 0;
  text-align: center;
}
.hero-inner { max-width: 880px; margin: 0 auto; }
.hero h1 { color: #fff; line-height: 1.3; }
.hero p { color: #fff; }
.hero .subhead {
  font-size: clamp(1.05rem, 1.2vw + 0.8rem, 1.35rem);
  font-weight: 600;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
  color: #fff;
}
.hero-small {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  min-height: 480px;
  display: flex;
  align-items: center;
}
.hero-small h1 { font-size: clamp(1.9rem, 3vw + 1rem, 2.9rem); }
.hero-small .hero-inner { width: 100%; }

/* ---- Cards / tiles ---- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.tile {
  padding: 2.25rem;
  border-radius: var(--radius);
}
.tile h3 { margin-bottom: 0.6rem; }
.tile p { margin-bottom: 0; }
.tile-teal { background: #fff; }
.tile-teal h3 { color: var(--teal); }
.tile-gold { background: var(--cream-tint); }
.tile-gold h3 { color: var(--gold); }
.tile-sky { background: var(--sky-tint); }
.tile-sky h3 { color: var(--navy); }

.service-card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-top: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
}
.service-card:nth-child(2) { border-top-color: var(--gold); }
.service-card:nth-child(3) { border-top-color: var(--teal); }
.service-card p { flex-grow: 1; }
.service-card .learn-more {
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.service-card .learn-more:hover { text-decoration: underline; }

/* ---- Bio / two-column ---- */
.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.split img { border-radius: var(--radius); }
.signature { height: 64px; width: auto; margin-top: 1rem; }

/* ---- Testimonials ---- */
.testimonial-wrap { max-width: 760px; margin: 0 auto; text-align: center; }
.quote-card {
  background: var(--cream-tint);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 3rem);
  position: relative;
}
.quote-card::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 5rem;
  color: rgba(0,132,80,0.3);
  position: absolute;
  top: 0.25rem;
  left: 1.5rem;
  line-height: 1;
}
.quote-card p { font-style: italic; color: var(--ink); font-size: 1.05rem; }
.quote-cite { font-weight: 700; color: var(--navy); font-style: normal; margin-top: 1rem; }
.quote-dots { display: flex; justify-content: center; gap: 0.4rem; margin-top: 1.25rem; }
.quote-dots button {
  width: 9px; height: 9px; border-radius: 50%;
  border: none; background: var(--hairline); cursor: pointer; padding: 0;
}
.quote-dots button.active { background: var(--gold); }

/* ---- Banded CTA ---- */
.band {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: clamp(1rem, 2.5vw, 1.5rem) 0;
}
.band-sky { background: var(--sky-tint); color: var(--navy); }

/* ---- Footer ---- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.85); }
.site-footer .disclaimer {
  font-size: 0.8rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  margin: 0;
  text-align: left;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: start;
}
.footer-cta-col { text-align: left; }
.footer-practice-tag {
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.7);
  margin: 0.5rem 0 1.1rem;
}
.footer-cta-col .btn {
  font-size: 0.75rem;
  padding: 0.65rem 1.25rem;
}
.footer-nav-row {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 0; padding: 0; }
.footer-nav a { text-decoration: none; color: rgba(255,255,255,0.85); font-weight: 600; font-size: 0.9rem; }
.footer-nav a:hover { color: var(--accent-on-navy); }
.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.footer-a11y {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}
.footer-a11y a { color: inherit; text-decoration: underline; }
.footer-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  color: #fff;
  margin: 0;
}
.footer-logo-wrap {
  display: inline-block;
  background: #fff;
  border-radius: var(--radius);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.25rem;
}
.footer-logo { height: 60px; display: block; }
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-cta-col { text-align: left; }
}

/* ---- Stat / credibility strip ---- */
.stat-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.25);
}
.stat-strip .stat { text-align: center; }
.stat-strip .stat .num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  color: var(--accent-on-navy);
  display: block;
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat-strip .stat .label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

/* ---- Numbered / editorial practice cards ---- */
.numbered-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border-top: 1px solid var(--hairline);
}
.numbered-card {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  position: relative;
}
.numbered-card:last-child { border-right: none; }
.numbered-card .num {
  font-family: var(--font-display);
  font-size: 2.75rem;
  color: var(--gold);
  opacity: 0.55;
  line-height: 1;
  margin-bottom: 1rem;
}
.numbered-card h3 { margin-bottom: 0.75rem; }
.numbered-card .learn-more {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
  text-decoration: none;
}
.numbered-card .learn-more:hover { text-decoration: underline; }
@media (max-width: 700px) {
  .numbered-card { border-right: none; }
}

/* ---- Compact practice teaser row (homepage) ---- */
.teaser-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.teaser-item {
  background: #fff;
  padding: 1.75rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background 0.15s ease;
}
.teaser-item:hover { background: var(--accent-tint); }
.teaser-item h3 { margin: 0; font-size: 1.15rem; }
.teaser-item .arrow { color: var(--gold); font-size: 1.3rem; flex-shrink: 0; }

/* ---- Credentials list ---- */
.credentials { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.credentials li {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}
.credentials li::before { content: "\2014"; color: var(--gold); flex-shrink: 0; }

/* ---- FAQ accordion (native details/summary, no JS needed) ---- */
.faq { max-width: 820px; margin: 2.5rem auto 0; border-top: 1px solid var(--hairline); }
.faq details {
  border-bottom: 1px solid var(--hairline);
  padding: 1.35rem 0;
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--navy);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.5rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-answer { margin-top: 0.85rem; padding-right: 2rem; }
.faq .faq-answer p:last-child { margin-bottom: 0; }

/* ---- Process steps ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  counter-reset: step;
  margin-top: 2.5rem;
}
.step { text-align: center; }
.step .step-num {
  counter-increment: step;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 auto 1rem;
}
.step .step-num::before { content: counter(step); }

/* ---- Bar accordion (credentials) ---- */
.bar-accordion { margin-top: 2rem; border: 1px solid var(--hairline); }
.bar-accordion details { border-bottom: 1px solid var(--hairline); }
.bar-accordion details:last-child { border-bottom: none; }
.bar-accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  background: var(--navy-tint);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.15s ease, color 0.15s ease;
}
.bar-accordion summary::-webkit-details-marker { display: none; }
.bar-accordion summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.3rem;
  line-height: 1;
}
.bar-accordion details[open] summary { background: var(--navy); color: #fff; }
.bar-accordion details[open] summary::after { content: "\2212"; }
.bar-accordion .bar-content { padding: 1.5rem; background: #fff; }
.bar-accordion .bar-content ul { list-style: none; margin: 0; padding: 0; }
.bar-accordion .bar-content li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-soft);
}
.bar-accordion .bar-content li:last-child { border-bottom: none; }
.bar-accordion .bar-content li strong { color: var(--accent); }

/* ---- Tight list (credentials, etc.) ---- */
.tight-list { list-style: none; margin: 0.75rem 0 0; padding: 0; }
.tight-list li {
  margin-bottom: 0.4rem;
  padding-left: 1rem;
  position: relative;
  color: var(--ink-soft);
  line-height: 1.45;
}
.tight-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.tight-list li:last-child { margin-bottom: 0; }

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.max-w { max-width: 760px; margin-left: auto; margin-right: auto; }
.bg-white { background: #fff; }
.bg-navy-tint { background: var(--navy-tint); }
.stack { display: flex; flex-direction: column; gap: 1.5rem; }
.center-cta { text-align: center; margin-top: 2.5rem; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff;
  padding: 0.75rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ==== Resource pages (book, podcast, CT IEP guide, Project 2025) ==== */
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.small-note { font-size: 0.9rem; font-style: italic; margin: 1rem 0 0; }
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* Book */
.book-cover-wrap { display: flex; justify-content: center; }
.book-cover-wrap img { max-width: 420px; width: 100%; filter: drop-shadow(0 18px 30px rgba(18,34,79,0.22)); }
.numbered-grid-4 { grid-template-columns: repeat(4, 1fr); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; }
.numbered-grid-4 .numbered-card { border-bottom: none; padding: 2rem 1.75rem; }
.numbered-grid-4 .numbered-card h3 { font-size: 1.2rem; margin: 0; line-height: 1.3; }
@media (max-width: 960px) {
  .numbered-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .numbered-grid-4 .numbered-card { border-bottom: 1px solid var(--hairline); }
  .numbered-grid-4 .numbered-card:nth-child(2n) { border-right: none; }
  .numbered-grid-4 .numbered-card:nth-child(n+3) { border-bottom: none; }
}
@media (max-width: 560px) {
  .numbered-grid-4 { grid-template-columns: 1fr; }
  .numbered-grid-4 .numbered-card { border-right: none; border-bottom: 1px solid var(--hairline); }
  .numbered-grid-4 .numbered-card:last-child { border-bottom: none; }
}
.pull-line {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.5vw + 1rem, 1.75rem);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.35;
  max-width: 760px;
  margin: 2.75rem auto 0;
}
.toc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; align-items: start; margin-top: 2rem; }
.toc-cols .bar-accordion { margin-top: 0; }
@media (max-width: 800px) { .toc-cols { grid-template-columns: 1fr; } .toc-cols .bar-accordion + .bar-accordion { border-top: none; } }
.bar-accordion.toc summary { font-weight: 600; text-align: left; gap: 1rem; }
.toc-num {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.15rem;
}
.bar-accordion details[open] .toc-num { color: var(--accent-on-navy); }
.toc-appendices { margin-top: 1.5rem; }
.toc-appendix-list { columns: 2; column-gap: 2rem; }
.toc-appendix-list li { break-inside: avoid; }
.toc-appendix-list li strong { display: inline-block; min-width: 2.6rem; }
@media (max-width: 640px) { .toc-appendix-list { columns: 1; } }

/* Podcast */
.podcast-art { display: flex; justify-content: center; }
.podcast-art img { max-width: 340px; width: 100%; border-radius: var(--radius); box-shadow: 0 18px 40px -18px rgba(18,34,79,0.45); }
.guest-row, .author-row { display: grid; grid-template-columns: 220px 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; max-width: 900px; }
.guest-art img { border-radius: var(--radius); box-shadow: 0 14px 30px -16px rgba(18,34,79,0.45); }
@media (max-width: 640px) {
  .guest-row, .author-row { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .guest-art { max-width: 200px; }
}

/* Project 2025 article */
.pull-quote { margin: 0; padding-left: 1.5rem; border-left: 4px solid var(--accent); }
.pull-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.4vw + 1rem, 1.8rem);
  line-height: 1.4;
  color: var(--navy);
  font-weight: 500;
}
.pull-quote cite { font-style: normal; font-weight: 700; color: var(--accent); letter-spacing: 0.04em; }
.pull-quote cite::before { content: "\2014\00a0"; }
.article-art { border: 1px solid var(--hairline); }
.pdf-frame {
  margin: 2rem auto 0;
  max-width: 900px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -24px rgba(18,34,79,0.4);
  overflow: hidden;
}
.pdf-frame iframe { display: block; width: 100%; height: min(1100px, 80vh); border: 0; }
.author-logo { display: block; background: #fff; padding: 1rem; border: 1px solid var(--hairline); border-radius: var(--radius); }
.author-row h3 { margin-bottom: 0.25rem; }
.author-row .learn-more { font-weight: 700; font-size: 0.85rem; color: var(--navy); text-decoration: none; }
.author-row .learn-more:hover { text-decoration: underline; }

/* CT IEP form guide */
.iep-intro { padding: clamp(2rem, 4vw, 3rem) 0; }
.iep-tabs {
  position: relative;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.25rem 0.1rem 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--hairline);
  scroll-margin-top: 140px;
  scrollbar-width: thin;
}
.iep-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
}
.iep-tab:hover { border-color: var(--navy); }
.iep-tab[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }
.iep-tab-count {
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent-dark, var(--accent));
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.iep-tab[aria-current] .iep-tab-count { background: var(--accent-on-navy); color: var(--navy-dark); }

.iep-page {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  padding-bottom: 3rem;
  scroll-margin-top: 140px;
}
.iep-viewer-section.js .iep-page { display: none; padding-bottom: 0; }
.iep-viewer-section.js .iep-page.is-active { display: grid; }
@media (max-width: 860px) { .iep-page, .iep-viewer-section.js .iep-page.is-active { grid-template-columns: 1fr; } }

.iep-figure {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -24px rgba(18,34,79,0.4);
  background: #fff;
}
.iep-figure img { width: 100%; height: auto; border-radius: var(--radius); }
.iep-marker {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(0,132,80,0.25), 0 4px 10px rgba(0,0,0,0.25);
  transition: transform 0.15s ease, background 0.15s ease;
  padding: 0;
}
.iep-marker:hover { transform: scale(1.12); }
.iep-marker.is-active { background: var(--navy); box-shadow: 0 0 0 4px rgba(27,51,115,0.3), 0 4px 10px rgba(0,0,0,0.25); }
.iep-marker:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
@media (max-width: 560px) { .iep-marker { width: 24px; height: 24px; font-size: 0.7rem; } }

.iep-tips { position: sticky; top: 140px; }
@media (max-width: 860px) { .iep-tips { position: static; } }
.iep-tips h2 { font-size: clamp(1.4rem, 1.5vw + 1rem, 1.9rem); margin-bottom: 0; }
.iep-accordion { margin-top: 1.25rem; }
.iep-accordion summary { font-weight: 600; gap: 1rem; text-align: left; }
.iep-accordion summary > span { display: flex; align-items: center; gap: 0.75rem; }
.iep-accordion details { scroll-margin-top: 150px; }
.tip-num {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.iep-accordion details[open] .tip-num { background: #fff; color: var(--navy); }
.iep-accordion .bar-content { max-height: 55vh; overflow-y: auto; }
.iep-accordion .bar-content p { font-size: 0.95rem; }
.iep-accordion .bar-content p:last-child { margin-bottom: 0; }
.iep-accordion .bar-content ul,
.iep-accordion .bar-content ol { margin: 0 0 1em; padding-left: 1.25rem; list-style: revert; }
.iep-accordion .bar-content li { border: none; padding: 0.15rem 0; font-size: 0.95rem; }
@media (max-width: 860px) { .iep-accordion .bar-content { max-height: none; } }
.iep-pager { display: flex; justify-content: space-between; gap: 0.75rem; margin-top: 1.5rem; }.iep-preview {
  position: relative;
  display: block;
  max-width: 380px;
  margin: 0 auto;
  aspect-ratio: 4 / 3.4;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -24px rgba(18,34,79,0.4);
  background: #fff;
}
.iep-preview img { width: 100%; height: auto; }
.iep-preview .iep-marker { width: 26px; height: 26px; font-size: 0.72rem; }
.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; }
.iep-tabs-wrap { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--hairline); }
.iep-tabs-label { flex: 0 0 auto; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.iep-tabs-wrap .iep-tabs { flex: 1 1 auto; margin: 0; padding: 0.25rem 0.1rem; border: none; gap: 0.4rem; scrollbar-width: none; }
.iep-tabs-wrap .iep-tabs::-webkit-scrollbar { display: none; }
.iep-tabs-wrap .iep-tab { width: 2.5rem; height: 2.5rem; padding: 0; justify-content: center; font-size: 0.9rem; }
@media (max-width: 560px) { .iep-tabs-wrap { flex-direction: column; align-items: flex-start; gap: 0.5rem; } .iep-tabs-wrap .iep-tabs { width: 100%; } }
.iep-marker { width: 26px; height: 26px; font-size: 0.72rem; }
@media (max-width: 800px) { .podcast-art img { max-width: 240px; } .book-cover-wrap img { max-width: 300px; } }

.card-word { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--accent); line-height: 1.1; margin-bottom: 0.75rem; }

/* CT IEP guide, pop-up version (overrides the earlier side-list layout) */
.iep-page, .iep-viewer-section.js .iep-page.is-active { grid-template-columns: 1fr; max-width: 880px; margin: 0 auto; }
.iep-figure { overflow: visible; }
.iep-pop {
  position: absolute;
  z-index: 5;
  width: min(400px, 88%);
  max-height: 440px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--hairline);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 22px 50px -12px rgba(18,34,79,0.45);
  padding: 1.25rem 1.35rem 1.1rem;
  text-align: left;
}
.iep-pop[hidden] { display: none; }
.iep-pop h3 { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; margin: 0 2rem 0.75rem 0; line-height: 1.3; }
.iep-pop-body p, .iep-pop-body li { font-size: 0.93rem; line-height: 1.55; }
.iep-pop-body p:last-child { margin-bottom: 0; }
.iep-pop-body ul, .iep-pop-body ol { margin: 0 0 1em; padding-left: 1.25rem; }
.iep-pop-body li { color: var(--ink-soft); padding: 0.1rem 0; }
.iep-pop-close {
  position: absolute; top: 0.6rem; right: 0.6rem;
  width: 2rem; height: 2rem; border: none; border-radius: 50%;
  background: var(--navy-tint); color: var(--navy);
  font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.iep-pop-close:hover { background: var(--navy); color: #fff; }
.iep-pager { align-items: center; flex-wrap: wrap; }
.iep-page-label { order: 0; flex: 1 1 100%; text-align: center; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 0.25rem; }
@media (max-width: 640px) {
  /* On phones the tip slides up from the bottom of the screen. */
  .iep-pop {
    position: fixed;
    left: 0 !important; right: 0 !important; top: auto !important; bottom: 0 !important;
    width: 100%;
    max-height: 70vh;
    border-radius: 14px 14px 0 0;
    border-left: none; border-right: none; border-bottom: none;
    z-index: 60;
    padding: 1.4rem 1.25rem 1.5rem;
  }
}
.pdf-pages { max-width: 860px; margin: 2rem auto 0; display: flex; flex-direction: column; gap: 1.25rem; }
.pdf-pages canvas { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: 0 18px 40px -24px rgba(18,34,79,0.4); }
.pdf-status { text-align: center; padding: 3rem 1rem; background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); margin: 0; }
.split-flip > :first-child { order: 2; }
@media (max-width: 800px) { .split-flip > :first-child { order: 0; } }
.app-art { display: flex; justify-content: center; }
.app-art img { max-width: 300px; width: 100%; border-radius: 22%; box-shadow: 0 18px 40px -18px rgba(18,34,79,0.45); }
@media (max-width: 800px) { .app-art img { max-width: 200px; } }
.app-art img, .podcast-art img, .guest-art img, .book-cover-wrap img, .author-logo img, .iep-figure img { height: auto; }

.app-row { display: grid; grid-template-columns: 200px 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; max-width: 900px; }
.app-row .app-art img { max-width: 200px; }
.app-row h2 { font-size: clamp(1.5rem, 1.8vw + 1rem, 2.1rem); }
@media (max-width: 640px) { .app-row { grid-template-columns: 1fr; text-align: center; justify-items: center; } .app-row .app-art img { max-width: 150px; } }
/* Footer links + causes row */
.footer-nav-row ul { justify-content: center; gap: 0.75rem 1.75rem; }
.footer-causes {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.footer-causes li {
  background: #fff;
  border-radius: 8px;
  height: 52px;
  padding: 0 0.7rem;
  display: flex;
  align-items: center;
}
/* Each icon is shown from one shared strip image (1920 x 96). --x is where the
   icon starts in the strip and --w is its width, both in the strip's pixels. */
.cause {
  --h: 36;
  display: block;
  height: calc(var(--h) * 1px);
  width: calc(var(--w) * var(--h) / 96 * 1px);
  background: url('../assets/brand/causes.webp') no-repeat;
  background-size: calc(1920 * var(--h) / 96 * 1px) calc(var(--h) * 1px);
  background-position: calc(var(--x) * var(--h) / 96 * -1px) 0;
}
.footer-causes li { gap: 0.5rem; }

/* ==== Footer, compact balanced layout (2026-10-03) ==== */
.footer-inner { padding-top: 2rem; padding-bottom: 1.5rem; }
.footer-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}
.footer-top .footer-logo-wrap { justify-self: start; margin: 0; padding: 0.6rem 1rem; }
.footer-top .footer-logo { height: 46px; }
.footer-center { text-align: center; }
.footer-center .footer-nav ul { justify-content: center; gap: 0.5rem 1.75rem; }
.footer-center .footer-practice-tag { margin: 0.6rem 0 0; font-size: 0.78rem; }
.footer-cta { justify-self: end; }
.footer-cta .btn { font-size: 0.72rem; padding: 0.65rem 1.2rem; }
.site-footer .footer-causes { margin-top: 1.5rem; gap: 0.6rem; }
.site-footer .footer-causes li { height: 40px; padding: 0 0.55rem; border-radius: 6px; }
.site-footer .footer-causes .cause { --h: 28; }
.footer-legal {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
}
.site-footer .footer-legal .disclaimer { text-align: center; font-size: 0.72rem; line-height: 1.6; max-width: 980px; margin: 0 auto; color: rgba(255,255,255,0.55); }
.footer-legal .footer-bottom { border: none; margin: 0.9rem 0 0; padding: 0; font-size: 0.78rem; }
.footer-legal .footer-a11y { margin-top: 0.3rem; font-size: 0.72rem; }
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; justify-items: center; gap: 1.25rem; }
  .footer-top .footer-logo-wrap, .footer-cta { justify-self: center; }
}
.footer-cta .btn { white-space: nowrap; }

@media (max-width: 560px) {
  .footer-center .footer-nav ul { gap: 0.5rem 1rem; }
  .footer-center .footer-nav a { font-size: 0.85rem; }
  .site-footer .footer-causes { gap: 0.4rem; }
  .site-footer .footer-causes li { height: 32px; padding: 0 0.35rem; gap: 0.3rem; }
  .site-footer .footer-causes .cause { --h: 22; }
}
/* White strip at the very bottom: copyright, accessibility line, then causes */
.footer-base { background: #fff; color: var(--navy); padding: 1.1rem 0 1.2rem; text-align: center; }
.footer-base .footer-bottom { margin: 0; padding: 0; border: none; font-size: 0.8rem; color: var(--navy); }
.footer-base .footer-a11y { color: var(--navy); opacity: 0.85; font-size: 0.72rem; margin-top: 0.25rem; }
.footer-base .footer-a11y a { color: var(--navy); }
.site-footer .footer-base .footer-causes { margin-top: 0.8rem; gap: 1.1rem; }
.site-footer .footer-base .footer-causes li { background: none; height: auto; padding: 0; border-radius: 0; gap: 0.35rem; }
.site-footer .footer-base .footer-causes .cause { --h: 22; }
.footer-legal { padding-bottom: 0.25rem; }
@media (max-width: 560px) {
  .site-footer .footer-base .footer-causes { gap: 0.7rem; }
  .site-footer .footer-base .footer-causes .cause { --h: 18; }
}
.footer-causes .cause-img { display: block; height: 22px; width: auto; }
@media (max-width: 560px) { .footer-causes .cause-img { height: 18px; } }
.footer-causes .cause-img.cause-tall { height: 30px; }
@media (max-width: 560px) { .footer-causes .cause-img.cause-tall { height: 24px; } }

.footer-causes .cause-img.cause-tall { height: 27px; }
@media (max-width: 560px) { .footer-causes .cause-img.cause-tall { height: 22px; } }

.gal-districts { margin: 1.25rem auto 0; color: var(--navy); font-weight: 500; }
.gal-districts strong { color: var(--accent); }

/* Jump links stop just below the pinned header (height set by main.js) */
html { scroll-padding-top: calc(var(--header-h, 140px) + 16px); }
@media (max-width: 900px) { html { scroll-padding-top: calc(var(--header-h, 190px) + 16px); } }
.iep-tabs, .iep-page, .iep-accordion details { scroll-margin-top: 0; }
/* A section that ends with a consult button: equal space above and below it */
section.cta-end { padding-bottom: 2.5rem; }
section.cta-end .center-cta { margin-top: 2.5rem; }
.btn-spaced { margin-top: 1.5rem; }
@media (max-width: 800px) { section.cta-end .split { gap: 2.5rem; } }
/* Book page "help you" cards: green word stays bold, the statement under it is regular weight */
.numbered-grid-4 .numbered-card h3 { font-family: var(--font-body); font-weight: 400; font-size: 1.05rem; line-height: 1.5; color: var(--navy); }
.numbered-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .numbered-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .numbered-grid-4 { grid-template-columns: minmax(0, 1fr); } }
.numbered-grid-4 .card-word { font-size: clamp(1.25rem, 1vw + 0.9rem, 1.6rem); }
/* Let's Connect: one consult button per practice area */
.consult-choices { display: flex; flex-direction: column; gap: 0.75rem; max-width: 440px; }
.consult-choices .btn { justify-content: center; }
.consult-choices-label { margin: 0 0 0.25rem; font-weight: 700; color: var(--navy); }
/* Let's Connect: consult cards */
.consult-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
@media (max-width: 900px) { .consult-cards { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-left: auto; margin-right: auto; } }
.consult-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--hairline); border-top: 4px solid var(--accent);
  border-radius: var(--radius); padding: 1.75rem; box-shadow: 0 14px 30px -22px rgba(18,34,79,0.35);
}
.consult-card h3 { margin-bottom: 0.5rem; }
.consult-card p { flex-grow: 1; margin-bottom: 1.25rem; }
.consult-card .btn { justify-content: center; text-align: center; white-space: normal; line-height: 1.3; }
.testimonial-disclaimer { max-width: 640px; margin: 1.5rem auto 0; text-align: center; font-size: 0.8rem; font-style: italic; color: var(--ink-soft); }

.how-it-works { padding-bottom: clamp(2rem, 4vw, 3rem); }

/* Plain text pages (privacy policy, page not found) */
.text-page { padding-top: clamp(3rem, 6vw, 5rem); }
.text-page h1 { font-size: clamp(2rem, 3vw + 1rem, 2.8rem); }
.text-page h2 { font-size: clamp(1.3rem, 1vw + 1rem, 1.6rem); margin-top: 2rem; }
.text-page a:not(.btn) { color: var(--navy); }
.not-found { padding-bottom: clamp(3rem, 6vw, 5rem); }
.footer-bottom a { color: inherit; text-decoration: underline; }
/* Start Here: Welcome Parents, tighter */
section.welcome { padding: clamp(2.5rem, 4vw, 3.25rem) 0; }
.welcome .split { align-items: center; }
.welcome-photo { display: block; width: 100%; max-width: 300px; margin: 0 auto; border-radius: 50%; }
.welcome .signature { margin-top: 0.5rem; }
.welcome .learn-more { font-weight: 700; color: var(--navy); }
.welcome .split .welcome-photo { border-radius: 50%; }
