/* ============================================
   Direction B — Modernized editorial
   Same color/type DNA (dark header, paper body, serif headings,
   orange accent), but rebuilt for contemporary long-read reading:
   - Wider single-column layout, generous whitespace
   - Top bar with inline search; no sidebar
   - Large display type, refined article rhythm
   ============================================ */

@import url("tokens.css");

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; }
body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-bg-body);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

a { color: var(--color-text-link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: normal;
  line-height: 1.12;
  color: var(--color-text-primary);
  margin: 0 0 .5em;
  letter-spacing: -.005em;
}

p { margin: 1em 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.reading { max-width: 720px; margin: 0 auto; }

/* ---------- Topbar ---------- */
.topbar {
  background: #2d4a33;          /* groener en lichter */
  color: var(--color-text-header);
  border-bottom: 1px solid #0d1410;
  position: sticky; top: 0; z-index: 50;
}
.topbar .wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 128px;
}
.brand {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--color-text-header);
  letter-spacing: -.01em;
  white-space: nowrap;
  line-height: 1;
}
.brand:hover { text-decoration: none; color: #fff; }
.brand .dot { color: var(--color-text-link); }

.topnav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
  justify-self: center;
}
.topnav > li { position: relative; }
.topnav a {
  display: block;
  padding: 10px 14px;
  color: var(--color-text-header);
  font-size: .82rem;
  font-weight: bold;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 2px;
}
.topnav a:hover, .topnav .active > a {
  color: #fff;
  background: rgba(255,255,255,.07);
  text-decoration: none;
}
.topnav .active > a { box-shadow: inset 0 -2px 0 var(--color-text-link); }

