/* ===========================================================================
   SenderReputation.org - sitewide search
   ---------------------------------------------------------------------------
   One component, three presentations:
     .srs-trigger   the control in the navbar
     .srs-palette   the overlay, opened from anywhere
     .srs-inline    the same combobox bound to an input already on the page
                    (bounce index, bounce detail sidebar, glossary, blog)

   Extends the search idiom /bounce-codes/ already established rather than
   introducing a second one: 16px radius, 1.5px border, layered sky-tinted
   shadow, a focus ring, and JetBrains Mono key chips.

   Every colour here is a token. theme.css is the only file on this site
   allowed to hold a colour literal.
   =========================================================================== */

/* ── Navbar control ──────────────────────────────────────────────────────── */

.srs-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* Fixed width so the deferred script cannot reflow the navbar when it
       binds. A search control that shifts the layout on load would cost
       exactly the Core Web Vitals score the feature is meant to protect.
       Sized for the icon and the word alone: the keyboard shortcut still
       works, it just no longer eats the bar to advertise itself. */
    width: 112px;
    height: 38px;
    padding: 0 10px;
    background: var(--surface-raised-2);
    border: 1px solid var(--border-default);
    border-radius: 10px;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.875rem;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s, color 0.18s;
}

.srs-trigger:hover {
    border-color: var(--border-interactive);
    background: var(--surface-raised);
    color: var(--text-body);
}

.srs-trigger:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.srs-trigger-label { flex: 1; text-align: left; }

.srs-trigger svg { flex-shrink: 0; }

/* ── Overlay ─────────────────────────────────────────────────────────────── */

.srs-scrim {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: var(--sh-ink-30);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: srs-fade 0.12s ease-out;
}

.srs-palette {
    position: fixed;
    inset: 0;
    z-index: 2001;
    display: flex;
    justify-content: center;
    /* Anchored high rather than centred: the eye is already near the top of
       the page, and a centred panel jumps the reading position. */
    align-items: flex-start;
    padding: 12vh 20px 20px;
    pointer-events: none;
}

.srs-panel {
    pointer-events: auto;
    width: 100%;
    max-width: 640px;
    max-height: 72vh;
    display: flex;
    flex-direction: column;
    background: var(--surface-overlay);
    border: 1.5px solid var(--border-default);
    border-radius: 16px;
    box-shadow: 0 1px 2px var(--sh-sky-04-2), 0 28px 60px -24px var(--sh-ink-30);
    overflow: hidden;
    animation: srs-rise 0.14s ease-out;
}

@keyframes srs-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes srs-rise {
    from { opacity: 0; transform: translateY(2px); }
    to   { opacity: 1; transform: none; }
}

/* ── Input row ───────────────────────────────────────────────────────────── */

.srs-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 18px;
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.srs-head > .srs-head-icon {
    color: var(--text-faint);
    flex-shrink: 0;
    transition: color 0.2s;
}

.srs-panel:focus-within .srs-head-icon { color: var(--accent); }

.srs-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 1.02rem;
    color: var(--text-strong);
}

.srs-input::placeholder { color: var(--text-faint); }

/* Scope pill: shown when the palette is searching one content type only. */
.srs-scope {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--accent-deep);
    background: var(--accent-tint);
    border: 1px solid var(--accent-border);
    border-radius: 999px;
    padding: 3px 9px;
    cursor: pointer;
    font-family: inherit;
}

.srs-scope:hover { background: var(--accent-tint-2); }

.srs-dismiss {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.68rem;
    color: var(--text-muted);
    background: var(--surface-raised-2);
    border: 1px solid var(--border-default);
    border-radius: 5px;
    cursor: pointer;
}

.srs-dismiss:hover { color: var(--text-strong); }

/* ── Results ─────────────────────────────────────────────────────────────── */

.srs-body {
    overflow-y: auto;
    overscroll-behavior: contain;
    flex: 1;
    padding: 6px 0;
}

