/* ============================================================
   NANSTRIBUNE v4 — Mobile-First, Green Primary
   Standard Nigerian news layout
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&family=Merriweather:wght@700;900&display=swap');

:root {
  --green:      #0B7A3B;
  --green-dark: #064D25;
  --green-deep: #032913;
  --green-mid:  #0EA04E;
  --green-pale: #E9F7EF;
  --green-100:  #D1EFDE;
  
  --gold:       #D4A017;
  --gold-light: #FBF3DA;
  
  --red:        #C0392B;
  
  --white:      #FFFFFF;
  --snow:       #F7F8FA;
  --smoke:      #ECEDF0;
  --silver:     #D2D3D8;
  --gray:       #8E9099;
  --slate:      #5B5D66;
  --dark:       #2C2E33;
  --black:      #1A1B1F;
  
  --font:       'Source Sans 3', -apple-system, system-ui, sans-serif;
  --serif:      'Merriweather', Georgia, serif;
  
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow:     0 2px 8px rgba(0,0,0,.08);
  --shadow-md:  0 4px 20px rgba(0,0,0,.1);
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--snow);
  color: var(--black);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

::selection { background: var(--green-100); color: var(--green-dark); }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }


/* ============================================================
   HEADER — Green, authoritative
   ============================================================ */
.site-header {
  background: var(--green);
  position: sticky;
  top: 0;
  z-index: 900;
}

/* Top strip */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  font-size: .7rem;
  color: rgba(255,255,255,.6);
}
.header-top a { color: rgba(255,255,255,.6); }
.header-top a:hover { color: var(--white); }
.header-top-right {
  display: flex;
  gap: 14px;
  align-items: center;
}

/* Logo row */
.header-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo-img { height: 34px; width: auto; }
.logo-text {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  letter-spacing: -.02em;
}
.logo-text span { color: var(--gold); }

/* Hamburger */
.burger {
  width: 32px;
  height: 32px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: rgba(255,255,255,.1);
}
.burger span {
  width: 18px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: .2s;
}
.burger.on span:nth-child(1) { transform: rotate(45deg) translate(2.5px, 2.5px); }
.burger.on span:nth-child(2) { opacity: 0; }
.burger.on span:nth-child(3) { transform: rotate(-45deg) translate(2.5px, -2.5px); }

/* Nav */
.nav {
  display: none;
  background: var(--green-dark);
  padding: 8px 0;
}
.nav.open { display: block; }
.nav a {
  display: block;
  padding: 10px 16px;
  font-size: .88rem;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav a:last-child { border: none; }
.nav a:hover,
.nav a.current {
  color: var(--white);
  background: rgba(255,255,255,.06);
}

/* Desktop nav override */
@media (min-width: 769px) {
  .burger { display: none; }
  .nav {
    display: flex !important;
    background: var(--green-dark);
    padding: 0;
    align-items: center;
  }
  .nav a {
    display: inline-flex;
    padding: 10px 16px;
    font-size: .8rem;
    border: none;
    white-space: nowrap;
  }
  .nav a:hover,
  .nav a.current {
    background: rgba(255,255,255,.08);
  }
}


/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  background: var(--green-deep);
  height: 34px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.ticker-label {
  padding: 0 12px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: var(--black);
  font-size: .6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  flex-shrink: 0;
  white-space: nowrap;
}
.ticker-pulse {
  width: 5px; height: 5px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 1.2s ease infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.2} }

.ticker-track { flex: 1; overflow: hidden; }
.ticker-scroll {
  display: flex;
  gap: 40px;
  animation: scroll 40s linear infinite;
  width: max-content;
  padding: 0 16px;
}
.ticker-scroll:hover { animation-play-state: paused; }
.ticker-scroll a {
  font-size: .76rem;
  color: rgba(255,255,255,.6);
  white-space: nowrap;
  font-weight: 500;
}
.ticker-scroll a:hover { color: var(--gold); }
@keyframes scroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }


/* ============================================================
   MAIN
   ============================================================ */
.main { padding: 16px 0 40px; }


/* ============================================================
   SECTION HEADING
   ============================================================ */
.section {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--green);
}
.section h2 {
  font-size: .88rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--green-dark);
  letter-spacing: .04em;
  white-space: nowrap;
}
.section-line {
  flex: 1;
  height: 1px;
  background: var(--smoke);
}
.section-link {
  font-size: .72rem;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
}


