:root {
    --enroll-bg: #0b0a09;
    --enroll-panel: #f3eee4;
    --enroll-panel-muted: #d8cfc1;
    --enroll-ink: #14100c;
    --enroll-gold: #b89b5e;
    --enroll-red: #7a1f1f;
    --enroll-soft-red: #b55252;
    --enroll-line: rgba(184, 155, 94, 0.35);
    --enroll-muted: #8d8174;
}

.enrollment-page {
    background: var(--enroll-bg);
    color: var(--enroll-panel);
}

.enrollment-page .site-header {
    background: rgba(11, 10, 9, 0.92);
    border-bottom-color: var(--enroll-line);
}

.enrollment-page .brand-mark {
    border-color: var(--enroll-gold);
    background: var(--enroll-panel);
    color: var(--enroll-ink);
}

.enrollment-page .site-nav {
    color: var(--enroll-panel-muted);
}

.enrollment-page .site-nav a:hover,
.enrollment-page .section-kicker,
.enrollment-page .archive-label {
    color: var(--enroll-gold);
}

.enroll-hero,
.enrollment-gate,
.role-selection,
.intake-section,
.classification-section,
.assignment-result,
.oath-section,
.platform-preview,
.completed-state {
    padding: clamp(58px, 8vw, 118px) clamp(20px, 6vw, 96px);
}

.enroll-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.76fr);
    gap: clamp(32px, 6vw, 86px);
    align-items: stretch;
    min-height: calc(100vh - 72px);
    min-height: calc(100dvh - 72px);
    border-bottom: 1px solid var(--enroll-line);
}

.enroll-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 820px;
}

.enroll-hero h1 {
    font-size: clamp(4rem, 11vw, 10rem);
}

.hero-line {
    margin-top: 22px;
    color: var(--enroll-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.55rem, 3vw, 3.25rem);
    line-height: 1.08;
}

.enroll-hero-copy p:not(.archive-label, .hero-line) {
    max-width: 680px;
    margin-top: 18px;
    color: var(--enroll-panel-muted);
    font-size: 1.1rem;
}

.enroll-image-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 420px;
    padding: 22px;
    border: 1px solid var(--enroll-line);
    background:
        linear-gradient(145deg, rgba(11, 10, 9, 0.38), rgba(122, 31, 31, 0.34)),
        repeating-linear-gradient(45deg, rgba(243, 238, 228, 0.08) 0 12px, rgba(184, 155, 94, 0.08) 12px 24px);
    color: var(--enroll-panel);
}

.enroll-image-placeholder span {
    color: var(--enroll-gold);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.enroll-image-placeholder p {
    margin: 10px 0 16px;
    color: var(--enroll-panel-muted);
    font-size: 0.92rem;
}

.copy-prompt,
.official-command,
.role-card button {
    min-height: 42px;
    width: fit-content;
    padding: 11px 14px;
    border: 1px solid var(--enroll-gold);
    border-radius: 3px;
    background: var(--enroll-gold);
    color: var(--enroll-bg);
    font: 900 0.72rem/1 "Segoe UI", Arial, sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
}

.official-command:hover,
.copy-prompt:hover,
.role-card button:hover {
    background: var(--enroll-red);
    border-color: var(--enroll-red);
    color: var(--enroll-panel);
}

.official-command:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.official-command.ghost,
.result-actions .button.secondary {
    background: transparent;
    color: var(--enroll-panel);
}

.microcopy-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid var(--enroll-line);
    color: var(--enroll-panel-muted);
}

.microcopy-strip span {
    min-height: 86px;
    padding: 24px;
    border-right: 1px solid var(--enroll-line);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.1rem, 1.8vw, 1.55rem);
}

.enrollment-gate,
.classification-section,
.oath-section {
    display: grid;
    grid-template-columns: minmax(0, 0.84fr) minmax(320px, 1fr);
    gap: clamp(24px, 5vw, 72px);
    align-items: start;
    border-bottom: 1px solid var(--enroll-line);
}

.gate-card,
.classification-card,
.oath-copy,
.access-grid article,
.role-card,
.intake-form,
.classification-console,
.completed-state {
    border: 1px solid var(--enroll-line);
    background: rgba(243, 238, 228, 0.06);
}

.gate-card,
.classification-card,
.oath-copy,
.classification-console {
    padding: clamp(22px, 4vw, 38px);
}

