:root {
    --color-primary: #0F172A;
    --color-primary-hover: #1E293B;
    --color-secondary: #2563EB;
    --color-secondary-hover: #1D4ED8;
    --color-accent: #0D9488;
    --color-accent-hover: #0F766E;
    --color-status-warning: #D97706;
    --color-status-danger: #DC2626;
    --color-status-success: #16A34A;
    --bg-page: #F8FAFC;
    --bg-surface: #FFFFFF;
    --bg-surface-subtle: #F1F5F9;
    --bg-surface-muted: #E2E8F0;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --border-subtle: #E2E8F0;
    --border-default: #CBD5E1;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--text-primary);
}

.font-heading {
    font-family: var(--font-heading);
}

.font-mono {
    font-family: var(--font-mono);
}

.text-muted {
    color: #64748B !important;
}

.transition-standard {
    transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== header ===== */
.site-header-block {
    font-family: 'Inter', sans-serif;
}

.site-header-block a {
    text-decoration: none;
}

.site-header-block img {
    max-width: 48px;
    max-height: 48px;
}

/* ===== hero ===== */
.retention-hero {
    hyphens: auto;
}

.retention-hero .js-sheet-row {
    outline: none;
}

.retention-hero .js-sheet-row:focus-visible {
    outline: 2px solid #2563EB;
    outline-offset: 2px;
}

/* ===== materials_and_scenarios ===== */
#materials-and-scenarios .js-scenario-card {
    min-height: 100%;
}

#materials-and-scenarios .js-filter-btn.active {
    background-color: #0F172A;
    color: #FFFFFF;
    border-color: #0F172A;
}

/* ===== featured_workbook ===== */
.featured-workbook-section .diagnostic-item.is-selected {
    border-color: #93C5FD;
    background-color: #EFF6FF;
}

.featured-workbook-section .diagnostic-item input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* ===== treesize_integration ===== */
.treesize-workflow-section .treesize-step-card {
    min-height: 100%;
}

.treesize-workflow-section a:focus-visible {
    outline: 2px solid #2563EB;
    outline-offset: 2px;
}

/* ===== faq ===== */
.retention-faq-section .retention-faq-item {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.retention-faq-section .retention-faq-item:hover {
    border-color: #CBD5E1;
}

.retention-faq-section .js-faq-trigger:focus-visible {
    outline: 2px solid #2563EB;
    outline-offset: -2px;
}

/* ===== footer ===== */
.retention-footer {
    font-family: 'Inter', sans-serif;
}

.retention-footer h2,
.retention-footer h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.retention-footer .retention-footer-input::placeholder {
    color: #94A3B8;
    opacity: 1;
}

.retention-footer .retention-footer-disclaimer {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2);
}

.site-header-block {
    font-family: 'Inter', sans-serif;
}

.site-header-block a {
    text-decoration: none;
}

.site-header-block img {
    max-width: 48px;
    max-height: 48px;
}

.retention-footer {
    font-family: 'Inter', sans-serif;
}

.retention-footer h2,
.retention-footer h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.retention-footer .retention-footer-input::placeholder {
    color: #94A3B8;
    opacity: 1;
}

.retention-footer .retention-footer-disclaimer {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2);
}

.kb-catalog-section h1,
.kb-catalog-section h2,
.kb-catalog-section h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.kb-catalog-section input::placeholder {
    color: #94A3B8;
    opacity: 1;
}


