/* ==========================================================================
   tvvprasad.com — shared stylesheet
   Palette: TDP yellow accent on near-black ink. No party logo is used;
   drop your own mark into assets/img/logo.png.
   ========================================================================== */

:root {
  /* TDP party palette: flag yellow is the dominant colour, ink + white support it. */
  --yellow:      #FFD200;   /* flag yellow  */
  --yellow-hi:   #FFE04D;   /* highlight    */
  --yellow-deep: #D99900;   /* text-safe    */
  --yellow-soft: #FFF7D9;   /* tint         */
  --ink:         #14161A;
  --ink-2:       #2B2F36;
  --muted:       #6B7280;
  --line:        #E5E7EB;
  --bg:          #FFFFFF;
  --bg-2:        #FAFAF7;
  --red:         #C62828;
  --green:       #1B7F4C;

  --radius:   14px;
  --radius-s: 9px;
  --shadow:   0 1px 2px rgba(20,22,26,.06), 0 8px 24px rgba(20,22,26,.07);
  --shadow-l: 0 2px 6px rgba(20,22,26,.08), 0 18px 48px rgba(20,22,26,.12);
  --wrap:     1140px;

  --font-te: 'Noto Sans Telugu', 'Gautami', 'Nirmala UI', sans-serif;
  --font-en: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

/* Must outrank component rules that set `display` (e.g. .admin__shell),
   otherwise [hidden] silently stops working on those elements. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-te), var(--font-en);
  font-size: 16.5px;
  line-height: 1.75;           /* Telugu needs generous leading for matras */
  -webkit-font-smoothing: antialiased;
}

/* English mode tightens leading — Latin doesn't need the extra room */
html[lang="en"] body { font-family: var(--font-en); line-height: 1.65; }

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.35; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.45rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Top strip ---------------------------------------------------- */

/* Flag-yellow strip carries the party identity above everything else */
.topbar {
  background: var(--yellow);
  color: var(--ink);
  font-size: .82rem;
  padding: 7px 0;
  font-weight: 600;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar__note { opacity: .9; display: flex; align-items: center; gap: 8px; }
.topbar__social { display: flex; gap: 14px; }
.topbar__social a { opacity: .75; transition: opacity .15s; }
.topbar__social a:hover { opacity: 1; }

/* ---------- Header / nav ------------------------------------------------- */

.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--yellow);   /* party flag band */
  box-shadow: 0 1px 0 var(--line);
}
.header .wrap { display: flex; align-items: center; gap: 18px; min-height: 68px; }

.brand { display: flex; align-items: center; gap: 11px; margin-inline-end: auto; }
.brand__mark {
  width: 42px; height: 42px; flex: none; border-radius: 50%;
  background: var(--yellow);
  display: grid; place-items: center;
  font-weight: 800; font-size: 1rem; color: var(--ink);
  font-family: var(--font-en);
  border: 2px solid var(--ink);
  overflow: hidden;
}
.brand__mark img { width: 100%; height: 100%; object-fit: cover; }
.brand__name { font-weight: 800; font-size: 1.08rem; line-height: 1.2; }
.brand__role { font-size: .74rem; color: var(--muted); line-height: 1.2; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  padding: 9px 12px; border-radius: var(--radius-s);
  font-size: .93rem; font-weight: 600; color: var(--ink-2);
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--bg-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--yellow-soft); color: var(--ink); }

.header__actions { display: flex; align-items: center; gap: 10px; }

