/* goodblog public styles — UI refactor Phase 1 (palette, type, shell).
   See UI_REFACTOR_PLAN.md. Admin uses Bootstrap 4 defaults; these rules
   are scoped to the public shell so they do not leak into /admin.
   Bootstrap 4 is still loaded under this sheet; selectors below are specific
   enough to override its defaults where needed, without using any override
   qualifier on declarations. */

/* 1. Design tokens ------------------------------------------------------ */
/* Palette: Summer Vibes — warm cream, orange, olive/sage, teal. The six
   source hues are cream #F6E6D9, warm orange #F9A447, deep orange #E45A1B,
   olive #9B9062, sage #A1B9AB, teal #4DBBB0. Primary is a slightly darkened
   version of the deep orange (#D4521A) so link text still meets WCAG AA on
   white. Text and text-muted are warm near-black and darker olive for the
   same reason. */
:root {
    --c-primary:      #D4521A;   /* deep orange (darkened from #E45A1B for AA) */
    --c-primary-dark: #A13B0C;   /* hover / pressed state */
    --c-secondary:    #F9A447;   /* warm orange — for badges, highlight pills */
    --c-accent:       #4DBBB0;   /* teal accent — category pills, brand mark */
    --c-accent-dark:  #3FA59A;   /* teal hover / pressed state */
    --c-muted-accent: #A1B9AB;   /* sage — soft alt accent */

    --c-text:         #2D2824;   /* warm near-black */
    --c-text-muted:   #6F6439;   /* darker olive (derived from #9B9062, AA OK) */
    --c-bg:           #FFFFFF;
    --c-bg-soft:      #F6E6D9;   /* cream — soft section backgrounds */
    --c-divider:      #E8DDCB;   /* cream-tinted neutral divider */

    --font-sans: 'Inter', Arial, Helvetica, sans-serif;

    --layout-max:     1280px;
    --layout-content: 1140px;
    --gutter:         16px;
    --header-h:       64px;
    --nav-h:          48px;
}

/* 2. Baseline ---------------------------------------------------------- */
html, body { height: 100%; background: var(--c-bg); }
body {
    display: flex;
    flex-direction: column;
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.55;
    color: var(--c-text);
}
main {
    flex: 1 0 auto;
    padding-top: calc(var(--header-h) + var(--nav-h) + 16px);
    padding-bottom: 2rem;
}

/* 3. Typography scale (spec section 12) -------------------------------- */
h1, .h1 { font-size: 32px; font-weight: 700; line-height: 1.2;  color: var(--c-text); }
h2, .h2 { font-size: 24px; font-weight: 600; line-height: 1.25; color: var(--c-text); }
h3, .h3 { font-size: 18px; font-weight: 600; line-height: 1.3;  color: var(--c-text); }
.meta   { font-size: 12px; font-weight: 400; color: var(--c-text-muted); }
a { color: var(--c-primary); }
a:hover { color: var(--c-primary-dark); text-decoration: underline; }
a:focus-visible {
    outline: 2px solid var(--c-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* 4. Layout container -------------------------------------------------- */
.site-container {
    max-width: var(--layout-max);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}
.content-container {
    max-width: var(--layout-content);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

/* 5. Site header ------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-divider);
    z-index: 1030;
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.site-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--c-text);
    text-decoration: none;
    letter-spacing: -0.01em;
}
.site-header__brand:hover { color: var(--c-primary); text-decoration: none; }
.site-header__brand-mark {
    display: inline-block;
    width: 8px; height: 22px;
    background: var(--c-accent);
    border-radius: 1px;
}
.site-header__actions { display: flex; align-items: center; gap: 12px; }
.site-header__search {
    background: none;
    border: 1px solid var(--c-divider);
    border-radius: 999px;
    padding: 6px 12px;
    color: var(--c-text-muted);
    font-size: 13px;
    cursor: not-allowed;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.site-header__search[aria-disabled="true"]:hover { color: var(--c-text-muted); }

/* 6. Site nav (category strip) ----------------------------------------- */
.site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    height: var(--nav-h);
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-divider);
    z-index: 1029;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav__inner {
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
}
.site-nav__link {
    display: inline-flex;
    align-items: center;
    height: 100%;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
}
.site-nav__link:hover {
    color: var(--c-primary);
    text-decoration: none;
    border-bottom-color: var(--c-divider);
}
.site-nav__link--active {
    color: var(--c-primary);
    border-bottom-color: var(--c-primary);
}

/* 7. Site footer ------------------------------------------------------- */
.site-footer {
    background: var(--c-bg-soft);
    border-top: 1px solid var(--c-divider);
    color: var(--c-text-muted);
    padding: 32px 0 24px;
    font-size: 13px;
    margin-top: 40px;
}
.site-footer__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}
.site-footer h3 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--c-text);
    margin: 0 0 8px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: 4px; }
