/* ============================================================
   SITE.CSS — Complete Design System (V3 Coral/Gold)
   Single stylesheet for all 17 pages + all components
   Light + Dark themes via [data-theme="dark"]
   Release asset: v0.4 consistency, cache rotation 2
   ============================================================ */

/* ============================================================
   LAYER 1: DESIGN TOKENS & RESETS
   ============================================================ */

@font-face {
    font-family: 'Poppins';
    font-weight: 400;
    font-style: normal;
    src: url('/assets/fonts/poppins-latin-400-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-weight: 500;
    font-style: normal;
    src: url('/assets/fonts/poppins-latin-500-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-weight: 600;
    font-style: normal;
    src: url('/assets/fonts/poppins-latin-600-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-weight: 700;
    font-style: normal;
    src: url('/assets/fonts/poppins-latin-700-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-weight: 400;
    font-style: normal;
    src: url('/assets/fonts/inter-latin-400-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-weight: 500;
    font-style: normal;
    src: url('/assets/fonts/inter-latin-500-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-weight: 600;
    font-style: normal;
    src: url('/assets/fonts/inter-latin-600-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-weight: 700;
    font-style: normal;
    src: url('/assets/fonts/inter-latin-700-normal.woff2') format('woff2');
}

:root {
    /* ---- COLORS ---- */
    --color-primary: #B5411E;
    --color-primary-dark: #943116;
    --color-primary-light: #F47B45;

    --color-secondary: #C96616;
    --color-secondary-dark: #9A470B;
    --color-secondary-light: #FFB15C;
    --brand-coral: #F36C42;
    --brand-orange: #F68A45;
    --brand-gold: #FFB45D;
    --brand-gradient: linear-gradient(135deg, var(--brand-coral) 0%, var(--brand-orange) 52%, var(--brand-gold) 100%);
    --brand-gradient-ink: #28140E;

    --color-accent: #4A90E2;
    --color-success: #26734D;
    --color-warning: #9B4D00;
    --color-error: #D32F2F;
    --color-info: #0288D1;

    --color-warm-gray: #F5F3F0;
    --color-dark-gray: #2D2D2D;

    --color-text: #1F1F1F;
    --color-text-light: #666666;
    --color-text-lighter: #707070;
    --color-border: #E8E8E8;
    --color-border-light: #F0F0F0;

    /* ---- SEMANTIC VARIABLES (for backward compatibility) ---- */
    --paper: #ffffff;
    --paper-alt: #f8f5f0;
    --surface: #ffffff;
    --surface-hover: #f8f5f0;

    --ink: #1a2d4a;
    --ink-dim: #5F6672;
    --ink-soft: #8b94a4;

    --line: #e5ddd5;
    --line-soft: #f0ebe5;

    --accent: #B5411E;
    --accent-strong: #943116;
    --accent-light: #F47B45;
    --accent-tint: #fef4f2;

    --secondary: #C96616;
    --secondary-strong: #9A470B;
    --secondary-light: #FFB15C;
    --secondary-tint: #fdf9f4;

    --heat-critical: #D32F2F;
    --success-strong: #26734D;
    --success-tint: #E8F5E9;
    --info-strong: #0277BD;
    --warning-strong: #783900;
    --warning-tint: #FFF3E0;
    --impact-strong: #C2185B;
    --impact-tint: #FCE4EC;
    --neutral-tint: #F5F5F5;

    /* ---- SPACING ---- */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    --spacing-xxxl: 64px;

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 2.5rem;
    --space-8: 3rem;
    --space-9: 3.5rem;
    --space-10: 4rem;
    --space-12: 5rem;
    --space-20: 8rem;

    /* ---- TYPOGRAPHY ---- */
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-serif: Georgia, 'Times New Roman', serif;
    --font-display: 'Poppins', sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', 'Courier New', monospace;

    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.5rem;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3rem;
    --text-6xl: 3.5rem;

    /* ---- LINE HEIGHT ---- */
    --line-height-tight: 1.1;
    --line-height-snug: 1.22;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.65;
    --line-height-loose: 1.8;

    --lh-tight: 1.1;
    --lh-snug: 1.22;
    --lh-normal: 1.5;
    --lh-relaxed: 1.65;
    --lh-loose: 1.8;

    /* ---- LETTER SPACING ---- */
    --letter-spacing-tight: -0.02em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.04em;
    --letter-spacing-xwide: 0.1em;

    --ls-tight: -0.02em;
    --ls-normal: 0;
    --ls-wide: 0.04em;
    --ls-xwide: 0.1em;

    /* ---- SHADOWS ---- */
    --shadow-sm: 0 1px 3px rgba(31, 31, 31, 0.08);
    --shadow-md: 0 4px 12px rgba(31, 31, 31, 0.12);
    --shadow-lg: 0 12px 28px rgba(31, 31, 31, 0.15);
    --shadow-xl: 0 20px 40px rgba(31, 31, 31, 0.18);
    --shadow-focus: 0 0 0 3px #fef4f2, 0 0 0 5px #E8704A;

    /* ---- TRANSITIONS ---- */
    --duration-fast: 120ms;
    --duration-base: 180ms;
    --duration-slow: 240ms;
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-fast: 120ms ease-out;
    --ease: 180ms ease;
    --ease-slow: 240ms ease-in-out;

    /* ---- LAYOUT ---- */
    --max-width: 1400px;
    --content-width: 1200px;
    --prose-width: 65ch;
    --container-narrow: 760px;
    --section-padding: clamp(3rem, 8vw, 6rem);
    --color-bg-secondary: var(--paper-alt);
    --color-surface: var(--paper);
    --color-accent-warning: var(--color-warning);
    --header-height: 64px;
    --border: var(--color-border);
    --border-color: var(--color-border);
    --surface-alt: var(--paper-alt);
    --z-index: 1;
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-primary: #FFAD63;
        --color-primary-dark: #FFD09A;
        --color-primary-light: #F47B45;
        --color-secondary: #FFC06F;
        --color-secondary-dark: #FFE0AE;
        --color-secondary-light: #C96616;
        --color-success: #77D5AA;
        --color-warning: #FFB45E;
        --color-warm-gray: #1A1A1A;
        --color-dark-gray: #F5F3F0;
        --color-text: #FFFFFF;
        --color-text-light: #CCCCCC;
        --color-text-lighter: #ADADAD;
        --color-border: #333333;
        --color-border-light: #222222;

        --paper: #0F0F0F;
        --paper-alt: #1A1A1A;
        --surface: #0F0F0F;
        --surface-hover: #1A1A1A;

        --ink: #FFFFFF;
        --ink-dim: #CCCCCC;
        --ink-soft: #B8B8B8;

        --line: #333333;
        --line-soft: #222222;
        --accent: #FFAD63;
        --accent-strong: #FFD09A;
        --accent-light: #F47B45;
        --accent-tint: rgba(255, 174, 146, 0.14);
        --secondary: #FFC06F;
        --secondary-strong: #FFE0AE;
        --secondary-light: #C96616;
        --secondary-tint: rgba(246, 188, 123, 0.13);
        --warning-strong: #FFB45E;
        --warning-tint: rgba(255, 180, 94, 0.14);
        --success-tint: rgba(119, 213, 170, 0.14);
    }
}

[data-theme="dark"] {
    --color-primary: #FFAD63;
    --color-primary-dark: #FFD09A;
    --color-primary-light: #F47B45;
    --color-secondary: #FFC06F;
    --color-secondary-dark: #FFE0AE;
    --color-secondary-light: #C96616;
    --color-success: #77D5AA;
    --color-warning: #FFB45E;
    --color-warm-gray: #1A1A1A;
    --color-dark-gray: #F5F3F0;
    --color-text: #FFFFFF;
    --color-text-light: #CCCCCC;
    --color-text-lighter: #ADADAD;
    --color-border: #333333;
    --color-border-light: #222222;

    --paper: #0F0F0F;
    --paper-alt: #1A1A1A;
    --surface: #0F0F0F;
    --surface-hover: #1A1A1A;

    --ink: #FFFFFF;
    --ink-dim: #CCCCCC;
    --ink-soft: #B8B8B8;

    --line: #333333;
    --line-soft: #222222;
    --accent: #FFAD63;
    --accent-strong: #FFD09A;
    --accent-light: #F47B45;
    --accent-tint: rgba(255, 174, 146, 0.14);
    --secondary: #FFC06F;
    --secondary-strong: #FFE0AE;
    --secondary-light: #C96616;
    --secondary-tint: rgba(246, 188, 123, 0.13);
    --warning-strong: #FFB45E;
    --warning-tint: rgba(255, 180, 94, 0.14);
    --success-tint: rgba(119, 213, 170, 0.14);
    color-scheme: dark;
}

[data-theme="light"] {
    --color-primary: #B5411E;
    --color-primary-dark: #943116;
    --color-primary-light: #F47B45;
    --color-secondary: #C96616;
    --color-secondary-dark: #9A470B;
    --color-secondary-light: #FFB15C;
    --color-success: #26734D;
    --color-warning: #9B4D00;
    --color-warm-gray: #F5F3F0;
    --color-dark-gray: #2D2D2D;
    --color-text: #1F1F1F;
    --color-text-light: #666666;
    --color-text-lighter: #707070;
    --color-border: #E8E8E8;
    --color-border-light: #F0F0F0;

    --paper: #ffffff;
    --paper-alt: #f8f5f0;
    --surface: #ffffff;
    --surface-hover: #f8f5f0;

    --ink: #1a2d4a;
    --ink-dim: #5F6672;
    --ink-soft: #6B7280;

    --line: #e5ddd5;
    --line-soft: #f0ebe5;
    --accent: #B5411E;
    --accent-strong: #943116;
    --accent-light: #F47B45;
    --accent-tint: #fef4f2;
    --secondary: #C96616;
    --secondary-strong: #9A470B;
    --secondary-light: #FFB15C;
    --secondary-tint: #fdf9f4;
    --warning-strong: #783900;
    --warning-tint: #FFF3E0;
}

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

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    color-scheme: light;
}

/* ============================================================
   LAYER 2: BASE ELEMENTS
   ============================================================ */

body {
    min-width: 320px;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--paper);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

main {
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: var(--line-height-snug);
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: var(--font-size-5xl);
}

h2 {
    font-size: var(--font-size-4xl);
}

h3 {
    font-size: var(--font-size-3xl);
}

h4 {
    font-size: var(--font-size-2xl);
}

h5 {
    font-size: var(--font-size-xl);
}

h6 {
    font-size: var(--font-size-lg);
}

p {
    margin-bottom: var(--spacing-md);
}

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

a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

button {
    cursor: pointer;
    font-family: var(--font-sans);
    border: none;
    background: transparent;
}

input, textarea, select {
    font-family: var(--font-sans);
}

/* ============================================================
   LAYER 3: LAYOUT SYSTEM GLOBALS
   ============================================================ */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.container-narrow {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.container-wide {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.content {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}


/* Section rhythm and spacing utilities */
section {
    position: relative;
}

.section-padding {
    padding: clamp(3rem, 8vw, 6rem) 0;
}

.section-padding-top {
    padding-top: clamp(3rem, 8vw, 6rem);
}

.section-padding-bottom {
    padding-bottom: clamp(3rem, 8vw, 6rem);
}

/* Grid primitives */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
}

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .filterbar {
        top: 56px;
    }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

/* Spacing utilities */
.mt-xs { margin-top: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.mx-auto { margin-left: auto; margin-right: auto; }
.my-auto { margin-top: auto; margin-bottom: auto; }

.pt-md { padding-top: var(--spacing-md); }
.pb-md { padding-bottom: var(--spacing-md); }
.px-md { padding-left: var(--spacing-md); padding-right: var(--spacing-md); }
.py-md { padding-top: var(--spacing-md); padding-bottom: var(--spacing-md); }

/* Visibility */
.hidden {
    display: none !important;
}

.invisible {
    visibility: hidden;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Typography utilities */
.font-bold {
    font-weight: 700;
}

.font-semi-bold {
    font-weight: 600;
}

.font-normal {
    font-weight: 400;
}

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

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

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

/* ============================================================
   LAYER 4: HEADER (FROZEN SPEC)
   Height: 64-72px, one row
   Left: 40px logo + "LEGAL, NOT JUST." gradient text + "AUSTRALIA" small
   Centre/Right: 5 nav links horizontal
   Far right: 40px language pill + 40px theme toggle
   Mobile (375px): Compact row or hamburger
   ============================================================ */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 64px;
    display: flex;
    align-items: center;
    background: var(--paper);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: background-color var(--ease), border-color var(--ease);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: inherit;
    text-decoration: none;
    min-width: 0;
    flex-shrink: 0;
}

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

.logo-mark {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    color: var(--color-primary);
}

.brand-gradient-start {
    stop-color: var(--brand-coral);
}

.brand-gradient-middle {
    stop-color: var(--brand-orange);
}

.brand-gradient-end {
    stop-color: var(--brand-gold);
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.logo-main {
    margin: 0;
    background: var(--brand-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.logo-sub {
    color: var(--color-text-light);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-primary {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xl);
    margin: 0 var(--spacing-lg);
}

.nav-primary a {
    color: var(--color-text);
    font-size: var(--font-size-sm);
    font-weight: 500;
    white-space: nowrap;
    transition: color var(--ease);
    text-decoration: none;
}

.nav-primary a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

[data-theme="dark"] .nav-primary a {
    color: #E0E0E0;
    font-weight: 600;
}

[data-theme="dark"] .nav-primary a:hover {
    color: var(--color-secondary);
}

.nav-controls {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--color-text);
}

.nav-toggle svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
}

#lang-selector {
    position: relative;
}

.lang-selector-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    background: var(--brand-gradient);
    color: var(--brand-gradient-ink);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: var(--font-size-xs);
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 5px 16px rgba(243, 108, 66, 0.18);
    transition: transform var(--ease), box-shadow var(--ease), filter var(--ease);
}

.lang-selector-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 22px rgba(243, 108, 66, 0.28);
    filter: saturate(1.08);
}

.lang-selector-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--paper);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    margin-top: 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
}

.lang-selector-menu:not([hidden]) {
    display: block;
}

.lang-selector-toggle:focus ~ .lang-selector-menu,
.lang-selector-menu:hover {
    display: block;
}

.lang-selector-item {
    display: block;
    padding: 12px 16px;
    color: var(--color-text);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: background-color var(--ease), color var(--ease);
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.lang-selector-item:hover,
.lang-selector-item:focus {
    background: var(--surface-hover);
    color: var(--color-primary);
}

.lang-selector-item.selected {
    background: var(--accent-tint);
    color: var(--color-primary);
    font-weight: 600;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--color-text);
    transition: transform var(--ease);
}

.theme-toggle:hover {
    transform: rotate(20deg);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.theme-toggle .moon,
.theme-toggle .sun {
    transition: opacity var(--duration-base) var(--ease-in-out);
}

.theme-toggle .moon {
    opacity: 0;
}

.theme-toggle .sun {
    opacity: 1;
}

[data-theme="dark"] .theme-toggle .moon {
    opacity: 1;
}

[data-theme="dark"] .theme-toggle .sun {
    opacity: 0;
}

/* Mobile header (375px) */
@media (max-width: 768px) {
    header {
        height: 56px;
    }

    .header-content {
        padding: 0 var(--spacing-md);
    }

    .logo-mark {
        width: 44px;
        height: 44px;
    }

    .nav-toggle {
        display: inline-flex;
        order: 2;
        margin-left: auto;
    }

    .nav-primary {
        position: absolute;
        top: 100%;
        right: var(--spacing-md);
        left: var(--spacing-md);
        display: none;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: var(--spacing-sm);
        border: 1px solid var(--color-border);
        border-radius: 0 0 12px 12px;
        background: var(--paper);
        box-shadow: var(--shadow-lg);
    }

    .nav-primary.is-open {
        display: flex;
    }

    .nav-primary a {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 10px 12px;
        border-radius: 6px;
    }

    .nav-primary a:hover,
    .nav-primary a:focus-visible {
        background: var(--surface-hover);
    }

    .logo-main {
        font-size: 12px;
    }

    .logo-sub {
        font-size: 9px;
    }

    .nav-controls {
        order: 3;
        gap: var(--spacing-sm);
    }

    .lang-selector-toggle {
        min-height: 44px;
    }
}

/* ============================================================
   LAYER 5: FOOTER
   ============================================================ */

footer {
    background: var(--paper-alt);
    border-top: 1px solid var(--color-border);
    margin-top: var(--spacing-xxxl);
    padding: var(--spacing-xxxl) var(--spacing-lg);
    transition: background-color var(--ease), border-color var(--ease);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    max-width: var(--max-width);
    margin: 0 auto;
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--color-border);
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.footer-section h3 {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin: 0;
    color: var(--color-text);
}

.footer-section a {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    transition: color var(--ease);
}

.footer-section a:hover {
    color: var(--color-primary);
}

#socialIconsContainer {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--color-text);
    background: var(--surface-hover);
    border-radius: 8px;
    transition: background-color var(--ease), color var(--ease);
}

.social-icon:hover {
    background: var(--color-primary);
    color: white;
}

.social-icon svg {
    width: 16px;
    height: 16px;
}

.footer-bottom {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--spacing-md);
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: var(--spacing-lg);
    color: var(--color-text-light);
    font-size: var(--font-size-sm);
}

.footer-version {
    font-weight: 600;
    color: var(--color-text);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .footer-bottom {
        flex-direction: column;
    }
}

/* ============================================================
   LAYER 6: BUTTONS & INTERACTIVE ELEMENTS
   ============================================================ */

.btn,
.btn-primary,
.btn-secondary {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: var(--font-size-sm);
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: transform var(--ease), box-shadow var(--ease), background-color var(--ease), border-color var(--ease), color var(--ease);
}

.btn-primary {
    background: var(--brand-gradient);
    color: var(--brand-gradient-ink);
    box-shadow: 0 6px 18px rgba(243, 108, 66, 0.2);
}

.btn-secondary {
    border-color: var(--color-primary);
    background: transparent;
    color: var(--color-primary);
}

.btn-primary:hover {
    opacity: 0.92;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    filter: brightness(1.08);
}

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


.btn-secondary:hover {
    background: var(--accent-tint);
    color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
}

.state-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.state-btn,
.metric-btn {
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--color-text);
    font: 600 var(--font-size-sm)/1.2 var(--font-sans);
    cursor: pointer;
    transition: background-color var(--ease), border-color var(--ease), color var(--ease), transform var(--ease);
}

.state-btn:hover,
.metric-btn:hover {
    border-color: var(--color-primary);
    background: var(--accent-tint);
    color: var(--color-primary);
}

.state-btn.active,
.metric-btn.active {
    border-color: var(--brand-orange);
    background: var(--brand-gradient);
    color: var(--brand-gradient-ink);
}

.reactions-container {
    position: relative;
    display: inline-block;
}

.reactions-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: transparent;
    color: var(--color-text-light);
    font: 600 var(--font-size-sm)/1.2 var(--font-sans);
    cursor: pointer;
    transition: background-color var(--ease), border-color var(--ease), color var(--ease);
}