/* Language switcher — top right, per brief */
.lang {
  display: inline-flex; padding: 3px; gap: 2px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px;
}
.lang button {
  border: 0; background: none; cursor: pointer;
  padding: 5px 13px; border-radius: 999px;
  font: inherit; font-size: .84rem; font-weight: 700; color: var(--muted);
  transition: background .15s, color .15s;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.navtoggle {
  display: none; border: 1px solid var(--line); background: #fff;
  width: 42px; height: 42px; border-radius: var(--radius-s); cursor: pointer;
  font-size: 1.2rem; line-height: 1;
}

/* ---------- Buttons ------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: .95rem;
  cursor: pointer; transition: transform .12s, box-shadow .15s, background .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--yellow); color: var(--ink); border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.btn--primary:hover { background: var(--yellow-deep); }
.btn--dark  { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--wa    { background: var(--green); color: #fff; }
.btn--block { width: 100%; }
.btn--sm    { padding: 7px 14px; font-size: .85rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- Hero --------------------------------------------------------- */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(255,204,0,.35), transparent 65%),
    linear-gradient(180deg, var(--bg-2), #fff);
  border-bottom: 1px solid var(--line);
}
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px;
  align-items: center; padding-block: 56px 60px;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--yellow);
  padding: 6px 15px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  margin-bottom: 18px;
}
.hero__title { margin-bottom: .35em; }
.hero__title span { color: var(--yellow-deep); }
.hero__lede { font-size: 1.08rem; color: var(--ink-2); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.hero__photo {
  position: relative; border-radius: 20px; overflow: hidden;
  border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--yellow);
  aspect-ratio: 4 / 5; background: var(--bg-2);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

.hero__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border-top: 1px solid var(--line);
}
.hero__stats div { background: #fff; padding: 20px 16px; text-align: center; }
.hero__stats b { display: block; font-size: 1.7rem; font-weight: 800; color: var(--yellow-deep); font-family: var(--font-en); }
.hero__stats span { font-size: .86rem; color: var(--muted); }

/* ---------- Section scaffolding ------------------------------------------ */

.section { padding-block: 60px; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 30px; flex-wrap: wrap;
}
.section__head h2 { margin: 0; }
.section__head p  { margin: 6px 0 0; color: var(--muted); font-size: .95rem; }
.kicker {
  display: block; font-size: .8rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--yellow-deep); margin-bottom: 6px;
  font-family: var(--font-en);
}

.grid   { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Post cards --------------------------------------------------- */

.post {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.post:hover { transform: translateY(-3px); box-shadow: var(--shadow-l); border-color: #d8dbe0; }
.post__media { aspect-ratio: 16 / 9; background: var(--bg-2); overflow: hidden; }
.post__media img { width: 100%; height: 100%; object-fit: cover; }
.post__body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.post__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.post__date { font-size: .8rem; color: var(--muted); font-family: var(--font-en); }
.post__title { font-size: 1.12rem; margin: 0 0 8px; }
.post__excerpt { font-size: .95rem; color: var(--ink-2); margin: 0 0 16px; }
.post__more { margin-top: auto; font-weight: 700; font-size: .9rem; color: var(--yellow-deep); }
.post__more::after { content: ' →'; }

.tag {
  display: inline-block; padding: 3px 11px; border-radius: 999px;
  background: var(--yellow-soft); color: #7a5c00;
  font-size: .74rem; font-weight: 700;
}
.tag--dark { background: var(--ink); color: var(--yellow); }

/* Featured / lead post */
.post--lead { grid-column: span 2; flex-direction: row; }
.post--lead .post__media { aspect-ratio: auto; flex: 0 0 46%; }
.post--lead .post__body  { padding: 28px 30px; justify-content: center; }
.post--lead .post__title { font-size: 1.5rem; }

/* ---------- Gallery ------------------------------------------------------ */

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery figure {
  margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-s);
  aspect-ratio: 1; background: var(--bg-2); cursor: zoom-in;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 26px 12px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,.78));
  color: #fff; font-size: .82rem; line-height: 1.4;
  opacity: 0; transition: opacity .25s;
}
.gallery figure:hover figcaption, .gallery figure:focus-within figcaption { opacity: 1; }
.gallery figure.tall { grid-row: span 2; aspect-ratio: 1 / 2; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  place-items: center; background: rgba(10,11,13,.92); padding: 24px;
}
.lightbox[open], .lightbox.is-open { display: grid; }
.lightbox img { max-width: min(94vw, 1100px); max-height: 84vh; object-fit: contain; border-radius: 8px; }
.lightbox__cap { color: #fff; text-align: center; margin-top: 14px; font-size: .92rem; }
.lightbox__close {
  position: absolute; top: 18px; inset-inline-end: 18px;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; font-size: 1.5rem; line-height: 1;
}
.lightbox__nav {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; font-size: 1.5rem;
}
.lightbox__nav--prev { inset-inline-start: 18px; }
.lightbox__nav--next { inset-inline-end: 18px; }

/* ---------- Feature / service tiles -------------------------------------- */

.tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: border-color .15s, box-shadow .15s;
}
.tile:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.tile__icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 14px;
  background: var(--yellow-soft); display: grid; place-items: center; font-size: 1.35rem;
}
.tile h3 { margin-bottom: 6px; }
.tile p  { margin: 0; font-size: .93rem; color: var(--muted); }

