/* ============================================================
   ƿebtīdende — Old English Newspaper
   Design: Editorial broadsheet meets medieval manuscript
   ============================================================ */

:root {
  --bg: #f8f5f0;
  --bg-warm: #f3efe8;
  --ink: #1a1612;
  --ink-soft: #3d3530;
  --muted: #7a7068;
  --card: #ffffff;
  --line: #d8d0c6;
  --line-heavy: #b8ad9f;
  --accent: #8b2500;
  --accent-light: #a83a12;
  --accent-bg: #fdf6f0;
  --section-world: #1b5e3b;
  --section-us: #1e3a5f;
  --section-europe: #5b2d8e;
  --section-business: #8b5e00;
  --shadow-sm: 0 1px 3px rgba(26,22,18,0.06);
  --shadow-md: 0 2px 8px rgba(26,22,18,0.08);
  --radius: 2px;
  --max-w: 1200px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Source Serif 4', 'Georgia', serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---- MASTHEAD ---- */
.masthead {
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  padding: 20px 16px 16px;
  border-bottom: 4px double var(--line-heavy);
}
.masthead-inner { max-width: var(--max-w); margin: 0 auto; }
.masthead-top {
  display: flex;
  justify-content: space-between;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a09888;
  margin-bottom: 8px;
}
.masthead-title {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 4px 0;
}
.masthead-title a { color: var(--bg); text-decoration: none; }
.masthead-title a:hover { color: #d4c8b8; }
.masthead-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a09888;
  margin-top: 4px;
}
.masthead-motto {
  font-family: 'DM Sans', sans-serif;
}

/* ---- NAV BAR ---- */
.nav-bar {
  background: var(--card);
  border-bottom: 2px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  flex-wrap: wrap;
}
.nav-link {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 4px 8px;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--accent); background: var(--accent-bg); }
.nav-sep { color: var(--line-heavy); font-size: 12px; }
.nav-coffee { color: #d4a96a; font-size: 12px; font-weight: 500; }
.nav-coffee:hover { color: #8b2500; background: var(--accent-bg); }
.nav-admin { color: var(--muted); font-size: 12px; }

/* ---- SITE MAIN ---- */
.site-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 16px;
}

/* ---- HERO SECTION ---- */
.hero-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .hero-section { grid-template-columns: 2fr 1fr; }
}
.hero-card {
  padding-bottom: 24px;
}
.hero-section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.hero-headline {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  margin-bottom: 8px;
}
.hero-headline a { color: var(--ink); }
.hero-headline a:hover { color: var(--accent); }
.hero-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 10px;
  font-style: italic;
}
.hero-dek {
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 12px;
}
.hero-meta {
  display: flex;
  gap: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.meta-section {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.read-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.read-link:hover { color: var(--accent-light); }

/* ---- SIDEBAR ---- */
.hero-sidebar {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
@media (max-width: 767px) {
  .hero-sidebar {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 20px;
  }
}
.sidebar-block {}
.sidebar-heading {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 2px;
}
.sidebar-heading-en {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.ranked-list {
  list-style: none;
  counter-reset: rank;
}
.ranked-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.ranked-list li:last-child { border-bottom: none; }
.rank-num {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--line-heavy);
  line-height: 1;
  min-width: 28px;
}
.rank-content { flex: 1; }
.rank-title {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  display: block;
  margin-bottom: 2px;
}
.rank-title:hover { color: var(--accent); }
.rank-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--muted);
}

/* ---- SECTIONS GRID (4 columns on desktop) ---- */
.sections-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 600px) {
  .sections-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .sections-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
}
.section-column {
  padding: 0 16px;
  border-right: 1px solid var(--line);
}
.section-column:first-child { padding-left: 0; }
.section-column:last-child { border-right: none; padding-right: 0; }
@media (max-width: 959px) {
  .section-column {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
  }
  .section-column:last-child { border-bottom: none; }
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 6px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: none;
}
.section-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.section-link:hover { color: var(--accent); }