/* ===== PAGE: brand-support-treesize ===== */
.treesize-updates-section .js-filter-btn.active{background-color:#0F172A;color:#FFFFFF;}.treesize-updates-section .js-update-card{transition:all 180ms cubic-bezier(0.16,1,0.3,1);}

/* ===== PAGE: privacy ===== */
.privacy-page-wrapper a { text-decoration-skip-ink: auto; } .privacy-page-wrapper .js-nav-link.active { color: #2563EB; background-color: #EFF6FF; font-weight: 600; }

/* ===== PAGE: terms ===== */
.terms-main-wrapper .js-toc-link.is-active{background-color:#EFF6FF;color:#2563EB;font-weight:600;border-left:3px solid #2563EB;padding-left:0.625rem;}.terms-main-wrapper .terms-section{scroll-margin-top:2rem;}

/* ===== PAGE: disclaimer ===== */
.disclaimer-section { font-family: 'Inter', sans-serif; }
.disclaimer-section h1, .disclaimer-section h2, .disclaimer-section h3 { font-family: 'Plus Jakarta Sans', sans-serif; }
.disclaimer-section .js-toc-link.active-toc-item { background-color: #EFF6FF; color: #2563EB; font-weight: 600; border-left: 2px solid #2563EB; }

.gov-comment {
    position: relative;
    background-color: #FFFFFF;
}

.gov-comment-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    object-fit: cover;
}

.gov-comment-body {
    color: #334155;
}

.gov-comment-body code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
}

.gov-action-btn {
    transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.gov-reply-comment {
    position: relative;
    background-color: #F8FAFC;
}

.gov-reply-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    object-fit: cover;
}

.gov-reply-body {
    color: #334155;
}

.gov-reply-action-btn {
    transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Comments responsive ===== */
.gov-comment,
.gov-reply-comment {
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: break-word;
}

.gov-comment .gov-comment-body,
.gov-reply-comment .gov-reply-body {
    overflow-wrap: break-word;
    word-break: break-word;
}

.gov-comment-body code,
.gov-reply-body code {
    white-space: normal;
    word-break: break-all;
    overflow-wrap: break-word;
    max-width: 100%;
    display: inline-block;
    line-height: 1.4;
}

.gov-comment-body p,
.gov-reply-body p {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Mobile: stack header items vertically, prevent overflow */
@media (max-width: 640px) {
    .gov-comment {
        padding: 1rem;
    }
    .gov-reply-comment {
        padding: 0.875rem;
        margin-left: 0.5rem !important;
    }
    .gov-comment > .flex.items-start.justify-between,
    .gov-reply-comment > .flex.items-start.justify-between {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.625rem;
    }
    .gov-comment .flex.items-center.gap-3,
    .gov-reply-comment .flex.items-center.gap-2\.5 {
        width: 100%;
        min-width: 0;
    }
    .gov-comment .flex.flex-col,
    .gov-reply-comment .flex.flex-col {
        min-width: 0;
        flex: 1 1 auto;
    }
    .gov-comment .flex.items-center.gap-2.flex-wrap {
        flex-wrap: wrap;
        gap: 0.375rem;
    }
    .gov-comment-body code,
    .gov-reply-body code {
        font-size: 0.6875rem;
    }
    .gov-comment .text-xs.text-slate-500.font-mono,
    .gov-reply-comment .text-\[11px\].text-slate-500.font-mono {
        font-size: 0.625rem;
        line-height: 1.3;
        word-break: break-word;
    }
    .gov-comment .flex.items-center.justify-between,
    .gov-reply-comment .flex.items-center.justify-between {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .gov-comment .flex.items-center.gap-2,
    .gov-reply-comment .flex.items-center.gap-2 {
        flex-wrap: wrap;
    }
}


/* ===== PAGE TEMPLATE: workbooks ===== */
.site-header-block {
    font-family: 'Inter', sans-serif;
}

.site-header-block a {
    text-decoration: none;
}

.site-header-block img {
    max-width: 48px;
    max-height: 48px;
}

.retention-footer {
    font-family: 'Inter', sans-serif;
}

.retention-footer h2,
.retention-footer h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.retention-footer .retention-footer-input::placeholder {
    color: #94A3B8;
    opacity: 1;
}

.retention-footer .retention-footer-disclaimer {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2);
}

.retention-detail-main {
    font-family: 'Inter', sans-serif;
}

.retention-detail-main .font-headings {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.retention-detail-main .font-body {
    font-family: 'Inter', sans-serif;
}

.retention-detail-main input::placeholder,
.retention-detail-main textarea::placeholder {
    color: #94A3B8;
    opacity: 1;
}

.gov-comment-avatar {
    width: 42px;
    height: 42px;
    object-fit: cover;
}

.gov-reply-avatar {
    width: 36px;
    height: 36px;
    object-fit: cover;
}

/* ===== PAGE TEMPLATE: practical-cases ===== */
.site-header-block {
    font-family: 'Inter', sans-serif;
}

.site-header-block a {
    text-decoration: none;
}

.site-header-block img {
    max-width: 48px;
    max-height: 48px;
}

.retention-footer {
    font-family: 'Inter', sans-serif;
}

.retention-footer h2,
.retention-footer h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.retention-footer .retention-footer-input::placeholder {
    color: #94A3B8;
    opacity: 1;
}

.retention-footer .retention-footer-disclaimer {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2);
}

.retention-detail-main {
    font-family: 'Inter', sans-serif;
}

.retention-detail-main .font-headings {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.retention-detail-main .font-body {
    font-family: 'Inter', sans-serif;
}

.retention-detail-main input::placeholder,
.retention-detail-main textarea::placeholder {
    color: #94A3B8;
    opacity: 1;
}

.gov-comment-avatar {
    width: 42px;
    height: 42px;
    object-fit: cover;
}

.gov-reply-avatar {
    width: 36px;
    height: 36px;
    object-fit: cover;
}

/* ===== PAGE TEMPLATE: knowledge-base ===== */
.site-header-block {
    font-family: 'Inter', sans-serif;
}

.site-header-block a {
    text-decoration: none;
}

.site-header-block img {
    max-width: 48px;
    max-height: 48px;
}

.retention-footer {
    font-family: 'Inter', sans-serif;
}

.retention-footer h2,
.retention-footer h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.retention-footer .retention-footer-input::placeholder {
    color: #94A3B8;
    opacity: 1;
}

.retention-footer .retention-footer-disclaimer {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2);
}

.retention-detail-main {
    font-family: 'Inter', sans-serif;
}

.retention-detail-main .font-headings {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.retention-detail-main .font-body {
    font-family: 'Inter', sans-serif;
}

.retention-detail-main input::placeholder,
.retention-detail-main textarea::placeholder {
    color: #94A3B8;
    opacity: 1;
}

.gov-comment-avatar {
    width: 42px;
    height: 42px;
    object-fit: cover;
}

.gov-reply-avatar {
    width: 36px;
    height: 36px;
    object-fit: cover;
}