/* ── Biafran Times — Main Stylesheet ── */

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

/* ── CSS VARIABLES ── */
:root {
  --ink:      #111008;
  --ink-soft: #3a3730;
  --ink-muted:#7a7670;
  --cream:    #ffffff;
  --warm:     #ede8df;
  --accent:   #c8401a;
  --accent2:  #2a5c3f;
  --rule:     #d4cfc6;
  --serif:    "Playfair Display", Georgia, serif;
  --sans:     "DM Sans", sans-serif;
  --mono:     "DM Mono", monospace;
  --success:  #2a5c3f;
  --warning:  #b8860b;
}

/* ── BASE ── */
html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* main#main-content { flex: 1; } */

img { max-width: 100%; }

/* ── LAYOUT CONTAINERS ─────────────────────────────────────────
   All share the same max-width so header, ticker, and content
   are visually aligned.
─────────────────────────────────────────────────────────────── */
.main {
  width: 80%;
  max-width: 1280px;
  margin: 0 auto;
}

.container {
  width: 80%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
}

.article-wrap {
  width: 80%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
}

/* ── HEADER (newspaper-style) ── */
.header {
  width: 80%;
  max-width: 1280px;
  display: flex;
  flex-direction: column;
  margin: 10px auto 60px;
}

.top, .midLogo {
  display: grid;
  grid-template-columns: auto auto auto;
  justify-content: space-between;
}

.menuIcon { font-size: 20px; cursor: pointer; }

.topMenu ul li, menu ul li {
  text-decoration: none;
  list-style: none;
  list-style-type: none;
  margin: 5px;
}

nav ul { display: flex; flex-direction: row; flex-wrap: nowrap; white-space: nowrap; }

.topMenu {
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  text-transform: uppercase;
  font-size: 10px;
  color: black;
  margin-left: 80px;
}

/* ul inside .topMenu must not inherit the outer margin — both div and ul share the class */
#topMenu { display: flex; list-style: none; padding: 0; margin: 0; gap: 0.25rem; flex-wrap: nowrap; }

.topMenu li a, .menu ul li a {
  text-decoration: none;
  list-style-type: none;
  list-style: none;
  color: black;
}

/* ── Header right column: Free Nnamdi Kanu · Weather · Forex ── */
.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
}

/* Shared chip base */
.hdr-kanu-chip,
.hdr-weather-chip,
.hdr-forex-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding: 4px 9px;
  border-radius: 2px;
  line-height: 1;
}

/* Free Nnamdi Kanu chip — dark, gold text, pulsing red dot */
.hdr-kanu-chip {
  background: #111;
  color: #e8d07a;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.09em;
  transition: background 0.2s;
}
.hdr-kanu-chip:hover { background: #252525; }

.hkb-dot {
  width: 6px; height: 6px;
  background: #e53e3e;
  border-radius: 50%;
  animation: pulse-dot 1.3s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.65); }
}

