/* Site shell and portfolio home (docs/10-home-page-ux-gap-findings.md).
   Loaded last in base.html so it wins over Bootstrap 4 and the older form.css / w33.css / navul.css.
   Palette: "Deep Navy + Teal". Every text pair passes WCAG AA (ratios in the report). */
:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --ink: #0F172A;
  --muted: #475569;
  --primary: #0F4C81;
  --primary-hover: #0B3A63;
  --accent: #0F766E;          /* teal for text on light backgrounds */
  --accent-fill: #14B8A6;
  --nav-bg: #0B1F3A;
  --nav-ink: #E2E8F0;
  --nav-hover-bg: rgba(226, 232, 240, .10);
  --nav-active-bg: rgba(45, 212, 191, .14);
  --nav-active-ink: #2DD4BF;
  --chip-bg: #CCFBF1;
  --chip-ink: #0F766E;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

html, body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}
a { color: var(--primary); }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; height: auto; }
iframe { max-width: 100%; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 10000;
  background: var(--surface); color: var(--primary); padding: 8px 12px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Top bar ---------- */
.topbar {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px;
  padding: 12px 24px;
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(226, 232, 240, .12);
  color: var(--nav-ink);
}
.topbar .brand {
  color: #FFFFFF; font-weight: 700; font-size: 1.125rem; text-decoration: none;
}
.topbar .brand:hover { color: var(--nav-active-ink); }
.topbar .brand-role { color: #94A3B8; font-size: .9rem; }
.topbar .account { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: .85rem; }
.topbar .who { color: #CBD5E1; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .signout { background: transparent; color: #FFFFFF; border: 1px solid rgba(226, 232, 240, .45);
  border-radius: 6px; padding: 3px 12px; font: inherit; cursor: pointer; }
.topbar .signout:hover { border-color: var(--nav-active-ink); color: var(--nav-active-ink); }
.topbar .signout:disabled { opacity: .6; }

/* ---------- Shell: menu column + content ---------- */
.shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: calc(100vh - 50px);
}
nav.sidenav {
  float: none; width: auto;                /* undo form.css floats */
  background: var(--nav-bg);
  padding: 20px 12px;
}
nav.sidenav ul {
  list-style: none; margin: 0; padding: 0; width: auto;
  position: sticky; top: 16px;
}
nav.sidenav li a {
  display: block; width: auto; text-align: left;
  padding: 8px 14px; margin-bottom: 2px;
  border-radius: 8px;
  color: var(--nav-ink) !important;        /* older pages set inline colours */
  background: transparent !important;
  font-size: .95rem; text-decoration: none;
}
nav.sidenav li a:hover { background: var(--nav-hover-bg) !important; color: #FFFFFF !important; }
nav.sidenav li a[aria-current="page"] {
  background: var(--nav-active-bg) !important;
  color: var(--nav-active-ink) !important;
  font-weight: 600;
}
nav.sidenav marquee { color: var(--nav-active-ink); font-size: .8rem; }   /* BI pages' "work in progress" note */
nav.sidenav a:focus-visible,
.hp-btn:focus-visible,
.topbar .brand:focus-visible { outline: 2px solid var(--nav-active-ink); outline-offset: 2px; }

main.content {
  min-width: 0;
  overflow-x: auto;                        /* older pages have fixed-width tables and iframes: scroll them here, not the page */
  padding: 28px clamp(16px, 4vw, 48px) 48px;
}
header.page-header {               /* form.css styles every <header> as a grey band */
  background: none; padding: 0; text-align: left; font-size: inherit; color: inherit;
}
.page-header h1 {
  margin: 0 0 20px; font-size: 1.75rem; font-weight: 700; color: var(--ink);
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--nav-bg); color: var(--nav-ink);
  padding: 16px 24px; text-align: left;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
  font-size: .9rem;
}
footer.site-footer ul { list-style: none; margin: 0; padding: 0; width: auto; display: flex; flex-wrap: wrap; gap: 4px 16px; }
footer.site-footer div { width: auto !important; }
footer.site-footer li a,
footer.site-footer a {
  display: inline; padding: 0;
  color: var(--nav-ink) !important; background: none !important; text-decoration: underline;
}
footer.site-footer a:hover { color: var(--nav-active-ink) !important; }
footer.site-footer .copyright { color: #94A3B8; margin: 0; }

/* ---------- Home page ---------- */
.home { max-width: 1040px; }
.home section { margin-bottom: 36px; }
.home h2 {
  font-size: 1.35rem; font-weight: 700; color: var(--ink);
  margin: 0 0 14px; padding-bottom: 6px; border-bottom: 2px solid var(--accent-fill);
  display: inline-block;
}
.home h3 { font-size: 1.02rem; font-weight: 650; color: var(--primary); margin: 0 0 6px; }
.home ul, .home ol { width: auto; }

.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px;
}

.hero {
  display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 24px; align-items: center;
  padding: 28px;
}
.hero .avatar {
  width: 128px; height: 128px; border-radius: 50%; object-fit: cover;
  border: 4px solid var(--surface); box-shadow: 0 0 0 2px var(--accent-fill);
}
.hero h1 { margin: 0; font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 750; color: var(--ink); line-height: 1.2; }
.hero .role { margin: 4px 0 10px; font-size: 1.125rem; color: var(--primary); font-weight: 600; }
.hero .summary { margin: 0 0 16px; color: var(--muted); max-width: 68ch; }
.creds { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 14px; }
.creds li {
  font-size: .8rem; font-weight: 600; letter-spacing: .02em;
  padding: 3px 10px; border-radius: 999px;
  background: #E0ECF7; color: var(--primary);
}
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.hp-btn {
  display: inline-block; padding: 9px 18px; border-radius: 8px;
  font-weight: 600; font-size: .95rem; text-decoration: none; border: 2px solid var(--primary);
}
.hp-btn-primary { background: var(--primary); color: #FFFFFF; }
.hp-btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #FFFFFF; text-decoration: none; }
.hp-btn-ghost { background: transparent; color: var(--primary); }
.hp-btn-ghost:hover { background: #E0ECF7; color: var(--primary-hover); text-decoration: none; }

.contact-email { margin: 12px 0 0; color: var(--muted); }
.contact-email a { color: var(--accent); font-weight: 600; }
main.content > .contact-email { margin: 0 0 16px; }

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px;
  list-style: none; padding: 0; margin: 0 0 36px;
}
.stats li { text-align: left; padding: 16px 18px; }
.stats .value { display: block; font-size: 1.6rem; font-weight: 750; color: var(--accent); line-height: 1.1; }
.stats .label { display: block; color: var(--muted); font-size: .9rem; margin-top: 4px; }

.focus-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 8px 24px;
  list-style: none; padding: 0; margin: 0;
}
.focus-list li { position: relative; padding-left: 22px; }
.focus-list li::before {
  content: ""; position: absolute; left: 4px; top: .6em;
  width: 8px; height: 8px; border-radius: 2px; background: var(--accent-fill);
}

.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.chips li {
  background: var(--chip-bg); color: var(--chip-ink);
  padding: 2px 10px; border-radius: 999px; font-size: .85rem; font-weight: 500;
}

.timeline { list-style: none; margin: 0; padding: 0 0 0 20px; border-left: 2px solid var(--border); }
.timeline li { position: relative; margin: 0 0 14px; }
.timeline li::before {
  content: ""; position: absolute; left: -28px; top: 22px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--accent-fill);
}
.timeline .meta { margin: 0 0 6px; color: var(--muted); font-size: .9rem; }
.timeline .meta .dates { color: var(--accent); font-weight: 600; }
.timeline p:last-child { margin-bottom: 0; }

