html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    overflow-x: clip;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: #F8FAFC;
    color: #0F172A;
    min-height: 100vh;
    margin: 0;
    overflow-x: clip;
}

html,
body {
    min-width: 0;
    max-width: 100%;
}

[id] {
    scroll-margin-top: 88px;
}

.prose-doc {
    color: #334155;
    line-height: 1.75;
    font-size: 15px;
}

.prose-doc p {
    margin: 0 0 1rem;
}

.prose-doc strong {
    color: #0F172A;
    font-weight: 600;
}

.prose-doc a {
    color: #ED1B24;
    text-decoration: none;
    border-bottom: 1px solid rgba(237, 27, 36, 0.25);
    transition: border-color .15s ease;
}

.prose-doc a:hover {
    border-color: #ED1B24;
}

/* Accordion styles */
.faq-accordion {
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-accordion:hover {
    border-color: #CBD5E1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.faq-accordion.open {
    border-color: #ED1B24;
    box-shadow: 0 4px 16px rgba(237, 27, 36, 0.08);
}

.faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: #FFFFFF;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: #0F172A;
    transition: background 0.15s ease;
}

.faq-trigger:hover {
    background: #F8FAFC;
}

.faq-trigger .chevron {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #94A3B8;
    transition: transform 0.25s ease, color 0.2s ease;
}

.faq-accordion.open .faq-trigger .chevron {
    transform: rotate(180deg);
    color: #ED1B24;
}

.faq-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #FFFFFF;
}

.faq-accordion.open .faq-panel {
    max-height: 500px;
    padding: 0 1.25rem 1.25rem;
}

.faq-panel-inner {
    padding-top: 0.5rem;
    border-top: 1px solid #F1F5F9;
    color: #475569;
    font-size: 14.5px;
    line-height: 1.7;
}

.faq-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.75rem;
    font-size: 11.5px;
    color: #94A3B8;
}

.faq-category {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #F1F5F9;
    color: #475569;
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

/* Pagination */
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    border-radius: 10px;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.page-btn:hover:not(:disabled) {
    border-color: #ED1B24;
    color: #ED1B24;
}

.page-btn.active {
    background: #ED1B24;
    border-color: #ED1B24;
    color: #FFFFFF;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Search input */
.search-input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    font-size: 14.5px;
    font-family: inherit;
    color: #0F172A;
    background: #FFFFFF;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
}

.search-input:focus {
    border-color: #ED1B24;
    box-shadow: 0 0 0 3px rgba(237, 27, 36, 0.1);
}

.search-input::placeholder {
    color: #94A3B8;
}

/* Ask question form */
.ask-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    font-size: 14.5px;
    font-family: inherit;
    color: #0F172A;
    background: #FFFFFF;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
}

.ask-input:focus {
    border-color: #ED1B24;
    box-shadow: 0 0 0 3px rgba(237, 27, 36, 0.1);
}

.ask-input::placeholder {
    color: #94A3B8;
}

.btn-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: 14px;
    background: #ED1B24;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
    white-space: nowrap;
}

.btn-brand:hover {
    background: #C4161E;
}

.btn-brand:active {
    transform: scale(0.98);
}

.btn-brand:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@media print {

    header,
    footer,
    aside,
    .no-print {
        display: none !important;
    }

    body {
        background: white;
    }

    .prose-doc {
        font-size: 12pt;
    }

    a {
        border: none;
        color: #0F172A;
    }
}