/* Weather chip — warm cream background */
.hdr-weather-chip {
  background: #f5f0e8;
  color: var(--ink);
  border: 1px solid var(--rule);
}
.hdr-chip-icon { font-size: 12px; color: #d4820a; }
.hdr-chip-sep  { color: var(--rule); }
.hdr-chip-loc  { color: var(--ink-muted); font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; }

/* Forex chip — ink background, cream text */
.hdr-forex-chip {
  background: var(--ink);
  color: var(--cream);
}
.hdr-chip-pair {
  color: #aaa;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hdr-forex-arrow {
  font-size: 9px;
  font-weight: 900;
  margin-left: 1px;
}

/* ══════════════════════════════════════════════
   NNAMDI KANU DETENTION WIDGET — sidebar
══════════════════════════════════════════════ */
.kanu-widget {
  background: #0e0e0e;
  color: #f0ece4;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 2rem;
  font-family: var(--mono);
}

/* Biafra flag bar: black + green */
.kw-flag-bar {
  display: flex;
  height: 5px;
}
.kw-flag-black { flex: 1; background: #1a1a1a; }
.kw-flag-green { flex: 1; background: #2a6e45; }

/* Head section */
.kw-head {
  padding: 1.1rem 1.1rem 0.6rem;
  border-bottom: 1px solid #2a2a2a;
}
.kw-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e53e3e;
  margin-bottom: 0.5rem;
}
.kw-pulse {
  width: 6px; height: 6px;
  background: #e53e3e;
  border-radius: 50%;
  animation: pulse-dot 1.2s ease-in-out infinite;
  flex-shrink: 0;
}
.kw-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 900;
  color: #e8d07a;
  line-height: 1.1;
  margin-bottom: 0.2rem;
  letter-spacing: 0.01em;
}
.kw-role {
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.kw-status {
  font-size: 0.72rem;
  color: #c8a0a0;
  letter-spacing: 0.04em;
}

/* Since-date row */
.kw-since {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  background: #161616;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: #aaa;
  border-bottom: 1px solid #222;
}
.kw-since i { color: #e8d07a; font-size: 0.85rem; }

/* Counter grid */
.kw-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  padding: 1rem 0.75rem 0.5rem;
}
.kw-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}
.kw-num {
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: #e8d07a;
  line-height: 1;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 0.2rem;
}
.kw-unit small {
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #666;
}
.kw-colon {
  font-size: 1.4rem;
  font-weight: 700;
  color: #444;
  padding: 0 0.1rem;
  margin-bottom: 1rem;
  align-self: flex-start;
  padding-top: 0.1rem;
}

/* Seconds progress bar */
.kw-secs-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.1rem 0.85rem;
}
.kw-secs-label {
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #555;
  flex-shrink: 0;
}
.kw-secs-track {
  flex: 1;
  height: 3px;
  background: #2a2a2a;
  border-radius: 2px;
  overflow: hidden;
}
.kw-secs-fill {
  height: 100%;
  background: linear-gradient(90deg, #2a6e45, #e8d07a);
  border-radius: 2px;
  width: 0%;
  transition: width 0.9s linear;
}
.kw-secs-num {
  font-size: 0.68rem;
  font-weight: 700;
  color: #e8d07a;
  min-width: 18px;
  text-align: right;
  flex-shrink: 0;
}

/* CTA button */
.kw-cta {
  display: block;
  text-align: center;
  background: #2a6e45;
  color: #fff;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.7rem 1rem;
  transition: background 0.2s;
}
.kw-cta:hover { background: #1e5233; }

.midLogo { border-bottom: 1px solid #eee; margin-bottom: 10px; }

hr { border-bottom: 1px solid #eee; }

.logo img { width: 350px; cursor: pointer; }

/* legacy weather rules — replaced by .header-right chips */
.weather_details { display: none; }
.market          { display: none; }

.menu {
  width: 100%;
  margin: auto;
  padding-bottom: 10px;
  border-bottom: 1px solid rgb(44, 37, 37);
  margin-bottom: 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.menu::-webkit-scrollbar { height: 2px; }
.menu::-webkit-scrollbar-thumb { background: var(--rule); }

.menu ul li { list-style-type: none; list-style: none; margin-right: 10px; }
.menu ul li a { text-decoration: none; font-size: 12px; }

.menu, #newsLinks {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* ── TICKER ── */
.ticker {
  background: var(--ink);
  color: var(--cream);
  height: 2rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 100%;
}

.ticker-label {
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  z-index: 1;
}

.ticker-overflow {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  animation: ticker-scroll 60s linear infinite;
  white-space: nowrap;
  will-change: transform;
}

.ticker-overflow:hover .ticker-track { animation-play-state: paused; }

.ticker-track span {
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 0 2rem;
  color: var(--warm);
}

.ticker-track span a { color: #fff; text-decoration: none; }
.ticker-track span a:hover { color: var(--accent); text-decoration: underline; }

.ticker-track span::before {
  content: "\25c6";
  color: var(--accent);
  margin-right: 2rem;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── COMMON UI ── */
.cat-tag {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 0.2rem 0.6rem;
  text-decoration: none;
  transition: background 0.2s;
  display: inline-block;
}
.cat-tag:hover { background: var(--ink); }
.cat-tag.green { background: var(--accent2); }

.post-date {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
}

.tag-pill {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--rule);
  padding: 0.25rem 0.6rem;
  text-decoration: none;
  transition: all 0.2s;
}
.tag-pill:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.section-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-top: 2.5rem;
}
.section-title { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; white-space: nowrap; }
.section-rule { flex: 1; height: 1px; background: var(--rule); }
.section-link {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  white-space: nowrap;
}
.section-link:hover { color: var(--accent); }

/* ── HOME PAGE: 2-COL LAYOUT ── */
.home-grid {
  display: grid;
  grid-template-columns: 4fr 1fr;
  gap: 2.5rem;
  padding-top: 2rem;
}

/* Home hero (first article, full-width image) */
.home-hero { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--rule); }
.home-hero img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; margin-bottom: 1rem; }

/* Article rows (2nd article onwards) */
.front-page {
  display: flex;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: flex-start;
}
.front-page:last-child { border-bottom: none; }

.article-details { flex: 1; }
.article-details h2 { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; line-height: 1.25; margin: 0.4rem 0 0.5rem; }
.article-details h2 a { color: var(--ink); text-decoration: none; }
.article-details h2 a:hover { color: var(--accent); }
.article-details h6 { font-family: var(--mono); font-size: 0.62rem; color: var(--ink-muted); margin-bottom: 0.4rem; }
.article-details p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.65; margin-bottom: 0.6rem; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.article-img { width: 220px; flex-shrink: 0; order: -1; }
.article-img img { width: 100%; height: 150px; object-fit: cover; display: block; }
.article-img a { display: block; }

/* Home sidebar */
.sidebar { border-left: 1px solid var(--rule); padding-left: 1.5rem; }
.sidebar .widget-title { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 1.25rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--ink); }

/* ── HOME PAGE: HERO GRID ── */
.hero-section {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--rule);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 0;
}

.hero-main {
  border-right: 1px solid var(--rule);
  padding-right: 2.5rem;
}

.hero-main .post-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  margin-bottom: 1.5rem;
}

.hero-main .post-image-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #2a3a2e 0%, #1a2a1e 50%, #0d1a12 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero-main .post-image-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,0.02) 40px,
    rgba(255,255,255,0.02) 41px
  );
}

.hero-eyebrow { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }

.hero-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero-title a {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s;
}
.hero-title a:hover { background-size: 100% 2px; }

.hero-excerpt { font-size: 1.05rem; color: var(--ink-soft); line-height: 1.7; margin-bottom: 1.25rem; }

.read-more {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.2s;
}
.read-more:hover { gap: 0.8rem; }
.read-more::after { content: "→"; }

