:root {
    --bg: #f4efe6;
    --paper: rgba(255, 250, 240, 0.96);
    --ink: #18202a;
    --muted: #5b6570;
    --line: rgba(24, 32, 42, 0.12);
    --accent: #0f766e;
    --accent-soft: rgba(15, 118, 110, 0.12);
    --warn: #b45309;
    --danger: #b91c1c;
    --shadow: 0 18px 45px rgba(24, 32, 42, 0.08);
    --serif: "Merriweather", Georgia, "Times New Roman", serif;
    --sans: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 28%),
        radial-gradient(circle at bottom right, rgba(15, 118, 110, 0.12), transparent 30%),
        var(--bg);
    font-family: var(--sans);
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; border-radius: 16px; }

.page-shell, .admin-shell { min-height: 100vh; }
.page-shell { padding: 32px 24px 48px; }
.site-header, .section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}
.site-header h1, .section-head h1, .auth-card h1 {
    margin: 4px 0 0;
    font-family: var(--serif);
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.05;
}
.eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    color: var(--muted);
}
.site-nav, .admin-nav { display: flex; gap: 12px; flex-wrap: wrap; }
.site-nav a, .admin-nav a, .group-list a, .quick-links a, .pager a {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,0.72);
}
.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255,255,255,0.78);
    cursor: pointer;
}
.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--ink);
    border-radius: 999px;
}
.group-list a.is-active, .pager a.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.mobile-feed-drawer {
    display: none;
}
.mobile-feed-drawer-card {
    display: grid;
    gap: 10px;
}
.mobile-feed-section {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
}
.mobile-feed-section h2 {
    margin: 0 0 10px;
    font-size: 16px;
}
.mobile-feed-nav {
    display: grid;
    gap: 8px;
}
.mobile-feed-nav a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
}

.flash {
    margin-bottom: 20px;
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid var(--line);
}
.flash-success { background: rgba(16, 185, 129, 0.1); }
.flash-error { background: rgba(239, 68, 68, 0.08); }

.feed-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 240px;
    gap: 24px;
    align-items: start;
}
.sidebar-card, .panel, .post-card, .filter-panel, .batch-panel, .metric-card, .auth-card {
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: 24px;
}
.sidebar-card, .panel, .auth-card { padding: 20px; }
.sidebar-card h2, .panel h2 { margin: 0 0 16px; font-size: 20px; }
.group-list, .quick-links { display: flex; flex-direction: column; gap: 10px; }
.stats-card dl { margin: 0; display: grid; gap: 12px; }
.stats-card div { display: flex; justify-content: space-between; gap: 12px; }
.stats-card dt { color: var(--muted); }

.feed-main { min-width: 0; }
.filter-panel { padding: 18px; margin-bottom: 16px; }
.filter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.filter-actions, .batch-actions, .button-row, .post-actions, .table-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.filter-actions { margin-top: 14px; }
.batch-panel { padding: 16px 18px; margin-bottom: 16px; }

input[type="text"], input[type="search"], input[type="password"], input[type="url"], input[type="date"], input[type="number"], select, textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.82);
    font: inherit;
    color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