/* ============================================================
   CATEGORY TAG
   ============================================================ */
.tag {
  display: inline-block;
  font-size: .58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--green);
}
.tag-white { color: rgba(255,255,255,.8); }


/* ============================================================
   FEATURED / HERO
   ============================================================ */
.hero-card {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  margin-bottom: 20px;
  border-radius: 6px;
}
.hero-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}
.hero-card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.4) 60%, transparent 100%);
}
.hero-card-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 8px;
}
.hero-card-excerpt {
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.hero-card-meta {
  font-size: .68rem;
  color: rgba(255,255,255,.4);
}
.hero-card-meta span + span::before {
  content: ' · ';
  color: rgba(255,255,255,.2);
}

/* Desktop hero */
@media (min-width: 769px) {
  .hero-card img { height: 420px; }
  .hero-card-overlay { padding: 28px 32px; }
  .hero-card-title { font-size: 2rem; max-width: 600px; }
  .hero-card-excerpt { max-width: 500px; }
}


/* ============================================================
   STORY CARD — Standard vertical
   ============================================================ */
.story-card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}
.story-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.story-card-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: var(--smoke);
}
.story-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.story-card-tag { margin-bottom: 6px; }
.story-card-title {
  font-family: var(--serif);
  font-size: .95rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .15s;
}
.story-card:hover .story-card-title { color: var(--green); }
.story-card-excerpt {
  font-size: .78rem;
  color: var(--gray);
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}
.story-card-meta {
  font-size: .66rem;
  color: var(--silver);
  font-weight: 500;
  padding-top: 10px;
  border-top: 1px solid var(--smoke);
}
.story-card-meta span + span::before {
  content: ' · ';
}


/* ============================================================
   STORY ROW — Horizontal card (mobile-friendly)
   ============================================================ */
.story-row {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--smoke);
  transition: background .15s;
}
.story-row:last-child { border: none; }
.story-row:hover { background: var(--white); }

.story-row-img {
  width: 110px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--smoke);
  flex-shrink: 0;
}
.story-row-body { flex: 1; min-width: 0; }
.story-row-tag { margin-bottom: 3px; }
.story-row-title {
  font-weight: 700;
  font-size: .86rem;
  color: var(--black);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .15s;
}
.story-row:hover .story-row-title { color: var(--green); }
.story-row-meta {
  font-size: .64rem;
  color: var(--gray);
  margin-top: 4px;
}
.story-row-meta span + span::before {
  content: ' · ';
}


/* ============================================================
   TRENDING NUMBERS
   ============================================================ */
.trend-list {}
.trend-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--smoke);
  align-items: flex-start;
  transition: transform .15s;
}
.trend-item:first-child { padding-top: 0; }
.trend-item:last-child { border: none; }
.trend-item:hover { transform: translateX(3px); }

.trend-num {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--smoke);
  line-height: 1;
  min-width: 24px;
  text-align: center;
}
.trend-item:nth-child(1) .trend-num { color: var(--green); }
.trend-item:nth-child(2) .trend-num { color: var(--green-mid); }
.trend-item:nth-child(3) .trend-num { color: var(--green-pale); }

.trend-title {
  font-size: .82rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .15s;
}
.trend-item:hover .trend-title { color: var(--green); }
.trend-time {
  font-size: .62rem;
  color: var(--gray);
  margin-top: 3px;
}


/* ============================================================
   SIDEBAR PROMO
   ============================================================ */
