/* ============================================
   Service Bond Explorer — Styles
   Career Plan B brand system · Light mode
   Matches MBBS True Cost Calculator design DNA
   ============================================ */

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

/* ─── Design Tokens ─── */
:root {
    /* Career Plan B Brand */
    --brand:            #3DB55E;
    --brand-dark:       #2A9444;
    --brand-dim:        #EBF7EF;

    /* Surfaces */
    --surface:          #F2F4F8;
    --white:            #FFFFFF;
    --surface-alt:      #E8EBF3;

    /* Ink scale */
    --ink:              #111827;
    --ink-2:            #374151;
    --ink-3:            #6B7280;
    --ink-4:            #9CA3AF;

    /* Borders */
    --hairline:         #DDE1EA;
    --hairline-2:       #C7CDD8;

    /* Scenario accents (for comparison) */
    --accent-a:         #166534;
    --accent-a-light:   #DCFCE7;
    --accent-b:         #9A3412;
    --accent-b-light:   #FFF7ED;

    /* Semantic */
    --danger:           #991B1B;
    --danger-light:     #FEF2F2;
    --success:          #166534;
    --warning:          #92400E;
    --warning-light:    #FFFBEB;

    /* Map colours (muted, institutional) */
    --map-no-bond:      #3DB55E;
    --map-1yr:          #D4A843;
    --map-2yr:          #C47F2B;
    --map-3yr:          #991B1B;
    --map-no-data:      #D1D5DB;
    --map-no-college:   #E5E7EB;
    --map-hover:        rgba(17, 24, 39, 0.08);

    /* Layout */
    --font:             'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --container-max:    1080px;
    --radius-sm:        5px;
    --radius-md:        8px;
    --radius-lg:        12px;
}

/* ─── Base ─── */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    background: var(--surface);
    color: var(--ink-2);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 28px;
}

a {
    color: var(--brand-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    font-size: 1rem;
    font-weight: 800;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo:hover {
    text-decoration: none;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-tool-link {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--ink-3);
    text-decoration: none;
    transition: color 0.15s;
}

.header-tool-link:hover {
    color: var(--brand-dark);
    text-decoration: none;
}

/* ─── Page Header ─── */
.page-header {
    background: var(--white);
    border-bottom: 1px solid var(--hairline);
    padding: 80px 0 64px;
    text-align: center;
}

.eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-dark);
    margin-bottom: 18px;
}

.page-header h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 22px;
}

.header-sub {
    font-size: 1.05rem;
    color: var(--ink-3);
    max-width: 600px;
    margin: 0 auto 24px;
    line-height: 1.65;
}

.header-note {
    font-size: 0.75rem;
    color: var(--ink-4);
    letter-spacing: 0.01em;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--white);
    background: var(--brand);
    border: none;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
}

.header-cta:hover {
    background: var(--brand-dark);
    text-decoration: none;
}

.header-cta svg {
    flex-shrink: 0;
}

/* ─── Map Section ─── */
.map-section {
    padding: 56px 0;
    background: var(--white);
    border-bottom: 1px solid var(--hairline);
}

.map-section h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 8px;
}

.map-sub {
    font-size: 0.92rem;
    color: var(--ink-4);
    margin-bottom: 32px;
}

.map-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.map-container {
    flex: 1;
    max-width: 540px;
}

.map-container svg {
    width: 100%;
    height: auto;
}

.map-container svg path {
    stroke: var(--white);
    stroke-width: 0.5;
    cursor: pointer;
    transition: opacity 0.15s, filter 0.15s;
}

.map-container svg path:hover {
    opacity: 0.8;
    filter: brightness(0.92);
}

.map-container svg path.active {
    stroke: var(--ink);
    stroke-width: 1.5;
}

.map-legend {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.map-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--ink-3);
    font-weight: 500;
}

.map-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Map tooltip */
.map-tooltip {
    position: fixed;
    z-index: 200;
    background: var(--ink);
    color: var(--white);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.1s;
    max-width: 240px;
    line-height: 1.5;
}

.map-tooltip.visible {
    opacity: 1;
}

.map-tooltip-name {
    font-weight: 700;
    margin-bottom: 2px;
}

.map-tooltip-detail {
    color: rgba(255,255,255,0.7);
    font-size: 0.7rem;
}

/* ─── Explorer Section ─── */
.explorer-section {
    padding: 56px 0;
    background: var(--surface);
}

.explorer-section h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 8px;
}

.explorer-sub {
    font-size: 0.92rem;
    color: var(--ink-4);
    margin-bottom: 28px;
}