label span, fieldset legend {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--muted);
}
.checkbox-row { display: flex; align-items: center; gap: 10px; }
.checkbox-grid { display: grid; gap: 8px; }
.inline-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border: 0;
    border-radius: 14px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    font: inherit;
}
.button-light { background: rgba(255,255,255,0.86); color: var(--ink); border: 1px solid var(--line); }
.button-accent { background: var(--accent); color: #fff; }
.button-danger { background: var(--danger); color: #fff; }
.button-icon {
    min-width: 38px;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 18px;
    line-height: 1;
}

.posts { display: grid; gap: 18px; }
.post-card {
    position: relative;
    padding: 22px;
    overflow: hidden;
}
.post-card.is-read { opacity: 0.88; }
.post-card.is-hidden { border-color: rgba(180, 83, 9, 0.4); }
.post-select { position: absolute; top: 18px; left: 18px; }
.post-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-left: 32px;
    margin-bottom: 18px;
}
.post-head h3 {
    margin: 6px 0;
    font-family: var(--serif);
    font-size: clamp(22px, 3vw, 34px);
}
.post-head h3 a {
    color: inherit;
    text-decoration: none;
}
.post-head h3 a:hover {
    color: var(--accent);
}
.meta-top, .meta-bottom, .sidebar-note { color: var(--muted); margin: 0; }
.meta-top {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.post-badges { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.badge {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(24, 32, 42, 0.06);
    border: 1px solid var(--line);
    font-size: 13px;
}
.badge-accent { background: var(--accent-soft); color: var(--accent); border-color: rgba(15, 118, 110, 0.2); }
.badge-muted { color: var(--muted); }
.badge-warning { background: rgba(180, 83, 9, 0.12); color: var(--warn); }
.post-body {
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.75;
}
.post-body-content {
    overflow-wrap: anywhere;
}
.post-card:not(.is-expanded) .post-body-content {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
.post-extra {
    margin-top: 18px;
}
.post-card:not(.is-expanded) .post-extra {
    display: none;
}
.post-toggle {
    display: flex;
    width: fit-content;
    margin-top: 12px;
    margin-left: auto;
    margin-right: auto;
}
.embedded-posts {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}
.embedded-post-card {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.8);
}
.embedded-post-head h4 {
    margin: 6px 0 0;
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.25;
}
.embedded-post-head h4 a {
    color: inherit;
    text-decoration: none;
}
.embedded-post-head h4 a:hover {
    color: var(--accent);
}
.embedded-post-meta {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}
.embedded-post-body {
    margin-top: 10px;
    font-family: var(--serif);
    font-size: 16px;
    line-height: 1.65;
}
.embedded-post-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.embedded-post-media {
    margin-top: 12px;
}
.embedded-post-children {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    padding-left: 10px;
    border-left: 2px solid rgba(15, 118, 110, 0.18);
}
.media-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.link-list {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}
.link-list a {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.72);
    border: 1px solid var(--line);
    overflow-wrap: anywhere;
}
.post-actions { margin-top: 18px; }
.post-action-form {
    margin: 0;
}
.favorite-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(180, 152, 73, 0.6);
    cursor: pointer;
    font: inherit;
    font-size: 24px;
    line-height: 1;
}
.favorite-toggle.is-active {
    color: #d4a017;
}
.favorite-toggle:hover {
    color: #c68b00;
}
.pin-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(15, 118, 110, 0.55);
    cursor: pointer;
}
.pin-toggle svg {
    width: 18px;
    height: 18px;
    display: block;
}
.pin-toggle.is-active {
    color: var(--accent);
}
.pin-toggle:hover {
    color: #0b5e57;
}
.mobile-label {
    display: none;
}
.desktop-label {
    display: inline;
}
.scroll-top {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 30;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(15, 118, 110, 0.25);
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    box-shadow: 0 12px 30px rgba(15, 118, 110, 0.28);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.empty-state {
    padding: 28px;
    text-align: center;
    border: 1px dashed var(--line);
    border-radius: 24px;
    background: rgba(255,255,255,0.72);
}
.pager {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 18px;
    flex-wrap: wrap;
}

.admin-body { background: #e9edf3; }
.admin-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.admin-sidebar {
    min-height: 100vh;
    padding: 18px 14px;
    background: #0f172a;
    color: #f8fafc;
    position: sticky;
    top: 0;
}
.admin-brand {
    display: block;
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.05;
    margin-bottom: 16px;
}
.admin-nav { flex-direction: column; gap: 6px; }
.admin-nav a { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.08); }
.logout-form { margin-top: 16px; }
.admin-main { padding: 18px; }
.admin-grid {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 14px;
}
.admin-form { display: grid; gap: 10px; }
.single-column { max-width: 360px; }
.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}
.metric-card {
    padding: 14px;
    display: grid;
    gap: 6px;
}
.metric-card strong { font-size: 26px; font-family: var(--serif); line-height: 1; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
    padding: 8px 8px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}
