:root {
  --p-50:  #f5f3ff;
  --p-100: #ede9fe;
  --p-200: #ddd6fe;
  --p-300: #c4b5fd;
  --p-400: #a78bfa;
  --p-500: #8b5cf6;
  --p-600: #7c3aed;
  --p-700: #6d28d9;
  --p-800: #5b21b6;
  --p-900: #2e1065;

  --gold:  #fbbf24;
  --gold-2:#f59e0b;

  --ink:   #1a1030;
  --ink-2: #3b2b62;
  --muted: #7d75a3;

  --disp: 'Bai Jamjuree', 'Sarabun', serif;
  --sans: 'Sarabun', 'IBM Plex Sans Thai', -apple-system, BlinkMacSystemFont, sans-serif;

  --tap: 56px;
  --ticker-h: 38px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
.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;
}
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: #faf7ff;
  min-height: 100vh;
  padding-top: var(--ticker-h);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }

/* ================= TICKER ================= */
.ticker {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  height: var(--ticker-h);
  display: flex; align-items: center;
  overflow: hidden;
  background: linear-gradient(90deg, var(--p-800), var(--p-600) 50%, var(--p-800));
  border-bottom: 3px solid var(--gold);
}
.ticker-track {
  display: flex; width: max-content;
  animation: ticker-slide 15s linear infinite;
  will-change: transform;
}
.ticker-group {
  padding: 0 30px 0 0; line-height: 1;
  color: #fff; white-space: nowrap;
  font-family: var(--disp); font-weight: 700;
  font-size: 15px; letter-spacing: 0.01em;
}
@keyframes ticker-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-16.6667%); }
}
@media (max-width: 620px) {
  :root { --ticker-h: 34px; }
  .ticker-group { font-size: 14px; padding-right: 26px; }
  .tracker-legend .stat { font-size: 10.5px; padding: 3px 7px; gap: 3px; }
}
@media (max-width: 380px) {
  .tracker-legend .stat { font-size: 9.5px; padding: 3px 5px; gap: 2px; }
}

