/* Risk Assessment presentation on the shared cinematic design tokens. */
@media screen {
    .tt6-risk-page #wrapper { background: #0a0a0b; }
    .tt6-risk [id] { scroll-margin-top: calc(var(--titan-header-space) + 12px); }
    .tt6-risk-hero { padding: max(0px, clamp(112px, 9vw, 144px) - var(--titan-header-space)) 0; }
    .tt6-risk-hero-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
        align-items: center;
        gap: clamp(32px, 5vw, 64px);
    }
    .tt6-risk-kicker {
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--tt6-t2);
        font-size: 12px;
    }
    .tt6-risk-kicker::before {
        content: "";
        width: 6px;
        height: 6px;
        background: var(--tt6-orange);
    }
    .tt6-risk-hero h1, .tt6-risk-intro h2, .tt6-risk-finale h2 {
        font-size: clamp(40px, 5vw, 80px);
        line-height: 1;
        letter-spacing: -.045em;
    }
    .tt6-risk-hero h1 { margin-top: 16px; }
    .tt6-risk-hero p:not(.tt6-risk-kicker), .tt6-risk-intro p, .tt6-risk-finale p {
        max-width: 640px;
        margin-top: 22px;
        font-size: 18px;
        line-height: 1.55;
    }
    .tt6-risk-hero p:not(.tt6-risk-kicker), .tt6-risk-intro p { color: var(--tt6-t2); }
    .tt6-risk-hero .tt6-pill, .tt6-risk-finale .tt6-pill { margin-top: 28px; }
    .tt6-risk-terms {
        display: grid;
        gap: 8px;
        margin-top: 24px;
        color: var(--tt6-t2);
        font-size: 14px;
    }
    .tt6-risk-terms li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; }
    .tt6-risk-terms li::before {
        content: "";
        width: 10px;
        height: 6px;
        border: solid var(--tt6-orange);
        border-width: 0 0 2px 2px;
        transform: translateY(7px) rotate(-45deg);
    }
    .tt6-risk-panel {
        background: var(--tt6-panel);
        border: 1px solid var(--tt6-line);
        border-radius: 24px;
    }
    .tt6-risk-panel h2 {
        padding: 14px 20px;
        border-bottom: 1px solid var(--tt6-line);
        font: 400 12px/20px var(--tt6-mono);
        color: var(--tt6-t3);
    }
    .tt6-risk-panel ul { padding: 12px clamp(18px, 3vw, 32px); }
    .tt6-risk-panel li {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        padding: 12px 0;
        color: var(--tt6-t2);
    }
    .tt6-risk-panel li + li { border-top: 1px solid var(--tt6-line); }
    .tt6-risk-panel li span { color: var(--tt6-orange); font: 400 12px/24px var(--tt6-mono); }
    .tt6-risk-intro { padding: clamp(56px, 8vw, 112px) 0; }
    .tt6-risk-intro h2 { max-width: 1120px; }

    .tt6-risk .pha-assessment-section {
        background: var(--tt6-panel);
        border: 1px solid var(--tt6-line);
        border-radius: 32px;
        padding: clamp(40px, 7vw, 96px) 0;
        margin-inline: 16px;
    }
    .tt6-risk-assessment-wrap { max-width: 968px; }
    .tt6-risk .pha {
        padding: 0;
        border: none;
        min-height: 0;
        background: transparent;
        box-shadow: none;
    }
    .tt6-risk .pha::before { content: none; }
    .tt6-risk .pha-progress { margin-bottom: 32px; }
    .tt6-risk-progress-label {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        color: var(--tt6-t3);
        font: 400 12px/16px var(--tt6-mono);
        margin-bottom: 12px;
    }
    #pha-current-domain { color: var(--tt6-orange); text-align: end; }
    .tt6-risk .pha-progress .tt6-risk-meter { height: 4px; background: var(--tt6-line-2); }
    .tt6-risk .pha-progress #pha-progress-bar { background: var(--tt6-orange); }

    .tt6-risk .pha--stepped .pha-question { min-height: 0; }
    .tt6-risk .pha-question legend {
        display: block;
        color: var(--tt6-t1);
        font: 600 clamp(26px, 3.4vw, 44px)/1.08 var(--tt6-sans);
        letter-spacing: -.035em;
    }
    .tt6-risk .pha-question legend small {
        font: 400 12px/1.5 var(--tt6-mono);
        color: var(--tt6-t3);
    }
    .tt6-risk .pha-question__number, .tt6-risk .pha--stepped legend small { display: none; }
    .tt6-risk .pha-question + .pha-question { border-color: var(--tt6-line); }
    .tt6-risk .pha-question__helper {
        color: var(--tt6-t2);
        margin: 16px 0 0;
        max-width: 720px;
        font-size: 16px;
    }
    .tt6-risk .pha-question__helper code {
        background: var(--tt6-panel-2);
        color: var(--tt6-t1);
        border-color: var(--tt6-line-2);
    }
    .tt6-risk .pha-options { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .tt6-risk .pha-option {
        align-items: center;
        min-height: 54px;
        padding: 14px 18px;
        background: var(--tt6-bg);
        color: var(--tt6-t1);
        border: 1px solid var(--tt6-line-2);
        border-radius: 16px;
        font-weight: 500;
    }
    .tt6-risk .pha-option:hover { border-color: var(--tt6-t3); }
    .tt6-risk .pha-option:has(input:checked) { border-color: var(--tt6-orange); background: var(--tt6-panel-2); }
    .tt6-risk .pha-option:focus-within { outline: 2px solid var(--tt6-orange); }
    .tt6-risk .pha-option input { color-scheme: dark; accent-color: var(--tt6-orange); }
    .tt6-risk .pha-nav { flex-direction: row; align-items: center; margin: 28px 0 24px; }
    .tt6-risk .pha-nav button { border: 0; cursor: pointer; }
    .tt6-risk .pha-back { background: none; color: var(--tt6-t1); padding: 12px 0; }
    .tt6-risk-next { margin-left: auto; }
    .tt6-risk .pha-nav .pha-submit { min-width: 0 !important; width: auto; }
    .tt6-risk .pha-nav button:disabled { opacity: .55; cursor: not-allowed; }
    .tt6-risk .pha-privacy { text-align: start; color: var(--tt6-t3); margin-top: 16px; }
    .tt6-risk .pha-privacy a { color: var(--tt6-t1); }

    .tt6-risk .pha-result-header, .tt6-risk .pha-result-section { border-color: var(--tt6-line); }
    .tt6-risk .pha-result-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tt6-risk .pha-score-card, .tt6-risk .pha-boundary, .tt6-risk .pha-critical,
    .tt6-risk .pha-critical-list article, .tt6-risk .pha-domain-row,
    .tt6-risk .pha-priority-list > li, .tt6-risk .pha-priority-list dl div,
    .tt6-risk .pha-strength-list article, .tt6-risk .pha-route-card, .tt6-risk .pha-reading-card {
        color: var(--tt6-t1);
        background: var(--tt6-bg);
        border: 1px solid var(--tt6-line-2);
        border-radius: 16px;
        box-shadow: none;
    }
    .tt6-risk .pha-score-card { min-height: 0; border-radius: 24px; }
    .tt6-risk .pha-score-card__reading {
        position: relative;
        display: block;
        margin: 20px 0 12px;
    }
    .tt6-risk .pha-score-card__reading div { padding: 0; border: 0; }
    .tt6-risk .pha-score-card__reading b,
    .tt6-risk .pha-score-card__reading--confidence strong {
        display: block;
        font: 600 clamp(48px, 7vw, 100px)/1 var(--tt6-sans);
        letter-spacing: -.05em;
    }
    .tt6-risk .pha-score-card--risk .pha-score-card__reading > strong {
        position: absolute;
        top: 4px;
        right: 0;
        padding: 6px 12px;
        border-radius: 999px;
        background: var(--tt6-t1);
        color: var(--tt6-ink);
        font: 500 16px/1 var(--tt6-mono);
    }
    .tt6-risk .pha-score-card--risk .pha-score-card__reading b { padding-right: 44px; color: var(--tt6-orange); }
    .tt6-risk .pha-score-card__reading span { display: block; margin-top: 8px; color: var(--tt6-t1); }
    .tt6-risk .pha-result-header h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -.035em; }
    .tt6-risk .pha-result :is(h2, h3, h4, strong, dt), .tt6-risk .pha-domain-row__scores b { color: inherit; }
    .tt6-risk .pha-score-card__reading--confidence > strong { color: var(--tt6-t1); }
    .tt6-risk .pha-result :is(p, dd, .pha-domain-row__scores, .pha-kicker, .section-pill) {
        color: var(--tt6-t2);
    }
    .tt6-risk .pha-result .section-pill { background: none; border: 0; padding: 0; font: 400 12px/20px var(--tt6-mono); }
    .tt6-risk .pha-critical { border-color: var(--tt6-orange); }
    .tt6-risk .pha-critical-list__icon, .tt6-risk .pha-priority-list__number { background: var(--tt6-panel-2); color: var(--tt6-orange); border-color: var(--tt6-line); }
    .tt6-risk .pha-domain-row__meter { background: var(--tt6-line-2); }
    .tt6-risk .pha-domain-row__meter span { background: var(--tt6-t1); }
    .tt6-risk .pha-route-card--primary { background: var(--tt6-paper); color: var(--tt6-ink); }
    .tt6-risk .pha-route-card--primary p, .tt6-risk .pha-route-card--primary > span { color: #393631; }
    .tt6-risk .pha-route-card:not(.pha-route-card--primary) > span, .tt6-risk .pha-reading-card > span { color: var(--tt6-t3); }
    .tt6-risk .pha-route-card a { white-space: normal; height: auto; min-height: 48px; }
    .tt6-risk .pha-route-card--primary :focus-visible { outline-color: var(--tt6-ink); }
    .tt6-risk .pha-reading-card .tt-link, .tt6-risk :is(.pha-retake, .pha-print) { color: var(--tt6-t1); }
    .tt6-risk-urgent-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 16px; }

    .tt6-risk .pha-limits { padding: clamp(64px, 9vw, 128px) 0; background: transparent; }
    .tt6-risk .pha-limits h2 { margin-top: 0; font-size: clamp(34px, 5vw, 68px); line-height: 1; letter-spacing: -.04em; }
    .tt6-risk .pha-limits .section-pill { display: none; }
    .tt6-risk .pha-limits p { color: var(--tt6-t2); }
    .tt6-risk-finale {
        margin-inline: 16px;
        padding: clamp(50px, 8vw, 128px) 24px;
        border-radius: 32px;
        background: var(--tt6-orange);
        color: var(--tt6-ink);
        text-align: center;
    }
    .tt6-risk-finale p { margin-inline: auto; }
    .tt6-risk-finale :focus-visible { outline-color: var(--tt6-ink); }
}