.promo-box {
  background: var(--green);
  padding: 24px 20px;
  border-radius: 6px;
  text-align: center;
  margin-top: 20px;
}
.promo-box h3 {
  font-family: var(--serif);
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.promo-box p {
  font-size: .78rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 14px;
  line-height: 1.6;
}
.promo-btn {
  display: inline-block;
  padding: 9px 22px;
  background: var(--gold);
  color: var(--black);
  font-weight: 700;
  font-size: .78rem;
  border-radius: 4px;
  transition: background .2s;
}
.promo-btn:hover { background: #E8BE29; }


/* ============================================================
   GRID LAYOUTS
   ============================================================ */

/* 2 column grid on mobile, 3 on desktop */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Standard content + sidebar */
.layout-main {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar-widget {
  background: var(--white);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.widget-header {
  padding: 12px 16px;
  background: var(--green);
  color: var(--white);
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.widget-body {
  padding: 12px 16px;
}

/* Desktop: content + sidebar side by side */
@media (min-width: 769px) {
  .layout-main {
    flex-direction: row;
    gap: 28px;
  }
  .layout-content { flex: 1; min-width: 0; }
  .layout-sidebar { width: 300px; flex-shrink: 0; }

  .grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

@media (min-width: 1024px) {
  .grid-2 { gap: 20px; }
}


/* ============================================================
   SINGLE ARTICLE
   ============================================================ */
.article {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.article-featured {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--smoke);
}
.article-header {
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--smoke);
}
.article-title {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--black);
  line-height: 1.22;
  margin-bottom: 14px;
}

/* Byline */
.byline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.byline-av {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .82rem;
  flex-shrink: 0;
}
.byline-name { font-weight: 700; font-size: .82rem; color: var(--dark); }
.byline-date { font-size: .7rem; color: var(--gray); }
.byline-dot {
  width: 3px; height: 3px;
  background: var(--silver);
  border-radius: 50%;
}
.byline-stat { font-size: .72rem; color: var(--gray); }

/* Body */
.article-body {
  padding: 20px 16px 28px;
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--dark);
}
.article-body p { margin-bottom: 20px; }
.article-body h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--black);
  margin: 28px 0 12px;
}
.article-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
  margin: 24px 0 10px;
}
.article-body img {
  margin: 20px 0;
  border-radius: 4px;
  width: 100%;
}
.article-body a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-body blockquote {
  margin: 20px 0;
  padding: 16px 18px;
  border-left: 3px solid var(--gold);
  background: var(--gold-light);
  font-style: italic;
  color: var(--slate);
}
.article-body ul, .article-body ol {
  padding-left: 22px;
  margin-bottom: 20px;
}
.article-body ul li { list-style: disc; margin-bottom: 6px; }
.article-body ol li { list-style: decimal; margin-bottom: 6px; }
.article-body strong { color: var(--black); }

/* End mark */
.article-end {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  margin-bottom: 16px;
}
.article-end-line { flex: 1; height: 1px; background: var(--smoke); }
.article-end-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
}

/* Share */
.share-bar {
  padding: 14px 16px;
  border-top: 1px solid var(--smoke);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.share-label { font-size: .72rem; font-weight: 700; color: var(--slate); }
.share-btn {
  padding: 6px 14px;
  font-size: .7rem;
  font-weight: 700;
  color: var(--white);
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .15s;
}
.share-btn:hover { opacity: .85; }
.share-wa { background: #25D366; }
.share-tw { background: #1A1A1A; }
.share-fb { background: #1877F2; }
.share-cp { background: var(--smoke); color: var(--dark); }

/* Desktop article */
@media (min-width: 769px) {
  .article-featured { height: 400px; }
  .article-header { padding: 28px 32px 24px; }
  .article-title { font-size: 2rem; }
  .article-body { padding: 28px 32px 36px; }
  .article-end { padding: 0 32px; margin-bottom: 20px; }
  .share-bar { padding: 18px 32px; }
}


/* ============================================================
   CATEGORY PAGE
   ============================================================ */
.cat-header {
  background: var(--green);
  padding: 20px 0;
  margin-bottom: 20px;
}
.cat-header h1 {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--white);
}
.cat-header p {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  margin-top: 2px;
}

@media (min-width: 769px) {
  .cat-header { padding: 28px 0; }
  .cat-header h1 { font-size: 2rem; }
}


/* ============================================================
   PAGINATION
   ============================================================ */
.pager {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.pager a, .pager span {
  min-width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 600;
  border: 1px solid var(--smoke);
  background: var(--white);
  color: var(--slate);
  border-radius: 4px;
  transition: all .15s;
}
.pager a:hover { border-color: var(--green); color: var(--green); }
.pg-active { background: var(--green) !important; border-color: var(--green) !important; color: var(--white) !important; }


/* ============================================================
   EMPTY
   ============================================================ */
.empty {
  text-align: center;
  padding: 60px 16px;
}
.empty h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 6px;
}
.empty p { color: var(--gray); }


/* ============================================================
   FOOTER — Compact, green top border
   ============================================================ */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,.4);
  margin-top: 40px;
  border-top: 4px solid var(--green);
}
.footer-inner {
  padding: 32px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.footer-brand-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 8px;
}
.footer-brand-name span { color: var(--green-mid); }
.footer-desc {
  font-size: .78rem;
  color: rgba(255,255,255,.3);
  line-height: 1.7;
  margin-bottom: 14px;
  max-width: 300px;
}
.footer-social {
  display: flex;
  gap: 8px;
}
.footer-social a {
  width: 30px; height: 30px;
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .68rem;
  font-weight: 700;
  color: rgba(255,255,255,.35);
  border-radius: 4px;
  transition: all .15s;
}
.footer-social a:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}
.footer-heading {
  font-size: .6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.2);
  margin-bottom: 12px;
}
.footer-links a {
  display: block;
  font-size: .78rem;
  color: rgba(255,255,255,.35);
  padding: 4px 0;
  transition: color .15s;
}
.footer-links a:hover { color: var(--green-mid); }