.srs-group-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 18px 5px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.srs-group-count {
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
}

.srs-row {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 9px 18px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

/* Selected state is a full tint plus a trailing chevron.
   Never a coloured bar down one edge. */
.srs-row.is-active {
    background: var(--accent-tint);
}

.srs-row.is-active .srs-go { opacity: 1; }

.srs-row-main { flex: 1; min-width: 0; }

.srs-row-title {
    font-size: 0.925rem;
    font-weight: 600;
    color: var(--text-strong);
    line-height: 1.35;
    /* Bounded rather than clipped to one line: a long title wraps once and
       then truncates, so rows stay a predictable height without cutting a
       title off mid-word. */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.srs-row-text {
    margin-top: 2px;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.srs-row-text mark,
.srs-sec-text mark {
    background: var(--accent-tint-2);
    color: var(--text-strong);
    font-weight: 600;
    border-radius: 3px;
    padding: 0 1px;
}

.srs-row.is-active .srs-row-text mark { background: var(--surface-raised); }

.srs-go {
    flex-shrink: 0;
    align-self: center;
    color: var(--accent-deep);
    opacity: 0;
    transition: opacity 0.14s;
}

/* Code chip, coloured by the same buckets the bounce pages already use. */
.srs-code {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 3px 7px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.78rem;
    font-weight: 500;
    border-radius: 7px;
    border: 1px solid transparent;
}

.srs-code.t-hard    { background: var(--danger-bg);  color: var(--danger-deep);  border-color: var(--danger-border); }
.srs-code.t-soft    { background: var(--warn-bg);    color: var(--warn-deep);    border-color: var(--warn-border); }
.srs-code.t-success { background: var(--success-bg); color: var(--success-deep); border-color: var(--success-border); }
.srs-code.t-info    { background: var(--accent-tint); color: var(--accent-deep); border-color: var(--accent-border); }

/* Type glyph for everything that is not a bounce code. */
.srs-glyph {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--surface-inset);
    color: var(--text-body-2);
}

.srs-glyph.t-tool { background: var(--accent-tint); color: var(--accent-deep); }

/* Section deep links, nested under their page. */
.srs-sec {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 5px 18px 5px 62px;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.srs-sec.is-active { background: var(--accent-tint); }

.srs-sec-corner {
    position: absolute;
    left: 40px;
    top: 0;
    width: 11px;
    height: 15px;
    border-left: 1px solid var(--border-default);
    border-bottom: 1px solid var(--border-default);
    border-bottom-left-radius: 4px;
}

.srs-sec-main { min-width: 0; flex: 1; }

.srs-sec-head {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-body);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.srs-sec-text {
    font-size: 0.76rem;
    color: var(--text-faint);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Empty, loading and message states ───────────────────────────────────── */

.srs-note {
    padding: 26px 22px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

.srs-note strong { color: var(--text-strong); }

.srs-note-title {
    font-size: 0.98rem;
    font-weight: 650;
    color: var(--text-strong);
    margin-bottom: 5px;
}

.srs-suggest {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--accent-action);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.srs-correction {
    padding: 9px 18px;
    font-size: 0.82rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-subtle);
}

.srs-correction strong { color: var(--text-strong); }

/* ── Footer ──────────────────────────────────────────────────────────────── */

.srs-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 16px;
    border-top: 1px solid var(--border-subtle);
    background: var(--surface-raised-2);
    flex-shrink: 0;
}

.srs-hints {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.73rem;
    color: var(--text-faint);
}

.srs-hint { display: inline-flex; align-items: center; gap: 5px; }

.srs-hint i {
    font-style: normal;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    background: var(--surface-raised);
    border: 1px solid var(--border-default);
    border-radius: 4px;
    padding: 1px 5px;
    color: var(--text-muted);
}

.srs-all {
    font-size: 0.79rem;
    font-weight: 600;
    color: var(--accent-action);
    text-decoration: none;
    white-space: nowrap;
}

.srs-all:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ── Inline instance ─────────────────────────────────────────────────────── */

.srs-inline { position: relative; }

.srs-drop {
    position: absolute;
    z-index: 60;
    top: calc(100% + 7px);
    left: 0;
    right: 0;
    max-height: 380px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--surface-overlay);
    border: 1.5px solid var(--border-default);
    border-radius: 14px;
    box-shadow: 0 1px 2px var(--sh-sky-04-2), 0 20px 44px -22px var(--sh-ink-30);
    padding: 5px 0;
    animation: srs-rise 0.12s ease-out;
}

/* Positioned at body level against the field. Sits above the sticky navbar
   (z-index 1000) and below the palette overlay (2000), so a dropdown never
   covers the palette if both are somehow open. */
.srs-drop--float {
    position: fixed;
    z-index: 1500;
    top: auto;
    left: 0;
    right: auto;
    max-height: 380px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--surface-overlay);
    border: 1.5px solid var(--border-default);
    border-radius: 14px;
    box-shadow: 0 1px 2px var(--sh-sky-04-2), 0 20px 44px -22px var(--sh-ink-30);
    padding: 5px 0;
    animation: srs-rise 0.12s ease-out;
}

/* Sidebar instances sit in a roughly 260px column. Constraining the list to
   that width left about fourteen characters of every title visible, which is
   not a result anyone can read. Because the list is positioned at body level
   it does not have to match its field: it is given a comfortable minimum width
   and aligned to the field's right edge, clamped to the viewport by place().
   Titles wrap to two lines here rather than truncating. */
.srs-drop--narrow .srs-sec { padding-left: 34px; }
.srs-drop--narrow .srs-sec-corner { left: 15px; }
.srs-drop--narrow .srs-row { padding-left: 13px; padding-right: 13px; }
.srs-drop--narrow .srs-group-label { padding-left: 13px; padding-right: 13px; }

.srs-drop--narrow .srs-row-title {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
}

.srs-drop--narrow .srs-code { min-width: 46px; }

.srs-inline-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 4px;
    margin-top: 4px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.75rem;
    color: var(--text-faint);
}