.reactions-button:hover:not(.has-reaction) {
    background: var(--surface-hover);
    color: var(--color-text);
}

.reactions-button.has-reaction {
    border-color: var(--brand-orange);
    background: var(--brand-gradient);
    color: var(--brand-gradient-ink);
}

.reactions-svg {
    display: block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.reactions-label,
.reactions-count-container {
    display: inline-flex;
    align-items: center;
}

.reactions-count-container {
    gap: 4px;
}

.reactions-picker {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    z-index: 1000;
    display: flex;
    gap: 4px;
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--paper);
    box-shadow: var(--shadow-lg);
    transform: translateX(-50%);
    white-space: nowrap;
}

.reactions-picker-item {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
}

.reactions-picker-item:hover {
    background: var(--surface-hover);
}

.reactions-picker-label {
    display: none;
}

.reactions-count-cluster {
    position: relative;
    display: inline-flex;
    min-width: 32px;
    height: 16px;
    align-items: center;
}

.reactions-count-icon {
    position: absolute;
    left: calc(var(--z-index) * -8px);
    z-index: var(--z-index);
    display: inline-flex;
    width: 16px;
    height: 16px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: var(--paper);
}

.reactions-count-icon .reactions-svg {
    width: 12px;
    height: 12px;
}

.reactions-count-text {
    margin-left: 20px;
    color: var(--color-text-light);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.btn + .btn,
.btn + .btn-primary,
.btn + .btn-secondary,
.btn-primary + .btn,
.btn-primary + .btn-primary,
.btn-primary + .btn-secondary,
.btn-secondary + .btn,
.btn-secondary + .btn-primary,
.btn-secondary + .btn-secondary {
    margin-left: var(--spacing-sm);
}

.btn-back, .btn-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface-hover);
    color: var(--color-text);
    transition: background-color var(--ease), color var(--ease);
}

.btn-back:hover, .btn-next:hover {
    background: var(--color-primary);
    color: white;
}

/* ============================================================
   LAYER 7: CARDS & CONTAINERS
   ============================================================ */

.card {
    background: var(--paper);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: var(--spacing-lg);
    transition: all var(--ease);
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-border);
}

.data-card {
    background: var(--paper);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: var(--spacing-md);
    transition: all var(--ease);
}

.data-card:hover {
    box-shadow: var(--shadow-sm);
}

.chart-card {
    background: var(--paper);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: var(--spacing-lg);
}

.chart-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.chart-legend-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

.chart-legend-color {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

/* ============================================================
   LAYER 8: BADGES & CHIPS
   ============================================================ */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    background: var(--accent-tint);
    color: var(--color-primary);
    text-decoration: none;
}

.badge.primary {
    background: var(--accent-tint);
    color: var(--color-primary);
}

.badge.secondary {
    background: var(--secondary-tint);
    color: var(--color-secondary);
}

.badge-sample {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: var(--font-size-xs);
    background: var(--surface-hover);
    color: var(--color-text);
}

.coming-soon-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    background: var(--warning-tint);
    color: var(--color-warning);
}

/* ============================================================
   LAYER 9: FORMS & INPUTS
   ============================================================ */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: var(--font-size-base);
    background: var(--paper);
    color: var(--color-text);
    transition: border-color var(--ease), box-shadow var(--ease);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--shadow-focus);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder,
input[type="password"]::placeholder,
textarea::placeholder {
    color: var(--color-text-lighter);
}

label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--color-text);
}

.required::after {
    content: " *";
    color: var(--color-error);
}

/* ============================================================
   LAYER 10: HERO SECTION — FULL VIEWPORT VIDEO BACKGROUND
   ============================================================ */
/* [HERO FIX 2026-07-28 ac676030] 100svh full-viewport, no rounded edges, clamp type */

.hero {
    position: relative;
    width: 100%;
    height: 100svh;
    min-height: 100svh;
    max-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--paper);
}

