/**
 * rasathane-sekans.css — Modern Rasathane v4 reskin for /anadolu-sekansi.
 *
 * Scope is intentionally limited to body.rasathane-sekans so the legacy
 * controller selectors remain stable and no shared surfaces inherit this
 * sanctioned immersive-dark treatment.
 */

body.rasathane-sekans {
    --sekans-bg: var(--bg);
    --sekans-surface: color-mix(in srgb, var(--surface) 94%, var(--bg));
    --sekans-surface-strong: color-mix(in srgb, var(--surface) 88%, var(--text));
    --sekans-track: var(--rule);
    --sekans-text: var(--text);
    --sekans-muted: var(--muted);
    --sekans-azure: var(--accent);
    --sekans-ember: var(--accent-comp);
    --sekans-shadow: 0 18px 46px -18px rgb(0 0 0 / 0.62);

    min-height: 100%;
    background: var(--sekans-bg);
    color: var(--sekans-text);
    font-family: var(--font-ui);
    font-size: var(--text-base);
    line-height: 1.5;
    letter-spacing: 0;
}

body.rasathane-sekans *,
body.rasathane-sekans *::before,
body.rasathane-sekans *::after {
    box-sizing: border-box;
}

body.rasathane-sekans :where(button, input, select, textarea, a, [tabindex]):focus-visible {
    outline: 2px solid var(--sekans-azure);
    outline-offset: 2px;
}

body.rasathane-sekans :where(button, input, select, textarea) {
    font-family: var(--font-ui);
    letter-spacing: 0;
}

body.rasathane-sekans :where(
    .naf-hero-eyebrow,
    .naf-narrative-eyebrow,
    .naf-legend-title,
    .naf-chapter,
    .naf-risk-pulse-label,
    .naf-fault-name,
    .naf-mag-label,
    .naf-modal-title,
    .naf-notes-section h3
) {
    text-transform: none;
    letter-spacing: 0;
}