/* ── HOME PAGE: HERO SIDEBAR ── */
.hero-sidebar {
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-post { padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.sidebar-post:first-child { padding-top: 0; }
.sidebar-post:last-child { border-bottom: none; }

.sidebar-post .post-num {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--rule);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.sidebar-post-title { font-family: var(--serif); font-size: 1.05rem; font-weight: 700; line-height: 1.3; margin-bottom: 0.4rem; }
.sidebar-post-title a { color: var(--ink); text-decoration: none; }
.sidebar-post-title a:hover { color: var(--accent); }
.sidebar-post-meta { font-family: var(--mono); font-size: 0.65rem; color: var(--ink-muted); }

/* ── HOME PAGE: ARTICLES GRID ── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
}

.article-card { position: relative; }

.article-card .card-image-placeholder {
  width: 100%;
  aspect-ratio: 3/2;
  background: var(--warm);
  margin-bottom: 1rem;
  overflow: hidden;
  position: relative;
}

.article-card .card-image-placeholder .img-inner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.article-card:hover .img-inner { transform: scale(1.04); }

.card-eyebrow { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }

.card-title { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; line-height: 1.25; margin-bottom: 0.5rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--accent); }

.card-excerpt {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-author { display: flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.65rem; color: var(--ink-muted); }

.author-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-size: 0.55rem;
  font-weight: 500;
  flex-shrink: 0;
}

/* ── HOME PAGE: TWO-COL + LONG READ ── */
.two-col-section {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
}

.longread-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: var(--ink);
  color: var(--cream);
  padding: 2.5rem;
}

.longread-card .lr-image {
  background: linear-gradient(160deg, #2a3a2e 0%, #1a2a1e 100%);
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.longread-card .lr-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, transparent, transparent 30px, rgba(255,255,255,0.03) 30px, rgba(255,255,255,0.03) 31px);
}

.lr-badge { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase; background: var(--accent); color: #fff; padding: 0.25rem 0.6rem; position: relative; z-index: 1; }

.longread-card .lr-content { display: flex; flex-direction: column; justify-content: center; }
.lr-label { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.lr-title { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; line-height: 1.2; margin-bottom: 1rem; color: var(--cream); }
.lr-excerpt { font-size: 0.88rem; color: #a8a49d; line-height: 1.7; margin-bottom: 1.5rem; }

.lr-read-more {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 0.2rem;
  transition: color 0.2s, border-color 0.2s;
}
.lr-read-more:hover { color: var(--accent); border-color: var(--accent); }
.lr-read-more::after { content: "→"; }

/* ── SIDEBAR WIDGETS ── */
.sidebar-widgets { display: flex; flex-direction: column; gap: 2rem; }

.widget { border-top: 2px solid var(--ink); padding-top: 1rem; }
.widget-title { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 1.25rem; }

.popular-list { list-style: none; }
.popular-list li { display: flex; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--rule); align-items: flex-start; }
.popular-list li:last-child { border-bottom: none; }
.pop-num { font-family: var(--serif); font-size: 1.4rem; font-weight: 900; color: var(--rule); line-height: 1; flex-shrink: 0; width: 2rem; }
.pop-title { font-family: var(--serif); font-size: 0.88rem; font-weight: 700; line-height: 1.3; }
.pop-title a { color: var(--ink); text-decoration: none; }
.pop-title a:hover { color: var(--accent); }

.newsletter-widget { background: var(--ink); color: var(--cream); padding: 1.5rem; }
.newsletter-widget .widget-title { color: var(--accent); }
.newsletter-widget p { font-size: 0.85rem; color: #a8a49d; margin-bottom: 1rem; line-height: 1.6; }
.newsletter-form { display: flex; flex-direction: column; gap: 0.5rem; }
.newsletter-form input { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15); color: var(--cream); padding: 0.6rem 0.8rem; font-family: var(--mono); font-size: 0.78rem; outline: none; transition: border-color 0.2s; }
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form input::placeholder { color: #666; }
.newsletter-form button { background: var(--accent); color: #fff; border: none; padding: 0.6rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; transition: background 0.2s; }
.newsletter-form button:hover { background: #a3340f; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* ── HOME PAGE: CATEGORIES BAR ── */
.categories-bar { padding: 2rem 0; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.cat-item { background: var(--cream); padding: 1.5rem; text-align: center; text-decoration: none; transition: background 0.2s; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.cat-item:hover { background: var(--ink); }
.cat-item:hover .cat-name { color: var(--cream); }
.cat-item:hover .cat-count { color: var(--accent); }
.cat-icon { font-size: 1.5rem; line-height: 1; }
.cat-name { font-family: var(--serif); font-size: 0.95rem; font-weight: 700; color: var(--ink); transition: color 0.2s; }
.cat-count { font-family: var(--mono); font-size: 0.65rem; color: var(--ink-muted); transition: color 0.2s; }

/* ── ARTICLE PAGE ─────────────────────────────────────────────── */

/* Reading progress bar */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--accent);
  z-index: 999;
  transition: width 0.1s linear;
  width: 0%;
}

/* Breadcrumb */
.breadcrumb { padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.breadcrumb-inner { display: flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.65rem; color: var(--ink-muted); }
.breadcrumb-inner a { color: var(--ink-muted); text-decoration: none; }
.breadcrumb-inner a:hover { color: var(--accent); }
.breadcrumb-inner span { color: var(--rule); }

/* Article two-column layout */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  padding: 3rem 0;
}

.article-header { margin-bottom: 2.5rem; }
.article-eyebrow { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.article-date { font-family: var(--mono); font-size: 0.65rem; color: var(--ink-muted); }

.article-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.article-subtitle {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2rem;
}

.author-block { display: flex; align-items: center; gap: 0.75rem; }

/* Article page uses a larger avatar */
.article-layout .author-avatar {
  width: 40px;
  height: 40px;
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 700;
}

.author-info { display: flex; flex-direction: column; }
.author-name { font-size: 0.9rem; font-weight: 500; }
.author-role { font-family: var(--mono); font-size: 0.62rem; color: var(--ink-muted); }

.article-stats { display: flex; gap: 1.5rem; }
.stat { font-family: var(--mono); font-size: 0.65rem; color: var(--ink-muted); display: flex; align-items: center; gap: 0.4rem; }

/* Hero image */
.article-hero {
  width: 100%;
  aspect-ratio: 16/9;
  background: #1a2a3e center/cover no-repeat;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero-caption {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--ink-muted);
  text-align: center;
  margin-top: -1.5rem;
  margin-bottom: 2rem;
  font-style: italic;
}

/* Article body typography */
.article-body { font-size: 1.05rem; line-height: 1.8; color: var(--ink-soft); }
.article-body p { margin-bottom: 1.5rem; }

.article-body h2 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ink);
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
}

.article-body h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  margin: 2rem 0 0.75rem;
}

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 0 1rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
}

.article-body code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--warm);
  padding: 0.15em 0.4em;
  border: 1px solid var(--rule);
}

.article-body pre {
  background: var(--ink);
  color: #e8e4da;
  padding: 1.5rem;
  margin: 1.5rem 0;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.6;
}

.article-body pre code { background: none; border: none; padding: 0; color: inherit; font-size: inherit; }

.article-body a { color: var(--accent); }
.article-body a:hover { text-decoration: none; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.article-body li { margin-bottom: 0.5rem; }

/* Article tags + actions */
.article-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 2.5rem 0; padding-top: 2rem; border-top: 1px solid var(--rule); }

.article-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: none;
  border: 1px solid var(--rule);
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.action-btn:hover, .action-btn.liked { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.action-btn.share { margin-left: auto; }


/* Comments */
.comments-section { margin-top: 1rem; }
.comments-title { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; margin-bottom: 2rem; display: flex; align-items: center; gap: 1rem; }
.comments-count { font-family: var(--mono); font-size: 0.72rem; color: #fff; background: var(--accent); padding: 0.15rem 0.5rem; font-weight: 400; }

.comment-form-wrap { background: var(--warm); border: 1px solid var(--rule); padding: 2rem; margin-bottom: 2.5rem; }
.comment-form-title { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; margin-bottom: 1.5rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-row.single { grid-template-columns: 1fr; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.form-group:last-child { margin-bottom: 0; }

.form-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.4rem;
}
.form-label .req { color: var(--accent); }

.form-input, .form-textarea, .form-select {
  background: var(--cream);
  border: 1px solid var(--rule);
  color: var(--ink);
  padding: 0.65rem 0.8rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--accent); }
.form-textarea { resize: vertical; min-height: 120px; }

.char-count { font-family: var(--mono); font-size: 0.62rem; color: var(--ink-muted); text-align: right; margin-top: 0.25rem; }
.char-hint { font-family: var(--mono); font-size: 0.6rem; color: var(--ink-muted); text-align: right; margin-top: 0.3rem; }
.char-hint.warn { color: var(--warning); }
.char-hint.over { color: var(--accent); }

.form-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 1.25rem; }
.form-note { font-family: var(--mono); font-size: 0.62rem; color: var(--ink-muted); }

.submit-btn {
  background: var(--ink);
  color: var(--cream);
  border: none;
  padding: 0.7rem 1.75rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.submit-btn:hover { background: var(--accent); }

.comment-list { display: flex; flex-direction: column; gap: 0; }
.comment { padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.comment:last-child { border-bottom: none; }
.comment-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 0.75rem; }
.commenter { display: flex; align-items: center; gap: 0.75rem; }
.commenter-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--ink-soft); display: flex; align-items: center; justify-content: center; color: var(--cream); font-family: var(--serif); font-size: 0.85rem; font-weight: 700; flex-shrink: 0; }
.commenter-avatar.guest { background: var(--ink-muted); }
.commenter-info { display: flex; flex-direction: column; }
.commenter-name { font-size: 0.9rem; font-weight: 500; }
.commenter-meta { font-family: var(--mono); font-size: 0.62rem; color: var(--ink-muted); }
.comment-body { font-size: 0.92rem; line-height: 1.7; color: var(--ink-soft); margin-bottom: 0.75rem; padding-left: 3rem; }
.comment-actions { display: flex; align-items: center; gap: 1rem; padding-left: 3rem; }
.comment-action { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); background: none; border: none; cursor: pointer; display: flex; align-items: center; gap: 0.3rem; transition: color 0.2s; padding: 0; }
.comment-action:hover { color: var(--accent); }
.comment-action.liked { color: var(--accent); }

