/* ── Contact page ────────────────────────────────────────── */

.contact-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-tile {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  column-gap: 14px;
  row-gap: 2px;
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  animation: card-in 0.32s ease both;
}

.contact-tile .tile-icon {
  grid-row: span 2;
  margin-bottom: 0;
}

.contact-tile strong,
.contact-tile .tile-sub {
  grid-column: 2;
}

.contact-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(21, 29, 38, 0.1);
}

.contact-tile strong {
  font-size: 16px;
}

.tile-sub {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.tile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
  border-radius: 10px;
}

.tile-whatsapp .tile-icon { background: rgba(37, 211, 102, 0.12); color: #1da851; }
.tile-email .tile-icon { background: rgba(179, 38, 30, 0.1); color: var(--danger); }
.tile-work .tile-icon { background: rgba(52, 85, 164, 0.1); color: var(--education); }
.tile-phone .tile-icon { background: rgba(70, 48, 111, 0.1); color: var(--security); }

.tile-whatsapp:hover { border-color: #1da851; }
.tile-email:hover { border-color: var(--danger); }
.tile-work:hover { border-color: var(--education); }
.tile-phone:hover { border-color: var(--security); }

.contact-follow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.contact-follow-label {
  margin-right: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.follow-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid #cbd3da;
  border-radius: 999px;
  color: #222830;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.follow-chip.chip-ig { color: #c13584; border-color: rgba(193, 53, 132, 0.4); }
.follow-chip.chip-x { color: #0f1419; border-color: rgba(15, 20, 25, 0.3); }
.follow-chip.chip-yt { color: #cc0000; border-color: rgba(204, 0, 0, 0.35); }
.follow-chip.chip-gh { color: #24292f; border-color: rgba(36, 41, 47, 0.3); }

.follow-chip:hover {
  transform: translateY(-1px);
  background: #fbfaf5;
}

.devit-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--bjp);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.devit-banner-copy {
  max-width: 700px;
}

.devit-banner h3 {
  margin: 6px 0 6px;
  font-size: 22px;
}

.devit-banner p {
  margin: 0;
  color: #37312c;
  font-size: 14px;
}

/* ── About note row ──────────────────────────────────────── */

.about-note-row {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

/* Keep the research checkpoint as a compact link rather than a standalone card. */
.about-section > .about-note-row:first-of-type {
  display: none;
}

.about-note-row .about-support-note {
  margin: 0;
  max-width: none;
  height: 100%;
}

@media (min-width: 860px) {
  .about-note-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ── Live tracker cards (Statistics) ─────────────────────── */

.live-trackers-container {
  display: grid;
  gap: 14px;
  margin: 0 0 28px;
}

.tracker-card {
  padding: 18px 16px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 4px solid var(--bjp);
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
  animation: card-in 0.32s ease both;
}

.tracker-card.tracker-presser {
  border-top-color: var(--danger);
}

.tracker-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tracker-value {
  color: var(--ink);
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.tracker-value-red {
  color: var(--danger);
}

.tracker-calendar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(7px, 1.4vw, 14px);
}

.tracker-calendar > i {
  color: #b9a9a4;
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  font-style: normal;
}

.tracker-unit {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}

.tracker-unit strong {
  font: inherit;
}

.tracker-calendar .tracker-unit small {
  display: inline;
  margin: 0;
  color: currentColor;
  font-family: Inter, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.tracker-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

@media (min-width: 720px) {
  .live-trackers-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Interaction motion and opt-in sound controls */
.scroll-progress {
  position: fixed;
  z-index: 90;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), #fff4cf 52%, var(--green));
  box-shadow: 0 1px 8px rgba(19, 136, 8, 0.24);
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.08s linear;
}

.share-btn.share-sound,
.share-button.share-sound {
  border-color: #c8d0d4;
}

.share-btn.share-sound::before,
.share-button.share-sound::before {
  content: "♪";
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}

.share-btn.share-sound.is-on,
.share-button.share-sound.is-on {
  background: #0f5132;
  border-color: #0f5132;
  color: #fff;
}

.share-btn.share-sound.is-on::before,
.share-button.share-sound.is-on::before {
  background: #fff;
  color: #0f5132;
  animation: sound-pulse 1.1s ease-in-out infinite;
}

.share-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  min-width: 0;
  max-width: 120px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--press);
  font-size: 11px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.16s ease, transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
  white-space: nowrap;
  pointer-events: none;
}

.share-status.is-visible {
  background: #eefaf3;
  border-color: #b9dec8;
  opacity: 1;
  transform: translateY(0);
}

.ui-toast {
  position: fixed;
  z-index: 95;
  top: calc(var(--header-height) + 10px);
  right: 14px;
  max-width: min(260px, calc(100vw - 28px));
  padding: 10px 13px;
  border: 1px solid #b9dec8;
  border-radius: 999px;
  background: #eefaf3;
  box-shadow: 0 14px 34px rgba(20, 24, 28, 0.14);
  color: #0f5132;
  font-size: 12px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}

.ui-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes sound-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.16); }
}

.route-page.is-active {
  transform-origin: 50% 18px;
}

.route-motion .route-page.is-active {
  animation: route-settle 0.34s ease both;
}

@keyframes route-settle {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.topnav a,
.nav-sound-button,
.side-sound-button,
.hero-actions a,
.year-pill,
.clear-filters-button,
.mode-btn,
.share-btn,
.share-button,
.text-button,
.contact-item,
.source-item a,
.follow-chip,
summary {
  position: relative;
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.topnav a:hover,
.topnav a:focus-visible,
.nav-sound-button:hover,
.nav-sound-button:focus-visible,
.side-sound-button:hover,
.side-sound-button:focus-visible,
.hero-actions a:hover,
.hero-actions a:focus-visible,
.year-pill:hover,
.clear-filters-button:hover,
.mode-btn:hover,
.share-btn:hover,
.share-button:hover,
.text-button:hover,
.contact-item:hover,
.source-item a:hover,
.source-item a:focus-visible,
.follow-chip:hover,
summary:hover {
  transform: translateY(-1px);
}

.topnav a:active,
.nav-sound-button:active,
.side-sound-button:active,
.hero-actions a:active,
.year-pill:active,
.clear-filters-button:active,
.mode-btn:active,
.share-btn:active,
.share-button:active,
.text-button:active,
.contact-item:active,
.source-item a:active,
.follow-chip:active,
summary:active {
  transform: translateY(1px) scale(0.985);
}

.topnav a:focus-visible,
.nav-sound-button:focus-visible,
.side-sound-button:focus-visible,
.hero-actions a:focus-visible,
.year-pill:focus-visible,
.clear-filters-button:focus-visible,
.mode-btn:focus-visible,
.share-btn:focus-visible,
.share-button:focus-visible,
.text-button:focus-visible,
.contact-item:focus-visible,
.source-item a:focus-visible,
.follow-chip:focus-visible,
summary:focus-visible {
  outline: 2px solid rgba(255, 103, 31, 0.72);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(255, 103, 31, 0.16);
}

.event-card,
.indicator-card,
.voice-card,
.support-card,
.faq-item,
.contact-tile {
  animation: card-rise 0.34s ease both;
}

.event-card:nth-child(2n),
.indicator-card:nth-child(2n),
.voice-card:nth-child(2n) {
  animation-delay: 0.025s;
}

.event-card:nth-child(3n),
.indicator-card:nth-child(3n),
.voice-card:nth-child(3n) {
  animation-delay: 0.05s;
}

@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.year-pill.active,
.mode-btn.active,
.share-btn.share-copy.is-copied,
.is-tapping {
  animation: active-pop 0.22s ease both;
}

.topnav a::after,
.nav-sound-button::after,
.menu-toggle::after,
.menu-close::after,
.side-nav a::after,
.side-sound-button::after,
.hero-actions a::after,
.year-pill::after,
.clear-filters-button::after,
.mode-btn::after,
.share-btn::after,
.share-button::after,
.text-button::after,
.contact-item::after,
.source-item a::after,
.follow-chip::after,
details:not(.stance-detail) > summary::after {
  content: "";
  position: absolute;
  left: var(--tap-x, 50%);
  top: var(--tap-y, 50%);
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 153, 51, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1);
}

.topnav a.is-tapping::after,
.nav-sound-button.is-tapping::after,
.menu-toggle.is-tapping::after,
.menu-close.is-tapping::after,
.side-nav a.is-tapping::after,
.side-sound-button.is-tapping::after,
.hero-actions a.is-tapping::after,
.year-pill.is-tapping::after,
.clear-filters-button.is-tapping::after,
.mode-btn.is-tapping::after,
.share-btn.is-tapping::after,
.share-button.is-tapping::after,
.text-button.is-tapping::after,
.contact-item.is-tapping::after,
.source-item a.is-tapping::after,
.follow-chip.is-tapping::after,
details:not(.stance-detail) > summary.is-tapping::after {
  animation: tap-ripple 0.52s ease-out both;
}

@keyframes active-pop {
  from { transform: scale(0.96); }
  to { transform: scale(1); }
}

@keyframes tap-ripple {
  0% {
    opacity: 0.45;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(26);
  }
}

@media (prefers-reduced-motion: reduce) {
  .share-btn.share-sound.is-on::before,
  .nav-sound-button.is-on::before,
  .side-sound-button.is-on::before,
  .share-status,
  .ui-toast,
  .scroll-progress,
  .route-motion .route-page.is-active,
  .event-card,
  .indicator-card,
  .voice-card,
  .support-card,
  .faq-item,
  .contact-tile,
  .year-pill.active,
  .mode-btn.active,
  .share-btn.share-copy.is-copied,
  .is-tapping {
    animation: none !important;
  }
  .topnav a.is-tapping::after,
  .nav-sound-button.is-tapping::after,
  .menu-toggle.is-tapping::after,
  .menu-close.is-tapping::after,
  .side-nav a.is-tapping::after,
  .side-sound-button.is-tapping::after,
  .hero-actions a.is-tapping::after,
  .year-pill.is-tapping::after,
  .clear-filters-button.is-tapping::after,
  .mode-btn.is-tapping::after,
  .share-btn.is-tapping::after,
  .share-button.is-tapping::after,
  .text-button.is-tapping::after,
  .contact-item.is-tapping::after,
  .source-item a.is-tapping::after,
  .follow-chip.is-tapping::after,
  details:not(.stance-detail) > summary.is-tapping::after {
    animation: none !important;
  }
}

.share-btn.share-sound::before,
.share-button.share-sound::before {
  content: "\266A";
}