body.rasathane-sekans :where(
    .naf-card-backdrop,
    .naf-modal-backdrop,
    .naf-coulomb-legend,
    .naf-quake-skip
) {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.rasathane-sekans :where(
    .naf-year,
    .naf-chapter,
    .naf-chapter-timer-text,
    .naf-cinematic-brand,
    .naf-coulomb-legend,
    .naf-quake-ring-text,
    .naf-fault-name,
    .naf-mag-label,
    .naf-marmara-mag-label,
    .naf-risk-pulse-label,
    .naf-stress-label
) {
    text-shadow: 0 2px 8px rgb(0 0 0 / 0.8);
}

body.rasathane-sekans .naf-back-link {
    top: 18px;
    left: 18px;
    gap: var(--space-sm);
    color: var(--sekans-muted);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0;
}

body.rasathane-sekans .naf-back-link:hover {
    color: var(--sekans-text);
}

body.rasathane-sekans .naf-hero {
    min-height: 100svh;
    display: grid;
    align-items: center;
    justify-items: stretch;
    overflow: hidden;
    padding: 118px max(24px, calc((100% - 1180px) / 2)) 76px;
    background:
        linear-gradient(90deg, var(--sekans-bg) 0%, color-mix(in srgb, var(--sekans-bg) 88%, transparent) 52%, color-mix(in srgb, var(--sekans-bg) 62%, transparent) 100%),
        var(--sekans-bg);
}

body.rasathane-sekans .naf-hero-content {
    z-index: 2;
    width: min(720px, 100%);
    max-width: 720px;
    text-align: left;
}

body.rasathane-sekans .naf-hero-brand {
    margin-bottom: var(--space-2xl);
}

body.rasathane-sekans .naf-hero-brand img,
body.rasathane-sekans .naf-cinematic-brand img {
    filter: drop-shadow(0 4px 14px rgb(0 0 0 / 0.55));
}

body.rasathane-sekans .naf-hero-eyebrow {
    margin: 0 0 var(--space-md);
    color: var(--sekans-azure);
    font-size: var(--text-sm);
    font-weight: 600;
}

body.rasathane-sekans .naf-hero-title {
    margin: 0 0 var(--space-xl);
    color: var(--sekans-text);
    background: none;
    -webkit-text-fill-color: currentColor;
    text-shadow: 0 4px 28px rgb(0 0 0 / 0.72);
    font-family: var(--font-ui);
    font-size: 56px;
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: 0;
}

body.rasathane-sekans .naf-hero-lede {
    max-width: 60ch;
    margin: 0 0 var(--space-2xl);
    color: var(--sekans-muted);
    font-size: 20px;
    line-height: 1.6;
}

body.rasathane-sekans .naf-start-btn {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0 var(--space-2xl);
    border: 1px solid var(--sekans-azure);
    border-radius: var(--radius-md);
    background: var(--sekans-azure);
    color: var(--sekans-bg);
    box-shadow: 0 12px 32px -18px color-mix(in srgb, var(--sekans-azure) 70%, transparent);
    font-size: var(--text-base);
    font-weight: 700;
    letter-spacing: 0;
    transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out, transform 150ms ease-out, box-shadow 150ms ease-out;
    animation: sekans-cta-pulse 4.8s ease-in-out infinite;
}

body.rasathane-sekans .naf-start-btn:hover {
    transform: translateY(-1px);
    background: var(--sekans-ember);
    border-color: var(--sekans-ember);
    color: var(--accent-comp-text);
    box-shadow: 0 18px 38px -20px color-mix(in srgb, var(--sekans-ember) 74%, transparent);
}

body.rasathane-sekans .naf-start-btn:active {
    transform: translateY(0);
}

@keyframes sekans-cta-pulse {
    0%, 100% {
        box-shadow: 0 12px 32px -18px color-mix(in srgb, var(--sekans-azure) 70%, transparent);
    }
    50% {
        box-shadow: 0 18px 44px -18px color-mix(in srgb, var(--sekans-azure) 92%, transparent);
    }
}

body.rasathane-sekans .naf-start-loader {
    color: currentColor;
}

body.rasathane-sekans .naf-start-spinner {
    border-color: color-mix(in srgb, var(--sekans-bg) 28%, transparent);
    border-top-color: currentColor;
}

body.rasathane-sekans .naf-mode-toggle {
    margin: var(--space-lg) 0 0;
    gap: var(--space-xs);
    padding: var(--space-xs);
    border: 1px solid var(--sekans-track);
    border-radius: var(--radius-pill);
    background: var(--sekans-surface);
    box-shadow: var(--shadow-float);
}

body.rasathane-sekans .naf-mode-btn {
    min-height: 38px;
    padding: 0 var(--space-lg);
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    color: var(--sekans-muted);
    font-size: var(--text-sm);
    font-weight: 600;
}

body.rasathane-sekans .naf-mode-btn:hover {
    background: color-mix(in srgb, var(--sekans-azure) 12%, var(--sekans-surface));
    color: var(--sekans-text);
}

body.rasathane-sekans .naf-mode-btn.is-active {
    background: color-mix(in srgb, var(--sekans-azure) 18%, var(--sekans-surface));
    border-color: color-mix(in srgb, var(--sekans-azure) 42%, var(--sekans-track));
    color: var(--sekans-azure);
    box-shadow: none;
}

body.rasathane-sekans .naf-hero-citations {
    max-width: 68ch;
    margin: var(--space-xl) 0 0;
    color: var(--sekans-muted);
    font-size: var(--text-xs);
    opacity: 0.88;
}

body.rasathane-sekans .naf-notes-link {
    color: var(--sekans-azure);
    text-decoration-color: color-mix(in srgb, var(--sekans-azure) 35%, transparent);
}

body.rasathane-sekans .naf-notes-link:hover {
    color: var(--sekans-text);
    text-decoration-color: currentColor;
}

body.rasathane-sekans .naf-hero-map {
    opacity: 1;
    filter: none;
    background:
        linear-gradient(90deg, var(--sekans-bg) 0%, color-mix(in srgb, var(--sekans-bg) 88%, transparent) 44%, color-mix(in srgb, var(--sekans-bg) 26%, transparent) 100%),
        linear-gradient(180deg, color-mix(in srgb, var(--sekans-bg) 16%, transparent), var(--sekans-bg) 100%),
        url('/assets/images/basemaps/mt-rasathane-dark.png') right center / cover no-repeat;
}

body.rasathane-sekans .naf-hero-map::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg, rgb(226 233 240 / 0.025) 0 1px, transparent 1px 72px),
        repeating-linear-gradient(0deg, rgb(226 233 240 / 0.018) 0 1px, transparent 1px 72px);
    pointer-events: none;
}