.footer-bottom {
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.05);
  font-size: .68rem;
  color: rgba(255,255,255,.2);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

@media (min-width: 769px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
  }
  .footer-inner { padding: 44px 0 32px; }
}


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 20px;
  font-size: .78rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
  border: none;
  white-space: nowrap;
  text-decoration: none;
}
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); }
.btn-outline { background: transparent; color: var(--slate); border: 1px solid var(--smoke); }
.btn-outline:hover { border-color: var(--silver); }
.btn-red { background: transparent; color: var(--red); border: 1px solid #f5c6c0; }
.btn-sm { padding: 5px 12px; font-size: .7rem; }
.btn-full { width: 100%; }


/* ============================================================
   FORMS
   ============================================================ */
.fgroup { margin-bottom: 16px; }
.flabel { display: block; font-size: .74rem; font-weight: 700; color: var(--dark); margin-bottom: 5px; }
.finput, .fselect, .ftextarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--smoke);
  border-radius: 4px;
  font-size: .86rem;
  color: var(--black);
  background: var(--white);
  outline: none;
  transition: border-color .15s;
}
.finput:focus, .fselect:focus, .ftextarea:focus { border-color: var(--green); }
.ftextarea { resize: vertical; min-height: 160px; line-height: 1.7; }

.alert { padding: 12px 14px; font-size: .8rem; margin-bottom: 16px; border-radius: 4px; }
.alert-ok { background: var(--green-pale); border-left: 3px solid var(--green); color: var(--green-dark); }
.alert-err { background: #fef2f2; border-left: 3px solid var(--red); color: var(--red); }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; font-size: .62rem; font-weight: 700; border-radius: 3px; }
.badge-green { background: var(--green-pale); color: var(--green); }
.badge-amber { background: var(--gold-light); color: var(--gold); }
.badge-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }


/* ============================================================
   ADMIN LAYOUT
   ============================================================ */
.admin-root { display: flex; min-height: 100vh; background: var(--snow); }

.adm-sidebar {
  width: 220px;
  background: var(--green-deep);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 300;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transition: transform .3s;
}
.adm-logo { padding: 14px 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.adm-logo-text { font-family: var(--serif); font-size: .9rem; color: var(--white); }
.adm-logo-text span { color: var(--green-mid); }
.adm-logo-sub { font-size: .54rem; color: rgba(255,255,255,.25); text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }

.adm-nav { flex: 1; padding: 10px 8px; display: flex; flex-direction: column; gap: 1px; }
.adm-nav-group { font-size: .54rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.15); padding: 10px 8px 4px; }
.adm-nav-link { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 4px; font-size: .76rem; font-weight: 600; color: rgba(255,255,255,.45); transition: .15s; }
.adm-nav-link:hover { color: rgba(255,255,255,.9); background: rgba(255,255,255,.06); }
.adm-nav-link.on { color: var(--white); background: var(--green); }
.adm-nav-icon { width: 16px; text-align: center; font-size: .78rem; }
.adm-nav-badge { margin-left: auto; background: var(--gold); color: var(--black); font-size: .54rem; font-weight: 700; padding: 1px 5px; border-radius: 3px; }

