/* Higher Math Guide — indigo accent, warm paper, serif headings */
:root {
  --ink: #1a1f2e;
  --ink-muted: #4a5160;
  --paper: #f6f3ec;
  --paper-card: #ffffff;
  --accent: #2f4a7a;
  --accent-soft: #e8eef7;
  --accent-dark: #243a61;
  --accent-mid: #3d5f96;
  --line: #d8d2c6;
  --warn: #8b5a2b;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(26, 31, 46, 0.05), 0 12px 32px rgba(26, 31, 46, 0.07);
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --max: 720px;
  --wide: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--accent-dark); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.site-header {
  background: var(--paper-card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }

.nav-toggle {
  display: none;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  font: inherit;
  cursor: pointer;
  color: var(--ink);
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.35rem 1.1rem;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav a.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.32rem 0.7rem;
  border-radius: 6px;
  text-decoration: none;
}
.site-nav a.nav-cta:hover,
.site-nav a.nav-cta[aria-current="page"] {
  background: var(--accent-dark);
  color: #fff !important;
}

main { flex: 1; }

.wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2.25rem 1.25rem 3.5rem;
}
.narrow { max-width: var(--max); margin-left: auto; margin-right: auto; }

.hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}
.hero .lede {
  font-size: 1.15rem;
  color: var(--ink-muted);
  max-width: 40rem;
  margin: 0;
}
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

h1, h2, h3 { text-wrap: balance; }
h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 2.35rem 0 0.8rem;
  letter-spacing: -0.02em;
}
h3 {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  line-height: 1.3;
  margin: 1.65rem 0 0.5rem;
}
.article-body h2:first-child { margin-top: 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 2rem;
}
.card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover {
  border-color: var(--accent);
  box-shadow: 0 14px 34px rgba(47, 74, 122, 0.12);
  transform: translateY(-2px);
}
.card h3 { margin-top: 0; font-size: 1.1rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card p { margin: 0.4rem 0 0; color: var(--ink-muted); font-size: 0.95rem; }
.card-thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
  margin: 0 0 0.75rem;
}
.card-thumb + h3 { margin-top: 0; }