.site-footer a { color: var(--c-text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--c-primary); text-decoration: underline; }
.site-footer__bottom {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--c-divider);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

/* 8. Category tag (teal pill) -----------------------------------------
   The pill badge that appears on every article card, hero story and feed
   row. Uses the teal accent with dark warm text — a palette-native combo
   that stays visually distinct from the primary-orange CTAs elsewhere on
   the page. Dark text on teal is ~6.5:1 (AA large + small). */
.cat-tag {
    display: inline-block;
    background: var(--c-accent);
    color: var(--c-text);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: 2px;
    text-decoration: none;
    line-height: 1.4;
}
.cat-tag:hover {
    background: var(--c-accent-dark);
    color: var(--c-text);
    text-decoration: none;
}

/* 9. Existing article/listing classes (transitional, kept for article page) */
.article-summary { color: var(--c-text-muted); }
.article-meta    { font-size: 12px; color: var(--c-text-muted); }
.article-cover   { max-width: 100%; height: auto; border-radius: 4px; }

/* 10. Responsive ------------------------------------------------------- */
@media (max-width: 767.98px) {
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    h1, .h1 { font-size: 26px; }
}
@media (max-width: 480px) {
    .site-footer__grid { grid-template-columns: 1fr; }
    .site-header__brand { font-size: 18px; }
}

/* 11. Hero (spec section 6) ------------------------------------------- */
.hero {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 20px;
    margin-bottom: 32px;
}
.hero__main  { min-width: 0; }
.hero { align-items: stretch; }
.hero__stack {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    align-self: stretch;
}

/* 12. Article card — LARGE variant (hero main) ------------------------ */
.article-card--large {
    display: block;
    color: inherit;
    text-decoration: none;
}
.article-card--large:hover { color: inherit; text-decoration: none; }
.article-card--large .article-card__thumb {
    display: block;
    aspect-ratio: 16 / 9;
    background: var(--c-bg-soft);
    overflow: hidden;
    border-radius: 4px;
}
.article-card--large .article-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.article-card--large .article-card__title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
    margin: 12px 0 6px;
    color: var(--c-text);
}
.article-card--large .article-card__title:hover { color: var(--c-primary); }
.article-card--large .article-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--c-text-muted);
}

/* 13. Article card — SMALL variant (hero secondaries) ----------------- */
.article-card--small {
    display: flex;
    flex: 1;                       /* fill equal share of hero__stack height */
    gap: 12px;
    align-items: center;
    color: inherit;
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid var(--c-divider);
}
.article-card--small:last-child { border-bottom: 0; }
.article-card--small:hover { color: inherit; text-decoration: none; }
.article-card--small .article-card__thumb {
    flex: 0 0 110px;
    width: 110px;
    height: 82px;
    background: var(--c-bg-soft);
    overflow: hidden;
    border-radius: 3px;
}
.article-card--small .article-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.article-card--small .article-card__body { flex: 1 1 auto; min-width: 0; }
.article-card--small .article-card__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--c-text);
    margin: 0 0 5px;
}
.article-card--small:hover .article-card__title { color: var(--c-primary); }
.article-card--small .article-card__meta { font-size: 11px; color: var(--c-text-muted); }