body.rasathane-sekans .naf-cinematic {
    background: var(--sekans-bg);
    color: var(--sekans-text);
    font-family: var(--font-ui);
}

body.rasathane-sekans .naf-map {
    background: var(--sekans-bg);
}

body.rasathane-sekans .naf-hud-top {
    position: static;
    padding: 0;
    background: none;
}

body.rasathane-sekans .naf-cinematic-brand {
    top: 24px;
    left: 28px;
}

body.rasathane-sekans .naf-cinematic-brand img {
    height: 34px;
}

body.rasathane-sekans .naf-year {
    position: fixed;
    left: 26px;
    bottom: 34px;
    z-index: 1120;
    color: var(--sekans-text);
    opacity: 0.9;
    font-family: var(--font-ui);
    font-size: 96px;
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

body.rasathane-sekans .naf-progress {
    height: 4px;
    background: color-mix(in srgb, var(--sekans-track) 54%, transparent);
    opacity: 1;
}

body.rasathane-sekans .naf-progress.naf-progress--rail {
    position: fixed;
    top: auto;
    bottom: 0;
    z-index: 1210;
}

body.rasathane-sekans .naf-progress-bar {
    background: var(--sekans-azure);
    transition: width 260ms ease-out;
}

body.rasathane-sekans .naf-controls {
    bottom: 20px;
    left: 50%;
    gap: 0;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--sekans-track);
    border-radius: var(--radius-pill);
    background: var(--sekans-surface);
    color: var(--sekans-text);
    box-shadow: var(--sekans-shadow);
}

body.rasathane-sekans .naf-ctrl-row {
    gap: var(--space-sm);
}

body.rasathane-sekans .naf-ctrl {
    width: 42px;
    height: 42px;
    border: 1px solid var(--sekans-track);
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--sekans-surface) 76%, var(--sekans-bg));
    color: var(--sekans-text);
    box-shadow: none;
    font-family: var(--font-ui);
    font-size: 20px;
    font-weight: 700;
    transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out, transform 150ms ease-out;
}

body.rasathane-sekans .naf-ctrl:hover {
    transform: translateY(-1px);
    background: color-mix(in srgb, var(--sekans-azure) 18%, var(--sekans-surface));
    border-color: color-mix(in srgb, var(--sekans-azure) 54%, var(--sekans-track));
    color: var(--sekans-azure);
}

body.rasathane-sekans .naf-ctrl--exit,
body.rasathane-sekans .naf-ctrl--exit:hover {
    color: var(--sekans-ember);
}

body.rasathane-sekans #naf-mute.is-muted {
    background: color-mix(in srgb, var(--sekans-bg) 62%, var(--sekans-surface));
    color: var(--sekans-muted);
}

body.rasathane-sekans .naf-chapter-wrap {
    position: fixed;
    top: 78px;
    left: 28px;
    z-index: 1120;
    width: 228px;
    min-width: 0;
    gap: var(--space-xs);
    align-items: stretch;
}

body.rasathane-sekans .naf-chapter {
    color: var(--sekans-muted);
    font-size: var(--text-sm);
    font-weight: 600;
    text-align: left;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

body.rasathane-sekans .naf-chapter::before {
    content: "Bölüm ";
}

body.rasathane-sekans .naf-chapter-timer {
    gap: var(--space-sm);
    opacity: 1;
}

body.rasathane-sekans .naf-chapter-timer-track {
    height: 4px;
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--sekans-track) 70%, transparent);
}

body.rasathane-sekans .naf-chapter-timer-fill {
    background: var(--sekans-azure);
}

