/* Dr Kotha Journal — warm sun, coral, teal, cream */
:root {
  --cream: #FFF8F0;
  --cream-2: #FBEFE0;
  --paper: #FFFFFF;
  --sun: #F4C430;
  --sun-deep: #E0A21A;
  --coral: #E85D4C;
  --coral-deep: #C94A3C;
  --teal: #1A9B8E;
  --teal-deep: #0E7A70;
  --leaf: #3D9B6E;
  --violet: #7C5CFF;
  --ink: #1A1410;
  --ink-soft: #4A3F38;
  --muted: #7A6E64;
  --line: #F0E4D6;
  --shadow: 0 10px 40px rgba(26, 20, 16, 0.08);
  --shadow-lg: 0 24px 60px rgba(26, 20, 16, 0.12);
  --radius: 22px;
  --radius-sm: 12px;
  --font-ui: "Outfit", system-ui, sans-serif;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  min-height: 100dvh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }
button, input, select, textarea { font: inherit; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: var(--cream-2); padding: 0.05em 0.35em; border-radius: 6px; }

.muted { color: var(--muted); }
.empty { color: var(--muted); font-family: var(--font-ui); }
.empty.light { color: #E8D9C8; }
.empty.light a { color: var(--sun); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.7rem 1.2rem; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-ui); font-weight: 600; font-size: 0.95rem;
  text-decoration: none; cursor: pointer; background: none; color: inherit;
}
.btn-coral { background: var(--coral); color: #fff; }
.btn-coral:hover { background: var(--coral-deep); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-ghost:hover { border-color: var(--coral); color: var(--coral-deep); }
.btn-ghost.danger { color: var(--coral-deep); }

.eyebrow {
  font-family: var(--font-ui); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral);
  margin: 0 0 0.8rem;
}
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 42rem; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; font-weight: 650; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin: 0 0 0.8rem; }
h1 em { font-style: italic; color: var(--coral); }

.sample-flag {
  display: inline-flex; align-items: center;
  font-family: var(--font-ui); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--sun); color: var(--ink); padding: 0.15rem 0.5rem; border-radius: 999px;
}