.project p { margin: 0; color: var(--muted); }
.project .org { color: var(--accent); font-size: .85rem; font-weight: 600; margin-bottom: 4px; }

.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.plain-list { margin: 0; padding-left: 20px; list-style: disc; }
.plain-list li { margin-bottom: 4px; }

/* ---------- Landing page and case studies (plan 05, CNT-2 / CNT-4) ---------- */
/* form.css styles every <article> as a grey floated 70% box and every <header> as a centred grey band */
main.content article { float: none; width: auto; padding: 0; background: none; }
main.content article.panel { padding: 20px; background: var(--surface); }
main.content header { text-align: left; font-size: inherit; color: inherit; background: none; padding: 0; }
main.content header.case-head { background: var(--surface); padding: 24px 28px; }
.more-link { margin: 12px 0 0; font-weight: 600; }
.more-link a { color: var(--accent); }
.page-intro { color: var(--muted); margin: -8px 0 20px; max-width: 70ch; }
.hp-btn-sm { padding: 5px 14px; font-size: .875rem; }

.feature h3 a, .case-card h3 a { color: var(--primary); text-decoration: none; }
.feature h3 a:hover, .case-card h3 a:hover { text-decoration: underline; }
.feature p { color: var(--muted); margin: 0 0 12px; }
.feature .feature-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; }
.feature .feature-links a:not(.hp-btn) { color: var(--accent); font-weight: 600; font-size: .9rem; }

