:root {
      --clr-ink: #1a1a1a;
      --clr-paper: #faf9f6;
      --clr-accent: #c8102e;
      --clr-accent-light: #fdecee;
      --clr-border: #e0ddd8;
      --clr-muted: #6b6560;
      --clr-card: #ffffff;
      --clr-badge: #d4a017;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }

    body {
      font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
      background: var(--clr-paper);
      color: var(--clr-ink);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
    }

    /* — Utility — */
    .container-narrow { max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; }
    .container-wide   { max-width: 1600px; margin: 0 auto; padding: 0 1.25rem; }

    /* — Hero — */
    .hero {
      position: relative;
      background: linear-gradient(168deg, #1a1a1a 0%, #2c2c2c 50%, #3a3a3a 100%);
      color: #faf9f6;
      padding: 5rem 1.25rem 4rem;
      overflow: hidden;
    }
    .hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='.6' fill='%23ffffff08'/%3E%3C/svg%3E") repeat;
      pointer-events: none;
    }
    .hero-logo {
      display: block;
      max-width: 220px;
      height: auto;
      margin-bottom: 1.25rem;
    }
    @media (max-width: 480px) {
      .hero-logo { max-width: 160px; }
    }
    .hero-badge {
      display: inline-block;
      background: var(--clr-accent);
      color: #fff;
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      padding: 0.3em 0.8em;
      border-radius: 2px;
      margin-bottom: 1.25rem;
    }
    .hero h1 {
      font-size: clamp(2rem, 5vw, 3.2rem);
      font-weight: 800;
      line-height: 1.15;
      letter-spacing: -0.02em;
      max-width: 680px;
    }
    .hero p.sub {
      margin-top: 1rem;
      font-size: 1.05rem;
      color: #c8c3bb;
      max-width: 560px;
      line-height: 1.65;
    }
    .hero .scroll-cta {
      margin-top: 2rem;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--clr-accent);
      text-decoration: none;
      letter-spacing: 0.04em;
      transition: color 0.2s;
    }
    .hero .scroll-cta:hover { color: #dd4055; }
    .hero .scroll-cta svg { transition: transform 0.2s; }
    .hero .scroll-cta:hover svg { transform: translateY(3px); }

    /* — Section shared — */
    section { padding: 4rem 0; }
    section h2 {
      font-size: 1.6rem;
      font-weight: 800;
      letter-spacing: -0.01em;
      margin-bottom: 0.35rem;
    }
    section .section-lead {
      color: var(--clr-muted);
      font-size: 0.95rem;
      margin-bottom: 2rem;
      max-width: 600px;
    }

    /* — Transparency banner — */
    .transparency {
      background: var(--clr-accent-light);
      border-left: 4px solid var(--clr-accent);
      border-radius: 0 6px 6px 0;
      padding: 1.25rem 1.5rem;
      font-size: 0.92rem;
      line-height: 1.7;
      color: #1a1a1a;
      margin-bottom: 3rem;
    }

    /* — Tool cards (reserved for future use) — */

    .tool-card {
      background: var(--clr-card);
      border: 1px solid var(--clr-border);
      border-radius: 8px;
      padding: 1rem 1.25rem;
      margin-bottom: 0.6rem;
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 0.5rem;
      transition: box-shadow 0.2s;
    }
    .tool-card:hover {
      box-shadow: 0 3px 14px rgba(0,0,0,0.05);
    }
    .tool-info h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.15rem; }
    .tool-info p { font-size: 0.82rem; color: var(--clr-muted); margin: 0; }
    .tool-card a {
      font-size: 0.8rem;
      font-weight: 600;
      color: var(--clr-accent);
      text-decoration: none;
      white-space: nowrap;
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
    }
    .tool-card a:hover { text-decoration: underline; }

    .step-row { padding: 0.4rem 0; border-bottom: 1px solid #e0ddd8; }
    .step-row:last-child { border-bottom: none; }
    .step-row a { font-size: 0.82rem; font-weight: 600; color: #c8102e; text-decoration: none; }
    .step-row a:hover { text-decoration: underline; }
    .step-note { font-size: 0.75rem; color: #6b6560; margin: 0.1rem 0 0; }
    /* Step urgency / effort / checkbox */
    .step-row { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.5rem 0.6rem; border-bottom: 1px solid #e0ddd8; border-left: 3px solid transparent; transition: opacity 0.2s, border-left-color 0.2s; }
    .step-urgency-red { border-left-color: #c8102e; background: linear-gradient(to right, #fdecee 0%, transparent 30%); }
    .step-urgency-yellow { border-left-color: #d4a017; background: linear-gradient(to right, #fdf6e3 0%, transparent 30%); }
    .step-urgency-grey { border-left-color: #c4c0bb; }
    .step-checkbox { width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; cursor: pointer; flex-shrink: 0; accent-color: #2d6a4f; }
    .step-content { flex: 1; min-width: 0; }
    .step-row.step-done { opacity: 0.4; }
    .step-row.step-done .step-content > a { text-decoration: line-through; }
    .step-effort { display: inline-block; font-size: 0.66rem; font-weight: 600; padding: 0.1rem 0.5rem; border-radius: 10px; margin-left: 0.4rem; vertical-align: middle; letter-spacing: 0.02em; }
    .step-effort-quick { background: #d4f1d4; color: #1d5e2a; }
    .step-effort-plan  { background: #fef0c7; color: #8a5a00; }
    .step-effort-major { background: #ffe0e0; color: #8a1c2a; }
    .step-opt-tag { font-size: 0.65rem; color: #6b6560; font-style: italic; margin-left: 0.3rem; }

    /* Journey-stage gateway */
    .journey-gateway { background: linear-gradient(135deg, #fafaf7 0%, #f3f1ed 100%); padding: 2.5rem 1.25rem; border-bottom: 1px solid #e0ddd8; }
    .journey-gateway h2 { text-align: center; font-size: 1.6rem; margin: 0 0 0.5rem; color: #1a1a1a; }
    .journey-gateway .lead { text-align: center; font-size: 0.95rem; color: #6b6560; max-width: 580px; margin: 0 auto 2rem; line-height: 1.5; }
    .journey-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; max-width: 980px; margin: 0 auto; }
    .journey-card { background: #ffffff; border: 1px solid #e0ddd8; border-radius: 8px; padding: 1.5rem 1.25rem; text-align: center; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; text-decoration: none; color: inherit; display: flex; flex-direction: column; align-items: center; }
    .journey-card:hover { transform: translateY(-3px); box-shadow: 0 4px 16px rgba(0,0,0,0.08); border-color: #c8102e; }
    .journey-icon { font-size: 2.4rem; margin-bottom: 0.6rem; }
    .journey-card h3 { font-size: 1.05rem; margin: 0 0 0.5rem; color: #1a1a1a; }
    .journey-card p { font-size: 0.85rem; color: #6b6560; margin: 0; line-height: 1.5; }

    /* Critical warning */
    .critical-warning { background: #fdecee; border-left: 4px solid #c8102e; padding: 0.75rem 1rem; margin: 0.75rem 0 1rem; border-radius: 4px; font-size: 0.85rem; line-height: 1.45; }
    .step-time { display: inline-block; font-size: 0.7rem; color: #2d6a4f; background: #e8f3ee; padding: 0.1rem 0.45rem; border-radius: 10px; margin-left: 0.4rem; font-weight: 500; vertical-align: middle; }
    .steps-list { margin-top: 0.5rem; }
    .phase-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #d4a017; margin-top: 0.75rem; margin-bottom: 0.25rem; padding-top: 0.5rem; border-top: 1px dashed #e0ddd8; }
    .student-track {
      margin: 0.75rem 0;
      padding: 0;
      border-top: 1px dashed #e0ddd8;
      border-bottom: 1px dashed #e0ddd8;
    }
    .student-track summary {
      cursor: pointer;
      padding: 0.6rem 0.5rem;
      list-style: none;
      user-select: none;
      transition: background 0.15s;
    }
    .student-track summary:hover { background: #fafaf7; }
    .student-track summary::-webkit-details-marker { display: none; }
    .student-track summary::before {
      content: '\25B6';
      display: inline-block;
      margin-right: 0.5rem;
      font-size: 0.7rem;
      transition: transform 0.2s;
      color: #d4a017;
    }
    .student-track[open] summary::before { transform: rotate(90deg); }
    .student-track-label {
      font-size: 0.8rem;
      font-weight: 700;
      color: #2d6a4f;
      letter-spacing: 0.02em;
    }
    .student-track-hint {
      font-size: 0.7rem;
      color: #6b6560;
      font-style: italic;
      margin-left: 0.4rem;
    }
    .student-track-inner {
      padding: 0.25rem 0.5rem 0.5rem;
      background: #fafaf7;
      border-radius: 4px;
      margin-top: 0.25rem;
    }
    .student-track-inner .step-row:last-child { border-bottom: none; }
    .family-track {
      margin: 0.75rem 0;
      padding: 0;
      border-top: 1px dashed #e0ddd8;
      border-bottom: 1px dashed #e0ddd8;
    }
    .family-track summary {
      cursor: pointer;
      padding: 0.6rem 0.5rem;
      list-style: none;
      user-select: none;
      transition: background 0.15s;
    }
    .family-track summary:hover { background: #fafaf7; }
    .family-track summary::-webkit-details-marker { display: none; }
    .family-track summary::before {
      content: '\25B6';
      display: inline-block;
      margin-right: 0.5rem;
      font-size: 0.7rem;
      transition: transform 0.2s;
      color: #c8500a;
    }
    .family-track[open] summary::before { transform: rotate(90deg); }
    .family-track-label {
      font-size: 0.8rem;
      font-weight: 700;
      color: #c8500a;
      letter-spacing: 0.02em;
    }
    .family-track-hint {
      font-size: 0.7rem;
      color: #6b6560;
      font-style: italic;
      margin-left: 0.4rem;
    }
    .family-track-inner {
      padding: 0.25rem 0.5rem 0.5rem;
      background: #fafaf7;
      border-radius: 4px;
      margin-top: 0.25rem;
    }
    .family-track-inner .step-row:last-child { border-bottom: none; }
    .phase-label:first-child { border-top: none; margin-top: 0; padding-top: 0; }
    .roadmap-card .city-note {
      font-size: 0.78rem;
      color: var(--clr-muted);
      font-style: italic;
      margin-bottom: 0.6rem;
    }
    .state-filters {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
      margin-bottom: 1rem;
    }
    .state-filters div {
      font-size: 0.78rem;
      font-weight: 600;
      padding: 0.35em 0.85em;
      border: 1px solid var(--clr-border);
      border-radius: 4px;
      background: var(--clr-card);
      color: var(--clr-muted);
      cursor: pointer;
      transition: all 0.15s;
      user-select: none;
      -webkit-tap-highlight-color: transparent;
    }
    .state-filters div:hover {
      border-color: var(--clr-accent);
      color: var(--clr-ink);
    }
    .state-filters div.active {
      background: var(--clr-badge);
      color: #fff;
      border-color: var(--clr-badge);
    }
    .roadmap-loading {
      font-size: 0.85rem;
      color: var(--clr-muted);
      padding: 1.5rem 0;
    }
    .roadmap-loading .spinner {
      display: inline-block;
      width: 14px;
      height: 14px;
      border: 2px solid var(--clr-border);
      border-top-color: var(--clr-accent);
      border-radius: 50%;
      animation: spin 0.6s linear infinite;
      vertical-align: middle;
      margin-right: 0.4rem;
    }
    @keyframes spin { to { transform: rotate(360deg); } }
    .roadmap-error {
      font-size: 0.85rem;
      color: var(--clr-accent);
      padding: 1rem 0;
    }

    /* — Mistakes list — */
    .mistakes-list { list-style: none; counter-reset: mistake; }
    .mistakes-list li {
      counter-increment: mistake;
      position: relative;
      padding: 1rem 0 1rem 3.5rem;
      border-bottom: 1px solid var(--clr-border);
    }
    .mistakes-list li::before {
      content: counter(mistake, decimal-leading-zero);
      position: absolute;
      left: 0;
      top: 1rem;
      font-size: 1.5rem;
      font-weight: 800;
      color: var(--clr-accent);
      opacity: 0.35;
    }
    .mistakes-list li strong { display: block; font-weight: 700; margin-bottom: 0.15rem; }
    .mistakes-list li span { font-size: 0.9rem; color: var(--clr-muted); }

    /* — Roadmap search — */
    .roadmap-search-wrap {
      position: relative;
      max-width: 480px;
      margin-bottom: 1.5rem;
    }
    .roadmap-search-wrap input {
      width: 100%;
      padding: 0.75rem 1rem 0.75rem 2.75rem;
      border: 1px solid var(--clr-border);
      border-radius: 6px;
      font-size: 0.95rem;
      background: var(--clr-card);
      outline: none;
      transition: border-color 0.2s;
    }
    .roadmap-search-wrap input:focus { border-color: var(--clr-accent); }
    .roadmap-search-wrap .search-icon {
      position: absolute;
      left: 0.85rem;
      top: 50%;
      transform: translateY(-50%);
      color: var(--clr-muted);
      pointer-events: none;
    }
    .roadmap-card {
      display: none;
      background: var(--clr-card);
      border: 1px solid var(--clr-border);
      border-radius: 8px;
      padding: 1.25rem 1.5rem;
      margin-bottom: 0.75rem;
      display: none; /* hidden by default, shown via JS */
    }
    .roadmap-card.visible { display: block; }
    .roadmap-card .badge-verified {
      display: inline-block;
      font-size: 0.65rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: #fff;
      background: var(--clr-badge);
      padding: 0.15em 0.55em;
      border-radius: 2px;
      margin-bottom: 0.6rem;
    }
    .roadmap-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.2rem; }
    .roadmap-card .state-label { font-size: 0.8rem; color: var(--clr-muted); margin-bottom: 0.75rem; }
    .roadmap-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
    .roadmap-links a {
      font-size: 0.78rem;
      font-weight: 600;
      color: var(--clr-ink);
      background: #f3f1ed;
      padding: 0.35em 0.7em;
      border-radius: 4px;
      text-decoration: none;
      transition: background 0.15s;
    }
    .roadmap-links a:hover { background: #e8e5df; }
    .roadmap-links a .giro-warn {
      color: var(--clr-accent);
      font-weight: 800;
      margin-left: 0.25em;
    }
    .no-results {
      display: none;
      font-size: 0.9rem;
      color: var(--clr-muted);
      padding: 1rem 0;
    }

    /* — Universal info blocks — */
    .info-block {
      background: var(--clr-card);
      border: 1px solid var(--clr-border);
      border-radius: 8px;
      padding: 1.25rem 1.5rem;
      margin-bottom: 0.75rem;
    }
    .info-block h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
    .info-block p { font-size: 0.88rem; color: var(--clr-muted); }

    .tax-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin-top: 0.75rem; }
    .tax-table th {
      text-align: left;
      font-weight: 700;
      padding: 0.5rem 0.75rem;
      background: #f3f1ed;
      border-bottom: 2px solid var(--clr-border);
    }
    .tax-table td {
      padding: 0.45rem 0.75rem;
      border-bottom: 1px solid var(--clr-border);
    }

    /* — Footer — */
    footer {
      background: #1a1a1a;
      color: #a09a93;
      padding: 3rem 1.25rem 2rem;
      font-size: 0.82rem;
      line-height: 1.7;
    }
    footer a { color: #d4cfc7; text-decoration: none; }
    footer a:hover { color: #fff; text-decoration: underline; }
    .footer-grid {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr;
      gap: 2rem;
      margin-bottom: 2rem;
    }
    @media (max-width: 640px) {
      .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    }
    .footer-grid h4 {
      color: #faf9f6;
      font-weight: 700;
      font-size: 0.85rem;
      margin-bottom: 0.5rem;
    }
    .footer-bottom {
      border-top: 1px solid #333;
      padding-top: 1.25rem;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 0.5rem;
      font-size: 0.75rem;
      color: #6b6560;
    }

    /* — Hamburger menu — */
    .hamburger-btn {
      position: fixed;
      top: 1rem;
      right: 1rem;
      z-index: 1000;
      width: 44px;
      height: 44px;
      border: none;
      border-radius: 8px;
      background: rgba(26, 42, 58, 0.9);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      cursor: pointer;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 5px;
      padding: 0;
      -webkit-tap-highlight-color: transparent;
    }
    .hamburger-btn span {
      display: block;
      width: 20px;
      height: 2px;
      background: #faf9f6;
      border-radius: 1px;
      transition: all 0.3s;
    }
    .hamburger-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger-btn.open span:nth-child(2) { opacity: 0; }
    .hamburger-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .menu-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.4);
      z-index: 998;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s;
    }
    .menu-overlay.open { opacity: 1; pointer-events: auto; }

    .menu-panel {
      position: fixed;
      top: 0;
      right: 0;
      width: 300px;
      max-width: 85vw;
      height: 100vh;
      height: 100dvh;
      background: #faf9f6;
      z-index: 999;
      transform: translateX(100%);
      transition: transform 0.3s ease;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      padding: 4.5rem 1.5rem 2rem;
    }
    .menu-panel.open { transform: translateX(0); }

    .menu-panel nav a {
      display: block;
      padding: 0.75rem 0;
      font-size: 0.95rem;
      font-weight: 600;
      color: var(--clr-ink);
      text-decoration: none;
      border-bottom: 1px solid var(--clr-border);
    }
    .menu-panel nav a:hover { color: var(--clr-accent); }
    .menu-panel nav a:last-child { border-bottom: none; }

    .menu-panel .menu-section-label {
      font-size: 0.7rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--clr-muted);
      margin-top: 1.25rem;
      margin-bottom: 0.25rem;
    }

    /* — Hidden sections (shown via menu navigation) — */
    .menu-section {
      display: none;
    }
    .menu-section.active {
      display: block;
    }

    /* — Animations — */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(18px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .fade-up {
      opacity: 0;
      animation: fadeUp 0.6s ease forwards;
    }
    .fade-up-d1 { animation-delay: 0.1s; }
    .fade-up-d2 { animation-delay: 0.2s; }
    .fade-up-d3 { animation-delay: 0.35s; }
  
    /* ─── Disclaimer banner (always visible after hero) ─── */
    .disclaimer-banner {
      background: #fff8e7;
      border-top: 2px solid #d4a017;
      border-bottom: 1px solid var(--clr-border);
      padding: 1rem 0;
      font-size: 0.875rem;
      color: #3a2f0a;
    }
    .disclaimer-inner {
      display: flex;
      align-items: flex-start;
      gap: 0.75rem;
      line-height: 1.55;
    }
    .disclaimer-icon {
      flex-shrink: 0;
      color: #a8780f;
      margin-top: 0.15rem;
    }
    .disclaimer-banner strong {
      color: #1a1a1a;
      display: inline;
    }
    @media (max-width: 600px) {
      .disclaimer-banner {
        padding: 0.85rem 0;
        font-size: 0.82rem;
      }
      .disclaimer-inner {
        gap: 0.55rem;
      }
    }
    
  
    /* ─── SEO City Directory (always in DOM for crawlers) ─── */
    .seo-city-directory {
      background: #fff;
      border-top: 1px solid var(--clr-border);
      padding: 2rem 0;
      font-size: 0.85rem;
      color: var(--clr-muted);
    }
    .seo-heading {
      font-size: 1rem;
      font-weight: 700;
      color: var(--clr-ink);
      margin: 0 0 0.5rem;
    }
    .seo-lead {
      font-size: 0.85rem;
      margin: 0 0 1.25rem;
      color: var(--clr-muted);
    }
    .seo-state-block {
      margin-bottom: 1.25rem;
    }
    .seo-state-block h3 {
      font-size: 0.85rem;
      font-weight: 700;
      color: var(--clr-ink);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin: 0 0 0.35rem;
    }
    .seo-state-block ul {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-wrap: wrap;
      gap: 0.35rem 0.85rem;
    }
    .seo-state-block li {
      font-size: 0.82rem;
    }
    .seo-state-block a {
      color: var(--clr-accent);
      text-decoration: none;
      font-weight: 500;
    }
    .seo-state-block a:hover {
      text-decoration: underline;
    }

    /* City directory visibility controlled by JS via .seo-dir-visible class */
    .seo-city-directory { display: none; }
    .seo-city-directory.seo-dir-visible { display: block; }
    /* Hide roadmap cards when All States tab active */
    .all-states-active #roadmapList { display: none; }
    .all-states-active #roadmapLoading { display: none; }
    .all-states-active #roadmapError { display: none; }

/* ─── Link feedback votes ─────────────────────────────────── */
.step-votes { display: inline-flex; gap: 0.25rem; margin-left: 0.4rem; vertical-align: middle; }
.step-vote {
  background: transparent;
  border: 1px solid #e0ddd8;
  border-radius: 14px;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.05rem 0.5rem;
  line-height: 1.2;
  opacity: 0.6;
  transition: opacity 0.15s, background 0.15s, border-color 0.15s, transform 0.1s;
  font-family: inherit;
}
.step-vote:hover { opacity: 1; transform: scale(1.1); }
.step-vote:active { transform: scale(0.95); }
.step-vote.voted { opacity: 1; cursor: default; transform: none; }
.step-vote-up.voted { background: #e8f3ee; border-color: #2d6a4f; }
.step-vote-down.voted { background: #fdecee; border-color: #c8102e; }
.step-vote.voted-other { opacity: 0.3; }
