/**
 * Ripon Assessment Review - Modern Civic Design System
 * Mobile-First, Accessible, High Contrast, Rich Aesthetics
 */

:root {
    --bg-main: #09090b;
    --bg-card: #141417;
    --bg-card-hover: #1c1c22;
    --bg-input: #0e0e11;
    --bg-subtle: #18181b;
    --border-color: #27272a;
    --border-light: #3f3f46;
    --border-highlight: #dc2626;

    --primary: #dc2626;
    --primary-hover: #b91c1c;
    --primary-light: #ef4444;
    --primary-glow: rgba(220, 38, 38, 0.25);

    --accent: #ef4444;
    --accent-hover: #dc2626;
    --accent-green: #22c55e;
    
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #e4e4e7;

    --text-main: #ffffff;
    --text-secondary: #e4e4e7;
    --text-muted: #a1a1aa;
    --text-subtle: #71717a;

    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -4px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.7), 0 8px 10px -6px rgba(0, 0, 0, 0.7);

    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
    max-width: 100%;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

main {
    flex: 1;
    max-width: 100%;
    overflow-x: clip;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: #93c5fd;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Alert Bar */
.civic-alert-bar {
    background: linear-gradient(90deg, #18181b, #09090b);
    border-bottom: 1px solid #27272a;
    color: #f4f4f5;
    font-size: 0.875rem;
    padding: 10px 0;
}

.civic-alert-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-danger { background: #dc2626; color: #ffffff; }
.badge-warning { background: #d97706; color: #ffffff; }
.badge-success { background: #16a34a; color: #ffffff; }
.badge-info { background: #27272a; color: #ffffff; border: 1px solid #3f3f46; }
.badge-muted { background: #18181b; color: #a1a1aa; border: 1px solid #27272a; }

.learn-more-link {
    color: #ef4444;
    font-weight: 600;
    text-decoration: underline;
}

/* Header & Nav */
.site-header {
    background: rgba(9, 9, 11, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 70px;
    position: relative;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    min-width: 0;
}

.site-nav--mobile {
    display: none;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
    min-width: 0;
    line-height: 0;
}

.site-brand-logo {
    display: block;
    height: 36px;
    width: auto;
    max-width: min(200px, 48vw);
    object-fit: contain;
    object-position: left center;
}

.brand-crest {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.brand-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
}

.nav-link {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-link-accent {
    color: #fecaca !important;
    border: 1px solid rgba(239, 68, 68, 0.35);
    background: rgba(220, 38, 38, 0.12);
}

.nav-link-accent:hover,
.nav-link-accent.active {
    background: rgba(220, 38, 38, 0.22);
    color: #ffffff !important;
}

.nav-link-compact {
    font-size: 0.88rem;
    padding: 8px 10px;
}

.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.mobile-nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.mobile-nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dropdown-chevron {
    font-size: 0.65rem;
    transition: transform var(--transition-fast);
}

.nav-dropdown.open .dropdown-chevron {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    list-style: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 260px;
    background: #141417;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 6px 0;
    z-index: 1100;
}

@media (min-width: 769px) {
    .nav-dropdown:hover .dropdown-menu,
    .nav-dropdown:focus-within .dropdown-menu {
        display: block;
    }
}

.nav-dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 10px 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

/* Nav Backdrop (mobile drawer) */
.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(6px);
    z-index: 1098;
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.nav-backdrop.show {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

body.nav-open {
    overflow: hidden;
}

.mobile-nav-drawer-head {
    display: none;
}

.mobile-nav-close {
    display: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition-normal);
    text-decoration: none;
    line-height: 1.4;
}

.btn:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #ffffff;
    border: 1px solid #ef4444;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.5);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #18181b;
    border: 1px solid #3f3f46;
    color: #f4f4f5;
}

.btn-secondary:hover {
    background: #27272a;
    border-color: #71717a;
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #ffffff;
    border: 1px solid #ef4444;
}

.btn-danger:hover {
    background: #b91c1c;
    color: #ffffff;
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

/* Home guide strip (below global nav) */
.home-guide-strip {
    padding: 28px 0 8px;
    background: linear-gradient(180deg, rgba(220, 38, 38, 0.14) 0%, transparent 100%);
    border-bottom: 1px solid rgba(220, 38, 38, 0.2);
}

.home-guide-inner {
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}

.home-promo-link {
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(220, 38, 38, 0.35);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    max-width: 100%;
}

.home-promo-link:hover {
    transform: translateY(-2px);
    border-color: rgba(239, 68, 68, 0.55);
    box-shadow: 0 14px 40px rgba(220, 38, 38, 0.22);
}

.home-promo-link img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.home-promo-link--hero {
    margin: 18px auto 22px;
    max-width: min(920px, 100%);
}

.home-promo-link--map {
    margin: 0 auto 22px;
    max-width: min(920px, 100%);
}

.home-promo-link--dispute-tracker {
    margin: 28px auto 0;
    max-width: min(960px, 100%);
    display: block;
}

.home-promo-link--dispute {
    margin: 0 auto 28px;
    max-width: min(960px, 100%);
}

@media (max-width: 640px) {
    .home-promo-link--hero {
        margin: 14px auto 18px;
        border-radius: 10px;
    }

    .home-promo-link--map,
    .home-promo-link--dispute {
        margin-bottom: 18px;
        border-radius: 10px;
    }
}

.civic-pill-guide {
    background: rgba(220, 38, 38, 0.18);
    border-color: rgba(239, 68, 68, 0.45);
    color: #fecaca;
    box-shadow: 0 0 24px rgba(220, 38, 38, 0.15);
}

a.home-guide-pill-link {
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

a.home-guide-pill-link:hover {
    transform: translateY(-1px);
    background: rgba(220, 38, 38, 0.28);
    box-shadow: 0 0 28px rgba(220, 38, 38, 0.25);
    color: #fff;
}

.home-guide-title {
    font-size: clamp(1.85rem, 4vw, 2.65rem);
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.home-guide-lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

.hero-banner-compact {
    margin-top: 36px;
    margin-bottom: 0;
}

/* Hero Section */
.hero-section {
    padding: 24px 0 60px;
    background: radial-gradient(circle at top right, rgba(220, 38, 38, 0.12), transparent 60%),
                radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.02), transparent 50%);
}

.hero-banner {
    text-align: center;
    margin-bottom: 48px;
}

.hero-banner .civic-pill {
    margin-left: auto;
    margin-right: auto;
}

.hero-banner .hero-lead {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.civic-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(220, 38, 38, 0.35);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    color: #fca5a5;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 8px #dc2626;
}

.hero-title {
    font-size: 2.8rem;
    letter-spacing: -1px;
    margin-bottom: 18px;
}

.highlight-text {
    background: linear-gradient(135deg, #ffffff 40%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 580px;
}

/* Three Questions Grid */
.three-questions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 36px;
    text-align: left;
}

.question-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.question-card:hover {
    transform: translateX(4px);
    border-color: var(--border-highlight);
}

.q-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.q-body h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.q-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Hero Stats Banner */
.hero-stats-banner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    background: #141417;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 24px;
    text-align: center;
}

.hero-stats-banner.hero-stats-top {
    margin-bottom: 28px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.stat-sublabel {
    font-size: 0.7rem;
    color: #71717a;
    margin-top: 4px;
    line-height: 1.35;
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
}

.review-assessment-promo-link {
    display: block;
    margin: 0 0 20px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(220, 38, 38, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.review-assessment-promo-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(220, 38, 38, 0.25);
}

.review-assessment-promo-link img {
    display: block;
    width: 100%;
    height: auto;
}

.citizen-property-card .review-assessment-promo-link {
    margin-bottom: 12px;
}

/* Checker Card */
.hero-checker-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-xl);
    max-width: 820px;
    margin: 0 auto 28px;
}

.assessment-form-card {
    border-color: rgba(239, 68, 68, 0.25);
    background: linear-gradient(165deg, #16161a 0%, #121218 100%);
    position: relative;
    overflow: hidden;
}

.assessment-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #dc2626, #f97316, #dc2626);
}

.form-card-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.form-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    flex-shrink: 0;
}

.form-card-header h2 {
    font-size: 1.55rem;
    margin: 0 0 6px;
}

.form-card-header p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.55;
}

.form-notice {
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.form-notice-warning {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.35);
    color: #fde68a;
}

.hero-checker-card .card-header h2 {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.hero-checker-card .card-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.checker-form .assessment-split-box {
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
}

.checker-form .assessment-split-box.highlight-box {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(220, 38, 38, 0.06);
}

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #e4e4e7;
}

.input-field {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.help-text {
    display: block;
    color: var(--text-subtle);
    font-size: 0.775rem;
    margin-top: 5px;
}

.autocomplete-wrapper {
    position: relative;
}

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #141417;
    border: 1px solid #dc2626;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    z-index: 100;
    max-height: 240px;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.autocomplete-item {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #27272a;
    font-size: 0.9rem;
}

.autocomplete-item:hover {
    background: #dc2626;
    color: #ffffff;
}

.autocomplete-item strong {
    color: #ef4444;
}

.assessment-split-box {
    background: #0e0e11;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 16px;
}

.highlight-box {
    border-color: rgba(220, 38, 38, 0.4);
    background: rgba(220, 38, 38, 0.06);
}

.split-heading {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #a1a1aa;
    margin-bottom: 10px;
}

.inputs-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 10px;
}

.inputs-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 768px) {
    .inputs-row-3,
    .inputs-row-2 {
        grid-template-columns: 1fr;
    }
}

.submission-attribution-box {
    background: #0e0e11;
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.submission-attribution-title {
    display: block;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.submission-mode-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 16px;
}

.submission-mode-options label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    color: #e4e4e7;
    line-height: 1.45;
}

.submission-privacy-guarantee {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 14px;
}

.submission-account-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 769px) {
    .submission-account-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.submission-account-fields {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #27272a;
}

.total-highlight {
    font-weight: 700;
    color: #ffffff;
    border-color: rgba(220, 38, 38, 0.5);
}

.currency-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.currency-input-wrap input {
    padding-left: 26px;
}

.instant-calc-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.preview-metric {
    display: flex;
    flex-direction: column;
}

.preview-label {
    font-size: 0.725rem;
    color: var(--text-subtle);
}

.preview-val {
    font-weight: 700;
    font-size: 1.1rem;
}

.highlight-danger {
    color: #fbbf24;
}

/* Action Cards Section */
.section {
    padding: 70px 0;
}

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

.section-title {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 680px;
    margin: 0 auto 40px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.action-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all var(--transition-normal);
}

.action-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.action-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.action-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.action-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex: 1;
}

.disclosure-box {
    display: flex;
    gap: 14px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 24px;
    color: var(--text-muted);
    font-size: 0.875rem;
    align-items: flex-start;
}

.disclosure-icon {
    font-size: 1.4rem;
    line-height: 1;
}

/* Collective Action Section */
.collective-action-section {
    background: linear-gradient(180deg, transparent, rgba(37, 99, 235, 0.08));
}

.collective-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px 36px;
    max-width: 860px;
    margin: 0 auto;
}

.collective-title {
    font-size: 2rem;
    margin-bottom: 14px;
}

.collective-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 680px;
    margin: 0 auto 28px;
}

.collective-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.privacy-guarantee {
    color: var(--accent);
    font-size: 0.9rem;
}

.collective-flier-cta {
    margin-top: 28px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.collective-flier-hero-link {
    display: block;
    max-width: 960px;
    margin: 0 auto 20px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(220, 38, 38, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.collective-flier-hero-link:hover {
    transform: translateY(-2px);
    border-color: rgba(220, 38, 38, 0.55);
    box-shadow: 0 20px 48px rgba(220, 38, 38, 0.15);
}

.collective-flier-hero-img {
    display: block;
    width: 100%;
    height: auto;
}

.collective-flier-btn {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.88rem;
}

.collective-flier-note {
    max-width: 620px;
    margin: 16px auto 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* Calculator Dashboard Styles */
.calculator-page-wrapper {
    padding: 40px 0 80px;
}

.calc-tabs-bar {
    margin-bottom: 24px;
}

.calc-tabs-bar .layer-toggle-group {
    flex-wrap: wrap;
}

a.btn-layer {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    line-height: 1.3;
}

a.btn-layer:not(.active):hover {
    color: #ffffff;
}

.calc-tab-panel {
    animation: calcTabFade 0.2s ease;
}

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

.calc-selector-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.calc-selector-bar label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.calc-selector-bar .input-field {
    flex: 1;
    min-width: 220px;
}

.calc-info-banner {
    margin-bottom: 20px;
    padding: 14px 18px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: var(--radius-md);
    color: #cbd5e1;
    font-size: 0.92rem;
}

.calc-info-banner a {
    color: #38bdf8;
}

.ward-compare-banner {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.25);
}

.calc-context-label {
    margin: 0 0 18px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.ward-stats-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.ward-stat-chip {
    padding: 8px 14px;
    background: #141417;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.ward-stat-chip strong {
    color: #ffffff;
}

.calc-empty-state {
    text-align: center;
    padding: 48px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.calc-empty-state h3 {
    margin-bottom: 10px;
}

.calc-empty-state p {
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto;
}

.calc-empty-sub {
    margin-top: 8px !important;
    font-size: 0.88rem;
}

.guest-save-cta {
    margin-bottom: 24px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(34, 197, 94, 0.08));
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
}

.guest-save-cta-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    align-items: start;
}

.guest-save-cta-copy strong {
    display: block;
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 8px;
}

.guest-save-cta-copy p {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.88rem;
    line-height: 1.55;
}

.guest-save-cta-property {
    margin-top: 10px !important;
    color: #94a3b8 !important;
    font-size: 0.82rem !important;
}

.guest-save-cta-fields {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.guest-save-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 768px) {
    .guest-save-cta-inner {
        grid-template-columns: 1fr;
    }
}

.packet-bottom-cta,
.review-start-wrapper .guest-save-cta,
.calculator-page-wrapper .guest-save-cta {
    margin-top: 32px;
}

.form-section-label {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin: 24px 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
}

.form-section-label:first-child {
    margin-top: 0;
}

.section-help {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: -4px 0 16px;
    line-height: 1.5;
}

/* Evidence Review Packet */
.evidence-packet-wrapper {
    padding: 32px 0 64px;
}

.packet-container {
    max-width: 920px;
}

.packet-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.packet-document {
    background: #141417;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
}

.packet-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.packet-civic-tag {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 6px;
}

.packet-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 6px;
    color: #ffffff;
}

.packet-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.packet-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 18px;
}

.packet-meta-grid dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.packet-meta-grid dd {
    margin: 0;
    font-weight: 600;
    color: #ffffff;
    font-size: 0.92rem;
}

.packet-summary-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.packet-stat-card {
    background: #0e0e11;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
}

.packet-stat-card.stat-warning {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.06);
}

.psc-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.psc-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
}

.psc-value-sm {
    font-size: 1.1rem;
}

.psc-sub {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.packet-section {
    margin-bottom: 32px;
}

.packet-section-highlight {
    background: rgba(220, 38, 38, 0.04);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: var(--radius-md);
    padding: 22px 24px;
}

.packet-section-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.section-lead {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0 0 16px;
}

.packet-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.detail-item {
    background: #0e0e11;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.detail-item.detail-full {
    grid-column: 1 / -1;
}

.detail-item strong {
    color: #ffffff;
}

.packet-prose p {
    color: #cbd5e1;
    line-height: 1.65;
    margin: 0;
}

.packet-callout {
    margin-top: 14px;
    padding: 12px 14px;
    background: #0e0e11;
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.88rem;
    color: #cbd5e1;
}

.checklist-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.checklist-card {
    background: #0e0e11;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 18px;
}

.checklist-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.checklist-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.checklist-card-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #ffffff;
}

.checklist-row {
    margin-bottom: 10px;
}

.checklist-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.checklist-row p {
    margin: 0;
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.55;
}

.packet-guidance-quote {
    margin: 16px 0 20px;
    padding: 16px 18px;
    background: #0e0e11;
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.packet-guidance-quote-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.packet-guidance-quote p {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.5;
}

.packet-strong-questions .section-lead {
    margin-bottom: 12px;
}

.packet-guidance-quote-compact {
    margin: 12px 0 0;
    padding: 12px 14px;
}

.packet-guidance-quote-compact p {
    font-size: 0.95rem;
}

.checklist-dispute {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
}

.checklist-dispute .checklist-label {
    color: #fbbf24;
}

.checklist-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--text-muted);
    cursor: pointer;
}