.code-block {
    padding: 12px;
    border-radius: 12px;
    background: #111827;
    color: #e5e7eb;
    overflow: auto;
}
.auth-card {
    max-width: 360px;
    margin: 28px auto;
}

.admin-body {
    font-size: 14px;
    line-height: 1.35;
}
.admin-body .section-head {
    gap: 12px;
    margin-bottom: 14px;
}
.admin-body .section-head h1,
.admin-body .auth-card h1 {
    font-size: clamp(22px, 2.4vw, 30px);
}
.admin-body .eyebrow {
    font-size: 10px;
}
.admin-body .panel,
.admin-body .metric-card,
.admin-body .auth-card {
    border-radius: 16px;
}
.admin-body .panel,
.admin-body .auth-card {
    padding: 14px;
}
.admin-body .panel h2 {
    margin: 0 0 12px;
    font-size: 16px;
}
.admin-body .site-nav a,
.admin-body .admin-nav a,
.admin-body .pager a {
    padding: 7px 10px;
    border-radius: 12px;
    font-size: 13px;
}
.admin-body input[type="text"],
.admin-body input[type="search"],
.admin-body input[type="password"],
.admin-body input[type="url"],
.admin-body input[type="date"],
.admin-body input[type="number"],
.admin-body select,
.admin-body textarea {
    padding: 9px 11px;
    border-radius: 10px;
    font-size: 14px;
}
.admin-body textarea {
    min-height: 84px;
}
.admin-body label span,
.admin-body fieldset legend {
    margin-bottom: 5px;
    font-size: 12px;
}
.admin-body .button {
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
}
.admin-body .button-row,
.admin-body .table-actions,
.admin-body .filter-actions {
    gap: 6px;
}
.admin-body .table {
    font-size: 13px;
}
.admin-body .table small {
    font-size: 11px;
}
.admin-body .flash {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
}

