body.template-faq {
    max-width: none;
    padding: 0;
    background: #fff;
    color: #102a43;
}

.template-faq .portal-site-header {
    max-width: 1348px;
    margin: 0 auto;
    border-width: 0 0 1px;
    border-radius: 0;
}

.template-faq .faq-page {
    max-width: 1348px;
    margin: 0 auto;
    padding: 20px 28px 40px;
}

.template-faq .faq-page__header {
    max-width: 850px;
    padding: 38px 42px 28px;
}

.template-faq .faq-page__eyebrow {
    margin: 0 0 8px;
    color: #176b7a;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.template-faq .faq-page__header h1 {
    margin: 0;
    color: #102a43;
    font-size: clamp(2.25rem, 4vw, 3rem);
    line-height: 1.14;
}

.template-faq .faq-page__header > p:last-child {
    max-width: 720px;
    margin: 12px 0 0;
    color: #334e5a;
    font-size: 18px;
    line-height: 1.55;
}

.template-faq .faq-filters {
    padding: 24px;
    border: 1px solid #bcd7e1;
    border-radius: 12px;
    background: #f4f9fb;
}

.template-faq .faq-filters h2 { margin: 0 0 16px; font-size: 1.35rem; }

.template-faq .faq-filters__grid {
    display: grid;
    grid-template-columns: minmax(240px, 2fr) repeat(2, minmax(170px, 1fr)) auto;
    align-items: end;
    gap: 16px;
}

.template-faq .faq-field { display: grid; gap: 7px; }
.template-faq .faq-field label { color: #243b53; font-weight: 700; }

.template-faq .faq-field input,
.template-faq .faq-field select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #8faab5;
    border-radius: 7px;
    background: #fff;
    color: #102a43;
    font: inherit;
}

.template-faq .faq-filters__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 46px;
}

.template-faq .faq-filters button {
    min-height: 46px;
    padding: 10px 20px;
    border: 0;
    border-radius: 7px;
    background: #176b7a;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.template-faq .faq-filters a,
.template-faq .faq-support a,
.template-faq .faq-empty-state a,
.template-faq .faq-pagination a,
.template-faq .portal-faq__related-link a {
    color: #105f70;
    font-weight: 700;
    text-underline-offset: 3px;
}

.template-faq .faq-filters__notice { margin: 14px 0 0; color: #334e68; }

.template-faq .faq-page__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 330px);
    gap: 30px;
    align-items: start;
    margin-top: 30px;
}

.template-faq .faq-results__heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #d8e4e8;
}

.template-faq .faq-results__heading h2,
.template-faq .faq-results__heading p { margin: 0; }
.template-faq .faq-results__heading p { color: #526b75; }

.template-faq .portal-faq__list { display: grid; gap: 12px; margin-top: 18px; }

.template-faq .portal-faq__item {
    border: 1px solid #c9d9df;
    border-radius: 10px;
    background: #fff;
}

.template-faq .portal-faq__item[open] {
    border-color: #7faeb8;
    box-shadow: 0 8px 22px rgba(16, 42, 67, .08);
}

.template-faq .portal-faq__question {
    position: relative;
    min-height: 56px;
    padding: 16px 54px 16px 20px;
    color: #102a43;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
}

.template-faq .portal-faq__question::-webkit-details-marker { display: none; }

.template-faq .portal-faq__question::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 20px;
    width: 28px;
    color: #176b7a;
    font-size: 25px;
    line-height: 1;
    text-align: center;
    transform: translateY(-50%);
}

.template-faq .portal-faq__item[open] .portal-faq__question::after { content: "\2212"; }

.template-faq .portal-faq__answer {
    max-width: 76ch;
    padding: 0 20px 20px;
    color: #334e5a;
    font-size: 16px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.template-faq .portal-faq__answer p { margin: 0 0 12px; }
.template-faq .portal-faq__answer p:last-child { margin-bottom: 0; }
.template-faq .portal-faq__related-link { padding-top: 4px; }
.template-faq .portal-card__save { margin: 16px 0 0; }
.template-faq .portal-card__save button { min-height: 44px; }

.template-faq .faq-support {
    padding: 24px;
    border: 1px solid #bcd7e1;
    border-radius: 10px;
    background: #eff6fa;
}

.template-faq .faq-support h2 { margin: 0 0 10px; font-size: 1.35rem; }
.template-faq .faq-support p { margin: 0; color: #334e5a; line-height: 1.55; }
.template-faq .faq-support ul { display: grid; gap: 12px; margin: 18px 0 0; padding-left: 20px; }

.template-faq .faq-empty-state {
    margin-top: 18px;
    padding: 24px;
    border: 1px dashed #8faab5;
    border-radius: 10px;
    background: #fbfdfe;
}

.template-faq .faq-empty-state h3 { margin: 0 0 8px; }
.template-faq .faq-empty-state p { margin: 0 0 14px; }

.template-faq .faq-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-top: 24px;
}

.template-faq a:focus-visible,
.template-faq button:focus-visible,
.template-faq input:focus-visible,
.template-faq select:focus-visible,
.template-faq summary:focus-visible {
    outline: 3px solid #f5b942;
    outline-offset: 3px;
}

@media (max-width: 980px) {
    .template-faq .faq-filters__grid { grid-template-columns: 1fr 1fr; }
    .template-faq .faq-field--search { grid-column: 1 / -1; }
    .template-faq .faq-page__layout { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .template-faq .faq-page { padding: 12px; }
    .template-faq .faq-page__header { padding: 28px 4px; }
    .template-faq .faq-page__header h1 { font-size: 34px; }
    .template-faq .faq-filters { padding: 18px; }
    .template-faq .faq-filters__grid { grid-template-columns: 1fr; }
    .template-faq .faq-field--search { grid-column: auto; }
    .template-faq .faq-filters__actions { flex-wrap: wrap; }
    .template-faq .faq-filters button { flex: 1 1 140px; }
    .template-faq .portal-faq__question { font-size: 16px; }
    .template-faq .faq-results__heading { align-items: flex-start; flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
    .template-faq * { scroll-behavior: auto; }
}
