﻿:root {
    color-scheme: light;
    --bg: #f3f5f1;
    --panel: #ffffff;
    --text: #161b16;
    --muted: #69706a;
    --line: #dfe5dc;
    --dark: #111827;
    --footer-bg: #242424;
    --link: #075f9f;
    --accent: #1b5e20;
    --accent-2: #d7a928;
    --surface: #f8faf6;
    --shadow-sm: 0 1px 2px rgba(17, 24, 39, .06);
    --shadow-md: 0 14px 32px rgba(17, 24, 39, .11);
    --radius: 8px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}
body {
    background:
        linear-gradient(180deg, rgba(27,94,32,.06), rgba(27,94,32,0) 260px),
        var(--bg);
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    line-height: 1.65;
}
a {
    color: var(--link);
    text-decoration: none;
    text-underline-offset: 3px;
}
a:hover { text-decoration: underline; }
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(215,169,40,.55);
    outline-offset: 3px;
}
button,
input,
a {
    touch-action: manipulation;
}
img {
    max-width: 100%;
    height: auto;
}
.wrap {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.site-strip {
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid rgba(31,41,55,.08);
    color: #5d665e;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
}
.site-strip .wrap {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.search-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid #cfd8cc;
    border-radius: 999px;
    background: #fff;
    color: var(--accent);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.search-trigger:hover {
    background: #edf5ea;
    border-color: rgba(27,94,32,.34);
    box-shadow: 0 8px 20px rgba(17,24,39,.08);
}
.search-icon {
    position: relative;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 999px;
}
.search-icon::after {
    content: "";
    position: absolute;
    right: -6px;
    bottom: -5px;
    width: 8px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transform: rotate(45deg);
}
.search-modal[hidden] {
    display: none;
}
.search-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: start center;
    padding: clamp(72px, 12vh, 120px) 18px 24px;
}
.search-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17,24,39,.62);
}
.search-dialog {
    position: relative;
    z-index: 1;
    width: min(620px, 100%);
    padding: clamp(22px, 4vw, 32px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 24px 70px rgba(0,0,0,.26);
}
.search-dialog h2 {
    margin: 0 46px 18px 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(24px, 5vw, 34px);
    line-height: 1.15;
}
.search-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: #111827;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}
.modal-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}
.modal-search-form input {
    min-width: 0;
    width: 100%;
    min-height: 54px;
    padding: 13px 15px;
    border: 1px solid #cfd8cc;
    border-radius: 8px;
    font: inherit;
}
.modal-search-form button {
    min-height: 54px;
    padding: 13px 20px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 800;
}

.topbar {
    background: var(--dark);
    color: #fff;
    border-bottom: 3px solid var(--accent-2);
    box-shadow: 0 16px 34px rgba(17,24,39,.16);
}
.topbar .wrap {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}
.brand {
    flex: 0 0 auto;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
}
.brand span { color: #f0c64a; }
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 48px;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 8px;
    background: rgba(255,255,255,.1);
    color: #fff;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.nav-toggle:hover,
.nav-toggle:active {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.45);
}
.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}
.nav-toggle b {
    margin-left: 4px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
}
.nav {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    align-items: center;
}
.nav a,
.nav-item > a {
    color: rgba(255,255,255,.88);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}
.nav > a,
.nav-item > a,
.nav-html-slot > a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 11px 12px;
    border-radius: 8px;
}
.nav a:hover {
    color: #fff;
    background: rgba(255,255,255,.1);
    text-decoration: none;
}
.nav-item {
    position: relative;
    padding: 12px 0;
    margin: -12px 0;
}
.nav-item.has-children > a::after {
    content: "";
    display: inline-block;
    margin-left: 6px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid rgba(255,255,255,.72);
    vertical-align: middle;
}
.nav-item:not(.has-children) > a::after {
    content: none !important;
    display: none !important;
}
.submenu-toggle {
    display: none;
}
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 20;
    width: max-content;
    min-width: 190px;
    max-width: 260px;
    display: none;
    padding: 10px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}
