/* EspionagePsychosis.com — dependency-free, accessible site styles */
:root {
    color-scheme: light;
    --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", serif;
    --bg: #f5f8f8;
    --surface: #ffffff;
    --surface-soft: #eaf2f2;
    --surface-strong: #dcebea;
    --text: #183039;
    --text-muted: #526b72;
    --heading: #0b3038;
    --primary: #0d5964;
    --primary-strong: #083f48;
    --primary-soft: #dceff0;
    --accent: #b86218;
    --accent-soft: #fff0df;
    --urgent: #9b2c2c;
    --urgent-strong: #742020;
    --urgent-soft: #fff0ef;
    --success: #2a6c4f;
    --success-soft: #e4f4eb;
    --border: #cbdada;
    --border-strong: #9db6b7;
    --shadow-sm: 0 1px 2px rgba(11, 48, 56, 0.08), 0 4px 12px rgba(11, 48, 56, 0.05);
    --shadow-md: 0 12px 32px rgba(11, 48, 56, 0.11);
    --radius-sm: 0.45rem;
    --radius: 0.8rem;
    --radius-lg: 1.25rem;
    --container: 74rem;
    --measure: 46rem;
    --focus: #f2a33a;
    --header-height: 5rem;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg: #0d1c20;
        --surface: #14272c;
        --surface-soft: #183238;
        --surface-strong: #1e3b42;
        --text: #e2eeee;
        --text-muted: #aec3c5;
        --heading: #f2f8f8;
        --primary: #70c4cc;
        --primary-strong: #9bdddf;
        --primary-soft: #153a40;
        --accent: #efb06e;
        --accent-soft: #3f2b1c;
        --urgent: #ff9c98;
        --urgent-strong: #ffc0bd;
        --urgent-soft: #402326;
        --success: #8bd2ae;
        --success-soft: #173a2b;
        --border: #355158;
        --border-strong: #547279;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25), 0 4px 14px rgba(0, 0, 0, 0.2);
        --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.35);
        --focus: #ffc05b;
    }
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0d1c20;
    --surface: #14272c;
    --surface-soft: #183238;
    --surface-strong: #1e3b42;
    --text: #e2eeee;
    --text-muted: #aec3c5;
    --heading: #f2f8f8;
    --primary: #70c4cc;
    --primary-strong: #9bdddf;
    --primary-soft: #153a40;
    --accent: #efb06e;
    --accent-soft: #3f2b1c;
    --urgent: #ff9c98;
    --urgent-strong: #ffc0bd;
    --urgent-soft: #402326;
    --success: #8bd2ae;
    --success-soft: #173a2b;
    --border: #355158;
    --border-strong: #547279;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25), 0 4px 14px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.35);
    --focus: #ffc05b;
}

:root[data-theme="light"] {
    color-scheme: light;
}

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

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-width: 20rem;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    color: inherit;
    font: inherit;
}

button,
select {
    cursor: pointer;
}

a {
    color: var(--primary);
    text-decoration-thickness: 0.09em;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--primary-strong);
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

::selection {
    background: var(--primary);
    color: #fff;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 0.65em;
    color: var(--heading);
    font-weight: 760;
    line-height: 1.18;
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(2.25rem, 5.5vw, 4.8rem);
    max-width: 17ch;
}

h2 {
    font-size: clamp(1.65rem, 3.3vw, 2.65rem);
}

h3 {
    font-size: clamp(1.15rem, 2.2vw, 1.5rem);
}

h4 {
    font-size: 1.05rem;
}

p,
ul,
ol,
dl,
blockquote {
    margin-top: 0;
    margin-bottom: 1.05rem;
}

ul,
ol {
    padding-left: 1.3rem;
}

li + li {
    margin-top: 0.42rem;
}

strong {
    color: var(--heading);
}

hr {
    margin: 2.4rem 0;
    border: 0;
    border-top: 1px solid var(--border);
}

code {
    padding: 0.12em 0.35em;
    border: 1px solid var(--border);
    border-radius: 0.3rem;
    background: var(--surface-soft);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
}

.container {
    width: min(calc(100% - 2rem), var(--container));
    margin-inline: auto;
}

.measure {
    max-width: var(--measure);
}

.center {
    text-align: center;
}

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

