/* =============================================================================
   AI-Safe Careers — shared design system (single source of truth).

   Loaded after Bootstrap 5.3 on every page via includes/head-assets.php, so the
   canonical chrome (includes/layout.php) and the homepage / formerly-bespoke pages
   all share one set of tokens, one nav, one footer, and one set of mobile-first
   hardening rules. Page-specific styling (e.g. the homepage hero) stays inline on
   that page; anything cross-page lives here.

   Conventions: mobile-first (base = phone, min-width media queries scale up).
   ========================================================================== */

/* --- Design tokens -------------------------------------------------------- */
:root {
    /* LinkedIn-like professional UI stack: native, crisp, fast, no external or proprietary font dependency. */
    --font-sans:      -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Fira Sans", Ubuntu, Oxygen, "Oxygen Sans", Cantarell, "Droid Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Lucida Grande", Helvetica, Arial, sans-serif;
    --font-brand:     var(--font-sans);
    --primary:        #2563eb;   /* trust blue */
    --primary-700:    #1d4ed8;
    --primary-050:    #eef2ff;
    --primary-rgb:    37, 99, 235;
    --ink:            #0f172a;   /* body text */
    --muted:          #475569;   /* secondary text: crisp on white, not washed out */
    --muted-strong:   #334155;   /* compact/legal text and high-priority supporting copy */
    --line:           #e5e7eb;
    --surface:        #f8fafc;
    --soft:           #f8fafc;   /* alias used by homepage components */
    --success:        #10b981;
    --accent-resilience: #10b981;
    --accent-attention:  #f59e0b;
    --accent-risk:       #ef4444;
    --accent-insight:    #b45309;
    --accent-insight-bg: #fffbeb;
    --accent-insight-border: #fcd34d;
    --accent-insight-text:   #78350f;
    --radius:         8px;
    --radius-lg:      10px;
    --shadow-sm:      0 1px 2px rgba(2,6,23,.06);
    --shadow-md:      0 8px 24px rgba(2,6,23,.08);
    --nav-h:          64px;      /* fixed navbar height, used for anchor offset */

    /* Bootstrap bridge: keep utilities, badges, and buttons on the same brand system. */
    --bs-primary:     var(--primary);
    --bs-primary-rgb: var(--primary-rgb);
    --bs-link-color:  var(--primary);
    --bs-link-hover-color: var(--primary-700);
}

/* --- Base ----------------------------------------------------------------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    color: var(--ink);
}
button, input, optgroup, select, textarea { font-family: var(--font-sans); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-sans); line-height: 1.2; text-wrap: balance; letter-spacing: 0; }
p { line-height: 1.65; }
a { color: var(--primary); }
a:hover { color: var(--primary-700); }
.text-muted { color: var(--muted) !important; }
.lead.text-muted { color: var(--muted-strong) !important; }
.explanatory-copy {
    color: var(--muted);
    font-size: 1rem;
    font-weight: 450;
    line-height: 1.65;
}
code { color: #a61e4d; }
.text-warning { color: #854d0e !important; }
.text-bg-warning { color: #111827 !important; background-color: #facc15 !important; }
.btn {
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: 0;
}
.form-control,
.form-select {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.5;
}
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6,
.score-gauge .sg-num, .price, .stat-number {
    font-family: var(--font-sans);
    font-variant-numeric: tabular-nums;
}

/* Bootstrap's compiled .btn-primary sets its own CSS variables. Rebind them here so
   every primary CTA uses the site token instead of Bootstrap's default blue. */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--primary-700);
    --bs-btn-hover-border-color: var(--primary-700);
    --bs-btn-focus-shadow-rgb: var(--primary-rgb);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--primary-700);
    --bs-btn-active-border-color: var(--primary-700);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--primary);
    --bs-btn-disabled-border-color: var(--primary);
}
.btn-outline-primary {
    --bs-btn-color: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--primary);
    --bs-btn-hover-border-color: var(--primary);
    --bs-btn-focus-shadow-rgb: var(--primary-rgb);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--primary);
    --bs-btn-active-border-color: var(--primary);
    --bs-btn-disabled-color: var(--primary);
    --bs-btn-disabled-border-color: var(--primary);
}