/* Section lead */
.section-lead { margin-bottom: 16px; }
.lead-headline {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
}
.lead-headline a:hover { color: var(--accent); }
.lead-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 6px;
}
.lead-dek {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.45;
  margin-bottom: 6px;
}
.lead-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--muted);
}

/* Section brief */
.section-brief {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.brief-headline {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 2px;
}
.brief-headline a:hover { color: var(--accent); }
.brief-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 2px;
}
.brief-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--muted);
}

/* ---- AD ZONE ---- */
.ad-zone {
  margin: 32px 0;
  text-align: center;
}
.ad-placeholder {
  min-height: 90px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--bg-warm);
}

/* ---- WORD OF THE DAY ---- */
.wotd {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
}
.wotd-ornament {
  font-size: 20px;
  color: var(--accent);
  opacity: 0.6;
  flex-shrink: 0;
}
.wotd-content {
  flex: 1;
  text-align: center;
}
.wotd-heading {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.wotd-main {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.wotd-word {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 900;
  color: var(--ink);
}
.wotd-pron {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: var(--muted);
  font-style: italic;
}
.wotd-pos {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--card);
  background: var(--accent);
  padding: 2px 8px;
  border-radius: var(--radius);
}
.wotd-gloss {
  font-family: 'Source Serif 4', serif;
  font-size: 20px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.wotd-example {
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 20px;
  margin: 0 auto 10px;
  max-width: 500px;
}
.wotd-oe {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 4px;
}
.wotd-en {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.wotd-etym {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

/* ---- DECORATIVE SECTION DIVIDERS ---- */
.section-rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 28px 0;
  position: relative;
  text-align: center;
}
.section-rule::after {
  content: '✦';
  position: relative;
  top: -12px;
  background: var(--bg);
  padding: 0 12px;
  font-size: 14px;
  color: var(--line-heavy);
}

/* Section header decorative underline */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  border-bottom: 3px double var(--ink);
  padding-bottom: 6px;
  position: relative;
}
.section-header::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent);
}

/* ---- LATEST STRIP ---- */
.strip-heading {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.strip-card {
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s;
}
.strip-card:hover { box-shadow: var(--shadow-md); }
.strip-section {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.strip-headline {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  margin: 4px 0;
}
.strip-headline a:hover { color: var(--accent); }
.strip-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 4px;
}
.strip-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--muted);
}

/* ---- SECTION PAGE ---- */
.section-page { max-width: 800px; margin: 0 auto; }
.section-page-header { text-align: center; margin-bottom: 8px; }
.section-page-title {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 900;
}
.section-page-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.section-page-grid { display: flex; flex-direction: column; gap: 0; }
.sp-lead {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.sp-lead-headline {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 6px;
}
.sp-lead-headline a:hover { color: var(--accent); }
.sp-lead-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 8px;
}
.sp-lead-dek {
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 10px;
}
.sp-lead-meta {
  display: flex;
  gap: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}
.sp-article {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.sp-headline {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
}
.sp-headline a:hover { color: var(--accent); }
.sp-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 4px;
}
.sp-dek {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.sp-meta {
  display: flex;
  gap: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--muted);
}

/* ---- ARTICLE PAGE ---- */
.article-page { max-width: 72ch; margin: 0 auto; }
.article-header { margin-bottom: 24px; }
.crumb {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 12px;
}
.crumb:hover { color: var(--accent-light); }
.article-section-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}
.article-headline {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
  margin-bottom: 6px;
}
.article-headline-en {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 8px;
}
.article-dek {
  font-size: 19px;
  color: var(--ink-soft);
  line-height: 1.45;
  margin-bottom: 12px;
}
.article-meta {
  display: flex;
  gap: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.meta-dot { color: var(--line-heavy); }

/* Tools */
.article-tools {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  padding: 10px 14px;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.tool-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.tool-btn:hover { border-color: var(--accent); color: var(--accent); }
.tool-icon { font-size: 14px; }
.tool-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.tool-toggle-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--ink-soft);
}