.comment-replies { margin-left: 3rem; margin-top: 1rem; border-left: 2px solid var(--rule); padding-left: 1.5rem; }
.reply { padding: 1rem 0; border-bottom: 1px dashed var(--rule); }
.reply:last-child { border-bottom: none; }

.reply-form { margin: 1rem 0 0 3rem; padding: 1rem; background: var(--warm); border: 1px solid var(--rule); display: none; }
.reply-form.open { display: block; }
.reply-form textarea { width: 100%; background: var(--cream); border: 1px solid var(--rule); padding: 0.65rem; font-family: var(--sans); font-size: 0.88rem; font-weight: 300; resize: vertical; min-height: 80px; outline: none; margin-bottom: 0.75rem; }
.reply-form textarea:focus { border-color: var(--accent); }
.reply-actions { display: flex; gap: 0.75rem; justify-content: flex-end; }
.cancel-btn { background: none; border: 1px solid var(--rule); color: var(--ink-muted); padding: 0.4rem 0.9rem; font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.08em; cursor: pointer; transition: all 0.2s; }
.cancel-btn:hover { border-color: var(--ink); color: var(--ink); }

/* Article sidebar */
.article-sidebar { position: relative; }
.sticky-sidebar { position: sticky; top: 2rem; display: flex; flex-direction: column; gap: 2rem; }