.hero-video,
.hero-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    border-radius: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    border-radius: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: clamp(300px, 90vw, 55ch);
    text-align: center;
    padding: 0 var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    margin-bottom: clamp(0.5rem, 2vw, 1.5rem);
    color: #fff;
    font-size: clamp(1.75rem, 8vw, 3.5rem);
    line-height: var(--line-height-tight);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    margin-bottom: clamp(0.75rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(0.95rem, 2.5vw, 1.125rem);
    line-height: var(--line-height-relaxed);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.hero-quote {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: clamp(0.5rem, 1.5vw, 1rem);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    line-height: var(--line-height-snug);
}

.hero-cta {
    display: flex;
    gap: clamp(0.5rem, 2vw, 1rem);
    justify-content: center;
    flex-wrap: wrap;
}

@media (prefers-reduced-motion: no-preference) {
    .hero-video {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 100svh;
        min-height: 100svh;
    }

    .hero-content h1 {
        font-size: var(--font-size-4xl);
    }

    .hero-content p {
        font-size: var(--font-size-base);
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
    }
}

/* ============================================================
   LAYER 11: SECTION LAYOUTS
   ============================================================ */

.section-headline {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg) 0;
}

.section-headline h2 {
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

.section-headline p {
    color: var(--color-text-light);
    font-size: var(--font-size-lg);
}

[data-theme="dark"] .section-headline h2 {
    color: #FFFFFF;
}

[data-theme="dark"] .section-headline p {
    color: #D0D0D0;
}

/* ============================================================
   LAYER 12: STATS BAND — IMPROVED CONTRAST
   ============================================================ */

.stats-band {
    background: #111111;
    color: white;
    padding: clamp(3rem, 8vw, 6rem) var(--spacing-lg);
    margin-top: clamp(3rem, 8vw, 6rem);
}

.stats-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.stats-headline {
    text-align: center;
    margin-bottom: var(--spacing-xxxl);
}

.stats-headline h2 {
    background: var(--brand-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin: 0 0 var(--spacing-md) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-xl);
    padding: var(--spacing-lg);
}

.stat-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: var(--spacing-lg);
    transition: all var(--ease);
    text-align: center;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.stat-card a {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    color: inherit;
    text-decoration: none;
}

.stat-card a:hover {
    text-decoration: none;
}

.stats-band .stat-number {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    background: var(--brand-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: var(--spacing-sm);
    display: block;
}

.stats-band .stat-label {
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    display: block;
    margin-top: var(--spacing-xs);
}

.stat-source {
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: var(--spacing-md);
}

.stat-source a {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: white;
    text-decoration: underline;
}

.stat-source a:hover {
    opacity: 0.85;
}

.metric-label,
.metric-value {
    color: white;
}

.metric-label {
    font-size: var(--font-size-sm);
    font-weight: 400;
}

.metric-value {
    font-size: var(--font-size-2xl);
    font-weight: 600;
}

.stats-cta {
    text-align: center;
    margin-top: var(--spacing-xxxl);
    padding-top: var(--spacing-xxl);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-cta p {
    font-size: var(--font-size-lg);
    margin: 0;
    color: white;
}

/* ============================================================
   LAYER 13: STORIES & GRID LAYOUTS
   ============================================================ */

.stories {
    padding: var(--section-padding);
}

.stories-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.story-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.page-stories .story-layout {
    display: block;
    max-width: 800px;
    margin: var(--spacing-xl) auto 0;
}

.page-stories .wizard-progress {
    width: 100%;
}

.page-stories .story-form {
    width: 100%;
}

.story-card {
    background: var(--paper);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--ease);
}

.story-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.story-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin: 0;
    padding: var(--spacing-md);
    color: var(--color-text);
}

.stories-footer {
    text-align: center;
    margin-top: var(--spacing-xxxl);
    padding-top: var(--spacing-xxl);
    border-top: 1px solid var(--color-border);
}

.reform-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.reform-card {
    background: var(--paper);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: var(--spacing-lg);
    transition: all var(--ease);
}

.reform-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.reform-card h3 {
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

.reform-card p {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    margin: 0;
}

.reform-card details {
    margin-top: var(--space-3);
}

.reform-card summary {
    padding: var(--space-2) 0;
    color: var(--accent);
    cursor: pointer;
    font-weight: 600;
}

.reform-card summary:hover {
    text-decoration: underline;
}

.reform-details-content {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--line-soft);
    color: var(--ink);
    line-height: 1.7;
}

.reform-details-content h4 {
    margin: var(--space-5) 0 var(--space-2);
    font-size: var(--font-size-base);
}

.reform-details-content ul {
    margin: 0 0 var(--space-4);
    padding-left: 1.5rem;
}

.reform-details-content li {
    margin-bottom: var(--space-2);
}

.reform-sources {
    font-size: var(--font-size-xs);
    color: var(--color-text-lighter);
    margin-top: var(--spacing-md);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.lawyer-card {
    background: var(--paper);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: var(--spacing-lg);
}

.lawyer-practice {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
}

.lawyer-state {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

/* ============================================================
   LAYER 14: NAVIGATION & PAGINATION
   ============================================================ */

.page-header {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-lg);
    background: var(--paper-alt);
    border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
    margin: 0 0 var(--spacing-sm) 0;
}

.page-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.progress-indicator {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.progress-step {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.progress-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface-hover);
    color: var(--color-text);
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.progress-number.active {
    background: var(--brand-gradient);
    color: var(--brand-gradient-ink);
}

.progress-number.completed {
    background: var(--color-success);
    color: white;
}

.progress-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

.progress-line {
    position: absolute;
    top: 16px;
    left: 36px;
    width: 80px;
    height: 2px;
    background: var(--color-border);
}

.progress-line.active {
    background: var(--color-primary);
}

/* ============================================================
   LAYER 15: TABLES & DATA DISPLAY
   ============================================================ */

.petition-row,
.petition-card {
    background: var(--paper);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    transition: all var(--ease);
}

.petition-row:hover {
    box-shadow: var(--shadow-sm);
}

.featured-petition {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-6);
    margin: var(--space-6) 0 var(--space-8);
    padding: var(--space-7);
    border: 2px solid var(--color-primary);
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent-tint), var(--paper));
    box-shadow: var(--shadow-sm);
}

.featured-petition h3 {
    margin: var(--space-3) 0;
    font-size: var(--font-size-2xl);
}

.petition-kicker,
.petition-status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    color: var(--color-text-light);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 4px 12px;
    border-radius: 999px;
    background: #7A2E1B;
    color: #fff;
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.featured-petition-note {
    color: var(--color-text-light);
    font-size: var(--font-size-sm);
}

.petition-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
}

.featured-petition .petition-actions {
    max-width: 260px;
    align-content: center;
}

.featured-petition .petition-actions .btn {
    width: 100%;
}

.petition-hero {
    padding: clamp(3rem, 8vw, 6rem) var(--space-4);
    border-bottom: 1px solid var(--color-border);
    background:
        radial-gradient(circle at 85% 20%, rgba(212, 162, 83, 0.22), transparent 34%),
        linear-gradient(135deg, var(--color-primary-dark), #4f1d12);
    color: #fff;
}

.petition-hero .wrap {
    max-width: 900px;
}

.petition-hero .eyebrow,
.petition-hero-summary,
.petition-hero .petition-status-row {
    color: rgba(255, 255, 255, 0.88);
}

.petition-hero h1 {
    max-width: 760px;
    margin: var(--space-3) 0;
    color: #fff;
}

.petition-hero-summary {
    max-width: 720px;
    font-size: clamp(1.1rem, 3vw, 1.45rem);
}

.petition-hero .status-pill {
    background: #F3BD67;
    color: #2A1802;
}

.petition-page-shell {
    max-width: 960px;
    padding-block: var(--space-8) var(--space-12);
}

.petition-page-shell > section,
.petition-page-shell > aside {
    margin-bottom: var(--space-10);
}

.petition-gate h2 {
    margin-top: 0;
    font-size: var(--font-size-xl);
}

.petition-gate p {
    margin-bottom: 0;
}

.petition-principles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
}

.petition-principles article {
    padding: var(--space-5);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--paper);
}

.petition-principles h3 {
    font-size: var(--font-size-lg);
}

.petition-copy {
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid var(--color-border);
    border-left: 6px solid var(--color-primary);
    border-radius: 14px;
    background: var(--paper);
    box-shadow: var(--shadow-md);
}

.petition-copy-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-border);
}

.petition-copy-header h2 {
    margin-bottom: 0;
}

.word-count {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--paper-alt);
    color: var(--color-text-light);
    font-size: var(--font-size-xs);
    font-weight: 700;
}

.petition-copy ol {
    padding-left: 1.4rem;
}

.petition-copy li {
    margin-bottom: var(--space-2);
}

.source-list {
    display: grid;
    gap: var(--space-3);
    padding: 0;
    list-style: none;
}

.source-list li {
    display: grid;
    gap: var(--space-1);
    padding: var(--space-4);
    border-left: 3px solid var(--color-secondary);
    background: var(--paper-alt);
}

.source-list a {
    font-weight: 700;
}

.source-list span {
    color: var(--color-text-light);
    font-size: var(--font-size-sm);
}

.petition-next-step {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-6);
    align-items: center;
    padding: var(--space-7);
    border-radius: 16px;
    background: var(--paper-alt);
}

.petition-next-step .petition-actions {
    max-width: 310px;
}

.petition-next-step .petition-actions a {
    width: 100%;
}

.badge-trade-mark-note {
    margin-block: var(--space-5);
    text-align: left;
}

.badge-use-terms {
    max-width: 760px;
    margin: var(--space-4) auto 0;
    color: var(--color-text-light);
    font-size: var(--font-size-sm);
}

#firmsGrid.availability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

/* Professionals: sample-only pro bono booking demonstration. */
#pro-bono-booking .booking-flow {
    margin-top: var(--space-6);
}

#pro-bono-booking .booking-steps {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: 0 0 var(--space-6);
    padding: 0;
    list-style: none;
    color: var(--color-text-light);
    font-size: var(--font-size-sm);
}

#pro-bono-booking .booking-steps li {
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
}

#pro-bono-booking .booking-steps .is-current {
    border-color: var(--color-primary);
    background: var(--brand-gradient);
    color: var(--brand-gradient-ink);
    font-weight: 700;
}

#pro-bono-booking .booking-steps .is-complete {
    border-color: var(--color-success);
    color: var(--color-success);
}

#pro-bono-booking .booking-layout {
    display: grid;
    gap: var(--space-6);
    align-items: start;
}

#pro-bono-booking .booking-professional-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
}

#pro-bono-booking .booking-professional {
    min-width: 0;
    padding: var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--paper);
}

#pro-bono-booking .booking-professional.is-selected {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--accent-tint);
}

#pro-bono-booking .booking-professional h3,
#pro-bono-booking .booking-stage h3 {
    margin: var(--space-2) 0;
    overflow-wrap: anywhere;
}

#pro-bono-booking .booking-professional .lawyer-practice,
#pro-bono-booking .booking-professional .lawyer-state,
#pro-bono-booking .booking-selected-professional p,
#pro-bono-booking .booking-times p {
    margin: 0 0 var(--space-2);
}

#pro-bono-booking .booking-select,
#pro-bono-booking .booking-time,
#pro-bono-booking .booking-contact-action,
#pro-bono-booking .booking-secondary-action {
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    background: var(--brand-gradient);
    color: var(--brand-gradient-ink);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