.site-body {
    font-size: 14px;
    line-height: 1.4;
}
.site-body .page-shell {
    padding: 18px 16px 24px;
}
.site-body .site-header {
    gap: 12px;
    margin-bottom: 14px;
}
.site-body .site-header h1 {
    font-size: clamp(24px, 2.8vw, 34px);
}
.site-body .site-nav,
.site-body .group-list,
.site-body .quick-links,
.site-body .pager {
    gap: 6px;
}
.site-body .site-nav a,
.site-body .group-list a,
.site-body .quick-links a,
.site-body .pager a {
    padding: 7px 10px;
    border-radius: 12px;
    font-size: 13px;
}
.site-body .feed-layout {
    grid-template-columns: 190px minmax(0, 1fr) 190px;
    gap: 14px;
}
.site-body .sidebar-card,
.site-body .filter-panel,
.site-body .batch-panel,
.site-body .post-card {
    border-radius: 16px;
}
.site-body .sidebar-card {
    padding: 14px;
}
.site-body .sidebar-card h2 {
    margin-bottom: 10px;
    font-size: 16px;
}
.site-body .stats-card dl {
    gap: 8px;
}
.site-body .filter-panel {
    padding: 12px;
    margin-bottom: 10px;
}
.site-body .filter-grid {
    gap: 8px;
}
.site-body .filter-actions,
.site-body .batch-actions,
.site-body .post-actions {
    gap: 6px;
}
.site-body .filter-actions {
    margin-top: 10px;
}
.site-body .batch-panel {
    padding: 10px 12px;
    margin-bottom: 10px;
}
.site-body input[type="text"],
.site-body input[type="search"],
.site-body input[type="password"],
.site-body input[type="url"],
.site-body input[type="date"],
.site-body input[type="number"],
.site-body select,
.site-body textarea {
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 13px;
}
.site-body label span,
.site-body fieldset legend {
    margin-bottom: 5px;
    font-size: 12px;
}
.site-body .button {
    padding: 8px 11px;
    border-radius: 10px;
    font-size: 12px;
}
.site-body .button-icon {
    min-width: 32px;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 16px;
}
.site-body .posts {
    gap: 10px;
}
.site-body .post-card {
    padding: 14px;
}
.site-body .post-select {
    top: 12px;
    left: 12px;
}
.site-body .post-head {
    gap: 10px;
    padding-left: 24px;
    margin-bottom: 10px;
}
.site-body .post-head h3 {
    margin: 3px 0;
    font-size: clamp(18px, 2.2vw, 24px);
}
.site-body .meta-top,
.site-body .meta-bottom,
.site-body .sidebar-note {
    font-size: 12px;
}
.site-body .meta-top {
    font-size: 15px;
    font-weight: 800;
}
.site-body .post-badges {
    gap: 5px;
}
.site-body .badge {
    padding: 5px 8px;
    font-size: 11px;
}
.site-body .post-body {
    font-size: 15px;
    line-height: 1.55;
}
.site-body .post-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.site-body .post-toggle {
    display: flex;
    width: fit-content;
    margin-top: 8px;
    margin-left: auto;
    margin-right: auto;
}
.site-body .embedded-posts {
    gap: 8px;
    margin-top: 10px;
}
.site-body .embedded-post-card {
    padding: 10px;
    border-radius: 12px;
}
.site-body .embedded-post-head h4 {
    font-size: 15px;
    line-height: 1.2;
}
.site-body .embedded-post-meta {
    font-size: 11px;
}
.site-body .embedded-post-body {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.5;
}
.site-body .embedded-post-media {
    margin-top: 8px;
}
.site-body .embedded-post-children {
    gap: 8px;
    margin-top: 8px;
    padding-left: 8px;
}
.site-body .media-grid {
    margin-top: 10px;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.site-body .link-list {
    gap: 6px;
    margin-top: 10px;
}
.site-body .link-list a {
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 12px;
}
.site-body .post-body a:hover,
.site-body .link-list a:hover {
    opacity: 0.82;
}
.site-body .post-actions {
    margin-top: 10px;
}
.site-body .empty-state {
    padding: 16px;
    border-radius: 16px;
    font-size: 13px;
}
.site-body .flash {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
}

.site-body .page-shell {
    max-width: 1320px;
    margin: 0 auto;
    padding: 16px 24px 36px;
}
.site-body .site-header {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}
.site-body .site-header-top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
}
.site-body .site-branding {
    display: grid;
    gap: 6px;
    text-align: center;
}
.site-body .site-branding h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(54px, 6vw, 82px);
    line-height: 0.95;
    letter-spacing: -0.045em;
}
.site-body .site-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.site-body .site-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
}
.site-body .site-nav a {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.site-body .site-nav a:hover {
    color: var(--accent);
}
.site-body .feed-page {
    display: grid;
    gap: 22px;
}
.site-body .desktop-news-shell {
    display: grid;
    gap: 16px;
}
.site-body .desktop-topic-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    padding: 8px 0 10px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.site-body .desktop-topic-row {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.site-body .desktop-topic-row-right {
    justify-content: flex-end;
}
.site-body .desktop-topic-label {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.site-body .desktop-topic-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    min-width: 0;
}
.site-body .desktop-topic-links a {
    padding: 0;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 16px;
    line-height: 1.3;
}
.site-body .desktop-topic-links a.is-active,
.site-body .desktop-topic-links a:hover {
    color: var(--accent);
    border-bottom-color: currentColor;
}
.site-body .desktop-filter-panel {
    margin: 0;
    padding: 0 0 14px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}
.site-body .desktop-filter-panel .filter-grid {
    grid-template-columns: 1.7fr repeat(5, minmax(0, 1fr));
    gap: 10px;
}
.site-body .desktop-filter-panel .filter-actions {
    margin-top: 12px;
    gap: 14px;
}
.site-body .desktop-filter-panel label {
    font-size: 12px;
}
.site-body .news-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 28px;
    align-items: start;
    padding: 2px 0 28px;
    border-bottom: 1px solid var(--line);
}
.site-body .news-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}
.site-body .news-section-heading h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: 26px;
    line-height: 1;
}
.site-body .news-section-heading a {
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.site-body .featured-story {
    display: grid;
    gap: 14px;
}
.site-body .featured-story-media {
    display: block;
    min-height: 360px;
    max-height: 460px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.55);
}
.site-body .featured-story-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}
.site-body .featured-story-meta {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}
.site-body .featured-story-title {
    margin: 0;
}
.site-body .featured-story-title a {
    font-family: var(--serif);
    font-size: clamp(32px, 3.3vw, 54px);
    line-height: 1.04;
    color: var(--ink);
}
.site-body .featured-story-title a:hover {
    color: var(--accent);
}
.site-body .featured-story-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.site-body .featured-story-excerpt {
    max-width: 50ch;
    margin: 0;
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.7;
}
.site-body .featured-story-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}
.site-body .featured-story-links a {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.site-body .headline-board {
    display: grid;
    gap: 0;
}
.site-body .headline-board-empty {
    padding: 16px 0 0;
    color: var(--muted);
}
.site-body .headline-board-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-body .headline-board-list li {
    margin: 0;
}
.site-body .headline-board-list a {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.site-body .headline-board-list a:hover strong {
    color: var(--accent);
}
.site-body .headline-board-time {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
}
.site-body .headline-board-copy {
    min-width: 0;
}
.site-body .headline-board-copy strong {
    display: block;
    font-family: var(--serif);
    font-size: 19px;
    line-height: 1.28;
}
.site-body .headline-board-copy span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}
.site-body .feed-layout {
    grid-template-columns: 220px minmax(0, 1fr) 220px;
    gap: 24px;
    padding-top: 4px;
}
.site-body .sidebar-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}
.site-body .desktop-sidebar,
.site-body .desktop-right-sidebar {
    position: sticky;
    top: 22px;
}
.site-body .sidebar-card h2 {
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    font-family: var(--serif);
    font-size: 24px;
}
.site-body .group-list,
.site-body .quick-links {
    gap: 0;
}
.site-body .group-list a,
.site-body .quick-links a {
    padding: 10px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    font-family: var(--serif);
    font-size: 17px;
}
.site-body .group-list a.is-active {
    background: transparent;
    color: var(--accent);
    border-color: var(--line);
}
.site-body .stats-card {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.site-body .stats-card h3 {
    margin: 0 0 12px;
    font-family: var(--serif);
    font-size: 24px;
}
.site-body .stats-card dl {
    gap: 10px;
}
.site-body .feed-main {
    min-width: 0;
}
.site-body .feed-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    margin: 0 0 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}
.site-body .feed-section-head h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: 30px;
}
.site-body .feed-section-note {
    max-width: 38ch;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}
