/* ============================================================================
   faq.css — FAQ + Search page tweaks (Style N tokens only).
   The accordion primitive (.pub-accordion*) and section vocabulary (.pub-section,
   .pub-wrap, .pub-sh, .pub-btn, .pub-empty) already live in the shared layers
   (components.css / public.css). Keep this file minimal and additive.
   ============================================================================ */

/* Constrain FAQ column width for comfortable reading (/faq page). */
.pub-faq {
    max-width: 820px;
    margin-inline: auto;
}

/* ---------------------------------------------------- Homepage FAQ band
   Two-column layout: intro block (left) + single-open accordion (right).
   Desktop: 1fr / 1.2fr with a comfortable gutter, intro top-aligned.
   Mobile (<=860px): stacks to one column, intro on top, accordion below. */
.pub-faq2 {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.pub-faq2__intro {
    align-self: start;
}

.pub-faq2__hd {
    margin: .5rem 0 0;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.15;
    color: var(--pub-ink);
}

.pub-faq2__lead {
    margin: 1rem 0 0;
    max-width: 42ch;
    color: var(--pub-mut);
    font-size: 1.02rem;
    line-height: 1.6;
}

.pub-faq2__cta {
    margin-top: 1.75rem;
}

@media (max-width: 860px) {
    .pub-faq2 {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .pub-faq2__hd {
        font-size: 1.6rem;
    }

    .pub-faq2__lead {
        max-width: none;
    }
}

/* ---------------------------------------------------------------- Search page
   Namespaced pub-srch, deliberately NOT pub-search: that prefix belongs to the collapsible
   header widget whose closed state is width:0/opacity:0, and sharing it made this page's
   field invisible. Full-width bar: the field takes the row, the button sits at its right
   at the same height. */
.pub-srch {
    display: flex;
    gap: .6rem;
    align-items: stretch;
    width: 100%;
    margin-bottom: 1.5rem;
}

/* Border + shadow so the field reads as a control on the near-white page. The tone is derived
   from the brand rather than --pub-line, which is a warm cream here and vanished against it. */
.pub-srch__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 52px;
    padding: 0 1.1rem;
    font: inherit;
    color: var(--pub-ink);
    background: var(--pub-card);
    border: 1.5px solid color-mix(in srgb, var(--brand-navy) 45%, #fff);
    border-radius: var(--pub-radius);
    /* same 3D offset shadow the homepage CTAs use: solid ink edge + soft brand glow */
    box-shadow: 0 3px 0 color-mix(in srgb, var(--brand-navy), #000 38%),
                0 5px 14px color-mix(in srgb, var(--brand-navy) 28%, transparent);
    transition: border-color .15s, box-shadow .15s;
}

.pub-srch__input:hover { border-color: color-mix(in srgb, var(--brand-navy) 70%, #fff); }

.pub-srch__input:focus {
    outline: none;
    border-color: var(--brand-navy);
    box-shadow: 0 3px 0 color-mix(in srgb, var(--brand-navy), #000 38%),
                0 0 0 3px color-mix(in srgb, var(--brand-navy) 16%, transparent),
                0 5px 14px color-mix(in srgb, var(--brand-navy) 28%, transparent);
}

.pub-srch__btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    height: 52px;
    padding: 0 1.4rem;
    font: inherit;
    font-weight: 700;
    color: #fff;
    background: var(--brand-navy);
    border: 1px solid var(--brand-navy);
    border-radius: var(--pub-radius);
    cursor: pointer;
    box-shadow: 0 3px 0 color-mix(in srgb, var(--brand-navy), #000 38%),
                0 5px 14px color-mix(in srgb, var(--brand-navy) 45%, transparent);
    transition: filter .15s, transform .15s, box-shadow .15s;
}

.pub-srch__btn:hover {
    filter: brightness(1.12);
    transform: translateY(-2px);
    box-shadow: 0 5px 0 color-mix(in srgb, var(--brand-navy), #000 38%),
                0 8px 20px color-mix(in srgb, var(--brand-navy) 50%, transparent);
}

.pub-srch__btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 color-mix(in srgb, var(--brand-navy), #000 38%);
}
.pub-srch__btn:focus-visible { outline: 2px solid var(--brand-navy); outline-offset: 3px; }
.pub-srch__btn svg { width: 17px; height: 17px; }

.pub-srch__hint,
.pub-srch__count {
    color: var(--pub-mut);
    margin-bottom: 1.5rem;
}

.pub-srch__count b { color: var(--pub-ink); }

.pub-srch__group { margin-bottom: 2rem; }

.pub-srch__grouphd {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    padding-bottom: .5rem;
    margin-bottom: .75rem;
    border-bottom: 2px solid var(--brand-navy);
    font-size: 1.05rem;
    color: var(--pub-accent-ink);
}

.pub-srch__groupc {
    font-size: .8rem;
    font-weight: 600;
    color: var(--pub-mut);
}

.pub-srch__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* The whole row is the anchor — heading, snippet and thumbnail are all clickable. */
.pub-srch__item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: .85rem .7rem;
    margin: 0 -.7rem;
    border-bottom: 1px solid var(--pub-line);
    border-radius: var(--pub-radius);
    text-decoration: none;
    color: inherit;
    transition: background .15s;
}

.pub-srch__item:hover { background: rgba(24, 24, 120, .05); }
.pub-srch__item:hover .pub-srch__title { color: var(--pub-accent-ink); text-decoration: underline; }

.pub-srch__thumb {
    flex: 0 0 auto;
    width: 92px;
    height: 68px;
    object-fit: cover;
    border-radius: var(--pub-radius);
    background: var(--pub-line);
}

.pub-srch__body { display: flex; flex-direction: column; min-width: 0; }

.pub-srch__title {
    font-weight: 600;
    color: var(--pub-ink);
    line-height: 1.4;
}

.pub-srch__snip {
    margin-top: .3rem;
    color: var(--pub-mut);
    font-size: .92rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 560px) {
    .pub-srch { flex-wrap: wrap; }
    .pub-srch__btn { width: 100%; justify-content: center; }
    .pub-srch__thumb { width: 68px; height: 52px; }
}