/* Dropdown */
.topnav .has-submenu > a::after {
  content: "▾";
  margin-left: 6px;
  font-size: .7em;
  vertical-align: 1px;
  opacity: .7;
}
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #1c1b1a;
  border: 1px solid #000;
  border-top: 2px solid var(--color-text-link);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
  z-index: 100;
  box-shadow: 0 16px 32px rgba(0,0,0,.35);
}
.topnav .has-submenu:hover > .submenu,
.topnav .has-submenu:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.submenu a {
  padding: 8px 16px;
  font-weight: normal;
  font-size: .82rem;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--color-text-header);
  border-radius: 0;
}
.submenu a:hover { background: rgba(244,144,33,.12); color: #fff; }
.submenu .sep {
  display: block;
  border-top: 1px solid rgba(255,255,255,.08);
  margin: 6px 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -50px;
  left: 16px;
  background: var(--color-text-link);
  color: #000;
  padding: 10px 14px;
  font-size: .8rem;
  font-weight: bold;
  letter-spacing: .08em;
  text-transform: uppercase;
  z-index: 9999;
  transition: top 150ms ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* Visually hidden (for labels) */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Mobile menu toggle (>768px hidden) */
.menu-toggle { display: none; }
@media (max-width: 880px) {
  .topbar .wrap { grid-template-columns: 1fr auto; }
  .topnav, .topbar .search { display: none; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    background: transparent; border: 1px solid rgba(255,255,255,.18);
    color: var(--color-text-header); padding: 8px 12px;
    font: inherit; font-size: .8rem; letter-spacing: .08em;
    text-transform: uppercase; cursor: pointer; border-radius: 2px;
  }
}

.topbar .search {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 2px;
  padding: 4px 4px 4px 10px;
}
.topbar .search input {
  background: transparent;
  border: 0;
  color: var(--color-text-inverse);
  font: inherit;
  font-size: .85rem;
  width: 160px;
  outline: none;
}
.topbar .search input::placeholder { color: #888; }
.topbar .search button {
  background: transparent;
  border: 0;
  color: var(--color-text-header);
  cursor: pointer;
  padding: 4px 8px;
  font-size: .8rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.topbar .search button:hover { color: var(--color-text-link); }

/* ---------- Page sections ---------- */
.page-head {
  padding: 56px 0 28px;
  border-bottom: 1px solid var(--color-border);
}
.page-eyebrow {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #6c6a5e;
  margin: 0 0 14px;
}
.page-title {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  margin: 0;
  line-height: 1.05;
}
.page-sub {
  margin: 14px 0 0;
  font-size: 1.05rem;
  max-width: 640px;
  color: #4a4b48;
}

/* ---------- Home: hero + list ---------- */
.lead-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 40px;
  padding: 44px 0 16px;
}
.lead-card .image {
  background: #eee; border: 1px solid #ddd; padding: 4px;
  height: 380px;
}
.lead-card .image img { width: 100%; height: 100%; object-fit: cover; }
.lead-card .eyebrow {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-text-link);
  margin: 18px 0 6px;
}
.lead-card h2 {
  font-size: 2rem;
  margin: 4px 0 10px;
  line-height: 1.1;
}
.lead-card h2 a { color: var(--color-text-primary); }
.lead-card h2 a:hover { color: var(--color-text-link); text-decoration: none; }
.lead-card .meta {
  font-size: .82rem;
  color: #6c6a5e;
  letter-spacing: .04em;
  margin: 0 0 12px;
}
.lead-card p { margin-top: 0; color: #2e2f2d; }

.lead-secondary { display: flex; flex-direction: column; gap: 28px; padding-top: 0; }
.lead-secondary .item { border-top: 1px solid var(--color-border); padding-top: 18px; }
.lead-secondary .item:first-child { border-top: 0; padding-top: 0; }
.lead-secondary h3 {
  font-size: 1.32rem;
  margin: 4px 0 6px;
  line-height: 1.18;
}
.lead-secondary h3 a { color: var(--color-text-primary); }
.lead-secondary h3 a:hover { color: var(--color-text-link); text-decoration: none; }
.lead-secondary .eyebrow {
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-text-link);
}
.lead-secondary .meta {
  font-size: .8rem;
  color: #6c6a5e;
  margin: 0 0 4px;
}
.lead-secondary p { font-size: .95rem; margin: 4px 0 0; color: #46473f; }

/* ---------- Section divider ---------- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 52px 0 18px;
  border-top: 1px solid #2E2F2D;
  padding-top: 16px;
}
.section-head h2 {
  font-size: 1.1rem;
  margin: 0;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: bold;
}
.section-head a {
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  border-bottom: 1px solid currentColor;
}
.section-head a:hover { color: var(--color-text-link); text-decoration: none; }

/* ---------- News list (single column with thumbnails) ---------- */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-row {
  display: grid;
  grid-template-columns: 240px 1fr auto;
  gap: 28px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--color-border);
}
.news-row .thumb {
  background: #eee; border: 1px solid #ddd; padding: 4px;
  height: 160px;
}
.news-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-row .body h3 {
  font-size: 1.5rem;
  margin: -3px 0 6px;
  line-height: 1.18;
}
.news-row .body h3 a { color: var(--color-text-primary); }
.news-row .body h3 a:hover { color: var(--color-text-link); text-decoration: none; }
.news-row .body .meta {
  font-size: .8rem;
  color: #6c6a5e;
  letter-spacing: .04em;
  margin: 0 0 6px;
}
.news-row .body p { margin: 4px 0 8px; color: #44453f; }
.news-row .body .tags {
  display: flex; gap: 6px; flex-wrap: wrap; list-style: none; padding: 0; margin: 8px 0 0;
}
.news-row .body .tags a {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .1em;
  color: #6c6a5e; border-bottom: 1px solid #c8c9b6; padding-bottom: 1px;
}
.news-row .body .tags a:hover { color: var(--color-text-link); border-color: var(--color-text-link); text-decoration: none; }
.news-row .body .article-type {
  display: inline-block;
  font-size: .7rem;
  font-weight: bold;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--color-text-muted);
  color: #000;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 8px;
  margin-right: 8px;
}
.news-row .nr {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: #b4b4a4;
  padding-top: 4px;
}

/* ---------- Filter row ---------- */
.filter-row {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--color-border);
}
.filter-row .filters {
  display: flex; flex-wrap: wrap; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.filter-row .filters a {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .04em;
  padding: 4px 12px;
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  background: #fff;
  border-radius: 2px;
}
.filter-row .filters a:hover { background: var(--color-bg-header); color: #fff; text-decoration: none; border-color: var(--color-bg-header); }
.filter-row .filters .active {
  background: var(--color-bg-header); color: #fff; border-color: var(--color-bg-header);
}
.filter-row .count {
  margin-left: auto;
  font-size: .82rem;
  color: #6c6a5e;
}

/* ---------- Pagination ---------- */
.pager {
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between; align-items: center;
  padding: 32px 0 64px;
  border-top: 1px solid var(--color-border);
  margin-top: 12px;
}
.pager-info {
  font-size: .82rem;
  letter-spacing: .04em;
  color: #6c6a5e;
}
.pager-list {
  display: flex; flex-wrap: wrap; gap: 4px;
  list-style: none; margin: 0; padding: 0;
  align-items: center;
}
.pager-item a,
.pager-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  font-family: var(--font-heading);
  font-size: .95rem;
  color: var(--color-text-primary);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.pager-item a:hover {
  background: var(--color-bg-header);
  color: #fff;
  border-color: var(--color-bg-header);
  text-decoration: none;
}
.pager-item.is-current span {
  background: var(--color-text-link);
  color: #fff;
  border-color: var(--color-text-link);
  font-weight: 600;
}
.pager-item.is-disabled span {
  color: #b4b4a4;
  background: transparent;
  border-color: transparent;
  cursor: default;
}
.pager-item.pager-ellipsis span {
  border-color: transparent;
  background: transparent;
  color: #b4b4a4;
  padding: 0 4px;
  min-width: 0;
}
.pager-item.pager-prev a,
.pager-item.pager-prev span,
.pager-item.pager-next a,
.pager-item.pager-next span {
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 0 16px;
}
@media (max-width: 560px) {
  .pager { flex-direction: column; align-items: stretch; }
  .pager-list { justify-content: center; }
  .pager-info { text-align: center; }
}

/* ---------- Bio (Brechtje) ---------- */
.bio {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 56px;
  padding: 56px 0;
  align-items: start;
}
.bio .portrait { background:#eee; border: 1px solid #ddd; padding: 4px; aspect-ratio: 4 / 5; }
.bio .portrait img { width: 100%; height: 100%; object-fit: cover; }
.bio h1 {
  font-size: clamp(2.4rem, 3.6vw, 3rem);
  margin: 0 0 18px;
  line-height: 1.05;
}
.bio .lede {
  font-size: 1.32rem;
  line-height: 1.45;
  color: #2a2b28;
  margin: 0 0 18px;
  font-style: italic;
}
.bio p { font-size: 1.05rem; color: #36372f; }
.bio .facts {
  margin: 28px 0 0;
  border-top: 1px solid var(--color-border);
}
.bio .facts dl {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0 24px;
  margin: 0;
}
.bio .facts dt, .bio .facts dd {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  margin: 0;
}
.bio .facts dt {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6c6a5e;
  font-weight: bold;
}
.bio .facts dd { font-size: 1rem; }

/* ---------- Article detail ---------- */
.article-hero {
  position: relative;
  background: #ddd;
  height: 460px;
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-hero .caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 32px;
  font-size: .78rem;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0));
  color: #f0eee5;
  letter-spacing: .04em;
}

.article {
  padding: 40px 0 56px;
}
.article .meta-line {
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center;
  font-size: .82rem;
  letter-spacing: .04em;
  color: #6c6a5e;
  margin-bottom: 16px;
}
.article .meta-line .cat {
  color: var(--color-text-link);
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: .14em;
  font-size: .76rem;
}
.article h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.05;
  margin: 0 0 18px;
}
.article .lede {
  font-size: 1.34rem;
  line-height: 1.5;
  color: #2a2b28;
  font-style: italic;
  margin: 0 0 28px;
  padding-left: 16px;
  border-left: 3px solid var(--color-text-link);
}
.article .body p { font-size: 1.12rem; line-height: 1.75; color: #2e2f2d; }
.article .body p:first-of-type::first-letter {
  font-family: var(--font-heading);
  font-size: 3.6rem;
  line-height: .9;
  float: left;
  margin: 6px 10px 0 -2px;
  color: var(--color-text-primary);
}

.byline {
  display: flex; gap: 14px; align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin: 0 0 28px;
}
.byline .avatar {
  width: 48px; height: 48px;
  background: #ddd; border-radius: 999px;
  background-image: linear-gradient(135deg, #c8c9b6, #898777);
}
.byline .who { font-size: .92rem; }
.byline .who strong { font-family: var(--font-heading); font-size: 1.05rem; font-weight: normal; display: block; }
.byline .who span { color: #6c6a5e; font-size: .82rem; }

.article-foot {
  margin: 32px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--color-border);
  display: grid;
  gap: 18px;
}
.article-foot .group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.article-foot .label {
  font-size: .76rem; letter-spacing: .14em;
  text-transform: uppercase; color: #6c6a5e;
  margin-right: 6px;
}
.article-foot .tags a, .article-foot .share a {
  display: inline-block;
  font-size: .82rem;
  padding: 4px 11px;
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  background: #fff;
  border-radius: 2px;
}
.article-foot .tags a:hover, .article-foot .share a:hover {
  background: var(--color-bg-header);
  color: #fff;
  border-color: var(--color-bg-header);
  text-decoration: none;
}

.also-read { margin: 48px 0 0; }
.also-read .grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.also-read .card .thumb {
  background: #eee; border: 1px solid #ddd; padding: 3px; height: 150px; margin-bottom: 10px;
}
.also-read .card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.also-read .card h4 { font-size: 1.05rem; line-height: 1.25; margin: 0 0 4px; }
.also-read .card h4 a { color: var(--color-text-primary); }
.also-read .card h4 a:hover { color: var(--color-text-link); text-decoration: none; }
.also-read .card .meta { font-size: .76rem; color: #6c6a5e; letter-spacing: .04em; }

/* ---------- Footer ---------- */
.foot {
  background: var(--color-bg-footer);
  color: var(--color-text-header);
  padding: 36px 0 28px;
  margin-top: 60px;
}
.foot .wrap {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.foot .brand { color: var(--color-text-header); font-size: 1.15rem; }
.foot .links {
  display: flex; gap: 16px; list-style: none; padding: 0; margin: 0;
  font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
}
.foot a { color: var(--color-text-header); }
.foot a:hover { color: var(--color-text-link); text-decoration: none; }

/* ---------- Auth (login) ---------- */
.auth-wrap {
  display: flex;
  justify-content: center;
  padding: 72px 0 96px;
}
.auth-card {
  background: var(--color-bg-content);
  border: 1px solid var(--color-border);
  padding: 44px 44px 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
}
.auth-eyebrow {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-text-link);
  margin: 0 0 8px;
  font-weight: bold;
}
.auth-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  line-height: 1.05;
  margin: 0 0 8px;
}
.auth-sub {
  margin: 0 0 28px;
  font-size: .95rem;
  color: #6c6a5e;
}
.auth-alert {
  padding: 10px 14px;
  font-size: .9rem;
  border-left: 3px solid var(--color-text-link);
  margin: 0 0 20px;
  background: #f6f5ec;
}
.auth-alert--error {
  border-left-color: #b1442b;
  background: #fbeee8;
  color: #6e2415;
}
.auth-alert--ok {
  border-left-color: #4a7a3a;
  background: #ecf3e6;
  color: #2c4a22;
}
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field label {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6c6a5e;
  font-weight: bold;
}
.auth-field input {
  font: inherit;
  font-size: 1rem;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--color-border-dark);
  color: var(--color-text-primary);
  border-radius: 2px;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.auth-field input:focus {
  border-color: var(--color-text-link);
  box-shadow: 0 0 0 3px rgba(244,144,33,.18);
}
.auth-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  color: var(--color-text-primary);
  cursor: pointer;
}
.auth-check input { accent-color: var(--color-text-link); }
.auth-submit {
  margin-top: 6px;
  background: var(--color-bg-header);
  color: var(--color-text-inverse);
  font: inherit;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: bold;
  padding: 13px 18px;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}
.auth-submit:hover {
  background: var(--color-text-link);
  color: #000;
}

/* ---------- Admin ---------- */
.admin-head {
  padding: 48px 0 24px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-end;
  justify-content: space-between;
}
.admin-head .titles { min-width: 0; }
.admin-head .eyebrow {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-text-link);
  font-weight: bold;
  margin: 0 0 8px;
}
.admin-head h1 {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  margin: 0;
  line-height: 1.05;
}
.admin-head .clock {
  font-family: var(--font-heading);
  font-size: .95rem;
  color: #6c6a5e;
  letter-spacing: .02em;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 36px 0 8px;
}
.admin-stat {
  background: var(--color-bg-content);
  border: 1px solid var(--color-border);
  padding: 26px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}
.admin-stat:hover {
  border-color: var(--color-text-link);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  text-decoration: none;
}
.admin-stat .label {
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #6c6a5e;
  font-weight: bold;
}
.admin-stat .value {
  font-family: var(--font-heading);
  font-size: 3rem;
  line-height: 1;
  color: var(--color-text-primary);
}
.admin-stat .cta {
  margin-top: 8px;
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-text-link);
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  margin: 40px 0 64px;
}
@media (max-width: 760px) {
  .admin-stats { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; gap: 24px; }
}

.admin-panel {
  background: var(--color-bg-content);
  border: 1px solid var(--color-border);
  padding: 24px 26px 22px;
}
.admin-panel .panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 12px;
  margin: 0 0 14px;
}
.admin-panel .panel-head h2 {
  font-family: var(--font-body);
  font-size: .9rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: bold;
  margin: 0;
}