@media screen and (max-width: 999px) {
    .tt6-risk-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .tt6-risk .pha-result-summary { grid-template-columns: minmax(0, 1fr); }
}
@media screen and (max-width: 767px) {
    .tt6-risk .pha-assessment-section, .tt6-risk-finale { margin-inline: 8px; border-radius: 24px; }
    .tt6-risk-hero .tt6-pill { width: 100%; justify-content: center; }
    .tt6-risk .pha-critical { padding: 20px 16px; }
    .tt6-risk .pha-route-card { padding: 20px; }
}
@media print {
    #content.tt6-risk { color: #111; background: #fff; }
    .tt6-risk-hero, .tt6-risk-intro, .tt6-risk-finale { display: none !important; }
    .tt6-risk .pha-route-card .tt6-pill { color: #111; background: none; padding: 0; }
}

/* The assessment mockup uses a text row over a separate meter. Do not apply
   the legacy meter selectors to both children of .pha-progress. */
@media screen {
    .tt6-risk .pha-progress > .tt6-risk-progress-label {
        height: auto;
        overflow: visible;
        border-radius: 0;
        background: none;
    }
    .tt6-risk .tt6-risk-progress-label span {
        display: inline;
        width: auto;
        height: auto;
        background: none;
    }
    .tt6-risk .pha-progress .tt6-risk-meter { border-radius: 0; height: 2px; background: var(--tt6-line); }
    .tt6-risk .pha-progress #pha-progress-bar {
        width: 100%;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 500ms var(--tt6-ease);
    }
    .tt6-risk-hero h1 { margin-top: 20px; line-height: .96; letter-spacing: -.05em; }
    .tt6-risk-hero p:not(.tt6-risk-kicker) { max-width: 600px; margin-top: 20px; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.5; }
    .tt6-risk-hero .tt6-pill { min-height: 56px; padding: 0 28px; margin-top: 32px; font-size: 18px; }
    .tt6-risk-panel h2, .tt6-risk-panel-dots { display: flex; align-items: center; gap: 8px; }
    .tt6-risk-panel-dots { margin-inline-end: 8px; }
    .tt6-risk-panel-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--tt6-line-2); }
    .tt6-risk-panel ul { margin: 28px 32px 32px; padding: 0; border-bottom: 1px solid var(--tt6-line); }
    .tt6-risk-panel li { padding: 14px 0; color: var(--tt6-t1); font-size: 17px; }
    .tt6-risk-intro { padding: clamp(96px, 14vw, 200px) 0; }
    .tt6-risk-intro h2 { max-width: 1240px; font-size: clamp(30px, 5.2vw, 80px); line-height: 1.04; letter-spacing: -.04em; }
    #content.tt6-risk .tt6-risk-intro h2 > span { color: inherit; }
    .tt6-risk-intro p { margin-top: 32px; line-height: 28px; }
    .tt6-risk .pha-assessment-section { padding: clamp(48px, 6vw, 96px) 0; }
    .tt6-risk-assessment-wrap { max-width: 920px; }
    .tt6-risk .pha-progress { margin-bottom: 40px; }
    .tt6-risk .pha-question legend { max-width: 100%; text-wrap: balance; }
    .tt6-risk .pha-options { margin-top: 28px; }
    .tt6-risk .pha-option {
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 16px;
        padding: 18px 20px;
        border: 0;
        border-radius: 20px;
        box-shadow: inset 0 0 0 1px var(--tt6-line);
        color: #fff;
        font-size: 17px;
        transition: background-color 300ms var(--tt6-ease), color 300ms var(--tt6-ease), transform 160ms var(--tt6-ease);
    }
    .tt6-risk .pha-option:hover { background: var(--tt6-panel-2); }
    .tt6-risk .pha-option:active { transform: scale(.985); }
    .tt6-risk .pha-option:has(input:checked) { background: #fff; color: var(--tt6-ink); box-shadow: none; }
    .tt6-risk .pha-option input {
        appearance: none;
        display: grid;
        place-items: center;
        width: 28px;
        height: 28px;
        margin: 0;
        border: 0;
        border-radius: 50%;
        box-shadow: inset 0 0 0 1px var(--tt6-line-2);
        transition: background-color 300ms var(--tt6-ease);
    }
    .tt6-risk .pha-option input::after {
        content: "";
        width: 10px;
        height: 6px;
        border: solid #fff;
        border-width: 0 0 2px 2px;
        opacity: 0;
        transform: translateY(-1px) rotate(-45deg) scale(.6);
        transition: opacity 200ms var(--tt6-ease), transform 300ms var(--tt6-ease);
    }
    .tt6-risk .pha-option input:checked { background: var(--tt6-ink); box-shadow: none; }
    .tt6-risk .pha-option input:checked::after { opacity: 1; transform: translateY(-1px) rotate(-45deg); }
    .tt6-risk .pha-nav button:disabled { opacity: .35; }
    .tt6-risk .pha-privacy { margin: 0; font-size: 14px; line-height: 20px; }
    .tt6-risk .pha-privacy a { color: var(--tt6-t2); }
    .tt6-risk .pha-limits { padding: clamp(80px, 10vw, 144px) 0; }
    .tt6-risk .pha-limits__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
    .tt6-risk .pha-limits h2, .tt6-risk-finale h2 { font-size: clamp(40px, 7vw, 112px); line-height: .95; letter-spacing: -.05em; }
    .tt6-risk .pha-limits p { font-size: 18px; line-height: 28px; }
    .tt6-risk-finale { padding: clamp(56px, 9vw, 144px) clamp(24px, 6vw, 96px); margin-bottom: 16px; }
    .tt6-risk-finale h2 { max-width: 1040px; margin-inline: auto; }
    .tt6-risk-finale p { max-width: 560px; margin-top: 32px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; }
    .tt6-risk-finale .tt6-pill { margin-top: 40px; }

    .tt6-risk .pha-result-summary { gap: 12px; margin-top: 40px; }
    .tt6-risk .pha-result-header { border-bottom: 0; padding-bottom: 0; }
    .tt6-risk .pha-result .section-pill::before { content: none; }
    .tt6-risk .pha-score-card { padding: 32px; }
    .tt6-risk .pha-score-card__reading { margin: 16px 0 6px; }
    .tt6-risk .pha-score-card__reading h3 { margin-top: 20px; font-size: 20px; line-height: 28px; }
    .tt6-risk .pha-score-card__reading b,
    .tt6-risk .pha-score-card__reading--confidence > strong {
        font: 600 clamp(64px, 9vw, 120px)/.9 var(--tt6-sans);
        letter-spacing: -.06em;
        font-variant-numeric: tabular-nums;
    }
    .tt6-risk .pha-score-card--risk .pha-score-card__reading > strong { padding: 8px 12px; font-size: 18px; }
    .tt6-risk .pha-result-section { margin-top: 72px; }
    .tt6-risk .pha-section-heading h3 { font-size: clamp(24px, 3vw, 40px); line-height: 1.08; letter-spacing: -.035em; }
    .tt6-risk .pha-domain-list { gap: 0; margin-top: 28px; border-bottom: 1px solid var(--tt6-line); }
    .tt6-risk .pha-domain-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
        align-items: start;
        gap: 12px 40px;
        padding: 24px 0;
        border: 0;
        border-top: 1px solid var(--tt6-line);
        border-radius: 0;
        background: none;
    }
    .tt6-risk-domain-scores { display: grid; gap: 8px; color: var(--tt6-t2); font: 400 12px/16px var(--tt6-mono); }
    .tt6-risk-domain-scores > div { display: grid; grid-template-columns: 96px minmax(0, 1fr) 40px; align-items: center; gap: 12px; }
    .tt6-risk-domain-scores div > i { display: block; height: 6px; overflow: hidden; border-radius: 99px; background: var(--tt6-line); }
    .tt6-risk-domain-scores div > i > i { display: block; width: var(--pha-score); height: 100%; border-radius: inherit; background: #fff; transform-origin: left; }
    .tt6-risk-domain-scores div + div > i > i { background: var(--tt6-t3); }
    .tt6-risk-domain-scores span:last-child { color: #fff; text-align: right; }
}
@media screen and (max-width: 999px) {
    .tt6-risk .pha-limits__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media screen and (max-width: 767px) {
    .tt6-risk-panel ul { margin-inline: 20px; }
    .tt6-risk .pha-option { padding: 16px; }
    .tt6-risk .pha-score-card { padding: 24px; }
    .tt6-risk .pha-score-card--risk .pha-score-card__reading > strong { font-size: 14px; }
    .tt6-risk .pha-domain-row { grid-template-columns: minmax(0, 1fr); }
}
@media (forced-colors: active) {
    .tt6-risk .pha-option input { appearance: auto; }
    .tt6-risk .pha-option input::after { content: none; }
}
@media screen and (prefers-reduced-motion: no-preference) {
    .tt6-risk .pha--stepped .pha-question:not([hidden]),
    .tt6-risk .pha-result.is-new .pha-result-header,
    .tt6-risk .pha-result.is-new .pha-score-card,
    .tt6-risk .pha-result.is-new .pha-result-section.is-visible {
        animation: tt6-risk-enter 550ms var(--tt6-ease) backwards;
    }
    .tt6-risk .pha-result.is-new .pha-score-card { animation-delay: 100ms; }
    .tt6-risk .pha-result.is-new .pha-score-card + .pha-score-card { animation-delay: 180ms; }
    .tt6-risk .pha-result.is-new .is-visible .tt6-risk-domain-scores div > i > i {
        animation: tt6-risk-bar 800ms var(--tt6-ease) 150ms backwards;
    }
    @keyframes tt6-risk-enter { from { opacity: 0; transform: translateY(18px); } }
    @keyframes tt6-risk-bar { from { transform: scaleX(0); } }
}
@media (prefers-reduced-motion: reduce) {
    .tt6-risk .pha-progress #pha-progress-bar,
    .tt6-risk .pha-option, .tt6-risk .pha-option input, .tt6-risk .pha-option input::after { transition: none; }
    .tt6-risk .pha-option:active { transform: none; }
}
