/* ==========================================================================
   UttarPradeshElection.in — Core Stylesheet
   Tricolor editorial theme: Saffron / Chakra Navy / White
   ========================================================================== */

/* -------------------- Fonts -------------------- */
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;0,8..60,600;0,8..60,700;1,8..60,500&family=Inter:wght@400;500;600;700;800&family=Noto+Sans+Devanagari:wght@400;500;600;700&display=swap');

/* -------------------- Design tokens -------------------- */
:root{
  /* Tricolor core */
  --saffron: #FF9933;
  --saffron-deep: #D97706;
  --saffron-tint: #FFF3E2;
  --navy: #0B3558;
  --navy-deep: #06233D;
  --navy-tint: #E9F0F6;
  --white: #FFFFFF;

  /* Neutral / editorial */
  --paper: #F5F7F9;
  --paper-alt: #EEF1F4;
  --ink: #14213D;
  --ink-soft: #435066;
  --line: #E1E6EC;
  --line-strong: #C8D1DC;
  --gold: #B8862E;

  /* Semantic */
  --success: #1E8E5A;
  --danger: #C22B2B;

  /* Party colors */
  --party-bjp: #E8791C;
  --party-sp: #A6212B;
  --party-bsp: #2451A6;
  --party-inc: #1D8C4A;
  --party-asp: #1F6FB2;
  --party-other: #6B5B95;

  /* Surfaces */
  --surface: var(--white);
  --surface-2: var(--paper);
  --header-bg: var(--white);
  --text: var(--ink);
  --text-muted: var(--ink-soft);
  --border: var(--line);

  /* Type */
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-deva: 'Noto Sans Devanagari', 'Inter', sans-serif;

  /* Layout */
  --container: 1200px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(11,53,88,0.06), 0 1px 1px rgba(11,53,88,0.04);
  --shadow-md: 0 8px 24px rgba(11,53,88,0.10);
  --shadow-lg: 0 16px 40px rgba(11,53,88,0.16);
  --header-h: 108px;
  --header-h-scrolled: 76px;

  color-scheme: light;
}

/* -------------------- Dark mode -------------------- */
[data-theme="dark"]{
  --surface: #0E1B2A;
  --surface-2: #0A1420;
  --header-bg: #0A1420;
  --paper: #101F30;
  --paper-alt: #0C1926;
  --ink: #EDF1F5;
  --ink-soft: #AEBBCC;
  --text: #EDF1F5;
  --text-muted: #AEBBCC;
  --border: #1E3145;
  --line: #1E3145;
  --line-strong: #2B4258;
  --navy-tint: #12263A;
  --saffron-tint: #2A2013;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.35);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.45);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.55);
  color-scheme: dark;
}