/* ── Bounce detail sidebar card ──────────────────────────────────────────── */

.srs-side-card { position: relative; }

.srs-side-field {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface-field);
    border: 1.5px solid var(--border-default);
    border-radius: 11px;
    padding: 9px 11px;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.srs-side-field:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--sh-sky-12-2);
}

.srs-side-field > svg { color: var(--text-faint); flex-shrink: 0; }

.srs-side-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.875rem;
    color: var(--text-strong);
}

.srs-side-input::placeholder { color: var(--text-faint); }

.srs-side-hint {
    margin-top: 8px;
    font-size: 0.76rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.srs-side-hint a { color: var(--accent-action); font-weight: 600; text-decoration: none; }
.srs-side-hint a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ── Mobile ──────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .srs-palette { padding: 0; }

    .srs-panel {
        max-width: none;
        max-height: none;
        height: 100%;
        border: none;
        border-radius: 0;
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .srs-row-title,
    .srs-row-text,
    .srs-sec-head,
    .srs-sec-text { white-space: normal; }

    .srs-row-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

    .srs-hints .srs-hint:not(:first-child) { display: none; }
}

@media (max-width: 940px) {
    .srs-trigger { width: 38px; padding: 0; justify-content: center; }
    .srs-trigger-label { display: none; }
}

/* ── Motion preference ───────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .srs-scrim,
    .srs-panel,
    .srs-drop { animation: none; }
    .srs-trigger,
    .srs-row,
    .srs-go { transition: none; }
}

/* ===========================================================================
   /search - full results page
   =========================================================================== */

.srp-head { max-width: 760px; }

.srp-title {
    font-size: clamp(1.6rem, 3.4vw, 2.3rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-strong);
    margin: 0.75rem 0 1.25rem;
}

.srp-title .accent { color: var(--accent-deep); }

.srp-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface-field);
    border: 1.5px solid var(--border-default);
    border-radius: 14px;
    padding: 9px 10px 9px 15px;
    box-shadow: 0 1px 2px var(--sh-sky-04-2), 0 12px 30px -18px var(--sh-sky-15-2);
    transition: border-color 0.18s, box-shadow 0.18s;
}