body.rasathane-sekans .naf-chapter-timer-text {
    min-width: 34px;
    color: var(--sekans-muted);
    font-size: var(--text-xs);
    font-weight: 600;
    text-align: right;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

body.rasathane-sekans .naf-chapter-timer.is-paused .naf-chapter-timer-text {
    color: var(--sekans-ember);
}

body.rasathane-sekans .naf-chapter-timer.is-done .naf-chapter-timer-fill {
    background: color-mix(in srgb, var(--sekans-text) 30%, var(--sekans-track));
}

body.rasathane-sekans .naf-quake-countdown {
    right: 22px;
    bottom: 22px;
    gap: var(--space-sm);
}

body.rasathane-sekans .naf-quake-ring-wrap,
body.rasathane-sekans .naf-quake-ring {
    width: 64px;
    height: 64px;
}

body.rasathane-sekans .naf-quake-ring {
    filter: drop-shadow(0 6px 16px rgb(0 0 0 / 0.58));
}

body.rasathane-sekans .naf-quake-ring-bg {
    fill: color-mix(in srgb, var(--sekans-surface) 78%, transparent);
    stroke: color-mix(in srgb, var(--sekans-track) 72%, transparent);
    stroke-width: 4;
}

body.rasathane-sekans .naf-quake-ring-fg {
    stroke: var(--sekans-ember);
    stroke-width: 4;
}

body.rasathane-sekans .naf-quake-ring-num {
    color: var(--sekans-text);
    font-size: 21px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

body.rasathane-sekans .naf-quake-ring-unit {
    color: var(--sekans-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0;
}

body.rasathane-sekans .naf-quake-countdown.is-active .naf-quake-ring {
    filter: drop-shadow(0 0 16px color-mix(in srgb, var(--sekans-ember) 54%, transparent));
}

body.rasathane-sekans .naf-quake-skip {
    min-height: 34px;
    padding: 0 var(--space-md);
    border: 1px solid var(--sekans-track);
    border-radius: var(--radius-pill);
    background: var(--sekans-surface);
    color: var(--sekans-text);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0;
}

body.rasathane-sekans .naf-quake-skip:hover {
    background: var(--sekans-ember);
    border-color: var(--sekans-ember);
    color: var(--accent-comp-text);
}

body.rasathane-sekans .naf-coulomb-legend {
    bottom: 142px;
    left: 26px;
    z-index: 1110;
    min-width: 0;
    width: 166px;
    padding: var(--space-md);
    border: 1px solid var(--sekans-track);
    border-radius: var(--radius-md);
    background: var(--sekans-surface);
    box-shadow: var(--sekans-shadow);
    color: var(--sekans-text);
}

body.rasathane-sekans .naf-legend-title {
    margin: 0 0 var(--space-sm);
    color: var(--sekans-muted);
    font-size: var(--text-xs);
    font-weight: 600;
    line-height: 1.25;
}

body.rasathane-sekans .naf-legend-bar,
body.rasathane-sekans .naf-card-legend-bar {
    width: 120px;
    height: 8px;
    border: 1px solid color-mix(in srgb, var(--sekans-track) 70%, transparent);
    border-radius: var(--radius-sm);
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--sekans-azure) 92%, var(--sekans-bg)) 0%,
        color-mix(in srgb, var(--sekans-azure) 34%, var(--sekans-surface)) 42%,
        color-mix(in srgb, var(--sekans-surface) 82%, var(--sekans-text)) 50%,
        color-mix(in srgb, var(--hazard-strong) 34%, var(--sekans-surface)) 58%,
        var(--hazard-strong) 100%
    );
}