/* Search bar */
.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: center;
}

.search-input-wrap {
    position: relative;
    flex: 1;
    max-width: 360px;
}

.search-input-wrap svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-4);
    pointer-events: none;
}

.search-input {
    width: 100%;
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    padding: 10px 12px 10px 38px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.search-input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 2px var(--brand-dim);
}

.search-input::placeholder {
    color: var(--ink-4);
}

/* Filter pills */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
}

.filter-pill {
    font-family: var(--font);
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--ink-3);
    background: var(--white);
    border: 1px solid var(--hairline);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    line-height: 1.4;
}

.filter-pill:hover {
    border-color: var(--brand);
    color: var(--brand-dark);
}

.filter-pill.active {
    background: var(--brand-dim);
    border-color: var(--brand);
    color: var(--brand-dark);
    font-weight: 600;
}

/* Results count */
.results-count {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--ink-4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

/* Explorer table */
.explorer-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    background: var(--white);
}

.explorer-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.explorer-table thead {
    background: var(--surface);
}

.explorer-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--ink-4);
    border-bottom: 1px solid var(--hairline);
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition: color 0.15s;
}

.explorer-table th:hover {
    color: var(--ink-2);
}

.explorer-table th .sort-icon {
    display: inline-block;
    margin-left: 4px;
    opacity: 0.3;
    font-size: 0.6rem;
}

.explorer-table th.sorted .sort-icon {
    opacity: 1;
}

.explorer-table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--hairline);
    vertical-align: middle;
    color: var(--ink-2);
}

.explorer-table tr:last-child td {
    border-bottom: none;
}

.explorer-table tbody tr {
    cursor: pointer;
    transition: background 0.1s;
}

.explorer-table tbody tr:hover {
    background: var(--surface);
}

.explorer-table tbody tr.active-row {
    background: var(--brand-dim);
}

.state-name-cell {
    font-weight: 600;
    color: var(--ink);
}

.bond-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.bond-badge.bond-yes {
    background: var(--danger-light);
    color: var(--danger);
}

.bond-badge.bond-no {
    background: var(--brand-dim);
    color: var(--brand-dark);
}

.bond-badge.bond-unknown {
    background: var(--surface);
    color: var(--ink-4);
}

.penalty-value {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}

.confidence-badge {
    display: inline-block;
    font-size: 0.67rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.confidence-high {
    background: var(--brand-dim);
    color: var(--brand-dark);
}

.confidence-medium {
    background: var(--warning-light);
    color: var(--warning);
}

.confidence-low {
    background: var(--danger-light);
    color: var(--danger);
}

.no-results-row td {
    text-align: center;
    padding: 40px 16px;
    color: var(--ink-4);
    font-style: italic;
}

/* ─── State Detail Panel ─── */
.detail-section {
    padding: 56px 0;
    background: var(--white);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    display: none;
}

.detail-section.visible {
    display: block;
    animation: fadeInUp 0.25s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--hairline);
}

.detail-header-text h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 6px;
}

.detail-header-status {
    font-size: 0.82rem;
    color: var(--ink-3);
}

.detail-close {
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink-3);
    background: var(--surface);
    border: 1px solid var(--hairline);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
    flex-shrink: 0;
}

.detail-close:hover {
    border-color: var(--brand);
    color: var(--brand-dark);
}

/* Summary grid */
.detail-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1px;
    background: var(--hairline);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 40px;
}

.detail-summary-item {
    background: var(--white);
    padding: 20px;
}

.detail-summary-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-4);
    margin-bottom: 6px;
}

.detail-summary-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.detail-summary-value.value-danger {
    color: var(--danger);
}

.detail-summary-value.value-success {
    color: var(--brand-dark);
}

/* Plain English section */
.detail-block {
    margin-bottom: 36px;
}

.detail-block-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-4);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--hairline);
}

.plain-english-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.plain-english-item {
    padding: 16px 20px;
    background: var(--surface);
    border-radius: var(--radius-md);
}

.plain-english-item h4 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}

.plain-english-item p {
    font-size: 0.85rem;
    color: var(--ink-3);
    line-height: 1.7;
}

/* Important notes */
.notes-box {
    border-left: 3px solid var(--brand);
    background: var(--surface);
    padding: 20px 24px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-bottom: 36px;
}

.notes-box p {
    font-size: 0.85rem;
    color: var(--ink-2);
    line-height: 1.75;
    margin-bottom: 8px;
}

.notes-box p:last-child {
    margin-bottom: 0;
}