#pro-bono-booking .booking-select {
    width: 100%;
    margin-top: var(--space-2);
}

#pro-bono-booking .booking-select[aria-pressed="true"],
#pro-bono-booking .booking-secondary-action {
    background: transparent;
    color: var(--color-primary);
}

#pro-bono-booking .booking-stage {
    min-width: 0;
    padding: clamp(var(--space-4), 4vw, var(--space-6));
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--paper-alt);
}

#pro-bono-booking .booking-eyebrow {
    margin: 0;
    color: var(--color-text-light);
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#pro-bono-booking .booking-calendar-heading {
    display: flex;
    justify-content: space-between;
    gap: var(--space-4);
    align-items: start;
    margin-top: var(--space-6);
}

#pro-bono-booking .booking-month {
    margin: 0;
    white-space: nowrap;
    color: var(--color-text-light);
    font-size: var(--font-size-sm);
    font-weight: 700;
}

#pro-bono-booking .booking-calendar-note {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: var(--space-3) 0;
    color: var(--color-text-light);
    font-size: var(--font-size-sm);
}

#pro-bono-booking .booking-availability-key {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    border: 1px solid var(--color-success);
    border-radius: 50%;
    background: var(--success-tint);
}

#pro-bono-booking .booking-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
    width: 100%;
}

#pro-bono-booking .booking-weekday,
#pro-bono-booking .booking-date,
#pro-bono-booking .booking-calendar-blank {
    display: grid;
    min-width: 0;
    min-height: 40px;
    place-items: center;
    border-radius: 8px;
    font-size: var(--font-size-sm);
}

#pro-bono-booking .booking-weekday {
    min-height: 24px;
    color: var(--color-text-light);
    font-size: var(--font-size-xs);
    font-weight: 700;
}

#pro-bono-booking .booking-date {
    border: 1px solid var(--color-border);
    background: var(--paper);
    color: var(--color-text-light);
}

#pro-bono-booking button.booking-date {
    min-height: 44px;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

#pro-bono-booking .booking-date.is-available {
    border-color: var(--color-success);
    background: var(--success-tint);
    color: var(--color-text);
    font-weight: 700;
}

#pro-bono-booking .booking-date.is-selected {
    border-color: var(--color-primary);
    background: var(--brand-gradient);
    color: var(--brand-gradient-ink);
}

#pro-bono-booking .booking-date.is-unavailable {
    background: var(--paper-alt);
    color: var(--color-text-light);
    opacity: 1;
}

#pro-bono-booking .booking-times,
#pro-bono-booking .booking-request,
#pro-bono-booking .booking-confirmation {
    margin-top: var(--space-6);
    padding-top: var(--space-5);
    border-top: 1px solid var(--color-border);
}

#pro-bono-booking .booking-time-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: var(--space-4) 0;
}

#pro-bono-booking .booking-sample-notice {
    margin-top: var(--space-4);
    padding: var(--space-3);
    border-left: 3px solid var(--color-secondary);
    background: var(--secondary-tint);
}

#pro-bono-booking .booking-status {
    margin: var(--space-5) 0 0;
    color: var(--color-text-light);
    font-size: var(--font-size-sm);
}

#pro-bono-booking button:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

@media (max-width: 720px) {
    #pro-bono-booking .booking-professional-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    #pro-bono-booking .booking-calendar-heading {
        display: block;
    }

    #pro-bono-booking .booking-month {
        margin-top: var(--space-2);
    }

    #pro-bono-booking .booking-calendar {
        gap: 3px;
    }

    #pro-bono-booking .booking-weekday,
    #pro-bono-booking .booking-date,
    #pro-bono-booking .booking-calendar-blank {
        border-radius: 6px;
        font-size: var(--font-size-xs);
    }
}

/* ============================================================
   LAYER 16: NOTICES & ALERTS
   ============================================================ */

.alert {
    padding: var(--spacing-lg);
    border-radius: 8px;
    margin-bottom: var(--spacing-lg);
    border-left: 4px solid;
}

.alert-info {
    background: rgba(2, 136, 209, 0.08);
    border-left-color: var(--color-info);
    color: var(--color-text);
}

.notice-dismissible {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--color-warm-gray);
    border-left: 4px solid var(--color-primary);
    border-radius: 4px;
    margin-bottom: var(--spacing-lg);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notice-dismissed {
    display: none;
}

.notice-dismiss-btn {
    display: inline-flex;
    width: 44px;
    min-width: 44px;
    height: 44px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    font-size: var(--font-size-lg);
    padding: 0;
    transition: color var(--ease);
}

.notice-dismiss-btn:hover {
    color: var(--color-text);
}

.confirmation {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--success-tint);
    border: 1px solid var(--color-success);
    border-radius: 8px;
    color: var(--color-text);
    font-size: var(--font-size-sm);
}

/* ============================================================
   LAYER 17: SPECIAL COMPONENTS
   ============================================================ */

.kpi-tile {
    background: var(--paper);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: var(--spacing-lg);
    text-align: center;
}

.kpi-number {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    background: var(--brand-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: var(--spacing-sm);
}

.kpi-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--spacing-xs);
}

.kpi-subtext {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

.kpi-trend {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    font-size: var(--font-size-sm);
}

.kpi-trend.up {
    color: var(--color-success);
}

.kpi-trend.down {
    color: var(--color-error);
}

.page-data .data-reading-guide,
.page-data .dashboard > *,
.page-data .state-selector-content {
    width: min(100% - (2 * var(--spacing-lg)), 1200px);
    margin-inline: auto;
}

.page-data .data-reading-guide {
    display: grid;
    grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.4fr);
    gap: var(--space-8);
    margin-block: var(--space-8);
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: var(--paper);
    box-shadow: var(--shadow-sm);
}

.page-data .data-reading-guide-heading h2 {
    margin: var(--space-2) 0 var(--space-3);
}

.page-data .data-reading-guide-heading p:last-child {
    margin-bottom: 0;
    color: var(--color-text-light);
}

.page-data .data-reading-guide-items {
    display: grid;
    gap: var(--space-3);
}

.page-data .data-reading-guide details {
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--paper-alt);
}

.page-data .data-reading-guide summary {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    color: var(--color-text);
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.page-data .data-reading-guide summary::-webkit-details-marker {
    display: none;
}

.page-data .data-reading-guide summary::after {
    content: "+";
    flex: 0 0 auto;
    color: var(--color-primary);
    font-size: 1.3rem;
}

.page-data .data-reading-guide details[open] summary::after {
    content: "−";
}

.page-data .data-reading-guide details p,
.page-data .data-reading-guide details ul {
    margin: 0;
    padding: 0 var(--space-4) var(--space-4);
    color: var(--color-text-light);
}

.page-data .data-reading-guide details ul {
    padding-left: calc(var(--space-4) + 1.25rem);
}

.page-data .kpi-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-4);
}

.page-data .kpi-tile {
    min-width: 0;
}

.page-data .kpi-trend {
    justify-content: center;
    color: var(--color-text-light);
    font-weight: 700;
}

.page-data .charts-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-5);
    margin-top: var(--space-8);
}

.page-data .chart-card {
    min-width: 0;
}

.page-data .chart-title {
    margin-bottom: var(--space-2);
}

.page-data .chart-note {
    margin: 0 0 var(--space-4);
    color: var(--color-text-light);
    font-size: var(--font-size-sm);
    line-height: 1.55;
}

.page-data .chart-empty-state {
    display: grid;
    height: 300px;
    place-items: center;
    color: var(--color-text-light);
    font-size: var(--font-size-sm);
}

.page-data .map-section,
.page-data .sources-section {
    margin-top: var(--space-8);
    padding: var(--spacing-lg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--paper);
}

.page-data .map-title,
.page-data .sources-title {
    margin-bottom: var(--space-2);
    font-family: var(--font-display);
    font-size: var(--font-size-xl);
    font-weight: 700;
}

@media (max-width: 900px) {
    .page-data .data-reading-guide,
    .page-data .charts-section {
        grid-template-columns: 1fr;
    }

    .page-data .kpi-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .page-data .data-reading-guide,
    .page-data .dashboard > *,
    .page-data .state-selector-content {
        width: min(100% - (2 * var(--spacing-md)), 1200px);
    }

    .page-data .kpi-row {
        grid-template-columns: 1fr;
    }
}

/* Photo band layout fix: position credits underneath images */
.photo-band {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    margin: var(--spacing-xl) 0;
    border-radius: 12px;
    overflow: visible;
}

.photo-band img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
}

.photo-credit {
    font-size: var(--font-size-xs);
    color: var(--color-text-lighter);
    margin-top: var(--spacing-sm);
    font-style: italic;
    text-align: center;
}

main p a:not(.btn):not(.btn-primary):not(.btn-secondary),
main li a:not(.btn):not(.btn-primary):not(.btn-secondary),
main dd a:not(.btn):not(.btn-primary):not(.btn-secondary) {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.built-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}


/* ============================================================
   LAYER 18: REACTIONS & INTERACTIONS
   ============================================================ */

.reaction-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background: var(--paper);
    color: var(--color-text);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all var(--ease);
}

.reaction-button:hover {
    border-color: var(--color-primary);
    background: var(--accent-tint);
    color: var(--color-primary);
}

.reaction-button.active {
    border-color: var(--color-primary);
    background: var(--accent-tint);
    color: var(--color-primary);
    font-weight: 600;
}

.reaction-count {
    display: inline-block;
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
}

/* ============================================================
   LAYER 19: SEARCH & FILTERS
   ============================================================ */

.resource-filters,
.resources-filters-section {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.resource-search {
    display: flex;
    gap: var(--spacing-md);
}

.resource-search input {
    flex: 1;
    min-width: 200px;
}

.results-container,
.resources-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.results-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}
.results-actions .results-count {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}



.resource-search .search-clear:hover {
    color: var(--color-primary-dark);
}

/* ============================================================
   LAYER 20: MAPS & GEOGRAPHIC
   ============================================================ */

#map-container {
    position: relative;
    width: 100%;
    min-height: 300px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--paper-alt);
}

.map-fallback {
    height: auto;
    padding: var(--spacing-lg);
}

.map-fallback-note {
    margin: 0 0 var(--spacing-md);
    color: var(--color-text-light);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.map-fallback-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-sm);
}

.map-fallback-state {
    display: flex;
    min-height: 96px;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--paper);
    color: var(--color-text);
    text-align: left;
    cursor: pointer;
}

.map-fallback-state:hover,
.map-fallback-state.is-selected {
    border-color: var(--color-primary);
    background: var(--accent-tint);
}

.map-fallback-state span {
    color: var(--color-text-light);
    font-size: var(--font-size-xs);
}

.maplibre-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1000;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: var(--paper);
    color: var(--color-text);
    box-shadow: var(--shadow-md);
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.maplibre-popup-content {
    padding: 12px;
    font-size: var(--font-size-xs);
}

.maplibre-attribution {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 10;
    padding: 8px 12px;
    border-radius: 4px;
    background: var(--paper);
    font-size: 11px;
    line-height: 1.4;
}