body.rasathane-sekans .naf-legend-axis,
body.rasathane-sekans .naf-card-legend-axis,
body.rasathane-sekans .naf-legend-sub,
body.rasathane-sekans .naf-card-legend-sub {
    width: 120px;
    display: flex;
    justify-content: space-between;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

body.rasathane-sekans .naf-legend-axis,
body.rasathane-sekans .naf-card-legend-axis {
    margin-top: var(--space-xs);
    color: var(--sekans-muted);
    font-size: var(--text-xs);
    font-weight: 600;
}

body.rasathane-sekans .naf-legend-axis span:first-child,
body.rasathane-sekans .naf-card-legend-axis span:first-child,
body.rasathane-sekans .naf-legend-neg {
    color: var(--sekans-azure);
}

body.rasathane-sekans .naf-legend-axis span:last-child,
body.rasathane-sekans .naf-card-legend-axis span:last-child,
body.rasathane-sekans .naf-legend-pos {
    color: var(--hazard-strong);
}

body.rasathane-sekans .naf-legend-sub,
body.rasathane-sekans .naf-card-legend-sub {
    margin-top: 2px;
    color: var(--sekans-muted);
    font-size: 11px;
    font-weight: 600;
}

body.rasathane-sekans .naf-card {
    padding: var(--space-xl);
}

body.rasathane-sekans .naf-card-backdrop {
    background: rgb(0 0 0 / 0.52);
}

body.rasathane-sekans .naf-card-inner {
    width: min(560px, 100%);
    gap: var(--space-lg);
    padding: var(--space-2xl);
    border: 1px solid var(--sekans-track);
    border-radius: var(--radius-md);
    background: var(--sekans-surface);
    box-shadow: var(--sekans-shadow);
    color: var(--sekans-text);
    font-family: var(--font-ui);
}

body.rasathane-sekans .naf-card--side .naf-card-inner {
    width: 420px;
    padding: var(--space-xl);
    border-radius: var(--radius-md);
}

body.rasathane-sekans .naf-card--side .naf-card-backdrop {
    background: rgb(0 0 0 / 0.18);
}

body.rasathane-sekans .naf-narrative-eyebrow {
    color: var(--sekans-muted);
    font-size: var(--text-xs);
    font-weight: 600;
}

body.rasathane-sekans .naf-narrative-title {
    color: var(--sekans-text);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: 0;
}

body.rasathane-sekans .naf-narrative-body {
    color: color-mix(in srgb, var(--sekans-text) 76%, var(--sekans-muted));
    font-size: var(--text-base);
    line-height: 1.65;
}

body.rasathane-sekans .naf-card-legend {
    width: fit-content;
    gap: var(--space-xs);
    padding: var(--space-md);
    border: 1px solid var(--sekans-track);
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--sekans-bg) 38%, var(--sekans-surface));
}

body.rasathane-sekans .naf-narrative-deeplink,
body.rasathane-sekans .naf-narrative-cta-secondary {
    color: var(--sekans-azure);
}

body.rasathane-sekans .naf-narrative-deeplink:hover,
body.rasathane-sekans .naf-narrative-cta-secondary:hover {
    color: var(--sekans-text);
}

body.rasathane-sekans .naf-narrative-deeplink.naf-narrative-deeplink--closing,
body.rasathane-sekans .naf-card-dismiss,
body.rasathane-sekans .naf-modal-btn--primary {
    border: 1px solid var(--sekans-azure);
    border-radius: var(--radius-md);
    background: var(--sekans-azure);
    color: var(--sekans-bg);
    box-shadow: none;
}

body.rasathane-sekans .naf-narrative-deeplink.naf-narrative-deeplink--closing:hover,
body.rasathane-sekans .naf-card-dismiss:hover,
body.rasathane-sekans .naf-modal-btn--primary:hover {
    background: var(--sekans-ember);
    border-color: var(--sekans-ember);
    color: var(--accent-comp-text);
    box-shadow: none;
}

body.rasathane-sekans .naf-narrative-hero {
    padding: var(--space-lg);
    border: 1px solid var(--sekans-track);
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--sekans-bg) 36%, var(--sekans-surface));
}

body.rasathane-sekans .naf-hero-mag,
body.rasathane-sekans .naf-mag-label,
body.rasathane-sekans .naf-marmara-mag-label--single,
body.rasathane-sekans .naf-marmara-mag-label--cascade {
    background: var(--hazard-strong);
    color: var(--sekans-text);
    border: 1px solid color-mix(in srgb, var(--hazard-strong) 64%, var(--sekans-track));
    box-shadow: 0 8px 20px -14px color-mix(in srgb, var(--hazard-strong) 80%, transparent);
}

body.rasathane-sekans .naf-hero-mag {
    border-radius: var(--radius-md);
    font-size: 24px;
    letter-spacing: 0;
}

body.rasathane-sekans .naf-hero-place {
    color: var(--sekans-text);
    letter-spacing: 0;
}

