/* GazetteSearch — vanilla, no framework, no build step. */

:root {
    --fg: #1a1a1a;
    --muted: #666;
    --bg: #fafaf7;
    --panel: #fff;
    --accent: #0a4d3a;
    --accent-light: #e8f1ed;
    --border: #d8d8d3;
    --hit-border: #e5e5e0;
    --error: #b00020;
    --warn: #8a4a00;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    color: var(--fg);
    background: var(--bg);
    line-height: 1.5;
}

a { color: var(--accent); }

/* Site header (chrome) */
.site-header {
    background: var(--panel);
    border-bottom: 1px solid var(--border);
}
.site-header-inner {
    max-width: 64rem;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.site-header .brand {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -0.01em;
    flex-shrink: 0;
}
.header-search {
    flex: 1 1 16rem;
    max-width: 32rem;
    margin: 0;
}
.header-search input[type=search] {
    width: 100%;
    padding: 0.4rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    background: #fff;
}
.header-search input[type=search]:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    border-color: var(--accent);
}
.site-nav {
    display: flex;
    gap: 1.25rem;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.site-nav a {
    color: var(--fg);
    text-decoration: none;
}
.site-nav a:hover { text-decoration: underline; }

/* Site footer (chrome) */
.site-footer {
    margin-top: 4rem;
    background: var(--panel);
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.9rem;
}
.site-footer-inner {
    max-width: 64rem;
    margin: 0 auto;
    padding: 2rem 1rem 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 2rem;
}
.site-footer .footer-col strong {
    display: block;
    color: var(--fg);
    margin-bottom: 0.4rem;
}
.site-footer .footer-col p { margin: 0.25rem 0; }
.site-footer .footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-footer .footer-col ul li { margin: 0.2rem 0; }
.site-footer .footer-meta {
    max-width: 64rem;
    margin: 0 auto;
    padding: 1rem 1rem 2rem;
    text-align: center;
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
}

/* Error pages */
.error-page {
    text-align: center;
    padding-top: 3rem;
}
.error-page h1 { color: var(--accent); font-size: 2.25rem; }
.error-search {
    display: flex;
    gap: 0.5rem;
    max-width: 28rem;
    margin: 1.25rem auto;
}
.error-search input[type=search] {
    flex: 1;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
}
.error-search button {
    padding: 0.6rem 1.2rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
}

/* Long-form prose pages (about, privacy, help) */
.prose {
    max-width: 44rem;
    margin: 2rem auto;
    padding: 0 1rem;
    font-size: 1rem;
    line-height: 1.65;
}
.prose h1 {
    font-size: 1.85rem;
    color: var(--accent);
    margin: 0 0 1rem;
    letter-spacing: -0.01em;
}
.prose h2 {
    font-size: 1.25rem;
    margin: 2rem 0 0.5rem;
    color: var(--fg);
}
.prose p { margin: 0.75rem 0; }
.prose ul { margin: 0.5rem 0 0.75rem; padding-left: 1.5rem; }
.prose li { margin: 0.25rem 0; }
.help-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}
.help-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--hit-border);
}
.help-list li:last-child { border-bottom: none; }
.help-list a {
    text-decoration: none;
    color: var(--accent);
    font-size: 1rem;
}
.help-list a strong { font-weight: 700; }
.help-list a:hover { text-decoration: underline; }
.help-list p { margin: 0.25rem 0 0; font-size: 0.9rem; color: #333; }
.prose code {
    background: var(--accent-light);
    padding: 0.05rem 0.4rem;
    border-radius: 3px;
    font-size: 0.95em;
}

/* Type-index + Browse */
.type-index {
    max-width: 56rem;
    margin: 1.5rem auto 2rem;
    padding: 0 1rem;
}
.type-index h1 {
    font-size: 1.6rem;
    margin: 0.25rem 0 0.5rem;
    color: var(--accent);
}
.type-summary {
    color: #333;
    font-size: 0.95rem;
    margin: 0.5rem 0 0.75rem;
    max-width: 44rem;
}
.type-list { margin-top: 1rem; }
.pagination {
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
}
.pagination a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}
.pagination a:hover { text-decoration: underline; }
.pagination .disabled { color: var(--muted); }
.pagination .page-of { color: var(--muted); }