.case-card { display: flex; flex-direction: column; gap: 8px; }
.case-card p { flex: 1; }
.case-card .chips li { font-size: .78rem; }
.case-grid { margin-bottom: 40px; }

.earlier-table { width: 100%; border-collapse: collapse; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; font-size: .92rem; }
.earlier-table th, .earlier-table td { padding: 10px 14px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--border); }
.earlier-table th { background: #EEF2F7; color: var(--ink); font-weight: 650; }
.earlier-table tr:nth-child(even) { background: transparent; }
.earlier-table td:first-child { white-space: nowrap; color: var(--accent); font-weight: 600; }

.case .crumbs { margin: 0 0 12px; font-size: .9rem; }
.case .crumbs a { color: var(--muted); }
.case-head { margin-bottom: 28px; }
.case-head h1 { margin: 4px 0 8px; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 750; color: var(--ink); }
.case-head .summary { color: var(--muted); max-width: 72ch; margin: 0 0 16px; }
.case-head .org, .case-card .org { color: var(--accent); font-size: .85rem; font-weight: 600; }

.flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px 0; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.flow li {
  position: relative; display: flex; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent-fill);
  border-radius: 10px; padding: 10px 14px; margin-right: 34px; font-weight: 600; font-size: .92rem; color: var(--ink);
  box-shadow: var(--shadow);
}
.flow li:not(:last-child)::after {
  content: "→"; position: absolute; right: -26px; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 1.2rem; font-weight: 700;
}
.case-shot { padding: 8px; margin: 0 0 28px; }
.case-shot img { display: block; width: 100%; height: auto; border-radius: 8px; }
.case-body section { margin-bottom: 26px; }
.case-body p { max-width: 72ch; margin: 0; }
.focus-list.stacked { grid-template-columns: 1fr; }