.skip-link {
    position: fixed;
    z-index: 9999;
    top: 0.75rem;
    left: 0.75rem;
    transform: translateY(-180%);
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--heading);
    color: var(--surface);
    font-weight: 700;
    transition: transform 120ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.urgent-bar {
    background: var(--urgent-strong);
    color: #fff;
    font-size: 0.92rem;
}

.urgent-bar__inner {
    display: flex;
    min-height: 2.65rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    padding-block: 0.42rem;
}

.urgent-bar p {
    margin: 0;
}

.urgent-bar strong {
    color: inherit;
}

.urgent-bar__link {
    flex: 0 0 auto;
    color: #fff;
    font-weight: 750;
    text-decoration: underline;
}

.urgent-bar__link:hover {
    color: #fff;
}

.site-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
    background: color-mix(in srgb, var(--surface) 93%, transparent);
    backdrop-filter: blur(14px);
}

.site-header__inner {
    position: relative;
    display: flex;
    min-height: var(--header-height);
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 0.72rem;
    color: var(--heading);
    text-decoration: none;
}

.brand:hover {
    color: var(--heading);
}

.brand__mark {
    width: 2.45rem;
    height: 2.45rem;
    flex: 0 0 auto;
    color: var(--primary);
}

.brand__text {
    display: grid;
    min-width: 0;
}

.brand__name {
    overflow: hidden;
    font-size: 1.06rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand__domain {
    overflow: hidden;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.015em;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 1.15rem;
}

.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 0.12rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.primary-nav li {
    margin: 0;
}

.primary-nav ul a {
    display: block;
    padding: 0.58rem 0.67rem;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 680;
    text-decoration: none;
}

.primary-nav ul a:hover,
.primary-nav ul a[aria-current="page"] {
    background: var(--surface-soft);
    color: var(--primary-strong);
}

.primary-nav ul a[aria-current="page"] {
    box-shadow: inset 0 -2px 0 var(--primary);
}

.primary-nav__actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-weight: 700;
}

.nav-toggle__icon {
    display: grid;
    width: 1.2rem;
    gap: 0.22rem;
}

.nav-toggle__icon span {
    display: block;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.theme-toggle {
    display: inline-grid;
    width: 2.4rem;
    height: 2.4rem;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--heading);
    box-shadow: var(--shadow-sm);
}

.theme-toggle__moon {
    display: none;
}

:root[data-theme="dark"] .theme-toggle__sun,
:root:not([data-theme="light"]) .theme-toggle__sun {
    display: none;
}

:root[data-theme="dark"] .theme-toggle__moon,
:root:not([data-theme="light"]) .theme-toggle__moon {
    display: inline;
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .theme-toggle__sun {
        display: inline;
    }

    :root:not([data-theme="dark"]) .theme-toggle__moon {
        display: none;
    }
}

main {
    min-height: 55vh;
}

.section {
    padding-block: clamp(3.7rem, 8vw, 7rem);
}

.section--tight {
    padding-block: clamp(2.5rem, 5vw, 4rem);
}

.section--surface {
    border-block: 1px solid var(--border);
    background: var(--surface);
}

.section--soft {
    background: var(--surface-soft);
}

.section--primary {
    background: var(--primary-strong);
    color: #eefafa;
}

.section--primary h2,
.section--primary h3,
.section--primary strong {
    color: #fff;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-bottom: 2rem;
}

.section-heading > div {
    max-width: 48rem;
}

.section-heading h2 {
    margin-bottom: 0.45rem;
}

.section-heading p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.06rem;
}

.section-heading--light p {
    color: #c7dddd;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 820;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 1.75rem;
    height: 2px;
    content: "";
    background: currentColor;
}

.eyebrow--light {
    color: #9ee1e5;
}

.lead {
    max-width: 45rem;
    color: var(--text-muted);
    font-size: clamp(1.12rem, 2vw, 1.32rem);
    line-height: 1.58;
}

.lead--light {
    color: #c7dddd;
}

.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(4.2rem, 9vw, 8rem);
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--primary) 16%, transparent) 0 7rem, transparent 7.2rem),
        radial-gradient(circle at 92% 66%, color-mix(in srgb, var(--accent) 10%, transparent) 0 11rem, transparent 11.2rem),
        linear-gradient(135deg, var(--surface) 0%, var(--bg) 66%);
}

.hero::after {
    position: absolute;
    inset: auto -10rem -18rem auto;
    width: 34rem;
    height: 34rem;
    border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
    border-radius: 50%;
    content: "";
    box-shadow:
        0 0 0 4rem color-mix(in srgb, var(--primary) 4%, transparent),
        0 0 0 8rem color-mix(in srgb, var(--primary) 3%, transparent);
    pointer-events: none;
}

.hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
    align-items: center;
    gap: clamp(2rem, 7vw, 6rem);
}

.hero__content p:last-of-type {
    margin-bottom: 0;
}

.hero__actions,
.button-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.65rem;
}

.hero__note {
    margin-top: 1.35rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hero__visual {
    position: relative;
    min-height: 24rem;
}

.orbit-card {
    position: absolute;
    width: min(100%, 21rem);
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.orbit-card:nth-child(1) {
    top: 0;
    right: 0;
}

.orbit-card:nth-child(2) {
    top: 8.2rem;
    left: 0;
}

.orbit-card:nth-child(3) {
    right: 1.6rem;
    bottom: 0;
}

.orbit-card__icon {
    display: grid;
    width: 2.55rem;
    height: 2.55rem;
    margin-bottom: 0.85rem;
    place-items: center;
    border-radius: 0.7rem;
    background: var(--primary-soft);
    color: var(--primary);
}

.orbit-card h2,
.orbit-card h3 {
    margin-bottom: 0.3rem;
    font-size: 1.03rem;
}

.orbit-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.page-hero {
    padding-block: clamp(3.4rem, 7vw, 5.8rem);
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(circle at 92% 24%, color-mix(in srgb, var(--primary) 13%, transparent), transparent 18rem),
        var(--surface);
}

.page-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.36fr);
    align-items: end;
    gap: 2rem 4rem;
}

.page-hero h1 {
    font-size: clamp(2.15rem, 4.8vw, 4rem);
}

.page-hero__aside {
    padding: 1.15rem 1.25rem;
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--accent-soft);
}

.page-hero__aside p:last-child {
    margin-bottom: 0;
}

.breadcrumbs {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.breadcrumbs a {
    color: inherit;
}

.button {
    display: inline-flex;
    min-height: 2.9rem;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.72rem 1.05rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #fff;
    font-weight: 760;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.button:hover {
    transform: translateY(-1px);
    background: var(--primary-strong);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.button--secondary {
    border-color: var(--border-strong);
    background: var(--surface);
    color: var(--heading);
}

.button--secondary:hover {
    background: var(--surface-soft);
    color: var(--primary-strong);
}

.button--urgent {
    background: var(--urgent);
    color: #fff;
}

.button--urgent:hover {
    background: var(--urgent-strong);
}

.button--light {
    background: #fff;
    color: #123a42;
}

.button--light:hover {
    background: #eaf7f7;
    color: #123a42;
}

.button--small {
    min-height: 2.35rem;
    padding: 0.48rem 0.72rem;
    font-size: 0.86rem;
}

.button--text {
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary);
    box-shadow: none;
}

.button--text:hover {
    transform: none;
    background: transparent;
    color: var(--primary-strong);
    box-shadow: none;
}

.icon {
    width: 1.5rem;
    height: 1.5rem;
}

.icon-card-grid,
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.icon-card,
.card {
    position: relative;
    padding: 1.4rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.icon-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
}

.icon-card__icon {
    display: grid;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    place-items: center;
    border-radius: 0.8rem;
    background: var(--primary-soft);
    color: var(--primary);
}

.icon-card h3,
.card h3 {
    margin-bottom: 0.45rem;
}

.icon-card p,
.card p {
    color: var(--text-muted);
}

.icon-card p:last-of-type,
.card p:last-of-type {
    margin-bottom: 0;
}

.icon-card__link {
    margin-top: auto;
    padding-top: 1rem;
    font-weight: 760;
}

.icon-card--urgent .icon-card__icon {
    background: var(--urgent-soft);
    color: var(--urgent);
}

.icon-card--accent .icon-card__icon {
    background: var(--accent-soft);
    color: var(--accent);
}

.card--soft {
    background: var(--surface-soft);
}

.card--borderless {
    border: 0;
    box-shadow: none;
}

.card--urgent {
    border-color: color-mix(in srgb, var(--urgent) 35%, var(--border));
    background: var(--urgent-soft);
}

.card--success {
    border-color: color-mix(in srgb, var(--success) 35%, var(--border));
    background: var(--success-soft);
}

.callout {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.9rem;
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--border);
    border-left: 5px solid var(--primary);
    border-radius: var(--radius);
    background: var(--surface);
}

.callout + .callout {
    margin-top: 1rem;
}

.callout__icon {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 850;
}

.callout h2,
.callout h3 {
    margin-bottom: 0.35rem;
}

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

.callout--urgent {
    border-left-color: var(--urgent);
    background: var(--urgent-soft);
}

.callout--urgent .callout__icon {
    background: color-mix(in srgb, var(--urgent) 17%, transparent);
    color: var(--urgent);
}

.callout--accent {
    border-left-color: var(--accent);
    background: var(--accent-soft);
}

.callout--accent .callout__icon {
    background: color-mix(in srgb, var(--accent) 16%, transparent);
    color: var(--accent);
}

.callout--success {
    border-left-color: var(--success);
    background: var(--success-soft);
}

.callout--success .callout__icon {
    background: color-mix(in srgb, var(--success) 16%, transparent);
    color: var(--success);
}

.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 5vw, 4.5rem);
    align-items: start;
}