/* Anchor targets (#scan, #report, …) must clear the fixed navbar when jumped to. */
:target, [id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

/* Accessible focus ring for keyboard users (Bootstrap removes outlines). */
a:focus-visible, button:focus-visible, .btn:focus-visible,
.form-control:focus-visible, .form-select:focus-visible {
    outline: 3px solid rgba(37,99,235,.45);
    outline-offset: 2px;
}

/* Legal / disclosure microcopy must stay legible (FTC "clear & conspicuous"). */
.text-fineprint { font-size: .8rem; color: var(--muted-strong); }

/* Free scan task-map teaser: show that more real task detail exists without
   making locked content look like readable body copy. */
.locked-task-preview {
    margin-top: .7rem;
    padding-top: .65rem;
    border-top: 1px dashed var(--line);
    font-size: .875rem;
}
.locked-task-preview li { margin-bottom: .28rem; }
.locked-task-preview-text {
    display: inline-block;
    max-width: 100%;
    color: var(--ink);
    opacity: .76;
    filter: blur(3.5px);
    user-select: none;
    pointer-events: none;
}
.locked-task-preview-note {
    margin-top: .45rem;
    color: var(--muted-strong);
    font-size: .84rem;
    font-weight: 650;
    line-height: 1.35;
}

/* --- Mobile-first input hardening ---------------------------------------- */
/* iOS Safari auto-zooms when a focused field renders < 16px. Force >= 16px on
   phones for ALL controls, including Bootstrap's -sm variants. Desktop keeps
   Bootstrap's sizing. */
@media (max-width: 575.98px) {
    .form-control, .form-select, .form-control-sm, .form-select-sm,
    input, select, textarea { font-size: 16px !important; }
}

/* --- Touch targets (Apple HIG / WCAG 2.5.5: >= 44px) --------------------- */
/* On touch-class widths, every button/CTA gets a 44px minimum hit area without
   changing its label size. Applies on phones + small tablets. */
@media (max-width: 991.98px) {
    .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .btn-sm { min-height: 44px; padding-top: .35rem; padding-bottom: .35rem; }
    /* Icon-only buttons (incl. the nav hamburger) need a full 44px hit area. */
    .btn-icon, .navbar-toggler { min-width: 44px; min-height: 44px; }
    /* Standalone text links used as nav/footer actions get vertical breathing room. */
    .nav-link, footer a, .tap { display: inline-block; min-height: 24px; padding-block: 6px; }
}

/* --- Navbar (shared chrome) ---------------------------------------------- */
.navbar { background: #fff !important; box-shadow: var(--shadow-sm); min-height: var(--nav-h); }
.navbar-brand { font-family: var(--font-sans); font-weight: 800; color: var(--ink) !important; letter-spacing: 0; }
.navbar .nav-link { color: var(--ink); font-weight: 500; }
.navbar .nav-link:hover { color: var(--primary); }
.navbar .nav-link.active {
    color: var(--primary);
    font-weight: 650;
    box-shadow: inset 0 -2px 0 var(--primary);
}
.navbar .nav-link:focus-visible,
.navbar .nav-cta:focus-visible {
    outline: 3px solid rgba(var(--primary-rgb), .28);
    outline-offset: 2px;
}
.navbar .nav-cta { white-space: nowrap; }
@media (max-width: 991.98px) {
    /* Keep the expanded menu in document flow so it pushes content instead of covering it. */
    .navbar.fixed-top { position: sticky; top: 0; }
    .navbar.fixed-top + main { padding-top: 0; }
    .navbar .navbar-collapse { background: #fff; padding-bottom: .5rem; }
    .navbar .nav-link.active { box-shadow: inset 3px 0 0 var(--primary); }
    .navbar .nav-cta { width: 100%; margin-bottom: .35rem; }
}
main { padding-top: var(--nav-h); min-height: 60vh; }

/* --- Footer (shared chrome) ---------------------------------------------- */
footer.site-footer { background: var(--ink); color: #cbd5e1; padding: 2.75rem 0; margin-top: 4rem; }
footer.site-footer a { color: #c2ccd9; text-decoration: none; }  /* lifted from #94a3b8 for AA */
footer.site-footer a:hover { color: #fff; }
footer.site-footer .text-muted { color: #cbd5e1 !important; }
footer.site-footer .footer-heading {
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    margin-bottom: .55rem;
    text-transform: uppercase;
}
footer.site-footer .footer-links {
    display: grid;
    gap: .25rem;
}
footer.site-footer .footer-links a { padding-block: .12rem; }

/* --- Career map (current role to evidence-backed adjacent roles) ----------- */
/* Row on desktop, stacks vertically on phones so it never forces overflow
   (the old inline min-width:160/240px pushed past narrow viewports in Firefox). */
.career-map { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin: 1rem 0; }
.career-map .cm-node { border-radius: 10px; padding: 10px 14px; min-width: 160px; max-width: 100%; }
.career-map .cm-label { font-size: .7rem; color: var(--muted); letter-spacing: 0; }
.career-map .cm-arrow { font-size: 1.6rem; color: var(--muted-strong); line-height: 1; }
.career-map .cm-col { display: flex; flex-direction: column; gap: 8px; flex: 1 1 240px; min-width: 0; }
.career-map .cm-pivot { text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; display: flex; justify-content: space-between; gap: 10px; align-items: center; min-width: 0; }
.career-map .cm-overlap { color: var(--muted); font-size: .78rem; }
@media (max-width: 575.98px) {
    .career-map { flex-direction: column; align-items: stretch; }
    .career-map .cm-arrow { transform: rotate(90deg); }
    .career-map .cm-node, .career-map .cm-col { width: 100%; }
}

/* --- Chip: a wrapping pill link for related roles / skills (replaces tiny,
   non-wrapping badge links that overflowed on long titles + were poor tap targets) -- */
.chip {
    display: inline-block;
    max-width: 100%;
    white-space: normal;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    border-radius: 999px;
    padding: .4rem .85rem;
    font-size: .875rem;
    line-height: 1.35;
    text-decoration: none;
}

/* Billing cancellation is a deliberate two-step disclosure, not a hidden text link. */
.billing-cancel-details { min-width: min(100%, 250px); }
.billing-cancel-details > summary {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: #b91c1c;
    font-weight: 650;
    cursor: pointer;
}
.billing-cancel-details[open] { flex-basis: 100%; }
.billing-cancel-details[open] > summary { margin-bottom: .15rem; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
@media (max-width: 991.98px) { .chip { min-height: 44px; display: inline-flex; align-items: center; } }

/* --- Help center --------------------------------------------------------- */
.help-shell { max-width: 960px; }
.help-hero { padding: 3.25rem 0 2rem; background: #fff; border-bottom: 1px solid var(--line); }
.help-breadcrumb { display: flex; gap: .5rem; align-items: center; margin-bottom: 1.4rem; color: var(--muted); font-size: .95rem; }
.help-breadcrumb a { font-weight: 650; text-decoration: none; }
.help-eyebrow { margin: 0 0 .45rem; color: var(--primary-700); font-weight: 750; }
.help-hero h1 { max-width: 760px; margin: 0; font-size: clamp(2rem, 4vw, 3rem); }
.help-dek { max-width: 760px; margin: 1rem 0 0; color: var(--muted-strong); font-size: 1.125rem; }
.help-support-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 1.6rem;
    padding: 1rem 1.15rem;
    border: 1px solid #bfdbfe;
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    background: #eff6ff;
}
.help-support-callout h2 { margin: 0 0 .25rem; font-size: 1.08rem; }
.help-support-callout p { margin: 0; color: var(--muted-strong); }
.help-support-callout .btn { flex: 0 0 auto; }
.help-index { position: sticky; top: var(--nav-h); z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.help-index .help-shell { display: flex; gap: 1.25rem; overflow-x: auto; padding-block: .75rem; scrollbar-width: thin; }
.help-index a { flex: 0 0 auto; color: var(--muted-strong); font-weight: 650; text-decoration: none; white-space: nowrap; }
.help-index a:hover { color: var(--primary); }
.help-section { padding: 3rem 0 0; }
.help-section-head { display: grid; grid-template-columns: minmax(220px, .65fr) minmax(0, 1fr); gap: 2rem; padding-bottom: 1rem; }
.help-section-head h2 { margin: 0; font-size: 1.55rem; }
.help-section-head p { margin: 0; color: var(--muted-strong); }
.help-disclosures { border-top: 1px solid var(--line); }
.help-disclosures details { border-bottom: 1px solid var(--line); }
.help-disclosures summary { position: relative; padding: 1.15rem 2.5rem 1.15rem 0; color: var(--ink); font-size: 1.05rem; font-weight: 700; cursor: pointer; list-style: none; }
.help-disclosures summary::-webkit-details-marker { display: none; }
.help-disclosures summary::after { content: "+"; position: absolute; right: .2rem; top: 1rem; color: var(--primary); font-size: 1.35rem; font-weight: 500; }
.help-disclosures details[open] summary::after { content: "−"; }
.help-answer-wrap { max-width: 790px; padding: 0 2.5rem 1.2rem 0; }
.help-answer { margin: 0; color: var(--muted-strong); font-size: 1rem; }
.help-answer-links { display: flex; flex-wrap: wrap; gap: .55rem 1.25rem; margin: .7rem 0 0; }
.help-answer-links a { font-weight: 650; }
.help-next { margin-top: 3.5rem; padding: 2rem 0; background: var(--surface); border-block: 1px solid var(--line); }
.help-next-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.help-next h2 { margin: 0 0 .35rem; font-size: 1.45rem; }
.help-next p { max-width: 650px; margin: 0; color: var(--muted-strong); }
.help-next-actions { display: flex; flex: 0 0 auto; gap: .65rem; }
@media (max-width: 767.98px) {
    .help-hero { padding: 2rem 0 1.25rem; }
    .help-breadcrumb { margin-bottom: .8rem; }
    .help-dek { font-size: 1rem; }
    .help-support-callout, .help-next-inner { align-items: stretch; flex-direction: column; gap: .8rem; }
    .help-support-callout .btn { width: 100%; }
    .help-index { top: 0; }
    .help-section { padding-top: 2.25rem; }
    .help-section-head { grid-template-columns: 1fr; gap: .5rem; }
    .help-next-actions { display: grid; width: 100%; }
}

/* --- Rendered AI/markdown output ----------------------------------------- */
.md-output > :first-child { margin-top: 0; }
.md-output ul, .md-output ol { padding-left: 1.25rem; }
.md-output p:last-child { margin-bottom: 0; }
.md-output code { background: var(--surface); padding: .1rem .3rem; border-radius: 4px; }

/* --- Shared components ---------------------------------------------------- */
.card { border-radius: var(--radius); border-color: var(--line); }
.card.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.surface-card,
.stat-card,
.evidence-card,
.cta-panel,
.report-preview-card,
.dashboard-module {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.surface-card { overflow: hidden; }
.stat-card {
    height: 100%;
    box-shadow: none;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.stat-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 18px rgba(2,6,23,.06);
    transform: translateY(-1px);
}
.stat-card.is-featured {
    border-color: rgba(var(--primary-rgb), .45);
    box-shadow: 0 0 0 1px rgba(var(--primary-rgb), .14);
}
.stat-card.is-locked {
    background: #f8fafc;
    border-style: dashed;
}
.stat-card.is-locked:hover {
    border-color: rgba(var(--primary-rgb), .5);
}
.role-snapshot {
    padding: 1rem;
}
.role-snapshot-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .75rem;
}
.role-snapshot-kicker,
.role-snapshot-label {
    color: var(--muted-strong);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}
.role-snapshot-grid {
    display: grid;
    gap: .85rem;
}
.role-snapshot-item {
    min-width: 0;
}
.role-snapshot-value {
    color: var(--ink);
    font-weight: 500;
    line-height: 1.5;
}
.role-snapshot-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .2rem;
}
.role-snapshot-chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: .875rem;
    font-weight: 550;
    line-height: 1.3;
    padding: .32rem .65rem;
}
.role-snapshot-source-badge {
    background: #fff;
    color: var(--muted-strong);
}
@media (min-width: 768px) {
    .role-snapshot { padding: 1.15rem 1.25rem; }
    .role-snapshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .role-snapshot-head { display: block; }
    .role-snapshot-head .badge { margin-top: .45rem; white-space: normal; text-align: left; }
}
.cta-panel {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    box-shadow: var(--shadow-md);
}
.report-preview-card {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.product-kicker {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border: 1px solid var(--accent-insight-border);
    border-radius: 999px;
    background: var(--accent-insight-bg);
    color: var(--accent-insight-text);
    padding: .22rem .62rem;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}
.text-insight { color: var(--accent-insight) !important; }
.dashboard-module { padding: 1rem; }
.tool-shortcut-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: .5rem;
}
.tool-shortcut {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: .5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    padding: .62rem .75rem;
    font-weight: 700;
    text-decoration: none;
}
.tool-shortcut i { color: var(--primary); }
.tool-shortcut small {
    margin-left: auto;
    color: var(--primary);
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
}
.tool-shortcut.is-locked {
    background: #f8fafc;
    border-style: dashed;
}
.tool-shortcut:hover {
    border-color: var(--primary);
    color: var(--ink);
}
.dashboard-module-dark {
    background: #0f172a;
    color: #e2e8f0;
}
.dashboard-tabs {
    flex-wrap: nowrap;
    gap: .35rem;
    overflow-x: auto;
    padding-bottom: .25rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-width: 100%;
}
.dashboard-tabs::-webkit-scrollbar { display: none; }
.dashboard-tabs .nav-link { white-space: nowrap; }
@media (min-width: 768px) {
    .dashboard-tabs {
        flex-wrap: wrap;
        overflow-x: visible;
        padding-bottom: 0;
    }
}
.account-email {
    max-width: 100%;
    overflow-wrap: anywhere;
    text-align: right;
}
@media (max-width: 575.98px) {
    .account-email {
        flex-basis: 100%;
        text-align: left;
    }
}
.dashboard-lifecycle {
    display: grid;
    gap: .5rem;
    grid-template-columns: repeat(5, minmax(112px, 1fr));
    overflow-x: auto;
    padding-bottom: .15rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.dashboard-lifecycle::-webkit-scrollbar { display: none; }
.lifecycle-step {
    display: grid;
    gap: .15rem;
    min-height: 92px;
    align-content: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    padding: .75rem;
    text-align: center;
    text-decoration: none;
}
.lifecycle-step i { color: var(--muted-strong); font-size: 1.25rem; }
.lifecycle-step small { color: var(--muted); }
.lifecycle-step.is-done {
    border-color: rgba(16,185,129,.35);
    background: #ecfdf5;
}
.lifecycle-step.is-done i { color: var(--accent-resilience); }
@media (max-width: 767.98px) { .dashboard-lifecycle { grid-template-columns: repeat(5, 128px); } }
.empty-state-actions {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.empty-state-action {
    display: grid;
    gap: .25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    padding: .9rem;
    text-decoration: none;
}
.empty-state-action span {
    color: var(--muted);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.45;
}
.empty-state-action:hover { border-color: var(--primary); color: var(--ink); }
.pricing-features {
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.55;
}
.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: .4rem;
    font-weight: 500;
}
.pricing-features li i {
    flex: 0 0 auto;
    margin-top: .2rem;
}
.pricing-comparison .table {
    color: var(--ink);
    font-size: 1rem;
}
.pricing-comparison .table th,
.pricing-comparison .table td {
    padding: .85rem .8rem;
    line-height: 1.45;
    vertical-align: middle;
}
.pricing-comparison .table thead th,
.pricing-comparison .table tbody th {
    color: var(--ink);
    font-weight: 700;
}
.pricing-comparison .table tbody td {
    color: #1e293b;
    font-weight: 500;
}
.source-trust-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .35rem .85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--muted-strong);
    font-size: .86rem;
    padding: .75rem 1rem;
}
.source-trust-strip strong { color: var(--ink); }
.source-trust-strip a { font-weight: 700; text-decoration: none; }
.evidence-card-dark {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
    box-shadow: none;
}
.evidence-card-alert { border-left: 4px solid var(--accent-risk); }
.breadcrumb-line {
    color: var(--muted);
    font-size: .875rem;
    line-height: 1.4;
}
.breadcrumb-line a { font-weight: 600; text-decoration: none; }
.layoffs-hub-intro h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.layoffs-section-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 1.1rem;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.layoffs-section-nav a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    color: var(--muted-strong);
    font-size: .9rem;
    font-weight: 650;
    text-decoration: none;
}
.layoffs-section-nav a:hover { color: var(--primary); }
.layoffs-evidence {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}
.layoffs-activity-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .6rem 1.25rem;
    padding: 1rem;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius);
    background: #eff6ff;
}
.layoffs-activity-band > div:first-child > strong {
    display: block;
    color: var(--ink);
    font-size: 1.08rem;
    line-height: 1.4;
}
.evidence-source-label {
    color: var(--muted);
    font-size: .75rem;
    font-weight: 750;
    line-height: 1.35;
    text-transform: uppercase;
}
.layoffs-source-date {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 600;
    text-align: right;
}
.layoffs-activity-links {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .85rem;
}
.layoffs-activity-links a {
    color: var(--ink);
    font-size: .86rem;
    font-weight: 650;
    text-decoration: none;
}
.layoffs-activity-links a:hover { color: var(--primary); text-decoration: underline; }
.layoffs-activity-band > .explanatory-copy { grid-column: 1 / -1; }
.evidence-stat-card { padding: 1rem; box-shadow: none; }
.evidence-stat-card-risk { border-left: 4px solid var(--accent-risk); }
.evidence-stat-value {
    margin: .25rem 0 .4rem;
    color: var(--ink);
    font-size: 2rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.evidence-meter {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}
.evidence-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--primary);
}
.evidence-chart {
    display: grid;
    grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}
.evidence-chart svg { display: block; justify-self: end; }
.layoffs-measure-note {
    padding: .85rem 1rem;
    border-left: 4px solid var(--primary);
    border-radius: 4px;
    background: #fff;
    color: var(--muted-strong);
    font-size: 1rem;
    line-height: 1.6;
}
.layoffs-feed-section { background: var(--surface); }
.layoffs-section-total {
    color: var(--muted-strong);
    font-size: 1rem;
    font-weight: 500;
    text-align: right;
}
.layoffs-section-total strong { color: var(--ink); }
.layoffs-event-list {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}
.layoffs-event-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: .85rem 1rem;
    border-top: 1px solid var(--line);
}
.layoffs-event-row:first-child { border-top: 0; }
.layoffs-event-main { min-width: 0; color: var(--ink); }
.layoffs-event-main > strong { margin-right: .35rem; }
.layoffs-event-main time {
    display: inline-block;
    margin-left: .4rem;
    color: var(--muted);
    font-size: .84rem;
    font-weight: 500;
}
.source-link {
    flex: 0 0 auto;
    color: var(--primary);
    font-size: .85rem;
    font-weight: 650;
    text-decoration: none;
}
.source-link:hover { text-decoration: underline; }
.layoffs-method { border-top: 1px solid var(--line); }
@media (max-width: 767.98px) {
    .layoffs-activity-band,
    .evidence-chart { grid-template-columns: 1fr; }
    .layoffs-source-date { text-align: left; }
    .evidence-chart { gap: .75rem; }
    .evidence-chart svg { justify-self: stretch; }
    .layoffs-event-row { flex-direction: column; gap: .35rem; }
    .layoffs-event-main time { display: block; margin-left: 0; margin-top: .15rem; }
    .layoffs-section-total { flex-basis: 100%; text-align: left; }
}
.badge { font-weight: 600; }
.disclaimer {
    background: #f1f5f9;
    border-left: 4px solid var(--primary);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    color: #334155;
    font-size: .92rem;
}

/* Score-gauge — the brand motif (includes/gauge.php). UX pass 2026-07-03: the number row is
   BASELINE-aligned typography (the old vertical-centring floated the band pill mid-cap-height and
   mashed a bold "/100" straight into the score — "72/100High exposure"). Hierarchy: uppercase kicker →
   role → score line → gradient band with the triangle pointer (same motif as the share card) → sub. */
.score-gauge{background:#fff;border:1px solid var(--line,#e2e8f0);border-radius:16px;padding:20px 22px 18px;box-shadow:0 8px 30px rgba(2,6,23,.06);max-width:400px}
.score-gauge .sg-eyebrow{font-size:.6875rem;font-weight:700;letter-spacing:0;text-transform:uppercase;color:var(--muted,#64748b);margin-bottom:.2rem}
.score-gauge .sg-cap{font-size:.95rem;font-weight:600;line-height:1.35;color:var(--ink,#0f172a);margin-bottom:.75rem}
.score-gauge .sg-row{display:flex;align-items:baseline;column-gap:.8rem;flex-wrap:wrap}
.score-gauge .sg-num{font-size:2.75rem;font-weight:800;line-height:1;letter-spacing:0;font-variant-numeric:tabular-nums}
.score-gauge .sg-den{font-size:1rem;color:var(--muted,#64748b);font-weight:500;margin-left:.3rem;letter-spacing:0}
.score-gauge .sg-badge{color:#fff;font-size:.6875rem;font-weight:700;letter-spacing:0;text-transform:uppercase;padding:.28rem .65rem;border-radius:999px;white-space:nowrap}
.score-gauge .sg-bar{margin-top:.9rem;height:10px;border-radius:6px;background:linear-gradient(90deg,#22c55e,#84cc16,#eab308,#f97316,#ef4444);position:relative}
.score-gauge .sg-marker{position:absolute;top:-9px;width:0;height:0;border-left:7px solid transparent;border-right:7px solid transparent;border-top:9px solid var(--ink,#0f172a);filter:drop-shadow(0 1px 1px rgba(2,6,23,.3))}
.score-gauge .sg-sub{font-size:.8125rem;color:var(--muted,#64748b);margin-top:.65rem}
.score-gauge .sg-sub .sg-sep{display:none} /* the link gets its own line — no dangling mid-dot */
.score-gauge .sg-sub a{display:block;margin-top:.2rem;font-weight:600;text-decoration:none;white-space:nowrap}
.score-gauge .sg-sub a:hover,.score-gauge .sg-sub a:focus{text-decoration:underline}

/* W3 (codex): history output clamps only where scroll-in-scroll is usable (desktop); mobile flows naturally */
.history-scroll { max-height: 260px; overflow: auto; }
/* Anon tools preview (owner 2026-07-10): honest blur over a SERVER-MASKED example continuation —
   the DOM never carries complete text under the blur; selection/copy disabled to match the visual. */
.example-blur { filter: blur(3.5px); user-select: none; pointer-events: none; }
.contact-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Safety-first job-loss support page. This route intentionally loads no Bootstrap/icon CDN and no
   analytics script, so these first-party primitives are complete and independent. */
body[data-sensitive-support="true"] {
    margin: 0;
    padding-top: 0;
    background: #fff;
    color: var(--ink);
}
body[data-sensitive-support="true"] *,
body[data-sensitive-support="true"] *::before,
body[data-sensitive-support="true"] *::after { box-sizing: border-box; }
.support-container { width: min(100% - 32px, 1080px); margin-inline: auto; }
.support-site-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    min-height: 64px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.support-nav-inner { min-height: 64px; display: flex; align-items: center; gap: 16px; }
.support-brand { color: var(--ink); font-weight: 800; text-decoration: none; }
.support-nav-label { color: var(--muted-strong); font-weight: 600; }
.support-home-link { margin-left: auto; color: var(--primary-700); font-weight: 700; text-decoration: none; }
.support-home-link:hover, .support-brand:hover { text-decoration: underline; }
.support-crisis-band { background: #172033; color: #fff; padding: 28px 0 30px; }
.support-crisis-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.support-crisis-band h2 { margin: 0; font-size: 1.55rem; color: #fff; }
.support-crisis-band p { max-width: 800px; margin: 10px 0 0; color: #f1f5f9; }
.support-quick-exit {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}
.support-quick-exit:hover, .support-quick-exit:focus { background: #fff; color: #172033; }
.support-crisis-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.support-crisis-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 9px 15px;
    border: 1px solid #fff;
    border-radius: var(--radius);
    background: #fff;
    color: #172033;
    font-weight: 750;
    text-decoration: none;
}
.support-crisis-link.is-secondary { background: transparent; color: #fff; }
.support-crisis-link:hover, .support-crisis-link:focus { outline: 3px solid #fde68a; outline-offset: 2px; }
.support-exit-note { font-size: 1rem; color: #e2e8f0 !important; }
.support-hero { padding: 54px 0 42px; border-bottom: 1px solid var(--line); background: #fff; }
.support-eyebrow { margin: 0 0 8px; color: var(--primary-700); font-size: .9rem; font-weight: 750; text-transform: uppercase; }
.support-hero h1 { max-width: 820px; margin: 0; font-size: 2.6rem; color: var(--ink); }
.support-dek { max-width: 820px; margin: 16px 0 0; color: var(--muted-strong); font-size: 1.15rem; }
.support-byline { margin: 16px 0 0; color: var(--muted); font-size: 1rem; }
.support-page-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.support-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 9px 16px;
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.support-button.is-secondary { background: #fff; color: var(--primary-700); }
.support-button:hover, .support-button:focus { outline: 3px solid #bfdbfe; outline-offset: 2px; }
.support-section { padding: 48px 0; }
.support-section.is-neutral { background: var(--surface); border-block: 1px solid var(--line); }
.support-section h2 { margin: 0 0 12px; font-size: 1.8rem; color: var(--ink); }
.support-section-intro { max-width: 800px; margin: 0 0 24px; color: var(--muted-strong); }
.support-essentials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-block: 1px solid var(--line); }
.support-essential { padding: 22px; border-right: 1px solid var(--line); }
.support-essential:last-child { border-right: 0; }
.support-essential h3 { margin: 0 0 8px; font-size: 1.05rem; }
.support-essential p { margin: 0; color: var(--muted); }
.support-checklist { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.support-check-item { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.support-check-item input { width: 20px; height: 20px; margin: 4px 0 0; accent-color: var(--primary); }
.support-check-item label { cursor: pointer; }
.support-check-item strong { display: block; color: var(--ink); font-size: 1.04rem; }
.support-check-item span { display: block; margin-top: 4px; color: var(--muted-strong); }
.support-check-item a { display: inline-block; margin-top: 7px; font-weight: 700; }
.support-two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
.support-practical-list { margin: 20px 0 0; padding-left: 22px; }
.support-practical-list li { margin-bottom: 12px; color: var(--muted-strong); }
.support-truth-band { border-left: 4px solid var(--primary); padding: 4px 0 4px 20px; }
.support-truth-band strong { color: var(--ink); }
.support-resource-group + .support-resource-group { margin-top: 30px; }
.support-resource-group h3 { margin: 0 0 12px; font-size: 1.15rem; }
.support-resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.support-resource {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}
.support-resource-meta { margin: 0 0 7px; color: var(--muted); font-size: .88rem; font-weight: 700; }
.support-resource h4 { margin: 0; font-size: 1.02rem; }
.support-resource p { margin: 8px 0 0; color: var(--muted-strong); }
.support-resource a { display: inline-block; margin-top: 10px; font-weight: 700; overflow-wrap: anywhere; }
.support-faq { border-top: 1px solid var(--line); }
.support-faq details { padding: 17px 0; border-bottom: 1px solid var(--line); }
.support-faq summary { color: var(--ink); font-weight: 750; cursor: pointer; }
.support-faq p { margin: 10px 0 0; color: var(--muted-strong); }
.support-ready { padding: 36px 0; background: #eff6ff; border-block: 1px solid #bfdbfe; }
.support-ready-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.support-ready h2 { margin: 0 0 7px; font-size: 1.55rem; }
.support-ready p { max-width: 720px; margin: 0; color: var(--muted-strong); }
.support-ready .support-button { flex: 0 0 auto; }
.support-site-footer { padding: 28px 0; background: #172033; color: #e2e8f0; }
.support-footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 22px; }
.support-footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.support-site-footer a { color: #fff; font-weight: 700; }
.support-review-note { color: var(--muted); font-size: 1rem; }
@media (max-width: 760px) {
    .support-container { width: min(100% - 24px, 1080px); }
    .support-nav-label { display: none; }
    .support-crisis-top, .support-ready-inner, .support-footer-inner { align-items: flex-start; flex-direction: column; }
    .support-quick-exit { order: -1; align-self: flex-end; }
    .support-crisis-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .support-hero { padding: 40px 0 34px; }
    .support-hero h1 { font-size: 2.05rem; }
    .support-essentials, .support-two-column, .support-resource-grid { grid-template-columns: 1fr; }
    .support-essential { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .support-essential:last-child { border-bottom: 0; }
    .support-section { padding: 38px 0; }
    .support-ready .support-button { width: 100%; }
}
@media (max-width: 410px) {
    .support-crisis-actions { grid-template-columns: 1fr; }
    .support-crisis-link { width: 100%; }
}
@media print {
    body[data-sensitive-support="true"] { padding-top: 0; color: #000; }
    body[data-sensitive-support="true"] main { padding-top: 0; }
    .support-site-nav, .support-site-footer, .support-page-controls, .support-quick-exit,
    .support-exit-note, .support-ready { display: none !important; }
    .support-crisis-band { background: #fff !important; color: #000 !important; border: 2px solid #000; padding: 16px 0; }
    .support-crisis-band h2, .support-crisis-band p { color: #000 !important; }
    .support-crisis-link, .support-crisis-link.is-secondary { border-color: #000; color: #000; background: #fff; }
    .support-section, .support-hero { padding: 22px 0; }
    .support-resource, .support-check-item, .support-faq details { break-inside: avoid; }
}
@media (max-width: 575.98px) { .history-scroll { max-height: none; overflow: visible; } }
