:root {
    --bg: #F4F7FB;
    --surface: #FFFFFF;
    --surface-alt: #EAEFF7;
    --text: #0A0F1D;
    --text-muted: #64748B;
    --border: #D8E2F0;
    --primary: #0D5CFE;
    --primary-hover: #0B111E;
    --on-primary: #FFFFFF;
    --primary-text: #0D5CFE;
    --accent: #2563EB;
    --on-accent: #FFFFFF;
    --accent-text: #2563EB;
    --dark-band: #0B111E;
    --on-dark: #FFFFFF;
    --on-dark-muted: #94A3B8;
    --section-alt-bg: #EAEFF7;
    --dark-band-bg: #0B111E;
    --brand-band-bg: #0D5CFE;
    --brand-btn-bg: #0B111E;
    --brand-btn-text: #FFFFFF;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Titillium Web', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

.text-muted {
    color: var(--text-muted) !important;
}

.hma-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--primary);
    color: var(--on-primary);
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
}

.hma-btn:hover {
    background-color: var(--primary-hover);
    color: var(--on-primary);
}

.hma-btn-alt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: transparent;
    color: var(--text);
    padding: 13px 26px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--text);
    cursor: pointer;
    transition: all 0.25s ease-in-out;
}

.hma-btn-alt:hover {
    background-color: var(--text);
    color: var(--on-primary);
    border-color: var(--text);
}

.hma-card {
    background-color: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 0px;
    padding: 24px;
    transition: all 0.25s ease-in-out;
}

.hma-card:hover {
    border-color: var(--primary);
}

.hma-media {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 0px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.hma-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hma-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 8px;
}

.hma-title {
    font-size: 38px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 16px 0;
}

@media (max-width: 768px) {
    .hma-title {
        font-size: 28px;
    }
}

.hma-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background-color: var(--surface-alt);
    color: var(--text);
}

.hma-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--on-primary);
    font-size: 22px;
    flex-shrink: 0;
}

.hma-section {
    padding: 80px 0;
    background-color: var(--bg);
    color: var(--text);
}

.hma-section-alt {
    padding: 80px 0;
    background-color: var(--surface-alt);
    color: var(--text);
}

.hma-section-dark {
    padding: 80px 0;
    background-color: var(--dark-band);
    color: var(--on-dark);
}

.hma-section-brand {
    padding: 80px 0;
    background-color: var(--brand-band-bg);
    color: var(--on-primary);
}

.hma-section-brand .hma-btn {
    background-color: var(--brand-btn-bg);
    color: var(--brand-btn-text);
}

.hma-section-brand .hma-btn:hover {
    background-color: #000000;
}

.hma-section-brand .hma-btn-alt {
    border-color: var(--on-primary);
    color: var(--on-primary);
}

.hma-section-brand .hma-btn-alt:hover {
    background-color: var(--on-primary);
    color: var(--primary);
}

.hma-section-dark .hma-title,
.hma-on-dark .hma-title {
    color: var(--on-dark);
}

.hma-section-dark .hma-eyebrow,
.hma-on-dark .hma-eyebrow {
    color: var(--primary);
}

.hma-section-dark .hma-btn-alt,
.hma-on-dark .hma-btn-alt {
    border-color: var(--on-dark);
    color: var(--on-dark);
}

.hma-section-dark .hma-btn-alt:hover,
.hma-on-dark .hma-btn-alt:hover {
    background-color: var(--on-dark);
    color: var(--dark-band);
}

.hma-section-dark .text-muted,
.hma-on-dark .text-muted {
    color: var(--on-dark-muted) !important;
}

.hma-section-dark .hma-card,
.hma-on-dark .hma-card {
    background-color: var(--surface);
    color: var(--text);
    border-color: var(--border);
}

.hma-section-dark .hma-card .hma-title,
.hma-on-dark .hma-card .hma-title {
    color: var(--text);
}

.hma-section-dark .hma-card .text-muted,
.hma-on-dark .hma-card .text-muted {
    color: var(--text-muted) !important;
}

@media (max-width: 768px) {

    .hma-section,
    .hma-section-alt,
    .hma-section-dark,
    .hma-section-brand {
        padding: 48px 0;
    }
}

