/* ─── News CMS — shared layout, per-site accent colors ─────────────────── */
:root {
  --bg: #0e0e12;
  --bg-alt: #121218;
  --pod: #17171d;
  --pod-deep: #101014;
  --border: #2b2b35;
  --accent: #e84393;
  --accent-bright: #ff5c8a;
  --accent-deep: #a61c5e;
  --accent-soft: #fbcfe8;
  --text: #f2f2f4;
  --muted: #a7a7b3;
  --radius: 10px;
  --col: 720px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.6;
}

h1, h2, h3, h4, .brand, .navbar, .chip, button, .btn,
input, select, textarea, .card-meta, .pagination, .admin-bar {
  font-family: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

a { color: var(--accent-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

img { max-width: 100%; height: auto; }

/* ─── Masthead ─────────────────────────────────────────────────────────── */
.masthead {
  background: var(--pod-deep);
  border-bottom: 3px solid var(--accent);
}
.masthead-in { padding: 26px 16px 18px; text-align: center; }
.brand {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}
.brand:hover { text-decoration: none; color: var(--accent-bright); }
.tagline { margin: 4px 0 0; color: var(--muted); font-style: italic; }

.navbar { background: var(--bg-alt); border-top: 1px solid var(--border); }
.navbar-in {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px;
  padding-top: 9px; padding-bottom: 9px;
}
.navbar a { color: var(--text); font-weight: 600; font-size: 0.95rem; }
.navbar a:hover { color: var(--accent-bright); text-decoration: none; }
.nav-search { margin-left: auto; display: flex; gap: 6px; }
.nav-search input {
  background: var(--pod); border: 1px solid var(--border); color: var(--text);
  border-radius: 6px; padding: 6px 9px; font-size: 0.9rem; width: 160px;
}
button, .btn {
  background: var(--accent); color: #fff; border: 0; border-radius: 6px;
  padding: 7px 14px; font-size: 0.92rem; font-weight: 700; cursor: pointer;
  display: inline-block;
}
button:hover, .btn:hover { background: var(--accent-deep); text-decoration: none; }
.btn-secondary { background: var(--pod); border: 1px solid var(--border); color: var(--text); }
.btn-danger { background: #b91c1c; }
.btn-small { padding: 4px 10px; font-size: 0.82rem; }

/* ─── Homepage ─────────────────────────────────────────────────────────── */
main.wrap { padding-top: 26px; padding-bottom: 40px; min-height: 55vh; }

.featured {
  background: var(--pod); border: 1px solid var(--border);
  border-top: 4px solid var(--accent); border-radius: var(--radius);
  padding: 26px 28px; margin-bottom: 26px;
}
.featured-img { display: block; margin: -6px 0 16px; }
.featured-img img { border-radius: 6px; width: 100%; }
.featured h2 { font-size: 2rem; line-height: 1.2; margin: 8px 0 10px; }
.featured h2 a { color: var(--text); }
.featured h2 a:hover { color: var(--accent-bright); text-decoration: none; }
.featured-excerpt { font-size: 1.08rem; color: var(--muted); margin: 0; }

.card-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.card {
  background: var(--pod); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.card-img img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card-body { padding: 16px 18px 18px; }
.card-meta { margin: 0 0 8px; font-size: 0.8rem; color: var(--muted); }
.card-title { margin: 0 0 8px; font-size: 1.3rem; line-height: 1.25; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent-bright); text-decoration: none; }
.card-excerpt { margin: 0; color: var(--muted); font-size: 0.97rem; }

.chip {
  background: var(--accent); color: #fff; border-radius: 999px;
  padding: 2px 10px; font-size: 0.72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.chip:hover { text-decoration: none; background: var(--accent-deep); }

.pagination {
  margin: 26px 0 0; display: flex; gap: 14px; align-items: center;
  justify-content: center; color: var(--muted);
}

.empty-note { color: var(--muted); text-align: center; padding: 40px 0; }

.section-title {
  font-size: 1.7rem; margin: 0 0 18px; padding-bottom: 8px;
  border-bottom: 3px solid var(--accent);
}

/* ─── Article ──────────────────────────────────────────────────────────── */
.article { max-width: var(--col); margin: 0 auto; }
.article h1 { font-size: 2.3rem; line-height: 1.15; margin: 10px 0 12px; }
.article-meta { color: var(--muted); font-size: 0.92rem; margin: 0 0 20px;
  font-family: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.article-hero { margin: 0 0 22px; }
.article-hero img { border-radius: var(--radius); width: 100%; }
.article-body { font-size: 1.13rem; }
.article-body h2 { font-size: 1.6rem; margin: 1.4em 0 0.5em; line-height: 1.25; }
.article-body h3 { font-size: 1.3rem; margin: 1.3em 0 0.5em; }
.article-body p { margin: 0 0 1.1em; }
.article-body blockquote {
  margin: 1.2em 0; padding: 10px 18px;
  border-left: 4px solid var(--accent); background: var(--pod);
  color: var(--accent-soft);
}
.article-body blockquote p { margin: 0; }
.article-body ul, .article-body ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.article-body li { margin-bottom: 0.35em; }
.article-body code {
  background: var(--pod); border: 1px solid var(--border); border-radius: 4px;
  padding: 1px 5px; font-size: 0.92em;
}
.article-body hr { border: 0; border-top: 1px solid var(--border); margin: 1.6em 0; }
.article-body img { border-radius: 6px; }
.article-back { margin-top: 30px; }

/* ─── Footer ───────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--pod-deep); border-top: 1px solid var(--border);
  margin-top: 20px;
}
.footer-in { padding: 28px 16px 34px; text-align: center; color: var(--muted); }
.footer-in p { margin: 5px 0; }
.footer-brand {
  font-family: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-weight: 800; font-size: 1.25rem; color: var(--text);
}
.footer-copy { font-size: 0.85rem; }

/* ─── Static pages ─────────────────────────────────────────────────────── */
.prose { max-width: var(--col); margin: 0 auto; font-size: 1.08rem; }
.prose h1 { font-size: 2rem; }
.prose h2 { margin-top: 1.5em; }

/* ─── Admin ────────────────────────────────────────────────────────────── */
.admin-bar { background: var(--pod-deep); border-bottom: 2px solid var(--accent); }
.admin-bar-in {
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center;
  padding-top: 10px; padding-bottom: 10px;
}
.admin-brand { color: var(--text); font-weight: 800; font-size: 1.1rem; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-left: auto; }
.admin-nav a { color: var(--text); font-size: 0.92rem; font-weight: 600; }
.admin-nav a:hover { color: var(--accent-bright); text-decoration: none; }
.admin-user { color: var(--muted); font-size: 0.9rem; }
.admin-main { padding-top: 24px; }
.admin h1 { font-size: 1.6rem; margin: 0 0 18px; }

table.posts { width: 100%; border-collapse: collapse; font-size: 0.95rem;
  font-family: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
table.posts th, table.posts td {
  text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.posts th { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }
.status { border-radius: 999px; padding: 2px 10px; font-size: 0.75rem; font-weight: 800; }
.status-published { background: #14532d; color: #bbf7d0; }
.status-draft { background: #57534e; color: #e7e5e4; }
.row-actions { white-space: nowrap; }
.row-actions form { display: inline; }

.filter-bar { margin-bottom: 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.notice { background: #14532d; color: #bbf7d0; border-radius: 6px; padding: 10px 14px; margin-bottom: 16px; }
.error { background: #7f1d1d; color: #fecaca; border-radius: 6px; padding: 10px 14px; margin-bottom: 16px; }

form.editor label { display: block; font-weight: 700; margin: 16px 0 5px; font-size: 0.92rem;
  font-family: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
form.editor input[type="text"], form.editor input[type="url"],
form.editor input[type="datetime-local"], form.editor input[type="password"],
form.editor select, form.editor textarea {
  width: 100%; background: var(--pod); border: 1px solid var(--border);
  color: var(--text); border-radius: 6px; padding: 9px 11px; font-size: 1rem;
}
form.editor textarea { min-height: 320px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.95rem; line-height: 1.5; }
form.editor textarea.excerpt { min-height: 70px; font-family: inherit; }
form.editor .hint { color: var(--muted); font-size: 0.83rem; margin-top: 4px; }
form.editor .form-actions { margin: 22px 0 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.current-image { margin-top: 8px; max-width: 320px; border-radius: 6px; }

.login-box {
  max-width: 380px; margin: 60px auto; background: var(--pod);
  border: 1px solid var(--border); border-top: 4px solid var(--accent);
  border-radius: var(--radius); padding: 26px 28px;
}
.login-box h1 { font-size: 1.4rem; margin: 0 0 6px; }
.login-box p.sub { color: var(--muted); margin: 0 0 10px; }

/* ─── Small screens ────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .brand { font-size: 2rem; }
  .card-list { grid-template-columns: 1fr; }
  .featured { padding: 20px 18px; }
  .featured h2 { font-size: 1.55rem; }
  .article h1 { font-size: 1.8rem; }
  .article-body { font-size: 1.05rem; }
  .nav-search { margin-left: 0; width: 100%; }
  .nav-search input { flex: 1; width: auto; }
  table.posts th:nth-child(3), table.posts td:nth-child(3) { display: none; }
}

/* Discreet ad frame - renders nothing at all while no slot is configured */
.ad-frame{max-width:970px;margin:26px auto 10px;padding:10px 12px 12px;border:1px solid rgba(127,127,127,.35);border-radius:12px;text-align:center}
.ad-label{display:block;font-size:11px;letter-spacing:.12em;text-transform:uppercase;opacity:.55;margin-bottom:6px}

/* Syndication bits */
.checkline{display:flex;gap:8px;align-items:center;margin-top:16px;font-weight:600}
.checkline input{width:auto}
.article-source{font-style:italic;opacity:.75}
