/* Statements tracker (/statements): "the two podiums". A dark stage with two
   lecterns facing each other (Islamabad left, Washington right) under two
   spotlights; a mirrored monthly chart; then the split timeline, each side's
   statements on its own side of one spine. Tokens: site.css. */
:root {
  --st-gold: #E2B865;
  --st-gold-deep: #9A7426;
  --st-pk: #8C63C9;      /* Islamabad: violet */
  --st-pk-ink: #5A3689;
  --st-us: #C99A3E;      /* Washington: gold */
  --st-us-ink: #7A5A1C;
  --st-paper: #FCFAF5;
  --st-rule: #DDD5C4;
}

/* ------------------------------------------------------------- The stage */
.st-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(110, 66, 166, 0.35), transparent 70%),
    linear-gradient(180deg, #1A0F2D 0%, var(--ink) 60%, #1E1233 100%);
  border-bottom: 1px solid rgba(226, 184, 101, 0.3);
}
.st-hero .container { position: relative; z-index: 2; padding-top: var(--s-4); text-align: center; }
.st-kicker {
  display: inline-flex; align-items: center; gap: 0.55em; margin: 0 0 var(--s-2);
  font-family: var(--font-serif); font-size: var(--kicker-size); font-weight: 600; font-variant-caps: all-small-caps;
  letter-spacing: var(--kicker-track); color: var(--st-gold);
}
.st-h1 { color: #fff; margin: 0 auto var(--s-2); font-size: clamp(2.1rem, 5vw, 4rem); line-height: 1.04; letter-spacing: var(--hed-track); }
.st-h1 .is-pk { color: #D9C6F2; }
.st-h1 .is-us { color: #F1D9A4; }
.st-dot { color: var(--st-gold); padding: 0 0.1em; }
.st-lede { max-width: 56ch; margin: 0 auto; font-family: var(--font-serif); font-style: italic; font-size: clamp(1.06rem, 1.4vw, 1.26rem); line-height: 1.5; color: var(--on-ink); }

.st-stage {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 8vw, 9rem);
  max-width: 1080px; margin: 0 auto; padding: var(--s-4) var(--s-3) var(--s-3);
}
.st-hero::after { /* the stage floor and its front edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(8, 4, 16, 0.45));
  border-bottom: 3px solid rgba(226, 184, 101, 0.35);
}
.st-spot { position: absolute; top: -10%; width: 46%; height: 120%; pointer-events: none; opacity: 0.55; transition: opacity 0.8s ease; }
.st-spot.is-pk { left: 2%; background: radial-gradient(ellipse 40% 70% at 50% 72%, rgba(140, 99, 201, 0.38), transparent 70%); }
.st-spot.is-us { right: 2%; background: radial-gradient(ellipse 40% 70% at 50% 72%, rgba(226, 184, 101, 0.3), transparent 70%); }
.st-stage[data-speaking="pk"] .st-spot.is-pk, .st-stage[data-speaking="us"] .st-spot.is-us { opacity: 1; }
.st-stage[data-speaking="pk"] .st-spot.is-us, .st-stage[data-speaking="us"] .st-spot.is-pk { opacity: 0.25; }

.st-podium { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.st-lectern { width: min(220px, 100%); height: auto; display: block; overflow: visible; }
.st-podium.is-us .st-lectern { transform: scaleX(-1); }
.st-lectern .st-shadow { fill: rgba(0, 0, 0, 0.4); }
.st-lectern .st-body { fill: #3F2A66; }
.st-lectern .st-desk { fill: #5B3F8C; }
.st-podium.is-us .st-lectern .st-body { fill: #3A2860; }
.st-lectern .st-edge { stroke: rgba(226, 184, 101, 0.55); stroke-width: 2; }
.st-lectern .st-trim { stroke: rgba(226, 184, 101, 0.35); stroke-width: 1.5; }
.st-lectern .st-paper { fill: #F4EEDF; opacity: 0.9; }
.st-lectern .st-neck { fill: none; stroke: #8E8098; stroke-width: 3; stroke-linecap: round; }
.st-lectern .st-mic rect { fill: #2A1B45; stroke: var(--st-gold); stroke-width: 2; }
.st-lectern .st-waves path { fill: none; stroke: var(--st-gold); stroke-width: 2; stroke-linecap: round; opacity: 0.18; transition: opacity 0.5s ease; }
.st-podium.is-pk .st-waves path { stroke: #CDB4EE; }
.st-stage[data-speaking="pk"] .is-pk .st-waves path, .st-stage[data-speaking="us"] .is-us .st-waves path { opacity: 0.9; animation: st-wave 1.8s ease-out infinite; }
.st-stage .st-waves path:nth-child(2) { animation-delay: 0.25s; }
.st-stage .st-waves path:nth-child(3) { animation-delay: 0.5s; }
.st-stage.is-off .st-waves path { animation-play-state: paused !important; }
@keyframes st-wave { 0% { opacity: 0.1; } 35% { opacity: 0.95; } 100% { opacity: 0.1; } }

/* The front plaque sits over the lectern's body. */
.st-plaque {
  position: relative; margin-top: -150px; margin-bottom: 70px; width: min(140px, 64%);
  display: flex; flex-direction: column; align-items: center; gap: 0.1rem; pointer-events: none;
}
.st-cap { font-family: var(--font-serif); font-variant-caps: all-small-caps; letter-spacing: 0.16em; font-size: 1rem; color: var(--st-gold); }
.st-n { font-family: var(--font-serif); font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; color: #fff; font-variant-numeric: lining-nums tabular-nums; }
.st-n-l { font-size: 0.72rem; line-height: 1.25; color: var(--on-ink-muted); max-width: 14ch; }
.st-latest { position: relative; z-index: 2; max-width: 34ch; margin: var(--s-1) 0 0; font-family: var(--font-serif); font-size: 0.98rem; line-height: 1.4; color: var(--on-ink); }
.st-latest span { display: block; font-family: var(--font); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-ink-muted); }
.st-latest a { color: #fff; text-decoration-color: rgba(226, 184, 101, 0.6); text-underline-offset: 3px; }
.st-latest a:hover { color: var(--st-gold); }
.st-latest time { display: block; margin-top: 0.2rem; font-size: 0.82rem; color: var(--on-ink-muted); }
.st-latest.is-empty { font-style: italic; color: var(--on-ink-muted); }

/* ---------------------------------------------------------- Body and floor */
.st-body { padding-top: var(--s-4); padding-bottom: var(--s-5); }
.st-floor { display: flex; flex-direction: column; gap: 0.6rem; align-items: center; margin-bottom: var(--s-4); }
.st-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.st-chips a {
  display: inline-flex; align-items: center; gap: 0.45em; padding: 0.38rem 0.85rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); color: var(--ink); font-size: 0.9rem; text-decoration: none; transition: border-color 0.2s, background 0.2s;
}
.st-chips a span { color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.st-chips a:hover { border-color: var(--accent); }
.st-chips a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.st-chips a[aria-current] span { color: var(--st-gold); }
.st-chips.is-sides a { font-size: 0.84rem; padding: 0.3rem 0.75rem; }

.st-sec { margin-bottom: var(--s-5); }
.st-sec-h { text-align: center; font-size: var(--fs-h2); margin: 0 0 var(--s-3); }
.st-clear { text-align: center; margin: calc(-1 * var(--s-2)) 0 var(--s-3); }
.st-none { text-align: center; font-family: var(--font-serif); font-style: italic; color: var(--muted); }

/* ---------------------------------------------------------- Volume chart */
.st-vol { margin: 0 auto; max-width: 980px; }
.st-vol svg { display: block; width: 100%; height: 220px; overflow: visible; }
.st-vol-axis { stroke: var(--st-rule); stroke-width: 1; vector-effect: non-scaling-stroke; }
.st-vol-pk { fill: var(--st-pk); }
.st-vol-us { fill: var(--st-us); }
.st-vol { position: relative; }
.st-vol-k { position: absolute; left: 0; margin: 0; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; }
.st-vol-k.is-pk { top: 0; color: var(--st-pk-ink); }
.st-vol-k.is-us { top: 190px; color: var(--st-us-ink); }
.st-vol-ms { position: relative; height: 1.4rem; margin: 0.4rem 0 0; padding: 0; list-style: none; }
.st-vol-ms li { position: absolute; top: 0; transform: translateX(-50%); font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.st-vol figcaption { margin-top: var(--s-2); text-align: center; color: var(--muted); font-size: 0.9rem; }

/* ------------------------------------------------------------ Split timeline */
.st-split { position: relative; max-width: 1080px; margin: 0 auto; }
.st-split::before { /* the spine */
  content: ""; position: absolute; top: 3.2rem; bottom: 0; left: 50%; width: 2px; transform: translateX(-1px);
  background: linear-gradient(180deg, var(--st-gold), rgba(226, 184, 101, 0.15));
}
.st-heads { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-2); margin-bottom: var(--s-3); }
.st-head { margin: 0; font-family: var(--font-serif); font-size: clamp(1.3rem, 2.2vw, 1.8rem); font-style: italic; }
.st-head.is-pk { text-align: right; color: var(--st-pk-ink); }
.st-head.is-us { color: var(--st-us-ink); }
.st-head-dot { color: var(--st-gold-deep); font-size: 1.6rem; }
.st-heads { position: sticky; top: var(--header-h, 0px); z-index: 3; padding: 0.4rem 0; background: linear-gradient(180deg, var(--mist) 75%, rgba(244, 242, 247, 0)); }
.st-head { transition: color 0.4s ease, text-shadow 0.4s ease, opacity 0.4s ease; }
.st-head::after { content: ""; display: inline-block; width: 0.5em; height: 0.5em; margin: 0 0.4em; border-radius: 50%; background: currentColor; opacity: 0.25; vertical-align: middle; transition: opacity 0.4s, box-shadow 0.4s; }
.st-head.is-pk::after { display: none; }
.st-head.is-pk::before { content: ""; display: inline-block; width: 0.5em; height: 0.5em; margin: 0 0.4em; border-radius: 50%; background: currentColor; opacity: 0.25; vertical-align: middle; transition: opacity 0.4s, box-shadow 0.4s; }
.st-split[data-speaking="pk"] .st-head.is-us, .st-split[data-speaking="us"] .st-head.is-pk { opacity: 0.45; }
.st-split[data-speaking="pk"] .st-head.is-pk::before, .st-split[data-speaking="us"] .st-head.is-us::after { opacity: 1; box-shadow: 0 0 0 4px rgba(226, 184, 101, 0.25), 0 0 14px rgba(226, 184, 101, 0.7); }
.st-month { position: relative; margin-bottom: var(--s-3); }
.st-month-h { position: relative; z-index: 1; text-align: center; margin: 0 0 var(--s-2); font-size: 1rem; }
.st-month-h span {
  display: inline-block; padding: 0.3rem 0.9rem; border-radius: 999px; background: var(--ink); color: #fff;
  font-family: var(--font-serif); font-variant-caps: all-small-caps; letter-spacing: 0.12em; font-weight: 600;
}
.st-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 4rem; row-gap: var(--s-2); }
.st-item { position: relative; }
.st-item.is-pk { grid-column: 1; }
.st-item.is-us { grid-column: 2; }
.st-item article {
  position: relative; padding: var(--s-2) var(--s-3); background: var(--st-paper); border: 1px solid var(--st-rule); border-radius: 4px;
  box-shadow: 0 1px 0 rgba(42, 27, 69, 0.04), 0 10px 24px -18px rgba(42, 27, 69, 0.4);
}
.st-item.is-pk article { border-right: 3px solid var(--st-pk); text-align: right; }
.st-item.is-us article { border-left: 3px solid var(--st-us); }
.st-item::after { /* the knot on the spine */
  content: ""; position: absolute; top: 1.4rem; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--paper);
}
.st-item.is-pk::after { right: calc(-2rem - 6px); background: var(--st-pk); }
.st-item.is-us::after { left: calc(-2rem - 6px); background: var(--st-us); }
.st-item::before { /* the line from card to spine */
  content: ""; position: absolute; top: calc(1.4rem + 6px); width: 2rem; height: 1px; background: var(--st-rule);
}
.st-item.is-pk::before { right: -2rem; }
.st-item.is-us::before { left: -2rem; }
.st-meta { margin: 0 0 0.35rem; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.st-kind { font-weight: 600; }
.st-item.is-pk .st-kind { color: var(--st-pk-ink); }
.st-item.is-us .st-kind { color: var(--st-us-ink); }
.st-title { margin: 0 0 0.35rem; font-size: 1.16rem; line-height: 1.32; font-weight: 520; }
.st-title a { color: var(--ink); text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size 0.3s ease; }
.st-title a:hover, .st-title a:focus-visible { background-size: 100% 1px; color: var(--accent-dark); }
.st-issuer { margin: 0; font-size: 0.88rem; color: var(--muted); }
.st-sum { margin: 0.7rem 0 0; padding-top: 0.6rem; border-top: 1px dashed var(--st-rule); font-size: 0.95rem; line-height: 1.5; color: var(--text); }
.st-sum-l { display: block; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--st-gold-deep); font-weight: 600; margin-bottom: 0.15rem; }
.st-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.7rem 0 0; padding: 0; list-style: none; }
.st-item.is-pk .st-tags { justify-content: flex-end; }
.st-tags a { font-size: 0.76rem; padding: 0.12rem 0.55rem; border-radius: 999px; background: var(--mist); color: var(--ink-2); text-decoration: none; }
.st-tags a:hover { background: var(--accent-soft); }

/* Reveal (only once JS has marked the page) */
.st-js .st-item article { opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease, transform 0.6s ease; }
.st-js .st-item.is-in article { opacity: 1; transform: none; }

.st-notes { max-width: 760px; margin: 0 auto; padding: var(--s-3); border-top: 2px solid var(--ink); background: var(--mist); }
.st-notes h2 { font-size: 1.3rem; margin: 0 0 var(--s-1); }
.st-notes ul { margin: 0 0 var(--s-2); padding-left: 1.1rem; line-height: 1.55; }
.st-notes li { margin-bottom: 0.4rem; }

/* ------------------------------------------------------------- Phones */
@media (max-width: 720px) {
  .st-stage { gap: 0.75rem; padding: var(--s-3) var(--s-2) var(--s-2); }
  .st-plaque { margin-top: -106px; margin-bottom: 50px; }
  .st-n { font-size: 1.9rem; }
  .st-n-l { font-size: 0.64rem; }
  .st-latest { font-size: 0.86rem; }
  .st-split::before { left: 8px; }
  .st-heads { display: none; }
  .st-month-h { text-align: left; }
  .st-list { grid-template-columns: 1fr; padding-left: 28px; }
  .st-item.is-pk, .st-item.is-us { grid-column: 1; }
  .st-item.is-pk article { text-align: left; border-right: 1px solid var(--st-rule); border-left: 3px solid var(--st-pk); }
  .st-item.is-pk .st-tags { justify-content: flex-start; }
  .st-item.is-pk::after, .st-item.is-us::after { left: -26px; right: auto; }
  .st-item.is-pk::before, .st-item.is-us::before { left: -20px; right: auto; width: 20px; }
  .st-meta::before { font-weight: 700; }
  .st-item.is-pk .st-meta::before { content: "Islamabad · "; color: var(--st-pk-ink); }
  .st-item.is-us .st-meta::before { content: "Washington · "; color: var(--st-us-ink); }
  .st-vol svg { height: 180px; }
  .st-vol-k.is-us { top: 154px; }
  .st-vol-ms li:nth-child(even) { display: none; }
  .st-floor { align-items: stretch; }
  .st-chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .st-chips a { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .st-stage .st-waves path { animation: none !important; }
  .st-js .st-item article { opacity: 1; transform: none; transition: none; }
  .st-spot { transition: none; }
}