/* Topic hues */
.hue-cardiology { --hue: var(--coral); --hue-soft: #FDE8E4; }
.hue-respiratory { --hue: var(--teal); --hue-soft: #DDF4F1; }
.hue-allergy { --hue: var(--sun-deep); --hue-soft: #FFF1C8; }
.hue-prevention { --hue: var(--leaf); --hue-soft: #DFF3E8; }
.hue-practice { --hue: var(--violet); --hue-soft: #EDE8FF; }
.hue-endocrinology { --hue: #E07A3D; --hue-soft: #FDE9D8; }
.hue-mental-health { --hue: #3D7A9B; --hue-soft: #DCEEF6; }
.hue-paediatrics { --hue: #E25C8A; --hue-soft: #FCE3ED; }
.hue-library { --hue: var(--teal); --hue-soft: #DDF4F1; }

.topic-chip {
  display: inline-flex; align-items: center;
  font-family: var(--font-ui); font-size: 0.75rem; font-weight: 650;
  padding: 0.22rem 0.65rem; border-radius: 999px;
  background: var(--hue-soft, var(--cream-2)); color: var(--ink);
  text-decoration: none; border: 1px solid transparent;
}
.topic-chip:hover { border-color: var(--hue, var(--coral)); color: var(--ink); }

/* Nav */
.site-nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0.7rem 1.4rem;
  display: flex; align-items: center; gap: 1.2rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: inherit; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-display); font-size: 1.15rem; }
.brand-text em { font-family: var(--font-ui); font-style: normal; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral); font-weight: 700; }
.brand-mark { width: 36px; height: 36px; flex-shrink: 0; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 1.1rem; font-family: var(--font-ui); font-weight: 600; font-size: 0.95rem; }
.nav-links a { color: var(--ink-soft); text-decoration: none; }
.nav-links a.is-on, .nav-links a:hover { color: var(--ink); }
.nav-toggle { display: none; margin-left: auto; font-family: var(--font-ui); font-weight: 650; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 0.8rem; }
.nav-topics { position: relative; }
.nav-topics summary { list-style: none; cursor: pointer; font-weight: 600; color: var(--ink-soft); }
.nav-topics summary::-webkit-details-marker { display: none; }
.nav-topics-panel {
  position: absolute; right: 0; top: calc(100% + 0.6rem);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.8rem; display: flex; flex-wrap: wrap; gap: 0.4rem; width: min(420px, 80vw);
  box-shadow: var(--shadow);
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 4.5rem 1.4rem 4rem;
  background:
    radial-gradient(900px 420px at 90% -10%, #FFE08A 0%, transparent 60%),
    radial-gradient(700px 380px at 0% 110%, #FFD0C8 0%, transparent 55%),
    var(--cream);
}
.hero-sun {
  position: absolute; right: 8%; top: 10%;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFF6C8, var(--sun) 45%, #F08A5A 78%, transparent 79%);
  filter: blur(0.3px); opacity: 0.9;
  box-shadow: 0 0 80px rgba(244, 196, 48, 0.45);
}
.hero-inner { max-width: var(--max); margin: 0 auto; position: relative; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }

.band { max-width: var(--max); margin: 0 auto; padding: 3.2rem 1.4rem; }
.band-cream { max-width: none; background: var(--cream-2); padding: 3.2rem 1.4rem; }
.band-cream .band-head, .band-cream .topic-grid { max-width: var(--max); margin-left: auto; margin-right: auto; }
.band-ink { max-width: none; background: #241C18; color: #FFF8F0; padding: 3.4rem 1.4rem 4rem; }
.band-ink .band-head, .band-ink .media-grid { max-width: var(--max); margin-left: auto; margin-right: auto; }
.band-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.band-head h2 { margin: 0; font-size: 1.8rem; }
.band-head p { margin: 0; color: var(--muted); font-family: var(--font-ui); }
.band-head a { font-family: var(--font-ui); font-weight: 650; text-decoration: none; color: var(--coral); }
.band-head.light h2 { color: #FFF8F0; }
.band-head.light a { color: var(--sun); }

.featured-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.2rem;
}
.featured-side { display: flex; flex-direction: column; gap: 1.2rem; }

.post-card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column; min-height: 0;
  border: 1px solid color-mix(in srgb, var(--hue, var(--line)) 35%, var(--line));
}
.post-card.is-large { min-height: 100%; }
.post-card-cover {
  display: block; aspect-ratio: 16/10; overflow: hidden;
  background: linear-gradient(145deg, var(--hue, var(--coral)), color-mix(in srgb, var(--hue, var(--sun)) 40%, #fff));
  text-decoration: none; color: #fff;
}
.post-card.is-large .post-card-cover { aspect-ratio: 16/11; }
.post-card.is-compact { flex-direction: row; }
.post-card.is-compact .post-card-cover { aspect-ratio: auto; width: 42%; min-height: 140px; }
.post-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-fallback {
  height: 100%; padding: 1.2rem 1.3rem; display: flex; flex-direction: column; justify-content: flex-end;
}
.cover-kicker { font-family: var(--font-ui); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.9; }
.cover-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 650; line-height: 1.2; margin-top: 0.35rem; }
.post-card.is-large .cover-title { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.post-card-body { padding: 1.1rem 1.2rem 1.3rem; }
.post-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-family: var(--font-ui); font-size: 0.82rem; color: var(--muted); margin-bottom: 0.45rem; }
.post-card-body h3 { margin: 0 0 0.4rem; font-size: 1.25rem; }
.post-card-body h3 a { color: inherit; text-decoration: none; }
.post-card-body h3 a:hover { color: var(--coral-deep); }
.post-card-body p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.7rem; }
.tag-row span {
  font-family: var(--font-ui); font-size: 0.72rem; color: var(--muted);
  border: 1px solid var(--line); padding: 0.12rem 0.5rem; border-radius: 999px;
}

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }

.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.85rem; }
.topic-tile {
  background: var(--paper); border-radius: 18px; padding: 1.1rem 1.15rem 1.2rem;
  text-decoration: none; color: inherit; border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 0.25rem; min-height: 150px;
  box-shadow: 0 6px 20px rgba(26,20,16,0.04);
}
.topic-tile:hover { border-color: var(--hue); transform: translateY(-2px); }
.topic-tile strong { font-family: var(--font-display); font-size: 1.2rem; }
.topic-tile em { font-style: normal; color: var(--muted); font-size: 0.9rem; font-family: var(--font-ui); }
.topic-count {
  align-self: flex-start; font-family: var(--font-ui); font-weight: 700; font-size: 0.75rem;
  background: var(--hue-soft); color: var(--ink); padding: 0.12rem 0.5rem; border-radius: 999px;
}

.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.media-card { background: var(--paper); color: var(--ink); border-radius: var(--radius); overflow: hidden; }
.band-ink .media-card { background: #312822; color: #FFF8F0; }
.media-preview { display: block; min-height: 160px; background: var(--cream-2); }
.media-preview.img img { width: 100%; height: 180px; object-fit: cover; }
.media-preview.audio, .media-preview.deck {
  padding: 1.2rem; display: flex; flex-direction: column; gap: 0.7rem; min-height: 180px; justify-content: center;
  background: linear-gradient(160deg, var(--teal), var(--coral));
  color: #fff;
}
.media-glyph { font-size: 2rem; }
.media-card-body { padding: 1rem 1.1rem 1.2rem; }
.media-kicker { font-family: var(--font-ui); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral); font-weight: 700; }
.media-card-body h3 { margin: 0.2rem 0 0.4rem; font-size: 1.15rem; }
.media-meta { font-family: var(--font-ui); font-size: 0.8rem; color: var(--muted); }
.band-ink .media-meta { color: #C9B8A8; }
.band-ink .media-meta a { color: var(--sun); }

.page-hero {
  padding: 3.2rem 1.4rem 1.4rem;
  background: linear-gradient(180deg, var(--hue-soft, var(--cream-2)), var(--cream));
}
.page-hero h1, .page-hero .lede, .page-hero .eyebrow { max-width: var(--max); margin-left: auto; margin-right: auto; }
.page-hero h1 { max-width: var(--max); }
.filter-row { max-width: var(--max); margin: 1.2rem auto 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.filter-chip {
  font-family: var(--font-ui); font-weight: 650; font-size: 0.85rem;
  padding: 0.35rem 0.85rem; border-radius: 999px; text-decoration: none;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line);
}
.filter-chip.is-on { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* Post */
.post-hero {
  max-width: var(--max); margin: 0 auto; padding: 2.4rem 1.4rem 0;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2rem; align-items: end;
}
.post-hero-cover {
  border-radius: var(--radius); overflow: hidden; min-height: 280px;
  background: linear-gradient(145deg, var(--hue, var(--coral)), var(--sun));
  color: #fff;
}
.post-hero-cover img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.post-hero-cover .cover-fallback { min-height: 280px; padding: 1.6rem; }
.post-hero-cover .cover-title { font-size: 1.7rem; }
.post-byline { font-family: var(--font-ui); color: var(--muted); font-size: 0.92rem; }
.post-layout {
  max-width: var(--max); margin: 0 auto; padding: 2rem 1.4rem 3.5rem;
  display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 2.2rem;
}
.post-body { font-size: 1.14rem; }
.post-body h2 { font-size: 1.55rem; margin: 2.2rem 0 0.7rem; }
.post-body h3 { font-size: 1.2rem; color: var(--teal-deep); margin: 1.5rem 0 0.5rem; }
.post-body p { margin: 0 0 1rem; }
.post-body ul, .post-body ol { margin: 0 0 1.1rem; padding-left: 1.3rem; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 0.98rem; margin: 1rem 0 1.4rem; background: var(--paper); }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 0.55rem 0.7rem; text-align: left; vertical-align: top; }
.post-body th { background: var(--ink); color: var(--cream); font-family: var(--font-ui); }
.callout {
  background: #DDF4F1; border-left: 4px solid var(--teal); border-radius: 0 14px 14px 0;
  padding: 0.95rem 1.15rem; margin: 1.3rem 0;
}
.callout.warning { background: #FFF1C8; border-left-color: var(--sun-deep); }
.callout-label { font-family: var(--font-ui); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 0.3rem; }
.callout.warning .callout-label { color: #8A5A10; }
.embed-figure { margin: 1.6rem 0; }
.embed-figure img { border-radius: 16px; border: 1px solid var(--line); }
.embed-figure figcaption { font-family: var(--font-ui); font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; }
.embed-audio, .embed-deck {
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: 1.1rem; margin: 1.4rem 0; box-shadow: var(--shadow);
}
.embed-audio audio { width: 100%; margin-top: 0.6rem; }
.embed-deck-bar { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 0.8rem; }
.embed-deck-bar h2, .embed-audio h2 { font-size: 1.2rem; margin: 0.2rem 0 0; }
.deck-frame { width: 100%; height: 560px; border: 0; border-radius: 12px; background: #111; }
.aside-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: 1.15rem 1.2rem; margin-bottom: 1rem;
}
.aside-card h2 { font-family: var(--font-ui); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--coral); margin: 0 0 0.5rem; }

.about-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 1.5rem; align-items: start; }
.about-copy h2 { font-size: 1.4rem; }

.site-foot {
  background: #1A1410; color: #F3E7DA; padding: 3rem 1.4rem 1.6rem; margin-top: 1rem;
}
.foot-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 0.7fr 0.9fr; gap: 2rem; }
.site-foot a { display: block; color: #F3E7DA; text-decoration: none; font-family: var(--font-ui); font-size: 0.95rem; margin: 0.2rem 0; }
.site-foot a:hover { color: var(--sun); }
.site-foot h2 { font-family: var(--font-ui); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sun); margin: 0 0 0.6rem; }
.brand-foot { margin-bottom: 0.6rem; font-size: 1.2rem; }
.foot-note { max-width: var(--max); margin: 2.2rem auto 0; font-size: 0.85rem; color: #B7A394; font-family: var(--font-ui); }

/* Admin */
.admin { background: var(--cream); font-family: var(--font-ui); }
.admin-nav {
  display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1.2rem;
  background: #1A1410; color: #FFF8F0;
}
.admin-nav a { color: #FFF8F0; text-decoration: none; }
.admin-nav nav { display: flex; gap: 0.9rem; margin-left: 0.5rem; }
.admin-nav form { margin-left: auto; }
.admin-nav .btn-ghost { background: transparent; color: #FFF8F0; border-color: #3A302A; }
.admin-main { max-width: 1100px; margin: 0 auto; padding: 1.6rem 1.2rem 3rem; }
.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.admin-head h1 { font-size: 2rem; margin: 0; }
.stat-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.7rem; margin-bottom: 1.4rem; }
.stat { background: var(--paper); border-radius: 16px; padding: 0.9rem 1rem; border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--font-display); font-size: 1.6rem; }
.stat span { color: var(--muted); font-size: 0.8rem; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 16px; overflow: hidden; }
.admin-table th, .admin-table td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.admin-table th { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.row-actions { display: flex; gap: 0.6rem; align-items: center; }
.row-actions form { margin: 0; }
.row-actions button { background: none; border: 0; color: var(--coral-deep); cursor: pointer; font-weight: 650; }
.pill { display: inline-block; padding: 0.1rem 0.45rem; border-radius: 999px; background: var(--cream-2); font-size: 0.72rem; font-weight: 700; }
.pill.ok { background: #DFF3E8; color: #1B6B45; }
.pill.coral { background: #FDE8E4; color: var(--coral-deep); }
.flash { max-width: 1100px; margin: 0.8rem auto; padding: 0.7rem 1rem; border-radius: 12px; background: #DFF3E8; }
.flash.bad { background: #FDE8E4; color: var(--coral-deep); }
.editor { display: grid; grid-template-columns: 1fr 280px; gap: 1.2rem; }
.editor label, .attach-form label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.8rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.85rem; }
.editor input, .editor select, .editor textarea, .attach-form input, .attach-form select, .pin-input {
  width: 100%; padding: 0.6rem 0.75rem; border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); font-family: var(--font-ui); text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink);
}
.body-field { font-family: ui-monospace, Menlo, monospace; font-size: 0.9rem; line-height: 1.5; }
.check { flex-direction: row !important; align-items: center; text-transform: none; letter-spacing: 0; font-size: 0.95rem; color: var(--ink); }
.check input { width: auto; }
.hint { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); }
.attach-block { margin-top: 2rem; background: var(--paper); border-radius: 18px; padding: 1.2rem; border: 1px solid var(--line); }
.attach-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem 1rem; align-items: end; }
.media-list { list-style: none; padding: 0; }
.media-list li { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.media-list form { margin: 0; }
.media-list button { background: none; border: 0; color: var(--coral-deep); cursor: pointer; }

.admin-login {
  min-height: 100dvh; display: grid; place-items: center;
  background:
    radial-gradient(600px 300px at 80% 0%, #FFE08A, transparent 60%),
    radial-gradient(500px 300px at 0% 100%, #FFD0C8, transparent 55%),
    var(--cream);
  font-family: var(--font-ui);
}
.login-card {
  width: min(420px, 92vw); background: var(--paper); border-radius: 24px;
  padding: 1.6rem 1.5rem 1.4rem; box-shadow: var(--shadow-lg);
}
.login-card h1 { font-size: 2.2rem; }
.pin-input { text-align: center; font-size: 1.6rem; letter-spacing: 0.4em; margin: 0.8rem 0; }
.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.45rem; }
.pin-pad button {
  padding: 0.85rem 0; border-radius: 14px; border: 1px solid var(--line);
  background: var(--cream); font-size: 1.15rem; font-weight: 650; cursor: pointer;
}
.pin-pad button:hover { background: var(--sun); }

@media (max-width: 980px) {
  .featured-grid, .post-grid, .topic-grid, .media-grid, .post-hero, .post-layout, .about-grid, .foot-grid, .editor, .stat-row, .attach-form {
    grid-template-columns: 1fr 1fr;
  }
  .featured-grid, .post-layout, .about-grid, .editor, .foot-grid { grid-template-columns: 1fr; }
  .post-card.is-compact { flex-direction: column; }
  .post-card.is-compact .post-card-cover { width: 100%; }
  .hero-sun { width: 140px; height: 140px; right: 4%; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: 58px; left: 0; right: 0; background: var(--cream); padding: 1rem 1.2rem 1.2rem; flex-direction: column; align-items: flex-start; border-bottom: 1px solid var(--line); }
  body.nav-open .nav-links { display: flex; }
  .nav-topics-panel { position: static; width: 100%; box-shadow: none; }
  .post-grid, .topic-grid, .media-grid, .stat-row, .attach-form { grid-template-columns: 1fr; }
  .hero { padding-top: 3rem; }
}