/* ---------- Events ------------------------------------------------------- */

.event {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 18px 0; border-bottom: 1px dashed var(--line);
}
.event:last-child { border-bottom: 0; }
.event__date {
  flex: none; width: 66px; text-align: center; border-radius: 10px;
  background: var(--ink); color: #fff; padding: 8px 0; font-family: var(--font-en);
}
.event__date b { display: block; font-size: 1.4rem; line-height: 1; }
.event__date span { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; opacity: .8; }
.event__body h3 { margin: 0 0 4px; font-size: 1.02rem; }
.event__body p  { margin: 0; font-size: .9rem; color: var(--muted); }

/* ---------- Subscribe ---------------------------------------------------- */

.subscribe {
  background: var(--ink);
  color: #fff;
  position: relative; overflow: hidden;
}
.subscribe::before {
  content: ''; position: absolute; inset-block: -40%; inset-inline-end: -8%;
  width: 46%; background: var(--yellow); opacity: .12; rotate: 12deg;
}
.subscribe .wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-block: 58px; }
.subscribe h2 { color: #fff; }
.subscribe p  { color: rgba(255,255,255,.75); margin-bottom: 0; }
.subscribe .kicker { color: var(--yellow); }

.form { display: grid; gap: 13px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field { display: grid; gap: 6px; }
.field > label { font-size: .84rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-s);
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font: inherit; font-size: .95rem;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid rgba(255,204,0,.45); outline-offset: 1px; border-color: var(--yellow-deep);
}
.field__hint { font-size: .78rem; color: var(--muted); }
.subscribe .field > label { color: rgba(255,255,255,.9); }
.subscribe .field__hint { color: rgba(255,255,255,.55); }
.subscribe .form__card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 26px; }