.metric-source-link {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.national-jurisdictions {
    margin-top: var(--spacing-sm);
}

.metric-source-compact {
    margin-top: var(--spacing-sm);
    padding: 0;
    border: 0;
}

#aus-map,
.map-container {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin: var(--spacing-xl) 0;
}

.map-controls {
    position: absolute;
    top: var(--spacing-lg);
    left: var(--spacing-lg);
    z-index: 10;
}

.map-content {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    background: var(--paper);
    padding: var(--spacing-lg);
    border-radius: 8px;
    max-width: 300px;
    box-shadow: var(--shadow-lg);
}

.jurisdictions-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.jurisdictions-list {
    list-style: none;
}

.jurisdictions-list li {
    padding: var(--spacing-sm);
    border-bottom: 1px solid var(--color-border);
}

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

.jurisdictions-list a {
    color: var(--color-primary);
    text-decoration: none;
}

.jurisdictions-list a:hover {
    text-decoration: underline;
}

/* ============================================================
   LAYER 21: REFERENCES & CITATIONS
   ============================================================ */

.ref-list {
    list-style: none;
    padding: 0;
    margin: var(--spacing-xl) 0 0 0;
}

.ref-list li {
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--color-border);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
    color: var(--color-text);
}

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

.ref-list a {
    color: var(--color-primary);
}

.ref-list a:hover {
    text-decoration: underline;
}

/* ============================================================
   LAYER 22: RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-md);
    }

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

@media (max-width: 768px) {
    /* Typography scale-down for tablets */
    h1 { font-size: var(--font-size-4xl); }
    h2 { font-size: var(--font-size-3xl); }
    h3 { font-size: var(--font-size-2xl); }

    body {
        background: var(--paper);
    }

    [data-theme="dark"] body {
        background: var(--paper);
    }

    .container, .container-narrow, .container-wide {
        padding: 0 var(--spacing-md);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }



    .stories-grid,
    .story-layout,
    .reform-cards,
    .problem-grid,
    .petition-principles {
        grid-template-columns: 1fr;
    }

    .featured-petition,
    .petition-next-step {
        grid-template-columns: 1fr;
    }

    .featured-petition .petition-actions,
    .petition-next-step .petition-actions {
        max-width: none;
    }

    .petition-copy-header {
        flex-direction: column;
    }


    .results-container,
    .resources-container {
        grid-template-columns: 1fr;
    }

    #aus-map,
    .map-container {
        height: 400px;
    }

    .resource-filters,
    .resource-search {
        flex-direction: column;
    }

    .resource-search input {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    /* Typography scale-down for mobile */
    h1 { font-size: var(--font-size-3xl); }
    h2 { font-size: var(--font-size-2xl); }
    h3 { font-size: var(--font-size-lg); }

    body {
        font-size: 14px;
        background: var(--paper);
    }

    [data-theme="dark"] body {
        background: #0F0F0F;
    }

    .container,
    .container-narrow,
    .container-wide,
    .content {
        padding: 0 var(--spacing-md);
    }

    .hero {
        min-height: 100svh;
    }

    .hero-content h1 {
        font-size: var(--font-size-3xl);
    }

    .hero-content p {
        font-size: var(--font-size-sm);
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .hero-cta .btn,
    .hero-cta .btn-primary,
    .hero-cta .btn-secondary {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .stat-number {
        font-size: var(--font-size-4xl);
    }

    .btn,
    .btn-primary,
    .btn-secondary {
        min-height: 44px;
        padding: 0.8rem 1.5rem;
        font-size: var(--font-size-sm);
    }

    .btn + .btn,
    .btn + .btn-primary,
    .btn + .btn-secondary,
    .btn-primary + .btn,
    .btn-primary + .btn-primary,
    .btn-primary + .btn-secondary,
    .btn-secondary + .btn,
    .btn-secondary + .btn-primary,
    .btn-secondary + .btn-secondary {
        margin-left: 0.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .footer-bottom {
        font-size: var(--font-size-xs);
    }

    #aus-map,
    .map-container {
        height: 300px;
    }


    .page-header-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================================
   LAYER 23: VENDOR & THIRD-PARTY OVERRIDES
   ============================================================ */

/* Syncfusion chart overrides */
.syncfusion-chart-container {
    background: var(--paper) !important;
    color: var(--color-text) !important;
}

/* MapLibre GL overrides */
.maplibregl-ctrl {
    background: var(--paper) !important;
    box-shadow: var(--shadow-md) !important;
}

.maplibregl-ctrl button {
    color: var(--color-text) !important;
}

.maplibregl-popup {
    font-family: var(--font-sans) !important;
}

/* ============================================================
   LAYER 23: PULL-QUOTE COMPONENT
   ============================================================ */

.pull-quote {
    position: relative;
    font-family: var(--font-serif);
    font-size: var(--font-size-2xl);
    line-height: var(--line-height-relaxed);
    font-style: italic;
    color: var(--ink);
    text-align: center;
    margin: var(--space-8) auto;
    padding: var(--space-6) var(--space-4);
    max-width: 580px;
    border-left: 4px solid var(--accent);
    border-radius: 0 4px 4px 0;
    background: var(--surface-hover);
    transition: all var(--ease);
}

.pull-quote::before {
    content: '"';
    display: block;
    font-size: 4rem;
    line-height: 1;
    color: var(--accent);
    opacity: 0.2;
    margin-bottom: var(--space-2);
}

.pull-quote-text {
    display: block;
    margin: 0;
}

.pull-quote-attribution {
    display: block;
    font-style: normal;
    font-size: var(--font-size-sm);
    color: var(--ink-dim);
    margin-top: var(--space-3);
    font-weight: 500;
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
}

@media (max-width: 640px) {
    .pull-quote {
        font-size: var(--font-size-xl);
        padding: var(--space-4) var(--space-3);
        margin: var(--space-6) var(--space-4);
    }

    .pull-quote::before {
        font-size: 3rem;
    }
}

/* ============================================================
   LAYER 24: ACCESSIBILITY & STATE
   ============================================================ */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--brand-gradient);
    color: var(--brand-gradient-ink);
    padding: var(--spacing-md) var(--spacing-lg);
    z-index: 10;
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

*:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

button:disabled,
input:disabled,
select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* High contrast mode support */
@media (prefers-contrast: more) {
    .color-text-light {
        color: var(--color-text);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================
   DOSSIER PAGE — Dashboard, Filters & Case Cards
   ============================================================ */

/* Dashboard/Stat Band */
.dashboard {
    background: var(--color-bg-secondary);
    padding: var(--space-10) 0;
    border-bottom: 1px solid var(--color-border);
}

.dashboard-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-8);
    max-width: none;
}

.dash-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    padding: var(--space-6);
    background: var(--color-surface);
    border-radius: 8px;
    border: 1px solid var(--color-border);
    transition: all 0.2s;
}

.dash-stat:hover {
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dashboard .stat-number {
    font-size: 28px;
    font-weight: 700;
    background: var(--brand-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.dashboard .stat-label {
    font-size: 13px;
    color: var(--color-text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Filter Bar */
.filterbar {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-6) 0;
    position: sticky;
    top: var(--header-height, 60px);
    z-index: 10;
}

.filterbar .dossier-filter-shell {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    max-width: 1100px;
}

.filterbar-summary {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto auto;
    align-items: center;
    gap: var(--space-4);
}

.dossier-filter-toggle {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 10px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
    color: var(--color-text);
    font-size: var(--font-size-sm);
    font-weight: 700;
    transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.dossier-filter-toggle:hover,
.dossier-filter-toggle[aria-expanded="true"] {
    border-color: var(--brand-orange);
    box-shadow: 0 5px 16px rgba(243, 108, 66, 0.16);
}

.dossier-filter-toggle[aria-expanded="true"] {
    background: var(--brand-gradient);
    color: var(--brand-gradient-ink);
}

.dossier-filter-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.filter-active-count {
    display: inline-flex;
    min-width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--brand-gradient-ink);
    color: #fff;
    font-size: 12px;
}

.dossier-filter-panel {
    position: relative;
    padding: var(--space-5);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.dossier-filter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
}

.dossier-filter-grid label {
    display: grid;
    gap: var(--space-2);
    color: var(--color-text-light);
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
}

.theme-filter-disclosure {
    margin-top: var(--space-4);
    border-top: 1px solid var(--color-border);
}

.theme-filter-disclosure summary {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-3) 0;
    color: var(--color-text);
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.theme-filter-disclosure summary::-webkit-details-marker {
    display: none;
}

.theme-filter-disclosure summary::after {
    content: "+";
    color: var(--color-primary);
    font-size: 1.4rem;
    line-height: 1;
}

.theme-filter-disclosure[open] summary::after {
    content: "−";
}

.theme-filter-summary {
    min-width: 0;
    margin-left: auto;
    overflow: hidden;
    color: var(--color-text-light);
    font-size: var(--font-size-xs);
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dossier-filter-panel .chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: var(--space-3) 0 var(--space-2);
}

.filter-reset {
    min-height: 44px;
    margin-top: var(--space-3);
    padding: 8px 0;
    color: var(--color-primary);
    font-size: var(--font-size-sm);
    font-weight: 700;
}

.filter-reset:disabled {
    color: var(--color-text-light);
}

/* Search Input */
.search-wrap {
    flex: 1;
    min-width: 200px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-wrap input[type="search"] {
    width: 100%;
    padding: var(--space-4) 44px var(--space-4) var(--space-6);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-wrap input[type="search"]::placeholder {
    color: var(--color-text-light);
}

.search-wrap input[type="search"]:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(232, 112, 74, 0.1);
}

/* Search clear button */
.search-clear {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    font-size: 18px;
    padding: 4px 8px;
    transition: color 0.2s;
}

.search-wrap .search-clear:hover {
    color: var(--color-text);
}

.search-clear.hidden {
    display: none;
}

/* AI Search results */
.ai-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 20;
    display: none;
}

.ai-search-results.active,
.ai-search-results.ai-search-open {
    display: block;
}

.ai-search-results > div {
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    transition: background 0.2s;
}

.ai-search-results > div:hover {
    background: var(--color-bg-secondary);
}

.ai-search-results > div:last-child {
    border-bottom: none;
}

.ai-search-header {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-light);
    font-size: var(--font-size-xs);
    font-weight: 700;
}

.ai-search-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ai-search-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-2) var(--space-3);
    padding: var(--space-4);
    border-bottom: 1px solid var(--color-border);
}

.ai-search-item:last-child {
    border-bottom: 0;
}

.ai-search-item:hover {
    background: var(--surface-hover);
}

.ai-search-title {
    min-width: 0;
    color: var(--color-text);
    font-size: var(--font-size-sm);
    font-weight: 700;
}

.ai-search-relevance {
    align-self: start;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--brand-gradient);
    color: var(--brand-gradient-ink);
    font-size: 11px;
    font-weight: 800;
}

.ai-search-snippet,
.ai-search-error {
    margin: 0;
    color: var(--color-text-light);
    font-size: var(--font-size-xs);
    line-height: 1.5;
}

.ai-search-snippet {
    grid-column: 1 / -1;
}

.ai-search-error {
    padding: var(--space-4);
}

/* Filter selects */
#filter-jurisdiction,
#filter-actor,
#filter-status {
    width: 100%;
    margin: 0;
    padding: var(--space-4) 40px var(--space-4) var(--space-6);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    appearance: none;
    background-color: var(--color-surface);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right var(--space-4) center;
    background-size: 18px;
    color: var(--color-text);
    cursor: pointer;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

@media (prefers-color-scheme: dark) {
    #filter-jurisdiction,
    #filter-actor,
    #filter-status {
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    }
}

#filter-jurisdiction:hover,
#filter-actor:hover,
#filter-status:hover {
    border-color: var(--color-primary);
}

#filter-jurisdiction:focus,
#filter-actor:focus,
#filter-status:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(232, 112, 74, 0.1);
}

/* Results count */
.filterbar .results-count {
    font-size: 13px;
    color: var(--color-text-light);
    white-space: nowrap;
    margin: 0;
}