.notes-box strong {
    color: var(--ink);
    font-weight: 600;
}

/* Warning notes */
.warning-box {
    border-left: 3px solid var(--danger);
    background: var(--danger-light);
    padding: 18px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 36px;
}

.warning-box p {
    font-size: 0.85rem;
    color: var(--ink-2);
    line-height: 1.7;
}

.warning-box strong {
    color: var(--danger);
    font-weight: 700;
}

/* ─── Timeline ─── */
.timeline {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 36px;
    padding: 24px 0;
    overflow-x: auto;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
    position: relative;
    flex: 1;
}

.timeline-step::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--hairline-2);
    z-index: 0;
}

.timeline-step:last-child::after {
    display: none;
}

.timeline-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--hairline-2);
    z-index: 1;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.timeline-step.active .timeline-dot {
    background: var(--brand);
    border-color: var(--brand);
}

.timeline-step.bond-step .timeline-dot {
    background: var(--danger);
    border-color: var(--danger);
}

.timeline-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ink);
    text-align: center;
    margin-bottom: 3px;
}

.timeline-sublabel {
    font-size: 0.65rem;
    color: var(--ink-4);
    text-align: center;
}

/* Sources */
.sources-list {
    list-style: none;
    padding: 0;
}

.sources-list li {
    font-size: 0.75rem;
    color: var(--ink-4);
    padding: 6px 0;
    border-bottom: 1px solid var(--hairline);
    padding-left: 12px;
    position: relative;
}

.sources-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--ink-4);
}

.sources-list li:last-child {
    border-bottom: none;
}

/* Cross-link */
.cross-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand-dark);
    margin-top: 16px;
    text-decoration: none;
}

.cross-link:hover {
    text-decoration: underline;
}

.cross-link svg {
    flex-shrink: 0;
}

/* ─── Compare Section ─── */
.compare-section {
    padding: 56px 0;
    background: var(--surface);
}

.compare-section h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 8px;
}

.compare-sub {
    font-size: 0.92rem;
    color: var(--ink-4);
    margin-bottom: 28px;
}

.compare-selectors {
    display: grid;
    grid-template-columns: 1fr 56px 1fr;
    gap: 0;
    align-items: center;
    margin-bottom: 32px;
}

.compare-select-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.compare-select-wrap label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--ink-4);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.compare-select-wrap select {
    width: 100%;
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    padding: 10px 32px 10px 12px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.compare-select-wrap select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 2px var(--brand-dim);
}

.vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 22px;
}

.vs-divider span {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--ink-4);
    background: var(--white);
    border: 1px solid var(--hairline);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Comparison table */
.compare-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    background: var(--white);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.compare-table thead {
    background: var(--surface);
}

.compare-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--ink-4);
    border-bottom: 1px solid var(--hairline);
}

.compare-table th.col-a { color: var(--accent-a); }
.compare-table th.col-b { color: var(--accent-b); }

.compare-table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--hairline);
    vertical-align: middle;
}

.compare-table tr:last-child td {
    border-bottom: none;
}

.compare-table tbody tr:hover {
    background: var(--surface);
}

.compare-table .row-label {
    color: var(--ink-2);
    font-weight: 600;
    min-width: 180px;
}

.compare-table .val-a {
    color: var(--accent-a);
    font-weight: 600;
}

.compare-table .val-b {
    color: var(--accent-b);
    font-weight: 600;
}

.compare-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--ink-4);
    font-size: 0.875rem;
    background: var(--white);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
}

/* ─── Accordion Section ─── */
.accordion-section {
    padding: 80px 0;
    background: var(--white);
    border-top: 1px solid var(--hairline);
}

.accordion-section h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 32px;
}

.accordion {
    border-top: 1px solid var(--hairline);
}

.accordion-item {
    border-bottom: 1px solid var(--hairline);
}

.accordion-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    background: none;
    border: none;
    color: var(--ink);
    font-family: var(--font);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    gap: 16px;
    transition: color 0.15s;
}

.accordion-trigger:hover {
    color: var(--brand-dark);
}

.accordion-icon {
    color: var(--ink-4);
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.accordion-item.open .accordion-trigger {
    color: var(--brand-dark);
}

.accordion-item.open .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    padding: 0 0 22px;
    color: var(--ink-3);
    font-size: 0.875rem;
    line-height: 1.75;
}

