/* ============================================================
   Greenville New Resident Utility Guide — styles.css
   Stack: Plain HTML/CSS/JS | Mobile-first | No framework
   ============================================================ */

/* ─── Google Fonts ───────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ─── Design Tokens ──────────────────────────────────────── */
:root {
  /* Brand palette */
  --blue-900: #0d2b45;
  --blue-800: #133a5e;
  --blue-700: #1a4f82;
  --blue-600: #2167a8;
  --blue-500: #2e80cc;
  --blue-400: #5aa3e0;
  --blue-100: #ddeeff;
  --blue-50:  #f0f7ff;

  --gray-900: #1a1d23;
  --gray-800: #2d3139;
  --gray-700: #424750;
  --gray-600: #5c6370;
  --gray-400: #9099a6;
  --gray-200: #dde1e7;
  --gray-100: #f0f2f5;
  --gray-50:  #f8f9fb;

  --accent:   #e8820a;
  --accent-lt:#fff3e0;

  --white: #ffffff;
  --success: #1e7e4a;

  /* Typography */
  --font-serif: 'Libre Baskerville', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;

  /* Spacing scale (8-pt grid) */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Radius & shadows */
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(13,43,69,.08), 0 1px 2px rgba(13,43,69,.05);
  --shadow:    0 4px 12px rgba(13,43,69,.10), 0 2px 4px rgba(13,43,69,.06);
  --shadow-lg: 0 12px 32px rgba(13,43,69,.14), 0 4px 8px rgba(13,43,69,.08);

  /* Layout */
  --max-w: 1120px;
  --max-w-text: 720px;

  /* Transitions */
  --ease: cubic-bezier(.4,0,.2,1);
  --dur: 200ms;
}

/* ─── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.kit-form-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.kit-form-wrap .formkit-form,
.kit-form-wrap form,
.kit-form-wrap iframe,
.kit-form-wrap > div {
  margin-left: auto !important;
  margin-right: auto !important;
}

.kit-form-wrap .formkit-form {
  max-width: 520px !important;
  width: 100% !important;
}




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

a {
  color: var(--blue-600);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease);
}
a:hover, a:focus-visible {
  color: var(--blue-800);
  text-decoration-color: currentColor;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--blue-400);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

ul, ol { padding-left: var(--sp-6); }

/* ─── Typography Scale ───────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--blue-900);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); }
h4 { font-size: 1.1rem; font-family: var(--font-sans); font-weight: 600; }

p + p { margin-top: var(--sp-4); }

.lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 300;
  color: var(--gray-700);
  line-height: 1.65;
}

.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: var(--sp-3);
}

/* ─── Layout Helpers ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.container--narrow {
  max-width: var(--max-w-text);
}

.section {
  padding-block: var(--sp-16);
}

.section--sm {
  padding-block: var(--sp-10);
}

.section--lg {
  padding-block: var(--sp-24);
}

.section--alt {
  background: var(--gray-50);
}

.section--blue {
  background: var(--blue-900);
  color: var(--white);
}

.section--blue h2,
.section--blue h3,
.section--blue h4 { color: var(--white); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.flex-center {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.text-center { text-align: center; }

.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-8 { margin-bottom: var(--sp-8); }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--blue-600);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--blue-800);
  color: var(--white);
  text-decoration-color: transparent;
}

.btn--outline {
  background: transparent;
  color: var(--blue-600);
  border-color: var(--blue-600);
}
.btn--outline:hover {
  background: var(--blue-50);
  color: var(--blue-800);
  border-color: var(--blue-800);
}

.btn--accent {
  background: var(--accent);
  color: var(--white);
}
.btn--accent:hover {
  background: #c56e08;
  color: var(--white);
  text-decoration-color: transparent;
}

.btn--lg {
  padding: var(--sp-4) var(--sp-8);
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.1);
  color: var(--white);
  border-color: rgba(255,255,255,.8);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}

/* ─── Site Header / Nav ──────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: var(--blue-900);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--blue-600);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-serif);
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--blue-900);
}
.logo-text span {
  display: block;
  font-size: 0.7rem;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--gray-600);
  letter-spacing: 0.03em;
}

/* Desktop nav */
.site-nav {
  display: none;
  align-items: center;
  gap: var(--sp-6);
  list-style: none;
  padding: 0;
}
.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  padding: var(--sp-2) 0;
  position: relative;
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--blue-500);
  transform: scaleX(0);
  transition: transform var(--dur) var(--ease);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--blue-700);
}
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-cta {
  margin-left: var(--sp-4);
}
.nav-cta a,
.nav-cta a:hover {
  color: var(--white);
  text-decoration-color: transparent;
}

