:root {
    color-scheme: light;
    --ink: #0b0b0a;
    --ink-soft: #151513;
    --ink-lifted: #1e1d1a;
    --paper: #f7f4ed;
    --paper-soft: #eee8dc;
    --paper-deep: #e2d9c8;
    --text: #24231f;
    --muted: #6f6a60;
    --line: #d5cbb9;
    --line-dark: #3d382d;
    --gold: #b99a53;
    --gold-light: #dec581;
    --gold-pale: #f1e5c6;
    --gold-text: #694e12;
    --danger: #862f2f;
    --danger-dark: #2c1010;
    --danger-light: #f4dddd;
    --focus: #ffffff;
    --focus-dark: #164f6c;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.27);
    --serif: Georgia, "Times New Roman", serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--sans);
    font-size: 18px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: var(--gold-light);
    text-underline-offset: 0.2em;
}

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

h1,
h2,
h3 {
    line-height: 1.18;
}

h1,
h2 {
    font-family: var(--serif);
    font-weight: 400;
}

h1 {
    font-size: clamp(2.25rem, 6vw, 4.5rem);
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.35rem);
}

h3 {
    font-size: 1.15rem;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 1000;
    padding: 0.7rem 1rem;
    background: var(--paper);
    color: var(--text);
}

.skip-link:focus {
    top: 1rem;
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px var(--focus-dark);
}

.sr-only {
    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;
}

.utility-bar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem clamp(1rem, 4vw, 3.5rem);
    border-bottom: 1px solid rgba(222, 197, 129, 0.38);
    background: #2c2512;
    color: #f4e7c5;
    font-size: 0.84rem;
    letter-spacing: 0.025em;
}

.utility-bar a {
    color: inherit;
    font-weight: 700;
}

.site-header {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid rgba(185, 154, 83, 0.42);
    background: rgba(11, 11, 10, 0.98);
}

.site-header--compact {
    background: var(--ink);
}

.site-header__inner {
    display: grid;
    width: min(calc(100% - 2rem), 1440px);
    min-height: 86px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
    margin-inline: auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    color: var(--paper);
    text-decoration: none;
}

.brand-copy strong,
.brand-copy small {
    display: block;
    line-height: 1.2;
}

.brand-copy strong {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-copy small {
    margin-top: 0.28rem;
    color: #aaa397;
    font-family: var(--sans);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.brand-mark {
    display: grid;
    width: 2.4rem;
    height: 2.4rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--gold);
    color: var(--gold-light);
    transform: rotate(45deg);
}

.brand-mark span {
    transform: rotate(-45deg);
}

.menu-toggle {
    display: none;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--line-dark);
    background: var(--ink-lifted);
    color: var(--paper);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.menu-toggle:hover {
    border-color: var(--gold);
    color: var(--gold-light);
}

.menu-toggle__icon {
    display: grid;
    width: 1.05rem;
    gap: 0.22rem;
}

.menu-toggle__icon span {
    display: block;
    height: 1px;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
}

.is-menu-open .menu-toggle__icon span:first-child {
    transform: translateY(0.28rem) rotate(45deg);
}

.is-menu-open .menu-toggle__icon span:nth-child(2) {
    opacity: 0;
}

.is-menu-open .menu-toggle__icon span:last-child {
    transform: translateY(-0.28rem) rotate(-45deg);
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.65rem 1.35rem;
}

.site-nav a {
    color: #e9e3d8;
    font-size: 0.9rem;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--gold-light);
}

.site-nav a[aria-current="page"] {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.45rem;
}

.site-nav__external {
    padding: 0.45rem 0.75rem;
    border: 1px solid rgba(185, 154, 83, 0.4);
}

.site-nav__external + .site-nav__external {
    margin-left: -0.7rem;
}

.site-footer {
    border-top: 1px solid var(--line-dark);
    background: var(--ink);
    color: #bbb4a7;
    font-size: 0.84rem;
}