.admin-links { list-style: none; margin: 0; padding: 0; }
.admin-links li + li { border-top: 1px solid var(--color-border); }
.admin-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  color: var(--color-text-primary);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  transition: color 140ms ease, padding 140ms ease;
}
.admin-links a:hover {
  color: var(--color-text-link);
  text-decoration: none;
  padding-left: 10px;
}
.admin-links a::after {
  content: "→";
  font-family: var(--font-body);
  font-size: 1rem;
  color: #b4b4a4;
  transition: color 140ms ease, transform 140ms ease;
}
.admin-links a:hover::after {
  color: var(--color-text-link);
  transform: translateX(4px);
}

.admin-facts { margin: 0; display: grid; grid-template-columns: 140px 1fr; gap: 0 18px; }
.admin-facts dt, .admin-facts dd {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  margin: 0;
}
.admin-facts > :nth-last-child(-n+2) { border-bottom: 0; }
.admin-facts dt {
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6c6a5e;
  font-weight: bold;
}
.admin-facts dd {
  font-size: .95rem;
  font-family: var(--font-heading);
  color: var(--color-text-primary);
  word-break: break-word;
}

/* ---------- Admin: buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: inherit;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: bold;
  padding: 10px 16px;
  border: 1px solid var(--color-border-dark);
  background: #fff;
  color: var(--color-text-primary);
  cursor: pointer;
  border-radius: 2px;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
  white-space: nowrap;
}
.btn:hover { background: var(--color-bg-header); color: #fff; border-color: var(--color-bg-header); text-decoration: none; }
.btn-sm { padding: 6px 10px; font-size: .7rem; }
.btn-primary { background: var(--color-bg-header); color: #fff; border-color: var(--color-bg-header); }
.btn-primary:hover { background: var(--color-text-link); color: #000; border-color: var(--color-text-link); }
.btn-danger { color: #6e2415; border-color: #c89483; }
.btn-danger:hover { background: #b1442b; color: #fff; border-color: #b1442b; }
.btn-warn { color: #6e4c15; border-color: #d9b97c; background: #fbf3df; }
.btn-warn:hover { background: var(--color-text-link); color: #000; border-color: var(--color-text-link); }
.btn-row { display: inline-flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Admin: notice banner ---------- */
.admin-notice {
  margin: 28px 0 0;
  padding: 18px 22px;
  background: #fbf3df;
  border: 1px solid #d9b97c;
  border-left: 3px solid var(--color-text-link);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.admin-notice .text { font-size: .92rem; color: #4a3c1c; }
.admin-notice strong { font-family: var(--font-heading); font-weight: normal; font-size: 1.05rem; }

/* ---------- Admin: table ---------- */
.admin-table-wrap {
  margin: 28px 0 56px;
  background: var(--color-bg-content);
  border: 1px solid var(--color-border);
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
.admin-table thead th {
  text-align: left;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: bold;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #6c6a5e;
  background: #f5f4ea;
  border-bottom: 1px solid var(--color-border);
  padding: 14px 18px;
  white-space: nowrap;
}
.admin-table tbody td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: #faf9f1; }
.admin-table .title-cell {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  color: var(--color-text-primary);
  cursor: pointer;
  max-width: 360px;
}
.admin-table .title-cell:hover { color: var(--color-text-link); }
.admin-table .date-cell {
  font-size: .82rem;
  color: #6c6a5e;
  letter-spacing: .02em;
  white-space: nowrap;
}
.admin-table .empty-cell {
  text-align: center;
  padding: 48px 18px;
  color: #6c6a5e;
  font-style: italic;
}
.admin-table .actions-cell { text-align: right; white-space: nowrap; }

/* ---------- Admin: tag chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip {
  display: inline-block;
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 9px;
  background: #ecebd9;
  border: 1px solid var(--color-border);
  color: #5a594c;
  border-radius: 2px;
}

.inline-form { display: inline; }

/* ---------- Admin: form ---------- */
.admin-meta {
  font-size: .78rem;
  letter-spacing: .04em;
  color: #6c6a5e;
  margin: 8px 0 0;
}
.admin-meta code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .82rem;
  background: #ecebd9;
  padding: 2px 6px;
  border-radius: 2px;
  color: #44453f;
}
.admin-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  margin: 18px 0 0;
}
.admin-back:hover { color: var(--color-text-link); text-decoration: none; }

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: var(--color-bg-content);
  border: 1px solid var(--color-border);
  padding: 32px 32px 28px;
  margin: 28px 0 56px;
  max-width: 720px;
}
.admin-field { display: flex; flex-direction: column; gap: 8px; }
.admin-field label {
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #6c6a5e;
  font-weight: bold;
}
.admin-field .hint {
  font-size: .8rem;
  color: #6c6a5e;
}
.admin-field .hint a { color: var(--color-text-link); }
.admin-field input[type=text],
.admin-field input[type=email],
.admin-field input[type=password],
.admin-field select {
  font: inherit;
  font-size: 1rem;
  padding: 11px 13px;
  background: #fff;
  border: 1px solid var(--color-border-dark);
  color: var(--color-text-primary);
  border-radius: 2px;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.admin-field input[type=text]:focus,
.admin-field input[type=email]:focus,
.admin-field input[type=password]:focus,
.admin-field select:focus,
.admin-field textarea:focus {
  border-color: var(--color-text-link);
  box-shadow: 0 0 0 3px rgba(244,144,33,.18);
}
.admin-field input.title-input {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  padding: 14px 16px;
}
.admin-field textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .92rem;
  line-height: 1.55;
  padding: 16px 18px;
  background: #fbfaf3;
  border: 1px solid var(--color-border-dark);
  color: var(--color-text-primary);
  border-radius: 2px;
  outline: none;
  resize: vertical;
  min-height: 420px;
  tab-size: 2;
}

.admin-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--color-border);
  margin-top: 4px;
}

/* ---------- Switcher ---------- */
.proto-switcher {
  position: fixed;
  bottom: 14px;
  right: 14px;
  background: #fff;
  border: 1px solid var(--color-border-dark);
  padding: 6px 10px;
  font-size: .78rem;
  display: flex; align-items: center; gap: 6px; z-index: 1000;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  border-radius: 2px;
}
.proto-switcher a {
  color: var(--color-text-primary);
  text-decoration: none;
  padding: 2px 6px;
  border: 1px solid var(--color-border);
}
.proto-switcher a.active { background: var(--color-text-primary); color: #fff; border-color: var(--color-text-primary); }