.submenu a {
    display: block;
    min-height: 44px;
    padding: 12px 13px;
    border-radius: 6px;
    color: #202020;
    font-size: 14px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.submenu a:hover {
    background: #edf5ea;
    color: var(--link);
    text-decoration: none;
}
.nav-item:hover .submenu,
.nav-item:focus-within .submenu {
    display: block;
}
.nav-html-slot {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-html-slot * {
    max-width: 100%;
}

.breadcrumbs {
    margin: 18px 0 0;
    color: var(--muted);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
}
.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.breadcrumbs li {
    min-width: 0;
    display: flex;
    align-items: center;
    max-width: 100%;
}
.breadcrumbs li + li::before {
    content: "/";
    margin-right: 6px;
    color: #94a3b8;
}
.breadcrumbs a,
.breadcrumbs span {
    max-width: 100%;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    overflow-wrap: anywhere;
}
.breadcrumbs span {
    color: #475569;
}

.blog-hero {
    padding: 22px 0 0;
}
.blog-hero-panel {
    min-width: 0;
    padding: clamp(28px, 5vw, 46px);
    background:
        linear-gradient(135deg, rgba(27,94,32,.95), rgba(17,24,39,.95)),
        var(--dark);
    border: 1px solid rgba(255,255,255,.1);
    border-top: 4px solid var(--accent-2);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    color: #fff;
}
.eyebrow {
    color: #f4d36c;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.blog-hero-panel h1 {
    margin: 6px 0 8px;
    color: #fff;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.headline-section {
    padding: 22px 0 0;
}
.frontpage-board {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .9fr);
    gap: 18px;
}
.frontpage-lead,
.frontpage-secondary,
.frontpage-story {
    min-width: 0;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.frontpage-lead {
    position: relative;
    overflow: hidden;
}
.frontpage-lead-media,
.frontpage-story-media {
    display: block;
    overflow: hidden;
    background: #ddd;
}
.frontpage-lead-media {
    aspect-ratio: 4 / 3;
}
.frontpage-lead-media img,
.frontpage-story-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.frontpage-lead-copy {
    padding: 18px;
}
.frontpage-kicker,
.frontpage-story-topline {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}
.frontpage-lead h2,
.frontpage-story h3 {
    margin: 8px 0;
    overflow-wrap: anywhere;
}
.frontpage-lead h2 {
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.05;
}
.frontpage-lead p {
    margin: 0 0 12px;
    color: var(--muted);
}
.frontpage-secondary {
    display: grid;
    gap: 12px;
    padding: 14px;
}
.frontpage-board-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}
.frontpage-board-title span {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}
.frontpage-board-title b {
    color: #111;
    font-size: 16px;
}
.frontpage-story {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
    box-shadow: none;
}
.frontpage-story-media {
    aspect-ratio: 4 / 3;
    border-radius: calc(var(--radius) - 4px);
}
.frontpage-story-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.frontpage-story h3 {
    font-size: 16px;
    line-height: 1.25;
}
.frontpage-story h3 a,
.frontpage-lead h2 a {
    color: inherit;
}
.headline-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.headline-card {
    min-width: 0;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.headline-card h2 {
    margin: 0;
    padding: 14px 14px 12px;
    font-size: 17px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.headline-card h2 a,
.post-copy h2 a,
.compact-card h2 a {
    display: block;
    min-height: 44px;
}
.headline-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    height: auto;
    overflow: hidden;
    background: #ddd;
}
.headline-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.blog-hero-panel p {
    margin: 0;
    color: rgba(255,255,255,.82);
    overflow-wrap: anywhere;
}

.section {
    padding: 28px 0;
}
.compact-section { padding-top: 0; }
.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: start;
}
.content-column,
.blog-sidebar {
    min-width: 0;
}
.section-title {
    margin: 0 0 16px;
    padding: 13px 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-left: 6px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: var(--shadow-sm);
    color: #111;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 800;
}

.post-list {
    display: grid;
    gap: 14px;
    background: transparent;
    border: 0;
}
.no-results {
    padding: 22px;
}
.no-results h2 {
    margin: 0 0 8px;
    font-size: 22px;
}
.no-results p {
    margin: 0 0 14px;
    color: #555;
}
.post-row {
    min-width: 0;
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.post-row:hover {
    border-color: rgba(27,94,32,.32);
    box-shadow: 0 12px 28px rgba(17,24,39,.09);
}
.post-row:last-child { border-bottom: 1px solid var(--line); }
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-top: 16px;
    padding: 14px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    color: var(--link);
    font-weight: 700;
}
.pagination a:hover {
    background: #edf5ea;
    border-color: rgba(27,94,32,.25);
    text-decoration: none;
}
.pagination .current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 700;
}
.post-thumb,
.compact-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    background: #d9dfd4;
    border-radius: 7px;
    overflow: hidden;
}
.post-thumb img,
.compact-thumb img,
.article-hero-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.post-copy {
    min-width: 0;
}
.post-copy h2,
.compact-card h2 {
    margin: -2px 0 8px;
    font-size: 22px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.post-copy p,
.compact-card p {
    margin: 0 0 10px;
    color: #555;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.meta {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: var(--muted);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
}
.meta span {
    min-width: 0;
    overflow-wrap: anywhere;
}
.meta span:first-child {
    color: var(--accent);
    font-weight: 700;
}
.meta a {
    color: inherit;
    font-weight: 700;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.article-meta {
    align-items: center;
    margin: 0 0 8px;
    line-height: 1.35;
}
.article-meta span,
.article-meta a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
}
.article-meta span {
    gap: 4px;
    padding: 0;
}
.article-meta span:last-child {
    color: #69706a;
    font-weight: 700;
}

.blog-sidebar {
    display: grid;
    gap: 20px;
}
.widget {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 18px;
}
.widget h2 {
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    color: #111;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
}
.side-links {
    display: grid;
    gap: 4px;
}
.category-list {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.category-list .category-item {
    min-width: 0;
}
.category-list > .category-item > .category-link {
    border-bottom: 1px solid #edf0eb;
    color: #111827;
}
.category-list > .category-item.has-category-children > .category-link {
    border-bottom-color: transparent;
}
.category-children {
    display: grid;
    gap: 5px;
    margin: 0 0 4px 0;
    padding: 4px 0 2px 18px;
    list-style: none;
    border-left: 2px solid rgba(148, 163, 184, .42);
}
.category-children .category-link {
    position: relative;
    min-height: 34px;
    padding: 6px 8px 6px 0;
    border-bottom: 0;
    border-radius: 6px;
    color: #64748b;
    font-size: 13px;
    background: rgba(148, 163, 184, .08);
}
.category-children .category-link::before {
    content: "";
    position: relative;
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    margin-left: -5px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 3px var(--panel);
    opacity: .8;
}
.category-children .category-link:hover {
    background: rgba(148, 163, 184, .14);
    color: var(--accent);
}
.category-children .category-link b {
    min-width: 24px;
    background: var(--panel);
    color: #64748b;
    font-size: 11px;
}
.side-links a {
    min-width: 0;
    display: flex;
    align-items: center;
    min-height: 44px;
    overflow-wrap: anywhere;
    padding: 9px 0;
    line-height: 1.35;
}
.side-links > a {
    border-bottom: 1px solid #edf0eb;
}
.side-links a:hover {
    color: var(--accent);
    text-decoration: none;
}
.side-links a:last-child { border-bottom: 0; }
.side-links .category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.side-links .category-link span {
    min-width: 0;
    overflow-wrap: anywhere;
}
.side-links .category-link b {
    flex: 0 0 auto;
    min-width: 28px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}
.side-links .category-children .category-link b {
    min-width: 24px;
    background: var(--panel);
    color: #64748b;
    font-size: 11px;
}
.plain-list {
    margin: 0;
    padding-left: 18px;
    color: #555;
}
.plain-list li { margin-bottom: 7px; }
.search-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}
.search-box input {
    min-width: 0;
    width: 100%;
    min-height: 48px;
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: 7px;
    font: inherit;
}
.search-box button {
    border: 0;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 7px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
}

.compact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.compact-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.compact-thumb {
    height: auto;
}
.compact-card h2 {
    font-size: 16px;
    margin: 0 0 6px;
}

.article {
    min-width: 0;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: clamp(22px, 4vw, 36px);
}
.article-body {
    max-width: 760px;
}
.article-title {
    margin: 8px 0 10px;
    color: #111;
    font-size: clamp(32px, 5vw, 50px);
    line-height: 1.1;
    overflow-wrap: anywhere;
}
.article-summary {
    margin: 0 0 16px;
    color: #555;
    font-size: 18px;
    overflow-wrap: anywhere;
}
.article-hero-image {
    width: min(100%, 680px);
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 20px 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 18px;
}
.compact-tags {
    margin: 10px 0 0;
}
.sidebar-tags {
    margin: 0;
}
.tag-list span,
.tag-list a {
    max-width: 100%;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    background: #eef4ee;
    color: var(--accent);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 700;
    overflow-wrap: anywhere;
}
.tag-list a:hover {
    background: #dbeadb;
    text-decoration: none;
}
.article-body p {
    margin: 0 0 16px;
    overflow-wrap: anywhere;
}
.inline-links {
    margin-top: 22px;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.inline-links h2 {
    margin: 0 0 10px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
}
.inline-links ul {
    margin: 0;
    padding-left: 20px;
}
.inline-links li {
    margin-bottom: 6px;
}
.related-block {
    margin-top: 22px;
}
.related-post-list {
    margin-top: 0;
}

.footer {
    margin-top: 28px;
    padding: 38px 0 0;
    background: var(--footer-bg);
    color: rgba(255,255,255,.72);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
}
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 34px;
}
.footer-brand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #fff;
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 12px;
}
.footer-brand span { color: #f0c64a; }
.footer p {
    margin: 0 0 10px;
    max-width: 390px;
}
.footer h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 15px;
}
.footer-links {
    display: grid;
    gap: 8px;
}
.footer-links a {
    min-width: 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: rgba(255,255,255,.72);
    overflow-wrap: anywhere;
}
.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.footer-tags span,
.footer-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    max-width: 100%;
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 4px;
    color: rgba(255,255,255,.82);
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.footer-tags a:hover {
    border-color: rgba(255,255,255,.34);
    color: #fff;
    text-decoration: none;
}
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-top: 26px;
    padding: 14px 0;
    border-top: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.58);
}
.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 24px;
    z-index: 900;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(17,24,39,.22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease, background .18s ease;
}
.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: #123f17;
}
.back-to-top span {
    width: 13px;
    height: 13px;
    border-top: 3px solid currentColor;
    border-left: 3px solid currentColor;
    transform: rotate(45deg) translate(2px, 2px);
}