.site-footer__main {
    display: grid;
    width: min(calc(100% - 2rem), 1440px);
    grid-template-columns: 1.35fr 0.85fr 1.1fr 0.8fr;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    margin-inline: auto;
    padding-block: 3.2rem 2.7rem;
}

.site-footer h2 {
    margin: 0 0 0.9rem;
    color: var(--paper);
    font-family: var(--sans);
    font-size: 0.82rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer p,
.site-footer address,
.site-footer ul {
    margin: 0;
    color: #bbb4a7;
    font-style: normal;
}

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

.site-footer a:hover {
    color: var(--gold-light);
}

.footer-brand__identity {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    color: var(--paper);
    text-decoration: none;
}

.footer-brand__identity strong {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.brand-mark--footer {
    width: 2.7rem;
    height: 2.7rem;
}

.footer-brand > p {
    max-width: 25rem;
    margin-top: 1.1rem;
}

.footer-brand .footer-status {
    color: #999285;
    font-size: 0.76rem;
}

.footer-contact {
    display: grid;
    gap: 0.38rem;
}

.footer-contact a {
    min-height: 2rem;
    display: inline-flex;
    align-items: center;
}

.footer-company {
    line-height: 1.8;
}

.footer-links ul {
    padding: 0;
    list-style: none;
}

.footer-links li + li {
    margin-top: 0.3rem;
}

.footer-links a {
    min-height: 2rem;
    display: inline-flex;
    align-items: center;
}

.site-footer__bottom {
    display: flex;
    width: min(calc(100% - 2rem), 1440px);
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-inline: auto;
    padding-block: 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #8f897e;
    font-size: 0.73rem;
}

.site-footer__bottom p {
    color: inherit;
}

.app-root {
    min-height: 50vh;
}

.intro-hero {
    position: relative;
    display: grid;
    min-height: 620px;
    align-items: center;
    padding: clamp(2.5rem, 7vw, 6.5rem) clamp(1.2rem, 7vw, 7rem) clamp(6rem, 10vw, 9rem);
    background:
        linear-gradient(90deg, rgba(11, 11, 10, 0) 0%, rgba(11, 11, 10, 0.2) 37%, rgba(11, 11, 10, 0.97) 78%),
        linear-gradient(0deg, rgba(11, 11, 10, 0.45), transparent 48%),
        url("hero.webp") 25% center / cover no-repeat,
        var(--ink);
    clip-path: polygon(0 0, 100% 0, 100% 91%, 37% 100%, 0 86%);
}

.intro-copy {
    width: min(680px, 56%);
    margin-left: auto;
    text-align: center;
}

.eyebrow {
    margin: 0 0 0.7rem;
    color: var(--gold-light);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.paper-panel .eyebrow,
.result-paper .eyebrow,
.prose-page .eyebrow,
.crisis-support-panel .eyebrow,
.safety-panel:not(.safety-panel--urgent) .eyebrow {
    color: var(--gold-text);
}

.intro-copy h1 {
    max-width: 15ch;
    margin: 0 auto 1.1rem;
    color: var(--gold-light);
}

.intro-lead {
    max-width: 51ch;
    margin: 0 auto 1.6rem;
    color: #eee9df;
}

.gold-rule {
    width: min(250px, 55%);
    height: 1px;
    margin: 1rem auto 1.2rem;
    background: var(--gold);
}

.feature-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 4vw, 4rem);
    padding: 3rem clamp(1.2rem, 7vw, 7rem) 3.5rem;
    background: var(--paper);
    color: var(--text);
}

.feature-item {
    position: relative;
    text-align: center;
}

.feature-number {
    display: grid;
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto 1rem;
    place-items: center;
    border: 1px solid var(--gold);
    color: #806628;
    font-family: var(--serif);
    transform: rotate(45deg);
}

.feature-number > span {
    transform: rotate(-45deg);
}

.feature-item strong {
    display: block;
    margin-bottom: 0.35rem;
    font-family: var(--serif);
    font-size: 1.15rem;
    letter-spacing: 0.03em;
}

.feature-item p {
    margin: 0;
    color: var(--muted);
}

.intro-disclaimer {
    padding: 1.25rem clamp(1.2rem, 7vw, 7rem);
    border-top: 1px solid var(--line);
    background: var(--paper);
    color: var(--muted);
    text-align: center;
}

.intro-disclaimer strong {
    display: block;
    color: var(--text);
}

.intro-disclaimer p {
    margin: 0.2rem 0 0;
}

.resume-panel {
    margin-block: 2rem;
    padding: 1.5rem;
    border-left: 4px solid var(--gold);
    background: var(--paper);
    color: var(--text);
}

.resume-panel h2 {
    margin-top: 0;
}

.page-shell {
    width: min(1120px, calc(100% - 2rem));
    margin-inline: auto;
}

.screen-shell {
    min-height: 68vh;
    padding: clamp(1.2rem, 5vw, 4.5rem) 1rem;
    background:
        radial-gradient(circle at 12% 5%, rgba(185, 154, 83, 0.13), transparent 28rem),
        var(--ink);
}

.paper-panel,
.result-paper {
    width: min(980px, 100%);
    margin-inline: auto;
    padding: clamp(1.25rem, 5vw, 3.5rem);
    border-top: 4px solid var(--gold);
    background: var(--paper);
    color: var(--text);
    box-shadow: var(--shadow);
}

.paper-panel--narrow {
    width: min(780px, 100%);
}

.paper-panel--wide,
.result-paper {
    width: min(1180px, 100%);
}

.section-heading {
    max-width: 780px;
    margin: 0 auto 2rem;
    text-align: center;
}

.section-heading h1 {
    margin: 0.3rem 0 0.8rem;
    color: var(--text);
    font-size: clamp(2rem, 5vw, 3.8rem);
}

.section-lead {
    margin: 0 auto;
    color: var(--muted);
}

.progress-block {
    margin-bottom: 2rem;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.55rem;
    color: var(--muted);
    font-size: 0.86rem;
}

.progress-track {
    overflow: hidden;
    height: 0.35rem;
    background: var(--paper-deep);
}

.progress-track span {
    display: block;
    height: 100%;
    background: var(--gold);
}

.bar-width-0 { width: 0; }
.bar-width-5 { width: 5%; }
.bar-width-10 { width: 10%; }
.bar-width-15 { width: 15%; }
.bar-width-20 { width: 20%; }
.bar-width-25 { width: 25%; }
.bar-width-30 { width: 30%; }
.bar-width-35 { width: 35%; }
.bar-width-40 { width: 40%; }
.bar-width-45 { width: 45%; }
.bar-width-50 { width: 50%; }
.bar-width-55 { width: 55%; }
.bar-width-60 { width: 60%; }
.bar-width-65 { width: 65%; }
.bar-width-70 { width: 70%; }
.bar-width-75 { width: 75%; }
.bar-width-80 { width: 80%; }
.bar-width-85 { width: 85%; }
.bar-width-90 { width: 90%; }
.bar-width-95 { width: 95%; }
.bar-width-100 { width: 100%; }

.disclaimer {
    margin: 1.5rem 0;
    padding: 1.1rem 1.2rem;
    border-left: 4px solid var(--gold);
    background: var(--paper-soft);
    color: var(--text);
}

.disclaimer--strong {
    border: 1px solid #c9b98e;
    border-left: 4px solid var(--gold);
    background: var(--gold-pale);
}

.disclaimer-note {
    margin: 0.7rem 0 0;
    color: #5f563f;
    font-size: 0.92rem;
}

.check-list {
    padding-left: 1.4rem;
}

.check-list li + li {
    margin-top: 0.55rem;
}

.consent-check {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.3rem 0.8rem;
    align-items: start;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    cursor: pointer;
}

.consent-check--secondary {
    background: #fbf8f2;
}

.consent-check--sensitive {
    border-color: #b88d8d;
    background: #faf0f0;
}

.consent-check input,
.option-card input,
.scale-option input,
.safety-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.custom-check,
.custom-radio {
    display: inline-grid;
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
    place-items: center;
    border: 2px solid #8b806d;
    background: #fff;
}

.custom-radio {
    border-radius: 50%;
}

input:checked + .custom-check {
    border-color: #7d6325;
    background: var(--gold);
}

input:checked + .custom-check::after {
    width: 0.32rem;
    height: 0.62rem;
    border: solid #15120b;
    border-width: 0 2px 2px 0;
    content: "";
    transform: rotate(45deg) translate(-1px, -1px);
}

input:checked + .custom-radio {
    border-color: #7d6325;
    box-shadow: inset 0 0 0 4px #fff;
    background: var(--gold);
}

.consent-check:focus-within,
.option-card:focus-within,
.safety-option:focus-within,
.scale-option:focus-within {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px var(--focus-dark);
}

.consent-check .field-help {
    grid-column: 2;
}

.field-help,
.character-counter,
.muted-text,
.result-section-lead {
    color: var(--muted);
    font-size: 0.88rem;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.76rem 1.15rem;
    border: 1px solid var(--gold);
    border-radius: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.button:hover {
    filter: brightness(1.08);
}

.button:disabled {
    cursor: not-allowed;
    filter: grayscale(0.9);
    opacity: 0.48;
}

.button--primary {
    background: var(--gold-light);
    color: #15120b;
}

.button--secondary {
    border-color: #8c7b55;
    background: transparent;
    color: inherit;
}

.button--quiet {
    border-color: transparent;
    color: var(--muted);
}

.button--block {
    width: 100%;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

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

.navigation-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.form-section {
    margin: 2rem 0 0;
    padding: 1.4rem 0 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.form-section legend,
.checklist-column legend {
    padding: 0;
    font-family: var(--serif);
    font-size: 1.35rem;
}

.form-section--focus {
    padding: 1.3rem;
    border: 1px solid var(--gold);
    background: #fbf7ed;
}

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

.option-grid--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.option-card,
.safety-option {
    display: flex;
    min-height: 54px;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--line);
    background: #fffdf8;
    cursor: pointer;
}

.option-card:has(input:checked),
.safety-option:has(input:checked) {
    border-color: var(--gold);
    background: var(--gold-pale);
    box-shadow: inset 0 -2px 0 var(--gold);
}

.field-block {
    display: grid;
    gap: 0.45rem;
    margin-top: 1.5rem;
}

.field-block label {
    font-weight: 700;
}

.field-block input,
.select-control,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 0.7rem 0.8rem;
    border: 1px solid #9c927f;
    border-radius: 0;
    background: #fff;
    color: var(--text);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.character-counter {
    justify-self: end;
}

.question-list {
    border-bottom: 1px solid var(--line);
}

.scale-question {
    margin: 0;
    padding: 1.6rem 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.scale-question legend {
    margin-bottom: 1rem;
    padding: 0;
    font-weight: 700;
}

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

.scale-option {
    position: relative;
    display: grid;
    min-height: 58px;
    place-items: center;
    padding: 0.5rem;
    border: 1px solid var(--line);
    background: #fffdf8;
    cursor: pointer;
    font-size: 0.86rem;
    text-align: center;
}

.scale-option--skip {
    grid-column: 1 / -1;
    min-height: 44px;
    color: var(--muted);
}

.scale-option:has(input:checked) {
    border-color: #8b6e2c;
    background: var(--gold-pale);
    box-shadow: inset 0 -3px 0 var(--gold);
}

.education-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem;
    margin-top: 1.5rem;
    padding: 1.2rem;
    border-left: 4px solid var(--gold);
    background: var(--paper-soft);
}

.education-mark {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border: 1px solid var(--gold);
    color: #72581f;
    font-family: var(--serif);
}

.education-card strong {
    display: block;
}

.education-card p {
    margin: 0.35rem 0 0;
    color: var(--muted);
}

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

.checklist-column {
    margin: 0;
    padding: 1.25rem;
    border: 1px solid var(--line);
}

.checklist-column .option-grid {
    grid-template-columns: 1fr;
}

.screen-shell--safety {
    background:
        radial-gradient(circle at 50% 0, rgba(185, 154, 83, 0.12), transparent 28rem),
        var(--ink);
}

.safety-question {
    margin: 0;
    padding: 1.6rem 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.safety-question legend {
    padding: 0;
    font-weight: 700;
}

.safety-options {
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
}

.safety-panel {
    width: min(840px, 100%);
    margin-inline: auto;
    padding: clamp(1.4rem, 5vw, 3.5rem);
    border-top: 4px solid var(--gold);
    background: var(--paper);
    color: var(--text);
    box-shadow: var(--shadow);
}

.safety-panel h1 {
    margin-top: 0;
    color: var(--text);
    font-size: clamp(2rem, 5vw, 3.6rem);
}

.safety-panel--urgent {
    border-color: #cf7d7d;
    background: var(--danger-dark);
    color: #fff3f3;
}

.safety-panel--urgent h1 {
    color: #fff;
}

.safety-panel--urgent .eyebrow {
    color: #efaaaa;
}

.hotline-card {
    display: grid;
    gap: 0.35rem;
    margin: 1.5rem 0;
    padding: 1.25rem;
    border: 1px solid currentColor;
    background: rgba(255, 255, 255, 0.06);
}

.hotline-number {
    width: fit-content;
    color: inherit;
    font-family: var(--serif);
    font-size: clamp(2.2rem, 8vw, 4.6rem);
    line-height: 1;
    text-decoration: none;
}

.screen-shell--results {
    padding-block: clamp(1.2rem, 5vw, 4rem);
}

.result-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.result-section > h2,
.list-panel h2 {
    margin-top: 0;
}

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

.summary-card {
    padding: 1.25rem;
    border: 1px solid var(--gold);
    background: var(--gold-pale);
}

.summary-card h3 {
    margin: 0.35rem 0;
    font-family: var(--serif);
    font-size: 1.45rem;
}

.summary-card p {
    margin-bottom: 0;
}

.summary-label {
    color: #6e5722;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.result-item {
    padding: 1.1rem;
    border: 1px solid var(--line);
    background: #fffdf9;
}

.result-item-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.6rem;
}

.result-item-heading h3 {
    margin: 0;
}

.result-item-meta {
    display: grid;
    gap: 0.15rem;
    justify-items: end;
    text-align: right;
}

.result-item-meta span {
    color: var(--muted);
    font-size: 0.86rem;
}

.result-item-meta span:last-child {
    font-size: 0.78rem;
}

.result-item p {
    margin: 0.75rem 0 0;
}

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

.list-panel {
    padding: 1.15rem;
    border: 1px solid var(--line);
}

.list-panel h2 {
    font-size: 1.3rem;
}

.list-panel ul {
    margin-bottom: 0;
    padding-left: 1.2rem;
}

.list-panel li + li {
    margin-top: 0.45rem;
}

.education-results {
    padding: 1.5rem;
    border: 1px solid var(--gold);
    background: #fbf7ee;
}

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

.insight-card {
    padding-left: 1rem;
    border-left: 3px solid var(--gold);
}

.insight-card p {
    margin-bottom: 0;
    color: var(--muted);
}

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

.next-step-grid article {
    padding: 1.1rem;
    border-top: 3px solid var(--gold);
    background: var(--paper-soft);
}

.next-step-grid span {
    color: #765c20;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.next-step-grid p {
    margin-bottom: 0;
}

.conversation-section .field-block--textarea {
    margin-top: 1.2rem;
}

.progress-clear {
    display: block;
    margin: 0.65rem 0 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 0.8rem;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    cursor: pointer;
}

.progress-clear:hover,
.progress-clear:focus-visible {
    color: #792f2f;
}

.partial-summary-action {
    margin-top: 1.25rem;
    padding: 1rem 1.15rem;
    border-left: 3px solid var(--line-strong);
    background: var(--paper-soft);
}

.partial-summary-action p {
    margin: 0 0 0.75rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.dimension-answer-status {
    margin: 0.9rem 0 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.completion-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 0.75rem 1.5rem;
    margin-top: 1.5rem;
    padding: 1.25rem;
    border: 1px solid var(--line);
    background: var(--paper-soft);
}

.completion-panel h2 {
    margin: 0;
    font-size: 1.35rem;
}

.completion-panel .eyebrow {
    margin-bottom: 0.35rem;
}

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

.completion-metrics p {
    margin: 0;
}

.completion-metrics strong {
    display: block;
    color: var(--gold-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
    font-weight: 400;
}

.completion-detail,
.completion-panel > .field-help {
    grid-column: 1 / -1;
    margin: 0;
}

.completion-detail {
    color: #59544b;
}

.completion-panel > .field-help {
    color: #59544b;
}

.result-disclosure {
    margin-top: 2rem;
    border: 1px solid var(--line);
}

.result-disclosure > summary {
    padding: 1rem 1.2rem;
    background: var(--paper-soft);
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    cursor: pointer;
}

.result-disclosure[open] > summary {
    border-bottom: 1px solid var(--line);
}

.result-disclosure > .result-section {
    margin-inline: 1.2rem;
}

.answer-status {
    margin: -0.25rem 0 0.65rem;
    color: #59544b;
    font-size: 0.82rem;
}

.focus-selector,
.chosen-focus {
    margin-top: 1.25rem;
    padding: 1rem 1.15rem;
    border-left: 3px solid var(--gold);
    background: #fbf7ee;
}

.focus-selector .field-block,
.focus-selector .field-help {
    margin-bottom: 0;
}

.pdf-inclusion-preview {
    margin: 1.25rem 0;
    padding: 1rem;
    border: 1px solid var(--line);
    background: var(--paper);
}

.pdf-inclusion-preview h3 {
    margin-top: 0;
}

.pdf-inclusion-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pdf-inclusion-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.5rem;
    border-top: 1px solid var(--line);
}

.pdf-inclusion-list strong {
    color: var(--gold-dark);
}

.pdf-section {
    padding: 1.5rem;
    border: 1px solid var(--gold);
    background: #fbf7ee;
}

.pdf-options {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.crisis-support-panel {
    margin-top: 2.5rem;
    padding: 1.5rem;
    border: 2px solid #9b5555;
    background: #faeeee;
}

.crisis-support-panel h2 {
    margin-top: 0;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.prose-page {
    margin-block: clamp(2rem, 6vw, 5rem);
    padding: clamp(1.35rem, 5vw, 4rem);
    border-top: 4px solid var(--gold);
    background: var(--paper);
    color: var(--text);
    box-shadow: var(--shadow);
}

.prose-page > h1 {
    max-width: 18ch;
    margin-top: 0.3rem;
    color: var(--text);
}

.prose-page h2 {
    margin-top: 2.4rem;
}

.prose-page p,
.prose-page li {
    max-width: 78ch;
}

.table-scroll {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 0.8rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    background: var(--paper-soft);
}

.source-list a {
    color: #66501d;
}

.version-note,
.resource-date {
    color: var(--muted);
    font-size: 0.86rem;
}

.help-page {
    background:
        radial-gradient(circle at 50% 0, rgba(134, 47, 47, 0.2), transparent 34rem),
        var(--ink);
}

.help-shell {
    width: min(900px, calc(100% - 2rem));
    margin: 0 auto;
    padding: clamp(1.5rem, 5vw, 4rem) 0;
}

.help-card {
    padding: clamp(1.4rem, 5vw, 3.5rem);
    border-top: 4px solid #cf7d7d;
    background: var(--danger-dark);
    color: #fff4f4;
    box-shadow: var(--shadow);
}

.help-card h1 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.8rem);
}

.help-card .eyebrow {
    color: #efaaaa;
}

.help-card .resource-date {
    color: #e5cccc;
}

.safety-steps {
    padding-left: 1.4rem;
}

.safety-steps li + li {
    margin-top: 0.65rem;
}

.copy-message {
    margin-top: 1.5rem;
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
}

.copy-message p {
    font-size: 1.1rem;
}

.copy-status {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

.no-script {
    margin-block: 3rem;
    padding: 2rem;
    border-top: 4px solid var(--gold);
    background: var(--paper);
    color: var(--text);
}

.print-report {
    display: none;
}

@media (max-width: 880px) {
    .site-footer__main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .option-grid--compact,
    .result-context-grid,
    .insight-grid,
    .next-step-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .site-header__inner {
        min-height: 74px;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0 1rem;
        padding-block: 0.8rem;
    }

    .site-header--enhanced .menu-toggle {
        display: inline-flex;
    }

    .site-nav {
        grid-column: 1 / -1;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        margin-top: 0.8rem;
        padding-top: 0.6rem;
        border-top: 1px solid var(--line-dark);
    }

    .site-header--enhanced .site-nav {
        display: none;
    }

    .site-header--enhanced.is-menu-open .site-nav {
        display: flex;
    }

    .site-nav a {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 0.55rem 0.25rem;
    }

    .site-nav a[aria-current="page"] {
        text-underline-offset: 0.3rem;
    }

    .site-nav__external {
        border: 0;
        border-top: 1px solid rgba(185, 154, 83, 0.22);
    }

    .site-nav__external + .site-nav__external {
        margin-left: 0;
    }
}

@media (max-width: 720px) {
    body {
        font-size: 17px;
    }

    .utility-bar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.72rem;
        line-height: 1.35;
    }

    .help-card h1 {
        font-size: clamp(1.75rem, 8vw, 2.45rem);
    }

    .help-shell {
        padding-top: 0.75rem;
    }

    .intro-hero {
        min-height: 0;
        align-items: end;
        padding: clamp(11rem, 34svh, 18rem) 1.2rem 5rem;
        background:
            linear-gradient(0deg, var(--ink) 7%, rgba(11, 11, 10, 0.78) 50%, rgba(11, 11, 10, 0.04)),
            url("hero.webp") 34% center / cover no-repeat,
            var(--ink);
        clip-path: polygon(0 0, 100% 0, 100% 95%, 42% 100%, 0 94%);
    }

    .intro-copy {
        width: 100%;
    }

    .feature-row,
    .summary-grid,
    .support-columns,
    .completion-panel {
        grid-template-columns: 1fr;
    }

    .completion-metrics {
        grid-template-columns: 1fr 1fr;
    }

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

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

    .scale-option,
    .scale-option--skip {
        grid-column: auto;
        min-height: 50px;
        justify-items: start;
        padding-inline: 0.85rem;
    }

    .navigation-row,
    .result-actions {
        flex-direction: column-reverse;
    }

    .navigation-row .button,
    .result-actions .button {
        width: 100%;
    }

    .result-item-heading {
        display: block;
    }

    .result-item-meta {
        justify-items: start;
        margin-top: 0.3rem;
        text-align: left;
    }

    .result-item-heading span {
        display: block;
    }

    .paper-panel,
    .result-paper,
    .prose-page,
    .help-card {
        padding: 1.2rem;
    }
}

@media (max-width: 620px) {
    .brand-copy small {
        display: none;
    }

    .site-footer__main {
        grid-template-columns: 1fr;
        gap: 2.2rem;
        padding-block: 2.7rem 2.2rem;
    }

    .site-footer__bottom {
        flex-direction: column;
        gap: 0.3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}

@page {
    size: A4;
    margin: 0;
}

@media print {
    html,
    body {
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        color: #161616 !important;
        font-family: Arial, sans-serif;
        font-size: 10.5pt;
        line-height: 1.42;
    }

    body > :not(.print-report) {
        display: none !important;
    }

    .print-report {
        display: block !important;
        background: #fff;
        color: #161616;
    }

    .print-page {
        position: relative;
        width: 210mm;
        height: 297mm;
        overflow: hidden;
        padding: 14mm 15mm 19mm;
        break-after: page;
        page-break-after: always;
        background: #fff;
        overflow-wrap: anywhere;
    }

    .print-page:last-child {
        break-after: auto;
        page-break-after: auto;
    }

    .print-page h1,
    .print-page h2 {
        color: #171714;
        font-family: Georgia, "Times New Roman", serif;
        font-weight: 400;
    }

    .print-page h1 {
        margin: 2mm 0 4mm;
        font-size: 24pt;
    }

    .print-page h2 {
        margin: 0 0 2.5mm;
        font-size: 14pt;
    }

    .print-page p {
        margin: 0 0 2.5mm;
    }

    .print-kicker {
        color: #7c6329;
        font-size: 8pt;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .print-name,
    .print-meta {
        color: #555;
        overflow-wrap: anywhere;
    }

    .print-small {
        color: #555;
        font-size: 8.5pt;
    }

    .print-disclaimer {
        margin: 5mm 0;
        padding: 3.5mm;
        border: 0.4mm solid #b99a53;
        background: #f7f0de;
    }

    .print-section,
    .print-note,
    .print-result-row,
    .print-insight,
    .print-answer-section,
    table,
    tr {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .print-section {
        margin-top: 5mm;
        padding-top: 3mm;
        border-top: 0.25mm solid #cfc6b6;
    }

    .print-definitions {
        display: grid;
        grid-template-columns: 38mm 1fr;
        gap: 1.5mm 4mm;
        margin: 0;
    }

    .print-definitions dt {
        font-weight: 700;
    }

    .print-definitions dd {
        margin: 0;
    }

    .print-result-list {
        display: grid;
        gap: 2mm;
    }

    .print-result-row {
        padding: 1.8mm 2.2mm;
        border: 0.25mm solid #d8d0c2;
    }

    .print-result-heading {
        display: flex;
        justify-content: space-between;
        gap: 5mm;
        margin-bottom: 0;
    }

    .print-result-heading span {
        color: #666;
        font-size: 8.5pt;
    }

    .print-insight {
        margin-bottom: 3mm;
        padding-left: 3mm;
        border-left: 0.8mm solid #b99a53;
    }

    .print-note {
        margin-top: 4mm;
        padding-bottom: 3mm;
        border-bottom: 0.25mm solid #aaa;
    }

    .print-note p {
        min-height: 8mm;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
    }

    .print-list-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 5mm;
    }

    .print-list-grid .print-section {
        margin-top: 3.5mm;
    }

    .print-list-grid ul {
        margin: 0;
        padding-left: 5mm;
    }

    .print-list-grid li + li {
        margin-top: 1mm;
    }

    .print-focus-step,
    .print-interpretation-note {
        padding: 3mm;
        border: 0.35mm solid #b99a53;
        background: #f7f0de;
    }

    .print-interpretation-note {
        margin-top: 4mm;
    }

    .print-safety,
    .print-safety-note {
        padding: 3mm;
        border: 0.35mm solid #9b5555;
        background: #faeeee;
    }

    .print-lines {
        min-height: 32mm;
        background: repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 7mm,
            #c9c9c9 7.2mm,
            #c9c9c9 7.4mm
        );
    }

    .print-lines--compact {
        min-height: 17mm;
    }

    .print-method-link {
        margin-top: 5mm !important;
        color: #555;
        font-size: 8pt;
        overflow-wrap: anywhere;
    }

    .print-appendix-note {
        margin-top: 3mm !important;
        color: #555;
        font-size: 8.5pt;
    }

    .print-table td {
        padding: 2.4mm;
        border-bottom: 0.25mm solid #d3ccbf;
        font-size: 9pt;
        overflow-wrap: anywhere;
    }

    .print-table td:last-child {
        width: 42mm;
        font-weight: 700;
    }

    .print-footer {
        position: absolute;
        right: 15mm;
        bottom: 7mm;
        left: 15mm;
        display: flex;
        justify-content: space-between;
        gap: 5mm;
        padding-top: 2mm;
        border-top: 0.25mm solid #b99a53;
        color: #555;
        font-size: 8.2pt;
    }

    .print-footer-status,
    .print-footer-meta {
        max-width: 50%;
    }

    .print-footer-meta {
        text-align: right;
        overflow-wrap: anywhere;
    }

    * {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}