/* ---------- Posts (docs/implementation-plan/16-posts.md) ---------- */
.hp-btn-danger { background: transparent; color: #B42318; border-color: #B42318; }
.hp-btn-danger:hover { background: #FEE4E2; color: #912018; }
.hp-btn:disabled { opacity: .55; cursor: not-allowed; }

.author-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 0 0 24px;
  padding: 14px 18px; border-left: 4px solid var(--accent-fill); }
.author-bar span { color: var(--muted); margin-right: auto; }

main.content nav.filter-chips { float: none; width: auto; background: none; padding: 0;   /* form.css styles every <nav> */
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.filter-chips a { padding: 5px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  color: var(--muted); font-size: .9rem; font-weight: 600; text-decoration: none; }
.filter-chips a:hover { color: var(--primary); border-color: var(--primary); }
.filter-chips a[aria-current="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }

.post-list { display: grid; gap: 14px; }
.drafts { margin-bottom: 28px; }
.drafts h2 .count { font-size: .85rem; color: var(--muted); font-weight: 600; margin-left: 6px; }
main.content article.post-card { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 18px; padding: 16px; }
main.content article.post-card:not(:has(.post-cover)) { grid-template-columns: minmax(0, 1fr); padding: 18px 20px; }
.post-card.is-draft { border-style: dashed; }
.post-cover img { width: 180px; height: 120px; object-fit: cover; border-radius: 8px; display: block; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--muted); font-size: .85rem; margin: 0 0 6px; }
.badge-source { font-weight: 600; color: var(--accent); }
.badge-source.is-external { color: var(--primary); }
.badge-draft { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 2px 8px; border-radius: 6px; background: #FEF0C7; color: #93370D; margin: 0; }
.home h2.post-title { font-size: 1.15rem; margin: 0 0 6px; padding: 0; border: 0; display: block; }
.post-title a { color: var(--ink); text-decoration: none; }
.post-title a:hover { color: var(--primary); text-decoration: underline; }
.post-title .ext { color: var(--muted); font-weight: 400; }
.post-summary { color: var(--muted); margin: 0 0 8px; }
.author-actions { display: flex; gap: 8px; margin: 10px 0 0; }
.not-author { margin: 0 0 24px; padding: 14px 18px; border-left: 4px solid #F79009; color: var(--ink); }
.author-sign-in { margin-top: 32px; font-size: .85rem; color: var(--muted); }
.author-sign-in a { color: var(--muted); }
.empty { color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 9000; margin: 0;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 8px; box-shadow: var(--shadow); font-size: .92rem; }

/* One post */
.post { max-width: 760px; }
.post .crumbs { margin: 0 0 12px; font-size: .9rem; }
.post .crumbs a { color: var(--muted); }
.post-head h1 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); line-height: 1.2; font-weight: 750; margin: 6px 0 8px; color: var(--ink); }
.post-head .chips { margin-top: 8px; }
.post-cover-full { margin: 22px 0; }
.post-cover-full img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); }

.prose { font-size: 1.06rem; line-height: 1.75; color: var(--ink); margin-top: 22px; }
.prose > :first-child { margin-top: 0; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--ink); line-height: 1.3; font-weight: 700; margin: 1.8em 0 .6em;
  border: 0; padding: 0; display: block; }
