/* ============================================================
   CIDDH — Coalition Ivoirienne des Défenseurs des Droits Humains
   Design tokens + layout. Clean & institutional.
   ============================================================ */

/* Self-hosted fonts (no CDN dependency) */
@font-face { font-family:'Poppins'; src:url('fonts/Poppins-Regular.ttf') format('truetype'); font-weight:400; font-display:swap; }
@font-face { font-family:'Poppins'; src:url('fonts/Poppins-Medium.ttf') format('truetype'); font-weight:500; font-display:swap; }
@font-face { font-family:'Poppins'; src:url('fonts/Poppins-SemiBold.ttf') format('truetype'); font-weight:600; font-display:swap; }
@font-face { font-family:'Poppins'; src:url('fonts/Poppins-Bold.ttf') format('truetype'); font-weight:700; font-display:swap; }
@font-face { font-family:'Inter'; src:url('fonts/Inter-var.ttf') format('truetype'); font-weight:400 600; font-display:swap; }

:root {
  /* Brand palette (from shield assets, aligned to Ternah system) */
  --navy:      #12294A;
  --navy-deep: #0A1B33;
  --orange:    #F07E13;
  --orange-dk: #D26A08;
  --green:     #199A5A;
  --green-dk:  #14804B;

  /* Neutrals */
  --paper:     #FBFAF7;
  --paper-2:   #F3F1EA;
  --ink:       #1A1E2E;
  --slate:     #5B6478;
  --line:      #E4E1D8;
  --white:     #FFFFFF;

  /* Type */
  --display: 'Poppins', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;

  /* Rhythm */
  --maxw: 1200px;
  --gap: clamp(1rem, 3vw, 2rem);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(10,27,51,.04), 0 8px 24px rgba(10,27,51,.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .display { font-family: var(--display); line-height: 1.12; color: var(--navy); }

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--orange-dk); }