.split--wide-left {
    grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
}

.split--wide-right {
    grid-template-columns: minmax(18rem, 0.8fr) minmax(0, 1.2fr);
}

.stack > * + * {
    margin-top: 1rem;
}

.check-list,
.cross-list,
.arrow-list,
.plain-list {
    padding: 0;
    list-style: none;
}

.check-list li,
.cross-list li,
.arrow-list li {
    position: relative;
    padding-left: 1.8rem;
}

.check-list li::before,
.cross-list li::before,
.arrow-list li::before {
    position: absolute;
    top: 0.04rem;
    left: 0;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 850;
    line-height: 1.25rem;
    text-align: center;
}

.check-list li::before {
    background: var(--success-soft);
    color: var(--success);
    content: "✓";
}

.cross-list li::before {
    background: var(--urgent-soft);
    color: var(--urgent);
    content: "×";
}

.arrow-list li::before {
    background: var(--primary-soft);
    color: var(--primary);
    content: "→";
}

.numbered-steps {
    display: grid;
    gap: 0.9rem;
    padding: 0;
    counter-reset: step;
    list-style: none;
}

.numbered-steps li {
    position: relative;
    min-height: 3.1rem;
    padding: 0.95rem 1rem 0.95rem 4.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    counter-increment: step;
}

.numbered-steps li::before {
    position: absolute;
    top: 0.75rem;
    left: 0.85rem;
    display: grid;
    width: 2.45rem;
    height: 2.45rem;
    place-items: center;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    content: counter(step);
    font-weight: 850;
}

.numbered-steps strong {
    display: block;
    margin-bottom: 0.15rem;
}

.quote-script {
    position: relative;
    padding: 1.25rem 1.35rem 1.25rem 3.15rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--heading);
    font-size: 1.04rem;
    font-weight: 620;
}

.quote-script::before {
    position: absolute;
    top: 0.6rem;
    left: 1rem;
    color: var(--primary);
    content: "“";
    font-family: Georgia, serif;
    font-size: 3.4rem;
    line-height: 1;
}

.quote-script footer {
    margin-top: 0.6rem;
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 500;
}

.copy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.7rem;
}

.copy-status,
.form-status {
    min-height: 1.4rem;
    margin: 0;
    color: var(--success);
    font-size: 0.88rem;
    font-weight: 700;
}