.gate-card {
    display: grid;
    gap: 16px;
}

.gate-card p {
    color: var(--enroll-panel-muted);
}

.gate-card label,
.oath-check {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--enroll-panel);
}
.gate-card .gate-field {
    display: grid;
    gap: 8px;
    align-items: stretch;
    color: var(--enroll-gold);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.gate-card .gate-field select {
    min-height: 46px;
    width: 100%;
    border: 1px solid var(--enroll-line);
    border-radius: 3px;
    background: #0d0b0a;
    color: var(--enroll-panel);
    padding: 0 12px;
}

.flow-step.is-locked {
    opacity: 0.55;
}

.flow-step.is-locked :is(button, input, select, a) {
    pointer-events: none;
}

.role-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
    gap: 18px;
}

.role-grid,
.access-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

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

.role-card {
    display: flex;
    flex-direction: column;
    min-height: 300px;
    padding: 22px;
}

.role-card.is-selected {
    border-color: var(--enroll-gold);
    background: rgba(184, 155, 94, 0.14);
}

.role-card span,
.classification-detail span,
.result-metrics span {
    color: var(--enroll-gold);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.role-card h3,
.access-grid h3 {
    margin-top: 18px;
}

.role-card p,
.access-grid p,
.classification-card > p,
.oath-copy p,
.section-heading p {
    margin-top: 16px;
    color: var(--enroll-panel-muted);
}

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

.small-placeholder {
    min-height: 300px;
}

.intake-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.36fr);
    gap: 16px;
    align-items: stretch;
}

.intake-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-content: start;
    gap: 14px;
    padding: clamp(20px, 4vw, 34px);
}