.prose h1 { font-size: 1.7rem; } .prose h2 { font-size: 1.45rem; } .prose h3 { font-size: 1.2rem; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre, .prose table { margin: 0 0 1.1em; }
.prose ul { list-style: disc; padding-left: 1.5em; } .prose ol { list-style: decimal; padding-left: 1.5em; }
.prose li { margin: .25em 0; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.prose img { display: block; max-width: 100%; height: auto; border-radius: 8px; margin: 1.2em auto; }
.prose blockquote { border-left: 4px solid var(--accent-fill); background: #F0FDFA; padding: .6em 1em; color: var(--muted); border-radius: 0 8px 8px 0; }
.prose blockquote p:last-child { margin: 0; }
.prose code { font-family: Consolas, "SFMono-Regular", Menlo, monospace; font-size: .9em; background: #EEF2F7;
  color: #9F1239; padding: .1em .35em; border-radius: 4px; }
.prose pre { background: #0F172A; color: #E2E8F0; padding: 14px 16px; border-radius: 10px; overflow-x: auto; line-height: 1.5; }
.prose pre code { background: none; color: inherit; padding: 0; font-size: .88rem; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; width: auto; max-width: 100%; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.prose th { background: #EEF2F7; }
.prose tr:nth-child(even) { background: transparent; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }

/* Editor */
.post-editor { max-width: 900px; }
.post-editor .crumbs { margin: 0 0 12px; font-size: .9rem; }
#post-form { padding: 24px; }
#post-form[data-kind="article"] .only-link, #post-form[data-kind="link"] .only-article { display: none; }
.kind-switch { border: 0; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px 12px; }
.kind-switch legend { font-weight: 650; font-size: .95rem; margin-bottom: 8px; width: 100%; }
.kind-switch label { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 10px; cursor: pointer; margin: 0; background: var(--bg); }
.kind-switch label:has(input:checked) { border-color: var(--primary); background: #E0ECF7; color: var(--primary); font-weight: 600; }
.kind-switch:disabled label { cursor: default; }
.field { margin: 0 0 16px; flex: 1 1 200px; min-width: 0; }
.field-row { display: flex; flex-wrap: wrap; gap: 0 16px; }
.field label, .field .label { display: block; font-weight: 650; font-size: .92rem; margin-bottom: 6px; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input:not([type="radio"]), .field textarea {
  width: 100%; padding: 9px 12px; border: 1px solid #CBD5E1; border-radius: 8px; font: inherit; color: var(--ink); background: #fff; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent-fill); outline-offset: 0; border-color: var(--accent-fill); }
.field input[readonly] { background: var(--bg); color: var(--muted); }
.hint { color: var(--muted); font-size: .82rem; margin: 6px 0 0; }

.md-editor { border: 1px solid #CBD5E1; border-radius: 10px; overflow: hidden; background: #fff; }
.md-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 8px;
  background: var(--bg); border-bottom: 1px solid var(--border); }
.md-tabs { display: flex; gap: 2px; margin-right: 8px; }
.md-tabs button { border: 0; background: none; padding: 5px 12px; border-radius: 6px; font-weight: 600; color: var(--muted); cursor: pointer; }
.md-tabs button[aria-selected="true"] { background: #fff; color: var(--primary); box-shadow: var(--shadow); }
.md-tools { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
.md-tools button { border: 1px solid transparent; background: none; min-width: 32px; padding: 4px 8px; border-radius: 6px;
  font-size: .85rem; color: var(--ink); cursor: pointer; }
.md-tools button:hover:not(:disabled) { background: #fff; border-color: var(--border); }
.md-tools button:disabled { opacity: .4; cursor: default; }
.md-tools .sep { width: 1px; height: 20px; background: var(--border); margin: 0 4px; }
.md-editor textarea { border: 0 !important; border-radius: 0 !important; min-height: 380px; resize: vertical;
  font-family: Consolas, "SFMono-Regular", Menlo, monospace; font-size: .92rem; line-height: 1.6; padding: 14px 16px !important; }
.md-editor textarea:focus { outline: none !important; }
.md-preview { min-height: 380px; padding: 14px 18px; margin: 0; }
.md-help { padding: 6px 12px 8px; margin: 0; border-top: 1px solid var(--border); background: var(--bg); }

.cover-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cover-preview { width: 160px; height: 100px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--border); }
.form-actions .hp-btn-danger { margin-left: auto; }
.save-hint { color: var(--muted); font-size: .8rem; }
.form-error { margin: 12px 0 0; padding: 10px 14px; border-radius: 8px; background: #FEE4E2; color: #912018; font-weight: 600; }

/* ---------- Tablet and phone ---------- */
@media (max-width: 768px) {
  .topbar { padding: 10px 16px; }
  .shell { grid-template-columns: minmax(0, 1fr); }   /* plain 1fr would grow to the menu row's width */
  nav.sidenav { padding: 6px 8px; position: sticky; top: 0; z-index: 50; }
  nav.sidenav ul {
    position: static; display: flex; gap: 4px;
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  nav.sidenav ul::-webkit-scrollbar { display: none; }
  nav.sidenav li { flex: 0 0 auto; }
  nav.sidenav li a { white-space: nowrap; margin: 0; padding: 7px 12px; text-align: center; }
  main.content { padding: 20px 16px 40px; }
  .hero { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 22px 18px; }
  .hero .summary { margin-left: auto; margin-right: auto; }
  .creds, .cta { justify-content: center; }
  .flow { flex-direction: column; }
  .flow li { margin: 0 0 26px; }
  .flow li:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -24px; transform: translateX(-50%); }
  .earlier-table td:first-child { white-space: normal; }
  main.content article.post-card { grid-template-columns: minmax(0, 1fr); }
  .post-cover img { width: 100%; height: 160px; }
  #post-form { padding: 16px; }
  .form-actions .hp-btn-danger { margin-left: 0; }
  .save-hint { display: none; }
}
@media (max-width: 480px) {
  .topbar .who { display: none; }
  .hero .avatar { width: 104px; height: 104px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .value { font-size: 1.35rem; }
  .cta .hp-btn { flex: 1 1 auto; text-align: center; }
}