.srp-form:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--sh-sky-12-2), 0 16px 36px -18px var(--sh-sky-30);
}

.srp-form-icon { color: var(--text-faint); display: inline-flex; flex-shrink: 0; }
.srp-form:focus-within .srp-form-icon { color: var(--accent); }

.srp-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-strong);
}

.srp-input::placeholder { color: var(--text-faint); }
.srp-submit { flex-shrink: 0; }

/* ── Filter bar ──────────────────────────────────────────────────────────── */

.srp-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    /* Nothing sits flush against what follows it. */
    margin: 1.75rem 0 1.5rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-subtle);
}

.srp-count { margin: 0; font-size: 0.9rem; color: var(--text-muted); }
.srp-count strong { color: var(--text-strong); }

.srp-correction {
    margin: 1.25rem 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.srp-correction strong { color: var(--text-strong); }

.srp-filters { display: flex; flex-wrap: wrap; gap: 6px; }

.srp-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid var(--border-default);
    background: var(--surface-raised);
    color: var(--text-body);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.srp-filter:hover { border-color: var(--border-interactive); color: var(--text-strong); }

.srp-filter.is-on {
    background: var(--accent-deep);
    border-color: var(--accent-deep);
    color: var(--text-on-accent);
}

.srp-filter-n {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-faint);
}

.srp-filter.is-on .srp-filter-n { color: var(--text-on-accent); opacity: 0.75; }

/* ── Groups and results ──────────────────────────────────────────────────── */

/* Each group stays a real <section> for its heading structure, but style.css
   gives every bare <section> 4rem of vertical padding, which opened a 64px
   hole above every group heading. Reset it here rather than downgrading the
   element to a div. */
.srp-group {
    padding: 0;
    margin: 0 0 2.25rem;
}

.srp-group-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 0.85rem;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-strong);
}

.srp-group-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    border-radius: 8px;
    background: var(--surface-inset);
    color: var(--text-body-2);
}

.srp-group-icon.t-tool { background: var(--accent-tint); color: var(--accent-deep); }

.srp-group-n {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-faint);
    background: var(--surface-inset);
    border-radius: 999px;
    padding: 1px 8px;
}

.srp-group-all {
    margin-left: auto;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-action);
    text-decoration: none;
}

.srp-group-all:hover { text-decoration: underline; text-underline-offset: 2px; }

.srp-results { display: grid; gap: 2px; }

.srp-item { border-radius: 11px; }

.srp-item-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 13px;
    border-radius: 11px;
    text-decoration: none;
    color: inherit;
    transition: background 0.14s;
}

.srp-item-link:hover { background: var(--surface-raised-2); }

.srp-item-main { min-width: 0; display: block; }

.srp-item-title {
    display: block;
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.35;
    color: var(--accent-action);
}

.srp-item-link:hover .srp-item-title { text-decoration: underline; text-underline-offset: 2px; }

.srp-item-text {
    display: block;
    margin-top: 3px;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--text-body-2);
}

.srp-item-text mark,
.srp-section-text mark {
    background: var(--accent-tint-2);
    color: var(--text-strong);
    font-weight: 600;
    border-radius: 3px;
    padding: 0 2px;
}

.srp-item-url {
    display: block;
    margin-top: 4px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.74rem;
    color: var(--text-faint);
}

/* ── Nested section deep links ───────────────────────────────────────────── */

.srp-sections { display: grid; gap: 1px; margin: 1px 0 6px; }