.type-grid {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 0.75rem;
}
.type-grid li { margin: 0; }
.type-grid a {
    display: block;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.85rem 1rem;
    text-decoration: none;
    color: var(--fg);
    height: 100%;
}
.type-grid a:hover { border-color: var(--accent); }
.type-grid strong {
    display: block;
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}
.type-count {
    color: var(--muted);
    font-size: 0.8rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.type-blurb {
    margin: 0.4rem 0 0;
    color: #333;
    font-size: 0.85rem;
    line-height: 1.45;
}

/* Issue page */
.issue-detail {
    max-width: 56rem;
    margin: 1.5rem auto 2rem;
    padding: 0 1rem;
}
.issue-detail h1 {
    font-size: 1.5rem;
    margin: 0.25rem 0 0.4rem;
    color: var(--fg);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    word-break: break-all;
}
.issue-meta ul {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
}
.issue-meta li { color: var(--muted); }
.issue-detail h2 {
    font-size: 1.05rem;
    margin: 1.5rem 0 0.4rem;
    color: var(--accent);
}
.ntype-count {
    color: var(--muted);
    font-weight: 400;
    font-size: 0.85rem;
}
.notice-list {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 1rem;
}
.notice-list li {
    border-bottom: 1px solid var(--hit-border);
}
.notice-list li:last-child { border-bottom: none; }
.notice-link {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    align-items: baseline;
    padding: 0.5rem 0;
    text-decoration: none;
    color: var(--fg);
    font-size: 0.95rem;
}
.notice-link:hover { background: var(--accent-light); }
.notice-link-name { font-weight: 500; }
.notice-link-id, .notice-link-date {
    color: var(--muted);
    font-size: 0.85rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Notice detail page */
.notice-detail {
    max-width: 48rem;
    margin: 1.5rem auto 2rem;
    padding: 0 1rem;
}
.breadcrumb {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .type-tag {
    background: var(--accent-light);
    color: var(--accent);
    padding: 0.05rem 0.5rem;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
}
.breadcrumb a.type-tag:hover { background: var(--accent); color: #fff; }

.notice-detail h1 {
    font-size: 1.7rem;
    margin: 0.25rem 0 0.4rem;
    color: var(--fg);
    letter-spacing: -0.01em;
}
.notice-sub {
    margin: 0 0 1.5rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.notice-detail h2 {
    font-size: 1.05rem;
    margin: 1.75rem 0 0.5rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

dl.kv {
    display: grid;
    grid-template-columns: 11rem 1fr;
    gap: 0.4rem 1rem;
    margin: 0.5rem 0;
    font-size: 0.95rem;
}
dl.kv dt {
    color: var(--muted);
    font-size: 0.85rem;
    align-self: start;
}
dl.kv dd {
    margin: 0;
    color: var(--fg);
}
dl.kv dd.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.9rem;
}

.notice-primary dl.kv {
    background: var(--accent-light);
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid var(--accent);
}

.gazette-text {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.85rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-x: auto;
    color: #222;
    margin-top: 0.5rem;
}
/* Collapsible "From the gazette" wrapper — long chunk text shouldn't
   dominate the page above the structured fields and related-notices
   block. Open by default for short text (<500 chars), collapsed for
   longer.  */
.gazette-text-wrap > summary {
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.gazette-text-wrap > summary::-webkit-details-marker { display: none; }
.gazette-text-wrap > summary::before {
    content: "▸ ";
    color: var(--muted);
    font-size: 0.8em;
    margin-right: 0.2em;
}
.gazette-text-wrap[open] > summary::before { content: "▾ "; }
.gazette-text-wrap > summary > h2 {
    display: inline;
    margin: 0;
}
/* Free-form text from notice fields (party blocks, asset descriptions) */
pre.freeform {
    background: var(--accent-light);
    border-radius: 4px;
    padding: 0.6rem 0.8rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 0.92rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0.5rem 0 1rem;
    color: var(--fg);
}
.party-list {
    margin: 0.5rem 0 1rem;
    padding-left: 1.25rem;
    font-size: 0.95rem;
}
.party-list li { margin: 0.2rem 0; }
.kv-inline {
    margin: 0.4rem 0 0.8rem;
    font-size: 0.9rem;
    color: var(--muted);
}
.kv-inline strong { color: var(--fg); }

/* Related notices block */
.related-bucket { margin: 0.4rem 0 1rem; }
.related-bucket h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0.5rem 0 0.3rem;
}
.related-bucket ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.related-bucket li {
    border-bottom: 1px solid var(--hit-border);
}
.related-bucket li:last-child { border-bottom: none; }
.related-bucket a {
    display: flex;
    gap: 0.6rem;
    align-items: baseline;
    padding: 0.4rem 0;
    text-decoration: none;
    color: var(--fg);
    font-size: 0.9rem;
}
.related-bucket a:hover { background: var(--accent-light); }
.rel-type {
    background: var(--accent-light);
    color: var(--accent);
    padding: 0.05rem 0.4rem;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.75rem;
    flex-shrink: 0;
}
.rel-date {
    color: var(--muted);
    font-size: 0.8rem;
    margin-left: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.notice-source ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}
.notice-source li { margin: 0.3rem 0; font-size: 0.95rem; }
.muted { color: var(--muted); }

/* Hero */
.hero {
    text-align: center;
    padding: 3.5rem 1rem 1.5rem;
    background: linear-gradient(180deg, var(--accent-light), transparent);
}
.hero h1 {
    margin: 0 0 0.25rem;
    font-size: 2.5rem;
    letter-spacing: -0.02em;
    color: var(--accent);
}
.hero .tagline {
    font-size: 1.25rem;
    margin: 0.5rem 0;
    font-weight: 500;
}
.hero .sub {
    max-width: 42rem;
    margin: 0.75rem auto 0;
    color: var(--muted);
    font-size: 0.95rem;
}

/* Search box */
.searchbox {
    max-width: 48rem;
    margin: 1.5rem auto;
    padding: 0 1rem;
}
.searchbox form { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 1rem; }
.searchbox input[type=search] {
    width: 100%;
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
}
.searchbox input[type=search]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.filters {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--muted);
}
.filters input { padding: 0.4rem; border: 1px solid var(--border); border-radius: 4px; font-size: 0.9rem; }
.filters button {
    margin-left: auto;
    padding: 0.6rem 1.4rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
}
.filters button:hover { background: #073529; }

.status { margin: 0.75rem 0 0; font-size: 0.85rem; color: var(--muted); }
.status.paid { color: var(--accent); }

/* Results */
#resultsWrap { max-width: 48rem; margin: 1rem auto; padding: 0 1rem; }
#meta .meta { color: var(--muted); font-size: 0.9rem; margin: 0.5rem 0; }
#meta .loading { color: var(--muted); font-style: italic; }
#meta .rate-limit { background: #fff5e6; border: 1px solid #f0c878; padding: 0.75rem 1rem; border-radius: 6px; color: var(--warn); }
#meta .error { color: var(--error); }
#results { list-style: none; padding: 0; }
.empty-state { color: var(--muted); text-align: center; padding: 2rem 1rem 0.5rem; font-style: italic; }
.did-you-mean { text-align: center; padding: 0 1rem 1.5rem; font-size: 1.05rem; }
.did-you-mean a { color: var(--accent); text-decoration: none; }
.did-you-mean a:hover { text-decoration: underline; }
.did-you-mean-banner {
    background: #fff5e6;
    border: 1px solid #f0c878;
    border-radius: 6px;
    padding: 0.6rem 1rem;
    margin: 0 auto 1rem;
    max-width: 48rem;
    text-align: center;
    font-size: 0.95rem;
    color: var(--warn);
}
.did-you-mean-banner a { color: var(--warn); font-weight: 600; }
.results-searchbox { margin-top: 1rem; }
.filters select {
    padding: 0.4rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.9rem;
    background: #fff;
}
.active-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.6rem;
    background: var(--accent-light);
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 12px;
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: 500;
}
.chip:hover { background: var(--accent); color: #fff; }
.chip:hover .chip-x { color: #fff; }
.chip-x { font-weight: 700; color: var(--accent); font-size: 1rem; line-height: 1; }

.hit {
    background: var(--panel);
    border: 1px solid var(--hit-border);
    border-radius: 6px;
    padding: 0.85rem 1rem;
    margin: 0 0 0.6rem;
}
.hit-head {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}
.dist {
    background: var(--accent-light);
    color: var(--accent);
    padding: 0.1rem 0.5rem;
    border-radius: 3px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.8rem;
}
.src { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8rem; }

.fields { margin-bottom: 0.4rem; font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.fields.unparsed { color: var(--muted); font-style: italic; }
.fields .tag { background: #eee; padding: 0.1rem 0.5rem; border-radius: 3px; font-size: 0.75rem; }
.fields .tag-source { background: var(--accent-light); color: var(--accent); font-weight: 500; }
.filters-hint { color: var(--muted); font-size: 0.8rem; font-style: italic; }
.filters select[multiple] { padding: 0.3rem; border: 1px solid var(--border); border-radius: 4px; font-size: 0.85rem; max-height: 5em; }

/* Advanced search disclosure */
.advanced {
    margin-top: 0.85rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--hit-border);
}
.advanced > summary {
    cursor: pointer;
    color: var(--muted);
    font-size: 0.85rem;
    padding: 0.25rem 0;
    user-select: none;
}
.advanced > summary:hover { color: var(--accent); }
.advanced[open] > summary {
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.advanced .advanced-filters {
    margin-top: 0.5rem;
    align-items: flex-start;
}
.advanced .sources-label {
    flex: 1;
    min-width: 18rem;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.3rem;
}
.advanced .sources-label select { width: 100%; max-height: 7em; }
.fields .name { font-weight: 600; }
.fields .id, .fields .estate { font-family: ui-monospace, monospace; font-size: 0.8rem; color: var(--muted); }
.fields .email { font-size: 0.85rem; }

.snippet { margin: 0.3rem 0 0; font-size: 0.9rem; color: #333; line-height: 1.45; }
.source-link { margin: 0.4rem 0 0; font-size: 0.85rem; display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: baseline; }
.source-link .result-title { color: var(--accent); text-decoration: none; font-weight: 600; }
.source-link .result-title:hover { text-decoration: underline; }
.source-link .result-pdf { color: var(--muted); text-decoration: none; font-weight: 400; font-size: 0.85rem; }
.source-link .result-pdf:hover { text-decoration: underline; }
.source-link .link-sep { color: var(--border); }

/* Who panels */
.who { max-width: 64rem; margin: 4rem auto 2rem; padding: 0 1rem; }
.who h2 { text-align: center; font-size: 1.5rem; color: var(--accent); }
.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 1.25rem; }
.panel h3 { margin: 0 0 0.5rem; font-size: 1.05rem; color: var(--accent); }
.panel p { margin: 0.5rem 0; font-size: 0.9rem; color: #333; }
.panel .example { color: var(--muted); font-size: 0.85rem; }
.panel code { background: var(--accent-light); padding: 0.05rem 0.4rem; border-radius: 3px; }

/* ---------------------------------------------------------------- */
/* Mobile — single-column layout below 640px.                       */
/* ---------------------------------------------------------------- */
@media (max-width: 640px) {

    /* Tap targets — ≥44px tall as a mobile usability baseline. */
    .filters button,
    .error-search button,
    .searchbox button {
        padding: 0.75rem 1.2rem;
        min-height: 44px;
    }
    .searchbox input[type=search] {
        font-size: 16px;  /* avoid iOS zoom-on-focus */
        padding: 0.75rem 0.85rem;
    }

    /* Hero — smaller heading, less padding. */
    .hero { padding: 2rem 1rem 1rem; }
    .hero h1 { font-size: 1.85rem; }
    .hero .tagline { font-size: 1rem; }
    .hero .sub { font-size: 0.9rem; }

    /* Site header — keep brand and nav on one line, tighten gap. */
    .site-header-inner { padding: 0.6rem 1rem; gap: 0.6rem; }
    .site-nav { gap: 0.8rem; font-size: 0.85rem; }
    /* Header search drops below brand+nav on narrow screens */
    .header-search {
        order: 3;
        flex: 1 1 100%;
        max-width: none;
    }
    .header-search input[type=search] { font-size: 16px; }  /* iOS zoom suppress */

    /* Search filters: stack vertically below the input. */
    .filters {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
    }
    .filters label {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }
    .filters input,
    .filters select { flex: 1; min-height: 38px; }
    .filters button { margin-left: 0; width: 100%; }

    /* dl.kv collapses to a single column on narrow screens. */
    dl.kv {
        grid-template-columns: 1fr;
        gap: 0.1rem 0;
    }
    dl.kv dt {
        margin-top: 0.4rem;
        font-size: 0.8rem;
    }
    dl.kv dt:first-child { margin-top: 0; }
    dl.kv dd { margin-bottom: 0.2rem; }

    /* Notice links: stack name on top, id/date below. */
    .notice-link {
        grid-template-columns: 1fr;
        gap: 0.15rem;
        padding: 0.6rem 0.5rem;
    }
    .notice-link-id, .notice-link-date {
        font-size: 0.8rem;
    }

    /* Related-bucket rows: ensure tap targets are tall enough. */
    .related-bucket a { padding: 0.6rem 0.4rem; flex-wrap: wrap; }
    .rel-date { margin-left: 0; }

    /* Footer columns to single column. */
    .site-footer-inner { padding: 1.5rem 1rem 0.75rem; gap: 1.25rem; }

    /* Notice detail headings tighter. */
    .notice-detail h1 { font-size: 1.4rem; }
    .notice-detail h2 { margin-top: 1.4rem; }

    /* Issue page heading scales down — long issue_ids would overflow. */
    .issue-detail h1 { font-size: 1.1rem; }
    .issue-meta ul { gap: 0.5rem; }

    /* Browse + type-grid cards full-width. */
    .type-grid { grid-template-columns: 1fr; }

    /* Pagination — keep on one line, smaller gap. */
    .pagination { font-size: 0.85rem; gap: 0.5rem; }

    /* Active filter chips wrap better. */
    .active-filters { gap: 0.4rem; }
    .chip { padding: 0.3rem 0.65rem; min-height: 32px; }

    /* Source-link buttons: stack PDF link below internal link. */
    .source-link { flex-direction: column; gap: 0.2rem; }
    .source-link .link-sep { display: none; }
}

/* ---------------------------------------------------------------- */
/* Print: hide chrome, expand main content for filing as evidence.  */
/* ---------------------------------------------------------------- */
@media print {
    body { background: #fff; color: #000; }
    .site-header,
    .site-footer,
    .breadcrumb,
    .related,
    .notice-source,
    .searchbox,
    .results-searchbox,
    .who,
    .pagination,
    .active-filters,
    .status,
    .hero { display: none; }

    main,
    .notice-detail,
    .issue-detail,
    .type-index,
    .prose { max-width: none; padding: 0; margin: 0; }

    a { color: #000; text-decoration: none; }

    .gazette-text,
    pre.freeform {
        background: #fff;
        border: 1px solid #999;
        font-size: 9pt;
    }

    h1 { font-size: 14pt; margin: 0 0 0.5rem; }
    h2 { font-size: 11pt; }

    /* Show the source URL inline so the print is self-citing. */
    .notice-detail h1::after,
    .issue-detail h1::after { content: ""; display: none; }
}