/* Chip row (theme filters) */

.chip {
    min-height: 44px;
    padding: 8px 16px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background: var(--color-surface);
    color: var(--color-text);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.chip:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.chip[aria-pressed="true"] {
    background: var(--brand-gradient);
    color: var(--brand-gradient-ink);
    border-color: var(--brand-orange);
}

/* Main content area - case cards */
#dossier {
    padding: var(--space-10) 0;
}

.case-category {
    margin-bottom: var(--space-10);
}

.category-toggle {
    width: 100%;
    padding: var(--space-6) var(--space-8);
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.category-toggle:hover {
    border-color: var(--color-primary);
    background: var(--color-bg-secondary);
}

.toggle-arrow {
    display: inline-flex;
    transition: transform 0.2s;
}

.case-category.collapsed .toggle-arrow {
    transform: rotate(-90deg);
}

.case-category.collapsed .case-list {
    display: none;
}

.case-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--brand-gradient);
    color: var(--brand-gradient-ink);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    margin-left: auto;
}

.case-list {
    display: grid;
    gap: var(--space-6);
    margin-top: var(--space-6);
}

/* Case cards */
.case-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
}

.case-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.case-card.status-pending {
    border-left: 3px solid var(--color-accent-warning);
}

.case-head {
    width: 100%;
    padding: var(--space-6) var(--space-8);
    text-align: left;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
}

.case-card.open .case-head {
    border-bottom-color: var(--color-primary);
}

.case-head:hover {
    background: var(--color-bg-secondary);
}

.case-chevron {
    display: inline-flex;
    font-size: 18px;
    flex-shrink: 0;
    transition: transform 0.2s;
    margin-top: 2px;
    color: var(--color-primary);
}

.case-card.open .case-chevron {
    transform: rotate(90deg);
}

.case-head-main {
    flex: 1;
}

.case-head-main h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 var(--space-2) 0;
    line-height: 1.4;
}

.case-head-main p {
    font-size: 13px;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.4;
}

/* Case body (collapsible) */

.case-body {
    display: none;
    padding: var(--space-8);
    border-top: 1px solid var(--color-border);
}

.case-card.open .case-body {
    display: block;
}

.case-body-section {
    margin-bottom: var(--space-6);
}

.case-body-section:last-child {
    margin-bottom: 0;
}

.case-body-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-light);
    margin-bottom: var(--space-2);
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.case-tag {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    background: linear-gradient(135deg, rgba(232, 112, 74, 0.1) 0%, rgba(217, 45, 74, 0.08) 100%);
    color: var(--color-primary);
    border-radius: 12px;
    white-space: nowrap;
}

.case-sources {
    font-size: 13px;
    color: var(--color-text);
    line-height: 1.6;
}

.case-sources a {
    color: var(--color-primary);
    text-decoration: none;
}

.case-sources a:hover {
    text-decoration: underline;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: var(--space-10);
}

.empty-state h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 var(--space-4) 0;
}

.empty-state p {
    color: var(--color-text-light);
    margin: 0 0 var(--space-8) 0;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .filterbar-summary {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: var(--space-3);
    }

    .filterbar-summary .search-wrap {
        grid-column: 1 / -1;
    }

    .filterbar-summary .results-count {
        grid-column: 1;
        grid-row: 2;
        width: auto;
        margin: 0;
    }

    .filterbar-summary .dossier-filter-toggle {
        grid-column: 2;
        grid-row: 2;
    }

    #filter-jurisdiction,
    #filter-actor,
    #filter-status {
        flex: 1;
        min-width: 120px;
    }

    .category-toggle,
    .case-head {
        padding: var(--space-4) var(--space-6);
    }
}

@media (max-width: 480px) {
    .dashboard-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-3);
        padding-inline: var(--space-4);
    }

    .dash-stat {
        min-width: 0;
        padding: var(--space-4);
    }

    .dashboard .stat-number {
        font-size: 24px;
    }

    .dashboard .stat-label {
        font-size: 11px;
        overflow-wrap: anywhere;
    }

    .dossier-filter-grid {
        grid-template-columns: 1fr;
    }

    #filter-jurisdiction,
    #filter-actor,
    #filter-status,
    .search-wrap input[type="search"] {
        width: 100%;
    }

    .dossier-filter-panel .chip-row {
        gap: var(--space-3);
    }

    .dossier-filter-panel .chip {
        width: auto;
        max-width: 100%;
        padding: 10px 12px;
        font-size: 13px;
        white-space: normal;
    }

    .case-head {
        padding: var(--space-4);
    }

    .case-body {
        padding: var(--space-6);
    }

    #lawyersGrid,
    #firmsGrid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .reactions-picker {
        max-width: 90vw;
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 20px;
    }

    .reactions-picker-item {
        width: 48px;
        height: 48px;
    }
}

/* ============================================================
   STORIES PAGE — Form & Layout Styles
   ============================================================ */

.story-form-layout {
    display: flex;
    flex-direction: column;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-10) var(--space-8);
}

.story-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-10);
}

fieldset {
    border: none;
    padding: var(--space-8);
    background: var(--color-warm-gray);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    transition: all 0.2s;
}

@media (prefers-color-scheme: dark) {
    fieldset {
        background: rgba(255, 255, 255, 0.03);
    }
}

fieldset:hover {
    border-color: var(--color-primary);
}

.story-form legend {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    padding: 0 var(--space-6);
    color: var(--color-text);
    font-size: 18px;
    font-weight: 600;
}

.step-num {
    display: inline-flex;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: var(--brand-gradient-ink);
    font-size: 14px;
    font-weight: 700;
}

.field-hint {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: var(--space-6);
    line-height: 1.5;
}

/* Checkbox styling */
.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    padding: var(--space-4) 0;
}

.checkbox-row input[type="checkbox"] {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.checkbox-row label {
    flex: 1;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.5;
    color: var(--color-text);
    padding: 0;
    margin: 0;
    font-weight: 400;
}

.checkbox-row input[type="checkbox"]:hover {
    filter: brightness(1.1);
}

/* Form labels */
.story-form label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    color: var(--color-text);
    margin: var(--space-6) 0 var(--space-2) 0;
    padding: 0;
}

/* Form inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
select,
textarea {
    width: 100%;
    margin-bottom: var(--space-6);
    padding: var(--space-4) var(--space-6);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--paper);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder,
input[type="url"]::placeholder,
textarea::placeholder {
    color: var(--color-text-light);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(232, 112, 74, 0.1);
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right var(--space-4) center;
    background-size: 20px;
    padding-right: 40px;
}

@media (prefers-color-scheme: dark) {
    select {
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    }
}

textarea {
    min-height: 160px;
    resize: vertical;
    line-height: 1.5;
}

/* Turnstile/Captcha container */
#captcha-container,
.cf-turnstile {
    margin: var(--space-6) 0 var(--space-8) 0;
    display: flex;
    justify-content: flex-start;
    max-width: 100%;
    overflow: hidden;
}

#story-form-status {
    margin: 0 0 var(--space-6);
    padding: var(--space-4);
    border: 1px solid var(--color-error);
    border-radius: 8px;
    background: color-mix(in srgb, var(--color-error) 10%, var(--surface));
    color: var(--color-text);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.confirmation-evidence-link {
    margin-top: var(--space-5);
    text-align: center;
}

/* Submit button */
.story-form .btn.solid.on-light,
.story-form button[type="submit"] {
    width: 100%;
    margin-top: var(--space-6);
    padding: var(--space-4) var(--space-8);
    background: var(--brand-gradient);
    color: var(--brand-gradient-ink);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.story-form .btn.solid.on-light:hover,
.story-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(232, 112, 74, 0.3);
}

.story-form .btn.solid.on-light:active,
.story-form button[type="submit"]:active {
    transform: translateY(0);
}

/* Confirmation message */
.story-form .confirmation {
    margin-top: var(--space-10);
    padding: var(--space-8);
    background: linear-gradient(135deg, rgba(82, 183, 136, 0.08) 0%, rgba(82, 183, 136, 0.05) 100%);
    border: 1px solid rgba(82, 183, 136, 0.2);
    border-radius: 8px;
    color: var(--color-text);
    line-height: 1.6;
}

/* Wrap container for centered content */
.wrap {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-8);
}

/* Example stories section */
.example-stories {
    max-width: 800px;
    margin: var(--space-20) auto;
    padding: 0 var(--space-8);
}

.example-stories h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: var(--space-6);
    color: var(--color-text);
}

.example-stories p {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: var(--space-8);
}

/* Example story cards */
#example-stories {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.example-story-card {
    background: var(--paper);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: var(--space-8);
    transition: all 0.2s;
}

.example-story-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.example-story-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 var(--space-4) 0;
    color: var(--color-text);
}

.example-story-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.example-story-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    background: var(--accent-tint);
    color: var(--color-primary);
}

.example-story-badge.state {
    background: var(--color-border);
    color: var(--color-text);
}