.nav-cta {
  margin-left: var(--sp-4);
}

@media (min-width: 768px) {
  .site-nav { display: flex; }
  .nav-toggle { display: none !important; }
}

/* Mobile hamburger */
.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-2);
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 64px 0 0;
  background: var(--white);
  padding: var(--sp-6) var(--sp-5);
  border-top: 1px solid var(--gray-200);
  overflow-y: auto;
  z-index: 99;
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.mobile-nav a {
  display: block;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gray-800);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--dur) var(--ease);
}
.mobile-nav a:hover,
.mobile-nav a[aria-current="page"] {
  background: var(--blue-50);
  color: var(--blue-700);
}
.mobile-nav .mobile-cta {
  margin-top: var(--sp-6);
}

/* ─── Site Footer ────────────────────────────────────────── */
.site-footer {
  background: var(--blue-900);
  color: rgba(255,255,255,.75);
  padding-block: var(--sp-12) var(--sp-8);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  margin-bottom: var(--sp-10);
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand .logo-text { color: var(--white); }
.footer-brand .logo-text span { color: rgba(255,255,255,.55); }
.footer-desc {
  margin-top: var(--sp-4);
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255,255,255,.65);
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: var(--sp-4);
}
.footer-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.footer-col a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--dur) var(--ease);
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 0.8rem;
  color: rgba(255,255,255,.45);
}

.footer-disclosure {
  max-width: 600px;
  font-size: 0.78rem;
  color: rgba(255,255,255,.4);
  margin-top: var(--sp-3);
  line-height: 1.5;
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  background-color: var(--blue-900);
  background-image: url('../img/brad-shortridge-NUKwotImP6U-unsplash.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding-block: var(--sp-20) var(--sp-16);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(13,43,69,.88) 0%,
    rgba(13,43,69,.72) 50%,
    rgba(26,79,130,.55) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 740px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px;
  padding: var(--sp-2) var(--sp-4);
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  margin-bottom: var(--sp-5);
  backdrop-filter: blur(8px);
}
.hero-badge::before {
  content: '📍';
  font-size: 0.9em;
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--sp-5);
}

.hero .lead {
  color: rgba(255,255,255,.85);
  margin-bottom: var(--sp-8);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
  margin-top: var(--sp-8);
  padding-top: var(--sp-8);
  border-top: 1px solid rgba(255,255,255,.15);
}

.hero-stat {
  display: flex;
  flex-direction: column;
}
.hero-stat strong {
  font-size: 1.5rem;
  font-family: var(--font-serif);
  color: var(--white);
  line-height: 1;
}
.hero-stat span {
  font-size: 0.8rem;
  color: rgba(255,255,255,.65);
  margin-top: 2px;
}

/* ─── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-50);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: var(--sp-4);
  flex-shrink: 0;
}

.card h3 { margin-bottom: var(--sp-2); }
.card p { color: var(--gray-700); font-size: 0.93rem; }
.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.card .card-link::after {
  content: '→';
  transition: transform var(--dur) var(--ease);
}
.card:hover .card-link::after { transform: translateX(4px); }

/* ─── Steps List ─────────────────────────────────────────── */
.steps {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  counter-reset: step;
}

.steps li {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: var(--blue-600);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-sans);
  margin-top: 2px;
}

.steps li strong {
  display: block;
  font-weight: 600;
  color: var(--blue-900);
  margin-bottom: var(--sp-1);
}

