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

    :root {
      --white: #F8F9FA;
      --red: #dc2626;
      --red-light: #fee2e2;
      --green: #388e3c;
      --green-light: #e8f5e9;
    }

    html { scroll-behavior: smooth; overflow-x: hidden; }
    body { overflow-x: hidden; max-width: 100%; }
    body { font-family: 'DM Sans', sans-serif; background: var(--white); color: var(--charcoal); line-height: 1.6; }

    /* NAV */
    nav {
      position: sticky; top: 0; z-index: 100; background: #fff;
      border-bottom: 1px solid var(--border);
      display: flex; align-items: center; justify-content: space-between;
      padding: 0 48px; height: 64px;
    }
    .nav-logo { font-family: 'DM Serif Display', serif; font-size: 1.15rem; color: var(--teal); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
    .nav-links { display: flex; gap: 4px; list-style: none; }
    .nav-links a { text-decoration: none; color: var(--gray); font-size: 0.875rem; font-weight: 500; padding: 6px 14px; border-radius: 6px; transition: background 0.15s, color 0.15s; white-space: nowrap; }
    .nav-links a:hover { background: var(--teal-light); color: var(--teal); }
    .nav-links a.active { background: var(--teal-light); color: var(--teal); }
    .nav-cta { background: var(--red) !important; color: #fff !important; border-radius: 8px !important; padding: 8px 18px !important; }

    /* PAGE HEADER */
    .page-header-wrap { background: linear-gradient(135deg, #f0fafa 0%, #fdf8f0 100%); border-bottom: 1px solid var(--border); }
    .page-header { max-width: 1200px; margin: 0 auto; padding: 56px 48px 48px; }
    .page-tag { display: inline-block; background: var(--teal-light); color: var(--teal); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 12px; border-radius: 100px; margin-bottom: 16px; }
    .page-header h1 { font-family: 'DM Serif Display', serif; font-size: 2.5rem; line-height: 1.15; color: var(--charcoal); letter-spacing: -0.02em; margin-bottom: 12px; }
    .page-header p { font-size: 1rem; color: var(--gray); line-height: 1.7; max-width: 580px; }

    /* SUB NAV */
    .sub-nav { background: #fff; border-bottom: 1px solid var(--gray-light); position: sticky; top: 64px; z-index: 90; }
    .sub-nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 48px; display: flex; overflow-x: auto; }
    .sub-nav a { text-decoration: none; color: var(--gray); font-size: 0.875rem; font-weight: 500; padding: 16px 20px; border-bottom: 2px solid transparent; white-space: nowrap; transition: color 0.15s, border-color 0.15s; }
    .sub-nav a:hover { color: var(--teal); }
    .sub-nav a.active { color: var(--teal); border-bottom-color: var(--teal); }

    /* SECTION */
    .section { max-width: 1200px; margin: 0 auto; padding: 64px 48px; }
    .section-divider { border: none; border-top: 1px solid var(--gray-light); margin: 0 48px; }
    .section-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
    .section-title { font-family: 'DM Serif Display', serif; font-size: 1.9rem; color: var(--charcoal); margin-bottom: 8px; letter-spacing: -0.02em; }
    .section-sub { color: var(--gray); font-size: 0.925rem; max-width: 600px; margin-bottom: 40px; line-height: 1.7; }

    /* HOW IT WORKS — FLOW */
    .flow-steps { display: flex; flex-direction: column; gap: 0; position: relative; }
    .flow-step { display: grid; grid-template-columns: 48px 1fr; gap: 24px; position: relative; padding-bottom: 32px; }
    .flow-step:last-child { padding-bottom: 0; }
    .flow-step-left { display: flex; flex-direction: column; align-items: center; }
    .flow-step-num { width: 48px; height: 48px; border-radius: 50%; background: var(--teal); color: #fff; font-family: 'DM Serif Display', serif; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; z-index: 1; }
    .flow-step-line { flex: 1; width: 2px; background: var(--border); margin-top: 8px; }
    .flow-step:last-child .flow-step-line { display: none; }
    .flow-step-content { padding-top: 10px; }
    .flow-step-content h4 { font-size: 1rem; font-weight: 600; color: var(--charcoal); margin-bottom: 6px; }
    .flow-step-content p { font-size: 0.875rem; color: var(--gray); line-height: 1.7; }
    .flow-note { display: inline-block; margin-top: 8px; background: var(--amber-light); color: #92400e; font-size: 0.775rem; padding: 4px 10px; border-radius: 6px; }

    /* INSURANCE */
    .insurance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
    .insurance-card { background: #fff; border: 1px solid var(--gray-light); border-radius: 14px; padding: 24px; transition: border-color 0.15s, box-shadow 0.15s; }
    .insurance-card:hover { border-color: var(--teal); box-shadow: 0 4px 16px rgba(42,127,127,0.08); }
    .insurance-card-tag { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
    .insurance-card h4 { font-size: 1rem; font-weight: 600; color: var(--charcoal); margin-bottom: 10px; }
    .insurance-card p { font-size: 0.825rem; color: var(--gray); line-height: 1.7; }
    .insurance-fact-box { background: var(--teal-light); border-radius: 12px; padding: 20px 24px; display: flex; align-items: center; gap: 16px; }
    .insurance-fact-box p { font-size: 0.875rem; color: var(--teal-dark); line-height: 1.7; }

    /* TRANSLATIONS */
    .trans-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
    .trans-tab { padding: 8px 18px; border-radius: 100px; border: 1.5px solid var(--gray-light); background: #fff; font-family: 'DM Sans', sans-serif; font-size: 0.825rem; font-weight: 500; color: var(--gray); cursor: pointer; transition: all 0.15s; }
    .trans-tab:hover { border-color: var(--teal); color: var(--teal); }
    .trans-tab.active { background: var(--teal); color: #fff; border-color: var(--teal); }
    .trans-panel { display: none; }
    .trans-panel.active { display: block; }

    /* phrase table */
    .phrase-table { width: 100%; border-collapse: collapse; }
    .phrase-table th { text-align: left; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray); padding: 10px 16px; border-bottom: 2px solid var(--gray-light); }
    .phrase-table td { padding: 12px 16px; border-bottom: 1px solid var(--gray-light); font-size: 0.875rem; vertical-align: top; }
    .phrase-table tr:last-child td { border-bottom: none; }
    .phrase-table tr:hover td { background: var(--teal-light); }
    .phrase-en { font-weight: 500; color: var(--charcoal); }
    .phrase-ja { color: var(--teal); font-weight: 600; }
    .phrase-ro { color: var(--gray); font-style: italic; font-size: 0.8rem; }

    /* body parts grid */
    .body-parts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
    .body-part-item { background: #fff; border: 1px solid var(--gray-light); border-radius: 10px; padding: 12px 14px; transition: border-color 0.15s; }
    .body-part-item:hover { border-color: var(--teal); }
    .body-part-en { font-size: 0.875rem; font-weight: 600; color: var(--charcoal); }
    .body-part-ja { font-size: 0.875rem; color: var(--teal); font-weight: 600; }
    .body-part-ro { font-size: 0.75rem; color: var(--gray); font-style: italic; }

    /* symptom chips */
    .symptom-chips { display: flex; flex-wrap: wrap; gap: 8px; }
    .symptom-chip { background: #fff; border: 1px solid var(--gray-light); border-radius: 8px; padding: 8px 14px; font-size: 0.825rem; }
    .symptom-chip-en { font-weight: 600; color: var(--charcoal); display: block; }
    .symptom-chip-ja { color: var(--teal); font-weight: 600; display: block; font-size: 0.8rem; }
    .symptom-chip-ro { color: var(--gray); font-style: italic; font-size: 0.75rem; display: block; }

    /* drug types */
    .drug-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
    .drug-item { background: #fff; border: 1px solid var(--gray-light); border-radius: 10px; padding: 14px; text-align: center; transition: border-color 0.15s; }
    .drug-item:hover { border-color: var(--teal); }
    .drug-en { font-size: 0.825rem; font-weight: 600; color: var(--charcoal); }
    .drug-ja { font-size: 0.825rem; color: var(--teal); font-weight: 600; }
    .drug-ro { font-size: 0.75rem; color: var(--gray); font-style: italic; }

    /* SPECIALTY GUIDE */
    .specialty-table { width: 100%; border-collapse: collapse; }
    .specialty-table th { text-align: left; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray); padding: 10px 16px; border-bottom: 2px solid var(--gray-light); }
    .specialty-table td { padding: 14px 16px; border-bottom: 1px solid var(--gray-light); font-size: 0.875rem; vertical-align: top; }
    .specialty-table tr:last-child td { border-bottom: none; }
    .specialty-table tr:hover td { background: var(--teal-light); }
    .spec-name { font-weight: 600; color: var(--charcoal); }
    .spec-ja { color: var(--teal); font-size: 0.8rem; font-weight: 600; }
    .spec-desc { color: var(--gray); line-height: 1.6; }
    .spec-when { color: var(--charcoal); font-size: 0.825rem; }

    /* FOOTER */
    footer { background: var(--charcoal); color: rgba(255,255,255,0.6); padding: 32px 48px; display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem; flex-wrap: wrap; gap: 16px; }
    footer a { color: rgba(255,255,255,0.6); text-decoration: none; }
    footer a:hover { color: #fff; }
    .footer-logo { font-family: 'DM Serif Display', serif; font-size: 1rem; color: #fff; }

    /* RESPONSIVE */
    
    /* ── MOBILE NAV ── */
    .hamburger {
      display: none;
      flex-direction: column;
      gap: 5px;
      cursor: pointer;
      padding: 6px;
      border: none;
      background: transparent;
      z-index: 200;
    }

    .hamburger span {
      display: block;
      width: 22px;
      height: 2px;
      background: var(--charcoal);
      border-radius: 2px;
      transition: all 0.25s ease;
    }

    .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.open span:nth-child(2) { opacity: 0; }
    .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .mobile-sidebar {
      position: fixed;
      top: 0;
      right: -280px;
      width: 260px;
      height: 100vh;
      background: #fff;
      box-shadow: -4px 0 24px rgba(0,0,0,0.12);
      z-index: 999;
      transition: right 0.28s ease;
      display: flex;
      flex-direction: column;
      padding: 0;
    }

    .mobile-sidebar.open { right: 0; }

    .mobile-sidebar-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 20px 20px 16px;
      border-bottom: 1px solid var(--gray-light);
    }

    .mobile-sidebar-logo {
      font-family: 'DM Serif Display', serif;
      font-size: 1rem;
      color: var(--teal);
      text-decoration: none;
    }

    .mobile-sidebar-close {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: var(--gray-light);
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.15s;
    }

    .mobile-sidebar-close:hover { background: #d1d5db; }

    .mobile-sidebar-links {
      display: flex;
      flex-direction: column;
      padding: 12px 12px;
      flex: 1;
      overflow-y: auto;
      gap: 2px;
    }

    .mobile-sidebar-links a {
      text-decoration: none;
      color: var(--charcoal);
      font-size: 0.95rem;
      font-weight: 500;
      padding: 12px 14px;
      border-radius: 8px;
      transition: background 0.15s, color 0.15s;
    }

    .mobile-sidebar-links a:hover { background: var(--teal-light); color: var(--teal); }
    .mobile-sidebar-links a.active { background: var(--teal-light); color: var(--teal); font-weight: 600; }

    .mobile-sidebar-links .sidebar-cta {
      background: var(--red) !important;
      color: #fff !important;
      margin-top: 8px;
      text-align: center;
    }

    .mobile-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.4);
      z-index: 998;
      display: none;
      backdrop-filter: blur(1px);
    }

    .mobile-overlay.open { display: block; }

    @media (max-width: 900px) {
      .nav-links { display: none; }
      .hamburger { display: flex; }
    }

    @media (max-width: 900px) {
      nav { padding: 0 24px; }
      .nav-links { display: none; }
      .page-header { padding: 40px 24px 32px; }
      .sub-nav-inner { padding: 0 24px; }
      .section { padding: 48px 24px; }
      .section-divider { margin: 0 24px; }
      .insurance-grid { grid-template-columns: 1fr; }
      .body-parts-grid { grid-template-columns: repeat(2, 1fr); }
      .drug-grid { grid-template-columns: repeat(2, 1fr); }
      footer { padding: 24px; flex-direction: column; text-align: center; }
    }
    /* ── MEDICAL FORMS ── */


    /* ── LANGUAGE SECTION ── */
    .lang-intro-box {
      background: var(--teal-light);
      border: 1px solid #99d6d6;
      border-radius: 12px;
      padding: 16px 20px;
      display: flex;
      gap: 12px;
      align-items: flex-start;
      font-size: 0.875rem;
      color: #134e4e;
      line-height: 1.6;
      margin-bottom: 28px;
    }

    .lang-intro-box svg { flex-shrink: 0; margin-top: 2px; color: var(--teal); }

    .lang-select-wrap {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-bottom: 32px;
      flex-wrap: wrap;
    }

    .lang-select-label {
      font-size: 0.875rem;
      font-weight: 600;
      color: var(--charcoal);
      white-space: nowrap;
    }

    .lang-select {
      appearance: none;
      background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 14px center;
      border: 1.5px solid var(--gray-light);
      border-radius: 8px;
      padding: 10px 40px 10px 14px;
      font-family: 'DM Sans', sans-serif;
      font-size: 0.9rem;
      color: var(--charcoal);
      cursor: pointer;
      min-width: 220px;
      transition: border-color 0.15s;
    }

    .lang-select:focus { outline: none; border-color: var(--teal); }

    .lang-panel { display: none; }
    .lang-panel.active { display: block; }

    .lang-panel-inner {
      display: flex;
      flex-direction: column;
      gap: 28px;
    }

    /* Interpreter card */
    .lang-interpreter-card {
      background: #fff;
      border: 1.5px solid var(--gray-light);
      border-radius: 14px;
      padding: 20px 24px;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .lang-card-title {
      font-size: 0.68rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--gray);
      margin-bottom: 4px;
    }

    .lang-interpreter-row {
      display: flex;
      align-items: flex-start;
      gap: 14px;
      padding: 12px 0;
      border-bottom: 1px solid var(--gray-light);
    }

    .lang-interpreter-row:last-child { border-bottom: none; }

    .lang-interpreter-icon {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      background: var(--teal-light);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .lang-interpreter-info { flex: 1; }
    .lang-interpreter-name { font-weight: 600; font-size: 0.875rem; color: var(--charcoal); }
    .lang-interpreter-detail { font-size: 0.8rem; color: var(--gray); margin-top: 2px; line-height: 1.5; }
    .lang-interpreter-link { font-size: 0.8rem; color: var(--teal); font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; }
    .lang-interpreter-link:hover { text-decoration: underline; }

    /* Emergency numbers */
    .lang-emergency-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 12px;
    }

    .lang-emergency-item {
      background: var(--red-light);
      border: 1px solid #fca5a5;
      border-radius: 10px;
      padding: 14px 16px;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .lang-emergency-number {
      font-size: 1.4rem;
      font-weight: 700;
      color: var(--red);
      letter-spacing: 0.05em;
      font-family: 'DM Serif Display', serif;
    }

    .lang-emergency-label {
      font-size: 0.775rem;
      font-weight: 600;
      color: #7f1d1d;
    }

    .lang-emergency-native {
      font-size: 0.8rem;
      color: #991b1b;
      margin-top: 4px;
      line-height: 1.5;
    }

    /* Ask for interpreter box */
    .lang-interpreter-ask {
      background: #fefce8;
      border: 1.5px solid #fde68a;
      border-radius: 12px;
      padding: 18px 20px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .lang-ask-japanese {
      font-size: 1.5rem;
      color: var(--charcoal);
      font-family: 'DM Serif Display', serif;
      letter-spacing: 0.02em;
      line-height: 1.4;
    }

    .lang-ask-romaji {
      font-size: 0.875rem;
      color: var(--gray);
      font-style: italic;
    }

    .lang-ask-native {
      font-size: 0.875rem;
      color: #92400e;
      font-weight: 500;
      border-top: 1px solid #fde68a;
      padding-top: 10px;
    }

    /* Phrases table */
    .lang-phrase-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.85rem;
    }

    .lang-phrase-table thead tr {
      background: var(--teal-light);
    }

    .lang-phrase-table th {
      padding: 10px 12px;
      text-align: left;
      font-weight: 600;
      color: var(--teal-dark);
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .lang-phrase-table th:first-child { border-radius: 8px 0 0 8px; }
    .lang-phrase-table th:last-child { border-radius: 0 8px 8px 0; }

    .lang-phrase-table td {
      padding: 10px 12px;
      border-bottom: 1px solid var(--gray-light);
      vertical-align: top;
      line-height: 1.5;
    }

    .lang-phrase-table tr:last-child td { border-bottom: none; }
    .lang-phrase-table tr:hover td { background: #f9fafb; }

    .lang-phrase-table .col-native { color: var(--charcoal); font-weight: 500; }
    .lang-phrase-table .col-ja { color: var(--charcoal); font-family: sans-serif; }
    .lang-phrase-table .col-en { color: var(--gray); font-size: 0.8rem; }

    /* Print card */
    .lang-print-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: var(--teal);
      color: #fff;
      padding: 10px 20px;
      border-radius: 8px;
      border: none;
      font-family: 'DM Sans', sans-serif;
      font-size: 0.875rem;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.15s;
      text-decoration: none;
    }

    .lang-print-btn:hover { background: var(--teal-dark); }

    /* Print styles for phrase card */
    @media print {
      body > *:not(#print-card-area) { display: none !important; }
      #print-card-area { display: block !important; }
      #print-card-area .print-card {
        width: 100%;
        font-family: sans-serif;
        font-size: 11pt;
      }
      #print-card-area .print-card table {
        width: 100%;
        border-collapse: collapse;
      }
      #print-card-area .print-card td, #print-card-area .print-card th {
        border: 1px solid #ccc;
        padding: 6px 8px;
        vertical-align: top;
      }
      #print-card-area .print-card thead { background: #e0f2f2; }
      #print-card-area .print-card h2 { font-size: 14pt; margin-bottom: 6px; }
      #print-card-area .print-card p { font-size: 9pt; margin-bottom: 10px; }
    }

    #print-card-area { display: none; }

    @media (max-width: 600px) {
      .lang-emergency-grid { grid-template-columns: 1fr 1fr; }
      .lang-phrase-table .col-en { display: none; }
    }

  
  /* =====================================================
     MOBILE-ONLY FIXES  (max-width: 900px)
     Zero effect on desktop — all rules inside media query
     ===================================================== */
  @media (max-width: 900px) {

    /* 1. Emergency Info button in mobile nav hamburger sidebar */
    .mobile-sidebar-links .sidebar-cta {
      display: block !important;
      background: var(--red, #dc2626) !important;
      color: #fff !important;
      border-radius: 8px !important;
      padding: 12px 16px !important;
      margin-top: 12px !important;
      text-align: center !important;
      font-weight: 600 !important;
    }

    /* 2. Footer — full width, stacked, no side padding bleed */
    footer {
      width: 100%;
      box-sizing: border-box;
      padding: 24px 20px !important;
      flex-direction: column !important;
      align-items: flex-start !important;
      gap: 12px !important;
    }

    /* 3. Submit-a-correction bar — full width, no overflow */
    .correction-bar {
      width: 100%;
      box-sizing: border-box;
      padding: 16px 20px !important;
    }
    .correction-bar-inner {
      flex-direction: column !important;
      align-items: flex-start !important;
      gap: 10px !important;
    }
    .btn-correction {
      width: 100% !important;
      text-align: center !important;
    }

    /* 4. Submit-a-correction MODAL — constrained, scrollable, not full-screen */
    .modal-overlay {
      padding: 16px !important;
      align-items: flex-end !important;
    }
    .modal {
      width: 100% !important;
      max-width: 100% !important;
      max-height: 88vh !important;
      overflow-y: auto !important;
      -webkit-overflow-scrolling: touch !important;
      border-radius: 20px 20px 0 0 !important;
      padding: 24px 20px !important;
    }

  }


    /* Prevent ANY element from overflowing the viewport width on mobile */
    body, html { overflow-x: hidden !important; max-width: 100vw !important; }
    img, table, iframe, video, pre { max-width: 100% !important; }
    .section { padding-left: 20px !important; padding-right: 20px !important; }
    .sub-nav-inner { padding-left: 16px !important; padding-right: 16px !important; }
    .page-header { padding-left: 20px !important; padding-right: 20px !important; }

  /* =====================================================
     HEALTHCARE IN JAPAN — MOBILE LAYOUT FIXES
     ===================================================== */
  @media (max-width: 900px) {

    /* Tab nav — horizontally scrollable, don't wrap */
    .page-tabs {
      overflow-x: auto !important;
      -webkit-overflow-scrolling: touch !important;
      flex-wrap: nowrap !important;
      padding-bottom: 4px !important;
    }
    .page-tab {
      white-space: nowrap !important;
      flex-shrink: 0 !important;
    }

    /* Two-column content layouts → single column */
    .content-grid,
    .two-col,
    .tab-content-inner,
    .lang-panel-inner {
      grid-template-columns: 1fr !important;
      flex-direction: column !important;
    }

    /* Phrase tables — horizontally scrollable */
    .lang-phrase-table {
      display: block !important;
      overflow-x: auto !important;
      -webkit-overflow-scrolling: touch !important;
      font-size: 0.78rem !important;
    }

    /* Language selector dropdown — full width */
    #langSelect,
    select[onchange*="lang"],
    .lang-select {
      width: 100% !important;
      font-size: 1rem !important;
    }

    /* Step cards in enrollment section — single column */
    .steps-row,
    .enrollment-steps {
      flex-direction: column !important;
      align-items: stretch !important;
    }

    /* Page header text sizing */
    .page-header h1 {
      font-size: 1.75rem !important;
    }

  }
  
  /* ── INLINE GRID MOBILE OVERRIDES ──
     Inline styles can't be overridden by class selectors normally,
     but these helper classes sit alongside inline styles and we use
     !important to win on mobile */
  @media (max-width: 700px) {

    /* Single-column on mobile */
    .mobile-single-col {
      grid-template-columns: 1fr !important;
      gap: 20px !important;
    }

    /* 2x2 grid on mobile (was 4-col) */
    .mobile-two-col {
      grid-template-columns: 1fr 1fr !important;
      gap: 12px !important;
    }

    /* Section padding — don't let content touch edges */
    .section {
      padding-left: 20px !important;
      padding-right: 20px !important;
    }

    /* Tip/callout boxes — don't overflow */
    [style*="background:#fff8f0"],
    [style*="background: #fff8f0"],
    [style*="background:var(--teal-light)"],
    [style*="background: var(--teal-light)"] {
      box-sizing: border-box !important;
      max-width: 100% !important;
    }

    /* Flow steps: the sticky sidebar on desktop should stack below on mobile */
    .flow-steps-sidebar,
    [style*="position:sticky"],
    [style*="position: sticky"] {
      position: relative !important;
      top: auto !important;
    }

    /* Vocabulary table cards — full width */
    [style*="border:1px solid"][style*="border-radius"] {
      box-sizing: border-box !important;
      max-width: 100% !important;
    }

    /* Section label/title spacing */
    .section-title { font-size: 1.6rem !important; }
    .section-sub { font-size: 0.875rem !important; }

    /* Keep enrollment step text readable in 2-col */
    .mobile-two-col > div {
      padding: 12px !important;
      font-size: 0.82rem !important;
    }

  }