.accordion-item.open .accordion-content {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.accordion-content p {
    margin-bottom: 12px;
}

.accordion-content p:last-child {
    margin-bottom: 0;
}

.accordion-content strong {
    color: var(--ink);
    font-weight: 600;
}

/* ─── Advisory / CTA ─── */
.advisory-section {
    padding: 88px 0;
    background: var(--surface);
    border-top: 1px solid var(--hairline);
}

.advisory-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.advisory-text .eyebrow {
    margin-bottom: 16px;
}

.advisory-text h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 20px;
    line-height: 1.3;
}

.advisory-text p {
    font-size: 0.9rem;
    color: var(--ink-3);
    line-height: 1.72;
    margin-bottom: 12px;
}

.advisory-anchor {
    font-size: 0.95rem;
    color: var(--ink-2);
    line-height: 1.7;
    margin-bottom: 24px;
}

.advisory-specifics {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.advisory-specifics li {
    font-size: 0.875rem;
    color: var(--ink-3);
    line-height: 1.7;
    padding-left: 16px;
    border-left: 2px solid var(--brand);
}

.advisory-specifics li strong {
    display: block;
    color: var(--ink);
    font-weight: 600;
    margin-bottom: 3px;
}

/* Consultation form */
.consultation-form {
    background: var(--white);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-row {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--ink-4);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.req {
    color: var(--danger);
}

.consultation-form input[type="text"],
.consultation-form input[type="tel"],
.consultation-form input[type="email"],
.consultation-form select {
    width: 100%;
    font-family: var(--font);
    font-size: 0.875rem;
    padding: 9px 12px;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    color: var(--ink);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.consultation-form input::placeholder {
    color: var(--ink-4);
}

.consultation-form input:focus,
.consultation-form select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 2px var(--brand-dim);
}

.consultation-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 32px;
    background-color: var(--surface);
    cursor: pointer;
}

.cta-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    background: var(--brand);
    padding: 13px 24px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 6px;
}

.cta-primary:hover:not(:disabled) {
    background: var(--brand-dark);
}

.cta-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.trust-copy {
    font-size: 0.82rem;
    color: var(--ink-3);
    text-align: center;
    margin: 12px 0 0;
    line-height: 1.5;
}

.form-success-message {
    background: var(--white);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 40px 24px;
    text-align: center;
}

.success-icon {
    width: 44px;
    height: 44px;
    background: var(--brand-dim);
    color: var(--brand-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 auto 16px;
}

.form-success-message h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}

.form-success-message p {
    font-size: 0.875rem;
    color: var(--ink-3);
    margin: 0;
    line-height: 1.6;
}

/* ─── Footer ─── */
.site-footer {
    border-top: 1px solid var(--hairline);
    padding: 44px 0;
    background: var(--white);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 48px;
}

.footer-brand p {
    font-size: 0.75rem;
    color: var(--ink-4);
    margin-top: 4px;
}

.footer-logo {
    pointer-events: auto;
    text-decoration: none;
}

.footer-disclaimer {
    max-width: 560px;
}

.footer-disclaimer p {
    font-size: 0.7rem;
    color: var(--ink-4);
    line-height: 1.65;
    margin-bottom: 6px;
}

.footer-disclaimer p:last-child {
    margin-bottom: 0;
}

/* ─── Utilities ─── */
.text-success { color: var(--success) !important; }
.text-danger  { color: var(--danger) !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ─── Responsive: Tablet (900px) ─── */
@media (max-width: 900px) {
    .map-wrapper {
        flex-direction: column;
        gap: 24px;
    }

    .map-container {
        max-width: 100%;
    }

    .map-legend {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
    }

    .advisory-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .compare-selectors {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .vs-divider {
        padding-top: 0;
        padding: 4px 0;
    }

    .plain-english-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Responsive: Mobile (768px) ─── */
@media (max-width: 768px) {
    .page-header {
        padding: 52px 0 44px;
    }

    .detail-header {
        flex-direction: column;
        gap: 16px;
    }

    .detail-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        flex-direction: column;
        gap: 28px;
    }

    .footer-disclaimer {
        max-width: none;
    }

    .timeline {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .timeline-step {
        min-width: 100px;
    }
}

/* ─── Responsive: Small Mobile (600px) ─── */
@media (max-width: 600px) {
    .container {
        padding: 0 18px;
    }

    .page-header h1 {
        font-size: 1.9rem;
    }

    .detail-summary-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-row .form-group {
        margin-bottom: 14px;
    }

    .search-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input-wrap {
        max-width: none;
    }

    .filter-bar {
        gap: 4px;
    }

    .filter-pill {
        font-size: 0.7rem;
        padding: 5px 10px;
    }
}