/* 14. Feed list (spec section 8) -------------------------------------- */
.feed-list { list-style: none; padding: 0; margin: 0; }
.feed-list__item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--c-divider);
}
.feed-list__item:last-child { border-bottom: 0; }
.feed-list__thumb {
    flex: 0 0 120px;
    width: 120px;
    height: 80px;
    background: var(--c-bg-soft);
    border-radius: 3px;
    overflow: hidden;
    display: block;
}
.feed-list__thumb img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.feed-list__body { flex: 1 1 auto; min-width: 0; }
.feed-list__title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 6px;
}
.feed-list__title a { color: var(--c-text); text-decoration: none; }
.feed-list__title a:hover { color: var(--c-primary); }
.feed-list__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--c-text-muted);
    margin-top: 2px;
}
.feed-list__excerpt {
    font-size: 13px;
    color: var(--c-text-muted);
    margin: 6px 0 0;
    line-height: 1.5;
}

/* 15. Responsive — hero + feed ---------------------------------------- */
@media (max-width: 991.98px) {
    .hero { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 767.98px) {
    .article-card--large .article-card__title { font-size: 22px; }
    .feed-list__thumb { flex-basis: 96px; width: 96px; height: 68px; }
    .feed-list__title { font-size: 16px; }
}
@media (max-width: 480px) {
    .feed-list__item { gap: 12px; }
    .feed-list__thumb { flex-basis: 84px; width: 84px; height: 60px; }
}

/* 16. Title anchor reset — applied inside every card variant ---------- */
.article-card__title a,
.article-card__title a:hover,
.article-card__title a:focus {
    color: inherit;
    text-decoration: none;
}
.article-card__title a:hover { color: var(--c-primary); }
.article-card__thumb { display: block; }
.article-card__thumb:hover img { opacity: .92; transition: opacity .15s; }

/* 17. Two-column layout (content + sidebar, spec section 11) ---------- */
.layout-two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
}
@media (min-width: 992px) {
    .layout-two-col {
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 32px;
    }
}

/* 18. Sidebar container ----------------------------------------------- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}
@media (min-width: 992px) {
    .sidebar { position: sticky; top: 128px; }
}

/* 19. Sidebar blocks -------------------------------------------------- */
.sidebar-block {
    background: #fff;
    border: 1px solid var(--c-divider);
    border-radius: 4px;
    padding: 16px;
}
.sidebar-block__title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--c-text);
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--c-primary);
}
.sidebar-block__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sidebar-block__list--numbered {
    counter-reset: sb-rank;
}
.sidebar-block__item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--c-divider);
}
.sidebar-block__item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.sidebar-block__rank {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--c-bg-soft);
    color: var(--c-primary);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.sidebar-block__body { flex: 1 1 auto; min-width: 0; }
.sidebar-block__link {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--c-text);
    text-decoration: none;
}
.sidebar-block__link:hover { color: var(--c-primary); }
.sidebar-block__meta {
    margin-top: 4px;
    font-size: 11px;
    color: var(--c-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.sidebar-block__cat {
    color: var(--c-primary);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.sidebar-block__cat:hover { text-decoration: underline; }

/* Featured variant — warm-orange left-accent distinguishes it from the
   primary-coloured emphasis used elsewhere. */
.sidebar-block--featured {
    border-left: 3px solid var(--c-secondary);
}
.sidebar-block--featured .sidebar-block__title { color: var(--c-primary); }

/* 20. Ad slot — reserved dimensions to prevent CLS -------------------- */
.ad-slot {
    background: var(--c-bg-soft);
    border: 1px dashed var(--c-divider);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: var(--c-text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.ad-slot--mpu {
    min-height: 250px;
}
.ad-slot--skyscraper {
    min-height: 600px;
}
.ad-slot__placeholder {
    opacity: .7;
}

/* 21. Category page header -------------------------------------------- */
.category-header {
    padding: 24px 0 16px;
    border-bottom: 2px solid var(--c-primary);
    margin-bottom: 24px;
}
.category-header__crumbs {
    margin: 0 0 6px;
    font-size: 13px;
}
.category-header__back {
    color: var(--c-text-muted);
    text-decoration: none;
}
.category-header__back:hover { color: var(--c-primary); }
.category-header__title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--c-text);
}
.category-header__count {
    margin: 0;
    font-size: 13px;
    color: var(--c-text-muted);
}
@media (max-width: 767.98px) {
    .category-header__title { font-size: 24px; }
}

/* 22. Section block (spec section 10) --------------------------------- */
.section-block {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--c-divider);
}
.section-block:last-child {
    border-bottom: 0;
    margin-bottom: 0;
}
.section-block__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--c-primary);
}
.section-block__title {
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin: 0;
    color: var(--c-text);
}
.section-block__title-link {
    color: inherit;
    text-decoration: none;
}
.section-block__title-link:hover { color: var(--c-primary); }
.section-block__more {
    font-size: 12px;
    color: var(--c-primary);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
}
.section-block__more:hover { text-decoration: underline; }