.packet-table-wrap {
    overflow-x: auto;
}

.packet-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.packet-table th,
.packet-table td {
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    text-align: left;
    color: #e4e4e7;
}

.packet-table th {
    background: #0e0e11;
    font-weight: 700;
    color: #ffffff;
}

.packet-table tr.row-highlight td {
    background: rgba(220, 38, 38, 0.08);
}

.packet-numbered-list {
    margin: 0;
    padding-left: 1.25rem;
    color: #cbd5e1;
    line-height: 1.65;
}

.packet-numbered-list li {
    margin-bottom: 8px;
}

.packet-letter {
    background: #0e0e11;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    font-size: 0.88rem;
    line-height: 1.65;
    color: #cbd5e1;
    white-space: pre-wrap;
}

.dates-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.date-card {
    background: #0e0e11;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 18px;
}

.date-card .dc-step {
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.date-card p {
    margin: 0 0 8px;
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.date-card .dc-contact {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 10px;
}

.packet-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-top: 8px;
}

.packet-footer p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .packet-document {
        padding: 20px 18px;
    }

    .packet-meta-grid,
    .packet-summary-cards,
    .packet-details-grid,
    .dates-cards-grid {
        grid-template-columns: 1fr;
    }
}

.calc-header-banner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.back-link {
    display: inline-block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.property-tagline {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.metrics-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px;
}

.metric-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    margin: 6px 0;
}