.site-body .batch-panel {
    margin-bottom: 0;
    padding: 12px 0 10px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}
.site-body .batch-actions {
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.site-body .posts {
    gap: 0;
}
.site-body .posts > .post-card:first-child,
.site-body .posts > .post-card:first-child.is-read,
.site-body .posts > .post-card:first-child.is-hidden {
    border-top: 1px solid var(--line);
}
.site-body .post-card {
    padding: 18px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}
.site-body .post-card.is-hidden {
    border-bottom-color: rgba(180, 83, 9, 0.35);
}
.site-body .post-head {
    align-items: start;
    gap: 16px;
    padding-left: 0;
    margin-bottom: 12px;
}
.site-body .post-head h3 {
    margin: 4px 0 0;
    font-size: clamp(28px, 2.55vw, 42px);
    line-height: 1.08;
}
.site-body .meta-top {
    font-size: 22px;
    font-weight: 800;
}
.site-body .meta-bottom,
.site-body .sidebar-note {
    font-size: 13px;
    line-height: 1.5;
}
.site-body .post-badges {
    max-width: 220px;
    justify-content: flex-end;
}
.site-body .post-body {
    max-width: 64ch;
    font-size: 17px;
    line-height: 1.72;
}
.site-body .post-toggle {
    margin-top: 12px;
}
.site-body .embedded-post-card {
    background: rgba(255, 255, 255, 0.54);
    border-radius: 0;
}
.site-body .embedded-post-head h4 {
    font-size: 18px;
}
.site-body .post-actions {
    margin-top: 12px;
    gap: 8px;
}
.site-body .button {
    border-radius: 999px;
}

@media (max-width: 1200px) {
    .site-body .desktop-topic-strip {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .site-body .desktop-topic-row-right {
        justify-content: flex-start;
    }
    .site-body .desktop-filter-panel .filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .site-body .news-showcase {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .site-body .desktop-sidebar,
    .site-body .desktop-right-sidebar {
        position: static;
    }
    .site-body .feed-section-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .site-body .feed-layout { grid-template-columns: 1fr; }
    .site-body .feed-main { order: 1; }
    .site-body .feed-layout > .sidebar-card:not(.right-sidebar) { order: 2; }
    .site-body .right-sidebar { order: 3; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; min-height: auto; }
    .admin-grid, .metric-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    body.site-body {
        background: #f7f1e7;
    }
    .site-body .page-shell {
        padding: 0;
    }
    .admin-main { padding: 10px; }
    .site-body.menu-open {
        overflow: hidden;
    }
    .site-body .desktop-news-shell {
        display: none;
    }
    .site-body .site-header {
        position: sticky;
        top: 0;
        z-index: 20;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "brand top";
        align-items: center;
        gap: 10px;
        margin: 0;
        padding: 9px 12px;
        border-top: 0;
        border-left: 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
        box-shadow: 0 4px 18px rgba(24, 32, 42, 0.05);
        background: rgba(251, 246, 238, 0.98);
        backdrop-filter: blur(10px);
    }
    .site-body .site-header-top {
        grid-area: top;
        justify-content: flex-end;
        gap: 8px;
    }
    .site-body .site-branding {
        grid-area: brand;
        min-width: 0;
        text-align: left;
    }
    .site-body .site-branding h1 {
        font-size: 19px;
        line-height: 1.05;
    }
    .site-body .site-branding .eyebrow,
    .site-body .site-subtitle {
        display: none;
    }
    .site-body .menu-toggle {
        display: inline-block;
        flex-shrink: 0;
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }
    .site-body .site-nav {
        display: none !important;
    }
    .site-body .mobile-feed-drawer {
        position: fixed;
        inset: 57px 0 0;
        z-index: 25;
        background: rgba(247, 241, 231, 0.98);
    }
    .site-body.menu-open .mobile-feed-drawer {
        display: block;
    }
    .site-body .mobile-feed-drawer-card {
        height: 100%;
        overflow: auto;
        padding: 0;
    }
    .site-body .mobile-feed-section {
        padding: 12px;
        border: 0;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }
    .site-body .mobile-feed-section h2 {
        margin-bottom: 8px;
        font-size: 14px;
    }
    .site-body .mobile-feed-nav {
        gap: 6px;
    }
    .site-body .mobile-feed-nav a {
        padding: 8px 10px;
        border-radius: 12px;
        font-size: 13px;
    }
    .site-body .mobile-filter-panel {
        margin: 0;
        padding: 0;
        border: 0;
        box-shadow: none;
        background: transparent;
    }
    .site-body .desktop-sidebar,
    .site-body .desktop-right-sidebar,
    .site-body .desktop-filter-panel {
        display: none;
    }
    .site-body .filter-grid,
    .site-body .inline-grid { grid-template-columns: 1fr; }
    .site-body .feed-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }
    .site-body .feed-main {
        width: 100%;
        max-width: none;
        margin: 0;
    }
    .site-body .batch-panel {
        padding: 0;
        margin: 0;
        border: 0;
        box-shadow: none;
        background: transparent;
    }
    .site-body .batch-actions,
    .site-body .post-select {
        display: none;
    }
    .site-body .sidebar-card,
    .site-body .filter-panel,
    .site-body .batch-panel,
    .site-body .post-card {
        border: 0;
        border-radius: 0;
    }
    .site-body .filter-panel,
    .site-body .batch-panel,
    .site-body .post-card {
        padding: 12px;
    }
    .site-body .sidebar-card h2 {
        margin-bottom: 8px;
        font-size: 14px;
    }
    .site-body .group-list,
    .site-body .quick-links {
        gap: 5px;
    }
    .site-body .group-list a,
    .site-body .quick-links a,
    .site-body .pager a {
        padding: 6px 8px;
        font-size: 12px;
    }
    .site-body .filter-actions,
    .site-body .batch-actions,
    .site-body .post-actions {
        gap: 5px;
    }
    .site-body .posts {
        gap: 0;
    }
    .site-body .post-card {
        box-shadow: none;
        background: rgba(255, 250, 242, 0.78);
        border-bottom: 1px solid rgba(24, 32, 42, 0.1);
    }
    .site-body .post-head {
        padding-left: 0;
        flex-direction: column;
        gap: 6px;
        margin-bottom: 8px;
    }
    .site-body .post-badges {
        gap: 5px;
    }
    .site-body .badge {
        padding: 5px 8px;
        font-size: 11px;
    }
    .site-body .post-head h3 {
        font-size: 19px;
        line-height: 1.18;
    }
    .site-body .meta-top {
        font-size: 15px;
    }
    .site-body .meta-bottom {
        font-size: 11px;
    }
    .site-body .post-body {
        font-size: 15px;
        line-height: 1.55;
    }
    .site-body .post-toggle {
        margin-top: 10px;
    }
    .site-body .post-extra {
        margin-top: 12px;
    }
    .site-body .embedded-post-card {
        padding: 10px;
        border-radius: 14px;
    }
    .site-body .embedded-post-head h4 {
        font-size: 16px;
    }
    .site-body .embedded-post-body {
        font-size: 14px;
        line-height: 1.55;
    }
    .site-body .media-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .site-body .button {
        padding: 7px 9px;
        font-size: 12px;
    }
    .site-body .button-icon {
        min-width: 30px;
        font-size: 15px;
    }
    .site-body .post-actions {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px;
        margin-top: 10px;
    }
    .site-body .post-actions .post-action-form {
        flex: 0 0 auto;
    }
    .site-body .post-actions .button {
        width: auto;
        min-height: 28px;
        padding: 5px 8px;
        border-radius: 9px;
        font-size: 11px;
        line-height: 1.15;
        white-space: nowrap;
    }
    .site-body .post-actions .button-light {
        background: rgba(255, 255, 255, 0.72);
    }
    .site-body .favorite-toggle {
        min-width: 22px;
        font-size: 22px;
    }
    .site-body .pin-toggle {
        width: 24px;
        height: 24px;
    }
    .site-body .pin-toggle svg {
        width: 16px;
        height: 16px;
    }
    .site-body .desktop-label {
        display: none;
    }
    .site-body .mobile-label {
        display: inline;
    }
    .site-body .empty-state {
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        margin: 0;
    }
    .site-body .scroll-top {
        right: 12px;
        bottom: 12px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}