.section-block__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 768px) {
    .section-block__grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    }
}

/* Featured card inside a section block */
.section-block__featured { min-width: 0; }
.section-block__featured-thumb {
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--c-bg-soft);
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 12px;
}
.section-block__featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity .15s;
}
.section-block__featured-thumb:hover img { opacity: .92; }
.section-block__featured-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 8px;
}
.section-block__featured-title a { color: var(--c-text); text-decoration: none; }
.section-block__featured-title a:hover { color: var(--c-primary); }
.section-block__featured-excerpt {
    font-size: 14px;
    line-height: 1.55;
    color: var(--c-text-muted);
    margin: 0 0 8px;
}
.section-block__featured-meta {
    font-size: 12px;
    color: var(--c-text-muted);
}

/* Tail list inside a section block (articles 2-3, with thumbnails) */
.section-block__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}
.section-block__list-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--c-divider);
}
.section-block__list-item:first-child { padding-top: 0; }
.section-block__list-item:last-child { border-bottom: 0; padding-bottom: 0; }
.section-block__list-thumb {
    flex: 0 0 90px;
    width: 90px;
    height: 68px;
    overflow: hidden;
    border-radius: 3px;
    background: var(--c-bg-soft);
    display: block;
}
.section-block__list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity .15s;
}
.section-block__list-thumb:hover img { opacity: .88; }
.section-block__list-body { flex: 1 1 auto; min-width: 0; }
.section-block__list-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 5px;
}
.section-block__list-title a { color: var(--c-text); text-decoration: none; }
.section-block__list-title a:hover { color: var(--c-primary); }
.section-block__list-meta {
    font-size: 11px;
    color: var(--c-text-muted);
}

/* Featured thumb placeholder (no cover image) */
.section-block__featured-thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-bg-soft);
    color: var(--c-text-muted);
}
.section-block__featured-thumb-icon { font-size: 32px; opacity: .35; }

/* Bottom card row — articles 4-6, 3 columns */
.section-block__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--c-divider);
}
.section-block__card { min-width: 0; }
.section-block__card-thumb {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 3px;
    background: var(--c-bg-soft);
    margin-bottom: 9px;
}
.section-block__card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity .15s;
}
.section-block__card-thumb:hover img { opacity: .88; }
.section-block__card-thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-text-muted);
    font-size: 24px;
    opacity: .35;
}
.section-block__card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 5px;
}
.section-block__card-title a { color: var(--c-text); text-decoration: none; }
.section-block__card-title a:hover { color: var(--c-primary); }
.section-block__card-meta {
    font-size: 11px;
    color: var(--c-text-muted);
}

@media (max-width: 767.98px) {
    .section-block__title { font-size: 18px; }
    .section-block__featured-title { font-size: 18px; }
    .section-block__cards { grid-template-columns: repeat(2, 1fr); }
    .section-block__list-thumb { flex-basis: 72px; width: 72px; height: 54px; }
}
@media (max-width: 480px) {
    .section-block__cards { grid-template-columns: 1fr; }
}

/* 23. Accessibility — keyboard focus + contrast notes -----------------
 *
 * Contrast check (WCAG AA, 4.5:1 minimum for normal text, 3:1 for large):
 *   --c-text        #2D2824 on #FFF → 15.4:1  (body text)
 *   --c-text-muted  #6F6439 on #FFF →  5.3:1  (meta/timestamps, AA OK)
 *   --c-primary     #D4521A on #FFF →  4.6:1  (orange, links)
 *
 * Interactive controls get a 2px --c-primary outline on :focus-visible so
 * keyboard users can always see what has focus. The outline uses
 * `outline-offset: 2px` so it never merges with borders on small buttons.
 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--c-primary);
    outline-offset: 2px;
    border-radius: 2px;
}
/* Remove the default outline only where :focus-visible replaces it.
   Always keep :focus fallback for browsers without :focus-visible support. */