.example-story-summary {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.example-story-source {
    font-size: 13px;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.example-story-source:hover {
    text-decoration: underline;
}

/* Illustration centering */
.illustration-empathy,
.illustration-hope {
    display: flex;
    justify-content: center;
    margin: var(--space-10) 0;
}

.illustration-empathy svg,
.illustration-hope svg {
    max-width: 150px;
    height: auto;
}

.illustration-opening .line,
.illustration-empathy .line,
.illustration-hope .line,
.illustration-action .line {
    fill: none;
    stroke: var(--brand-orange);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.illustration-opening .structure,
.illustration-empathy .dim {
    stroke: var(--color-text);
    opacity: 0.4;
}

.illustration-opening .accent-fill,
.illustration-hope .accent-fill,
.illustration-action .accent-fill {
    fill: var(--brand-orange);
}

.illustration-action .voice-wave {
    stroke: var(--brand-orange);
    opacity: 0.5;
}

.map-wrapper .state {
    fill: #ddd;
    stroke: #999;
    stroke-width: 1.5;
    cursor: pointer;
    transition: fill var(--ease), stroke-width var(--ease);
}

.map-wrapper .state:hover,
.map-wrapper .state:focus {
    stroke-width: 2.5;
}

/* Page-family shells */
.family-editorial > main,
.family-action > main:not(.page-home main),
.family-resources > main {
    width: 100%;
}

.family-editorial main > article.wrap,
.family-editorial main#main:not(:has(> article)),
.page-contact main,
.page-references main {
    max-width: 900px;
    margin: var(--space-8) auto;
    padding-inline: var(--spacing-lg);
}

.family-editorial main > article.wrap {
    max-width: 760px;
}

.family-editorial main section + section,
.family-action main section + section {
    margin-top: var(--space-8);
}

.page-get-help .step {
    display: none;
}

.page-get-help .step.active {
    display: block;
}

.page-get-help .get-help-container {
    width: 100%;
    padding: clamp(2rem, 6vw, 4rem) var(--spacing-lg);
    background: var(--paper);
    color: var(--color-text);
}

.page-get-help .get-help-content {
    max-width: 960px;
    margin: 0 auto;
}

.page-get-help .get-help-header {
    max-width: 720px;
    margin: 0 auto var(--spacing-xl);
    text-align: center;
}

.page-get-help .get-help-subtitle {
    color: var(--color-text-light);
    font-size: var(--font-size-lg);
}

.page-get-help .disclaimer-banner {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    border: 1px solid var(--color-primary);
    border-radius: 12px;
    background: var(--accent-tint);
}

.page-get-help .disclaimer-content p {
    margin: 0;
}

.page-get-help .disclaimer-content strong {
    color: var(--color-primary);
}

.page-get-help .flow-container {
    padding: var(--spacing-xl);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: var(--paper);
    box-shadow: var(--shadow-sm);
}

.page-get-help .progress-indicator {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
    margin: 0 0 var(--spacing-xl);
}

.page-get-help .progress-step {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    border: 2px solid var(--color-border);
    border-radius: 10px;
    background: var(--paper-alt);
    text-align: center;
}

.page-get-help .progress-step.active {
    border-color: var(--color-primary);
    background: var(--accent-tint);
}

.page-get-help .progress-step.completed {
    border-color: var(--color-success);
    background: var(--success-tint);
}

.page-get-help .progress-number {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--paper);
    color: var(--color-primary);
    font-weight: 700;
}

.page-get-help .progress-label {
    color: var(--color-text);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.page-get-help .step-title {
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-2xl);
}

.page-get-help .problem-grid,
.page-get-help .state-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.page-get-help .state-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.page-get-help .option-card {
    position: relative;
    display: flex;
    min-height: 112px;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    background: var(--paper-alt);
    color: var(--color-text);
    text-align: left;
    cursor: pointer;
    user-select: none;
    transition: border-color var(--ease), background-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.page-get-help .state-grid .option-card {
    min-height: 96px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.page-get-help .option-card input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.page-get-help .option-card:hover {
    border-color: var(--color-primary);
    background: var(--accent-tint);
    transform: translateY(-2px);
}

.page-get-help .option-card:has(input:focus-visible) {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
}

.page-get-help .option-card.selected {
    border-color: var(--color-primary);
    background: var(--accent-tint);
    box-shadow: var(--shadow-focus);
}

.page-get-help .option-card.selected::after {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: var(--brand-gradient-ink);
    font-weight: 700;
}

.page-get-help .option-icon {
    flex-shrink: 0;
    font-size: 2rem;
}

.page-get-help .option-content {
    min-width: 0;
    flex: 1;
}

.page-get-help .option-label {
    color: var(--color-text);
    font-weight: 700;
}

.page-get-help .option-abbr {
    color: var(--color-primary);
    font-size: var(--font-size-sm);
    font-weight: 700;
    letter-spacing: var(--letter-spacing-wide);
}

.page-get-help .option-desc {
    margin-top: var(--spacing-xs);
    color: var(--color-text-light);
    font-size: var(--font-size-sm);
}

.page-get-help .results-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.page-get-help .resource-card {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--paper-alt);
}

.page-get-help .resource-icon {
    flex-shrink: 0;
    font-size: 2rem;
}

.page-get-help .resource-content {
    min-width: 0;
    flex: 1;
}

.page-get-help .resource-name {
    color: var(--color-text);
    font-size: var(--font-size-lg);
    font-weight: 700;
}

.page-get-help .resource-jurisdiction,
.page-get-help .resource-phone,
.page-get-help .resource-link {
    color: var(--color-primary);
    font-weight: 600;
}

.page-get-help .resource-desc {
    margin: var(--spacing-xs) 0 var(--spacing-sm);
    color: var(--color-text-light);
}

@media (max-width: 768px) {
    .page-get-help .get-help-container {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .page-get-help .flow-container {
        padding: var(--spacing-lg);
    }

    .page-get-help .problem-grid,
    .page-get-help .state-grid {
        grid-template-columns: 1fr;
    }

    .page-get-help .progress-step {
        padding: var(--spacing-sm);
    }

    .page-get-help .progress-label {
        font-size: var(--font-size-xs);
    }

    .page-get-help .resource-card {
        flex-direction: column;
    }
}

.family-resources main {
    padding-block: var(--space-8);
}

.resources-section > .wrap,
.page-references main {
    max-width: 1100px;
}

.resources-disclaimer {
    margin-bottom: var(--space-6);
    padding: var(--space-5);
    border-left: 4px solid var(--color-primary);
    border-radius: 8px;
    background: var(--paper-alt);
}

.resources-search-section {
    margin-bottom: var(--space-5);
}

.resources-filters-section {
    align-items: center;
}

.resources-filters-section .filter-label {
    margin: 0;
    font-weight: 600;
}

.resource-filters {
    margin: 0;
}

.filter-chip {
    min-height: 44px;
    padding: 8px 16px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--paper);
    color: var(--color-text);
    font-weight: 600;
}

.filter-chip:hover,
.filter-chip:focus-visible,
.filter-chip.active {
    border-color: var(--color-primary);
    background: var(--accent-tint);
    color: var(--color-primary-dark);
}

.resource-category {
    min-width: 0;
}

.resource-category .category-title {
    font-size: var(--font-size-2xl);
}

.resource-category .category-description {
    color: var(--color-text-light);
}

.resource-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing-lg);
}

.resource-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: var(--spacing-lg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--paper);
    box-shadow: var(--shadow-sm);
}

.resource-card .card-header,
.resource-card .card-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.resource-card .card-footer {
    margin-top: auto;
    padding-top: var(--spacing-md);
}

.resource-name {
    margin: 0;
    font-size: var(--font-size-lg);
}

.jurisdiction-badge,
.resource-tags .tag {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent-tint);
    color: var(--color-primary-dark);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.resource-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.resource-link,
.phone-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
}

.ref-group {
    break-inside: avoid;
    margin-bottom: var(--space-6);
    padding: var(--space-5);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--paper);
}

.ref-group h2 {
    font-size: var(--font-size-lg);
}

.ref-case-label {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-light);
    font-size: var(--font-size-sm);
}

.ref-group ol {
    padding-left: var(--spacing-lg);
}

.ref-group li {
    margin-bottom: var(--spacing-sm);
}

/* Statistics family */
.stat-hero {
    padding: var(--space-8) var(--space-4);
    border-bottom: 2px solid var(--accent);
    background: linear-gradient(135deg, var(--surface), var(--surface-alt));
}

.stat-hero-content,
.stat-content {
    max-width: var(--container-narrow);
    margin: 0 auto;
}

.stat-hero-content {
    text-align: center;
}

.stat-hero-number {
    margin: 0 0 var(--space-2);
    background: var(--brand-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 10vw, 5rem);
    font-weight: 800;
    line-height: 1;
}

.stat-hero-label {
    margin: 0 0 var(--space-4);
    color: var(--ink);
    font-size: var(--font-size-xl);
    line-height: 1.4;
}

.stat-hero-subtext {
    margin: 0;
    color: var(--ink-dim);
    font-size: var(--font-size-lg);
    font-style: italic;
}

.stat-content {
    padding: var(--space-6) var(--space-4);
}

.stat-section {
    margin-bottom: var(--space-8);
}

.stat-section h2 {
    margin-bottom: var(--space-4);
    color: var(--ink);
    font-size: var(--font-size-2xl);
}

.stat-section h3 {
    margin: var(--space-6) 0 var(--space-2);
    color: var(--ink);
    font-size: var(--font-size-lg);
}

.stat-section p,
.stat-section li {
    color: var(--ink);
    line-height: var(--line-height-relaxed);
}

.stat-section ul,
.stat-section ol {
    margin: 0 0 var(--space-3) var(--space-5);
}

.stat-table {
    width: 100%;
    margin: var(--space-4) 0;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
}

.stat-table th,
.stat-table td {
    padding: var(--space-2) var(--space-3);
    border-bottom: 1px solid var(--border);
    color: var(--ink);
    text-align: left;
}

.stat-table th {
    border-bottom: 2px solid var(--accent);
    background: var(--surface-alt);
    font-weight: 600;
}

.stat-table tr:hover {
    background: var(--surface-alt);
}

.no-data-callout,
.source-section,
.related-stats {
    margin: var(--space-6) 0;
    padding: var(--space-4);
    border-radius: 8px;
    background: var(--surface-alt);
}

.no-data-callout {
    border-left: 4px solid var(--color-warning);
}

.source-section ol {
    margin-left: var(--space-5);
}

.source-section li {
    margin-bottom: var(--space-3);
    line-height: var(--line-height-relaxed);
}

