.site-header,
.site-footer,
.site-header *,
.site-footer * {
    box-sizing: border-box;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: #111;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid #e2e2e2;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .06);
    backdrop-filter: blur(14px);
}

.site-header .shell,
.site-footer .shell {
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header .header-inner {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.site-header .brand,
.site-footer .footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.site-header .brand {
    min-width: max-content;
    color: #111;
    text-decoration: none;
}

.site-header .brand-mark,
.site-footer .brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    color: #fff;
    background: #0a0a0a;
    border-radius: 10px;
    box-shadow: none;
}

.site-header .brand-mark::after,
.site-footer .brand-mark::after { content: none; }
.site-header .brand-mark svg,
.site-footer .brand-mark svg { width: 22px; height: 22px; }
.site-footer .brand-mark { color: #0a0a0a; background: #fff; }
.site-footer .brand-mark.small { width: 34px; height: 34px; border-radius: 9px; }

.site-header .brand-copy {
    display: grid;
    line-height: 1.25;
}
.site-header .brand-copy strong { color: #111; font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.site-header .brand-copy small {
    color: #71717a;
    font-family: "Segoe UI", sans-serif;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.site-header .main-nav {
    align-items: center;
    gap: 6px;
    display: flex;
}
.site-header .main-nav a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    color: #52525b;
    background: transparent;
    border-radius: 9px;
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    transition: color .18s ease, background .18s ease;
}
.site-header .main-nav a:hover,
.site-header .main-nav a.active { color: #000; background: #f0f0f0; }
.site-header .main-nav a svg { width: 16px; height: 16px; stroke-linecap: round; stroke-linejoin: round; }
.site-header .admin-nav-link { border: 1px solid #dedede; }

.site-header .shared-header-search { flex: 1; max-width: 430px; position: relative; }
.site-header .shared-header-search .search-input {
    width: 100%;
    min-height: 38px;
    padding: 7px 13px 7px 42px;
    color: #111;
    background: #f7f7f7;
    border: 1px solid #dedede;
    border-radius: 9px;
    outline: none;
    font-family: inherit;
    font-size: 13px;
}
.site-header .shared-header-search .search-input::placeholder { color: #9a9a9a; }
.site-header .shared-header-search .search-input:focus { background: #fff; border-color: #aaa; box-shadow: 0 0 0 3px rgba(0, 0, 0, .06); }
.site-header .shared-header-search .search-icon { left: 13px; color: #888; }

.site-header .nav-toggle {
    display: none;
    width: 38px;
    height: 38px;
    place-items: center;
    padding: 0;
    color: #111;
    background: #f3f3f3;
    border: 1px solid #dedede;
    border-radius: 9px;
    font-family: inherit;
}
.site-header .nav-toggle svg { width: 20px; height: 20px; }

.site-footer {
    margin-top: 80px;
    padding: 25px 0;
    color: #fff;
    background: #090909;
    border-top: 1px solid #242424;
}
.site-footer .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer .footer-brand div { display: grid; line-height: 1.4; }
.site-footer .footer-brand strong { color: #fff; font-size: 14px; }
.site-footer .footer-brand small,
.site-footer p { margin: 0; color: rgba(255, 255, 255, .56); font-family: inherit; font-size: 11px; }

button,
input,
select,
textarea { font-family: inherit; }

@media (max-width: 920px) {
    .site-header .header-inner { flex-wrap: wrap; gap: 10px 16px; padding-block: 10px; }
    .site-header .nav-toggle { display: grid; margin-right: auto; }
    .site-header .main-nav {
        display: none;
        order: 4;
        width: 100%;
        padding: 7px;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        border: 1px solid #e2e2e2;
        border-radius: 11px;
    }
    .site-header .main-nav.open { display: flex; }
    .site-header .shared-header-search { order: 3; width: 100%; max-width: none; flex-basis: 100%; }
}

@media (max-width: 680px) {
    .site-header .shell,
    .site-footer .shell { width: min(100% - 24px, 1200px); }
    .site-header .header-inner { min-height: 60px; }
    .site-header .brand-mark { width: 33px; height: 33px; }
    .site-header .brand-copy strong { font-size: 14px; }
    .site-footer .footer-inner { align-items: flex-start; flex-direction: column; }
}

/* Compact public content type scale. Header, footer, and admin are intentionally excluded. */
body > main {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.7;
}

body > main .page-title { font-size: clamp(22px, 2.7vw, 25px); font-weight: 700; line-height: 1.35; }
body > main .page-description { font-size: 12.5px; line-height: 1.75; }
body > main .question-title { font-size: clamp(23px, 3vw, 27px); font-weight: 700; line-height: 1.4; }
body > main .section-title,
body > main .product-name { font-size: 16px; font-weight: 650; }
body > main .card-title { font-size: 14.5px; font-weight: 650; line-height: 1.55; }
body > main .card-excerpt,
body > main .product-desc { font-size: 12.5px; line-height: 1.75; }
body > main .breadcrumb,
body > main .count-badge,
body > main .views-badge,
body > main .answered-badge,
body > main .card-product-tag { font-size: 11px; }
body > main .admin-btn,
body > main .product-link { font-size: 12.5px; font-weight: 650; }
body > main .page-notification { border-style: solid; }
body > main .page-notification p { margin: 0; }
body > main .page-notification.orange {
    color: #8a4b08;
    background: #fff8ed;
    border-color: #efcf9d;
    border-right: 3px solid #e58a14;
}
body > main .page-notification.black {
    color: #fff;
    background: #18181b;
    border-color: #18181b;
    border-right: 3px solid #52525b;
}

body.platform-body > main .page-hero { padding-top: 42px; padding-bottom: 30px; }
body.platform-body > main .page-hero h1 {
    margin-top: 0;
    font-size: clamp(22px,3.2vw,26px);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.03em;
}
body.platform-body > main .page-hero p { font-size: 13.5px; line-height: 1.8; }
body.platform-body > main .section-head h2 {
    font-size: clamp(20px, 2.8vw, 22px);
    font-weight: 700;
}
body.platform-body > main .section-head p,
body.platform-body > main .service-card p,
body.platform-body > main .faq-platform-card p,
body.platform-body > main .status-card > p { font-size: 12.5px; }
body.platform-body > main .service-card h3,
body.platform-body > main .faq-platform-card h3 { font-size: 16px; font-weight: 650; }
body.platform-body > main .hero-panel h2 { font-size: 16px; font-weight: 650; }
body.platform-body > main .hero-panel p { font-size: 12px; }
body.platform-body > main .form-field label { font-size: 12.5px; font-weight: 650; }
body.platform-body > main .input,
body.platform-body > main .select,
body.platform-body > main .textarea { font-size: 13px; font-weight: 400; }
body.platform-body > main .button,
body.platform-body > main button.button {
    min-height: 52px;
    font-size: 13px;
    font-weight: 650;
}
body.platform-body > main .checkbox-row,
body.platform-body > main .alert { font-size: 12.5px; }
body.platform-body > main .hint,
body.platform-body > main .field-error,
body.platform-body > main .upload-meta { font-size: 10.5px; }
body.platform-body > main .price-panel strong { font-size: 13px; }
body.platform-body > main .price-value { font-size: clamp(22px, 3.2vw, 28px); font-weight: 750; }
body.platform-body > main .receipt-row span,
body.platform-body > main .data-table th,
body.platform-body > main .data-table td { font-size: 11.5px; }

@media (max-width: 680px) {
    body > main { font-size: 12.75px; }
    body.platform-body > main .page-hero h1 { font-size: 22px; }
    body > main .question-title { font-size: 22px; }
}

/* Single FAQ article — compact, neutral reading surface. */
.question-detail-container { max-width: 1040px; }
.faq-question-detail {
    padding: 24px;
    background: #fff;
    border: 1px solid #e4e4e7;
    border-radius: 16px;
    box-shadow: 0 10px 34px rgba(0, 0, 0, .045);
}
.faq-question-detail .question-header {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #ececee;
}
.faq-question-detail .question-title {
    max-width: 820px;
    margin: 0 0 12px;
    color: #18181b;
    font-size: clamp(21px, 2.6vw, 25px);
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -.025em;
}
.faq-question-detail .question-meta {
    display: flex !important;
    gap: 7px;
}
.faq-question-detail .meta-item {
    gap: 5px;
    padding: 4px 8px;
    color: #71717a;
    background: #f7f7f8;
    border: 1px solid #ececee;
    border-radius: 999px;
    font-size: 10.5px;
}
.faq-question-detail .meta-item svg { width: 13px; height: 13px; color: #8b8b93; }

.faq-question-detail .content-section {
    margin: 0 0 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e4e4e7;
    border-radius: 13px;
    box-shadow: none;
}
.faq-question-detail .content-section:last-child { margin-bottom: 0; }
.faq-question-detail .section-header {
    min-height: 45px;
    margin: 0;
    padding: 10px 14px;
    gap: 8px;
    background: #fafafa;
    border-bottom: 1px solid #ececee;
}
.faq-question-detail .section-header svg { width: 17px; height: 17px; color: #71717a; }
.faq-question-detail .section-header h2 { margin: 0; color: #27272a; font-size: 13.5px; font-weight: 700; }
.faq-question-detail .content-box {
    padding: 18px 20px;
    color: #3f3f46;
    background: #fff;
    border: 0;
    border-radius: 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.9;
    overflow-wrap: anywhere;
}
.faq-question-detail .question-content-section .content-box { background: #fcfcfc; }
.faq-question-detail .answer-content-section { border-color: #d5e8dd; }
.faq-question-detail .answer-content-section .section-header { background: #f5faf7; border-bottom-color: #dcece3; }
.faq-question-detail .answer-content-section .section-header svg { color: #16865c; }
.faq-question-detail .answer-box {
    background: #fff;
    border-right: 3px solid #22a06b;
}
.faq-question-detail .content-box p { margin: 0 0 9px; }
.faq-question-detail .content-box p:last-child { margin-bottom: 0; }
.faq-question-detail .content-box p:empty,
.faq-question-detail .content-box p:has(> br:only-child) { display: none; }
.faq-question-detail .content-box ul,
.faq-question-detail .content-box ol { margin: 10px 0; padding-right: 20px; }
.faq-question-detail .content-box li { margin-bottom: 4px; }
.faq-question-detail .content-box h2,
.faq-question-detail .content-box h3,
.faq-question-detail .content-box h4 { margin: 17px 0 7px; color: #27272a; line-height: 1.55; }
.faq-question-detail .content-box h2 { font-size: 16px; }
.faq-question-detail .content-box h3 { font-size: 15px; }
.faq-question-detail .content-box h4 { font-size: 14px; }
.faq-question-detail .content-box strong { color: #27272a; font-weight: 650; }
.faq-question-detail .content-box pre { margin: 12px 0; padding: 14px; font-size: 12px; line-height: 1.7; }
.faq-question-detail .content-box code { font-size: 12px; }
.faq-question-detail .content-box blockquote { margin: 12px 0; padding: 10px 14px; background: #f7f7f8; border-right-width: 2px; }

@media (max-width: 680px) {
    .question-detail-container { padding-inline: 12px; }
    .faq-question-detail { padding: 16px; border-radius: 13px; }
    .faq-question-detail .question-title { font-size: 20px; }
    .faq-question-detail .question-header { margin-bottom: 14px; padding-bottom: 14px; }
    .faq-question-detail .content-box { padding: 15px 16px; font-size: 12.75px; }
}