/* TOC */
.toc-list { list-style: none; }
.toc-list li { margin-bottom: 0.6rem; }
.toc-list a { font-size: 0.85rem; color: var(--ink-soft); text-decoration: none; display: flex; gap: 0.5rem; align-items: flex-start; transition: color 0.2s; line-height: 1.4; }
.toc-list a:hover { color: var(--accent); }
.toc-num { font-family: var(--mono); font-size: 0.65rem; color: var(--ink-muted); flex-shrink: 0; margin-top: 0.15rem; }

/* Related posts */
.related-post { display: flex; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
.related-post:last-child { border-bottom: none; }
.related-post-thumb { width: 60px; height: 45px; background: var(--warm); flex-shrink: 0; background-size: cover; background-position: center; }
.related-post-title { font-family: var(--serif); font-size: 0.88rem; font-weight: 700; line-height: 1.3; }
.related-post-title a { color: var(--ink); text-decoration: none; }
.related-post-title a:hover { color: var(--accent); }
.related-post-date { font-family: var(--mono); font-size: 0.62rem; color: var(--ink-muted); margin-top: 0.25rem; }

/* Share buttons */
.share-buttons { display: flex; flex-direction: column; gap: 0.5rem; }
.share-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--rule);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: all 0.2s;
}
.share-btn:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.share-icon { font-size: 1rem; }

/* ── SECTION / CATEGORY PAGES ── */