.guide-list {
  list-style: none;
  margin: 1.25rem 0 2rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.85rem 1.25rem;
}
.guide-list li {
  margin: 0;
  padding: 0.9rem 1rem;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-muted);
  font-size: 0.95rem;
}
.guide-list a {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.guide-list a:hover { color: var(--accent); }

.article-meta {
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.byline {
  margin: 0 0 0.35rem;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 600;
}
.edu-note {
  margin: 0.15rem 0 1.15rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.article-body p { margin: 0 0 1rem; }
.article-body ul, .article-body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
}
.article-body li { margin-bottom: 0.4rem; }
.article-body blockquote {
  margin: 1.25rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: var(--ink-muted);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-body .katex-display { margin: 1.25rem 0; overflow-x: auto; }

.callout {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
}
.callout.warning {
  background: #faf6f0;
  border-color: #e0d0b8;
}
.callout.pitfall {
  background: #faf6f0;
  border-color: #e0d0b8;
}
.callout strong { color: var(--accent-dark); }

.example-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--warn);
  background: #faf6f0;
  border: 1px solid #e0d0b8;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.source-list {
  font-size: 0.92rem;
  color: var(--ink-muted);
}
.source-list a { word-break: break-word; }

.toc {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.toc h2 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.toc ul { margin: 0; padding-left: 1.2rem; columns: 2; gap: 1.5rem; }
.toc li { break-inside: avoid; margin-bottom: 0.25rem; }
@media (max-width: 560px) {
  .toc ul { columns: 1; }
}

.glossary-term {
  scroll-margin-top: 5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.glossary-term:last-child { border-bottom: none; }
.glossary-term h3 { margin: 0 0 0.35rem; }
.glossary-term p { margin: 0; color: var(--ink-muted); }

.calc-panel {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  max-width: 440px;
}
.calc-panel label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0.85rem 0 0.35rem;
}
.calc-panel label[hidden] { display: none; }
.calc-panel label:first-of-type { margin-top: 0; }
.calc-panel input,
.calc-panel select {
  width: 100%;
  padding: 0.55rem 0.7rem;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}
.calc-panel input:focus,
.calc-panel select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.calc-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.15rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  border: none;
  border-radius: 6px;
  padding: 0.55rem 1.1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn {
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid var(--line);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
  background: var(--accent-soft);
}
.calc-result {
  margin-top: 1.25rem;
  padding: 1rem;
  background: var(--accent-soft);
  border-radius: var(--radius);
  display: none;
}
.calc-result.visible { display: block; }
.calc-result .amount {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-dark);
}
.calc-result .detail { font-size: 0.92rem; color: var(--ink-muted); margin-top: 0.35rem; }
.calc-result .detail.steps { white-space: pre-line; line-height: 1.5; }
.calc-error {
  color: #8b2e2e;
  font-size: 0.9rem;
  margin-top: 0.75rem;
  display: none;
}
.calc-error.visible { display: block; }

.contact-form {
  max-width: 480px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0.85rem 0 0.35rem;
}
.contact-form label:first-of-type { margin-top: 0; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}
.contact-form textarea { min-height: 140px; resize: vertical; }

.stat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1rem 0 1.5rem;
  background: var(--paper-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.stat-table th,
.stat-table td {
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--line);
}
.stat-table th {
  background: var(--accent-soft);
  font-weight: 600;
}
.stat-table tr:last-child td { border-bottom: none; }

.related {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.related ul { padding-left: 1.2rem; }

.site-footer {
  background: var(--ink);
  color: #c8cfd8;
  padding: 2rem 1.25rem;
  font-size: 0.9rem;
  margin-top: auto;
}
.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1.4fr 1fr 1fr;
}
.site-footer a { color: #a8b8d4; }
.site-footer a:hover { color: #fff; }
.site-footer h2 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8a93a0;
  margin: 0 0 0.6rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.footer-note {
  grid-column: 1 / -1;
  border-top: 1px solid #2e3a4a;
  padding-top: 1rem;
  margin-bottom: 0;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.55;
}
.footer-legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin-top: 0.85rem;
}
.footer-legal a {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.55;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.footer-legal a:hover,
.footer-legal a:focus {
  color: #d6e2f5;
}
.footer-legal a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: block;
    min-height: 44px;
    min-width: 44px;
    padding: 0.5rem 0.9rem;
  }
  .site-nav {
    display: none;
    width: 100%;
  }
  .site-nav.open { display: block; }
  .site-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
  .site-nav ul { flex-direction: column; gap: 0; padding: 0.25rem 0; }
  .site-nav a.nav-cta {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 44px;
  }
  .footer-inner { grid-template-columns: 1fr; }
  .site-footer li { margin-bottom: 0; }
  .site-footer li a,
  .footer-legal a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

@media print {
  .site-header, .site-footer, .nav-toggle, .consent-banner { display: none; }
  body { background: #fff; }
}

/* Calculator layout helpers */
.calc-panel.wide { max-width: 560px; }
.calc-grid {
  display: grid;
  gap: 0.5rem 0.65rem;
  margin-top: 0.35rem;
}
.calc-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calc-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.calc-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.calc-grid.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.calc-grid.cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.calc-grid label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
}
.calc-grid input { width: 100%; }
.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  gap: 0.65rem;
  margin-top: 0.35rem;
}
.field-row label { margin-top: 0; }
.calc-hint {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin: 0.5rem 0 0;
}
.ed-plot {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 0.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.ed-legend {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin: 0.55rem 0 0;
}
.matrix-block {
  margin-top: 0.75rem;
  padding: 0.85rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.matrix-block h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  font-weight: 700;
}
.calc-panel label.calc-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 600;
  margin: 0.95rem 0 0;
}
.calc-panel label.calc-check input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.25rem;
  flex: 0 0 auto;
}
@media (max-width: 720px) {
  .calc-grid.cols-5,
  .calc-grid.cols-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .calc-grid.cols-4,
  .calc-grid.cols-5,
  .calc-grid.cols-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.section-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 0 0 0.4rem;
}

.pathway-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 0;
}
.pathway-step {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.05rem;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.pathway-step:hover {
  border-color: var(--accent-mid);
  box-shadow: 0 12px 28px rgba(47, 74, 122, 0.1);
  transform: translateY(-2px);
}
.pathway-step .step-n {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.pathway-step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
}
.pathway-step h3 a { color: var(--ink); text-decoration: none; }
.pathway-step h3 a:hover { color: var(--accent); }
.pathway-step p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin: 2rem 0 0;
}
.cta-panel p { margin: 0; max-width: 38rem; }
.cta-panel .btn { flex-shrink: 0; }

.calc-group { margin: 2.25rem 0 0; }
.calc-group h2 { margin-top: 0; }

.faq-item {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin: 0.95rem 0;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.faq-item:hover {
  border-color: #c5d0e4;
  box-shadow: 0 10px 26px rgba(26, 31, 46, 0.07);
}
.faq-item h2 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
}
.faq-item p { margin: 0 0 0.75rem; color: var(--ink-muted); }
.faq-item p:last-child { margin-bottom: 0; }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 2rem;
}

