/* ---------------------------------------------------------------
   World's Largest Democracy — protest archive
   Plain CSS, no framework, no webfonts, no JS. Keep it that way.
   --------------------------------------------------------------- */

:root {
  /* palette */
  --bg:        #fdfdfc;
  --surface:   #f4f4f2;
  --fg:        #15171c;
  --muted:     #5a6069;
  --rule:      #e0e0dc;
  --rule-soft: #ececea;
  --link:      #0a4fd0;
  --btn-fg:    #fdfdfc;
  --flag:      #8a1c1c;

  --t-confirmed: #14653c;
  --t-video:     #7a5410;
  --t-disputed:  #8a1c1c;

  /* spacing scale */
  --sp-1: .25rem;
  --sp-2: .5rem;
  --sp-3: .75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;

  --measure: 44rem;
  --radius: 5px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #101216;
    --surface:   #191c21;
    --fg:        #e8eaee;
    --muted:     #99a1ad;
    --rule:      #2b2f37;
    --rule-soft: #212530;
    --link:      #8ab4ff;
    --btn-fg:    #101216;
    --flag:      #ff9a9a;

    --t-confirmed: #6fd39b;
    --t-video:     #e3b45c;
    --t-disputed:  #ff9a9a;
  }
}

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

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

body {
  margin: 0;
  padding: var(--sp-5) var(--sp-4) var(--sp-8);
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

@media (min-width: 40rem) {
  body { padding: var(--sp-7) var(--sp-6) var(--sp-8); font-size: 17px; }
}

main { max-width: var(--measure); margin: 0 auto; }

::selection { background: var(--link); color: var(--bg); }

/* ---- typography ---- */

h1 {
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: -.015em;
  margin: 0 0 var(--sp-2);
  font-weight: 700;
}

h2 {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  font-weight: 700;
  margin: var(--sp-8) 0 0;
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--rule);
}

h3 {
  font-size: 1.02rem;
  line-height: 1.4;
  margin: 0 0 var(--sp-2);
  font-weight: 650;
  letter-spacing: -.005em;
}

p { margin: 0 0 var(--sp-3); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}
a:hover { text-decoration-thickness: 2px; }

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

.lede {
  color: var(--muted);
  margin-bottom: var(--sp-5);
  font-size: .97rem;
}

.intro {
  border-left: 3px solid var(--rule);
  padding: var(--sp-1) 0 var(--sp-1) var(--sp-4);
  margin: var(--sp-5) 0 var(--sp-6);
}

.note {
  color: var(--muted);
  font-size: .92rem;
  margin: var(--sp-1) 0 var(--sp-2);
}

.nosrc {
  color: var(--muted);
  font-size: .92rem;
  font-style: italic;
  margin: 0;
}

/* ---- callout box ---- */

.mirror {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-5);
  margin: 0 0 var(--sp-4);
  font-size: .95rem;
}

/* ---- entry lists ---- */

ol.items {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: item;
}

ol.items > li {
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--rule-soft);
  counter-increment: item;
  position: relative;
}
ol.items > li:last-child { border-bottom: 0; }

ol.items > li::before {
  content: counter(item);
  position: absolute;
  left: -2.75rem;
  top: calc(var(--sp-5) + .2rem);
  font-size: .75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}
@media (max-width: 56rem) { ol.items > li::before { display: none; } }

.links { font-size: .92rem; margin: var(--sp-2) 0 0; }
.links a { display: inline-block; margin-right: var(--sp-4); }
.links a:last-child { margin-right: 0; }

/* ---- verification status ---- */

.tier {
  display: inline-block;
  font-size: .66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .2rem .5rem;
  border-radius: 3px;
  margin-bottom: var(--sp-2);
  border: 1px solid currentColor;
  line-height: 1.3;
}
.t-confirmed { color: var(--t-confirmed); }
.t-video     { color: var(--t-video); }
.t-disputed  { color: var(--t-disputed); }

.legend { font-size: .93rem; margin: var(--sp-5) 0 0; }
.legend dt { margin-top: var(--sp-4); }
.legend dd { margin: var(--sp-1) 0 0; color: var(--muted); }