body.rasathane-sekans .naf-hero-date {
    color: var(--sekans-muted);
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

body.rasathane-sekans .naf-fault-name {
    border: 1px solid var(--sekans-track);
    border-radius: var(--radius-sm);
    background: var(--sekans-surface);
    color: var(--sekans-azure);
    font-size: var(--text-xs);
    font-weight: 700;
}

body.rasathane-sekans .naf-stress-pulse {
    background: radial-gradient(circle, color-mix(in srgb, var(--sekans-ember) 56%, transparent) 0%, color-mix(in srgb, var(--sekans-ember) 18%, transparent) 56%, transparent 76%);
}

body.rasathane-sekans .naf-stress-label {
    background: var(--sekans-ember);
    color: var(--accent-comp-text);
    border-radius: var(--radius-pill);
    letter-spacing: 0;
}

body.rasathane-sekans .naf-risk-pulse--loaded {
    color: var(--sekans-ember);
}

body.rasathane-sekans .naf-risk-pulse--next {
    color: var(--hazard-strong);
}

body.rasathane-sekans .naf-risk-pulse-label {
    border-radius: var(--radius-pill);
    background: var(--sekans-surface);
    color: currentColor;
    font-weight: 700;
}

body.rasathane-sekans .naf-modal-backdrop {
    background: rgb(0 0 0 / 0.56);
}

body.rasathane-sekans .naf-modal-card {
    border: 1px solid var(--sekans-track);
    border-radius: var(--radius-lg);
    background: var(--sekans-surface);
    color: var(--sekans-text);
    box-shadow: var(--sekans-shadow);
}

body.rasathane-sekans .naf-modal-title,
body.rasathane-sekans .naf-notes-list dt {
    color: var(--sekans-text);
}

body.rasathane-sekans .naf-modal-body,
body.rasathane-sekans .naf-modal-scroll,
body.rasathane-sekans .naf-notes-list dd,
body.rasathane-sekans .naf-notes-table td {
    color: color-mix(in srgb, var(--sekans-text) 76%, var(--sekans-muted));
}

body.rasathane-sekans .naf-modal-header,
body.rasathane-sekans .naf-modal-footer,
body.rasathane-sekans .naf-notes-section,
body.rasathane-sekans .naf-notes-table th,
body.rasathane-sekans .naf-notes-table td {
    border-color: var(--sekans-track);
}

body.rasathane-sekans .naf-modal-close,
body.rasathane-sekans .naf-modal-btn--secondary {
    border: 1px solid var(--sekans-track);
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--sekans-bg) 34%, var(--sekans-surface));
    color: var(--sekans-text);
}

body.rasathane-sekans .naf-modal-close:hover,
body.rasathane-sekans .naf-modal-btn--secondary:hover {
    background: color-mix(in srgb, var(--sekans-azure) 14%, var(--sekans-surface));
}

body.rasathane-sekans .naf-notes-section h3,
body.rasathane-sekans .naf-notes-section a {
    color: var(--sekans-azure);
}

body.rasathane-sekans .naf-notes-warning h3,
body.rasathane-sekans .naf-notes-warning li strong {
    color: var(--sekans-ember);
}

body.rasathane-sekans .naf-notes-table th {
    background: color-mix(in srgb, var(--sekans-bg) 28%, var(--sekans-surface));
    color: var(--sekans-text);
}

body.rasathane-sekans .naf-notes-caption {
    color: var(--sekans-muted);
}

body.rasathane-sekans .naf-notes-list code {
    background: color-mix(in srgb, var(--sekans-bg) 40%, var(--sekans-surface));
    color: var(--sekans-text);
}