.footer-cta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 0 0.15rem;
  border-top: 1px solid #2e3a4a;
}
.footer-cta p {
  margin: 0;
  max-width: 36rem;
  color: #c8cfd8;
}
.site-footer .footer-cta .btn {
  background: #fff;
  color: var(--accent-dark) !important;
}
.site-footer .footer-cta .btn:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

main .wrap > section:not(.faq-item) { margin-bottom: 2.75rem; }
main .wrap > section:not(.faq-item):last-child { margin-bottom: 0; }

.guide-list li { transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.guide-list li:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.hero.hero-photo {
  position: relative;
  isolation: isolate;
  padding: 0;
  margin: 0 0 2.75rem;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #1c2a24;
  box-shadow: 0 18px 42px rgba(26, 31, 46, 0.16);
}
.hero.hero-photo img {
  display: block;
  width: 100%;
  height: clamp(26rem, 62vw, 36rem);
  max-width: none;
  object-fit: cover;
  object-position: center 40%;
  background: #1c2a24;
}
.hero.hero-photo .hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.25rem, 3vw, 2.6rem);
  background: linear-gradient(180deg, rgba(12, 18, 16, 0.08) 0%, rgba(12, 18, 16, 0.22) 36%, rgba(8, 14, 16, 0.88) 100%);
  color: #f6f3ec;
}
.hero.hero-photo h1 {
  color: #f7f4ee;
  max-width: 16em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.hero.hero-photo .lede {
  color: rgba(247, 244, 238, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.hero.hero-photo .section-kicker { color: #d7e4f8; }
.hero.hero-photo .badge {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.page-banner,
.article-figure { margin: 0.35rem 0 1.6rem; }
.page-banner img,
.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2.35 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  border: 1px solid rgba(26, 31, 46, 0.08);
  background: #e4e7ee;
  box-shadow: 0 10px 28px rgba(26, 31, 46, 0.08);
}
.article-figure img { aspect-ratio: 16 / 9; }
.page-banner.is-slim img { aspect-ratio: 2.7 / 1; }
.page-banner figcaption,
.article-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-muted);
}

img.crop-1 { object-position: center 18%; }
img.crop-2 { object-position: 14% 42%; }
img.crop-3 { object-position: 86% 40%; }
img.crop-4 { object-position: center 78%; }
img.crop-5 { object-position: 28% 12%; }
img.crop-6 { object-position: 72% 82%; }
img.crop-7 { object-position: 8% 68%; }
img.crop-8 { object-position: 92% 24%; }
img.crop-9 { object-position: 38% 58%; }
img.crop-10 { object-position: center 34%; }

.form-thanks {
  background: var(--accent-soft);
  border: 1px solid #c9d6ea;
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 0 0 1.15rem;
  color: var(--accent-dark);
  font-weight: 600;
}
.form-note {
  color: var(--ink-muted);
  font-size: 0.92rem;
  margin: 0.9rem 0 0;
}
.form-error {
  color: #8b2e2e;
  font-size: 0.92rem;
  margin: 0.75rem 0 0;
}
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 700px) {
  .hero.hero-photo .hero-copy {
    position: relative;
    inset: auto;
    background: #172028;
  }
  .hero.hero-photo img { height: 14rem; }
}

@media (prefers-reduced-motion: reduce) {
  .card:hover,
  .pathway-step:hover,
  .btn:hover,
  .site-footer .footer-cta .btn:hover { transform: none; }
}

.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 0;
  padding: 0.85rem 1.25rem calc(0.85rem + env(safe-area-inset-bottom));
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 -8px 24px rgba(26, 31, 46, 0.18);
}
.consent-banner[hidden] { display: none !important; }
.consent-banner:focus { outline: none; }
.consent-banner:focus-visible {
  outline: 2px solid #ffe08a;
  outline-offset: -3px;
}
.consent-banner p {
  margin: 0;
  max-width: 46rem;
  font-size: 0.95rem;
  line-height: 1.45;
}
.consent-banner a { color: #ffe08a; }
.consent-banner a:hover,
.consent-banner a:focus { color: #fff; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.consent-actions button {
  min-height: 44px;
  min-width: 7rem;
  padding: 0.5rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
}
.consent-actions button[data-consent="granted"] {
  background: #fff;
  color: var(--ink);
}
.consent-actions button[data-consent="denied"] {
  background: transparent;
  color: #fff;
  border-color: #c8cfd8;
}
.consent-actions button:focus-visible {
  outline: 3px solid #ffe08a;
  outline-offset: 2px;
}
@media (max-width: 640px) {
  .consent-banner { align-items: stretch; }
  .consent-actions { width: 100%; }
  .consent-actions button { flex: 1 1 8rem; }
}