/* Page hero (dark header banner) */
.page-hero {
  background: var(--ink);
  color: var(--cream);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 60px,
    rgba(255,255,255,0.02) 60px,
    rgba(255,255,255,0.02) 61px
  );
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero-label { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.page-hero-title { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.page-hero-sub { font-size: 0.95rem; color: #a8a49d; }

/* Filter bar */
.filter-bar {
  background: var(--warm);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 100;
}
.filter-inner {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  width: 80%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
}
.filter-inner::-webkit-scrollbar { display: none; }
.filter-btn {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: none;
  border: none;
  border-right: 1px solid var(--rule);
  padding: 0.85rem 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
  display: block;
}
.filter-btn:hover { color: var(--ink); background: var(--cream); }
.filter-btn.active { color: var(--cream); background: var(--ink); }

/* Section layout: articles feed + sidebar */
.section-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  padding: 2.5rem 0;
}

.section-articles { padding: 2.5rem 0; }

.article-row {
  display: flex;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: flex-start;
}
.article-row:last-child { border-bottom: none; }

.article-row-image {
  width: 220px;
  height: 150px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--warm);
}
.article-row-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.article-row:hover .article-row-image img { transform: scale(1.04); }

.article-row-body { flex: 1; }
.article-row-source { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.article-row-title { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; line-height: 1.2; margin-bottom: 0.6rem; }
.article-row-title a { color: var(--ink); text-decoration: none; }
.article-row-title a:hover { color: var(--accent); }
.article-row-excerpt { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.65; margin-bottom: 0.75rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-row-meta { font-family: var(--mono); font-size: 0.62rem; color: var(--ink-muted); display: flex; gap: 1rem; align-items: center; }
.article-row-read-more { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); text-decoration: none; }
.article-row-read-more:hover { text-decoration: underline; }

.section-sidebar { border-left: 1px solid var(--rule); padding-left: 2.5rem; }
.section-sidebar .sidebar-post-img { width: 100%; height: 120px; object-fit: cover; display: block; margin-bottom: 0.75rem; }

/* ── FOOTER ── */
footer {
  background: var(--ink);
  color: var(--cream);
  padding: 3rem 0 2rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
}

.footer-brand .site-title-sm { font-family: var(--serif); font-size: 1.8rem; font-weight: 900; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.85rem; color: #a8a49d; line-height: 1.7; }

.footer-col h4 { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { font-size: 0.85rem; color: #a8a49d; text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--cream); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: #666;
}
.footer-legal-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.footer-legal-links a {
  color: #666;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.65rem;
  transition: color 0.15s;
}
.footer-legal-links a:hover { color: #fff; }
.footer-simple { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 0.65rem; color: #666; }
.footer-simple a { color: var(--cream); text-decoration: none; font-family: var(--serif); font-size: 1.4rem; font-weight: 900; }

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid rgba(200,64,26,0.3);
  padding: 0.2rem 0.5rem;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-section, .articles-grid, .two-col-section, .categories-bar {
  animation: fadeUp 0.6s ease both;
}
.articles-grid  { animation-delay: 0.1s; }
.two-col-section { animation-delay: 0.2s; }
.categories-bar { animation-delay: 0.3s; }

/* ── ADMIN STYLES ── */
.admin-nav {
  background: var(--ink);
  color: var(--cream);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  height: 52px;
  position: sticky;
  top: 0;
  z-index: 200;
  gap: 2rem;
}
.admin-brand { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; color: var(--cream); text-decoration: none; flex-shrink: 0; }
.admin-brand span { color: var(--accent); }
.admin-nav-links { display: flex; gap: 1.5rem; }
.admin-nav-links a { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: #a8a49d; text-decoration: none; transition: color 0.2s; }
.admin-nav-links a:hover, .admin-nav-links a.active { color: var(--cream); }
.admin-nav-right { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.nav-status { font-family: var(--mono); font-size: 0.62rem; color: #666; display: flex; align-items: center; gap: 0.4rem; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #4caf50; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

.editor-layout { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; max-width: 1400px; margin: 0 auto; padding: 1.5rem 1.5rem 4rem; }
.panel { background: var(--cream); border: 1px solid var(--rule); }
.panel-header { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 1.5rem; border-bottom: 1px solid var(--rule); background: var(--warm); }
.panel-title { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-muted); }
.panel-badge { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.08em; padding: 0.15rem 0.5rem; background: var(--accent); color: #fff; }
.panel-body { padding: 1.5rem; }

.form-input.title-input { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; padding: 0.9rem; border: none; border-bottom: 2px solid var(--rule); box-shadow: none; }
.form-input.title-input:focus { border-color: var(--accent); box-shadow: none; }
.form-input.slug-input { font-family: var(--mono); font-size: 0.82rem; color: var(--accent2); }
.slug-prefix { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-muted); background: var(--warm); border: 1px solid var(--rule); border-right: none; padding: 0.65rem 0.75rem; white-space: nowrap; }
.input-with-prefix { display: flex; }
.input-with-prefix .form-input { border-left: none; }

.editor-toolbar { display: flex; gap: 0; border-bottom: 1px solid var(--rule); background: var(--warm); flex-wrap: wrap; }
.tool-btn { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-soft); background: none; border: none; border-right: 1px solid var(--rule); padding: 0.55rem 0.85rem; cursor: pointer; transition: all 0.15s; display: flex; align-items: center; gap: 0.35rem; white-space: nowrap; }
.tool-btn:hover { background: var(--cream); color: var(--ink); }
.tool-btn.active { background: var(--ink); color: var(--cream); }
.tool-divider { width: 1px; background: var(--rule); margin: 0.25rem 0; }
.view-toggle { margin-left: auto; display: flex; border-left: 1px solid var(--rule); }
.view-btn { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); background: none; border: none; border-left: 1px solid var(--rule); padding: 0.55rem 1rem; cursor: pointer; transition: all 0.15s; }
.view-btn:first-child { border-left: none; }
.view-btn:hover { background: var(--cream); }
.view-btn.active { background: var(--ink); color: var(--cream); }

.editor-area { min-height: 420px; padding: 1.5rem; font-family: var(--sans); font-size: 1rem; font-weight: 300; line-height: 1.8; color: var(--ink-soft); outline: none; border: none; width: 100%; background: #fff; resize: none; }
.editor-area:focus { outline: none; }
.editor-area.preview { font-family: var(--sans); pointer-events: none; }
.editor-footer { display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 1.5rem; border-top: 1px solid var(--rule); background: var(--warm); }
.editor-stats { font-family: var(--mono); font-size: 0.62rem; color: var(--ink-muted); display: flex; gap: 1.5rem; }

.upload-zone { border: 2px dashed var(--rule); background: #fff; padding: 2.5rem 1.5rem; text-align: center; cursor: pointer; transition: all 0.2s; position: relative; overflow: hidden; }
.upload-zone:hover { border-color: var(--accent); background: rgba(200,64,26,0.02); }
.upload-zone.drag-over { border-color: var(--accent); background: rgba(200,64,26,0.05); }
.upload-zone.has-image { padding: 0; border-style: solid; border-color: var(--rule); }
.upload-icon { font-size: 2rem; margin-bottom: 0.75rem; opacity: 0.4; }
.upload-text { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; color: var(--ink-muted); }
.upload-hint { font-size: 0.75rem; color: var(--ink-muted); margin-top: 0.4rem; }
.upload-zone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cover-preview { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.cover-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; gap: 0.75rem; opacity: 0; transition: opacity 0.2s; }
.upload-zone.has-image:hover .cover-overlay { opacity: 1; }
.overlay-btn { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); padding: 0.4rem 0.8rem; cursor: pointer; transition: background 0.2s; pointer-events: auto; }
.overlay-btn:hover { background: var(--accent); border-color: var(--accent); }

.tags-input-wrap { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.5rem; background: #fff; border: 1px solid var(--rule); min-height: 44px; align-items: center; cursor: text; transition: border-color 0.2s; }
.tags-input-wrap:focus-within { border-color: var(--accent); }
.tag-chip { display: flex; align-items: center; gap: 0.3rem; background: var(--warm); border: 1px solid var(--rule); padding: 0.2rem 0.5rem; font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.06em; }
.tag-chip button { background: none; border: none; color: var(--ink-muted); cursor: pointer; font-size: 0.75rem; line-height: 1; padding: 0; transition: color 0.15s; }
.tag-chip button:hover { color: var(--accent); }
.tags-input { border: none; outline: none; font-family: var(--mono); font-size: 0.78rem; background: transparent; min-width: 80px; flex: 1; padding: 0.2rem 0; color: var(--ink); }

.schedule-toggle { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.toggle-label { font-size: 0.85rem; font-weight: 400; }
.toggle-switch { width: 40px; height: 22px; background: var(--rule); border-radius: 11px; position: relative; cursor: pointer; transition: background 0.2s; }
.toggle-switch.on { background: var(--accent2); }
.toggle-knob { width: 18px; height: 18px; background: #fff; border-radius: 50%; position: absolute; top: 2px; left: 2px; transition: left 0.2s; }
.toggle-switch.on .toggle-knob { left: 20px; }
.schedule-fields { display: none; }
.schedule-fields.open { display: block; }

.publish-actions { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
.btn { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid transparent; cursor: pointer; transition: all 0.2s; text-decoration: none; width: 100%; }
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--accent); }
.btn-success { background: var(--accent2); color: #fff; }
.btn-success:hover { background: #1e4530; }
.btn-secondary { background: none; color: var(--ink-soft); border-color: var(--rule); }
.btn-secondary:hover { background: var(--warm); }
.btn-danger { background: none; color: var(--accent); border-color: rgba(200,64,26,0.3); }
.btn-danger:hover { background: var(--accent); color: #fff; }

.seo-preview { background: #fff; border: 1px solid var(--rule); padding: 1rem; margin-top: 0.75rem; }
.seo-url { font-family: var(--mono); font-size: 0.72rem; color: var(--accent2); margin-bottom: 0.3rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seo-title-preview { font-size: 1.05rem; color: #1a0dab; margin-bottom: 0.3rem; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seo-desc-preview { font-size: 0.8rem; color: #4d5156; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.status-select-wrap { position: relative; }
.status-badge { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.25rem 0.6rem; }
.status-badge.draft { background: var(--warm); color: var(--ink-muted); border: 1px solid var(--rule); }
.status-badge.review { background: #fff8e6; color: var(--warning); border: 1px solid #f0d080; }
.status-badge.scheduled { background: #e8f0fe; color: #1a73e8; border: 1px solid #b0c8f8; }
.status-badge.published { background: #e6f4ea; color: var(--accent2); border: 1px solid #b0dab8; }

.toast { position: fixed; bottom: 2rem; right: 2rem; background: var(--ink); color: var(--cream); padding: 0.9rem 1.5rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; z-index: 9999; transform: translateY(100px); opacity: 0; transition: all 0.3s ease; display: flex; align-items: center; gap: 0.75rem; max-width: 340px; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-left: 3px solid var(--accent2); }
.toast.error { border-left: 3px solid var(--accent); }
.toast.info { border-left: 3px solid #1a73e8; }

.ai-indicator { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0.9rem; background: linear-gradient(90deg, rgba(42,92,63,0.08), rgba(200,64,26,0.05)); border: 1px solid rgba(42,92,63,0.2); margin-bottom: 1rem; }
.ai-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent2); animation: pulse 2s infinite; }
.ai-text { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.06em; color: var(--accent2); }

/* ── SEARCH OVERLAY ── */
.search-overlay { position: fixed; inset: 0; background: rgba(17,16,8,0.85); backdrop-filter: blur(4px); z-index: 9000; display: flex; align-items: flex-start; justify-content: center; padding-top: 12vh; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.search-overlay.active { opacity: 1; pointer-events: auto; }
.search-box { width: 100%; max-width: 640px; margin: 0 1rem; position: relative; }
.search-input { width: 100%; background: #fff; border: none; outline: none; font-family: var(--serif); font-size: 1.5rem; color: var(--ink); padding: 1.1rem 3.5rem 1.1rem 1.4rem; box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.search-input::placeholder { color: var(--ink-muted); font-style: italic; }
.search-submit { position: absolute; right: 48px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--ink-muted); display: flex; align-items: center; padding: 0.4rem; transition: color 0.2s; }
.search-submit:hover { color: var(--accent); }
.search-close { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--ink-muted); display: flex; align-items: center; padding: 0.4rem; transition: color 0.2s; font-size: 1.2rem; }
.search-close:hover { color: var(--accent); }
.search-hint { margin-top: 1rem; font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.08em; color: rgba(255,255,255,0.5); text-align: center; }

/* ── IMAGE CAPTION OVERLAY ── */
.img-caption-wrap { position: relative; display: block; width: 100%; }
.img-caption-wrap img { display: block; width: 100%; }
.img-caption { position: absolute; bottom: 0.45rem; left: 0.45rem; z-index: 2; background: rgba(0,0,0,0.52); color: rgba(255,255,255,0.82); font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.04em; padding: 0.18rem 0.45rem; pointer-events: none; white-space: nowrap; }
/* Legacy: old rewriter-generated <p class="img-caption"> in article body — render inline, not floating */
.article-body p.img-caption { position: static; background: transparent; color: var(--ink-muted); font-size: 0.65rem; padding: 0.15rem 0 0.75rem; white-space: normal; }

/* ── DONATE WIDGET ── */
.donate-widget { background: linear-gradient(135deg, var(--accent2) 0%, #1a3d28 100%); color: #fff; padding: 1.4rem 1.2rem; margin-top: 1.5rem; }
.donate-widget .widget-title { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.2); margin-bottom: 0.75rem; }
.donate-tagline { font-family: var(--serif); font-size: 0.95rem; font-style: italic; color: rgba(255,255,255,0.9); margin-bottom: 1rem; line-height: 1.5; }
.donate-btns { display: flex; flex-direction: column; gap: 0.6rem; }
.donate-btn { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.65rem 1rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; border: none; cursor: pointer; transition: all 0.2s; font-weight: 600; }
.donate-btn-paypal { background: #0070ba; color: #fff; }
.donate-btn-paypal:hover { background: #005ea6; color: #fff; }
.donate-btn-stripe { background: #fff; color: var(--ink); border: 1px solid rgba(255,255,255,0.3); }
.donate-btn-stripe:hover { background: rgba(255,255,255,0.9); color: var(--ink); }
.donate-note { font-family: var(--mono); font-size: 0.6rem; color: rgba(255,255,255,0.5); text-align: center; margin-top: 0.6rem; }

/* ── MODERN COMMENT FORM ── */
.comments-section { margin-top: 3rem; padding-top: 2rem; border-top: 2px solid var(--rule); }
.comments-heading { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; margin-bottom: 0.5rem; }
.comments-count { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-muted); letter-spacing: 0.06em; margin-bottom: 2rem; }
.comment-form-wrap { background: var(--warm); border: 1px solid var(--rule); padding: 1.5rem; margin-bottom: 2.5rem; }
.comment-form-title { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 1.2rem; }
.comment-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin-bottom: 0.9rem; }
.comment-field { display: flex; flex-direction: column; gap: 0.35rem; }
.comment-field label { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.comment-field input, .comment-field textarea { background: #fff; border: 1px solid var(--rule); padding: 0.65rem 0.75rem; font-family: var(--sans); font-size: 0.85rem; color: var(--ink); outline: none; transition: border-color 0.2s; resize: none; }
.comment-field input:focus, .comment-field textarea:focus { border-color: var(--accent); }
.comment-field textarea { min-height: 120px; }
.comment-submit { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--accent); color: #fff; border: none; padding: 0.75rem 1.8rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: background 0.2s; }
.comment-submit:hover { background: #a83415; }
.comment-submit svg { width: 14px; height: 14px; }
.comment-list { display: flex; flex-direction: column; gap: 1.5rem; }
.comment-item { display: grid; grid-template-columns: 40px 1fr; gap: 1rem; }
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--cream); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 0.85rem; font-weight: 600; flex-shrink: 0; }
.comment-content { border-bottom: 1px solid var(--rule); padding-bottom: 1.2rem; }
.comment-meta { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 0.5rem; }
.comment-author { font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; }
.comment-date { font-family: var(--mono); font-size: 0.62rem; color: var(--ink-muted); }
.comment-text { font-size: 0.9rem; line-height: 1.65; color: var(--ink-soft); }
.comment-reply-btn { background: none; border: none; cursor: pointer; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.06em; color: var(--ink-muted); text-transform: uppercase; margin-top: 0.5rem; padding: 0; transition: color 0.2s; }
.comment-reply-btn:hover { color: var(--accent); }

/* ── SHARE WIDGET ── */
.share-widget .widget-title { margin-bottom: 1rem; }
.share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.share-btn { display: flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.6rem 0.5rem; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.07em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--rule); color: var(--ink); background: #fff; cursor: pointer; transition: all 0.2s; }
.share-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.share-btn:hover { border-color: currentColor; }
.share-btn.twitter { color: #000; } .share-btn.twitter:hover { background: #000; color: #fff; border-color: #000; }
.share-btn.facebook { color: #1877f2; } .share-btn.facebook:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.share-btn.whatsapp { color: #25d366; } .share-btn.whatsapp:hover { background: #25d366; color: #fff; border-color: #25d366; }
.share-btn.telegram { color: #0088cc; } .share-btn.telegram:hover { background: #0088cc; color: #fff; border-color: #0088cc; }
.share-btn.copy { color: var(--ink-muted); grid-column: span 2; } .share-btn.copy:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.share-copied { font-family: var(--mono); font-size: 0.62rem; color: var(--accent2); text-align: center; margin-top: 0.4rem; display: none; }
.share-copied.show { display: block; }

/* ── RESPONSIVE BREAKPOINTS ── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main { border-right: none; padding-right: 0; border-bottom: 1px solid var(--rule); padding-bottom: 2rem; }
  .hero-sidebar { padding-left: 0; padding-top: 2rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col-section { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .article-layout { grid-template-columns: 1fr; gap: 3rem; }
  .sticky-sidebar { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }

  .section-layout { grid-template-columns: 1fr; }
  .section-sidebar { border-left: none; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 2rem; }
  .article-row-image { width: 160px; height: 110px; }

  .editor-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 1rem; }
  .article-wrap { padding: 0 1rem; }
  .articles-grid { grid-template-columns: 1fr; }
  .hero-sidebar { grid-template-columns: 1fr; }
  .longread-card { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  .form-row { grid-template-columns: 1fr; }
  .sticky-sidebar { grid-template-columns: 1fr; }
  .article-meta { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .comment-body, .comment-actions { padding-left: 0; }
  .comment-replies { margin-left: 1rem; }
  .reply-form { margin-left: 1rem; }

  .article-row { flex-direction: column; }
  .article-row-image { width: 100%; height: 200px; }

  .editor-layout { padding: 1rem; }
  .admin-nav-links { display: none; }
}