.intake-form label {
    display: grid;
    gap: 8px;
    color: var(--enroll-gold);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.intake-form input,
.intake-form select {
    min-height: 46px;
    width: 100%;
    border: 1px solid var(--enroll-line);
    border-radius: 3px;
    background: #0d0b0a;
    color: var(--enroll-panel);
    padding: 0 12px;
    font: 0.95rem/1.2 "Segoe UI", Arial, sans-serif;
}
.intake-form input::placeholder {
    color: rgba(216, 207, 193, 0.62);
}

.intake-name-field {
    grid-column: span 2;
}

/* Exposure is a consequential choice, so it reads as a two-option file
   ledger instead of a stretched native select beside the signal grid. */
.intake-exposure-field {
    grid-column: span 2;
    display: grid;
    align-content: start;
    gap: 10px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.intake-exposure-field legend {
    padding: 0;
    color: var(--enroll-gold);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.intake-exposure-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.intake-form .intake-exposure-choice {
    position: relative;
    display: grid;
    align-content: start;
    gap: 8px;
    min-height: 132px;
    padding: 18px 42px 18px 18px;
    border: 1px solid var(--enroll-line);
    border-radius: 3px;
    background: #0d0b0a;
    cursor: pointer;
    text-transform: none;
    transition: border-color 180ms ease, background-color 180ms ease;
}

.intake-form .intake-exposure-choice:hover {
    border-color: rgba(184, 155, 94, 0.68);
    background: rgba(184, 155, 94, 0.08);
}

.intake-form .intake-exposure-choice input {
    position: absolute;
    top: 17px;
    right: 17px;
    width: 18px;
    height: 18px;
    min-height: 0;
    margin: 0;
    padding: 0;
    accent-color: var(--enroll-red);
}

.intake-exposure-choice span {
    color: var(--enroll-panel);
    font: 700 clamp(1.18rem, 1.8vw, 1.55rem)/1.05 "Cormorant Garamond", "Playfair Display", Georgia, serif;
    letter-spacing: 0;
}

.intake-exposure-choice small {
    color: var(--enroll-muted);
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.42;
}

.intake-exposure-choice:has(input:checked) {
    border-color: rgba(184, 155, 94, 0.82);
    background:
        linear-gradient(135deg, rgba(184, 155, 94, 0.15), rgba(122, 31, 31, 0.13)),
        #0d0b0a;
    box-shadow: inset 0 0 0 2px rgba(184, 155, 94, 0.07);
}

.intake-exposure-choice:has(input:checked)::after {
    content: "SELECTED";
    position: absolute;
    right: 14px;
    bottom: 13px;
    color: var(--enroll-gold);
    font: 900 0.56rem/1 "Segoe UI", Inter, Arial, sans-serif;
    letter-spacing: 0.13em;
}

.intake-exposure-choice:has(input:focus-visible) {
    outline: 2px solid var(--enroll-gold);
    outline-offset: 3px;
}

/* Service signals intake: checkbox chips plus a "declare your own" row. */
.intake-signal-field {
    grid-column: span 2;
    border: 0;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}
.intake-signal-field legend {
    padding: 0;
    color: var(--enroll-gold);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.intake-signal-hint {
    margin-left: 8px;
    color: var(--enroll-muted);
    font-weight: 700;
    letter-spacing: 0.08em;
}
.intake-signal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.intake-signal-choice {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    border: 1px solid var(--enroll-line);
    border-radius: 3px;
    background: #0d0b0a;
    padding: 10px 12px;
    cursor: pointer;
}
.intake-form .intake-signal-choice input {
    min-height: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--enroll-red);
    flex: 0 0 auto;
}
.intake-signal-choice span {
    color: var(--enroll-panel);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.09em;
    line-height: 1.2;
    text-transform: uppercase;
}
.intake-signal-choice:has(input:checked) {
    border-color: rgba(184, 155, 94, 0.75);
    background: linear-gradient(135deg, rgba(184, 155, 94, 0.16), rgba(122, 31, 31, 0.12)), #0d0b0a;
}
.intake-form .signal-add-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.intake-form .signal-add-row input[type="text"] {
    flex: 1 1 200px;
    width: auto;
}
.intake-form .signal-add-note {
    margin: 0;
    color: var(--enroll-gold);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: none;
}
@media (max-width: 720px) {
    .intake-name-field,
    .intake-exposure-field,
    .intake-signal-field {
        grid-column: 1 / -1;
    }

    .intake-exposure-grid {
        grid-template-columns: 1fr;
    }

    .intake-form .intake-exposure-choice {
        min-height: 118px;
    }

    .intake-signal-grid {
        grid-template-columns: 1fr;
    }
}
.intake-dossier {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid var(--enroll-line);
    background:
        linear-gradient(180deg, rgba(184, 155, 94, 0.12), rgba(11, 10, 9, 0) 48%),
        #0d0b0a;
    overflow: hidden;
}
.intake-dossier::after {
    content: "";
    position: absolute;
    right: -34px;
    bottom: -34px;
    width: 180px;
    aspect-ratio: 1;
    background: url("../img/seal.svg") center / contain no-repeat;
    opacity: 0.11;
    pointer-events: none;
}
.intake-dossier h3 {
    margin-top: 18px;
    max-width: 12ch;
    color: var(--enroll-panel);
    font-size: clamp(1.8rem, 3vw, 3.2rem);
}
.dossier-register {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}
.dossier-register div {
    border-top: 1px solid rgba(184, 155, 94, 0.24);
    padding-top: 12px;
}
.dossier-register span {
    display: block;
    color: var(--enroll-gold);
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}
.dossier-register strong {
    display: block;
    margin-top: 6px;
    color: var(--enroll-panel-muted);
    font: 700 0.98rem/1.25 "Segoe UI", Inter, Arial, sans-serif;
}
.dossier-line {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 26px;
    color: var(--enroll-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.1rem;
}

.classification-copy p:not(.section-kicker) {
    margin-top: 18px;
    color: var(--enroll-panel-muted);
}

.classify-enrollment {
    margin-top: 28px;
}

.classification-console {
    display: grid;
    gap: 20px;
    background: #050505;
}

.terminal-lines {
    display: grid;
    gap: 8px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.terminal-line {
    color: rgba(243, 238, 228, 0.35);
}

.terminal-line.active {
    color: var(--enroll-gold);
}

.progress-track {
    height: 10px;
    border: 1px solid var(--enroll-line);
    background: rgba(243, 238, 228, 0.05);
}

.progress-track span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--enroll-red), var(--enroll-gold));
    transition: width 360ms ease;
}

.compact-placeholder {
    min-height: 220px;
}

.assignment-result {
    background: var(--enroll-panel);
    color: var(--enroll-ink);
}

.classification-card {
    max-width: 1080px;
    margin: 0 auto;
    background: var(--enroll-panel);
    color: var(--enroll-ink);
}

.classification-card .section-kicker,
.classification-card .classification-detail span,
.classification-card .result-metrics span {
    color: var(--enroll-red);
}

.classification-card > p {
    color: #51463d;
}

.result-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 28px;
}

.result-metrics div,
.classification-detail {
    border: 1px solid rgba(20, 16, 12, 0.14);
    padding: 15px;
    background: #fffaf1;
}

.result-metrics strong {
    display: block;
    margin-top: 8px;
    font-size: 1.45rem;
}

.classification-detail {
    margin-top: 12px;
}

.classification-detail p {
    margin-top: 8px;
    color: #302923;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.22rem;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.oath-copy p {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.oath-check {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--enroll-line);
}

.complete-enrollment {
    margin-top: 18px;
}

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

.access-grid article {
    min-height: 220px;
    padding: 22px;
}

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

.completed-state p:not(.section-kicker) {
    max-width: 720px;
    margin: 22px auto 0;
    color: var(--enroll-panel-muted);
}

.completed-state .hero-actions {
    justify-content: center;
}

@media (max-width: 1120px) {
    .enroll-hero,
    .enrollment-gate,
    .classification-section,
    .oath-section,
    .role-layout,
    .intake-layout {
        grid-template-columns: 1fr;
    }

    .role-grid,
    .intake-form,
    .access-grid,
    .result-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .microcopy-strip,
    .role-grid,
    .intake-form,
    .access-grid,
    .result-metrics {
        grid-template-columns: 1fr;
    }

    .enroll-hero h1 {
        font-size: clamp(2.4rem, 14vw, 5rem);
    }

    .official-command,
    .copy-prompt,
    .role-card button,
    .result-actions .button {
        width: 100%;
    }
}

/* Styleguide refinements - enrollment portal */
.enrollment-page h1,
.enrollment-page h2,
.enrollment-page h3,
.hero-line,
.oath-copy p,
.classification-detail p {
    font-family: "Cormorant Garamond", "Playfair Display", "Libre Baskerville", Georgia, "Times New Roman", serif;
    letter-spacing: 0;
}

.enroll-image-placeholder {
    border-style: dashed;
    background:
        linear-gradient(135deg, rgba(184, 155, 94, 0.12), rgba(0, 0, 0, 0.2)),
        var(--enroll-panel-dark, #17130f);
}

.enroll-image-placeholder span::before {
    content: "IMAGE PLACEHOLDER / ";
}

.enroll-image-placeholder p {
    font-family: Consolas, "Courier New", monospace;
    white-space: pre-wrap;
}

.role-card,
.gate-card,
.classification-card,
.oath-copy,
.access-grid article,
.intake-form,
.classification-console,
.completed-state {
    border-radius: 3px;
    box-shadow: none;
}

.role-card::after,
.classification-card::after,
.gate-card::after {
    content: "UNDER REVIEW";
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 4px 8px;
    border: 1px solid rgba(184, 155, 94, 0.55);
    color: rgba(184, 155, 94, 0.76);
    font: 900 0.58rem/1 "Segoe UI", Arial, sans-serif;
    letter-spacing: 0.12em;
    transform: rotate(-3deg);
}

.role-card,
.gate-card,
.classification-card {
    position: relative;
}

.classification-card::after {
    content: "FUNCTION ASSIGNED";
    color: rgba(111, 29, 29, 0.76);
    border-color: rgba(111, 29, 29, 0.55);
}

.official-command,
.copy-prompt,
.role-card button {
    border-radius: 3px;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.official-command:hover,
.copy-prompt:hover,
.role-card button:hover {
    box-shadow: 0 0 18px rgba(184, 155, 94, 0.18);
}

.platform-preview {
    background: #090807;
}

.site-footer > p:last-of-type {
    max-width: 720px;
}

.classification-record-link.is-hidden {
    display: none;
}
.completed-state .classification-record-link:not(.is-hidden) {
    display: inline-flex;
}
.assignment-result .result-actions {
    align-items: center;
}

.assignment-result .official-command.ghost {
    border-color: rgba(111, 29, 29, 0.58);
    background: transparent;
    color: var(--enroll-red);
}

.assignment-result .official-command.ghost:hover {
    border-color: var(--enroll-red);
    background: var(--enroll-red);
    color: var(--enroll-panel);
}

.assignment-result .official-command.ghost:disabled {
    color: rgba(20, 16, 12, 0.48);
}

.intake-status {
    min-height: 1.45em;
    margin: 2px 0 0;
    color: var(--enroll-red);
    font-size: 0.92rem;
    font-weight: 700;
}