.text-warning { color: var(--warning); }
.text-success { color: var(--accent); }
.text-info { color: var(--info); }

.metric-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.calc-explanation-callout {
    display: flex;
    gap: 18px;
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 32px;
}

.callout-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.callout-positive {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.callout-neutral {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.callout-icon {
    font-size: 2rem;
    line-height: 1;
}

.callout-content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.mill-rate-tip {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #cbd5e1;
}

.calc-dashboard-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
}

.dashboard-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 14px;
}

.custom-bar-chart {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 20px 0 28px;
}

.bar-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bar-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.bar-track {
    background: #0e0e11;
    border: 1px solid #27272a;
    height: 36px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 14px;
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
    transition: width 0.6s ease;
}

.fill-2025 { background: #3f3f46; color: #ffffff; }
.fill-2026 { background: linear-gradient(90deg, #dc2626, #ef4444); color: #ffffff; }
.fill-benchmark { background: linear-gradient(90deg, #d97706, #fbbf24); color: #000000; }

.break-even-box {
    background: #141417;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 28px;
}

.be-title {
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.be-diff {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #e2e8f0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-top: 14px;
}

.data-table th, .data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.data-table th {
    color: var(--text-muted);
}

/* Scenarios */
.scenarios-cards-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0 28px;
}

.scenario-item {
    background: rgba(15, 26, 48, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 18px;
}

.item-highlight {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
}

.scen-top {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.05rem;
}

.scen-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.diff-up { color: var(--warning); font-weight: 700; }
.diff-down { color: var(--accent); font-weight: 700; }

.custom-slider-panel {
    background: rgba(15, 26, 48, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px;
    margin-bottom: 20px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.slider-val-badge {
    background: var(--primary);
    color: #ffffff;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.custom-range-slider {
    width: 100%;
    margin: 16px 0 8px;
    accent-color: var(--primary);
    cursor: pointer;
}

.slider-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-subtle);
}

.slider-live-output {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.output-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.95rem;
}

.output-tax {
    font-size: 1.2rem;
    color: #38bdf8;
}

.calc-footer-cta {
    margin-top: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
}

.cta-inner h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.cta-inner p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.cta-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Map Grid & Workspace */
.map-workspace-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 28px;
    margin: 24px 0 40px;
}

.map-privacy-banner {
    display: flex;
    gap: 14px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    font-size: 0.9rem;
    margin-top: 20px;
}

.map-privacy-banner.map-privacy-below {
    margin-top: 28px;
    margin-bottom: 8px;
}

.map-data-notice-banner {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(239, 68, 68, 0.35);
    margin-top: 16px;
}

.map-data-notice-banner .priv-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    line-height: 1.55;
    color: #fecaca;
}

.map-data-notice-banner .priv-body strong {
    color: #ffffff;
}

.map-notice-block {
    display: block;
    color: #fca5a5;
    font-size: 0.88rem;
}

.priv-icon { font-size: 1.6rem; line-height: 1; }

.map-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 12px;
}

.layer-toggle-group {
    display: flex;
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 2px;
}

.btn-layer {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-layer.active {
    background: var(--primary);
    color: #ffffff;
}

.map-legend-bar {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.color-below { background: #10b981; }
.color-equal { background: #38bdf8; }
.color-above { background: #f59e0b; }
.color-suppressed { background: #475569; }

.ward-cards-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 24px;
}

.ward-card-item {
    background: rgba(15, 26, 48, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.ward-card-item:hover, .ward-card-item.selected {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
}

.ward-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.ward-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.ward-metrics-row {
    display: flex;
    gap: 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 6px 0;
}

.ward-drilldown-link {
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 4px;
}

.is-suppressed {
    opacity: 0.75;
}

.suppressed-text {
    font-size: 0.8rem;
    color: #94a3b8;
}

.compare-my-property-box {
    background: rgba(15, 26, 48, 0.9);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
}

.compare-my-property-box h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.compare-desc {
    font-size: 0.825rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.compare-result-box {
    margin-top: 14px;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: #0f172a;
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
}

/* Modal */
.modal-backdrop {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop.show {
    display: flex;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 520px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 24px;
}

.share-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 20px 0;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: #1e293b;
    border: 1px solid var(--border-color);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition-fast);
}

.share-btn:hover {
    background: #334155;
    color: #ffffff;
}

.copy-link-wrapper {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.copy-feedback {
    margin-top: 10px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
}

/* Floating Share FAB */
.share-fab {
    position: fixed;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    right: calc(16px + env(safe-area-inset-right, 0px));
    left: auto;
    width: auto;
    max-width: calc(100vw - 32px);
    z-index: 900;
    pointer-events: none;
    contain: layout style;
}

.btn-share {
    background: linear-gradient(135deg, var(--primary), #b91c1c);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-full);
    padding: 12px 18px;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.45);
    font-weight: 700;
    pointer-events: auto;
    max-width: 100%;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .share-fab {
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        right: calc(12px + env(safe-area-inset-right, 0px));
    }

    .btn-share {
        padding: 12px 14px;
        font-size: 0.9rem;
    }
}

/* Footer */
.site-footer {
    background: #080e1e;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
}

.footer-heading {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 16px;
}

.dates-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.85rem;
}

.footer-dates-cta {
    background: linear-gradient(165deg, rgba(220, 38, 38, 0.16) 0%, rgba(15, 15, 18, 0.95) 55%);
    border: 1px solid rgba(239, 68, 68, 0.45);
    border-radius: var(--radius-lg);
    padding: 20px 18px;
    box-shadow: 0 0 32px rgba(220, 38, 38, 0.12);
}

.footer-dates-cta-head {
    margin-bottom: 14px;
}

.footer-dates-badge {
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fecaca;
    background: rgba(220, 38, 38, 0.25);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: var(--radius-full);
    padding: 4px 10px;
    margin-bottom: 8px;
}

.footer-dates-cta .footer-heading {
    margin-bottom: 0;
    font-size: 1.15rem;
}

.footer-dates-cta .dates-list li {
    padding-left: 12px;
    border-left: 3px solid rgba(239, 68, 68, 0.55);
}

.footer-dates-cta .dates-list a {
    color: #93c5fd;
    font-weight: 600;
}

.footer-dates-btn {
    margin-top: 16px;
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
}

/* Responsive Media Queries */
/* Ward count labels on community map */
.ward-count-label {
    background: transparent !important;
    border: none !important;
}

.ward-count-label-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.88);
    border: 2px solid #ffffff;
    border-radius: 8px;
    padding: 4px 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    text-align: center;
    line-height: 1.2;
    pointer-events: none;
}

.ward-count-num {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ward-count-val {
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    color: #38bdf8;
}

@media (max-width: 960px) {
    .three-questions-grid {
        grid-template-columns: 1fr;
    }
    .calc-dashboard-grid {
        grid-template-columns: 1fr;
    }
    .map-workspace-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .nav-list {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    .nav-link {
        font-size: 0.84rem;
        padding: 6px 8px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .nav-list {
        gap: 8px;
    }
    .nav-link {
        font-size: 0.82rem;
        padding: 6px 7px;
    }
    .nav-link-compact {
        font-size: 0.78rem;
    }
    .brand-title {
        font-size: 1rem;
    }
    .brand-sub {
        font-size: 0.68rem;
    }
}

@media (max-width: 768px) {
    .site-header {
        backdrop-filter: none;
    }

    .hero-title {
        font-size: 2.2rem;
    }
    .hero-banner {
        margin-bottom: 32px;
    }
    .home-guide-strip {
        padding-top: 20px;
    }
    .mobile-nav-toggle {
        display: flex;
        z-index: 1101;
        margin-left: auto;
    }

    .site-nav--desktop {
        display: none !important;
    }

    .site-nav--mobile {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: fixed;
        top: 0;
        right: 0;
        width: min(300px, 88vw);
        max-width: 100%;
        height: 100dvh;
        background: linear-gradient(180deg, #121216 0%, #0c0c0f 100%);
        border-left: 1px solid var(--border-color);
        padding: 0 0 24px;
        transform: translateX(105%);
        visibility: hidden;
        pointer-events: none;
        transition: transform var(--transition-normal), visibility 0s linear var(--transition-normal);
        z-index: 1100;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
        flex: unset;
    }

    .site-nav--mobile.open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
        transition: transform var(--transition-normal), visibility 0s;
    }

    .site-nav--mobile .nav-list {
        flex: 1;
    }

    .site-nav--mobile .nav-link,
    .site-nav--mobile .dropdown-item {
        color: #e4e4e7;
    }
    .mobile-nav-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 20px;
        border-bottom: 1px solid var(--border-color);
        position: sticky;
        top: 0;
        background: rgba(12, 12, 15, 0.96);
        backdrop-filter: blur(8px);
        z-index: 2;
    }
    .mobile-nav-drawer-title {
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 1.05rem;
        color: #ffffff;
    }
    .mobile-nav-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 8px;
        border: 1px solid var(--border-color);
        background: transparent;
        color: #ffffff;
        font-size: 1.5rem;
        line-height: 1;
        cursor: pointer;
    }
    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 16px 16px 0;
    }
    .nav-link {
        white-space: normal;
        width: 100%;
        text-align: left;
        padding: 12px 14px;
        font-size: 1rem;
    }
    .nav-link-accent {
        margin-top: 4px;
    }
    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: rgba(255, 255, 255, 0.03);
        padding: 4px 0 4px 8px;
        min-width: unset;
        border-radius: var(--radius-sm);
        margin-top: 4px;
    }
    .dropdown-item {
        padding: 10px 12px;
        white-space: normal;
    }
    .nav-dropdown:hover .dropdown-menu,
    .nav-dropdown:focus-within .dropdown-menu {
        display: none;
    }
    .nav-dropdown.open .dropdown-menu {
        display: block;
    }

    .site-nav--mobile .nav-dropdown .dropdown-toggle {
        color: #e4e4e7;
        border: 1px solid rgba(239, 68, 68, 0.35);
        background: rgba(220, 38, 38, 0.08);
    }

    .site-nav--mobile .nav-dropdown .dropdown-chevron {
        color: #ef4444;
        font-size: 0.85rem;
        margin-left: auto;
        flex-shrink: 0;
    }

    .site-nav--mobile .nav-dropdown.open .dropdown-chevron {
        transform: rotate(180deg);
    }
}

/* Ward drilldown report */
.ward-drilldown-wrapper {
    padding: 32px 0 64px;
}

.ward-header-bar {
    margin-bottom: 28px;
}

.ward-header-bar .page-title {
    margin: 12px 0 8px;
    font-size: clamp(1.6rem, 3vw, 2rem);
}

.ward-header-bar .tagline {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
}

.ward-context-banner {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.ward-context-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #bae6fd;
    font-size: 0.88rem;
    font-weight: 600;
}

.ward-context-pill-muted {
    background: rgba(148, 163, 184, 0.08);
    border-color: rgba(148, 163, 184, 0.2);
    color: var(--text-muted);
    font-weight: 500;
}

.ward-hero-card {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.08), rgba(15, 15, 18, 0.95));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    margin-bottom: 24px;
    text-align: center;
}

.ward-hero-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.ward-hero-value {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 6vw, 3.4rem);
    font-weight: 800;
    margin: 10px 0;
    line-height: 1.1;
}

.ward-hero-sub {
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 18px;
    font-size: 1rem;
    line-height: 1.5;
}

.ward-hero-chips {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.ward-stats-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.distribution-card {
    padding: 28px;
    margin-bottom: 20px;
}

.distribution-card h2 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.distribution-intro {
    color: var(--text-muted);
    margin: 0 0 22px;
    font-size: 0.92rem;
}

.distribution-bars-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dist-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 1.4fr;
    gap: 16px;
    align-items: center;
}

.dist-label strong {
    display: block;
    color: #f8fafc;
    font-size: 0.92rem;
    margin-bottom: 2px;
}

.dist-count {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.dist-track {
    height: 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    overflow: hidden;
}

.dist-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.dist-fill.fill-lower { background: linear-gradient(90deg, #10b981, #34d399); }
.dist-fill.fill-higher { background: linear-gradient(90deg, #f59e0b, #ef4444); }

.dist-row-empty {
    opacity: 0.45;
}

.distribution-empty {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.ward-suppressed-card {
    margin-top: 32px;
    padding: 36px 28px;
    text-align: center;
}

.ward-suppressed-card p {
    max-width: 620px;
    margin: 12px auto;
    color: var(--text-muted);
    line-height: 1.55;
}

.ward-suppressed-note {
    font-size: 0.92rem;
}

.ward-disclaimer-box {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: rgba(148, 163, 184, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.12);
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 720px) {
    .dist-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* Ward alderman contact */
.ward-alderman-card {
    margin-top: 28px;
    padding: 28px;
    border-color: rgba(56, 189, 248, 0.25);
    background: linear-gradient(165deg, rgba(14, 165, 233, 0.08) 0%, #141417 45%);
}

.ward-alderman-head h2 {
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.ward-alderman-intro {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 20px;
    font-size: 0.95rem;
}

.ward-alderman-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.alderman-contact-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
}

.alderman-role {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #38bdf8;
    font-weight: 700;
    margin-bottom: 6px;
}

.alderman-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.alderman-line {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.alderman-label {
    font-size: 0.75rem;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.alderman-link {
    color: #93c5fd;
    word-break: break-word;
}

.alderman-link:hover {
    color: #ffffff;
}

.ward-alderman-meta {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.alderman-source a {
    color: #38bdf8;
}

.ward-council-prompts {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--border-color);
}

.ward-council-prompts-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.ward-council-prompts h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.ward-council-prompts-intro {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0;
    max-width: 520px;
}

.council-dimension-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 4px;
}

@media (min-width: 721px) {
    .council-dimension-legend {
        justify-content: flex-end;
        max-width: 280px;
    }
}

.dim-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.dim-pill.dim-who {
    color: #7dd3fc;
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.35);
}

.dim-pill.dim-what {
    color: #c4b5fd;
    background: rgba(167, 139, 250, 0.12);
    border-color: rgba(167, 139, 250, 0.35);
}

.dim-pill.dim-where {
    color: #6ee7b7;
    background: rgba(52, 211, 153, 0.12);
    border-color: rgba(52, 211, 153, 0.35);
}

.dim-pill.dim-why {
    color: #fcd34d;
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.35);
}

.council-prompt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.council-prompt-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    border-top: 3px solid #fbbf24;
}

.council-prompt-card.council-prompt-who { border-top-color: #38bdf8; }
.council-prompt-card.council-prompt-what { border-top-color: #a78bfa; }
.council-prompt-card.council-prompt-where { border-top-color: #34d399; }
.council-prompt-card.council-prompt-why { border-top-color: #fbbf24; }

.council-prompt-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.council-prompt-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.council-prompt-text {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.62;
    font-size: 0.9rem;
}

.council-prompt-tag {
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: var(--radius-full);
    padding: 3px 10px;
}

.council-prompt-who .council-prompt-tag { color: #7dd3fc; background: rgba(56, 189, 248, 0.12); border-color: rgba(56, 189, 248, 0.35); }
.council-prompt-what .council-prompt-tag { color: #c4b5fd; background: rgba(167, 139, 250, 0.12); border-color: rgba(167, 139, 250, 0.35); }
.council-prompt-where .council-prompt-tag { color: #6ee7b7; background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.35); }

.dispute-summary-body p {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 14px;
}

.dispute-summary-body p:last-child {
    margin-bottom: 0;
}

.packet-questions-list li {
    margin-bottom: 12px;
    line-height: 1.6;
}

/* Prepare Dispute form */
.dispute-form-page {
    padding: 36px 0 64px;
}

.dispute-form-container {
    max-width: 860px;
}

.dispute-form-hero {
    text-align: center;
    margin-bottom: 28px;
}

.dispute-form-hero .dispute-education-notice {
    text-align: left;
    margin: 16px auto 20px;
    max-width: 100%;
}

.dispute-form-lead {
    color: var(--text-muted);
    max-width: 640px;
    margin: 12px auto 20px;
    line-height: 1.65;
}

.dispute-steps-preview {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.dispute-steps-preview li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 8px 14px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.dispute-steps-preview li span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.2);
    color: #fecaca;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.dispute-form-card {
    padding: 0;
    overflow: hidden;
    border-color: rgba(239, 68, 68, 0.25);
}

.dispute-form .form-panel {
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-color);
}

.dispute-form .form-panel-highlight {
    background: rgba(220, 38, 38, 0.05);
}

.dispute-form-section-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(239, 68, 68, 0.2);
}

.dispute-form-section-num {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    margin-top: 2px;
    text-transform: uppercase;
}

.dispute-form-section-title {
    margin: 0 0 6px;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.dispute-form-section-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    margin-bottom: 6px;
}

.dispute-form-optional-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #e0f2fe;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.dispute-form-section-head .section-help {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.dispute-form-step-head > div {
    flex: 1;
    min-width: 0;
}

.dispute-form-step-note {
    margin: 4px 0 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-muted);
    font-weight: 400;
}

.dispute-form-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dispute-form-step {
    background: #0e0e11;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dispute-form-step:focus-within {
    border-color: rgba(220, 38, 38, 0.45);
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.15);
}

.dispute-form-step-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.dispute-form-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #0a0a0c;
    border: 2px solid rgba(255, 255, 255, 0.85);
    color: var(--primary);
    font-weight: 800;
    font-size: 0.85rem;
    line-height: 1;
}

.dispute-form-step-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
}

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

.dispute-form-step-body .help-text {
    display: block;
    margin-bottom: 10px;
}

.label-optional {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.88em;
}

.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;
}

.dispute-form .form-panel-muted {
    background: rgba(15, 23, 42, 0.45);
}

.dispute-form .field-label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.checkbox-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.checkbox-option input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.checkbox-option:has(input:checked) {
    color: #ffffff;
}

.dispute-form .form-section-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: #fecaca;
    margin-bottom: 14px;
    letter-spacing: 0.02em;
}

.dispute-disclosure {
    margin: 0 28px 20px;
}

.dispute-form-actions {
    padding: 0 28px 28px;
}

/* Education & prose pages */
.education-page-wrapper {
    padding: 40px 0 72px;
    background: radial-gradient(circle at top, rgba(220, 38, 38, 0.06), transparent 55%);
}

.education-page-wrapper .container {
    max-width: 860px;
}

.education-page-wrapper .edu-podcast-inner {
    max-width: 960px;
}

.edu-podcast {
    margin: 0 auto 32px;
    padding: 0 16px;
}

.edu-podcast-cta {
    text-align: center;
    margin-bottom: 18px;
}

.edu-podcast-title {
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 800;
    color: #ffffff;
    margin: 12px 0 8px;
}

.edu-podcast-lead {
    max-width: 680px;
    margin: 0 auto;
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 0.98rem;
}

.edu-podcast-player {
    display: flex;
    align-items: stretch;
    gap: 18px;
    background: #141417;
    border: 1px solid rgba(220, 38, 38, 0.35);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.edu-podcast-play {
    flex: 0 0 auto;
    width: 112px;
    min-height: 148px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-radius: var(--radius-md);
    background: linear-gradient(160deg, #ef4444, #b91c1c);
    color: #fecaca;
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 24px rgba(220, 38, 38, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.edu-podcast-play:hover {
    transform: scale(1.03);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 10px 28px rgba(220, 38, 38, 0.5);
}

.edu-podcast-play:focus-visible {
    outline: 2px solid #fecaca;
    outline-offset: 3px;
}

.edu-podcast-toggle-icon {
    display: block;
    width: 72px;
    height: 72px;
    position: relative;
}

.edu-podcast-toggle-icon svg {
    width: 72px;
    height: 72px;
    position: absolute;
    inset: 0;
    display: none;
}

.edu-podcast-toggle-icon .edu-podcast-icon-play {
    display: block;
}

.edu-podcast-play.is-playing .edu-podcast-toggle-icon .edu-podcast-icon-play {
    display: none;
}

.edu-podcast-play.is-playing .edu-podcast-toggle-icon .edu-podcast-icon-pause {
    display: block;
}

.edu-podcast-play-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
}

.edu-podcast-stage {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.edu-podcast-wave {
    display: block;
    width: 100%;
    height: 110px;
    background: #0e0e11;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.edu-podcast-progress-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.edu-podcast-seek,
.edu-podcast-volume input {
    width: 100%;
    accent-color: var(--primary);
    cursor: pointer;
}

.edu-podcast-times {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.edu-podcast-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    align-items: center;
}

.edu-podcast-volume,
.edu-podcast-speed {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.edu-podcast-volume input {
    width: 120px;
}

.edu-podcast-speed select {
    background: #0e0e11;
    color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.85rem;
}

.edu-podcast-ctrl-label {
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.72rem;
}

.edu-podcast-below-player {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    width: 100%;
    margin-top: 22px;
}

.edu-podcast-source-notice {
    width: 100%;
    max-width: none;
    margin: 0;
    text-align: center;
    box-sizing: border-box;
}

.edu-section-pill-row {
    max-width: 960px;
    text-align: center;
    margin: 4px auto 20px;
    padding: 0 16px;
}

.edu-section-pill-row .civic-pill {
    margin-bottom: 0;
}

.edu-podcast-share {
    display: block;
    width: 100%;
    padding: 20px 22px;
    background: #141417;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-sizing: border-box;
}

.edu-podcast-share-title {
    margin: 0 0 6px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #ffffff;
    text-align: center;
}

.edu-podcast-share-lead {
    margin: 0 0 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.edu-podcast-share-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    gap: 10px;
    margin: 0 0 14px;
    width: 100%;
}

.edu-podcast-share .share-btn {
    justify-content: center;
    min-height: 48px;
    width: 100%;
    box-sizing: border-box;
}

.edu-podcast-copy-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.edu-podcast-copy-row .input-field {
    flex: 1 1 200px;
    min-width: 0;
}

.edu-podcast-copy-row .btn {
    flex: 0 0 auto;
}

@media (max-width: 720px) {
    .edu-podcast-player {
        flex-direction: column;
        align-items: stretch;
    }

    .edu-podcast-play {
        width: 100%;
        min-height: 120px;
        flex-direction: row;
        gap: 12px;
    }

    .edu-podcast-toggle-icon,
    .edu-podcast-toggle-icon svg {
        width: 64px;
        height: 64px;
    }

    .edu-podcast-wave {
        height: 88px;
    }

    .edu-podcast-volume {
        flex: 1 1 100%;
    }

    .edu-podcast-volume input {
        flex: 1;
        width: auto;
    }
}

.education-hero-container {
    max-width: 960px;
    margin-bottom: 8px;
}

.education-hero-container--secondary {
    margin-top: 48px;
    margin-bottom: 8px;
}

.edu-article--why-reval {
    margin-bottom: 8px;
}

.edu-staff-report-cta {
    text-align: center;
    margin: 16px auto 20px;
}

.edu-staff-report-btn {
    letter-spacing: 0.02em;
    font-size: 0.9rem;
    padding: 14px 22px;
    white-space: normal;
    max-width: 100%;
}

.edu-rights-alert {
    margin-top: 18px;
    padding: 16px 18px;
    background: rgba(220, 38, 38, 0.12);
    border: 2px solid rgba(239, 68, 68, 0.55);
    border-radius: var(--radius-md);
}

.edu-rights-alert-title {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #fecaca;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.edu-rights-alert p {
    margin: 0 0 12px;
    color: #fee2e2;
    line-height: 1.6;
    font-size: 0.95rem;
}

.edu-rights-alert p:last-child {
    margin-bottom: 0;
}

.edu-rights-alert-subtitle {
    margin: 14px 0 8px;
    font-weight: 700;
    color: #fecaca;
    font-size: 0.92rem;
}

.edu-rights-alert-list {
    margin: 0;
    padding-left: 1.25rem;
    color: #fee2e2;
    line-height: 1.6;
    font-size: 0.95rem;
}

.edu-rights-alert-list li {
    margin-bottom: 10px;
}

.edu-rights-alert-list li:last-child {
    margin-bottom: 0;
}

.edu-rights-alert a {
    color: #fca5a5;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.edu-rights-alert a:hover {
    color: #fff;
}

.education-hero-graphic {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    border: 1px solid rgba(220, 38, 38, 0.35);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.edu-header--compact {
    margin-bottom: 20px;
}

.edu-header--compact .page-title {
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    margin: 12px 0 6px;
}

.edu-header--compact .lead {
    margin-top: 0;
}

.education-participation-block {
    margin-top: 40px;
}

.edu-outcome-list li {
    margin-bottom: 14px;
}

.edu-header {
    text-align: center;
    margin-bottom: 28px;
}

.edu-header .page-title {
    font-size: clamp(1.75rem, 3.5vw, 2.35rem);
    margin: 16px 0 10px;
}

.edu-header .lead {
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.65;
}

.edu-article {
    padding: 36px 40px;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-lg);
}

.edu-section {
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.edu-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.edu-section h2 {
    font-size: 1.35rem;
    margin-bottom: 14px;
    color: #fecaca;
}

.edu-section p {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 14px;
}

.edu-section p:last-child {
    margin-bottom: 0;
}

.callout-box,
.formula-box,
.official-quote,
.invalid-arguments-box,
.valid-arguments-box {
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin: 16px 0;
    line-height: 1.65;
}

.callout-box {
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fecaca;
}

.formula-box {
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.formula-box code {
    display: block;
    font-size: 0.9rem;
    color: #bae6fd;
    margin-top: 8px;
}

.official-quote {
    border-left: 4px solid #dc2626;
    background: rgba(255, 255, 255, 0.03);
    font-style: italic;
    color: var(--text-muted);
}

.styled-list {
    margin: 12px 0 0;
    padding-left: 1.25rem;
    color: var(--text-secondary);
}

.styled-list li {
    margin-bottom: 10px;
    line-height: 1.65;
}

.invalid-arguments-box {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fecaca;
}

.valid-arguments-box {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #bbf7d0;
}

/* Citizen dashboard dispute packets */
.citizen-disputes-box {
    background: rgba(220, 38, 38, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.28);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.citizen-disputes-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #fecaca;
    font-size: 0.9rem;
}

.citizen-disputes-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.25);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
}

.citizen-disputes-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.citizen-dispute-item {
    background: #141417;
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 12px 14px;
}

.citizen-dispute-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.citizen-dispute-date {
    color: #a1a1aa;
}

.citizen-dispute-growth {
    font-weight: 700;
}

.citizen-dispute-sub {
    color: #71717a;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.citizen-dispute-view {
    width: 100%;
    justify-content: center;
}

.citizen-disputes-empty {
    color: #71717a;
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 16px;
    padding: 10px 12px;
    border: 1px dashed #3f3f46;
    border-radius: 8px;
}

.citizen-flash {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
}
.citizen-flash-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #bbf7d0;
}
.citizen-flash-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fecaca;
}

.citizen-tracker-section,
.citizen-tracker-top-section {
    margin-bottom: 32px;
    padding: 24px;
    background: #141417;
    border: 1px solid #27272a;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.35);
}
.citizen-tracker-top-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.citizen-tracker-top-title {
    font-size: 1.35rem;
    margin: 0 0 8px;
    color: #ffffff;
    font-weight: 800;
}
.citizen-tracker-empty-hint {
    color: #a1a1aa;
    font-size: 0.9rem;
    margin: 0;
}
.citizen-tracker-property {
    margin-bottom: 16px;
}
.citizen-tracker-property:last-child {
    margin-bottom: 0;
}
.citizen-tracker-property-meta {
    font-size: 0.8rem;
    color: #71717a;
    margin: -6px 0 12px;
}
.citizen-tracker-bottom {
    margin-top: 32px;
    margin-bottom: 0;
}
.citizen-tracker-auto-label {
    font-style: normal;
    font-weight: 400;
    color: #71717a;
    font-size: 0.72rem;
}
.citizen-tracker-total-auto {
    background: #0e0e11;
    color: #e4e4e7;
    cursor: default;
}
.citizen-tracker-total-auto:focus {
    outline: none;
    box-shadow: none;
}

.citizen-tracker-box {
    margin-top: 16px;
    margin-bottom: 16px;
    padding: 16px;
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.28);
    border-radius: 10px;
}
.citizen-tracker-intro {
    color: #a1a1aa;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0 0 14px;
}
.citizen-tracker-list {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.citizen-tracker-item {
    background: #141417;
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 12px 14px;
}
.citizen-tracker-item-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #e4e4e7;
    margin-bottom: 6px;
}
.citizen-tracker-delta {
    font-weight: 700;
}
.citizen-tracker-figures {
    font-size: 0.85rem;
    color: #a1a1aa;
    margin-bottom: 8px;
}
.citizen-tracker-public-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #93c5fd;
    margin-bottom: 8px;
}
.citizen-tracker-form {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.citizen-tracker-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}
.citizen-tracker-form-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.citizen-tracker-form label span {
    display: block;
    font-size: 0.75rem;
    color: #71717a;
    margin-bottom: 4px;
}
.citizen-tracker-fieldset {
    border: 1px solid #3f3f46;
    border-radius: 8px;
    padding: 12px;
    margin: 0;
}
.citizen-tracker-fieldset legend {
    color: #d4d4d8;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0 6px;
}
.citizen-tracker-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.82rem;
    color: #a1a1aa;
    line-height: 1.45;
}
.citizen-tracker-consent input {
    margin-top: 3px;
}
.citizen-tracker-edit summary,
.citizen-tracker-add summary {
    cursor: pointer;
    color: #93c5fd;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.citizen-tracker-delete-form {
    margin-top: 8px;
}

#tab-disputes .dispute-tracker-hero-banner {
    margin-bottom: 20px;
    border-radius: var(--radius-md, 12px);
    overflow: hidden;
    border: 1px solid var(--border-color, #27272a);
}
#tab-disputes .dispute-tracker-hero-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: cover;
    object-position: center 30%;
}
.dispute-tracker-hero {
    margin-bottom: 20px;
}
.dispute-tracker-title {
    font-size: 1.35rem;
    margin: 0 0 8px;
    color: #ffffff;
}
.dispute-tracker-lede {
    color: #a1a1aa;
    line-height: 1.55;
    margin: 0 0 16px;
    max-width: 720px;
}
.dispute-tracker-summary {
    margin-bottom: 8px;
}
.dispute-leaderboard-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-color, #27272a);
    border-radius: 12px;
    background: var(--bg-card, #141417);
    margin-bottom: 28px;
}
.dispute-leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    color: #e4e4e7;
}
.dispute-leaderboard-table th,
.dispute-leaderboard-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #27272a;
}
.dispute-leaderboard-table th {
    background: #0e0e11;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #71717a;
}
.dispute-leaderboard-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}
.dispute-leaderboard-table tbody tr:last-child td {
    border-bottom: none;
}
.dispute-rank {
    color: #71717a;
    font-weight: 600;
    width: 2.5rem;
}
.dispute-money {
    font-variant-numeric: tabular-nums;
    color: #f4f4f5;
    font-weight: 600;
}
.dispute-ward-cell {
    color: #e4e4e7;
}
.dispute-ward-sub {
    display: block;
    font-size: 0.75rem;
    color: #71717a;
    font-weight: 400;
}
.dispute-change-cell.dispute-delta-down,
.dispute-delta-down {
    color: #22c55e;
    font-weight: 700;
}
.dispute-change-cell.dispute-delta-up,
.dispute-delta-up {
    color: #fbbf24;
    font-weight: 700;
}
.dispute-pct {
    font-weight: 600;
    color: #a1a1aa;
    margin-left: 4px;
}
.dispute-tracker-footnote {
    margin-top: -12px;
    margin-bottom: 28px;
    font-size: 0.8rem;
    color: #71717a;
    line-height: 1.5;
}
.dispute-tracker-user-panel {
    margin-top: 8px;
    padding-top: 28px;
    border-top: 1px solid #27272a;
}
.dispute-tracker-user-title {
    font-size: 1.15rem;
    margin: 0 0 16px;
    color: #ffffff;
}
.dispute-tracker-login-banner {
    margin-bottom: 12px;
}
.dispute-tracker-login-sub {
    color: #71717a;
    font-size: 0.88rem;
    line-height: 1.5;
}
.dispute-tracker-form-box h4,
.dispute-tracker-your-rows h4 {
    color: #e4e4e7;
    margin: 0 0 12px;
    font-size: 0.95rem;
}
.dispute-tracker-property-pick {
    margin-bottom: 16px;
}
.dispute-tracker-property-pick label {
    display: block;
    font-size: 0.8rem;
    color: #71717a;
    margin-bottom: 6px;
}
.is-hidden {
    display: none !important;
}
.dispute-tracker-flash {
    margin-bottom: 16px;
}

.admin-dispute-tracker-block {
    margin: 8px 0 20px;
    padding: 18px;
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 10px;
    background: rgba(251, 191, 36, 0.04);
}

.text-warning { color: #fbbf24; }
.text-success { color: #22c55e; }

@media (max-width: 768px) {
    .site-brand-logo {
        height: 32px;
        max-width: min(176px, 54vw);
    }

    .edu-article {
        padding: 24px 20px;
    }
    .dispute-form .form-panel,
    .dispute-form-actions,
    .dispute-disclosure {
        padding-left: 20px;
        padding-right: 20px;
    }
    .dispute-steps-preview {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Assessment action verdict (post-submit conversion) */
.assessment-verdict {
    text-align: left;
    background: linear-gradient(145deg, rgba(20, 20, 23, 0.98), rgba(9, 9, 11, 0.98));
    border: 1px solid rgba(220, 38, 38, 0.35);
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.assessment-verdict--compact {
    padding: 22px 24px;
    margin-bottom: 24px;
}

.assessment-verdict-kicker {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fca5a5;
    margin: 0 0 8px;
    font-weight: 700;
}

.assessment-verdict-headline {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    margin: 0 0 20px;
    line-height: 1.25;
    color: #ffffff;
}

.assessment-verdict-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.assessment-verdict-metric {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid #27272a;
    border-radius: 10px;
    padding: 12px 14px;
}

.assessment-verdict-metric-label {
    display: block;
    font-size: 0.75rem;
    color: #a1a1aa;
    margin-bottom: 4px;
}

.assessment-verdict-metric-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
}

.assessment-verdict-metric--highlight .assessment-verdict-metric-value {
    color: #fbbf24;
}

.assessment-verdict-narrative {
    color: #d4d4d8;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0 0 20px;
}

.assessment-action-level {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #3f3f46;
    background: rgba(0, 0, 0, 0.25);
}

.assessment-action-level-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}

.assessment-action-level--below .assessment-action-level-dot { background: #22c55e; }
.assessment-action-level--near .assessment-action-level-dot { background: #eab308; }
.assessment-action-level--review .assessment-action-level-dot { background: #f97316; }
.assessment-action-level--strong .assessment-action-level-dot { background: #ef4444; box-shadow: 0 0 12px rgba(239, 68, 68, 0.6); }

.assessment-action-level-title {
    display: block;
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 4px;
}

.assessment-action-level-text,
.assessment-action-level-emphasis {
    margin: 0;
    font-size: 0.9rem;
    color: #a1a1aa;
    line-height: 1.5;
}

.assessment-action-level-emphasis {
    margin-top: 8px;
    color: #e4e4e7;
}

.assessment-verdict-community {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 20px;
}

.assessment-verdict-community-title {
    margin: 0 0 8px;
    font-size: 1.05rem;
    color: #ffffff;
}

.assessment-verdict-community-note {
    margin: 0 0 12px;
    font-size: 0.82rem;
    color: #94a3b8;
}

.assessment-verdict-community-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.92rem;
    color: #d4d4d8;
}

.assessment-verdict-community-list span {
    color: #a1a1aa;
}

.open-book-urgency {
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.35);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 20px;
}

.open-book-urgency-badge {
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fecaca;
    margin-bottom: 8px;
}

.open-book-urgency-lead {
    margin: 0 0 10px;
    color: #e4e4e7;
    font-size: 0.92rem;
}

.open-book-urgency-dates {
    margin: 0;
    padding-left: 18px;
    color: #a1a1aa;
    font-size: 0.88rem;
    line-height: 1.55;
}

.assessment-verdict-callout {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px;
}

.assessment-verdict-cta {
    margin-bottom: 16px;
}

.assessment-verdict-primary-btn {
    width: 100%;
    max-width: 420px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.92rem;
}

.assessment-verdict-cta-sub {
    margin: 12px 0 0;
    font-size: 0.88rem;
    color: #a1a1aa;
    line-height: 1.55;
    max-width: 520px;
}

.assessment-verdict-disclaimer {
    font-size: 0.82rem;
    color: #71717a;
    line-height: 1.55;
    margin: 0 0 16px;
    max-width: 640px;
}

.assessment-verdict-secondary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    font-size: 0.88rem;
}

.assessment-verdict-secondary a {
    color: #93c5fd;
    text-decoration: none;
}

.assessment-verdict-secondary a:hover {
    text-decoration: underline;
}

.submit-success-page {
    max-width: 820px;
    margin: 40px auto;
    padding: 0 20px 60px;
}

.submit-success-intro {
    text-align: center;
    margin-bottom: 24px;
}

.submit-success-check {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.submit-success-title {
    font-size: 1.65rem;
    margin-bottom: 8px;
}

.submit-success-lead {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.98rem;
}

.submit-success-notice {
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 20px;
}

.submit-success-notice--account {
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.submit-success-notice--anonymous {
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.submit-success-notice-title {
    display: block;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.submit-success-notice-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 8px 0 0;
    line-height: 1.5;
}

.submit-success-notice-text strong {
    color: var(--text-main);
}

.submit-success-meta summary {
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 600;
}

.submit-success-meta code {
    display: block;
    margin-top: 8px;
}

.submit-success-meta-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
}

.submit-success-guest-cta {
    margin-top: 28px;
}

.submit-success-dashboard-link {
    text-align: center;
    margin-top: 24px;
}

.calc-results-panel .assessment-verdict,
.calc-results-panel .market-evidence-block {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
}

.market-evidence-strength-cta {
    margin: 8px 0 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.submit-success-meta {
    background: #141417;
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 24px;
    font-size: 0.88rem;
    color: #a1a1aa;
}

.submit-success-meta code {
    color: #ffffff;
    word-break: break-all;
}

.case-intro-page {
    max-width: 720px;
    margin: 48px auto 72px;
    padding: 0 20px;
}

.case-intro-card {
    background: #141417;
    border: 1px solid #27272a;
    border-radius: 16px;
    padding: 32px 28px;
}

.case-intro-checklist {
    margin: 20px 0;
    padding-left: 20px;
    color: #d4d4d8;
    line-height: 1.7;
}

/* Calculator sample data (no submission yet) */
.calc-results-body--sample {
    position: relative;
    overflow: hidden;
    border: 2px dashed rgba(161, 161, 170, 0.45);
    border-radius: 14px;
    padding: 20px 18px 8px;
    margin-top: 4px;
    background: rgba(9, 9, 11, 0.6);
}

.calc-sample-watermark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
    font-size: clamp(3.5rem, 14vw, 7rem);
    font-weight: 900;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.07);
    transform: rotate(-18deg);
    user-select: none;
}

.calc-results-body--sample .metrics-summary-grid,
.calc-results-body--sample .calc-explanation-callout,
.calc-results-body--sample .calc-dashboard-grid {
    position: relative;
    z-index: 1;
}

.calc-sample-notice {
    position: relative;
    z-index: 3;
    margin: 0 0 16px;
    padding: 10px 14px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 8px;
    font-size: 0.88rem;
    color: #bae6fd;
    text-align: center;
}

.calc-sample-notice a {
    color: #ffffff;
    font-weight: 600;
}

.admin-calc-preview-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 10px;
    font-size: 0.9rem;
    color: #bbf7d0;
}

.admin-calc-preview-banner a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: underline;
}

.dispute-education-notice {
    margin: 0 0 20px;
    padding: 14px 16px;
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.35);
    border-radius: 10px;
    color: #fef3c7;
    font-size: 0.92rem;
    line-height: 1.6;
}

.dispute-form-page .dispute-education-notice {
    max-width: 860px;
}

.packet-sqft-reminder {
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 8px;
    padding: 12px 14px;
    line-height: 1.55;
    color: #e0f2fe;
}

/* Market evidence (comparable sales engine) */
.market-evidence-block {
    margin: 28px auto;
    max-width: 860px;
    padding: 22px 20px;
    background: #141417;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.market-evidence-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin: 0 0 8px;
    color: #fff;
}

.market-evidence-lead {
    color: var(--text-muted);
    margin: 0 0 16px;
}

.market-evidence-strength {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 18px;
    border: 1px solid var(--border-color);
}

.market-evidence-strength--supported { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.35); }
.market-evidence-strength--preliminary { background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.35); }
.market-evidence-strength--mixed { background: rgba(234, 179, 8, 0.08); border-color: rgba(234, 179, 8, 0.35); }
.market-evidence-strength--review { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.35); }

.market-evidence-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}
@media (max-width: 720px) {
    .market-evidence-dual { grid-template-columns: 1fr; }
}
.market-evidence-dual-card {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
}
.market-evidence-dual-kicker {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin: 0 0 6px;
}
.market-evidence-dual-label {
    font-weight: 700;
    margin: 0 0 6px;
    color: #fff;
}
.market-evidence-dual-text {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.market-evidence-dual-card--change.market-evidence-dual-card--high { border-color: rgba(239, 68, 68, 0.45); }
.market-evidence-dual-card--market.market-evidence-dual-card--incomplete { border-color: rgba(234, 179, 8, 0.45); }
.market-evidence-dual-card--market.market-evidence-dual-card--unsupported { border-color: rgba(239, 68, 68, 0.45); }
.market-evidence-dual-card--market.market-evidence-dual-card--supported { border-color: rgba(16, 185, 129, 0.35); }

.market-evidence-comps-heading {
    font-size: 0.95rem;
    margin: 12px 0 8px;
    color: #fff;
}
.market-evidence-comps-heading--secondary {
    color: var(--text-muted);
    font-weight: 600;
}
.market-evidence-score-note {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
    max-width: 14rem;
}
.market-evidence-row--same-ward td:first-child {
    box-shadow: inset 3px 0 0 #38bdf8;
}
.market-evidence-ward-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #7dd3fc;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    vertical-align: middle;
}
.market-evidence-zillow-btn {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #e0f2fe;
    background: rgba(14, 165, 233, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.45);
    text-decoration: none;
    white-space: nowrap;
}
.market-evidence-zillow-btn:hover {
    background: rgba(14, 165, 233, 0.35);
    color: #fff;
}
.market-evidence-summary-muted {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.dispute-readiness-breakdown {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin: 12px 0 14px;
}
.dispute-readiness-breakdown th,
.dispute-readiness-breakdown td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}
.dispute-readiness-breakdown-total td {
    font-weight: 700;
    color: #fff;
}
.dispute-readiness-narrative {
    margin: 8px 0 4px;
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.market-evidence-strength-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 4px;
    flex-shrink: 0;
}

.market-evidence-strength--supported .market-evidence-strength-dot { background: #10b981; }
.market-evidence-strength--preliminary .market-evidence-strength-dot { background: #3b82f6; }
.market-evidence-strength--mixed .market-evidence-strength-dot { background: #eab308; }
.market-evidence-strength--review .market-evidence-strength-dot { background: #ef4444; }

.market-evidence-strength-label {
    font-weight: 700;
    margin: 0 0 4px;
    color: #fff;
}

.market-evidence-strength-text {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.market-evidence-table-wrap {
    overflow-x: auto;
    margin-bottom: 16px;
}

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

.market-evidence-table th,
.market-evidence-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.market-evidence-summary ul {
    margin: 0 0 12px;
    padding-left: 20px;
    line-height: 1.6;
}

.market-evidence-disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 16px 0 0;
    line-height: 1.5;
}

.valuation-range-chart {
    margin: 18px 0;
    padding: 14px;
    background: #0e0e11;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.valuation-range-track {
    position: relative;
    height: 28px;
    margin: 12px 0 8px;
}

.valuation-range-bar {
    position: absolute;
    inset: 10px 0;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.5), rgba(59, 130, 246, 0.5), rgba(239, 68, 68, 0.5));
    border-radius: 4px;
}

.valuation-range-marker {
    position: absolute;
    top: 0;
    width: 3px;
    height: 28px;
    transform: translateX(-50%);
    border-radius: 2px;
}

.valuation-range-marker--median { background: #38bdf8; }
.valuation-range-marker--assessment { background: #ef4444; width: 4px; }

.dispute-readiness-card {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(220, 38, 38, 0.35);
    border-radius: var(--radius-md);
    background: rgba(220, 38, 38, 0.06);
}

.market-ward-context {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    font-size: 0.88rem;
    color: var(--text-muted);
}

.market-ward-context-stats {
    margin: 8px 0;
    padding-left: 18px;
}

/* Board of Review education page */
.bor-page-wrapper {
    padding-bottom: 96px;
}

.bor-page-wrapper .bor-content {
    max-width: 920px;
}

.bor-hero-container {
    max-width: 1100px;
    margin-bottom: 28px;
}

.bor-hero-graphic {
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.bor-page-header {
    margin-bottom: 40px;
}

.bor-kicker {
    color: #fca5a5;
    font-weight: 600;
    font-size: 1.05rem;
    margin: 12px 0 8px;
}

.bor-hero-title {
    font-size: clamp(1.85rem, 4vw, 2.45rem);
    line-height: 1.15;
}

.bor-hero-date {
    color: #fecaca;
    font-weight: 700;
}

.bor-hero-lead {
    font-size: 1.12rem;
    color: #e4e4e7;
}

.bor-hero-support {
    color: var(--text-muted);
    max-width: 780px;
}

.bor-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0;
}

.bor-deadline-badge {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 22px;
    border-radius: var(--radius-md);
    border: 2px solid rgba(220, 38, 38, 0.65);
    background: linear-gradient(145deg, rgba(127, 29, 29, 0.35), rgba(9, 9, 11, 0.9));
    margin: 8px 0 16px;
}

.bor-deadline-badge-label {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fca5a5;
    font-weight: 700;
}

.bor-deadline-loc {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.bor-alert {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    margin: 16px 0;
    font-size: 0.95rem;
}

.bor-alert-warning {
    border: 1px solid rgba(251, 191, 36, 0.45);
    background: rgba(251, 191, 36, 0.08);
    color: #fde68a;
}

.bor-legal-notice {
    font-size: 0.9rem;
    color: var(--text-muted);
    border-left: 3px solid #dc2626;
    padding-left: 14px;
    margin-top: 20px;
}

.bor-section {
    margin: 48px 0;
}

.bor-section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    margin: 0 0 16px;
}

.bor-reassurance-card {
    padding: 28px;
    border-color: rgba(34, 197, 94, 0.35);
    background: linear-gradient(160deg, rgba(22, 101, 52, 0.12), rgba(20, 20, 23, 0.95));
}

.bor-flow {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin: 24px 0;
    max-width: 420px;
}

.bor-flow-step {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: #141417;
}

.bor-flow-step-active {
    border-color: rgba(220, 38, 38, 0.55);
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.2);
}

.bor-flow-label {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: #fca5a5;
}

.bor-flow-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.bor-flow-arrow {
    text-align: center;
    color: #71717a;
    font-size: 1.2rem;
}

.bor-flow-foot {
    margin-top: 16px;
}

.bor-card-grid {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.bor-card-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.bor-card-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.bor-info-card {
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: #141417;
}

.bor-info-card h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    color: #fecaca;
}

.bor-info-card-wide {
    grid-column: 1 / -1;
}

.bor-tool-cards .bor-info-card-wide {
    grid-column: span 1;
}

@media (min-width: 640px) {
    .bor-tool-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .bor-tool-cards .bor-info-card-wide {
        grid-column: 1 / -1;
    }
}

.bor-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bor-step {
    padding: 24px;
    position: relative;
}

.bor-step-num {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fca5a5;
    margin-bottom: 8px;
}

.bor-contact-line {
    font-size: 0.95rem;
}

.bor-quote {
    margin: 16px 0;
    padding: 16px;
    border-left: 3px solid #dc2626;
    color: #e4e4e7;
    font-style: italic;
}

.bor-value-mockup {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--border-color);
}

.bor-value-mockup label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.bor-value-mockup input {
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: #0c0c0e;
    color: #fff;
    font-size: 1rem;
    min-height: 48px;
}

.bor-value-diff {
    font-size: 0.95rem;
}

.bor-lead {
    color: var(--text-muted);
    max-width: 720px;
}

.bor-evidence-card {
    padding: 22px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.bor-evidence-strong {
    background: rgba(34, 197, 94, 0.06);
    border-color: rgba(34, 197, 94, 0.25);
}

.bor-evidence-weak {
    background: rgba(113, 113, 122, 0.08);
}

.bor-evidence-card h3 {
    margin-top: 0;
    font-size: 1.05rem;
}

.bor-highlight {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.35);
    color: #fecaca;
}

.bor-muted {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.bor-present-list {
    margin-bottom: 20px;
}

.bor-framework {
    padding: 22px;
}

.bor-framework-lead {
    font-style: italic;
    color: #e4e4e7;
}

.bor-framework-items {
    display: grid;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.bor-framework-items li {
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.92rem;
}

.bor-openbook-result {
    padding: 28px;
    margin: 48px 0;
}

.bor-timeline {
    display: grid;
    gap: 0;
    margin: 24px 0;
    border-left: 3px solid rgba(220, 38, 38, 0.45);
    padding-left: 20px;
}

.bor-timeline-item {
    position: relative;
    padding: 16px 0 16px 8px;
}

.bor-timeline-item::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 22px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3f3f46;
    border: 2px solid #71717a;
}

.bor-timeline-done::before {
    background: #166534;
    border-color: #4ade80;
}

.bor-timeline-now::before {
    background: #dc2626;
    border-color: #fca5a5;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.25);
}

.bor-timeline-final::before {
    background: #7f1d1d;
    border-color: #fca5a5;
}

.bor-timeline-when {
    display: block;
    font-weight: 700;
    color: #fecaca;
    font-size: 0.95rem;
}

.bor-timeline-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.bor-timeline-status {
    font-size: 0.82rem;
    color: #4ade80;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

@media (min-width: 900px) {
    .bor-timeline {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        border-left: none;
        padding-left: 0;
        gap: 12px;
    }

    .bor-timeline-item {
        flex: 1;
        padding: 18px 16px;
        border-radius: var(--radius-md);
        border: 1px solid var(--border-color);
        background: #141417;
    }

    .bor-timeline-item::before {
        display: none;
    }
}

.bor-resource-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bor-resource-buttons .btn {
    justify-content: center;
    min-height: 48px;
}

.bor-sources-verified {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.bor-final-cta {
    padding: 32px;
    margin: 48px 0 32px;
    border-color: rgba(220, 38, 38, 0.5);
    background: linear-gradient(165deg, rgba(127, 29, 29, 0.35), #141417);
}

.bor-final-cta h2 {
    margin-top: 0;
    color: #fecaca;
}

.bor-final-foot {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.bor-site-disclaimer {
    font-size: 0.85rem;
    color: #71717a;
    line-height: 1.65;
    padding-bottom: 32px;
}

.bor-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(9, 9, 11, 0.92);
    border-top: 1px solid rgba(220, 38, 38, 0.45);
    backdrop-filter: blur(8px);
}

body.bor-has-sticky-cta {
    padding-bottom: 72px;
}

@media (min-width: 769px) {
    .bor-sticky-cta {
        display: none;
    }
}

.bor-pa115a-cta-block {
    margin-top: 20px;
    padding: 20px;
    border-radius: var(--radius-md);
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(220, 38, 38, 0.45);
    text-align: center;
}

.bor-pa115a-cta {
    width: 100%;
    max-width: 420px;
    min-height: 52px;
    font-size: 1.05rem;
}

.bor-pa115a-cta-sub {
    margin: 12px 0 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.packet-pa115a-block {
    border-color: rgba(220, 38, 38, 0.4);
}

.packet-pa115a-btn {
    min-height: 52px;
    font-size: 1.05rem;
    margin: 8px 0 12px;
}

.packet-muted-print {
    font-size: 0.82rem;
    color: var(--text-muted);
    word-break: break-all;
}

.date-card-muted {
    opacity: 0.85;
    border-style: dashed;
}

.date-card-primary {
    border-color: rgba(220, 38, 38, 0.45);
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.15);
}

.packet-bor-single-card {
    max-width: 520px;
    padding: 20px;
    border-radius: var(--radius-md);
}

.footer-dates-note {
    display: block;
    margin-top: 8px;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.packet-bor-flow-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.packet-bor-flow-list li {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
}

.packet-bor-flow-list li strong {
    display: block;
    color: #fecaca;
    margin-bottom: 6px;
}

.packet-bor-flow-list li span {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.packet-bor-callout,
.bor-hearing-callout {
    padding: 16px 18px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: rgba(56, 189, 248, 0.08);
    margin: 16px 0;
    line-height: 1.6;
}

.packet-subheading,
.bor-subheading {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin: 28px 0 12px;
    color: #e4e4e7;
}