/* ─── Utility Sections (utilities.html) ──────────────────── */
.utility-section {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--sp-8);
  box-shadow: var(--shadow-sm);
}

.utility-header {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  background: var(--blue-900);
  color: var(--white);
}
.utility-header h2 {
  color: var(--white);
  font-size: 1.3rem;
  margin: 0;
}
.utility-header > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.utility-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.utility-body {
  padding: var(--sp-6);
}

.utility-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  margin-top: var(--sp-5);
}

@media (min-width: 640px) {
  .utility-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .utility-grid { grid-template-columns: repeat(4, 1fr); }
}

.utility-detail {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: var(--sp-4);
}
.utility-detail h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-600);
  margin-bottom: var(--sp-2);
}
.utility-detail p, .utility-detail li {
  font-size: 0.9rem;
  color: var(--gray-700);
}

.provider-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-sm);
  padding: var(--sp-1) var(--sp-3);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--blue-700);
  margin-bottom: var(--sp-2);
}

.todo-note {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--accent-lt);
  border: 1px solid #fdd9a8;
  border-radius: var(--radius-sm);
  padding: var(--sp-1) var(--sp-3);
  font-size: 0.78rem;
  font-weight: 500;
  color: #8a4800;
}
.todo-note::before { content: '⚠️'; font-style: normal; }

.note-box {
  background: var(--blue-50);
  border-left: 4px solid var(--blue-500);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--sp-4) var(--sp-5);
  margin-top: var(--sp-5);
  font-size: 0.9rem;
  color: var(--gray-700);
}
.note-box strong { color: var(--blue-800); }

.warning-box {
  background: var(--accent-lt);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--sp-4) var(--sp-5);
  margin-top: var(--sp-5);
  font-size: 0.9rem;
  color: var(--gray-700);
}

/* ─── Checklist (checklist.html) ─────────────────────────── */
.timeline-block {
  position: relative;
  padding-left: var(--sp-10);
  margin-bottom: var(--sp-10);
}
.timeline-block::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 40px;
  bottom: -var(--sp-10);
  width: 2px;
  background: var(--gray-200);
}
.timeline-block:last-child::before { display: none; }

.timeline-label {
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  background: var(--blue-700);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--white);
  font-family: var(--font-sans);
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--blue-900);
  margin-bottom: var(--sp-4);
}