@media (max-width: 640px) {
    .stat-content {
        overflow-x: hidden;
    }

    .stat-table {
        table-layout: fixed;
        font-size: var(--font-size-xs);
    }

    .stat-table th,
    .stat-table td {
        padding: var(--space-2);
        overflow-wrap: anywhere;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .story-layout {
        padding: var(--space-8) var(--space-6);
    }

    fieldset {
        padding: var(--space-6);
    }

    .story-form legend {
        font-size: 16px;
    }

    textarea {
        min-height: 100px;
    }
}

@media (max-width: 375px) {
    .story-layout {
        padding: var(--space-6);
    }

    fieldset {
        padding: var(--space-4);
        margin-bottom: var(--space-6);
    }

    legend {
        font-size: 15px;
    }

    .step-num {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="url"],
    select,
    textarea {
        font-size: 16px;
    }
}

/* Print styles */
@media print {
    header,
    footer,
    .nav-controls,
    .theme-toggle,
    .btn-back,
    .btn-next {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    a {
        color: blue;
        text-decoration: underline;
    }
}

/* ============================================================
   WIZARD STYLES — Multi-step form navigation
   ============================================================ */

.wizard-progress {
    margin-bottom: var(--space-10);
    padding: 0 var(--space-4);
}

.progress-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

.progress-dot {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-border);
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    color: var(--color-text-lighter);
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.progress-dot.active {
    background: var(--brand-gradient);
    border-color: var(--brand-orange);
    color: var(--brand-gradient-ink);
    box-shadow: 0 4px 12px rgba(232, 112, 74, 0.3);
}

.progress-dot.completed {
    background: var(--color-success);
    border-color: var(--color-success);
    color: white;
}

.progress-dot:not(.active):not(.completed) {
    cursor: default;
}

.wizard-progress .progress-line {
    flex: 1;
    height: 2px;
    background: var(--color-border);
    min-width: 30px;
    max-width: 80px;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    gap: var(--space-4);
    color: var(--color-text-light);
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

.wizard-progress .progress-label {
    flex: 1;
}

/* Wizard controls */

.wizard-controls {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-6);
    margin-top: var(--space-8);
}

.wizard-buttons {
    display: flex;
    gap: var(--space-4);
}

.wizard-buttons .btn,
.wizard-buttons button {
    min-width: 120px;
    flex: 1;
    padding: var(--space-4) var(--space-8);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Validation errors */
.validation-errors {
    background: rgba(211, 47, 47, 0.08);
    border: 1px solid rgba(211, 47, 47, 0.2);
    border-radius: 6px;
    padding: var(--space-6);
    margin-bottom: var(--space-6);
    color: var(--color-error);
}

.validation-errors p {
    margin: 0 0 var(--space-3) 0;
    font-size: 14px;
    line-height: 1.5;
}

.validation-errors p:last-child {
    margin: 0;
}

/* Fieldset visibility for wizard */
fieldset:not(.active) {
    display: none;
}

fieldset.active {
    animation: fadeIn 0.2s ease-in;
}

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

/* Responsive wizard */
@media (max-width: 768px) {
    .progress-dot {
        width: 44px;
        height: 44px;
        font-size: 14px;
    }

    .progress-line {
        min-width: 20px;
        max-width: 50px;
    }

    .progress-labels {
        font-size: 11px;
    }

    .wizard-buttons {
        flex-direction: column;
        width: 100%;
    }

    .wizard-buttons .btn,
    .wizard-buttons button {
        width: 100%;
    }

    .wizard-controls {
        flex-direction: column;
    }
}

/* STATIC PRESENTATION MIGRATION */
.presentation-002dc26c47 { margin-bottom: 1.5rem; }
.presentation-027e860eb3 { padding: 0.75rem 1.5rem; font-size: 1rem; cursor: pointer; }
.presentation-03d9e91913 { font-size: 1.05rem; line-height: 1.6; }
.presentation-0524ca218a { display: inline-block; }
.presentation-0561469d1e { padding: 2rem 1rem; text-align: center; color: var(--ink-dim); }
.presentation-0636788d4a { margin-bottom: var(--space-4); }
.presentation-0973721916 { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.presentation-0b4156e34f { width: 100%; padding: 0.75rem; border: 1px solid var(--border); border-radius: 4px; background: var(--paper); color: var(--ink); font-size: 1rem; font-family: inherit; box-sizing: border-box; resize: vertical; }
.presentation-0e063de7d5 { font-weight: 600; color: var(--accent); }
.presentation-0f07ebc963 { font-family: var(--font-sans); font-size: 11px; pointer-events: none; }
.presentation-164db49fc8 { display: flex; gap: var(--space-3); align-items: stretch; }
.presentation-18041886ec { padding: 0.75rem 1.5rem; font-size: 1rem; cursor: pointer; margin-left: 0.5rem; }
.presentation-1b5549d17d { font-size: 0.9rem; color: var(--ink-dim); margin-top: var(--space-1); }
.presentation-1cd896a576 { margin-bottom: 2rem; }
.presentation-1ec4654a23 { padding: var(--space-6); background: #626262; border-radius: 8px; border: 1px solid #454545; }
.presentation-1f0511adea { margin-bottom: var(--space-10); }
.presentation-25a98a3a6a { margin-top: 0; }
.presentation-25e947488d { margin-bottom: 1.5rem; padding: 1rem; background: var(--paper-alt); border-radius: 4px; }
.presentation-29f9af13cf { display: flex; justify-content: center; margin-bottom: 2rem; }
.presentation-2bd8b92d56 { margin: 0; color: var(--ink); font-size: 0.95rem; }
.presentation-2f0d6686cf { width: 48px; height: 48px; margin-bottom: var(--space-3); }
.presentation-303ece6e3c { margin-top: 4rem; }
.presentation-3386aa6854 { margin-bottom: var(--space-6); color: var(--ink-dim); }
.presentation-34c0110166 { color: var(--accent); font-weight: 600; }
.presentation-36d0f0bd48 { color: rgba(255, 255, 255, 0.85); font-size: 0.85rem; font-weight: 600; }
.presentation-3d43560d7f { margin-bottom: 0.5rem; }
.presentation-3ec80588a2 { color: var(--ink-dim); font-size: 0.95rem; }
.presentation-3f7e42a0e0 { font-size: 0.85rem; color: var(--color-text-lighter); margin: var(--space-3) 0 0 0; }
.presentation-465c14ffc6 { margin-bottom: var(--space-10); background: var(--surface-alt); padding: var(--space-6); border-radius: 8px; }
.presentation-49c2c8c842 { font-size: 0.85rem; color: var(--ink-dim); margin-top: 0.25rem; margin-bottom: 0; }
.presentation-49e182917c { width: 100%; height: 300px; }
.presentation-4a4bde7ff0 { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.presentation-4bac73d18e { font-size: 1.05rem; line-height: 1.6; margin: 0; }
.presentation-4be662901e { font-size: 0.85rem; font-weight: 600; margin-bottom: var(--space-2); }
.presentation-4d60de8c86 { margin-top: var(--space-4); font-size: 0.9rem; color: var(--ink-dim); }
.presentation-4f1c5049d2 { background: var(--paper-alt); border-left: 4px solid var(--accent); padding: 1.5rem; border-radius: 4px; margin-bottom: 2rem; }
.presentation-4f8dbc76c7 { margin-top: 2rem; }
.presentation-55f428cf1e { text-align: center; margin-top: var(--space-6); }
.presentation-56c10d6e0b { display: flex; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-4); }
.presentation-58f99dd601 { padding: var(--space-6); background: var(--surface-alt); border-radius: 8px; border: 1px solid var(--line); }
.presentation-5a08b23345 { color: var(--accent); margin-bottom: var(--space-2); }
.presentation-635715e7ec { max-width: 1000px; margin: var(--space-10) auto; }
.presentation-675e56b593 { margin-top: 3rem; font-size: 0.875rem; color: var(--ink-dim); }
.presentation-6933c7c563 { width: 100%; padding: 0.75rem; border: 1px solid var(--border); border-radius: 4px; background: var(--paper); color: var(--ink); font-size: 1rem; cursor: pointer; }
.presentation-6e22c58a7a { display: none; }
.presentation-7294f036f7 { max-width: 700px; margin: var(--space-10) auto; padding: var(--space-6); background: var(--surface-alt); border-radius: 8px; }
.presentation-79a6591a0d { margin-top: var(--space-5); font-size: 0.95rem; color: var(--ink-dim); }
.presentation-7ab80b0b92 { margin-bottom: var(--space-4); color: var(--ink-dim); }
.presentation-7c43f7cfb3 { background: var(--paper-alt); border-bottom: 2px solid var(--border); }
.presentation-7cda0625ae { max-width: 760px; margin: 3rem auto; padding: 0 1.5rem; }
.presentation-7f8bd78f96 { margin-top: 4rem; padding: var(--space-6); background: var(--surface-alt); border-radius: 8px; }
.presentation-8096589d07 { width: 1px; height: 20px; background: var(--line); }
.presentation-823ba40aca { display: inline-block; padding: var(--space-3) var(--space-4); font-size: 0.9rem; }
.presentation-832562bc76 { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); }
.presentation-87fbdecd85 { width: 48px; height: 48px; object-fit: contain; }
.presentation-88429d0ec6 { margin: 0 0 var(--space-3) 0; font-size: 0.9rem; color: var(--ink-dim); }
.presentation-88d74c7083 { max-width: 1000px; margin: var(--space-10) auto; padding: var(--space-6); background: var(--surface-alt); border-radius: 8px; border-left: 4px solid var(--accent); }
.presentation-8dbec9393c { margin-top: 0; margin-bottom: var(--space-4); font-size: 1rem; color: white; }
.presentation-9049c098c4 { max-width: 130px; width: 100%; }
.presentation-916a45d1eb { color: var(--ink-dim); }
.presentation-92210e5c9f { color: var(--ink-dim); margin-bottom: var(--space-3); }
.presentation-943a7ee387 { width: 1px; height: 20px; background: rgba(255, 255, 255, 0.3); }
.presentation-94c9af71f4 { display: flex; justify-content: center; margin: 2rem 0; }
.presentation-9a7472a9ec { margin-top: 1rem; }
.presentation-9dfc7648f2 { width: 100%; padding: 0.75rem; border: 1px solid var(--border); border-radius: 4px; background: var(--paper); color: var(--ink); font-size: 1rem; box-sizing: border-box; }
.presentation-9e071fe992 { width: 160px; height: 160px; object-fit: contain; }
.presentation-a0bdc00d0f { margin: 3rem 0; padding: 1.5rem; background: var(--paper-alt); border-left: 4px solid var(--accent); border-radius: 4px; }
.presentation-a26f6ca549 { background: var(--paper); padding: var(--space-5); border-radius: 6px; margin-bottom: var(--space-5); }
.presentation-a2ca2520ea { text-align: center; margin: var(--space-8) 0; }
.presentation-a4639a186a { line-height: 1.8; }
.presentation-a86d0537d0 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--space-6); margin-bottom: var(--space-6); }
.presentation-ab4da663f7 { display: flex; align-items: flex-start; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-bottom: 1rem; }
.presentation-aec88e7eb9 { margin: 3rem 0; padding: 2rem; background: var(--paper-alt); border-left: 4px solid var(--accent); border-radius: 4px; }
.presentation-afc4006958 { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.presentation-b22d1f6323 { max-width: 900px; margin: 3rem auto; padding: 0 1.5rem; }
.presentation-b3a2297a12 { margin-bottom: 0; }
.presentation-b4d65ab0a4 { margin-top: 0; margin-bottom: var(--space-2); }
.presentation-b6ba35cf24 { flex: 1; padding: var(--space-3); background: var(--paper-alt); color: var(--ink); border: 1px solid var(--line); border-radius: 4px; font-family: monospace; font-size: 0.85rem; display: flex; align-items: center; word-break: break-all; }
.presentation-bb78ce5a97 { text-align: center; background: var(--surface); padding: var(--space-4) 0; }
.presentation-bbbfd9dbc5 { max-width: 130px; width: 100%; flex-shrink: 0; }
.presentation-bfb8586228 { color: var(--accent); }
.presentation-c0ff6de62a { position: absolute; left: -9999px; opacity: 0; }
.presentation-c4253701ab { margin: 0; font-size: 0.9rem; color: #0066cc; }
.presentation-c56b823057 { display: none; width: 100%; margin-top: 1rem; }
.presentation-c79ec38044 { color: var(--ink-dim); font-size: 0.85rem; font-weight: 600; }
.presentation-d288eeb959 { max-width: 700px; margin: var(--space-10) auto; }
.presentation-d3983a9aff { margin: 3rem 0; padding: 1.5rem; background: var(--paper-alt); border-radius: 4px; }
.presentation-d432c37bd3 { width: 100%; margin-top: var(--space-4); }
.presentation-d942f8f995 { padding: 1rem; text-align: left; font-weight: 600; }
.presentation-deea0a506b { font-size: 0.95rem; color: var(--ink-dim); }
.presentation-e0d38be22d { margin-top: auto; }
.presentation-e334f5536b { padding: var(--space-3) var(--space-4); flex-shrink: 0; height: auto; }
.presentation-e3cda66a12 { border-bottom: 1px solid var(--border); }
.presentation-e911152415 { font-size: 0.85rem; color: var(--ink-dim); margin: 0; }
.presentation-ed4f109a3e { display: flex; flex-direction: column; align-items: center; gap: var(--space-5); min-height: 300px; justify-content: flex-start; }
.presentation-edb538f9e9 { margin: 3rem 0; }
.presentation-edfbbbbe32 { color: var(--ink-dim); margin-bottom: var(--space-6); }
.presentation-f4ea18d8e1 { font-size: 0.9em; color: var(--color-text-light); margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border-color); }
.presentation-f8d63ec01a { margin-top: 1rem; padding: 1rem; background: rgba(232, 112, 74, 0.08); border-radius: 4px; border-left: 4px solid var(--accent); }
.presentation-f96cb05bcc { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--space-5); }
.presentation-fa2592f0b5 { margin: var(--space-4) 0 0 0; font-size: 0.9rem; color: var(--ink-dim); }
.presentation-fb356ede5b { background: #e7f3ff; padding: var(--space-4); border-radius: 6px; border-left: 3px solid var(--accent); }
.presentation-fbc6ea24d8 { margin-top: 0; margin-bottom: var(--space-4); font-size: 1rem; }
.presentation-fc0f91d5ef { background: var(--surface-alt); border-left: 4px solid var(--accent); padding: var(--space-4); margin: var(--space-6) auto; max-width: 100%; border-radius: 4px; }
.presentation-fc76118250 { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.presentation-fe5700cda9 { overflow-x: auto; margin: 1.5rem 0; }
.presentation-ff8d15c6a6 { max-width: 1000px; margin: 3rem auto; padding: 0 1.5rem; }
.presentation-ffbfdc78ff { margin-top: 1rem; padding: 1rem; border-radius: 4px; display: none; }