@media (max-width: 900px) {
    .topbar .wrap {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 12px 0;
    }
    .brand {
        max-width: calc(100% - 94px);
        font-size: 22px;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }
    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }
    .nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 12px 0 4px;
        border-top: 1px solid rgba(255,255,255,.14);
    }
    .topbar.nav-open .nav {
        display: flex;
    }
    .nav > a,
    .nav-html-slot > a,
    .nav-item > a {
        display: block;
        width: 100%;
        min-height: 48px;
        padding: 14px 8px;
        font-size: 15px;
        line-height: 1.35;
    }
    .nav-item {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: center;
        padding: 0;
        margin: 0;
        border-top: 1px solid rgba(255,255,255,.1);
    }
    .nav-item.has-children {
        grid-template-columns: minmax(0, 1fr) 48px;
    }
    .nav-item.has-children > a::after {
        display: none;
    }
    .submenu-toggle {
        display: none;
    }
    .nav-item.has-children > .submenu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 44px;
        border: 1px solid rgba(255,255,255,.18);
        border-radius: 8px;
        background: rgba(255,255,255,.07);
        color: #fff;
        cursor: pointer;
    }
    .submenu-toggle::before {
        content: "";
        width: 8px;
        height: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg) translate(-1px, -1px);
    }
    .nav-item.submenu-open .submenu-toggle::before {
        transform: rotate(225deg) translate(-1px, -1px);
    }
    .submenu {
        position: static;
        grid-column: 1 / -1;
        display: none;
        width: 100%;
        max-width: none;
        margin: 0 0 10px;
        padding: 8px;
        box-shadow: none;
        border-color: rgba(255,255,255,.16);
    }
    .nav-item:hover .submenu,
    .nav-item:focus-within .submenu {
        display: none;
    }
    .nav-item.submenu-open .submenu {
        display: block;
    }
    .submenu a {
        min-height: 46px;
        padding: 12px 14px;
        font-size: 15px;
    }
    .nav-html-slot {
        width: 100%;
        display: block;
        border-top: 1px solid rgba(255,255,255,.1);
    }
    .blog-layout {
        grid-template-columns: 1fr;
    }
    .frontpage-board {
        grid-template-columns: 1fr;
    }
    .compact-grid,
    .headline-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .wrap { width: min(100% - 24px, 1080px); }
    .site-strip .wrap {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding: 10px 0;
    }
    .search-trigger { margin-left: auto; }
    .blog-hero-panel { padding: 24px 20px; }
    .blog-hero-panel h1,
    .article-title {
        font-size: clamp(30px, 10vw, 40px);
    }
    .post-row {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 14px;
    }
    .post-thumb { height: auto; }
    .frontpage-story {
        grid-template-columns: 1fr;
    }
    .compact-grid,
    .headline-grid,
    .compact-card,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .headline-thumb { height: auto; }
    .compact-thumb { height: auto; }
    .search-box { grid-template-columns: 1fr; }
    .modal-search-form { grid-template-columns: 1fr; }
    .footer-bottom { display: grid; }
    .back-to-top {
        right: 14px;
        bottom: 16px;
        width: 46px;
        height: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

