/*
 * Apostolic Concepts — site styles
 * Shares the design system of apostolic-preaching.com (tokens, header, hero,
 * cards, buttons, forms, footer). Sections 5–6 add blog and admin components.
 */

/* ---------- 1. Tokens & base ---------- */
:root {
  --bg: #0f1419;
  --surface: #1a2129;
  --surface-2: #242d38;
  --text: #e8eaed;
  --text-muted: #9aa0a6;
  --accent: #4fc3f7;
  --accent-dim: #0288d1;
  --gold: #ffd54f;
  --border: #2d3742;
  --radius: 16px;
  --success: #81c784;
  --error: #ef9a9a;
  --reading: 720px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- 2. Header, hero, sections ---------- */
header {
  background: rgba(15, 20, 25, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
a.logo:hover { text-decoration: none; }
.logo span { color: var(--accent); }
nav { display: flex; gap: 1.75rem; align-items: center; }
nav a { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; }
nav a:hover, nav a.active { color: var(--text); text-decoration: none; }

.hero {
  position: relative;
  padding: 6rem 1.5rem 4rem;
  text-align: center;
  background: radial-gradient(ellipse at top, #1a2733 0%, var(--bg) 70%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234fc3f7' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}
.hero-content { position: relative; max-width: 800px; margin: 0 auto; }
.hero h1 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 600;
  margin: 0 0 1rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}
.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.search-bar {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.search-bar:focus-within { border-color: var(--accent-dim); }
.search-bar input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 1rem 1.25rem;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
}
.search-bar input::placeholder { color: var(--text-muted); }
.search-bar input::-webkit-search-cancel-button { filter: invert(0.7); }
.search-bar button {
  background: var(--accent);
  color: #0f1419;
  border: none;
  padding: 0 1.5rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}
.search-bar button:hover { background: #81d4fa; }

.stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold);
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); }

section { max-width: 1200px; margin: 0 auto; padding: 4rem 1.5rem; }
section[id] { scroll-margin-top: 5rem; }
.section-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.section-subtitle { color: var(--text-muted); margin: 0 0 2rem; }
.section-title-sm { font-size: 1.25rem; margin-bottom: 0.75rem; }
.list-section { padding-top: 1.5rem; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.section-head .section-subtitle { margin-bottom: 0; }

.hero-compact { padding: 3.5rem 1.5rem 2.5rem; }
.hero-compact h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); overflow-wrap: anywhere; }
.hero-compact p.lead { margin-bottom: 1.75rem; }
.hero-compact p.lead:last-child { margin-bottom: 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}
.highlight-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.highlight-box h3 { margin: 0 0 0.75rem; font-size: 1.1rem; }
.highlight-box .highlight-sub { margin-top: 1.5rem; }
.highlight-box ul { margin: 0; padding-left: 1.2rem; color: var(--text-muted); }
.highlight-box li { margin-bottom: 0.4rem; }

/* ---------- 3. Cards, tags, buttons, banner, ad, footer ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.post-card:hover { border-color: var(--accent-dim); transform: translateY(-3px); }
.post-card h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--accent); text-decoration: none; }
.post-card-excerpt { margin: 0 0 1rem; color: var(--text-muted); font-size: 0.95rem; }
.meta { display: flex; gap: 1rem; font-size: 0.8rem; color: var(--text-muted); margin-top: auto; padding-top: 0.25rem; flex-wrap: wrap; }
.tag {
  display: inline-block;
  background: var(--surface-2);
  color: var(--accent);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}
a.tag:hover { text-decoration: none; background: #2c3846; }

.chip-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
}
.chip span { color: var(--text-muted); font-size: 0.8rem; }
.chip:hover { border-color: var(--accent-dim); text-decoration: none; }
.chip.is-current { border-color: var(--accent); background: rgba(79,195,247,0.12); }
.topics { margin-bottom: 2.5rem; }
.topics-section { padding-top: 0; padding-bottom: 0; }
.topics-section .topics { margin-bottom: 0; }
.preacher-matches { margin-bottom: 2.5rem; }

.banner {
  background: linear-gradient(135deg, #1a2733, #0d2137);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.banner h3 { margin: 0 0 0.35rem; }
.banner p { margin: 0; color: var(--text-muted); }
.banner-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #0f1419;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-family: inherit;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid var(--accent);
  cursor: pointer;
}
.btn:hover { background: #81d4fa; text-decoration: none; }
.btn-outline { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-outline:hover { background: rgba(79,195,247,0.1); }
.btn-small { padding: 0.35rem 0.9rem; font-size: 0.85rem; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-danger { background: transparent; color: var(--error); border-color: rgba(239,154,154,0.5); }
.btn-danger:hover { background: rgba(239,154,154,0.1); }
.center { text-align: center; }
.center .btn { margin: 0.25rem; }

.ad-section { padding-top: 1rem; padding-bottom: 2rem; }
.ad-slot {
  max-width: 728px;
  margin: 2rem auto 0;
  min-height: 90px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}
footer .logo { margin-bottom: 0.5rem; }
footer p { margin: 0.5rem 0; }
.footer-links { display: flex; justify-content: center; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--text); text-decoration: none; }

/* ---------- 4. Utility, pagination, notices, forms ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 200;
  background: var(--accent);
  color: #0f1419;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
}
.skip-link:focus { top: 0.75rem; text-decoration: none; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.muted { color: var(--text-muted); }
.small { font-size: 0.8rem; }

.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.result-count { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
.result-count strong { color: var(--text); font-weight: 600; }

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.page-link {
  min-width: 2.4rem;
  padding: 0.45rem 0.8rem;
  text-align: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}
a.page-link:hover { border-color: var(--accent-dim); color: var(--text); text-decoration: none; }
.page-link.current { background: var(--accent); border-color: var(--accent); color: #0f1419; font-weight: 600; }
.page-gap { color: var(--text-muted); padding: 0 0.25rem; }

.notice {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--text-muted);
  text-align: center;
}
.notice strong { color: var(--text); font-weight: 600; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { margin-bottom: 1rem; }
.form-field label, .form-field legend { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.35rem; font-weight: 500; }
fieldset.form-field { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.contact-form input:not([type="checkbox"]),
.contact-form textarea,
.contact-form select,
.filter-box input,
.inline-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus,
.filter-box input:focus, .inline-input:focus { outline: none; border-color: var(--accent-dim); }
.contact-form input[type="datetime-local"] { color-scheme: dark; }
.contact-form textarea { resize: vertical; min-height: 140px; }
.form-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status {
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  border: 1px solid;
}
.form-status-success { color: var(--success); border-color: rgba(129,199,132,0.4); background: rgba(129,199,132,0.08); }
.form-status-error { color: var(--error); border-color: rgba(239,154,154,0.4); background: rgba(239,154,154,0.08); }
.hint { margin: 0.35rem 0 0; font-size: 0.8rem; color: var(--text-muted); }

/* ---------- 5. Blog: article + prose ---------- */
.article { max-width: calc(var(--reading) + 3rem); margin: 0 auto; padding: 3.5rem 1.5rem 1rem; }
.article-header { margin-bottom: 2.25rem; }
.article-header h1 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0.25rem 0 1rem;
  overflow-wrap: anywhere;
}
.article-cats { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 0; }
.article-meta { font-size: 0.9rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.preview-flag {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(255,213,79,0.12);
  border: 1px solid rgba(255,213,79,0.4);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
}

.prose {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.18rem;
  line-height: 1.75;
  color: #dfe2e6;
  overflow-wrap: break-word;
}
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre, .prose figure, .prose table { margin: 0 0 1.4em; }
.prose h2, .prose h3, .prose h4 { font-weight: 600; line-height: 1.25; margin: 2em 0 0.6em; color: var(--text); }
.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.3rem; }
.prose h4 { font-size: 1.1rem; }
.prose a { text-decoration: underline; text-decoration-color: rgba(79,195,247,0.4); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose strong { color: var(--text); }
.prose li { margin-bottom: 0.4em; }
.prose blockquote {
  margin-left: 0;
  padding: 0.25em 0 0.25em 1.25em;
  border-left: 3px solid var(--gold);
  color: var(--text-muted);
  font-style: italic;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose img, .prose video, .prose iframe { max-width: 100%; height: auto; border-radius: 10px; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figcaption { font-family: 'Outfit', system-ui, sans-serif; font-size: 0.85rem; color: var(--text-muted); margin-top: 0.5rem; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.5em 0; }
.prose pre, .prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }
.prose pre { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1rem; overflow-x: auto; }
.prose :not(pre) > code { background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 4px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95em; }
.prose th, .prose td { border: 1px solid var(--border); padding: 0.5em 0.75em; text-align: left; }
.prose-plain { font-size: 1.1rem; }

.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.article-tags-label { color: var(--text-muted); font-size: 0.85rem; margin-right: 0.25rem; }
.related { padding-top: 3rem; }

.admin-bar {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0.5rem 1rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- 6. Admin ---------- */
.admin-main { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
.auth-main { max-width: 460px; margin: 0 auto; padding: 4rem 1.5rem; }
.auth-card .contact-form { margin-top: 0.5rem; }
.form-footnote { margin: 1rem 0 0; text-align: center; font-size: 0.9rem; }
.flash { margin-bottom: 1.5rem; }
.inline-form { display: inline; margin: 0; }
.link-button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--text-muted);
  font: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
}
.link-button:hover { color: var(--text); }
.actions .link-button { color: var(--accent); font-size: inherit; }
.actions .link-button:hover { text-decoration: underline; }
.link-button.danger, .actions .link-button.danger { color: var(--error); }

.admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.admin-head .section-subtitle { margin-bottom: 0; display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.stat-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  color: var(--text);
}
.stat-card:hover { border-color: var(--accent-dim); text-decoration: none; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  overflow-x: auto;
}
.panel .notice { border: 0; padding: 1rem; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.admin-table th {
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
.admin-table td { padding: 0.75rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table td a { color: var(--text); }
.admin-table td a:hover { color: var(--accent); }
.admin-table .actions { text-align: right; white-space: nowrap; }
.admin-table .actions > * { margin-left: 0.9rem; }
.admin-table .actions a { color: var(--accent); }
.inline-input { padding: 0.45rem 0.7rem; min-width: 9rem; }

.badge { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 0.15rem 0.6rem; border-radius: 999px; border: 1px solid; }
.badge-published { color: var(--success); border-color: rgba(129,199,132,0.4); background: rgba(129,199,132,0.08); }
.badge-draft { color: var(--text-muted); border-color: var(--border); background: var(--surface-2); }
.badge-scheduled { color: var(--gold); border-color: rgba(255,213,79,0.4); background: rgba(255,213,79,0.08); }

.quick-links { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.5rem; }
.card-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}
.card-btn:hover { color: var(--text); border-color: var(--accent-dim); text-decoration: none; }

.admin-filter { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filter-box input { border-radius: 999px; padding: 0.55rem 1.1rem; width: 260px; max-width: 100%; }
.segmented { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.segmented a { padding: 0.45rem 1rem; color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
.segmented a + a { border-left: 1px solid var(--border); }
.segmented a:hover { color: var(--text); text-decoration: none; }
.segmented a.current { background: var(--accent); color: #0f1419; }

.post-editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.25rem; align-items: start; }
.editor-side { display: grid; gap: 1.25rem; position: sticky; top: 5.5rem; }
.input-lg { font-family: 'Source Serif 4', Georgia, serif; font-size: 1.35rem !important; font-weight: 600; }
.editor-body { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9rem !important; line-height: 1.6; min-height: 420px !important; }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.5rem; }
.editor-toolbar button {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.3rem 0.65rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.editor-toolbar button:hover { border-color: var(--accent-dim); }
.check-list { display: grid; gap: 0.35rem; max-height: 240px; overflow-y: auto; margin-bottom: 0.75rem; }
.check { display: flex !important; align-items: center; gap: 0.5rem; color: var(--text) !important; font-size: 0.95rem !important; cursor: pointer; }
.check input { accent-color: var(--accent); width: 1rem; height: 1rem; }
.sub-label { margin-top: 0.5rem; }
.danger-zone { margin-top: 2rem; }

.terms-layout, .settings-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.settings-layout { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }

/* ---------- 7. Responsive ---------- */
@media (max-width: 900px) {
  .post-editor, .terms-layout, .settings-layout { grid-template-columns: 1fr; }
  .editor-side { position: static; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .header-inner { flex-direction: column; gap: 0.75rem; }
  nav { gap: 1rem; flex-wrap: wrap; justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .banner { flex-direction: column; text-align: center; }
  .stats { gap: 1.5rem; }
  .hero { padding: 4rem 1.25rem 3rem; }
  .hero-compact { padding: 2.5rem 1.25rem 2rem; }
  section { padding: 3rem 1.25rem; }
  .list-section { padding-top: 1rem; }
  .post-grid { grid-template-columns: 1fr; }
  .search-bar input { padding: 0.9rem 1rem; }
  .search-bar button { padding: 0 1rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .article { padding-top: 2.5rem; }
  .prose { font-size: 1.08rem; }
  .admin-main { padding: 1.5rem 1rem 3rem; }
  .hide-sm { display: none; }
  .filter-box, .filter-box input { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .post-card { transition: none; }
  .post-card:hover { transform: none; }
}