/* -------------------- Reset -------------------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  transition: background-color .25s ease, color .25s ease;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul, ol{ margin: 0; padding: 0; list-style: none; }
button{ font-family: inherit; cursor: pointer; }
h1,h2,h3,h4,h5,h6{ font-family: var(--font-serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; color: var(--text); }
p{ margin: 0 0 1em; color: var(--text); }
table{ border-collapse: collapse; width: 100%; }
input, select, textarea{ font-family: inherit; font-size: 1rem; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

:focus-visible{ outline: 3px solid var(--saffron); outline-offset: 2px; }

/* -------------------- Layout helpers -------------------- */
.container{ max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section{ padding: 64px 0; }
.section-tight{ padding: 40px 0; }
.section-alt{ background: var(--surface-2); }
.section-navy{ background: var(--navy); color: #fff; }
.section-navy h2, .section-navy h3, .section-navy p{ color: #fff; }
.grid{ display: grid; gap: 24px; }
.g-2{ grid-template-columns: repeat(2, 1fr); }
.g-3{ grid-template-columns: repeat(3, 1fr); }
.g-4{ grid-template-columns: repeat(4, 1fr); }
.g-6{ grid-template-columns: repeat(6, 1fr); }
@media (max-width: 980px){
  .g-4{ grid-template-columns: repeat(2, 1fr); }
  .g-6{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px){
  .g-2, .g-3, .g-4{ grid-template-columns: 1fr; }
  .g-6{ grid-template-columns: repeat(2, 1fr); }
  .section{ padding: 44px 0; }
}

.eyebrow{
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 700; font-size: .78rem;
  letter-spacing: .02em; color: var(--saffron-deep);
  margin-bottom: 10px;
}
.eyebrow::before{ content:""; width: 22px; height: 3px; background: var(--saffron); border-radius: 2px; display:inline-block; }

.section-head{ max-width: 720px; margin-bottom: 36px; }
.section-head h2{ font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.section-head p{ color: var(--text-muted); font-size: 1.05rem; }
.section-head-row{ display:flex; align-items:flex-end; justify-content:space-between; gap: 20px; flex-wrap: wrap; }

.btn{
  display: inline-flex; align-items: center; justify-content:center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: .96rem;
  border: 2px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-primary{ background: var(--saffron); color: var(--navy-deep); }
.btn-primary:hover{ background: var(--saffron-deep); color: #fff; box-shadow: var(--shadow-md); }
.btn-navy{ background: var(--navy); color: #fff; }
.btn-navy:hover{ background: var(--navy-deep); box-shadow: var(--shadow-md); }
.btn-outline{ background: transparent; border-color: var(--navy); color: var(--navy); }
[data-theme="dark"] .btn-outline{ border-color: var(--line-strong); color: var(--text); }
.btn-outline:hover{ background: var(--navy); color: #fff; }
.btn-sm{ padding: 9px 18px; font-size: .86rem; }
.btn-block{ width: 100%; }

.tag{
  display:inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: .74rem; font-weight: 700; letter-spacing:.02em;
  background: var(--saffron-tint); color: var(--saffron-deep);
}
.card{
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.chip{
  display:inline-flex; align-items:center; gap:6px; padding: 6px 14px; border-radius: 999px;
  background: var(--paper); border:1px solid var(--border); font-size:.84rem; font-weight:600; color: var(--text-muted);
}

.divider{ height:1px; background: var(--border); border:none; margin: 32px 0; }

/* -------------------- Skip link -------------------- */
.skip-link{
  position:absolute; left: -999px; top: auto; background: var(--navy); color:#fff; padding: 12px 18px;
  z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus{ left: 0; top: 0; }

/* -------------------- Top utility bar -------------------- */
.topbar{
  background: var(--navy-deep); color: #fff; font-size: .82rem;
}
.topbar .container{ display:flex; align-items:center; justify-content:space-between; height:38px; gap: 16px; }
.topbar-left{ display:flex; align-items:center; gap:16px; overflow:hidden; white-space:nowrap; }
.topbar-date{ color: #C9D8E6; flex-shrink:0; }
.topbar-ticker{ position:relative; overflow:hidden; flex:1; min-width:0; height: 20px; }
.topbar-ticker ul{ position:absolute; white-space:nowrap; animation: ticker 26s linear infinite; }
.topbar-ticker li{ display:inline-block; margin-right:48px; color:#FFD9A0; }
@keyframes ticker{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }
.topbar-right{ display:flex; align-items:center; gap:10px; flex-shrink:0; }
.icon-btn{
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color:#fff;
  width: 30px; height: 30px; border-radius: 50%; display:inline-flex; align-items:center; justify-content:center;
  transition: background-color .2s ease;
}
.icon-btn:hover{ background: rgba(255,255,255,.2); }

/* -------------------- Header / nav -------------------- */
.site-header{
  position: sticky; top:0; z-index: 90; background: var(--header-bg);
  border-bottom: 1px solid var(--border); transition: box-shadow .2s ease;
}
.site-header.is-scrolled{ box-shadow: var(--shadow-md); }
.header-inner{ display:flex; align-items:center; justify-content:space-between; gap: 20px; padding: 16px 0; }
.brand{ display:flex; align-items:center; gap: 12px; }
.brand-mark{ width: 46px; height:46px; flex-shrink:0; }
.brand-text{ line-height:1.15; }
.brand-text .en{ font-family: var(--font-serif); font-weight:700; font-size: 1.22rem; color: var(--navy); }
[data-theme="dark"] .brand-text .en{ color: #fff; }
.brand-text .hi{ font-family: var(--font-deva); font-size:.78rem; color: var(--saffron-deep); font-weight:600; }

.primary-nav{ display:flex; align-items:center; gap: 4px; }
.primary-nav > ul{ display:flex; align-items:center; gap: 2px; }
.nav-item{ position: relative; display:flex; align-items:center; }
.nav-link{
  display:flex; align-items:center; padding: 10px 14px; border-radius: 8px;
  font-weight: 600; font-size: .95rem; color: var(--text);
}
.nav-link:hover{ background: var(--paper); color: var(--saffron-deep); }
.cta-link{ background: var(--saffron-tint); color: var(--saffron-deep); }
.cta-link:hover{ background: var(--saffron); color: #fff; }
.dropdown-toggle{
  display:none; align-items:center; justify-content:center; background:none; border:none;
  width:32px; height:32px; border-radius:8px; color: var(--text-muted); flex-shrink:0; margin-left:-2px;
  appearance:none; -webkit-appearance:none; -moz-appearance:none; padding:0; outline:none; box-shadow:none;
}
.nav-item.has-dropdown .dropdown-toggle{ display:inline-flex; }
.dropdown-toggle:hover, .dropdown-toggle[aria-expanded="true"]{ background: var(--paper); color: var(--saffron-deep); }
.dropdown-toggle:focus-visible{ outline: 2px solid var(--saffron); outline-offset: 1px; }
.nav-caret{ width: 8px; height:8px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
.dropdown-toggle[aria-expanded="true"] .nav-caret{ transform: rotate(-135deg) translateY(1px); }

.dropdown{
  position:absolute; top: calc(100% + 10px); left:0; min-width: 260px; background: var(--surface);
  border:1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: 10px; opacity:0; visibility:hidden; transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}
.nav-item.open .dropdown{ opacity:1; visibility:visible; transform: translateY(0); }
.dropdown a{
  display:flex; flex-direction:column; padding: 10px 12px; border-radius: 8px; font-weight:600; font-size:.92rem;
}
.dropdown a span{ font-weight:400; font-size:.8rem; color: var(--text-muted); margin-top:2px; }
.dropdown a:hover{ background: var(--paper); color: var(--saffron-deep); }

.header-cta{ display:flex; align-items:center; gap:10px; }
.nav-toggle{
  display:none; background:none; border:1px solid var(--border); border-radius: 8px; width:44px; height:44px;
  align-items:center; justify-content:center; flex-direction:column; gap:5px;
}
.nav-toggle span{ display:block; width:22px; height:2px; background: var(--text); transition: transform .25s ease, opacity .25s ease; }
.nav-toggle.is-active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2){ opacity:0; }
.nav-toggle.is-active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px){
  .primary-nav{
    position: fixed; inset: 0 0 0 auto; width: min(340px, 88vw); background: var(--surface);
    transform: translateX(100%); transition: transform .3s ease; z-index: 120;
    box-shadow: var(--shadow-lg); overflow-y:auto;
  }
  .primary-nav.is-open{ transform: translateX(0); }
  .primary-nav > ul{ flex-direction:column; align-items:stretch; padding: 84px 18px 24px; gap:2px; }
  .nav-item{ flex-wrap:wrap; }
  .nav-link{ padding: 14px 12px; flex:1; }
  .dropdown-toggle{ width:48px; height:48px; }
  .dropdown{ position:static; box-shadow:none; border:none; opacity:1; visibility:visible; transform:none; max-height:0; overflow:hidden; padding:0 0 0 12px; transition: max-height .3s ease; width:100%; flex-basis:100%; }
  .nav-item.open .dropdown{ max-height: 600px; padding: 4px 0 8px 12px; }
  .nav-toggle{ display:inline-flex; }
  .nav-scrim{ position: fixed; inset:0; background: rgba(6,35,61,.5); opacity:0; visibility:hidden; transition: opacity .3s ease, visibility .3s ease; z-index: 110; }
  .nav-scrim.is-open{ opacity:1; visibility:visible; }
  .nav-close{ display:flex !important; position:absolute; top:16px; right:16px; }
}
.nav-close{ display:none; background: var(--paper); border:1px solid var(--border); border-radius:50%; width:38px; height:38px; align-items:center; justify-content:center; font-size:1.1rem; }

/* -------------------- Hero / masthead -------------------- */
.hero{
  background: linear-gradient(180deg, var(--navy-tint) 0%, var(--surface) 72%);
  padding: 52px 0 0;
  position: relative; overflow: hidden;
}
.hero::after{
  content:""; position:absolute; right:-120px; top:-160px; width:420px; height:420px; border-radius:50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,153,51,.22), transparent 70%);
  pointer-events:none;
}
.hero-grid{ display:grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items:center; position:relative; }
.hero-kicker{ display:flex; align-items:center; gap:10px; margin-bottom:18px; }
.hero-kicker .dot{ width:9px; height:9px; border-radius:50%; background: var(--danger); box-shadow:0 0 0 4px rgba(194,43,43,.15); animation: pulse 1.8s infinite; }
@keyframes pulse{ 0%,100%{ box-shadow:0 0 0 4px rgba(194,43,43,.15);} 50%{ box-shadow:0 0 0 8px rgba(194,43,43,.05);} }
.hero h1{ font-size: clamp(2.1rem, 4.2vw, 3.4rem); letter-spacing:-.01em; margin-bottom: 18px; }
.hero h1 .accent{ color: var(--saffron-deep); }
.hero-lede{ font-size: 1.12rem; color: var(--text-muted); max-width: 54ch; margin-bottom: 26px; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom: 30px; }
.hero-stats{ display:flex; gap: 26px; flex-wrap:wrap; }
.hero-stat b{ display:block; font-family: var(--font-serif); font-size:1.5rem; color: var(--navy); }
[data-theme="dark"] .hero-stat b{ color:#fff; }
.hero-stat span{ font-size:.82rem; color: var(--text-muted); }

.hero-panel{
  background: var(--navy); color:#fff; border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-lg); position:relative;
}
.hero-panel h3{ color:#fff; font-size:1.05rem; margin-bottom: 4px; }
.hero-panel .sub{ color:#AFC6DA; font-size:.85rem; margin-bottom:18px; }
.countdown{ display:flex; gap:10px; margin-bottom: 20px; }
.countdown .cell{ flex:1; background: rgba(255,255,255,.08); border-radius:10px; padding: 12px 4px; text-align:center; }
.countdown .cell b{ display:block; font-family: var(--font-serif); font-size:1.6rem; color: var(--saffron); }
.countdown .cell span{ font-size:.68rem; color:#AFC6DA; text-transform:uppercase; letter-spacing:.04em; }
.panel-bars{ display:flex; flex-direction:column; gap:10px; }
.panel-bar-row{ display:flex; align-items:center; gap:10px; font-size:.82rem; }
.panel-bar-row .label{ width:64px; flex-shrink:0; color:#D7E4EF; font-weight:600; }
.panel-bar-track{ flex:1; height:8px; background: rgba(255,255,255,.12); border-radius:6px; overflow:hidden; }
.panel-bar-fill{ height:100%; border-radius:6px; }
.panel-bar-row .val{ width: 34px; text-align:right; color:#fff; font-weight:700; }

@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
}

/* -------------------- Party / leader cards -------------------- */
.party-card{
  padding: 22px; border-top: 4px solid var(--pc, var(--navy));
  display:flex; flex-direction:column; gap:10px; height:100%;
}
.party-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); }
.party-card .party-name{ font-family: var(--font-serif); font-size: 1.15rem; }
.party-card .party-alliance{ font-size:.8rem; font-weight:700; color: var(--pc, var(--navy)); text-transform:uppercase; letter-spacing:.03em; }
.party-card p{ color: var(--text-muted); font-size:.92rem; margin-bottom:0; flex:1; }
.party-card .party-foot{ display:flex; justify-content:space-between; align-items:center; font-size:.82rem; padding-top:10px; border-top:1px solid var(--border); color: var(--text-muted); }

.leader-card{ text-align:center; padding: 22px 16px; }
.leader-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); }
.leader-avatar{
  width:96px; height:96px; border-radius:50%; margin: 0 auto 14px; display:flex; align-items:center; justify-content:center;
  font-family: var(--font-serif); font-weight:700; font-size:1.7rem; color:#fff;
  border: 3px solid var(--surface); box-shadow: 0 0 0 3px var(--av, var(--saffron));
}
.leader-card h4{ font-size:1.02rem; margin-bottom:2px; }
.leader-card .role{ font-size:.82rem; color: var(--text-muted); margin-bottom:6px; }
.leader-card .party-pill{ font-size:.72rem; font-weight:700; padding:3px 10px; border-radius:999px; color:#fff; display:inline-block; background: var(--av, var(--navy)); }

/* -------------------- Article cards -------------------- */
.article-card{ display:flex; flex-direction:column; overflow:hidden; height:100%; }
.article-card:hover{ box-shadow: var(--shadow-md); transform: translateY(-3px); }
.article-thumb{
  height: 160px; display:flex; align-items:center; justify-content:center; color:#fff;
  font-family: var(--font-serif); font-weight:700; font-size:1.1rem; text-align:center; padding: 0 16px;
  background: linear-gradient(135deg, var(--ac1, var(--navy)), var(--ac2, var(--navy-deep)));
}
.article-body{ padding: 18px 20px 20px; display:flex; flex-direction:column; gap:8px; flex:1; }
.article-meta{ display:flex; gap:10px; align-items:center; font-size:.76rem; color: var(--text-muted); flex-wrap:wrap; }
.article-body h3{ font-size: 1.12rem; }
.article-body p{ color: var(--text-muted); font-size:.9rem; margin-bottom:0; }
.read-more{ margin-top:auto; font-weight:700; font-size:.86rem; color: var(--saffron-deep); display:inline-flex; align-items:center; gap:6px; }

/* -------------------- Poll -------------------- */
.poll-card{ padding: 26px; }
.poll-option{
  display:flex; align-items:center; gap:14px; padding: 14px 16px; border:2px solid var(--border); border-radius: var(--radius-md);
  margin-bottom: 12px; transition: border-color .2s ease, background-color .2s ease;
}
.poll-option:hover{ border-color: var(--saffron); }
.poll-option input{ width:20px; height:20px; accent-color: var(--saffron-deep); flex-shrink:0; }
.poll-option .swatch{ width:14px; height:14px; border-radius:4px; flex-shrink:0; }
.poll-option .name{ font-weight:700; flex:1; }
.poll-option .sub{ font-size:.78rem; color: var(--text-muted); }
.poll-result-row{ margin-bottom:16px; }
.poll-result-top{ display:flex; justify-content:space-between; font-size:.9rem; font-weight:700; margin-bottom:6px; }
.poll-result-track{ height:14px; background: var(--paper); border-radius:8px; overflow:hidden; }
.poll-result-fill{ height:100%; border-radius:8px; width:0; transition: width 1s cubic-bezier(.2,.8,.2,1); }
.poll-note{ font-size:.82rem; color: var(--text-muted); background: var(--paper); border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 18px; }

/* -------------------- Tables -------------------- */
.table-wrap{ overflow-x:auto; border:1px solid var(--border); border-radius: var(--radius-md); }
.data-table{ min-width: 640px; }
.data-table th, .data-table td{ padding: 12px 16px; text-align:left; border-bottom:1px solid var(--border); font-size:.92rem; }
.data-table thead th{ background: var(--navy); color:#fff; font-family: var(--font-sans); font-weight:700; font-size:.8rem; text-transform:uppercase; letter-spacing:.03em; position: sticky; top:0; }
.data-table tbody tr:hover{ background: var(--paper); }
.data-table tbody tr:last-child td{ border-bottom:none; }
.badge-sc{ background:#F1E4D0; color:#8A5A00; padding:2px 8px; border-radius:6px; font-size:.72rem; font-weight:700; }
.badge-st{ background:#DCEFE1; color:#1E7A45; padding:2px 8px; border-radius:6px; font-size:.72rem; font-weight:700; }
.badge-gen{ background:var(--paper); color:var(--text-muted); padding:2px 8px; border-radius:6px; font-size:.72rem; font-weight:700; }
.pending{ color: var(--text-muted); font-style:italic; }

/* -------------------- Filters bar -------------------- */
.filters-bar{ display:flex; gap:12px; flex-wrap:wrap; align-items:center; margin-bottom: 22px; background: var(--surface-2); padding: 16px; border-radius: var(--radius-md); border:1px solid var(--border); }
.filters-bar input[type="search"], .filters-bar select{
  padding: 10px 14px; border-radius: 8px; border:1px solid var(--border-strong, var(--border)); background: var(--surface); color: var(--text); min-width: 180px;
}
.filters-bar .result-count{ margin-left:auto; font-size:.85rem; color: var(--text-muted); font-weight:600; }

/* -------------------- Forms -------------------- */
.form-field{ margin-bottom:18px; }
.form-field label{ display:block; font-weight:700; font-size:.9rem; margin-bottom:6px; }
.form-field input, .form-field textarea, .form-field select{
  width:100%; padding: 12px 14px; border-radius: 8px; border:1px solid var(--border-strong, var(--line-strong)); background: var(--surface); color: var(--text);
}
.form-field textarea{ min-height:140px; resize:vertical; }

/* -------------------- Footer -------------------- */
.site-footer{ background: var(--navy-deep); color: #D9E3EC; padding-top: 56px; }
.footer-top{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom:1px solid rgba(255,255,255,.12); }
.footer-brand .brand-text .en{ color:#fff; }
.footer-about{ color:#AFC1D3; font-size:.9rem; margin: 14px 0 18px; max-width: 34ch; }
.footer-social{ display:flex; gap:10px; }
.footer-col h5{ color:#fff; font-family: var(--font-sans); font-size:.82rem; text-transform:uppercase; letter-spacing:.05em; margin-bottom:16px; }
.footer-col ul li{ margin-bottom:10px; }
.footer-col a{ color:#C3D2E0; font-size:.92rem; }
.footer-col a:hover{ color: var(--saffron); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding: 22px 0; font-size:.82rem; color:#93A7BA; flex-wrap:wrap; gap:10px; }
.footer-bottom a{ color:#93A7BA; }
.footer-bottom a:hover{ color:#fff; }
@media (max-width: 900px){
  .footer-top{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .footer-top{ grid-template-columns: 1fr; }
}

/* -------------------- Breadcrumb -------------------- */
.breadcrumb{ font-size:.84rem; color: var(--text-muted); padding: 18px 0 0; }
.breadcrumb a{ color: var(--text-muted); font-weight:600; }
.breadcrumb a:hover{ color: var(--saffron-deep); }
.breadcrumb .sep{ margin: 0 6px; }

.page-head{ padding: 30px 0 10px; }
.page-head h1{ font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.page-head p{ color: var(--text-muted); max-width: 70ch; font-size: 1.05rem; }

/* -------------------- Reveal animation -------------------- */
.reveal{ opacity:0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible{ opacity:1; transform:none; }

/* -------------------- Misc content components -------------------- */
.callout{ border-left: 4px solid var(--saffron); background: var(--saffron-tint); padding: 18px 20px; border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.callout p:last-child{ margin-bottom:0; }
.timeline{ border-left: 3px solid var(--border); margin-left: 8px; }
.timeline li{ position:relative; padding: 0 0 28px 26px; }
.timeline li::before{ content:""; position:absolute; left:-9px; top:2px; width:14px; height:14px; border-radius:50%; background: var(--saffron); border:3px solid var(--surface); box-shadow: 0 0 0 2px var(--saffron); }
.timeline h4{ font-size:1rem; margin-bottom:4px; }
.timeline .date{ font-size:.8rem; color: var(--saffron-deep); font-weight:700; }
.timeline p{ color: var(--text-muted); font-size:.92rem; }

.faq-item{ border-bottom:1px solid var(--border); }
.faq-q{ display:flex; justify-content:space-between; align-items:center; padding: 18px 4px; font-weight:700; font-family: var(--font-serif); font-size:1.02rem; }
.faq-q .plus{ width:20px; height:20px; position:relative; flex-shrink:0; margin-left: 12px;}
.faq-q .plus::before, .faq-q .plus::after{ content:""; position:absolute; background: var(--saffron-deep); border-radius:2px; }
.faq-q .plus::before{ width:100%; height:2px; top:9px; left:0; }
.faq-q .plus::after{ height:100%; width:2px; left:9px; top:0; transition: transform .2s ease; }
.faq-item.open .plus::after{ transform: rotate(90deg); }
.faq-a{ max-height:0; overflow:hidden; transition: max-height .3s ease; }
.faq-a p{ padding: 0 4px 18px; color: var(--text-muted); }
.faq-item.open .faq-a{ max-height: 400px; }

.stat-strip{ display:flex; flex-wrap:wrap; gap: 0; border:1px solid var(--border); border-radius: var(--radius-md); overflow:hidden; }
.stat-strip .stat{ flex:1; min-width:140px; padding: 20px; text-align:center; border-right:1px solid var(--border); }
.stat-strip .stat:last-child{ border-right:none; }
.stat-strip .stat b{ display:block; font-family: var(--font-serif); font-size:1.8rem; color: var(--navy); }
[data-theme="dark"] .stat-strip .stat b{ color:#fff; }
.stat-strip .stat span{ font-size:.8rem; color: var(--text-muted); }

.author-box{ display:flex; gap:14px; align-items:flex-start; background: var(--surface-2); padding:18px; border-radius: var(--radius-md); border:1px solid var(--border); }
.author-avatar{ width:52px; height:52px; border-radius:50%; background: var(--navy); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-family: var(--font-serif); flex-shrink:0; }
.author-box h5{ margin:0 0 2px; font-size:.95rem; }
.author-box p{ margin:0; font-size:.85rem; color: var(--text-muted); }

.back-to-top{
  position:fixed; right:22px; bottom:22px; width:46px; height:46px; border-radius:50%; background: var(--navy);
  color:#fff; display:flex; align-items:center; justify-content:center; box-shadow: var(--shadow-md); opacity:0; visibility:hidden;
  transform: translateY(10px); transition: opacity .25s ease, transform .25s ease, visibility .25s ease; z-index: 60;
}
.back-to-top.is-visible{ opacity:1; visibility:visible; transform:none; }

::selection{ background: var(--saffron); color: var(--navy-deep); }

.prose h2{ margin-top: 1.6em; font-size:1.4rem; }
.prose h3{ margin-top:1.3em; font-size:1.15rem; }
.prose p{ font-size: 1.03rem; color: var(--text); max-width: 74ch; }
.prose ul, .prose ol{ margin: 0 0 1em 1.3em; list-style: disc; max-width:74ch; }
.prose ol{ list-style: decimal; }
.prose li{ margin-bottom:.5em; }
.prose a{ color: var(--saffron-deep); font-weight:600; text-decoration: underline; text-underline-offset:2px; }

.two-col{ display:grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items:start; }
@media (max-width: 900px){ .two-col{ grid-template-columns: 1fr; } }
.sidebar-box{ background: var(--surface-2); border:1px solid var(--border); border-radius: var(--radius-md); padding: 20px; margin-bottom: 22px; }
.sidebar-box h4{ font-size:.95rem; margin-bottom:14px; }
.sidebar-link{ display:flex; justify-content:space-between; padding:9px 0; border-bottom:1px solid var(--border); font-size:.88rem; font-weight:600; }
.sidebar-link:last-child{ border-bottom:none; }

.skeleton{ background: linear-gradient(90deg, var(--paper) 25%, var(--paper-alt) 37%, var(--paper) 63%); background-size: 400% 100%; animation: skeleton 1.4s ease infinite; border-radius: 8px; }
@keyframes skeleton{ 0%{ background-position: 100% 50%; } 100%{ background-position: 0 50%; } }