/* Prose / Tokens */
.article-prose { margin-bottom: 32px; }
.article-prose .para {
  margin-bottom: 12px;
  font-size: 18px;
  line-height: 1.7;
}
/* Illuminated drop cap on first paragraph */
.article-prose .para-first::first-letter {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 4.2em;
  float: left;
  line-height: 0.8;
  margin: 4px 12px 0 0;
  color: var(--accent);
  padding-right: 4px;
}
/* Decorative border on first paragraph */
.article-prose .para-first {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
}
.article-prose .tok {
  padding: 1px 2px;
  border-radius: 2px;
  cursor: default;
  transition: background 0.15s;
}
.article-prose .tok[data-gloss]:hover {
  background: #fff3cd;
  cursor: help;
}
.article-prose.show-gloss .tok[data-gloss] {
  background: #fff3cd;
  border-bottom: 1px dotted var(--accent);
}
.paraphrase {
  margin: 4px 0 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--muted);
}
.paraphrase summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--accent);
  font-size: 13px;
}
.paraphrase p { margin-top: 4px; }

/* ---- COMMENTS ---- */
.comments-section { margin-top: 24px; }
.comments-heading {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}
.comments-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.comment-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
}
.comment-header {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
}
.comment-user { font-weight: 600; color: var(--ink); }
.comment-date { color: var(--muted); }
.comment-mode {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 2px;
}
.comment-mode.oe { background: #e8f5e9; color: #2e7d32; }
.comment-mode.modern { background: #e3f2fd; color: #1565c0; }
.comment-body { font-size: 15px; line-height: 1.5; }

/* Comment form */
.comment-form { margin-top: 20px; }
.comment-form-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* ---- FORMS ---- */
.form-row { display: flex; gap: 8px; margin-bottom: 10px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  font-family: 'Source Serif 4', serif;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-select { font-family: 'DM Sans', sans-serif; font-size: 14px; }
.form-actions { justify-content: space-between; align-items: center; }
.form-group { margin-bottom: 16px; }
.form-group label {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
  color: var(--ink-soft);
}
.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 6px;
}

/* Buttons */
.btn-primary {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  background: var(--ink);
  color: var(--bg);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--accent); }
.btn-secondary {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  padding: 6px 12px;
  background: none;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-wide { width: 100%; }

/* ---- ADMIN ---- */
.admin-page { max-width: 960px; margin: 0 auto; }
.admin-header { margin-bottom: 24px; }
.admin-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
}
.admin-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.admin-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
}
.admin-card-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}
.ingest-controls { display: flex; flex-direction: column; gap: 12px; }
.ingest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.ingest-legacy { margin-top: 8px; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
}
.admin-table th {
  text-align: left;
  padding: 8px;
  border-bottom: 2px solid var(--line);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.admin-table td {
  padding: 8px;
  border-bottom: 1px solid var(--line);
}
.admin-table a:hover { color: var(--accent); }
.section-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 2px;
  background: var(--bg-warm);
  border: 1px solid var(--line);
}
.muted { color: var(--muted); }