.definition-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.definition-card {
    padding: 1.3rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.definition-card dt {
    margin-bottom: 0.35rem;
    color: var(--heading);
    font-size: 1.05rem;
    font-weight: 800;
}

.definition-card dd {
    margin: 0;
    color: var(--text-muted);
}

.comparison-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.comparison-table {
    width: 100%;
    min-width: 42rem;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.comparison-table th {
    background: var(--surface-soft);
    color: var(--heading);
    font-size: 0.86rem;
    letter-spacing: 0.02em;
}

.comparison-table tr:last-child td {
    border-bottom: 0;
}

details {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

details + details {
    margin-top: 0.75rem;
}

summary {
    position: relative;
    padding: 1rem 3rem 1rem 1.15rem;
    color: var(--heading);
    font-weight: 760;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    position: absolute;
    top: 50%;
    right: 1.15rem;
    content: "+";
    color: var(--primary);
    font-size: 1.45rem;
    transform: translateY(-50%);
}

details[open] summary::after {
    content: "−";
}

.details-body {
    padding: 0 1.15rem 1.1rem;
    color: var(--text-muted);
}

.details-body p:last-child,
.details-body ul:last-child {
    margin-bottom: 0;
}

.crisis-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.crisis-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    padding: 1.35rem;
    border: 1px solid var(--border);
    border-top: 5px solid var(--urgent);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.crisis-card__region {
    margin-bottom: 0.55rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.crisis-card__number {
    margin-bottom: 0.55rem;
    color: var(--heading);
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 850;
    line-height: 1.15;
}

.crisis-card p {
    color: var(--text-muted);
}

.crisis-card .button {
    margin-top: auto;
}

.resource-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.resource-summary__item {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.resource-summary__number {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 850;
    line-height: 1;
}

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

.resource-tools {
    position: sticky;
    z-index: 20;
    top: calc(var(--header-height) + 0.7rem);
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
}

.resource-tools__top {
    display: grid;
    grid-template-columns: minmax(15rem, 1.4fr) repeat(3, minmax(9rem, 0.7fr));
    gap: 0.7rem;
}

.resource-tools__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.75rem;
}

.search-field {
    position: relative;
}

.search-field::before {
    position: absolute;
    top: 50%;
    left: 0.85rem;
    color: var(--text-muted);
    content: "⌕";
    font-size: 1.25rem;
    transform: translateY(-52%);
}

.search-field input {
    padding-left: 2.35rem;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
select,
textarea {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.035);
}

textarea {
    min-height: 7rem;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: color-mix(in srgb, var(--text-muted) 75%, transparent);
}

.form-label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--heading);
    font-size: 0.88rem;
    font-weight: 730;
}

.form-help {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 680;
}

.checkbox-label input {
    width: 1.15rem;
    height: 1.15rem;
    accent-color: var(--primary);
}

.resource-results-status {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.split .resource-grid {
    grid-template-columns: 1fr;
}

.center .button-row {
    justify-content: center;
}

.resource-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.resource-card[hidden] {
    display: none !important;
}

.resource-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}

.tag {
    display: inline-flex;
    min-height: 1.55rem;
    align-items: center;
    padding: 0.2rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 750;
    line-height: 1.2;
}

.tag--category {
    border-color: color-mix(in srgb, var(--primary) 28%, var(--border));
    background: var(--primary-soft);
    color: var(--primary-strong);
}

.resource-card__title {
    margin-bottom: 0.32rem;
    font-size: 1.12rem;
    line-height: 1.3;
}

.resource-card__title a {
    color: var(--heading);
    text-decoration: none;
}

.resource-card__title a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.external-mark {
    display: inline-block;
    margin-left: 0.15rem;
    color: var(--primary);
    font-size: 0.85em;
}

.resource-card__org {
    margin-bottom: 0.7rem;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 720;
}

.resource-card__description {
    margin-bottom: 0.85rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.resource-card__note {
    padding: 0.65rem 0.7rem;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

.resource-card__footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.85rem;
    margin-top: auto;
    border-top: 1px solid var(--border);
}

.resource-card__regions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.55rem;
    color: var(--text-muted);
    font-size: 0.7rem;
}

.bookmark-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.28rem;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.bookmark-button:hover,
.bookmark-button[aria-pressed="true"] {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}

.bookmark-button[aria-pressed="true"] > span:first-child {
    font-size: 0;
}

.bookmark-button[aria-pressed="true"] > span:first-child::after {
    content: "★";
    font-size: 0.9rem;
}

.resource-load-more {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.no-results {
    padding: 2rem;
    margin-top: 1rem;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
    background: var(--surface);
    text-align: center;
}

.research-list {
    display: grid;
    gap: 1rem;
}

.research-item {
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.research-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.55rem;
}

.research-item h3 {
    margin-bottom: 0.45rem;
}

.research-item p:last-child {
    margin-bottom: 0;
}

.timeline {
    position: relative;
    display: grid;
    gap: 1rem;
    padding-left: 2rem;
}

.timeline::before {
    position: absolute;
    top: 0.5rem;
    bottom: 0.5rem;
    left: 0.55rem;
    width: 2px;
    background: var(--border-strong);
    content: "";
}

.timeline__item {
    position: relative;
    padding: 1rem 1.15rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.timeline__item::before {
    position: absolute;
    top: 1.25rem;
    left: -1.94rem;
    width: 0.85rem;
    height: 0.85rem;
    border: 3px solid var(--bg);
    border-radius: 50%;
    background: var(--primary);
    content: "";
}

.timeline__item h3 {
    margin-bottom: 0.25rem;
}

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

.support-plan {
    display: grid;
    gap: 1.1rem;
}

.plan-section {
    padding: 1.3rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.plan-section h2 {
    margin-bottom: 0.25rem;
    font-size: 1.35rem;
}

.plan-section__intro {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-field--full {
    grid-column: 1 / -1;
}

.plan-actions {
    position: sticky;
    z-index: 10;
    bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface) 95%, transparent);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
}

.plan-actions .form-status {
    margin-left: auto;
}

.local-data-panel {
    padding: 1.2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.local-data-panel p:last-child {
    margin-bottom: 0;
}

.site-safety-note {
    padding-block: 2.6rem;
    background: var(--primary-strong);
    color: #dff2f2;
}

.site-safety-note__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem 3rem;
}

.site-safety-note h2,
.site-safety-note strong {
    color: #fff;
}

.site-safety-note h2 {
    margin-bottom: 0.35rem;
    font-size: clamp(1.35rem, 2.8vw, 2rem);
}

.site-safety-note p {
    max-width: 56rem;
    margin: 0;
    color: #c7dddd;
}

.site-footer {
    padding-top: 3.5rem;
    background: #0a252c;
    color: #c5d8da;
}

.site-footer a {
    color: #d9eeee;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(12rem, 0.75fr));
    gap: 2rem 4rem;
}

.site-footer__brand p {
    max-width: 30rem;
    margin-top: 1rem;
    color: #aac3c5;
}

.brand--footer {
    color: #fff;
}

.brand--footer:hover {
    color: #fff;
}

.brand--footer .brand__mark {
    color: #7fd0d5;
}

.brand--footer .brand__domain {
    color: #9ab9bb;
}

.site-footer__nav h2 {
    margin-bottom: 0.85rem;
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer__nav ul {
    padding: 0;
    list-style: none;
}

.site-footer__nav li + li {
    margin-top: 0.55rem;
}

.site-footer__nav a {
    text-decoration: none;
}

.site-footer__nav a:hover {
    text-decoration: underline;
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding-block: 1.25rem;
    margin-top: 2.5rem;
    border-top: 1px solid #29474e;
    color: #8facaf;
    font-size: 0.78rem;
}

.site-footer__bottom p {
    margin: 0;
}

.notice-bar {
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
    color: var(--text-muted);
    font-size: 0.88rem;
}

.notice-bar strong {
    color: var(--heading);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.stat-card {
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    text-align: center;
}

.stat-card__value {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--primary);
    font-size: 2.1rem;
    font-weight: 850;
    line-height: 1;
}

.stat-card__label {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
    padding: 0;
    list-style: none;
}

.inline-links li {
    margin: 0;
}

.alert-box {
    padding: 1.3rem;
    border: 2px solid var(--urgent);
    border-radius: var(--radius);
    background: var(--urgent-soft);
}

.alert-box h2,
.alert-box h3 {
    color: var(--urgent-strong);
}

.alert-box p:last-child,
.alert-box ul:last-child {
    margin-bottom: 0;
}

.ai-stop-card {
    padding: clamp(1.4rem, 4vw, 2.25rem);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.ai-stop-card__letters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1.25rem;
}

.ai-stop-card__letter {
    padding: 1rem;
    border-radius: var(--radius);
    background: var(--primary-soft);
}

.ai-stop-card__letter strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--primary-strong);
    font-size: 1.45rem;
}

.ai-stop-card__letter p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.two-track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.track-card {
    padding: 1.35rem;
    border: 1px solid var(--border);
    border-top: 5px solid var(--primary);
    border-radius: var(--radius);
    background: var(--surface);
}

.track-card:nth-child(2) {
    border-top-color: var(--accent);
}

.track-card__label {
    display: inline-block;
    margin-bottom: 0.65rem;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.track-card:nth-child(2) .track-card__label {
    color: var(--accent);
}

.link-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.link-box + .link-box {
    margin-top: 0.7rem;
}

.link-box p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.link-box a {
    flex: 0 0 auto;
    font-weight: 750;
}

@media (max-width: 68rem) {
    .site-header__inner {
        flex-wrap: wrap;
    }

    .primary-nav {
        position: static;
        display: block;
        width: 100%;
        padding: 0 0 1rem;
        border-top: 1px solid var(--border);
        background: var(--surface);
    }

    .js-enabled .site-header__inner {
        flex-wrap: nowrap;
    }

    .js-enabled .primary-nav {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        display: none;
        width: auto;
        padding: 1rem;
        border-top: 0;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }

    .js-enabled .primary-nav.is-open {
        display: block;
    }

    .primary-nav ul {
        display: grid;
        gap: 0.25rem;
    }

    .primary-nav ul a {
        padding: 0.78rem 0.85rem;
    }

    .primary-nav__actions {
        justify-content: space-between;
        padding-top: 0.8rem;
        margin-top: 0.7rem;
        border-top: 1px solid var(--border);
    }

    .js-enabled .nav-toggle {
        display: inline-flex;
    }

    .hero__grid {
        grid-template-columns: 1fr;
    }

    .hero__visual {
        width: min(100%, 38rem);
        min-height: 18rem;
        margin-inline: auto;
    }

    .orbit-card {
        width: min(100%, 19rem);
    }

    .orbit-card:nth-child(2) {
        top: 5rem;
    }

    .page-hero__grid {
        grid-template-columns: 1fr;
    }

    .resource-tools {
        position: static;
    }

    .resource-tools__top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .resource-tools__top .search-field {
        grid-column: 1 / -1;
    }

    .resource-grid,
    .icon-card-grid,
    .card-grid,
    .crisis-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer__grid {
        grid-template-columns: 1.25fr 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 48rem) {
    :root {
        --header-height: 4.5rem;
    }

    .urgent-bar__inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.15rem;
        padding-block: 0.5rem;
    }

    .brand__domain {
        display: none;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero {
        padding-block: 3.6rem 4.3rem;
    }

    .hero__visual {
        display: grid;
        min-height: 0;
        gap: 0.8rem;
    }

    .orbit-card,
    .orbit-card:nth-child(1),
    .orbit-card:nth-child(2),
    .orbit-card:nth-child(3) {
        position: static;
        width: 100%;
    }

    .page-hero__aside {
        border-top: 4px solid var(--accent);
        border-left: 1px solid var(--border);
        border-radius: var(--radius);
    }

    .split,
    .split--wide-left,
    .split--wide-right,
    .two-track {
        grid-template-columns: 1fr;
    }

    .resource-grid,
    .icon-card-grid,
    .card-grid,
    .crisis-grid,
    .definition-grid,
    .stat-grid {
        grid-template-columns: 1fr;
    }

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

    .resource-tools__top,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .resource-tools__top .search-field,
    .form-field--full {
        grid-column: auto;
    }

    .resource-tools__bottom,
    .site-footer__bottom,
    .link-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-safety-note__inner {
        grid-template-columns: 1fr;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .ai-stop-card__letters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .plan-actions {
        position: static;
    }

    .plan-actions .form-status {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 30rem) {
    .container {
        width: min(calc(100% - 1.25rem), var(--container));
    }

    .brand__name {
        font-size: 0.95rem;
    }

    .nav-toggle__label {
        display: none;
    }

    .hero__actions .button,
    .button-row .button {
        width: 100%;
    }

    .resource-summary,
    .ai-stop-card__letters {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media print {
    :root {
        color-scheme: light;
        --bg: #fff;
        --surface: #fff;
        --surface-soft: #f3f3f3;
        --text: #111;
        --text-muted: #333;
        --heading: #000;
        --border: #aaa;
        --primary: #111;
        --primary-strong: #000;
    }

    .urgent-bar,
    .site-header,
    .site-safety-note,
    .site-footer,
    .resource-tools,
    .bookmark-button,
    .resource-load-more,
    .theme-toggle,
    .nav-toggle,
    .plan-actions,
    .button,
    .copy-row,
    .no-print {
        display: none !important;
    }

    body {
        background: #fff;
        color: #111;
        font-size: 10.5pt;
    }

    main,
    .section,
    .page-hero {
        padding: 0 !important;
    }

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

    .page-hero {
        margin-bottom: 1.2rem;
        border: 0;
        background: none;
    }

    .page-hero__grid,
    .split,
    .form-grid {
        display: block;
    }

    .plan-section,
    .card,
    .callout,
    .resource-card {
        break-inside: avoid;
        box-shadow: none;
    }

    a {
        color: #111;
        text-decoration: underline;
    }

    .support-plan textarea,
    .support-plan input {
        border: 1px solid #888;
        background: #fff;
        color: #000;
    }
}