img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gap); }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange-dk);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.eyebrow::before {
  content: "";
  width: 9px; height: 9px;
  background: var(--orange);
  transform: rotate(45deg);      /* diamond motif from the shield */
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display); font-weight: 600; font-size: .92rem;
  padding: .8rem 1.5rem; border-radius: 40px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dk); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-nav { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-nav:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  color: #fff;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: .6rem; padding-block: .7rem;
}
.nav { flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: .7rem; cursor: pointer; }
.brand img { width: 42px; height: auto; }
.brand .word { font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: #fff; letter-spacing: .02em; }
.brand .sub { font-size: .62rem; color: rgba(255,255,255,.7); letter-spacing: .12em; text-transform: uppercase; display: block; margin-top: -2px; }

.nav { display: flex; align-items: center; gap: .2rem; }
.nav a {
  font-family: var(--display); font-weight: 500; font-size: .9rem;
  color: rgba(255,255,255,.85); padding: .5rem .8rem; border-radius: 8px;
  transition: background .2s, color .2s; white-space: nowrap;
}
.nav a:hover, .nav a.active { color: #fff; background: rgba(255,255,255,.1); }

.header-tools { display: flex; align-items: center; gap: .6rem; }

/* Language toggle */
.lang-toggle {
  display: inline-flex; border: 1.5px solid rgba(255,255,255,.3); border-radius: 40px; overflow: hidden;
}
.lang-toggle button {
  font-family: var(--display); font-weight: 600; font-size: .78rem;
  background: transparent; color: rgba(255,255,255,.7); border: none;
  padding: .35rem .8rem; cursor: pointer; transition: background .2s, color .2s;
}
.lang-toggle button.active { background: var(--orange); color: #fff; }

.menu-btn { display: none; background: transparent; border: none; color: #fff; cursor: pointer; padding: .4rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -8%; top: 50%; transform: translateY(-50%);
  width: 520px; height: 520px;
  background: url('assets/shield_mark.png') center/contain no-repeat;
  opacity: .1; pointer-events: none;
}
.hero-inner { padding-block: clamp(3rem, 8vw, 6rem); position: relative; z-index: 1; max-width: 760px; }
.hero h1 {
  color: #fff; font-weight: 700;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem); letter-spacing: -.01em; margin-block: 1.1rem 1.2rem;
}
.hero h1 .accent { color: var(--orange); }
.hero p { font-size: clamp(1.02rem, 2vw, 1.2rem); color: rgba(255,255,255,.82); max-width: 600px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* ============================================================
   HERO SLIDER (home page only — one photo per featured story)
   Each .hero-slide's background-image is where a publisher's
   uploaded photo goes; until the back-end exists, a CSS gradient
   stands in for it (see build.py's ARTICLES note on data flow).
   ============================================================ */
.hero-slider { position: relative; overflow: hidden; color: #fff; min-height: 560px; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; visibility: hidden; transition: opacity .6s ease;
  display: flex; align-items: center;
}
.hero-slide.is-active { position: relative; opacity: 1; visibility: visible; }
.hero-slide::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,27,51,.92) 0%, rgba(10,27,51,.72) 45%, rgba(10,27,51,.35) 100%);
}
.hero-slide-inner { position: relative; z-index: 1; max-width: 720px; padding-block: clamp(3rem, 8vw, 6rem); }
.hero-slide .eyebrow { color: var(--orange); }
.hero-slide h1 { color: #fff; font-weight: 700; font-size: clamp(1.8rem, 4.4vw, 3rem); letter-spacing: -.01em; margin-block: 1rem 1rem; }
.hero-slide p { font-size: clamp(1rem, 1.8vw, 1.1rem); color: rgba(255,255,255,.85); max-width: 560px; margin-bottom: 1.6rem; }

.hero-dots { position: absolute; z-index: 2; left: 0; right: 0; bottom: 1.4rem; display: flex; justify-content: center; gap: .5rem; }
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%; border: none; padding: 0;
  background: rgba(255,255,255,.35); cursor: pointer; transition: background .2s ease, transform .2s ease;
}
.hero-dot:hover { background: rgba(255,255,255,.6); }
.hero-dot.is-active { background: var(--orange); transform: scale(1.2); }

/* Placeholder "photo" tones — swap for a real background-image per slide later */
.hero-slide.tone-a { background-image: linear-gradient(120deg, var(--navy-deep), var(--navy) 55%, var(--green-dk)); }
.hero-slide.tone-b { background-image: linear-gradient(120deg, var(--navy-deep), var(--navy) 55%, var(--orange-dk)); }
.hero-slide.tone-c { background-image: linear-gradient(120deg, var(--navy-deep), var(--navy) 55%, var(--green)); }

@media (max-width: 900px) {
  .hero-slider { min-height: 620px; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-head { max-width: 680px; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 700; margin-top: .8rem; }
.section-head p { color: var(--slate); font-size: 1.05rem; margin-top: .8rem; }
.section.alt { background: var(--paper-2); }

/* Priority strip — the things this audience needs first */
.priority { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.priority-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: .6rem;
  transition: transform .18s ease, box-shadow .18s ease;
}
.priority-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(10,27,51,.1); }
.priority-card .tag { font-family: var(--display); font-weight: 600; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-dk); }
.priority-card h3 { font-size: 1.2rem; }
.priority-card p { color: var(--slate); font-size: .95rem; flex: 1; }
.priority-card .go { font-family: var(--display); font-weight: 600; font-size: .9rem; color: var(--navy); margin-top: .3rem; }
.priority-card .go::after { content: " →"; color: var(--orange); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stat { text-align: center; padding: 1.5rem 1rem; }
.stat .num { font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 6vw, 3.4rem); color: var(--navy); line-height: 1; }
.stat .num .u { color: var(--orange); }
.stat .lbl { color: var(--slate); font-size: .9rem; margin-top: .5rem; letter-spacing: .04em; }

/* Activities / generic card grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card .card-top { height: 6px; background: var(--orange); }
.card.green .card-top { background: var(--green); }
.card.navy .card-top { background: var(--navy); }
.card-body { padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.card-body h3 { font-size: 1.15rem; }
.card-body p { color: var(--slate); font-size: .93rem; flex: 1; }
.card-meta { font-size: .78rem; color: var(--slate); letter-spacing: .06em; text-transform: uppercase; font-family: var(--display); font-weight: 500; }

/* News list */
.news-item {
  display: grid; grid-template-columns: 120px 1fr; gap: 1.5rem; align-items: start;
  padding-block: 1.5rem; border-bottom: 1px solid var(--line);
  transition: background .15s ease;
}
.news-item:last-child { border-bottom: none; }
a.news-item { cursor: pointer; margin-inline: -1rem; padding-inline: 1rem; border-radius: 10px; }
a.news-item:hover { background: rgba(18,41,74,.04); }
a.news-item:hover .news-body h3 { color: var(--orange-dk); }
.news-date { font-family: var(--display); font-weight: 600; color: var(--orange-dk); font-size: .85rem; letter-spacing: .04em; padding-top: .2rem; }
.news-body h3 { font-size: 1.2rem; margin-bottom: .4rem; transition: color .15s ease; }
.news-body p { color: var(--slate); font-size: .95rem; }
.news-body .cat { display: inline-block; font-family: var(--display); font-weight: 600; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green-dk); background: rgba(25,154,90,.1); padding: .2rem .6rem; border-radius: 20px; margin-bottom: .6rem; }

/* Article detail (single news essay) */
.article-cover {
  aspect-ratio: 21/9; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 2.2rem;
}
.article-cover img { width: 14%; opacity: .35; }
.article-meta { color: var(--slate); font-size: .88rem; margin-bottom: .3rem; }
.article-body { max-width: 720px; }
.article-back { margin-top: 2.5rem; }

/* Publications */
.pub-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.pub {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .18s ease;
}
.pub:hover { transform: translateY(-3px); }
.pub .cover { aspect-ratio: 3/4; background: linear-gradient(135deg, var(--navy), var(--navy-deep)); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.25); }
.pub .cover .shield-ico { width: 46%; opacity: .5; }
.pub-body { padding: 1.1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.pub-body .type { font-family: var(--display); font-weight: 600; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-dk); }
.pub-body h4 { font-size: .98rem; color: var(--navy); }
.pub-body p { font-size: .82rem; color: var(--slate); flex: 1; }
.pub-body .dl { font-family: var(--display); font-weight: 600; font-size: .82rem; color: var(--navy); margin-top: .3rem; }
.pub-body .dl::before { content: "↓ "; color: var(--orange); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery-item {
  border-radius: var(--radius); overflow: hidden; background: var(--paper-2);
  border: none; padding: 0; font: inherit; text-align: left; cursor: pointer;
  display: block; width: 100%; transition: transform .18s ease, box-shadow .18s ease;
}
.gallery-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gallery-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.gallery-caption { padding: .6rem .7rem; font-size: .82rem; color: var(--slate); }

/* Carousel (detail page): simple horizontal scroll with snap */
.carousel {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: .5rem;
}
.carousel .carousel-item { flex: 0 0 auto; width: min(740px, 86%); scroll-snap-align: center; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.carousel .carousel-item img { width: 100%; height: auto; display: block; object-fit: cover; }
.carousel-nav { display:flex; gap:.6rem; justify-content:center; margin-top: .8rem; }
.carousel-dot { width:10px; height:10px; border-radius:50%; background:var(--line); border:none; }
.carousel-dot.is-active { background:var(--orange); }
/* Improve responsive carousel sizing */
@media (max-width: 900px) {
  .carousel { gap: .6rem; }
  .carousel .carousel-item { width: 92%; }
}
@media (max-width: 560px) {
  .carousel .carousel-item { width: 96%; }
  .carousel-dot { width:8px; height:8px; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(10,27,51,.94);
  display: flex; align-items: center; justify-content: center; padding: clamp(1rem, 5vw, 4rem);
}
.lightbox[hidden] { display: none; }
.lightbox-image { max-width: 100%; max-height: 78vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.lightbox-caption { position: absolute; bottom: clamp(1rem, 4vw, 2.5rem); left: 0; right: 0; text-align: center; color: rgba(255,255,255,.85); font-size: .95rem; padding-inline: 4rem; }
.lightbox-close, .lightbox-nav {
  position: absolute; background: rgba(255,255,255,.08); color: #fff; border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .18s ease;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,.18); }
.lightbox-close { top: clamp(.8rem, 3vw, 2rem); right: clamp(.8rem, 3vw, 2rem); width: 44px; height: 44px; font-size: 1.5rem; line-height: 1; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2rem; line-height: 1; }
.lightbox-prev { left: clamp(.5rem, 3vw, 2rem); }
.lightbox-next { right: clamp(.5rem, 3vw, 2rem); }
@media (max-width: 560px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 1.6rem; }
  .lightbox-caption { padding-inline: 1rem; font-size: .85rem; }
}

/* Scroll reveal */
.reveal-init { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal-init.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-init { opacity: 1; transform: none; }
}

/* Network map (About page — member organisations, Leaflet lazy-loaded) */
#network-map { height: 420px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); z-index: 1; }
.network-map-empty {
  height: 420px; border-radius: var(--radius); background: var(--paper-2);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--slate); font-size: .95rem; padding: 2rem;
}

/* Filter pills (News/Activities category filtering) */
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.filter-pill {
  font-family: var(--display); font-weight: 600; font-size: .85rem;
  padding: .5rem 1.1rem; border-radius: 40px; border: 1.5px solid var(--line);
  background: #fff; color: var(--navy); cursor: pointer; transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.filter-pill:hover { border-color: var(--navy); }
.filter-pill.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: 2.5rem; }
.pagination-status { color: var(--slate); font-size: .88rem; font-family: var(--display); font-weight: 500; }
.pagination .is-disabled { opacity: .35; pointer-events: none; }

/* Split content (about / detail pages) */
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.split .visual { background: var(--navy); border-radius: var(--radius); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.split .visual img { width: 62%; }
.prose p { margin-bottom: 1rem; color: var(--ink); }
.prose p.lead { font-size: 1.15rem; color: var(--slate); }

/* Values / mission list */
.value-list { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 1.5rem; }
.value-item { display: grid; grid-template-columns: 40px 1fr; gap: 1rem; align-items: start; }
.value-item .di { width: 20px; height: 20px; background: var(--orange); transform: rotate(45deg); margin-top: .3rem; }
.value-item.g .di { background: var(--green); }
.value-item.n .di { background: var(--navy); }
.value-item h4 { font-size: 1.05rem; margin-bottom: .2rem; }
.value-item p { color: var(--slate); font-size: .94rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--display); font-weight: 500; font-size: .85rem; color: var(--navy); margin-bottom: .4rem; }
.field input, .field textarea {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--body); font-size: .95rem; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); }
.contact-info { display: flex; flex-direction: column; gap: 1.3rem; }
.info-row { display: grid; grid-template-columns: 36px 1fr; gap: .8rem; align-items: start; }
.info-row .di { width: 16px; height: 16px; background: var(--orange); transform: rotate(45deg); margin-top: .35rem; }
.info-row strong { display: block; font-family: var(--display); color: var(--navy); font-size: .95rem; }
.info-row span { color: var(--slate); font-size: .92rem; }

/* CTA band */
.cta-band { background: var(--navy); color: #fff; border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.5rem); text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 4vw, 2.2rem); }
.cta-band p { color: rgba(255,255,255,.8); max-width: 520px; margin: 1rem auto 1.8rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.7); padding-block: 3rem 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand .word { font-family: var(--display); font-weight: 700; color: #fff; font-size: 1.3rem; }
.footer-brand p { font-size: .88rem; margin-top: .8rem; max-width: 260px; }
.footer-col h5 { font-family: var(--display); color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col a { display: block; color: rgba(255,255,255,.65); font-size: .9rem; padding-block: .3rem; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .82rem; }

/* Loading state for HTMX swaps */
.htmx-indicator { opacity: 0; transition: opacity .2s; }
.htmx-request .htmx-indicator { opacity: 1; }
main.htmx-swapping { opacity: .4; }
main { transition: opacity .2s ease; }

/* Fade-in for swapped content */
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.page { animation: fadeUp .35s ease; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0; background: var(--navy);
    padding: .5rem var(--gap) 1rem; border-bottom: 3px solid var(--orange);
  }
  .nav.open a { padding: .8rem; }
  .priority, .grid-3, .pub-grid, .gallery-grid { grid-template-columns: 1fr 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero::after { opacity: .06; }
}
@media (max-width: 560px) {
  .priority, .grid-3, .grid-2, .pub-grid, .gallery-grid, .stats { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; gap: .5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-tools .btn-nav { display: none; }
  .pagination { gap: .6rem; }
}

/* ============================================================
   ADMIN LOGIN (split screen — standalone, no site header/footer)
   ============================================================ */
.admin-login { display: flex; min-height: 100vh; }
.admin-login-brand {
  flex: 0 0 42%; background: linear-gradient(150deg, var(--navy-deep), var(--navy));
  color: #fff; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2rem, 5vw, 4rem); position: relative; overflow: hidden;
}
.admin-login-brand::after {
  content: ""; position: absolute; right: -15%; top: 50%; transform: translateY(-50%);
  width: 420px; height: 420px; background: url('assets/shield_mark.png') center/contain no-repeat;
  opacity: .08; pointer-events: none;
}
.admin-login-brand .brand-mark-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2.8rem; position: relative; z-index: 1; flex-wrap: wrap; }
.admin-login-brand .brand-mark { display: flex; align-items: center; gap: .7rem; }
.admin-login-brand .brand-mark img { width: 42px; height: auto; }
.admin-login-brand .brand-mark .word { font-family: var(--display); font-weight: 700; font-size: 1.35rem; }
.admin-login-brand .eyebrow { color: var(--orange); }
.admin-login-brand h1 { font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: #fff; margin: 1rem 0 1.1rem; line-height: 1.2; position: relative; z-index: 1; }
.admin-login-brand p { color: rgba(255,255,255,.78); font-size: 1.02rem; max-width: 420px; position: relative; z-index: 1; }
.admin-login-brand .back-link { margin-top: 2.8rem; position: relative; z-index: 1; }
.admin-login-brand .back-link a { color: rgba(255,255,255,.72); font-size: .88rem; }
.admin-login-brand .back-link a:hover { color: #fff; }

.admin-login-form { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem; background: var(--paper); }
.admin-login-form-inner { width: 100%; max-width: 360px; }
.admin-login-form-inner h2 { font-family: var(--display); font-weight: 700; font-size: 1.5rem; margin-bottom: .4rem; color: var(--navy); }
.admin-login-form-inner .sub { color: var(--slate); font-size: .92rem; margin-bottom: 1.8rem; }
.admin-login-form-inner .btn { width: 100%; justify-content: center; margin-top: .4rem; }
.admin-login-error { color: #b8422f; font-weight: 600; font-size: .92rem; margin-bottom: 1.2rem; }

@media (max-width: 900px) {
  .admin-login { flex-direction: column; min-height: auto; }
  .admin-login-brand { flex: none; padding: 2.2rem clamp(1rem, 6vw, 2rem); }
  .admin-login-brand::after { opacity: .05; }
  .admin-login-form { padding: 2.2rem clamp(1rem, 6vw, 2rem) 3.5rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Keyboard focus */
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