.checklist-items {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.checklist-items li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.checklist-items li:hover {
  background: var(--blue-50);
  border-color: var(--blue-200, #b3d4f5);
}
.checklist-items li.checked {
  background: #f0faf4;
  border-color: #a7d9b8;
  text-decoration: line-through;
  color: var(--gray-600);
}

.checklist-items input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: var(--blue-600);
  margin-top: 2px;
  cursor: pointer;
}

.category-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--blue-100);
  color: var(--blue-700);
  margin-left: auto;
  white-space: nowrap;
  align-self: center;
}
.category-tag.urgent { background: #fde8e8; color: #b91c1c; }
.category-tag.done   { background: #d1fae5; color: #065f46; }

.print-section {
  display: none;
}

@media print {
  .site-header, .site-footer, .btn, .affiliate-module, .mobile-nav { display: none !important; }
  .print-section { display: block; }
  .checklist-items li { border: 1px solid #ccc; }
  body { font-size: 12pt; }
}

/* ─── FAQ ────────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

details {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}

details summary {
  padding: var(--sp-4) var(--sp-5);
  font-weight: 600;
  font-size: 0.97rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--dur) var(--ease);
  color: var(--blue-900);
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--blue-500);
  transition: transform var(--dur) var(--ease);
  flex-shrink: 0;
  margin-left: var(--sp-4);
}
details[open] summary::after { transform: rotate(45deg); }
details summary:hover { background: var(--gray-50); }

details[open] summary { background: var(--blue-50); }

.faq-answer {
  padding: var(--sp-4) var(--sp-5) var(--sp-5);
  font-size: 0.93rem;
  color: var(--gray-700);
  border-top: 1px solid var(--gray-200);
}

/* ─── Affiliate Modules ───────────────────────────────────── */
.affiliate-module {
  border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-6);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.affiliate-module .btn {
  margin-top: auto;
  align-self: flex-start;
}


.affiliate-module--internet {
  background: linear-gradient(135deg, #0d2b45 0%, #1a4f82 100%);
  color: var(--white);
}
.affiliate-module--internet h3 { color: var(--white); }
.affiliate-module--internet p  { color: rgba(255,255,255,.8); }

.affiliate-module--moving {
  background: linear-gradient(135deg, #5c3d11 0%, var(--accent) 100%);
  color: var(--white);
}
.affiliate-module--moving h3 { color: var(--white); }
.affiliate-module--moving p  { color: rgba(255,255,255,.8); }

.affiliate-module--home {
  background: linear-gradient(135deg, #1e4620 0%, #2e7d32 100%);
  color: var(--white);
}
.affiliate-module--home h3 { color: var(--white); }
.affiliate-module--home p  { color: rgba(255,255,255,.8); }

.affiliate-module h3 { margin-bottom: var(--sp-2); font-size: 1.1rem; }
.affiliate-module p  { margin-bottom: var(--sp-4); font-size: 0.93rem; }

/* ─── Prep Box ───────────────────────────────────────────── */
.prep-box {
  background: var(--white);
  border: 2px solid var(--blue-100);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
}
.prep-box h3 { margin-bottom: var(--sp-4); }
.prep-box ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
}
@media (min-width: 480px) {
  .prep-box ul { grid-template-columns: repeat(2, 1fr); }
}
.prep-box li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 0.9rem;
  color: var(--gray-700);
  padding: var(--sp-2);
  border-radius: var(--radius-sm);
}
.prep-box li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  background: var(--success);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
}

/* ─── Progress Bar (checklist) ───────────────────────────── */
.progress-bar-wrap {
  background: var(--gray-200);
  border-radius: 100px;
  height: 8px;
  overflow: hidden;
  margin-top: var(--sp-2);
}
.progress-bar-fill {
  height: 100%;
  background: var(--blue-500);
  border-radius: 100px;
  transition: width 0.4s var(--ease);
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-bottom: var(--sp-2);
}

.progress-sticky {
  position: sticky;
  top: 64px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: var(--sp-3) 0;
  z-index: 50;
}

/* ─── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.82rem;
  color: var(--gray-600);
  padding-block: var(--sp-4);
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--gray-600);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--blue-600); }
.breadcrumb-sep { color: var(--gray-400); }
.breadcrumb [aria-current="page"] { color: var(--gray-800); font-weight: 500; }

/* ─── Page Hero (inner pages) ────────────────────────────── */
.page-hero {
  background: var(--blue-900);
  color: var(--white);
  padding-block: var(--sp-12) var(--sp-10);
}
.page-hero h1 { color: var(--white); margin-bottom: var(--sp-3); }
.page-hero .lead { color: rgba(255,255,255,.8); }

/* ─── Mistake Cards ──────────────────────────────────────── */
.mistake-card {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  background: #fff8f0;
  border: 1px solid #fdd9a8;
  border-radius: var(--radius);
}
.mistake-card .mistake-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}
.mistake-card p { font-size: 0.92rem; color: var(--gray-700); }
.mistake-card strong { color: var(--gray-900); }

/* ─── Responsive utilities ───────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -999px;
  left: var(--sp-4);
  background: var(--blue-600);
  color: var(--white);
  padding: var(--sp-2) var(--sp-4);
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
}
.skip-link:focus { top: 0; }

/* ─── Utility comparison table ───────────────────────────── */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th {
  background: var(--blue-900);
  color: var(--white);
  text-align: left;
  padding: var(--sp-3) var(--sp-4);
  font-weight: 600;
  font-family: var(--font-sans);
}
td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-700);
}
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: var(--gray-50); }

/* ─── Smooth scroll offset for sticky header ─────────────── */
[id] { scroll-margin-top: 80px; }