a:focus,
button:focus {
    outline: none;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

/* 24. Search box (header + homepage variants) ------------------------- */
.search-box {
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--c-divider);
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}
.search-box:focus-within {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(212, 82, 26, 0.18);
}
.search-box__input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0 12px;
    font: inherit;
    color: var(--c-text);
    outline: none;
}
.search-box__input::placeholder {
    color: var(--c-text-muted);
    opacity: 1;
}
.search-box__submit {
    flex: 0 0 auto;
    border: 0;
    background: var(--c-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    padding: 0 12px;
    font: inherit;
    font-weight: 600;
    transition: background-color .15s;
}
.search-box__submit:hover {
    background: var(--c-primary-dark);
}
.search-box__submit svg { display: block; }

/* ---------------------------------------------------------------------------
 * Rich-text body (article detail, about page)
 *
 * The admin authors these via Summernote. Summernote marks float choices
 * with inline `style="float:left"`, with `.float-left` / `.float-right`
 * utility classes, or on older builds with `align="left"`. We support all
 * three so the author's intent carries over to the public page.
 *
 * The trailing `clear: both` paragraph trick is pushed onto the parent
 * container via `overflow: auto` — so the container grows to contain the
 * floated image rather than collapsing around the text only.
 * ------------------------------------------------------------------------- */
.article-body,
.about-body {
    overflow: hidden; /* contains floated images so the container grows */
}
.article-body img,
.about-body img {
    max-width: 100%;
    height: auto;
    border-radius: 2px;
}
.article-body img[style*="float: left"],
.article-body img[style*="float:left"],
.article-body img.float-left,
.article-body img[align="left"],
.about-body img[style*="float: left"],
.about-body img[style*="float:left"],
.about-body img.float-left,
.about-body img[align="left"] {
    float: left;
    margin: 4px 20px 12px 0;
    max-width: 50%;
}
.article-body img[style*="float: right"],
.article-body img[style*="float:right"],
.article-body img.float-right,
.article-body img[align="right"],
.about-body img[style*="float: right"],
.about-body img[style*="float:right"],
.about-body img.float-right,
.about-body img[align="right"] {
    float: right;
    margin: 4px 0 12px 20px;
    max-width: 50%;
}
/* Small screens: wrapping sits badly on narrow columns — drop back to
 * block so the image takes full width and text flows normally below. */
@media (max-width: 600px) {
    .article-body img[style*="float"],
    .article-body img.float-left,
    .article-body img.float-right,
    .about-body img[style*="float"],
    .about-body img.float-left,
    .about-body img.float-right {
        float: none;
        margin: 12px 0;
        max-width: 100%;
    }
}

/* Header variant — sits in the .site-header__actions slot. Generous width
   on desktop so the full query stays visible while typing; collapses
   progressively and finally becomes icon-only on very narrow screens. */
.search-box--header {
    width: 420px;
    max-width: 100%;
    height: 38px;
}
.search-box--header .search-box__input {
    height: 100%;
    font-size: 14px;
}
.search-box--header .search-box__submit {
    width: 44px;
}
.search-box--header .search-box__submit-label { display: none; }

@media (max-width: 991.98px) {
    .search-box--header {
        width: 320px;
    }
}
@media (max-width: 767.98px) {
    .search-box--header {
        width: 220px;
    }
}
@media (max-width: 480px) {
    .search-box--header {
        width: 44px;
    }
    .search-box--header .search-box__input {
        display: none;
    }
}

/* Homepage variant — wide, prominent block above the hero */
.search-box--homepage {
    width: 100%;
    max-width: 720px;
    margin: 0 auto 24px;
    height: 52px;
    border-radius: 6px;
    border-width: 2px;
}
.search-box--homepage .search-box__input {
    font-size: 16px;
    padding: 0 16px;
}
.search-box--homepage .search-box__submit {
    padding: 0 20px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
@media (max-width: 480px) {
    .search-box--homepage {
        height: 44px;
    }
    .search-box--homepage .search-box__submit-label { display: none; }
    .search-box--homepage .search-box__submit {
        padding: 0 16px;
    }
}

/* Search results empty/short state messaging */
.search-empty {
    margin-bottom: 16px;
}