.adm-user { padding: 10px; border-top: 1px solid rgba(255,255,255,.06); }
.adm-user-info { display: flex; align-items: center; gap: 8px; padding: 6px; }
.adm-user-av { width: 26px; height: 26px; background: var(--green); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: .68rem; font-weight: 700; border-radius: 4px; }
.adm-user-name { font-size: .74rem; font-weight: 600; color: rgba(255,255,255,.5); }
.adm-logout { width: 100%; margin-top: 6px; padding: 7px 8px; background: rgba(192,57,43,.08); color: #e74c3c; font-size: .72rem; font-weight: 600; cursor: pointer; transition: .15s; border-radius: 4px; display: block; text-align: left; text-decoration: none; }
.adm-logout:hover { background: rgba(192,57,43,.15); }

.adm-main { margin-left: 220px; flex: 1; display: flex; flex-direction: column; }
.adm-topbar { height: 48px; background: var(--white); border-bottom: 1px solid var(--smoke); display: flex; align-items: center; justify-content: space-between; padding: 0 18px; position: sticky; top: 0; z-index: 100; }
.adm-topbar-title { font-size: .84rem; font-weight: 700; }
.adm-topbar-right { display: flex; gap: 8px; align-items: center; }
.adm-link { font-size: .72rem; font-weight: 600; color: var(--slate); padding: 5px 10px; border: 1px solid var(--smoke); border-radius: 4px; transition: .15s; text-decoration: none; }
.adm-link:hover { border-color: var(--green); color: var(--green); }

.adm-page { padding: 18px; flex: 1; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.stat-card { background: var(--white); border: 1px solid var(--smoke); padding: 16px; border-radius: 4px; }
.stat-val { font-family: var(--serif); font-size: 1.6rem; color: var(--black); line-height: 1; margin-bottom: 2px; }
.stat-lbl { font-size: .68rem; font-weight: 600; color: var(--gray); }

.a-card { background: var(--white); border: 1px solid var(--smoke); border-radius: 4px; overflow: hidden; margin-bottom: 16px; }
.a-card-head { padding: 10px 14px; border-bottom: 1px solid var(--smoke); display: flex; align-items: center; justify-content: space-between; }
.a-card-title { font-size: .8rem; font-weight: 700; }
.a-card-body { padding: 14px; }

.a-table { width: 100%; border-collapse: collapse; }
.a-table th { padding: 8px 10px; text-align: left; font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gray); border-bottom: 1px solid var(--smoke); }
.a-table td { padding: 10px; font-size: .78rem; border-bottom: 1px solid var(--smoke); }
.a-table tr:hover td { background: var(--snow); }
.thumb-sm { width: 44px; height: 32px; object-fit: cover; border-radius: 3px; background: var(--smoke); }

/* Login */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-deep);
  padding: 20px;
}
.login-box {
  background: var(--white);
  width: 100%;
  max-width: 380px;
  padding: 32px 28px;
  border-radius: 6px;
  box-shadow: var(--shadow-md);
}
.login-box h1 {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--black);
  margin-bottom: 4px;
  text-align: center;
}
.login-box .login-sub {
  text-align: center;
  font-size: .82rem;
  color: var(--gray);
  margin-bottom: 24px;
}
.login-logo {
  text-align: center;
  margin-bottom: 20px;
}
.login-logo span {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--green);
}
.login-logo span em {
  font-style: normal;
  color: var(--gold);
}

/* Toggle */
.toggle { position: relative; width: 38px; height: 20px; }
.toggle input { display: none; }
.toggle-track { position: absolute; inset: 0; background: var(--smoke); border-radius: 10px; cursor: pointer; transition: .2s; }
.toggle-track::before { content: ''; position: absolute; width: 14px; height: 14px; background: var(--white); border-radius: 50%; top: 3px; left: 3px; transition: .2s; box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.toggle input:checked + .toggle-track { background: var(--green); }
.toggle input:checked + .toggle-track::before { transform: translateX(18px); }

/* Upload */
.upload-zone { border: 2px dashed var(--smoke); padding: 20px; text-align: center; background: var(--snow); cursor: pointer; transition: .15s; position: relative; border-radius: 4px; }
.upload-zone:hover { border-color: var(--green); }
.upload-zone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }

/* Settings */
.settings-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

/* Admin responsive */
@media (min-width: 769px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .settings-grid { grid-template-columns: 180px 1fr; }
}

@media (max-width: 768px) {
  .adm-sidebar { transform: translateX(-100%); }
  .adm-sidebar.open { transform: translateX(0); }
  .adm-main { margin-left: 0; }
  .header-top { display: none; }
}

@media print {
  .site-header, .site-footer, .ticker, .share-bar { display: none !important; }
  .article { box-shadow: none; }
  .article-body { font-size: 11pt; }
}