/* ===== header_navigation ===== */
.csj-header {
    font-family: 'Titillium Web', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.csj-header .js-dropdown-menu {
    min-width: 260px;
}

.csj-header .js-dropdown-container.is-active .js-dropdown-menu {
    display: block;
}

.csj-header .js-dropdown-container.is-active .js-chevron {
    transform: rotate(180deg);
}

.csj-header .hma-btn {
    box-shadow: 0 2px 4px rgba(13, 92, 254, 0.2);
}

.csj-header .hma-btn:hover {
    box-shadow: 0 4px 10px rgba(11, 17, 30, 0.3);
}

/* ===== understand_what_each_screening_condition_changes ===== */
.cs-hero {
    background-color: var(--dark-band, #0B111E);
}

.cs-hero__left {
    background-color: var(--dark-band, #0B111E);
    position: relative;
}

@media (min-width: 1024px) {
    .cs-hero__left {
        clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%);
        padding-right: 5rem;
    }

    .cs-hero__right {
        margin-left: -5%;
    }
}

.cs-hero__funnel-strip {
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.cs-hero__accent-plate {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

/* ===== featured_investigation_three_filters_reduced_500_symbols_to_12 ===== */
.featured-investigation-block {
    --dark-band-border: #1E2A44;
    --dark-band-surface: #121A2C;
}

.featured-investigation-block .js-stage-card.is-dimmed {
    opacity: 0.35;
}

.featured-investigation-block .js-stage-card.is-highlighted {
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(13, 92, 254, 0.12);
}

/* ===== condition_stacks_core_architecture ===== */
.condition-stacks-block {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.condition-stacks-block .cs-filter-btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    background-color: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.condition-stacks-block .cs-filter-btn:hover {
    background-color: var(--surface-alt);
    border-color: var(--primary);
    color: var(--primary-text);
}

.condition-stacks-block .cs-filter-btn.cs-filter-btn-active {
    background-color: var(--primary);
    color: var(--on-primary);
    border-color: var(--primary);
}

.condition-stacks-block .cs-card-img {
    transition: transform 0.35s ease-in-out;
}

.condition-stacks-block .hma-card:hover .cs-card-img {
    transform: scale(1.03);
}

.condition-stacks-block .cs-title-link {
    color: var(--text);
    transition: color 0.2s ease;
    display: inline;
}

.condition-stacks-block .cs-title-link:hover {
    color: var(--primary-text);
}

.condition-stacks-block .cs-pipeline-pill {
    display: inline-block;
    padding: 2px 6px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--text);
    font-size: 10px;
    font-weight: 600;
}

.condition-stacks-block .cs-card-tag {
    background-color: var(--dark-band);
    color: var(--on-dark);
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 2px;
}

.condition-stacks-block .cs-action-btn {
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 10px 14px;
    text-align: center;
    text-decoration: none;
}

.condition-stacks-block .cs-footer-link {
    border-radius: 4px;
    text-decoration: none;
}

@media (max-width: 767px) {
    .condition-stacks-block .condition-stacks-grid {
        grid-template-columns: 1fr;
    }

    .condition-stacks-block .condition-stacks-footer {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ===== screening_diagnostic_methodologies ===== */
.diagnostics-overview {
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.diagnostics-overview .hma-card {
    min-height: 100%;
}

.diagnostics-overview .js-diag-filter.active {
    background-color: var(--primary);
    color: var(--on-primary);
    border-color: var(--primary);
}

.diagnostics-overview .js-diag-item.is-hidden {
    display: none;
}

@media (max-width: 767px) {
    .diagnostics-overview .js-methodology-grid {
        grid-template-columns: 1fr;
    }

    .diagnostics-overview .js-filter-container {
        width: 100%;
    }

    .diagnostics-overview .js-diag-filter {
        flex: 1 1 calc(50% - 0.5rem);
        text-align: center;
        justify-content: center;
    }
}

/* ===== educational_foundations_and_core_principles ===== */
.key-benefits-block {
    background-color: var(--dark-band, #0B111E);
}

.key-benefits-block .key-benefits-stat {
    min-height: 160px;
}

.key-benefits-block .key-benefits-card:hover {
    border-color: #0D5CFE;
    background-color: #162035;
}

.key-benefits-block .key-benefits-media-link img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.key-benefits-block .key-benefits-study-card {
    min-height: 100%;
}

@media (max-width: 767px) {
    .key-benefits-block .key-benefits-media-link img {
        height: 190px;
    }
}

/* ===== educational_mentions_and_citations ===== */
.csj-citations {
    background-color: var(--bg);
}

.csj-citations .csj-citation-card {
    transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out, border-color 0.25s ease-in-out;
}

.csj-citations .csj-citation-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 10px 24px rgba(11, 17, 30, 0.06);
}

.csj-citations .hma-btn {
    background: var(--primary);
    color: var(--on-primary);
    transition: background 0.25s ease-in-out, color 0.25s ease-in-out;
}

.csj-citations .hma-btn:hover {
    background: var(--dark-band);
    color: #ffffff;
}

.csj-citations .hma-btn-alt {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
    transition: all 0.25s ease-in-out;
}

.csj-citations .hma-btn-alt:hover {
    background: var(--dark-band);
    color: #ffffff;
    border-color: var(--dark-band);
}

@media (max-width: 767px) {
    .csj-citations .grid {
        grid-template-columns: 1fr;
    }

    .csj-citations .csj-citation-card {
        min-height: auto;
    }
}

/* ===== platform_compatibility_research ===== */
.csj-compat-block .csj-filter-btn {
    border-color: var(--border);
    background-color: var(--surface);
    color: var(--text-muted);
}

.csj-compat-block .csj-filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary-text);
}

.csj-compat-block .csj-filter-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--on-primary);
}

.csj-compat-block .hma-card {
    background-color: var(--surface);
    border-color: var(--border);
}

.csj-compat-block .hma-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(11, 17, 30, 0.05);
}

@media (max-width: 767px) {
    .csj-compat-block .js-engines-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== request_screener_architecture_breakdown ===== */
.c-inquiry-section .c-inquiry-input::placeholder,
.c-inquiry-section .c-inquiry-textarea::placeholder {
    color: #94A3B8;
    opacity: 1;
}

.c-inquiry-section .c-inquiry-input:focus,
.c-inquiry-section .c-inquiry-textarea:focus {
    border-color: #0D5CFE;
    box-shadow: 0 0 0 1px #0D5CFE;
}

@media (max-width: 767px) {
    .c-inquiry-section .c-inquiry-pipeline-tags {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* ===== footer ===== */
.cs-footer {
    background-color: var(--dark-band, #0B111E);
    font-family: 'Titillium Web', sans-serif;
}

.cs-footer .cs-disclaimer-box {
    background-color: var(--dark-band-surface, #121A2C);
}

.cs-footer .cs-nav-link {
    display: inline-block;
    color: var(--on-dark-muted, #94A3B8);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.cs-footer .cs-nav-link:hover {
    color: #FFFFFF;
    transform: translateX(3px);
}

@media (max-width: 767px) {
    .cs-footer .grid {
        grid-template-columns: 1fr;
    }
}

/* ===== PAGE: about ===== */
.csj-about-block .csj-arch-frame{border-radius:120px 120px 0 0;overflow:hidden;background-color:#EAEFF7;border:3px solid #FFFFFF}.csj-about-block .csj-arch-frame img{width:100%;object-fit:cover;display:block}.csj-about-block .csj-metric-badge{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:96px;height:96px;border-radius:50%;background-color:#0D5CFE;border:4px solid #FFFFFF;z-index:10}.csj-about-block .csj-stamp-badge{width:96px;height:96px;border-radius:50%;border:2px dashed #0D5CFE;background-color:#FFFFFF;overflow:hidden}.csj-about-block .csj-stamp-svg{width:100%;height:100%;animation:csjStampSpin 25s linear infinite;transform-origin:center}.csj-about-block .csj-stamp-text{font-size:7.5px;font-weight:700;text-transform:uppercase;letter-spacing:0.16em;fill:#0A0F1D}.csj-about-block .csj-stamp-center{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}.csj-about-block .hma-eyebrow{display:inline-flex;align-items:center;gap:6px;color:#0D5CFE;font-size:13px;font-weight:700;letter-spacing:0.08em;text-transform:uppercase}.csj-about-block .hma-title{line-height:1.2;font-family:'Titillium Web',sans-serif}.csj-about-block .js-tab-btn{cursor:pointer;outline:none}.csj-about-block .js-tab-btn:focus-visible{outline:2px solid #0D5CFE;outline-offset:2px}@keyframes csjStampSpin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}@media(max-width:767px){.csj-about-block .csj-arch-frame{border-radius:80px 80px 0 0}.csj-about-block .csj-metric-badge{width:80px;height:80px}.csj-about-block .csj-stamp-badge{width:84px;height:84px}}

/* ===== PAGE: condition-stacks ===== */
.cstack-overview-block .cstack-horizontal-card { min-height: 210px; border-radius: 0; box-shadow: 0 1px 3px rgba(11, 17, 30, 0.04); } .cstack-overview-block .cstack-media-anchor { aspect-ratio: 3/4; overflow: hidden; } .cstack-overview-block .cstack-media-anchor img { transition: transform 0.3s ease; } .cstack-overview-block .cstack-horizontal-card:hover .cstack-media-anchor img { transform: scale(1.03); } .cstack-overview-block .cstack-detail-link { text-decoration: underline; text-underline-offset: 4px; } .cstack-overview-block .cstack-detail-link:hover { text-decoration: underline; } @media (max-width: 767px) { .cstack-overview-block .cstack-media-grid { grid-template-columns: 1fr; } .cstack-overview-block .cstack-horizontal-card { flex-direction: column; } .cstack-overview-block .cstack-media-anchor { width: 100%; aspect-ratio: 16/9; } }

/* ===== PAGE: too-broad-scans ===== */
.broad-scans-view {
  background-color: var(--page_background, #F4F7FB);
  color: var(--text_light_bg_primary, #0A0F1D);
}

.broad-scans-view .hma-eyebrow {
  letter-spacing: 0.08em;
  font-family: 'Titillium Web', sans-serif;
}

.broad-scans-view h2,
.broad-scans-view h3 {
  font-family: 'Titillium Web', sans-serif;
  overflow-wrap: anywhere;
}

.broad-scans-view .js-toggle-filter {
  accent-color: var(--primary, #0D5CFE);
}

@media (max-width: 767px) {
  .broad-scans-view h2 {
    font-size: 16px;
    hyphens: auto;
  }
  .broad-scans-view h3 {
    font-size: 14px;
    hyphens: auto;
  }
}

/* ===== PAGE: too-narrow-scans ===== */
.cs-narrow-catalog { position: relative; overflow-wrap: anywhere; }
.cs-narrow-catalog h2, .cs-narrow-catalog h3, .cs-narrow-catalog p { hyphens: auto; }
.cs-narrow-spotlight { border-radius: 4px; }
.cs-narrow-item { border-radius: 4px; }
.cs-narrow-item__thumb { border-radius: 2px; }
.cs-narrow-catalog .hma-btn { background-color: var(--primary); color: var(--on-primary); border-radius: 4px; }
.cs-narrow-catalog .hma-btn:hover { background-color: var(--dark-band); color: #FFFFFF; }
@media (max-width: 767px) {
  .cs-narrow-catalog__layout { flex-direction: column; }
  .cs-narrow-list { width: 100%; }
  .cs-narrow-item { flex-direction: column; width: 100%; }
  .cs-narrow-item__thumb { width: 100%; max-width: 240px; margin: 0 auto; }
}

/* ===== PAGE: sequence-cases ===== */
.sequence-cases-block .sequence-masonry {
  column-count: 1;
  column-gap: 2rem;
}

@media (min-width: 768px) {
  .sequence-cases-block .sequence-masonry {
    column-count: 2;
    column-gap: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .sequence-cases-block .sequence-masonry {
    column-count: 3;
    column-gap: 2.5rem;
  }
}

.sequence-cases-block .sequence-item {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}

.sequence-cases-block .js-order-btn.active {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* ===== PAGE: redundant-conditions ===== */
.redundant-block .hma-card {
  min-height: 100%;
}

.redundant-block .hma-card:hover {
  border-color: var(--primary);
}

.redundant-block .js-audit-filter:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .redundant-block .js-case-item {
    width: 100%;
  }
}

/* ===== PAGE: timeframe-cases ===== */
.timeframes-hub { font-family: 'Titillium Web', sans-serif; } .timeframes-hub .tf-article-card { border-radius: 0; } .timeframes-hub .tf-circle-arrow { transition: all 0.25s ease-in-out; } @media (max-width: 767px) { .timeframes-hub aside { position: static !important; } }

/* ===== PAGE: review-notes ===== */
.review-notes-page {
  --page_background: #F4F7FB;
  --surface: #FFFFFF;
  --surface_secondary: #EAEFF7;
  --text_light_bg_primary: #0A0F1D;
  --text_light_bg_secondary: #475569;
  --text_light_bg_muted: #64748B;
  --border_light: #D8E2F0;
  --primary: #0D5CFE;
  --primary_hover: #0945C2;
  --primary_contrast: #FFFFFF;
  font-family: 'Titillium Web', sans-serif;
  overflow-x: hidden;
}

.review-notes-page .minimal-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.review-notes-page .aspect-video {
  aspect-ratio: 16 / 9;
}

.review-notes-page img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
  .review-notes-page h2 {
    hyphens: auto;
    overflow-wrap: anywhere;
  }
  .review-notes-page h3 {
    hyphens: auto;
    overflow-wrap: anywhere;
  }
  .review-notes-page p {
    overflow-wrap: anywhere;
  }
}

/* ===== PAGE: tc2000-easyscan ===== */
.tc2000-guide-block pre {
  tab-size: 2;
  word-break: break-all;
}
.tc2000-guide-block .js-condition-btn.active {
  border-color: var(--primary);
  background-color: var(--surface);
}
.tc2000-guide-block .js-condition-btn:not(.active) .js-status-icon {
  opacity: 0.3;
  color: var(--text-muted);
}
.tc2000-guide-block .js-tab-btn.active {
  background-color: var(--primary);
  color: #ffffff;
}
@media (max-width: 767px) {
  .tc2000-guide-block pre {
    font-size: 11px;
  }
}

/* ===== PAGE: contact ===== */
.cs-contact-desk { word-break: normal; overflow-wrap: anywhere; } .cs-contact-desk input::placeholder, .cs-contact-desk textarea::placeholder { color: #64748B; opacity: 1; } .cs-contact-desk input:focus, .cs-contact-desk textarea:focus { outline: 2px solid var(--primary); outline-offset: -1px; } @media (max-width: 767px) { .cs-contact-desk .grid { grid-template-columns: 1fr; } }

/* ===== PAGE: privacy ===== */
.cs-privacy { font-family: 'Titillium Web', sans-serif; } .cs-privacy h2, .cs-privacy h3, .cs-privacy h4 { hyphens: auto; overflow-wrap: anywhere; } .cs-privacy p, .cs-privacy span, .cs-privacy li { overflow-wrap: anywhere; } .cs-privacy .hma-card { min-width: 0; } @media (max-width: 767px) { .cs-privacy .grid { grid-template-columns: 1fr; } }

/* ===== PAGE: terms ===== */
.cs-terms .cs-terms__sidebar button {
  border: none;
  cursor: pointer;
}

.cs-terms mark {
  background-color: rgba(13, 92, 254, 0.15);
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
}

@media (max-width: 767px) {
  .cs-terms .cs-terms__sidebar {
    margin-bottom: 24px;
  }
}

/* ===== PAGE: disclaimer ===== */
.cs-disclaimer { background-color: var(--page-background); }
.cs-disclaimer .hma-card { transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out, border-color 0.25s ease-in-out; }
.cs-disclaimer .hma-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 14px rgba(11, 17, 30, 0.08); }
.cs-disclaimer .js-filter-btn { cursor: pointer; }
.cs-disclaimer .js-card.is-hidden { display: none !important; }

.quant-comment-main {
    margin-bottom: 24px;
    font-family: 'Titillium Web', sans-serif;
}

.quant-comment-wrapper {
    background-color: #FFFFFF;
    border: 1px solid #D8E2F0;
    border-radius: 0px;
    padding: 24px 28px;
    position: relative;
    box-shadow: 0 4px 12px rgba(11, 17, 30, 0.04);
}

.quant-comment-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.quant-avatar-frame {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.quant-comment-avatar {
    width: 52px;
    height: 52px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid #D8E2F0;
    display: block;
    background-color: #EAEFF7;
}

.quant-avatar-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background-color: #0D5CFE;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.quant-author-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.quant-author-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.quant-author-name {
    font-size: 17px;
    font-weight: 700;
    color: #0A0F1D;
    margin: 0;
    line-height: 1.2;
}

.quant-author-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: #0B111E;
    color: #FFFFFF;
    padding: 2px 8px;
    border-radius: 2px;
}

.quant-timestamp-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748B;
}

.quant-timestamp {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.quant-meta-divider {
    color: #D8E2F0;
}

.quant-strategy-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #0D5CFE;
    font-weight: 600;
}

.quant-comment-body {
    margin-bottom: 20px;
}

.quant-comment-text {
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
    margin: 0;
}

.quant-comment-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #D8E2F0;
    padding-top: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.quant-actions-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quant-btn-like {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #F4F7FB;
    border: 1px solid #D8E2F0;
    color: #0A0F1D;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
}

.quant-btn-like:hover {
    background-color: #0D5CFE;
    color: #FFFFFF;
    border-color: #0D5CFE;
}

.quant-like-counter {
    font-weight: 700;
}

.quant-btn-reply {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #0B111E;
    border: 1px solid #0B111E;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
}

.quant-btn-reply:hover {
    background-color: #0D5CFE;
    border-color: #0D5CFE;
    color: #FFFFFF;
}

.quant-verification-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #0D5CFE;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.quant-comment-reply {
    display: flex;
    position: relative;
    margin-top: 14px;
    margin-left: 36px;
    font-family: 'Titillium Web', sans-serif;
}

.quant-reply-connector {
    width: 32px;
    flex-shrink: 0;
    position: relative;
}

.quant-reply-line {
    position: absolute;
    left: 12px;
    top: -14px;
    bottom: 50%;
    width: 2px;
    border-left: 2px solid #0D5CFE;
    border-bottom: 2px solid #0D5CFE;
    border-bottom-left-radius: 6px;
}

.quant-reply-wrapper {
    flex-grow: 1;
    background-color: #121A2C;
    border: 1px solid #1E2A44;
    border-left: 3px solid #0D5CFE;
    border-radius: 0px;
    padding: 20px 24px;
    position: relative;
}

.quant-reply-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.quant-reply-avatar-frame {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.quant-reply-avatar {
    width: 44px;
    height: 44px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid #1E2A44;
    display: block;
    background-color: #0B111E;
}

.quant-reply-author-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.quant-reply-author-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.quant-reply-author-name {
    font-size: 15px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.2;
}

.quant-reply-badge-quant {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    background-color: #0D5CFE;
    color: #FFFFFF;
    padding: 2px 6px;
    border-radius: 2px;
    text-transform: uppercase;
}

.quant-reply-timestamp-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #94A3B8;
}

.quant-reply-timestamp {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.quant-reply-body {
    margin-bottom: 16px;
}

.quant-reply-context {
    font-size: 12px;
    color: #64748B;
    margin-bottom: 6px;
}

.quant-context-label {
    color: #94A3B8;
}

.quant-context-target {
    color: #0D5CFE;
    font-weight: 600;
}

.quant-reply-text {
    font-size: 14px;
    line-height: 1.6;
    color: #94A3B8;
    margin: 0;
}

.quant-reply-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #1E2A44;
    padding-top: 14px;
    flex-wrap: wrap;
    gap: 12px;
}

.quant-reply-btn-like {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #0B111E;
    border: 1px solid #1E2A44;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
}

.quant-reply-btn-like:hover {
    background-color: #0D5CFE;
    border-color: #0D5CFE;
    color: #FFFFFF;
}

.quant-reply-like-counter {
    font-weight: 700;
}

.quant-reply-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}


/* ===== PAGE TEMPLATE: condition-stacks ===== */
.csj-header {
    font-family: 'Titillium Web', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.csj-header .js-dropdown-menu {
    min-width: 260px;
}

.csj-header .js-dropdown-container.is-active .js-dropdown-menu {
    display: block;
}

.csj-header .js-dropdown-container.is-active .js-chevron {
    transform: rotate(180deg);
}

.csj-header .hma-btn {
    box-shadow: 0 2px 4px rgba(13, 92, 254, 0.2);
}

.csj-header .hma-btn:hover {
    box-shadow: 0 4px 10px rgba(11, 17, 30, 0.3);
}

.cs-hero {
    background-color: var(--dark-band, #0B111E);
    font-family: 'Titillium Web', sans-serif;
}

.cs-hero__left {
    background-color: var(--dark-band, #0B111E);
    position: relative;
}

@media (min-width: 1024px) {
    .cs-hero__left {
        clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
        padding-right: 4rem;
    }
}

.cs-detail-article {
    font-family: 'Titillium Web', sans-serif;
}

.cs-detail-article .cs-content-prose p {
    overflow-wrap: anywhere;
}

.cs-detail-article .cs-bordered-title {
    overflow-wrap: anywhere;
}

.cs-detail-article .cs-media-frame__backdrop {
    transition: transform 0.3s ease;
}

.cs-detail-article .cs-media-frame:hover .cs-media-frame__backdrop {
    transform: translate(6px, 6px);
}

.cs-footer {
    background-color: var(--dark-band, #0B111E);
    font-family: 'Titillium Web', sans-serif;
}

.cs-footer .cs-disclaimer-box {
    background-color: var(--dark-band-surface, #121A2C);
}

.cs-footer .cs-nav-link {
    display: inline-block;
    color: var(--on-dark-muted, #94A3B8);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.cs-footer .cs-nav-link:hover {
    color: #FFFFFF;
    transform: translateX(3px);
}

@media (max-width: 767px) {
    .cs-detail-article .cs-alt-section {
        grid-template-columns: 1fr;
    }

    .cs-footer .grid {
        grid-template-columns: 1fr;
    }
}

/* ===== PAGE TEMPLATE: too-broad-scans ===== */
.csj-header {
    font-family: 'Titillium Web', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.csj-header .js-dropdown-menu {
    min-width: 260px;
}

.csj-header .js-dropdown-container.is-active .js-dropdown-menu {
    display: block;
}

.csj-header .js-dropdown-container.is-active .js-chevron {
    transform: rotate(180deg);
}

.csj-header .hma-btn {
    box-shadow: 0 2px 4px rgba(13, 92, 254, 0.2);
}

.csj-header .hma-btn:hover {
    box-shadow: 0 4px 10px rgba(11, 17, 30, 0.3);
}

.cs-hero {
    background-color: var(--dark-band, #0B111E);
}

.cs-hero__left {
    background-color: var(--dark-band, #0B111E);
    position: relative;
}

@media (min-width: 1024px) {
    .cs-hero__left {
        clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%);
        padding-right: 5rem;
    }

    .cs-hero__right {
        margin-left: -5%;
    }
}

.cs-hero__accent-plate {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.csj-detail-layout {
    font-family: 'Titillium Web', sans-serif;
}

.csj-detail-layout h2,
.csj-detail-layout h3 {
    font-family: 'Titillium Web', sans-serif;
    overflow-wrap: anywhere;
}

.csj-detail-layout p {
    overflow-wrap: anywhere;
}

.csj-note-card {
    transition: border-color 0.2s ease;
}

.csj-facts-container dt,
.csj-facts-container dd {
    overflow-wrap: anywhere;
}

.cs-footer {
    background-color: var(--dark-band, #0B111E);
    font-family: 'Titillium Web', sans-serif;
}

.cs-footer .cs-disclaimer-box {
    background-color: var(--dark-band-surface, #121A2C);
}

.cs-footer .cs-nav-link {
    display: inline-block;
    color: var(--on-dark-muted, #94A3B8);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.cs-footer .cs-nav-link:hover {
    color: #FFFFFF;
    transform: translateX(3px);
}

@media (max-width: 767px) {
    .cs-footer .grid {
        grid-template-columns: 1fr;
    }
}

/* ===== PAGE TEMPLATE: too-narrow-scans ===== */
.csj-header {
    font-family: 'Titillium Web', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.csj-header .js-dropdown-menu {
    min-width: 260px;
}

.csj-header .js-dropdown-container.is-active .js-dropdown-menu {
    display: block;
}

.csj-header .js-dropdown-container.is-active .js-chevron {
    transform: rotate(180deg);
}

.csj-header .hma-btn {
    box-shadow: 0 2px 4px rgba(13, 92, 254, 0.2);
}

.csj-header .hma-btn:hover {
    box-shadow: 0 4px 10px rgba(11, 17, 30, 0.3);
}

.cs-hero {
    background-color: var(--dark-band, #0B111E);
}

.csa-detail-main {
    font-family: 'Titillium Web', sans-serif;
    overflow-x: hidden;
}

.csa-detail-main h1,
.csa-detail-main h2,
.csa-detail-main h3 {
    overflow-wrap: anywhere;
}

.csa-detail-main .csa-custom-list li {
    overflow-wrap: anywhere;
}

.csa-detail-main .js-accordion-item.is-active .js-accordion-content {
    display: block;
}

.csa-detail-main .js-accordion-item.is-active .js-accordion-icon {
    transform: rotate(180deg);
}

.csa-detail-main .csa-grid-card {
    min-height: 100%;
}

.cs-footer {
    background-color: var(--dark-band, #0B111E);
    font-family: 'Titillium Web', sans-serif;
}

.cs-footer .cs-disclaimer-box {
    background-color: var(--dark-band-surface, #121A2C);
}

.cs-footer .cs-nav-link {
    display: inline-block;
    color: var(--on-dark-muted, #94A3B8);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.cs-footer .cs-nav-link:hover {
    color: #FFFFFF;
    transform: translateX(3px);
}

@media (max-width: 767px) {
    .cs-footer .grid {
        grid-template-columns: 1fr;
    }

    .csa-detail-main .csa-cta-split {
        flex-direction: column;
    }
}

/* ===== PAGE TEMPLATE: sequence-cases ===== */
.csj-header {
    font-family: 'Titillium Web', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.csj-header .js-dropdown-menu {
    min-width: 260px;
}

.csj-header .js-dropdown-container.is-active .js-dropdown-menu {
    display: block;
}

.csj-header .js-dropdown-container.is-active .js-chevron {
    transform: rotate(180deg);
}

.csj-header .hma-btn {
    box-shadow: 0 2px 4px rgba(13, 92, 254, 0.2);
}

.csj-header .hma-btn:hover {
    box-shadow: 0 4px 10px rgba(11, 17, 30, 0.3);
}

.cs-hero {
    background-color: var(--dark-band, #0B111E);
}

.cs-hero__left {
    background-color: var(--dark-band, #0B111E);
    position: relative;
}

@media (min-width: 1024px) {
    .cs-hero__left {
        clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%);
        padding-right: 5rem;
    }

    .cs-hero__right {
        margin-left: -5%;
    }
}

.cs-hero__accent-plate {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.cs-article-detail {
    font-family: 'Titillium Web', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cs-article-detail .cs-sidebar-sticky {
    position: sticky;
    top: 6.5rem;
}

.cs-article-detail__body p {
    overflow-wrap: anywhere;
}

.cs-footer {
    background-color: var(--dark-band, #0B111E);
    font-family: 'Titillium Web', sans-serif;
}

.cs-footer .cs-disclaimer-box {
    background-color: var(--dark-band-surface, #121A2C);
}

.cs-footer .cs-nav-link {
    display: inline-block;
    color: var(--on-dark-muted, #94A3B8);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.cs-footer .cs-nav-link:hover {
    color: #FFFFFF;
    transform: translateX(3px);
}

@media (max-width: 767px) {
    .cs-footer .grid {
        grid-template-columns: 1fr;
    }

    .cs-article-detail .grid {
        grid-template-columns: 1fr;
    }
}

/* ===== PAGE TEMPLATE: redundant-conditions ===== */
.csj-header {
    font-family: 'Titillium Web', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.csj-header .js-dropdown-menu {
    min-width: 260px;
}

.csj-header .js-dropdown-container.is-active .js-dropdown-menu {
    display: block;
}

.csj-header .js-dropdown-container.is-active .js-chevron {
    transform: rotate(180deg);
}

.csj-header .hma-btn {
    box-shadow: 0 2px 4px rgba(13, 92, 254, 0.2);
}

.csj-header .hma-btn:hover {
    box-shadow: 0 4px 10px rgba(11, 17, 30, 0.3);
}

.cs-hero {
    background-color: var(--dark-band, #0B111E);
}

.cs-hero__left {
    background-color: var(--dark-band, #0B111E);
    position: relative;
}

@media (min-width: 1024px) {
    .cs-hero__left {
        clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%);
        padding-right: 4rem;
    }
}

.cs-detail-layout {
    font-family: 'Titillium Web', sans-serif;
    background-color: var(--page_background, #F4F7FB);
}

.cs-detail-layout .cs-bordered-heading {
    border-left-color: var(--primary, #0D5CFE);
}

.cs-detail-layout .cs-sticky-card {
    box-shadow: 0 4px 16px rgba(11, 17, 30, 0.05);
}

.cs-cta-banner {
    background-color: var(--surface_secondary, #EAEFF7);
}

.cs-footer {
    background-color: var(--dark-band, #0B111E);
    font-family: 'Titillium Web', sans-serif;
}

.cs-footer .cs-disclaimer-box {
    background-color: var(--dark-band-surface, #121A2C);
}

.cs-footer .cs-nav-link {
    display: inline-block;
    color: var(--on-dark-muted, #94A3B8);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.cs-footer .cs-nav-link:hover {
    color: #FFFFFF;
    transform: translateX(3px);
}

@media (max-width: 767px) {
    .cs-footer .grid {
        grid-template-columns: 1fr;
    }

    .cs-detail-layout .grid {
        grid-template-columns: 1fr;
    }

    .cs-related-section .grid {
        grid-template-columns: 1fr;
    }
}

/* ===== PAGE TEMPLATE: timeframe-cases ===== */
.csj-header {
    font-family: 'Titillium Web', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.csj-header .js-dropdown-menu {
    min-width: 260px;
}

.csj-header .js-dropdown-container.is-active .js-dropdown-menu {
    display: block;
}

.csj-header .js-dropdown-container.is-active .js-chevron {
    transform: rotate(180deg);
}

.csj-header .hma-btn {
    box-shadow: 0 2px 4px rgba(13, 92, 254, 0.2);
}

.csj-header .hma-btn:hover {
    box-shadow: 0 4px 10px rgba(11, 17, 30, 0.3);
}

.cs-detail-hero {
    background-color: var(--dark-band, #0B111E);
}

.cs-timeline-template {
    font-family: 'Titillium Web', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cs-timeline-template h1,
.cs-timeline-template h2,
.cs-timeline-template h3,
.cs-timeline-template h4 {
    overflow-wrap: anywhere;
    hyphens: auto;
}

.cs-timeline-template p,
.cs-timeline-template span,
.cs-timeline-template li {
    overflow-wrap: anywhere;
}

.cs-timeline-template .cs-section-title {
    line-height: 1.25;
}

.cs-timeline-template .cs-step-node {
    transition: transform 0.2s ease;
}

.cs-timeline-template .cs-cta-banner {
    background-color: var(--surface-secondary, #EAEFF7);
}

.cs-footer {
    background-color: var(--dark-band, #0B111E);
    font-family: 'Titillium Web', sans-serif;
}

.cs-footer .cs-disclaimer-box {
    background-color: var(--dark-band-surface, #121A2C);
}

.cs-footer .cs-nav-link {
    display: inline-block;
    color: var(--on-dark-muted, #94A3B8);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.cs-footer .cs-nav-link:hover {
    color: #FFFFFF;
    transform: translateX(3px);
}

@media (max-width: 767px) {
    .cs-timeline-template .cs-key-facts {
        grid-template-columns: 1fr;
    }

    .cs-timeline-template .cs-related-section .grid {
        grid-template-columns: 1fr;
    }

    .cs-footer .grid {
        grid-template-columns: 1fr;
    }
}

/* ===== PAGE TEMPLATE: review-notes ===== */
.csj-header {
    font-family: 'Titillium Web', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.csj-header .js-dropdown-menu {
    min-width: 260px;
}

.csj-header .js-dropdown-container.is-active .js-dropdown-menu {
    display: block;
}

.csj-header .js-dropdown-container.is-active .js-chevron {
    transform: rotate(180deg);
}

.csj-header .hma-btn {
    box-shadow: 0 2px 4px rgba(13, 92, 254, 0.2);
}

.csj-header .hma-btn:hover {
    box-shadow: 0 4px 10px rgba(11, 17, 30, 0.3);
}

.cs-hero {
    background-color: var(--dark-band, #0B111E);
}

.cs-hero__left {
    background-color: var(--dark-band, #0B111E);
    position: relative;
}

@media (min-width: 1024px) {
    .cs-hero__left {
        clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%);
        padding-right: 5rem;
    }

    .cs-hero__right {
        margin-left: -5%;
    }
}

.cs-hero__accent-plate {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.csj-article-layout {
    font-family: 'Titillium Web', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.csj-article-layout .csj-tab-btn.is-active {
    color: var(--primary, #0D5CFE);
    border-bottom-color: var(--primary, #0D5CFE);
    background-color: #FFFFFF;
}

.csj-article-layout .csj-tab-btn:not(.is-active):hover {
    background-color: #EAEFF7;
}

.cs-footer {
    background-color: var(--dark-band, #0B111E);
    font-family: 'Titillium Web', sans-serif;
}

.cs-footer .cs-disclaimer-box {
    background-color: var(--dark-band-surface, #121A2C);
}

.cs-footer .cs-nav-link {
    display: inline-block;
    color: var(--on-dark-muted, #94A3B8);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.cs-footer .cs-nav-link:hover {
    color: #FFFFFF;
    transform: translateX(3px);
}

@media (max-width: 767px) {
    .cs-footer .grid {
        grid-template-columns: 1fr;
    }
}

/* mobile-text-guard */
@media (max-width: 767px) {
  h1, h2, h3, h4, h5, h6, p, li, dt, dd, blockquote, figcaption, td, th, label {
    overflow-wrap: anywhere;
  }
  a, button, .btn {
    overflow-wrap: anywhere;
    white-space: normal;
  }
  img, video, iframe {
    max-width: 100%;
  }
}

/* Shared semantic colors used by all retained page templates. */
:root {
    --page-background: var(--bg);
    --surface-secondary: var(--surface-alt);
    --border-light: var(--border);
    --border-dark: #1E2A44;
    --primary-contrast: var(--on-primary);
    --text-light-bg-primary: var(--text);
    --text-light-bg-secondary: #475569;
    --text-light-bg-muted: var(--text-muted);
    --text-dark-bg-primary: var(--on-dark);
    --text-dark-bg-secondary: var(--on-dark-muted);
    --text-dark-bg-muted: var(--on-dark-muted);
}
/* Keep the footer at the end of the viewport, with no outer bottom gap. */
html { min-height: 100%; }
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > header, body > section, body > footer { flex-shrink: 0; }
body > main { flex: 1 0 auto; }
body > footer.cs-footer { margin-top: auto; margin-bottom: 0; padding: 0; }
/* Explicit active states remain readable while the pointer stays over a tab. */
.featured-investigation-block .js-stage-tab { background: var(--surface-alt); color: var(--text); }
.featured-investigation-block .js-stage-tab.active-tab,
.featured-investigation-block .js-stage-tab.active-tab:hover,
.featured-investigation-block .js-stage-tab.active-tab:focus-visible { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.hma-btn-alt:hover, .hma-btn-alt:focus-visible, .hma-btn-alt:active { background-color: var(--text); color: var(--on-dark); border-color: var(--text); }
.hma-section-dark .hma-btn-alt:hover, .hma-on-dark .hma-btn-alt:hover,
.hma-section-dark .hma-btn-alt:focus-visible, .hma-on-dark .hma-btn-alt:focus-visible,
.cs-hero .hma-btn-alt:hover, .cs-hero .hma-btn-alt:focus-visible { background-color: var(--on-dark); color: var(--text); border-color: var(--on-dark); }
.hma-btn-alt:is(:hover,:focus-visible,:active) > span,
.hma-btn-alt:is(:hover,:focus-visible,:active) > i { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #2563EB; outline-offset: 3px; }
.condition-stacks-block .cs-funnel-pipeline > div:last-child { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.condition-stacks-block .cs-funnel-pipeline .cs-pipeline-pill { text-align: left; padding: 5px 8px; }
.condition-stacks-block .cs-funnel-pipeline .bx-chevron-right { align-self: center; transform: rotate(90deg); }
.timeframes-hub .tf-circle-arrow { color: var(--on-dark); }
.timeframes-hub .tf-circle-arrow:is(:hover,:focus-visible,:active) { background-color: var(--primary); color: var(--on-primary); }
.timeframes-hub .tf-circle-arrow i { color: inherit; }
.cs-term-number { white-space: nowrap; overflow-wrap: normal; word-break: normal; flex: 0 0 auto; }
.js-term-card h3 { align-items: flex-start; }
.js-term-card > div:first-child { align-items: flex-start; flex-wrap: wrap; }
.js-term-card > div:first-child h3 { flex: 1 1 230px; min-width: 0; }
.cs-explainable-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; color: #EAEFF7; font-size: 12px; font-weight: 600; }
.cs-explainable-chain li:not(:last-child)::after { content: '→'; margin-left: 8px; color: #94A3B8; }
.cs-review-question { color: #94A3B8; font-size: 13px; line-height: 1.6; margin-bottom: 20px; }
@media (min-width: 768px) {
    .timeframes-hub .tf-article-card { flex-direction: row; }
    .timeframes-hub .tf-article-card > .hma-media { width: 34%; aspect-ratio: auto; min-height: 250px; }
    .timeframes-hub .tf-article-card > div { width: 66%; min-width: 0; text-align: left; align-items: flex-start; padding: 24px; }
}
@media (max-width: 767px) {
    .cs-explainable-chain { gap: 8px; font-size: 11px; }
}
/* Specificity also covers Tailwind's runtime-injected hover utilities. */
body .hma-btn-alt:is(:hover,:focus-visible,:active) { background-color: var(--text); color: var(--on-dark); border-color: var(--text); }
body .hma-section-dark .hma-btn-alt:is(:hover,:focus-visible,:active),
body .hma-on-dark .hma-btn-alt:is(:hover,:focus-visible,:active),
body .cs-hero .hma-btn-alt:is(:hover,:focus-visible,:active) { background-color: var(--on-dark); color: var(--text); border-color: var(--on-dark); }

/* Four principles share row tracks, so their text stays aligned across each row. */
.cs-principles-grid { gap: 14px 16px; align-items: stretch; }
.cs-principles-grid .key-benefits-stat { display: grid; grid-template-rows: 36px 40px minmax(40px, auto) 1fr; gap: 14px; padding: 24px; border: 1px solid #1E2A44; border-radius: 6px; background: #1E293B; color: #FFFFFF; }
.cs-principles-grid .cs-principle-featured { background: #0D5CFE; border-color: #0D5CFE; }
.cs-principle-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; }
.cs-principle-head > span { color: #CBD5E1; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.cs-principle-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: 0 0 36px; border: 1px solid #ffffff30; border-radius: 50%; color: #CBD5E1; font-size: 20px; }
.cs-principle-metric { font-size: clamp(24px,2.35vw,34px); font-weight: 900; line-height: 1.15; align-self: start; white-space: nowrap; }
.cs-principle-title { margin: 0; color: #FFFFFF; font-size: 14px; font-weight: 600; line-height: 1.45; align-self: start; }
.cs-principle-description { margin: 0; color: #CBD5E1; font-size: 13px; line-height: 1.6; align-self: start; }
.cs-principle-featured .cs-principle-head > span, .cs-principle-featured .cs-principle-icon, .cs-principle-featured .cs-principle-description { color: #FFFFFF; }
@supports (grid-template-rows: subgrid) {
    .cs-principles-grid .key-benefits-stat { grid-template-rows: subgrid; grid-row: span 4; }
}
/* Editorial forms follow the site's blue, navy, and white palette. */
.cs-reader-inquiry { padding: 64px 24px; background: var(--surface-alt); color: var(--text); flex-shrink: 0; }
.cs-reader-inquiry-inner { max-width: 1216px; margin: 0 auto; display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 32px; align-items: start; }
.cs-reader-inquiry-intro { background: var(--dark-band); color: white; padding: 36px; border-radius: 4px; border-top: 4px solid var(--primary); }
.cs-reader-inquiry-eyebrow { display: flex; align-items: center; gap: 8px; color: #93C5FD; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.cs-reader-inquiry-intro h2 { margin: 18px 0 16px; color: white; font-size: 30px; font-weight: 700; line-height: 1.2; }
.cs-reader-inquiry-intro > p { color: #CBD5E1; font-size: 15px; line-height: 1.65; }
.cs-reader-inquiry-context { margin: 28px 0; padding: 20px 0; border-top: 1px solid #334155; border-bottom: 1px solid #334155; display: flex; gap: 12px; align-items: flex-start; }
.cs-reader-inquiry-context > i { color: #93C5FD; font-size: 24px; flex-shrink: 0; }
.cs-reader-inquiry-context span { color: #94A3B8; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; font-weight: 700; }
.cs-reader-inquiry-context p { margin: 5px 0 0; color: white; font-size: 15px; font-weight: 600; line-height: 1.5; }
.cs-reader-inquiry-intro .cs-reader-inquiry-boundary { font-size: 13px; }
.cs-reader-inquiry-panel { background: white; padding: 32px; border: 1px solid var(--border); border-radius: 4px; box-shadow: 0 4px 20px #0B111E08; }
.cs-editorial-form { display: flex; flex-direction: column; gap: 20px; color: var(--text); }
.cs-form-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.cs-form-field-wide { grid-column: 1 / -1; }
.cs-form-field label { display: block; margin-bottom: 7px; color: var(--text); font-weight: 600; font-size: 14px; }
.cs-form-field label > span { color: #B91C1C; }
.cs-editorial-form .cs-form-field input, .cs-editorial-form .cs-form-field textarea { display: block; width: 100%; padding: 12px 14px; background: white; color: var(--text); border: 1px solid #CBD5E1; border-radius: 3px; font: inherit; font-size: 16px; line-height: 1.5; }
.cs-editorial-form textarea { resize: vertical; min-height: 130px; }
.cs-editorial-form input::placeholder, .cs-editorial-form textarea::placeholder { color: #64748B; opacity: 1; }
.cs-editorial-form .cs-form-field :is(input,textarea):focus { outline: 2px solid var(--primary); outline-offset: 2px; border-color: var(--primary); }
.cs-form-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.55; color: #475569; cursor: pointer; }
.cs-form-consent input { margin-top: 4px; width: 16px; height: 16px; flex: 0 0 16px; accent-color: var(--primary); }
.cs-form-consent a { color: var(--primary); text-decoration: underline; }
.cs-editorial-form .cs-form-submit { width: 100%; line-height: 1.35; padding: 15px 20px; }
.cs-form-submit:disabled { opacity: .7; cursor: wait; }
.cs-form-note { margin: 0; color: #64748B; font-size: 12px; line-height: 1.5; }
.cs-form-error { padding: 12px; margin: 0; border: 1px solid #FECACA; border-radius: 3px; color: #991B1B; background: #FEF2F2; font-size: 14px; line-height: 1.5; }
.cs-form-error[hidden], .cs-form-honeypot { display: none; }
.cs-inquiry-dialog { width: min(540px,calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--border); border-radius: 8px; color: var(--text); background: white; box-shadow: 0 20px 80px #0B111E60; overflow-y: auto; }
.cs-inquiry-dialog:not([open]) { display: none; }
.cs-inquiry-dialog::backdrop { background: #0B111EBF; }
.cs-inquiry-dialog-content { padding: 36px; text-align: center; }
.cs-inquiry-success-icon { display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; width: 68px; height: 68px; border-radius: 50%; background: #EAEFF7; color: var(--primary); font-size: 42px; }
.cs-inquiry-success-eyebrow { margin: 0 0 12px; font-size: 11px; text-transform: uppercase; font-weight: 700; letter-spacing: .05em; color: var(--primary); }
.cs-inquiry-dialog h2 { margin: 0 0 16px; font-weight: 700; font-size: 28px; line-height: 1.2; color: var(--text); }
.cs-inquiry-dialog p:not(.cs-inquiry-success-eyebrow) { color: #475569; font-size: 15px; line-height: 1.65; }
.cs-inquiry-success-context { margin: 16px 0 24px; padding: 12px; background: #F4F7FB; font-size: 13px !important; }
@media (max-width: 767px) {
    .cs-reader-inquiry { padding: 40px 16px; }
    .cs-reader-inquiry-inner { grid-template-columns: minmax(0,1fr); gap: 20px; }
    .cs-reader-inquiry-intro, .cs-reader-inquiry-panel { padding: 24px; }
    .cs-reader-inquiry-intro h2 { font-size: 26px; }
    .cs-form-fields { grid-template-columns: minmax(0,1fr); gap: 16px; }
    .cs-inquiry-dialog-content { padding: 28px 22px; }
    .cs-inquiry-dialog h2 { font-size: 25px; }
}