/* ---- EMPTY STATE ---- */
.empty-state {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--muted);
  text-align: center;
  padding: 32px 0;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  padding: 32px 16px;
  margin-top: 48px;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 8px;
}
.footer-copy {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #a09888;
}
.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.footer-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #a09888;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-link:hover { color: #f8f5f0; }
.footer-coffee { color: #d4a96a; font-weight: 600; }
.footer-coffee:hover { color: #f0d0a0; }
.footer-dot { color: #5a534a; font-size: 10px; }

/* Suggestions */
.suggestion-card {
  max-width: 540px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.suggestion-success {
  max-width: 540px;
  margin: 0 auto 20px;
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  text-align: center;
}
.page-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 24px;
}
.footer-note {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: #7a7068;
  margin-top: 4px;
}

/* ---- ARTICLE IMAGE ---- */
.article-image {
  margin: 16px 0 20px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.article-image img {
  width: 100%;
  height: auto;
  display: block;
}
.article-image-caption {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  padding: 6px;
  background: var(--bg-warm);
  border-top: 1px solid var(--line);
}

/* Hero image on home page */
.hero-image {
  margin-bottom: 12px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 300px;
  object-fit: cover;
}

/* ---- MODERATION ---- */
.mod-item {
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
}
.mod-header {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
}
.mod-body {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 10px;
  padding: 8px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.mod-actions { display: flex; gap: 8px; }
.btn-approve {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
  border-radius: var(--radius);
  cursor: pointer;
}
.btn-approve:hover { background: #c8e6c9; }
.btn-reject {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
  border-radius: var(--radius);
  cursor: pointer;
}
.btn-reject:hover { background: #ffcdd2; }

/* Form notice */
.form-notice {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
  font-style: italic;
}

/* ---- LOGIN ---- */
.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50vh;
}
.login-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 40px;
  max-width: 380px;
  width: 100%;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.login-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 2px;
}
.login-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}
.login-error {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #c62828;
  background: #ffebee;
  border: 1px solid #ffcdd2;
  border-radius: var(--radius);
  padding: 8px 12px;
  margin-bottom: 16px;
}
.login-form .form-group { text-align: left; }

/* ---- ABOUT / LEARN PAGES ---- */
.page-content {
  max-width: 72ch;
  margin: 0 auto;
}
.page-header {
  text-align: center;
  margin-bottom: 8px;
}
.page-title {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 900;
}

/* Language toggle */
.lang-toggle {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}
.lang-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}
.lang-btn:hover { border-color: var(--accent); color: var(--accent); }
.lang-btn.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.prose-section {
  margin-bottom: 28px;
}
.prose-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 4px;
  display: inline-block;
}
.prose-section p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

/* Learn steps */
.learn-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  min-width: 32px;
}
.learn-step h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.learn-step p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}

/* Letter grid */
.letter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.letter-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.letter-big {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
}
.letter-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
}
.letter-sound {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--muted);
}

/* Word table */
.word-table {
  margin-top: 12px;
}
.wt-row {
  display: flex;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.wt-oe {
  flex: 1;
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
}
.wt-en {
  flex: 1;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--muted);
}

/* ---- RESPONSIVE / MOBILE ---- */
@media (max-width: 600px) {
  .masthead { padding: 14px 12px 10px; }
  .masthead-top { flex-direction: column; align-items: center; gap: 2px; }
  .masthead-title { font-size: 32px; }

  .nav-inner { gap: 2px; padding: 8px 10px; }
  .nav-link { font-size: 12px; padding: 4px 5px; }
  .nav-sep-end { display: none; }

  .site-main { padding: 16px 12px; }

  .hero-section { grid-template-columns: 1fr; gap: 16px; }
  .hero-headline { font-size: 26px; }
  .hero-dek { font-size: 16px; }
  .hero-meta { flex-wrap: wrap; }
  .hero-sidebar { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }

  .sections-grid { grid-template-columns: 1fr; }
  .section-column { padding: 16px 0; border-right: none; border-bottom: 1px solid var(--line); }
  .section-column:first-child { padding-left: 0; }
  .section-column:last-child { border-bottom: none; }

  .strip-grid { grid-template-columns: 1fr; }

  .article-page { padding: 0 4px; }
  .article-headline { font-size: 24px; }
  .article-dek { font-size: 16px; }
  .article-meta { flex-wrap: wrap; }
  .article-tools { flex-direction: column; gap: 8px; align-items: stretch; }
  .article-prose .para { font-size: 16px; }

  .form-row { flex-direction: column; }
  .form-actions { flex-direction: row; }

  .admin-table { font-size: 12px; }
  .admin-table th, .admin-table td { padding: 6px 4px; }
  .ingest-grid { grid-template-columns: 1fr 1fr; }

  .sp-lead-headline { font-size: 24px; }
  .section-page-title { font-size: 28px; }

  .page-title { font-size: 28px; }
  .learn-step { flex-direction: column; gap: 8px; }
  .letter-grid { grid-template-columns: 1fr 1fr; }
  .login-card { padding: 24px 20px; }
}

@media (max-width: 380px) {
  .nav-link { font-size: 11px; padding: 3px 4px; }
  .masthead-title { font-size: 26px; }
  .hero-headline { font-size: 22px; }
  .ingest-grid { grid-template-columns: 1fr; }
}