@media (max-width: 768px) {
    body.rasathane-sekans .naf-hero {
        min-height: 100svh;
        padding: 96px 20px 56px;
    }

    body.rasathane-sekans .naf-hero-content {
        max-width: 100%;
    }

    body.rasathane-sekans .naf-hero-brand img {
        height: 42px;
    }

    body.rasathane-sekans .naf-hero-title {
        font-size: 42px;
        line-height: 1.08;
    }

    body.rasathane-sekans .naf-hero-lede {
        font-size: var(--text-base);
        line-height: 1.58;
    }

    body.rasathane-sekans .naf-start-btn {
        width: 100%;
        justify-content: center;
    }

    body.rasathane-sekans .naf-mode-toggle {
        width: 100%;
        flex-direction: column;
        border-radius: var(--radius-md);
    }

    body.rasathane-sekans .naf-mode-btn {
        justify-content: center;
        border-radius: var(--radius-sm);
    }

    body.rasathane-sekans .naf-cinematic-brand {
        top: calc(env(safe-area-inset-top, 0px) + 12px);
        left: 16px;
    }

    body.rasathane-sekans .naf-cinematic-brand img {
        height: 26px;
    }

    body.rasathane-sekans .naf-chapter-wrap {
        top: calc(env(safe-area-inset-top, 0px) + 50px);
        left: 16px;
        width: 190px;
    }

    body.rasathane-sekans .naf-chapter {
        font-size: var(--text-xs);
    }

    body.rasathane-sekans .naf-year {
        left: 16px;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 94px);
        font-size: 54px;
    }

    body.rasathane-sekans .naf-controls {
        bottom: max(env(safe-area-inset-bottom, 0px), 12px);
        max-width: calc(100vw - 24px);
        padding: 6px 8px;
    }

    body.rasathane-sekans .naf-ctrl-row {
        gap: 4px;
    }

    body.rasathane-sekans .naf-ctrl {
        width: 40px;
        height: 40px;
        font-size: 17px;
    }

    body.rasathane-sekans .naf-coulomb-legend {
        top: calc(env(safe-area-inset-top, 0px) + 102px);
        bottom: auto;
        left: 16px;
        right: auto;
        width: 156px;
        max-width: none;
        padding: 10px;
    }

    body.rasathane-sekans .naf-legend-title {
        display: block;
        font-size: 11px;
    }

    body.rasathane-sekans .naf-legend-bar,
    body.rasathane-sekans .naf-card-legend-bar,
    body.rasathane-sekans .naf-legend-axis,
    body.rasathane-sekans .naf-card-legend-axis,
    body.rasathane-sekans .naf-legend-sub,
    body.rasathane-sekans .naf-card-legend-sub {
        width: 120px;
    }

    body.rasathane-sekans .naf-quake-countdown {
        right: 14px;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 84px);
    }

    body.rasathane-sekans .naf-quake-ring-wrap,
    body.rasathane-sekans .naf-quake-ring {
        width: 58px;
        height: 58px;
    }

    body.rasathane-sekans .naf-card {
        padding: 14px;
    }

    body.rasathane-sekans .naf-card-inner,
    body.rasathane-sekans .naf-card--side .naf-card-inner {
        width: 100%;
        max-height: calc(100dvh - 28px);
        padding: var(--space-xl);
    }

    body.rasathane-sekans .naf-narrative-title {
        font-size: 21px;
    }
}

@media (max-width: 400px) {
    body.rasathane-sekans .naf-ctrl {
        width: 36px;
        height: 38px;
    }

    body.rasathane-sekans .naf-year {
        font-size: 46px;
    }

    body.rasathane-sekans .naf-coulomb-legend {
        width: 150px;
    }
}

@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
    body.rasathane-sekans .naf-hero {
        padding: 64px 24px 42px;
    }

    body.rasathane-sekans .naf-hero-title {
        font-size: 38px;
    }

    body.rasathane-sekans .naf-hero-lede {
        font-size: var(--text-sm);
        max-width: 64ch;
    }

    body.rasathane-sekans .naf-year {
        top: calc(env(safe-area-inset-top, 0px) + 50px);
        bottom: auto;
        font-size: 38px;
    }

    body.rasathane-sekans .naf-chapter-wrap {
        top: calc(env(safe-area-inset-top, 0px) + 16px);
        left: 126px;
        width: 180px;
    }

    body.rasathane-sekans .naf-coulomb-legend {
        top: calc(env(safe-area-inset-top, 0px) + 84px);
        left: 16px;
    }

    body.rasathane-sekans .naf-quake-countdown {
        bottom: 12px;
        flex-direction: row;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.rasathane-sekans .naf-start-btn,
    body.rasathane-sekans .naf-quake-countdown.is-active .naf-quake-ring,
    body.rasathane-sekans .naf-marmara-mag-label--cascade {
        animation: none !important;
    }

    body.rasathane-sekans :where(.naf-start-btn, .naf-ctrl, .naf-progress-bar, .naf-card, .naf-card-inner) {
        transition: none !important;
    }
}