/* ================= TOPBAR ================= */
.topbar {
  position: relative; z-index: 30; overflow-x: hidden; overflow-x: clip;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px; max-width: 1200px; margin: 0 auto;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(250,247,255,.94), rgba(250,247,255,.7));
}
.wm { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.wm-logo { height: 40px; width: auto; display: block; }
@media (max-width: 480px) { .wm-logo { height: 34px; } }

.topbar-icons { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.ic {
  height: 38px; padding: 0 14px; border-radius: 10px; border: 0;
  background: #fff; color: var(--p-800); font-size: 13px; cursor: pointer;
  box-shadow: 0 2px 6px rgba(30,11,58,0.08);
  transition: transform .12s ease, background .15s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  text-decoration: none; flex-shrink: 0;
  font-family: inherit; font-weight: 700;
  position: relative;
}
.ic-txt { color: inherit; white-space: nowrap; }
.ic:hover { transform: translateY(-1px); background: var(--p-50); }
.ic:first-child {
  background: linear-gradient(135deg, var(--p-500), var(--p-700));
  color: #fff;
  box-shadow: 0 6px 14px rgba(124,58,237,0.28);
}
.ic:first-child:hover { background: linear-gradient(135deg, var(--p-600), var(--p-800)); color:#fff; }
/* ================= LAYOUT ================= */
main { max-width: 1100px; margin: 0 auto; padding: 0 22px 40px; overflow-x: hidden; overflow-x: clip; }
main > section { scroll-margin-top: calc(var(--ticker-h) + 14px); }
.block { margin: 28px 0; }
.section-head { text-align: center; margin-bottom: 22px; }
/* Collapsible section head: acts as a button */
.sh-toggle {
  all: unset;
  /* all:unset drops the global border-box, so width:100% + padding overflowed */
  box-sizing: border-box;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 18px 22px;
  background: linear-gradient(180deg, #fff, var(--p-50));
  border: 1px solid rgba(124,58,237,0.14);
  border-radius: 16px;
  width: 100%;
  transition: box-shadow .18s ease, transform .12s ease;
}
.sh-toggle:hover { box-shadow: 0 8px 20px rgba(124,58,237,0.10); }
.sh-toggle:focus-visible { outline: 3px solid var(--p-400); outline-offset: 2px; }
.sh-toggle .sh-text { text-align: left; flex: 1; min-width: 0; }
.sh-toggle h2 { margin: 0; }
.sh-toggle .muted { text-align: left; margin: 4px 0 0; }
.sh-chev {
  display: inline-flex; align-items: center; justify-content: center;
  width: 76px; height: 76px; border-radius: 18px;
  background: linear-gradient(135deg, var(--p-500), var(--p-700));
  color: #fff;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(124,58,237,0.30);
  padding: 8px;
}
.sh-chev svg { width: 100%; height: 100%; display: block; }
@media (max-width: 720px) {
  .sh-chev { width: 60px; height: 60px; border-radius: 14px; padding: 6px; }
}
.is-collapsible.collapsed .sh-chev { transform: rotate(-90deg); }

/* Body collapses smoothly */
.sh-body {
  overflow: hidden;
  max-height: 24000px;
  transition: max-height .35s ease, opacity .25s ease, margin .25s ease;
  opacity: 1;
  margin-top: 22px;
}
.is-collapsible.collapsed .sh-body {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}
.section-head h2 {
  font-family: var(--disp); font-weight: 700;
  font-size: clamp(24px, 3.8vw, 34px);
  color: var(--p-900); margin: 0 0 6px; letter-spacing: -0.01em;
}
.section-head p { color: var(--muted); font-size: 14px; margin: 0 auto; max-width: 640px; }
.muted { color: var(--muted); }

/* ================= HERO (clean, photo prominent) ================= */
.hero-clean {
  padding: 20px 0 30px;
}
.hero-clean-inner {
  display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 30px;
  align-items: center;
  max-width: 900px; margin: 0 auto;
}
.hero-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.hero-photo img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; display: block; }
.graphic-placeholder {
  position: absolute; inset: 0; display: none;
  flex-direction: column; align-items: center; justify-content: center;
  color: #fff; text-align: center; padding: 20px;
  background: linear-gradient(135deg, var(--p-500), var(--p-800));
}
.hero-photo.empty .graphic-placeholder { display: flex; border-radius: 16px; }
.ph-title { font-weight: 800; font-size: 18px; }
.ph-sub { font-size: 13px; opacity: 0.9; margin-top: 4px; }
.ph-sub code { background: rgba(0,0,0,0.25); padding: 2px 6px; border-radius: 6px; font-size: 12px; }

.hero-info { text-align: left; }

/* Ballot plate — one rectangle split in two: number "1" | red "X" */
.ballot-plate {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border: 4px solid #1a1030;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 4px rgba(124,58,237,0.16), 0 12px 26px rgba(30,11,58,0.14), 0 2px 6px rgba(30,11,58,0.08);
  margin-bottom: 16px;
  font-family: var(--disp);
  width: 240px; height: 120px;
}
.ballot-num-side {
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bai Jamjuree', sans-serif;
  font-weight: 700;
  font-size: 84px; line-height: 1;
  color: var(--p-900);
  border-right: 4px solid #1a1030;
}
.ballot-x-side {
  display: flex; align-items: center; justify-content: center;
  padding: 6px;
}
.ballot-x {
  width: 100%; height: 100%;
  color: #dc2626;
  filter: drop-shadow(0 2px 4px rgba(220,38,38,0.35));
}
@media (max-width: 720px) {
  .ballot-plate { width: 200px; height: 100px; }
  .ballot-num-side { font-size: 68px; }
}
.hero-role {
  color: var(--muted); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.hero-name {
  font-family: var(--disp); font-weight: 700;
  font-size: clamp(24px, 3.6vw, 34px);
  color: var(--p-900); margin: 0 0 14px; letter-spacing: -0.01em;
}
.hero-quote {
  margin: 0; padding: 14px 18px;
  background: var(--p-50);
  border-left: 4px solid var(--p-500);
  border-radius: 12px;
  color: var(--ink-2); font-size: 15px; line-height: 1.65;
}
.hero-quote em { color: var(--p-700); font-style: normal; font-weight: 700; }

/* ================= RESUME ================= */
.resume {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 24px 28px 22px;
  box-shadow: 0 14px 34px rgba(30,11,58,0.08);
  border: 1px solid rgba(124,58,237,0.10);
  overflow: hidden;
}
.resume::before {
  /* Decorative corner accent */
  content: ""; position: absolute; top: 0; right: 0;
  width: 180px; height: 180px;
  background: radial-gradient(circle at top right, rgba(124,58,237,0.10), transparent 70%);
  pointer-events: none;
}
.resume-tape {
  position: absolute; top: 18px; left: 32px;
  padding: 4px 12px; border-radius: 999px;
  background: var(--p-100); color: var(--p-700);
  font-family: var(--disp); font-weight: 700; font-size: 12px;
  letter-spacing: 0.02em;
}
.resume-body {
  display: grid; grid-template-columns: 280px 1fr; gap: 32px;
  margin-top: 24px;
}
.resume-body.single { display: block; }
.resume-side {
  background: linear-gradient(180deg, var(--p-50), #fff);
  border-radius: 16px;
  padding: 20px 20px 24px;
  border: 1px solid rgba(124,58,237,0.10);
}
.resume-avatar {
  width: 140px; height: 140px; margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p-300), var(--p-500));
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 8px 20px rgba(124,58,237,0.20);
}
.resume-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.resume-name {
  font-family: var(--disp); font-weight: 700; text-align: center;
  color: var(--p-900); font-size: 22px; margin: 0 0 4px; letter-spacing: -0.01em;
  line-height: 1.15;
}
.resume-role {
  text-align: center; color: var(--muted);
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding-bottom: 16px;
  border-bottom: 2px dashed var(--p-200);
  margin-bottom: 14px;
}
.rs-item {
  display: grid; grid-template-columns: auto 1fr; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(124,58,237,0.08);
}
.rs-item:last-child { border-bottom: 0; }
.rs-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--p-100); color: var(--p-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}
.rs-k {
  font-family: var(--disp); font-weight: 700;
  color: var(--p-800); font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 4px;
}
.rs-v { color: var(--ink-2); font-size: 13.5px; line-height: 1.55; }
.rs-list { list-style: none; padding: 0; margin: 0; }
.rs-list li {
  padding: 4px 0 4px 14px;
  position: relative;
  color: var(--ink-2); font-size: 13px; line-height: 1.5;
}
.rs-list li::before {
  content: "•"; position: absolute; left: 2px; top: 3px;
  color: var(--p-500); font-size: 14px;
}

.resume-main { position: relative; z-index: 1; }
.resume-title { margin-bottom: 22px; }
.rt-hi {
  display: inline-block;
  font-family: var(--disp); font-weight: 700;
  color: var(--p-700); font-size: 13px;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.resume-title h2 {
  font-family: var(--disp); font-weight: 700;
  color: var(--p-900); font-size: clamp(24px, 3.6vw, 32px);
  margin: 4px 0 0; letter-spacing: -0.01em; line-height: 1.15;
}
.rt-cursive {
  font-style: italic;
  color: var(--p-600);
  font-weight: 700;
  background: linear-gradient(120deg, var(--p-500), var(--p-800));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* --- milestone road: one winding path, markers instead of cards --- */
.ms-track { list-style: none; padding: 0; margin: 26px 0 0; }
.ms-item {
  display: grid;
  grid-template-columns: 1fr 132px 1fr;
  align-items: center;
  min-height: 92px;
}
.ms-side { grid-row: 1; padding: 5px 0; }
.ms-item:nth-child(odd) .ms-side { grid-column: 1; padding-right: 16px; }
.ms-item:nth-child(even) .ms-side { grid-column: 3; padding-left: 16px; }

.ms-road { grid-row: 1; grid-column: 2; position: relative; align-self: stretch; }
.ms-curve { position: absolute; inset: 0; width: 100%; height: 100%; }
.ms-curve path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ms-bed { stroke: var(--p-100); stroke-width: 15; }
.ms-lane { stroke: #fff; stroke-width: 2.5; stroke-dasharray: 9 11; }
.ms-item:nth-child(even) .ms-curve { transform: scaleX(-1); }
/* the road fades in and out instead of stopping dead */
.ms-item:first-child .ms-curve {
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 38%);
  mask-image: linear-gradient(180deg, transparent, #000 38%);
}
.ms-item:last-child .ms-curve {
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent);
  mask-image: linear-gradient(180deg, #000 62%, transparent);
}

.ms-pin {
  position: absolute; top: 50%; left: 16%;
  transform: translate(-50%, -50%) rotate(-5deg);
  width: 50px; height: 50px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--disp); font-weight: 700; font-size: 17px; line-height: 1;
  color: var(--tint);
  background: #fff;
  border: 3px solid var(--tint);
  box-shadow: 0 8px 18px rgba(30,11,58,0.13);
  transition: transform .18s ease;
}
.ms-item:nth-child(even) .ms-pin { left: 84%; transform: translate(-50%, -50%) rotate(5deg); }
.ms-item:hover .ms-pin { transform: translate(-50%, -50%) rotate(0deg) scale(1.06); }
.ms-title {
  font-family: var(--disp); font-weight: 700;
  color: var(--p-900); font-size: 18px;
  margin: 0 0 4px; line-height: 1.25; letter-spacing: -0.01em;
}
.ms-lead { margin: 0; color: var(--ink); font-size: 14.5px; font-weight: 700; line-height: 1.45; }
.ms-sub { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.ms-list { list-style: none; padding: 0; margin: 0; }
.ms-list li {
  position: relative; padding: 2px 0 2px 17px;
  color: var(--ink-2); font-size: 13.5px; line-height: 1.45;
}
.ms-list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--tint); opacity: 0.6;
}

.resume-tip {
  margin-top: 10px;
  padding: 11px 16px;
  background: linear-gradient(135deg, var(--p-700), var(--p-900));
  color: #fff;
  border-radius: 12px;
  font-size: 13.5px; line-height: 1.55;
  font-style: italic;
  box-shadow: 0 8px 20px rgba(124,58,237,0.28);
}

/* ================= หนังสือพิมพ์ (floating) ================= */
.paper-fab {
  position: fixed; right: 14px; bottom: 12px; z-index: 45;
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--p-900); text-decoration: none; text-align: center;
  font-family: var(--disp); font-weight: 700; font-size: 13px; line-height: 1.2;
  transition: transform .14s ease;
}
.paper-fab:hover { transform: translateY(-3px); }
.paper-fab:focus-visible { outline: 3px solid var(--p-500); outline-offset: 6px; border-radius: 10px; }
.paper-fab-icon {
  width: 96px; height: auto; display: block;
  filter: drop-shadow(0 6px 12px rgba(30,11,58,0.28));
}
.paper-fab-text {
  white-space: nowrap;
  text-shadow: 0 1px 0 #faf7ff, 0 0 6px #faf7ff, 0 0 12px #faf7ff, 0 0 18px #faf7ff;
}
@media (max-width: 480px) {
  .paper-fab { right: 8px; bottom: 8px; font-size: 11.5px; }
  .paper-fab-icon { width: 76px; }
}

/* ================= นโยบาย เร็วๆนี้ (teaser) ================= */
.soon-section { display: flex; justify-content: center; }
.soon-card {
  position: relative; overflow: hidden;
  width: 100%; max-width: 780px; text-align: center;
  padding: 34px 28px 32px; border-radius: 22px;
  background: linear-gradient(135deg, #ffffff 0%, var(--p-50) 100%);
  border: 1px solid rgba(124,58,237,0.14);
  box-shadow: 0 14px 34px rgba(30,11,58,0.08);
}
.soon-card::before, .soon-card::after {
  content: ""; position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--p-200), transparent 70%);
  pointer-events: none; opacity: 0.55;
}
.soon-card::before { width: 260px; height: 260px; top: -110px; right: -80px; }
.soon-card::after  { width: 220px; height: 220px; bottom: -110px; left: -70px;
  background: radial-gradient(circle at 70% 70%, #fde68a, transparent 70%); opacity: 0.45; }
.soon-kicker {
  position: relative;
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: color-mix(in oklab, var(--gold) 55%, #fff 45%);
  color: var(--p-900);
  font-family: var(--disp); font-weight: 700; font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.soon-title {
  position: relative;
  font-family: var(--disp); font-weight: 700;
  color: var(--p-900); font-size: clamp(28px, 4.6vw, 40px);
  margin: 14px 0 10px; letter-spacing: -0.01em; line-height: 1.15;
}
.soon-accent {
  background: linear-gradient(120deg, var(--p-500), var(--p-800));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.soon-lead {
  position: relative;
  color: var(--ink-2); font-size: 15.5px; line-height: 1.65;
  max-width: 560px; margin: 0 auto;
}
.soon-dots {
  position: relative;
  display: inline-flex; gap: 8px; margin-top: 18px;
}
.soon-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--p-500); opacity: 0.35;
  animation: soonPulse 1.4s ease-in-out infinite;
}
.soon-dots span:nth-child(2) { animation-delay: 0.2s; }
.soon-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes soonPulse {
  0%, 100% { transform: scale(1); opacity: 0.35; }
  50%      { transform: scale(1.4); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .soon-dots span { animation: none; opacity: 0.55; }
}

/* ================= 5 ธง (flag cards) ================= */
.flags-grid { display: flex; flex-direction: column; gap: 16px; }
.flag-card {
  background: #fff;
  border: 1px solid rgba(30,11,58,0.08);
  border-left: 6px solid var(--tint);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 6px 16px rgba(30,11,58,0.06);
}
.flag-head {
  /* baseline keeps the number sitting on the same line as the title */
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.flag-status { margin-bottom: 10px; }
.flag-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 10px;
  background: color-mix(in oklab, var(--tint) 12%, #fff 88%);
  border: 1px solid color-mix(in oklab, var(--tint) 25%, #fff 75%);
}
.flag-num {
  font-family: var(--disp); font-weight: 700; font-size: 20px;
  color: var(--tint);
}
.flag-title-wrap { flex: 1; min-width: 200px; }
.flag-title {
  font-family: var(--disp); font-weight: 700;
  color: var(--p-900); font-size: 20px; margin: 0; letter-spacing: -0.01em;
}
.flag-tag { color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.flag-desc { color: var(--ink-2); font-size: 14px; margin: 8px 0 12px; }
/* Photo blended into the card background */
.flag-card.has-photo {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 260px;
}
.flag-card.has-photo::before,
.flag-card.has-photo::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
}
.flag-card.has-photo::before {
  background: var(--photo) var(--photo-pos, center 42%) / cover no-repeat;
  opacity: var(--photo-opacity, 0.6);
}
.flag-card.has-photo::after {
  /* --veil scales the whole wash down for pale photos that would otherwise vanish */
  background: linear-gradient(100deg,
    rgba(255,255,255, calc(1.00 * var(--veil, 1))) 0%,
    rgba(255,255,255, calc(0.94 * var(--veil, 1))) 34%,
    rgba(255,255,255, calc(0.78 * var(--veil, 1))) 62%,
    rgba(255,255,255, calc(0.62 * var(--veil, 1))) 100%);
}

.flag-items {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 18px;
}
.flag-items li {
  padding: 6px 0 6px 20px; position: relative;
  color: var(--ink-2); font-size: 14px; line-height: 1.5;
}
.flag-items li::before {
  content: ""; position: absolute; left: 3px; top: 12px;
  width: 6px; height: 6px; border-radius: 2px;
  background: var(--tint); transform: rotate(45deg);
}

.pic-btn {
  margin-top: 14px;
  display: inline-flex; align-items: center;
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid color-mix(in oklab, var(--tint) 45%, #fff 55%);
  background: color-mix(in oklab, var(--tint) 10%, #fff 90%);
  color: var(--tint);
  font-family: var(--disp); font-weight: 700; font-size: 13px;
  transition: transform .12s ease, background .15s ease;
}
.pic-btn:hover { transform: translateY(-1px); background: color-mix(in oklab, var(--tint) 20%, #fff 80%); }
.pic-btn:focus-visible { outline: 3px solid var(--p-400); outline-offset: 2px; }
.pic-modal { padding: 22px 20px 26px; }
.pic-modal-title {
  font-family: var(--disp); font-weight: 700; font-size: 20px;
  color: var(--p-900); margin: 0 0 14px; padding-right: 46px;
}
.pic-stage { position: relative; }
.pic-stage img {
  width: 100%; height: auto; max-height: 66vh; object-fit: contain;
  display: block; border-radius: 14px; background: var(--p-50);
}
.pic-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; padding: 12px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,0.92); color: var(--p-900); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(30,11,58,0.28);
  transition: background .15s ease, transform .12s ease;
}
.pic-nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.pic-nav:focus-visible { outline: 3px solid var(--p-500); outline-offset: 2px; }
.pic-nav svg { width: 100%; height: 100%; display: block; }
.pic-nav.prev { left: 10px; }
.pic-nav.next { right: 10px; }
.pic-count {
  margin-top: 10px; text-align: center;
  font-family: var(--disp); font-weight: 700; font-size: 13px; color: var(--muted);
}
@media (max-width: 480px) {
  .pic-nav { width: 38px; height: 38px; padding: 10px; }
  .pic-nav.prev { left: 6px; }
  .pic-nav.next { right: 6px; }
}

/* Status pills */
.stat {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 800;
  font-family: var(--disp); white-space: nowrap;
}
.stat-study   { background: #fee2e2; color: #991b1b; }
.stat-plan    { background: #dbeafe; color: #1e40af; }
.stat-budget  { background: #fde047; color: #713f12; }
.stat-done    { background: #d1fae5; color: #065f46; }
.stat-partial { background: #ecfccb; color: #3f6212; }

/* Pale photos vanish under the sideways wash — fade downward instead and give the
   card room below the text so the subject reads cleanly. */
.flag-card.has-photo.photo-below { min-height: 380px; }
.flag-card.has-photo.photo-below::after {
  background: linear-gradient(170deg,
    rgba(255,255,255,0.95) 0%,
    rgba(255,255,255,0.92) 40%,
    rgba(255,255,255,0.72) 68%,
    rgba(255,255,255,0.42) 100%);
}

/* one unbroken row of status pills, spanning the full width of the head */
.tracker-legend {
  flex: 0 0 100%;
  display: flex; gap: clamp(3px, 1.2vw, 6px); justify-content: flex-start;
  flex-wrap: nowrap; margin-top: 2px;
}

/* ================= ผึ้งหลวง MAX ================= */
.max-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.max-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(30,11,58,0.08);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 6px 16px rgba(30,11,58,0.06);
  transition: transform .35s ease, box-shadow .35s ease, opacity .5s ease;
}
/* cards are rendered by JS, so hiding them until observed is safe */
body.js .max-card { opacity: 0; transform: translateY(16px); }
body.js .max-card.in-view { opacity: 1; transform: none; transition-delay: var(--d, 0s); }
.max-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(30,11,58,0.13); }
.max-card:hover .max-stroke rect { opacity: 1; stroke-width: 2.5; }

/* outline that draws itself once the card scrolls into view */
.max-stroke {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; overflow: visible;
}
.max-stroke rect {
  fill: none;
  stroke: var(--tint);
  stroke-width: 2;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0.75;
  transition: opacity .3s ease, stroke-width .3s ease;
}
.max-card.in-view .max-stroke rect {
  animation: max-draw 1.15s cubic-bezier(.65,0,.35,1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes max-draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  body.js .max-card { opacity: 1; transform: none; }
  .max-card, .max-card:hover { transition: none; transform: none; }
  .max-card.in-view .max-stroke rect { animation: none; stroke-dashoffset: 0; }
}
.max-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.max-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: color-mix(in oklab, var(--tint) 18%, #fff 82%);
  border: 1px solid color-mix(in oklab, var(--tint) 30%, #fff 70%);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; flex-shrink: 0;
  overflow: hidden;
}
/* photo icon: fills the tile, with the shadow thrown to the bottom right */
.max-icon.has-img {
  width: 64px; height: 64px;
  background: none; border-color: rgba(30,11,58,0.12);
  box-shadow: 7px 7px 14px rgba(30,11,58,0.30);
}
.max-icon.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.max-title {
  font-family: var(--disp); font-weight: 700; color: var(--p-900);
  font-size: 20px; margin: 0; letter-spacing: -0.01em;
}
.max-tag { color: var(--tint); font-size: 13px; font-weight: 700; margin-top: 2px; }
.max-items {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.max-items li {
  padding: 6px 0 6px 20px; position: relative;
  color: var(--ink-2); font-size: 14px; line-height: 1.55;
}
.max-items li::before {
  content: "•"; position: absolute; left: 6px; top: 4px;
  color: var(--tint); font-size: 18px;
}

/* ================= POLICY TRACKER ================= */
.tracker-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; align-items: start; }
.sh-toggle .tracker-cta {
  margin: 4px 0 0; text-align: left; max-width: none;
  color: var(--muted); font-size: 14px; line-height: 1.5; font-weight: 400;
}
.tk-cat {
  background: #fff;
  border: 1px solid rgba(30,11,58,0.08);
  border-top: 4px solid var(--tint);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 4px 12px rgba(30,11,58,0.05);
  height: 480px;
  display: flex; flex-direction: column;
}
.tk-cat-title {
  font-family: var(--disp); font-weight: 700;
  color: var(--p-900); font-size: 17px; margin: 0 0 12px;
  display: flex; align-items: center; gap: 8px;
}
.tk-items {
  list-style: none; padding: 0 6px 0 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
  flex: 1; min-height: 0; overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in oklab, var(--tint) 45%, #fff 55%) transparent;
}
.tk-items::-webkit-scrollbar { width: 6px; }
.tk-items::-webkit-scrollbar-thumb {
  background: color-mix(in oklab, var(--tint) 45%, #fff 55%);
  border-radius: 999px;
}
.tk-items::-webkit-scrollbar-track { background: transparent; }
.tk-item {
  padding: 8px 10px; border-radius: 8px;
  background: var(--p-50);
  font-size: 13.5px; line-height: 1.45;
}
.tk-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tk-text { color: var(--ink-2); flex: 1; }
.tk-subs {
  list-style: none; padding: 8px 0 0 12px; margin: 8px 0 0 10px;
  display: flex; flex-direction: column; gap: 6px;
  border-left: 2px solid color-mix(in oklab, var(--tint) 30%, #fff 70%);
}
.tk-subs .tk-item {
  background: transparent; border: none;
  padding: 4px 4px; font-size: 12.5px;
}
.tk-subs .tk-row::before {
  content: "•"; color: var(--tint); font-weight: 700;
  margin-right: 8px; flex: 0 0 auto;
}

/* ================= VOTE ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px;
  font-family: inherit; font-weight: 800; font-size: 15px;
  text-decoration: none;
  background: var(--gold); color: var(--p-900);
  box-shadow: 0 6px 14px rgba(251,191,36,0.32);
  transition: transform .12s ease;
}
.btn:hover { transform: translateY(-1px); }

/* ================= FOOTER ================= */
.foot-note { text-align: center; color: var(--muted); font-size: 13px; }
.foot-note p { margin: 0; }
.foot {
  /* leave room for the floating newspaper button */
  max-width: 1100px; margin: 0 auto; padding: 18px 22px 76px;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--muted); font-size: 13px; flex-wrap: wrap; gap: 8px;
}

/* ================= MODAL ================= */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(30,11,58,0.6); backdrop-filter: blur(4px); }
.modal-sheet {
  position: relative; width: 100%; max-width: 760px;
  max-height: 88vh; overflow-y: auto;
  background: #fff; border: 1px solid rgba(30,11,58,0.10);
  border-radius: 20px;
  animation: sheetUp .28s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes sheetUp { from { transform: translateY(18px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close {
  position: absolute; top: 12px; right: 14px; z-index: 3;
  width: 40px; height: 40px; border-radius: 10px; border: 0;
  background: var(--p-100); color: var(--p-800);
  font-size: 22px; font-weight: 800; cursor: pointer;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  main { padding: 0 14px 30px; }
  .hero-clean-inner { grid-template-columns: 180px 1fr; gap: 18px; }
  .max-grid, .tracker-cats { grid-template-columns: 1fr; }
  .flag-items { grid-template-columns: 1fr; }
  /* single column: text spans the whole card, so wash the photo back further */
  .flag-card.has-photo { min-height: 0; }
  .flag-card.has-photo::before { opacity: var(--photo-opacity, 0.9); }
  .flag-card.has-photo::after {
    background: linear-gradient(180deg,
      rgba(255,255,255,0.88) 0%,
      rgba(255,255,255,0.78) 40%,
      rgba(255,255,255,0.60) 100%);
  }
  /* single column: the photo-below variant has no free space, so fall back to the
     shared wash and just aim the crop at the subject instead of the blank wall */
  .flag-card.has-photo.photo-below { min-height: 0; }
  .flag-card.has-photo.photo-below::after {
    background: linear-gradient(180deg,
      rgba(255,255,255,0.88) 0%,
      rgba(255,255,255,0.78) 40%,
      rgba(255,255,255,0.60) 100%);
  }
  .flag-card.has-photo::before {
    background-position: var(--photo-pos-sm, var(--photo-pos, center 42%));
  }
  /* these two read better with the photo well behind the text */
  .flag-card[data-flag="adventure"]::before,
  .flag-card[data-flag="education-hi"]::before { opacity: 0.5; }
  .flag-card[data-flag="adventure"]::after,
  .flag-card[data-flag="education-hi"]::after {
    background: linear-gradient(180deg,
      rgba(255,255,255,0.94) 0%,
      rgba(255,255,255,0.90) 45%,
      rgba(255,255,255,0.88) 100%);
  }
  .resume { padding: 22px 18px; }
  .resume-body { grid-template-columns: 1fr; gap: 20px; }
  .ms-item { grid-template-columns: 1fr 108px 1fr; }
  .ms-item:nth-child(odd) .ms-side { padding-right: 26px; }
  .ms-item:nth-child(even) .ms-side { padding-left: 26px; }
  .resume-avatar { width: 120px; height: 120px; }
  .ballot-num-big { font-size: 54px; min-width: 70px; padding: 10px 16px; }
  .bbp-logo { height: 36px; }
}
@media (max-width: 620px) {
  /* wide panorama sits behind the copy like the others, zoomed out so the whole plant reads */
  .flag-card[data-flag="wastepower"]::before {
    background-size: contain;
    background-position: center 50%;
    opacity: 0.95;
  }
  /* the tape badge sits top-left here, so start the road below it */
  .ms-track { margin-top: 30px; }
  .ms-item { grid-template-columns: 66px 1fr; min-height: 0; }
  .ms-item:nth-child(odd) .ms-side,
  .ms-item:nth-child(even) .ms-side { grid-column: 2; padding: 9px 0 9px 6px; }
  .ms-road { grid-column: 1; }
  /* straight road on narrow screens — same ribbon, no room to wind */
  .ms-curve { display: none; }
  .ms-road::before {
    content: ""; position: absolute; left: 50%; top: 0; bottom: 0;
    width: 13px; transform: translateX(-50%);
    background: var(--p-100); border-radius: 7px;
  }
  .ms-road::after {
    content: ""; position: absolute; left: 50%; top: 0; bottom: 0;
    border-left: 2.5px dashed #fff;
  }
  .ms-item:nth-child(odd) .ms-pin,
  .ms-item:nth-child(even) .ms-pin {
    left: 50%; top: 26px; width: 44px; height: 44px; font-size: 21px; border-radius: 15px;
  }
}
@media (max-width: 500px) {
  .hero-clean-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-info { text-align: center; }
  .hero-photo { max-width: 260px; margin: 0 auto; }
  .flag-card, .max-card { padding: 18px 16px; }
  .section-head h2 { font-size: 22px; }
}