/* ---- images ---- */

.thumb {
  display: block;
  max-width: 320px;
  max-height: 240px;
  width: auto;
  height: auto;
  margin: var(--sp-3) 0;
  border-radius: 4px;
  border: 1px solid var(--rule);
  background: var(--surface);
}

.hero-img {
  display: block;
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  margin: var(--sp-5) 0 0;
  background: var(--surface);
}

.hero-credit {
  font-size: .82rem;
  color: var(--muted);
  margin: var(--sp-2) 0 0;
}

.spot-img {
  display: block;
  max-width: 280px;
  max-height: 200px;
  width: auto;
  height: auto;
  margin: var(--sp-3) 0;
  border-radius: 4px;
  border: 1px solid var(--rule);
  background: var(--surface);
}

/* ---- inline player ----
   Wrapped in <details> on purpose: nothing inside a closed <details> is
   fetched, so the archive.org player only loads if a reader asks for it.
   No JavaScript, no third-party request on page load, and if archive.org
   is unreachable the entry still works via its Source link. */

.player { margin: var(--sp-3) 0; }

.player > summary {
  display: inline-block;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 650;
  color: var(--link);
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  list-style: none;
  user-select: none;
}
.player > summary::-webkit-details-marker { display: none; }
.player > summary::before { content: "\25B8\00a0\00a0"; }
.player[open] > summary::before { content: "\25BE\00a0\00a0"; }
.player > summary:hover { border-color: var(--link); }

.player iframe {
  display: block;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 9 / 16;
  margin: var(--sp-3) 0 0;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: #000;
}
.player iframe.wide { aspect-ratio: 16 / 9; max-width: 100%; }

/* ---- landing page ---- */

.hero {
  padding: var(--sp-2) 0 var(--sp-6);
  border-bottom: 1px solid var(--rule);
}
.hero h1 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.5rem); margin-bottom: var(--sp-4); }
.hero p { font-size: 1.06rem; max-width: 34rem; }

.btn {
  display: inline-block;
  margin-top: var(--sp-2);
  background: var(--fg);
  color: var(--btn-fg);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: .005em;
}
.btn:hover { opacity: .87; }

.btn-secondary {
  display: inline-block;
  margin: var(--sp-2) 0 0 var(--sp-4);
  color: var(--link);
  font-size: .95rem;
}

@media (max-width: 26rem) {
  .btn { display: block; text-align: center; }
  .btn-secondary { display: block; margin-left: 0; margin-top: var(--sp-3); }
}

.spotlight {
  padding: var(--sp-6) 0;
  border-bottom: 1px solid var(--rule-soft);
}
.spotlight:last-of-type { border-bottom: 1px solid var(--rule); }
.spotlight h3 { font-size: 1.2rem; margin-bottom: var(--sp-3); }
.spotlight p { margin-bottom: var(--sp-3); }

/* ---- navigation ---- */

.back {
  display: inline-block;
  margin-bottom: var(--sp-5);
  font-size: .92rem;
}

.langbar {
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-3);
  font-size: .88rem;
  margin: 0 0 var(--sp-3);
}
.langbar span { color: var(--muted); }

footer {
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: .92rem;
}

/* ---- Devanagari needs more vertical room than Latin ---- */

html[lang="hi"] body { line-height: 1.85; }
html[lang="hi"] h1,
html[lang="hi"] h2,
html[lang="hi"] h3 { line-height: 1.45; }
html[lang="hi"] .tier { letter-spacing: .02em; }

/* ---- print: this is an evidence archive, it should print cleanly ---- */

@media print {
  :root { --bg: #fff; --fg: #000; --muted: #444; --rule: #bbb; --rule-soft: #ddd; }
  body { padding: 0; font-size: 11pt; }
  .btn, .btn-secondary, .langbar, .back { display: none; }
  .thumb, .spot-img, .hero-img { max-width: 55mm; max-height: 40mm; }
  ol.items > li { page-break-inside: avoid; }
  h2 { page-break-after: avoid; }
  /* print the URL after every outbound link, so a paper copy stays verifiable */
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 8pt;
    color: #444;
    word-break: break-all;
  }
}