.srp-section {
    position: relative;
    display: flex;
    gap: 9px;
    padding: 7px 13px 7px 46px;
    border-radius: 9px;
    text-decoration: none;
    color: inherit;
    transition: background 0.14s;
}

.srp-section:hover { background: var(--surface-raised-2); }

.srp-section-corner {
    position: absolute;
    left: 24px;
    top: 0;
    width: 12px;
    height: 17px;
    border-left: 1px solid var(--border-default);
    border-bottom: 1px solid var(--border-default);
    border-bottom-left-radius: 4px;
}

.srp-section-main { min-width: 0; }

.srp-section-head {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-body);
}

.srp-section:hover .srp-section-head { color: var(--accent-action); }

.srp-section-text {
    display: block;
    margin-top: 1px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-muted);
}

/* ── Empty state and the pre-query hub ───────────────────────────────────── */

.srp-empty {
    max-width: 640px;
    margin: 2rem 0 3rem;
}

.srp-empty h2 {
    font-size: 1.25rem;
    color: var(--text-strong);
    margin: 0 0 0.6rem;
}

.srp-empty p {
    color: var(--text-body);
    line-height: 1.65;
    margin: 0 0 0.7rem;
}

.srp-empty a { color: var(--accent-action); font-weight: 600; }

.srp-hub {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
    gap: 10px;
    margin: 2rem 0 2.5rem;
}

.srp-hub-card {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px 15px;
    background: var(--surface-raised);
    border: 1px solid var(--border-default);
    border-radius: 13px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.16s, box-shadow 0.16s, transform 0.16s;
}

.srp-hub-card:hover {
    border-color: var(--border-interactive);
    box-shadow: var(--shadow-card);
    transform: translateY(-1px);
}

.srp-hub-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--surface-inset);
    color: var(--text-body-2);
    flex-shrink: 0;
}

.srp-hub-icon.t-tool { background: var(--accent-tint); color: var(--accent-deep); }

.srp-hub-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.srp-hub-label { font-size: 0.925rem; font-weight: 650; color: var(--text-strong); }
.srp-hub-count { font-size: 0.78rem; color: var(--text-faint); }

.srp-tips {
    max-width: 680px;
    padding: 18px 20px;
    background: var(--surface-raised-2);
    border: 1px solid var(--border-subtle);
    border-radius: 13px;
}

.srp-tips h2 { font-size: 0.95rem; margin: 0 0 0.65rem; color: var(--text-strong); }
.srp-tips ul { margin: 0; padding-left: 1.1rem; }
.srp-tips li { font-size: 0.885rem; line-height: 1.7; color: var(--text-body); }

.srp-tips code {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.82em;
    background: var(--surface-raised);
    border: 1px solid var(--border-default);
    border-radius: 5px;
    padding: 1px 5px;
    color: var(--text-strong);
}

@media (max-width: 640px) {
    .srp-submit { display: none; }
    .srp-item-link { padding: 10px 8px; }
    .srp-section { padding-left: 34px; }
    .srp-section-corner { left: 14px; }
}

/* ── Blog index search, centred in the hero ──────────────────────────────── */

.bx-search {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    max-width: 430px;
    /* The hero is centre-aligned, and nothing sits flush against the band
       below it. */
    margin: 1.6rem auto 0.35rem;
    padding: 10px 14px;
    text-align: left;
    background: var(--surface-field);
    border: 1.5px solid var(--border-default);
    border-radius: 12px;
    box-shadow: 0 1px 2px var(--sh-sky-04-2), 0 10px 26px -20px var(--sh-sky-15-2);
    transition: border-color 0.18s, box-shadow 0.18s;
}

.bx-search:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--sh-sky-12-2);
}

.bx-search > svg { color: var(--text-faint); flex-shrink: 0; }
.bx-search:focus-within > svg { color: var(--accent); }

.bx-search input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--text-strong);
}

.bx-search input::placeholder { color: var(--text-faint); }