.formnote { font-size: .82rem; margin: 4px 0 0; }
.formnote--ok  { color: var(--green); }
.formnote--err { color: var(--red); }
.subscribe .formnote--ok { color: #7CE0A8; }

/* Sticky mobile subscribe bar */
.stickybar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 70; display: none;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

/* ---------- Prajavani (grievance) status --------------------------------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { padding-top: 16px; border-top: 3px solid var(--yellow); }
.step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: var(--yellow); font-weight: 800; font-size: .88rem;
  margin-bottom: 10px; font-family: var(--font-en);
}
.step h3 { font-size: 1rem; margin-bottom: 4px; }
.step p  { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- Panels / misc ------------------------------------------------ */

.panel {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.callout {
  border-inline-start: 4px solid var(--yellow); background: var(--yellow-soft);
  padding: 16px 20px; border-radius: 0 var(--radius-s) var(--radius-s) 0;
  font-size: .93rem;
}
.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.skeleton { background: linear-gradient(90deg, #f1f2f4, #e7e9ec, #f1f2f4); background-size: 200% 100%; animation: sh 1.2s linear infinite; border-radius: var(--radius); height: 300px; }
@keyframes sh { to { background-position: -200% 0; } }

.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; border-inline-start: 2px solid var(--line); }
.timeline li { position: relative; padding-bottom: 26px; }
.timeline li::before {
  content: ''; position: absolute; inset-inline-start: -33px; top: 8px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--yellow); border: 2px solid var(--ink);
}
.timeline b { display: block; font-family: var(--font-en); font-size: .82rem; color: var(--muted); }

/* ---------- Footer ------------------------------------------------------- */

.footer { background: var(--ink); color: rgba(255,255,255,.72); padding-block: 48px 24px; font-size: .92rem; }
.footer a:hover { color: var(--yellow); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__bottom {
  margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .84rem; color: rgba(255,255,255,.55);
}

/* ---------- Admin -------------------------------------------------------- */

.admin { background: var(--bg-2); min-height: 100vh; }
.admin__shell { display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: start; padding-block: 28px; }
.admin__side { position: sticky; top: 88px; display: grid; gap: 4px; }
.admin__side button {
  text-align: start; border: 0; background: none; font: inherit; font-weight: 600;
  padding: 10px 14px; border-radius: var(--radius-s); cursor: pointer; color: var(--ink-2);
}
.admin__side button:hover { background: #fff; }
.admin__side button[aria-current="true"] { background: var(--ink); color: #fff; }
.admin__panel { display: none; }
.admin__panel.is-active { display: block; }

.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { text-align: start; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.table tr:hover td { background: var(--bg-2); }
.tablewrap { overflow-x: auto; }

.login { display: grid; place-items: center; min-height: 78vh; padding: 24px; }
.login .panel { width: min(420px, 100%); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 6px 14px; font: inherit; font-size: .85rem; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Responsive --------------------------------------------------- */

@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 40px 44px; }
  .hero__photo { max-width: 340px; order: -1; }
  .subscribe .wrap { grid-template-columns: 1fr; gap: 28px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .admin__shell { grid-template-columns: 1fr; }
  .admin__side { position: static; grid-auto-flow: column; overflow-x: auto; }
  .post--lead { flex-direction: column; grid-column: span 2; }
  .post--lead .post__media { aspect-ratio: 16/9; flex: none; }
}

@media (max-width: 760px) {
  .navtoggle { display: block; }
  .nav {
    /* 68px header + its 3px yellow border, so the band stays visible */
    position: fixed; inset: 71px 0 auto; display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px 16px 18px; box-shadow: var(--shadow-l);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 10px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .header__actions .btn--primary { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .post--lead { grid-column: auto; }
  .form__row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .stickybar { display: block; }
  body { padding-bottom: 74px; }
  .topbar__note { display: none; }
  .section { padding-block: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .header, .topbar, .footer, .stickybar, .subscribe { display: none; }
}

/* ==========================================================================
   DARK ABOUT PAGE  —  scoped entirely to <body class="dark">
   Party gold on near-black. Gold carries the headings, numbers and accents;
   long-form paragraphs sit in a warm off-white, because sustained reading in
   saturated yellow on black is genuinely tiring. The gold still sets the tone,
   it just isn't asked to do the body copy's job.
   ========================================================================== */

body.dark {
  --d-bg:     #0B0C0E;
  --d-panel:  #141519;
  --d-panel2: #1B1D22;
  --d-line:   #2A2C33;
  --d-gold:   #FFD200;
  --d-gold-2: #FFE270;
  --d-gold-d: #B8890A;
  --d-text:   #E8E4D9;
  --d-muted:  #979387;

  background: var(--d-bg);
  color: var(--d-text);
}

/* Chrome sits on the same dark ground */
body.dark .header {
  background: rgba(11,12,14,.92);
  border-bottom-color: var(--d-gold);
  box-shadow: 0 1px 0 var(--d-line);
}
body.dark .brand__name { color: var(--d-text); }
body.dark .brand__role { color: var(--d-muted); }
body.dark .nav button, body.dark .nav a { color: var(--d-text); }
body.dark .nav a:hover { background: var(--d-panel2); color: var(--d-gold); }
body.dark .nav a[aria-current="page"] { background: rgba(255,210,0,.14); color: var(--d-gold); }
body.dark .lang { background: var(--d-panel2); border-color: var(--d-line); }
body.dark .lang button { color: var(--d-muted); }
body.dark .lang button[aria-pressed="true"] { background: var(--d-gold); color: #14161A; }
body.dark .navtoggle { background: var(--d-panel2); border-color: var(--d-line); color: var(--d-text); }
body.dark .nav { background: var(--d-panel); border-bottom-color: var(--d-line); }
body.dark .nav a { border-bottom-color: var(--d-line); }

body.dark .section       { background: transparent; }
body.dark .section--alt  { background: var(--d-panel); border-block-color: var(--d-line); }
body.dark h1, body.dark h2, body.dark h3 { color: var(--d-gold); }
body.dark .kicker { color: var(--d-gold-d); }
body.dark .section__head p { color: var(--d-muted); }

/* ---- masthead ---------------------------------------------------------- */

.dk-hero {
  position: relative;
  padding-block: 56px 48px;
  border-bottom: 1px solid var(--d-line);
  background:
    radial-gradient(700px 340px at 82% -20%, rgba(255,210,0,.16), transparent 68%),
    linear-gradient(180deg, #101115, var(--d-bg));
}
.dk-hero__grid {
  display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: center;
}

.dk-portrait {
  position: relative; border-radius: 18px; overflow: hidden;
  aspect-ratio: 4/5; background: var(--d-panel2);
  border: 1px solid rgba(255,210,0,.35);
  box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 26px 60px rgba(0,0,0,.55);
}
.dk-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Warms the photo slightly and lifts it off the black without a hard frame */
.dk-portrait::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(11,12,14,.55));
}

.dk-name {
  font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.15;
  color: var(--d-gold); margin: 0 0 6px; letter-spacing: -.015em;
}
.dk-role { color: var(--d-text); font-size: 1.02rem; margin: 0 0 18px; }
.dk-lead {
  color: var(--d-gold-2); font-size: 1.12rem; line-height: 1.7;
  max-width: 46ch; margin: 0 0 22px;
}
.dk-rule {
  width: 72px; height: 3px; border-radius: 2px; margin: 0 0 20px;
  background: linear-gradient(90deg, var(--d-gold), transparent);
}

/* party affiliation block */
.dk-affil {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--d-panel2); border: 1px solid var(--d-line);
  border-radius: 14px; padding: 10px 18px 10px 12px;
}
.dk-affil img { width: 46px; height: 46px; object-fit: contain; border-radius: 8px; }
.dk-affil__t { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--d-muted); }
.dk-affil__n { display: block; font-weight: 700; color: var(--d-gold); font-size: .98rem; }

/* ---- body copy --------------------------------------------------------- */

.dk-prose p { color: var(--d-text); font-size: 1.03rem; max-width: 68ch; }
.dk-prose p + p { margin-top: 1.05em; }

body.dark .callout {
  background: rgba(255,210,0,.07);
  border-inline-start-color: var(--d-gold);
  color: var(--d-muted);
}

/* ---- cards ------------------------------------------------------------- */

body.dark .tile {
  background: var(--d-panel2); border-color: var(--d-line); color: var(--d-text);
}
body.dark .tile:hover { border-color: var(--d-gold); box-shadow: 0 0 0 1px rgba(255,210,0,.25); }
body.dark .tile p  { color: var(--d-muted); }
body.dark .tile__icon { background: rgba(255,210,0,.12); }
body.dark .tag--dark  { background: var(--d-gold); color: #14161A; }

/* ---- timeline ---------------------------------------------------------- */

body.dark .timeline { border-inline-start-color: var(--d-line); }
body.dark .timeline li::before { background: var(--d-gold); border-color: var(--d-bg); }
body.dark .timeline b { color: var(--d-gold-d); }
body.dark .timeline span { color: var(--d-text); }

/* ---- emblem strip ------------------------------------------------------ */

.dk-emblems {
  display: flex; align-items: center; justify-content: center; gap: 30px;
  padding: 26px; border: 1px solid var(--d-line); border-radius: var(--radius);
  background: var(--d-panel2);
}
.dk-emblems img { height: 76px; width: auto; object-fit: contain; }
.dk-emblems p { margin: 0; color: var(--d-muted); font-size: .9rem; max-width: 34ch; }

@media (max-width: 860px) {
  .dk-hero__grid { grid-template-columns: 1fr; gap: 26px; }
  .dk-portrait { max-width: 260px; }
  .dk-emblems { flex-direction: column; text-align: center; gap: 18px; }
}
