/* ═══════════════════════════════════════════════════════════════════════
   VNATION V6 — Public Beta polish · load AFTER style.css and v5.css.
   Purpose: make HINDESH feel like a nation on arrival. Zero identity change.
   Only typography, spacing, motion and a handful of new "arrival" sections
   are introduced here. Every rule is additive — nothing is redefined.
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── V6 Typography · a distinctive serif for the nation's voice ─────── */
:root {
  /* Fraunces is imported in header.php. Sentinel-style workhorse for a
     civilization brand: warm, sturdy, cinematic — not a startup font. */
  --font-nation: 'Fraunces', 'Cormorant Garamond', ui-serif, Georgia, serif;
}

h1, h2, .hero-title-v2, .section-title, .today-h3, .v3-home-h3,
.v5-mom-title, .v6-arrival-title, .v6-today-title {
  font-family: var(--font-nation);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 30, "WONK" 0;
  letter-spacing: -0.01em;
}

/* ─── ARRIVAL HERO — "You have entered a nation." Photo-backed, calm. ─── */
.v6-arrival {
  position: relative;
  min-height: min(92vh, 780px);
  padding: clamp(80px, 14vh, 160px) 0 clamp(56px, 10vh, 110px);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
}
.v6-arrival-photo {
  position: absolute; inset: 0; z-index: -2;
  background-image: url('/images/generated/mahaveerpur.jpg');
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.02);
  filter: saturate(.88);
}
.v6-arrival-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(5,9,20,.55) 0%, rgba(5,9,20,.72) 55%, rgba(5,9,20,.95) 100%),
    radial-gradient(ellipse 80% 60% at 30% 40%, rgba(5,9,20,.25), transparent 70%);
}
.v6-arrival-inner {
  position: relative;
  max-width: 940px;
  animation: v6Rise 1s cubic-bezier(.2,.7,.2,1) both;
}
.v6-arrival-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(212,175,55,.10);
  border: 1px solid rgba(212,175,55,.32);
  color: #EAD9A5; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  margin-bottom: clamp(20px, 3vh, 32px);
  backdrop-filter: blur(6px);
}
.v6-arrival-eyebrow .live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #7CF2D6; box-shadow: 0 0 12px #7CF2D6;
}
.v6-arrival-title {
  font-family: var(--font-nation);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(10px, 1.5vh, 16px);
  color: #F5EEDC;
  text-wrap: balance;
}
.v6-arrival-welcome {
  display: block;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(245,238,220,.82);
  letter-spacing: -0.005em;
  margin-bottom: 6px;
}
.v6-arrival-brand {
  display: block;
  font-size: clamp(3.4rem, 11vw, 8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #F5D25F 0%, #D4AF37 55%, #A67A1E 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(212,175,55,.15);
}
.v6-arrival-tagline {
  font-family: var(--font-nation);
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  font-style: italic;
  color: rgba(245,238,220,.72);
  margin: 0 0 clamp(20px, 3vh, 30px);
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.v6-arrival-lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.6;
  max-width: 640px;
  color: rgba(245,238,220,.82);
  margin: 0 0 clamp(28px, 4vh, 40px);
  text-wrap: pretty;
}

.v6-arrival-ctas {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 22px;
}
.v6-arrival-ctas .btn {
  transition: transform .3s, box-shadow .3s, background .3s;
  font-family: inherit;
}
.v6-arrival-ctas .btn-primary {
  padding: 16px 28px; font-size: 1rem; letter-spacing: .01em;
  box-shadow: 0 14px 40px -12px rgba(212,175,55,.55);
}
.v6-arrival-ctas .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px -10px rgba(212,175,55,.75);
}
.v6-arrival-ctas .btn-ghost {
  padding: 16px 24px;
  background: rgba(5,9,20,.4);
  border-color: rgba(245,238,220,.28);
  color: #F5EEDC;
  backdrop-filter: blur(8px);
}
.v6-arrival-ctas .btn-ghost:hover { background: rgba(5,9,20,.6); border-color: rgba(245,238,220,.5); }

.v6-arrival-secondary {
  display: flex; flex-wrap: wrap; gap: 20px 26px;
  color: rgba(245,238,220,.7); font-size: .92rem;
  margin-bottom: clamp(30px, 4.5vh, 44px);
}
.v6-arrival-secondary a {
  color: inherit; text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color .25s, border-color .25s;
  display: inline-flex; align-items: center; gap: 8px;
}
.v6-arrival-secondary a:hover { color: #F5D25F; border-bottom-color: #F5D25F; }
.v6-arrival-secondary a i { opacity: .75; }

.v6-arrival-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 22px 40px;
  max-width: 780px;
  padding-top: clamp(20px, 3vh, 28px);
  border-top: 1px solid rgba(245,238,220,.1);
}
.v6-arrival-stat { border-left: 2px solid rgba(212,175,55,.4); padding-left: 16px; }
.v6-arrival-stat b {
  display: block; font-family: var(--font-nation);
  font-size: clamp(1.4rem, 2vw, 1.9rem); color: #F5EEDC; font-weight: 500;
  line-height: 1.1;
}
.v6-arrival-stat span {
  display: block; margin-top: 6px; font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(245,238,220,.55);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

@keyframes v6Rise {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Mobile · tighter, cleaner, always centered around the brand */
@media (max-width: 720px) {
  .v6-arrival {
    min-height: unset;
    padding: 90px 0 48px;
    align-items: flex-start;
  }
  .v6-arrival-photo { background-position: center 40%; }
  .v6-arrival-inner { text-align: left; }
  .v6-arrival-welcome { font-size: clamp(1.3rem, 5vw, 1.8rem); }
  .v6-arrival-brand   { font-size: clamp(3rem, 15vw, 5.5rem); letter-spacing: -0.035em; }
  .v6-arrival-tagline { font-size: clamp(1rem, 3.6vw, 1.15rem); margin-bottom: 20px; }
  .v6-arrival-lead {
    font-size: .95rem; line-height: 1.55; margin-bottom: 26px;
    max-width: none;
  }
  .v6-arrival-ctas { gap: 10px; }
  .v6-arrival-ctas .btn { flex: 1; min-width: 140px; justify-content: center; padding: 14px 18px; font-size: .95rem; }
  .v6-arrival-secondary {
    gap: 12px 20px; font-size: .82rem;
    padding-bottom: 8px;
  }
  .v6-arrival-secondary a { padding-bottom: 0; }
  .v6-arrival-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 22px;
    padding-top: 22px;
  }
  .v6-arrival-stat b { font-size: 1.15rem; }
  .v6-arrival-stat span { font-size: .65rem; letter-spacing: .12em; }
}

/* Very small phones */
@media (max-width: 380px) {
  .v6-arrival-brand   { font-size: clamp(2.6rem, 16vw, 4.4rem); }
  .v6-arrival-ctas .btn { flex-basis: 100%; }
}

/* Honour reduced motion */
@media (prefers-reduced-motion: reduce) {
  .v6-arrival-inner { animation: none !important; }
}

/* ─── TODAY'S HINDESH — the arrival panel that answers everything ───── */
.v6-today {
  padding: clamp(48px, 8vh, 96px) 0;
  position: relative;
}
.v6-today::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 0%, rgba(212,175,55,.06), transparent 55%),
              radial-gradient(ellipse at 90% 100%, rgba(76,242,214,.04), transparent 55%);
  pointer-events: none;
}
.v6-today-head { margin-bottom: 40px; }
.v6-today-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: .22em; text-transform: uppercase;
  color: #D4AF37; font-size: .78rem; margin-bottom: 12px;
}
.v6-today-title {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  color: #F5EEDC; margin: 0 0 8px; line-height: 1.08;
}
.v6-today-lead {
  color: rgba(245,238,220,.65); max-width: 640px; margin: 0;
  font-size: 1rem;
}

.v6-today-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(12, 1fr);
}
.v6-today-card {
  background: rgba(19,27,46,.55);
  border: 1px solid rgba(212,175,55,.14);
  border-radius: 20px;
  padding: 26px 26px 22px;
  position: relative;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.2,1),
              border-color .35s, box-shadow .35s;
  text-decoration: none; color: inherit; display: block;
}
.v6-today-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212,175,55,.4);
  box-shadow: 0 22px 48px -24px rgba(0,0,0,.6),
              0 0 0 1px rgba(212,175,55,.08) inset;
}
.v6-today-card .eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(212,175,55,.85); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.v6-today-card h3 {
  font-family: var(--font-nation);
  font-size: 1.35rem; color: #F5EEDC; margin: 0 0 8px;
  font-weight: 500; letter-spacing: -0.005em;
}
.v6-today-card p {
  margin: 0; color: rgba(245,238,220,.66);
  line-height: 1.5; font-size: .95rem;
}
.v6-today-card .foot {
  margin-top: 14px; color: #D4AF37; font-size: .85rem;
}
.v6-today-card.v6-span-6 { grid-column: span 6; }
.v6-today-card.v6-span-4 { grid-column: span 4; }
.v6-today-card.v6-span-3 { grid-column: span 3; }
.v6-today-card.v6-span-8 { grid-column: span 8; }

/* Capital · flagship card with a soft skyline drawing */
.v6-capital {
  background: linear-gradient(135deg, rgba(212,175,55,.10), rgba(19,27,46,.65) 60%);
  border-color: rgba(212,175,55,.32);
}
.v6-capital .cap-motto {
  font-family: var(--font-nation); font-style: italic;
  color: #F5EEDC; font-size: 1.15rem; margin: 12px 0 6px;
}
.v6-capital .cap-motto small { color: rgba(245,238,220,.55); font-style: normal; font-size: .82rem; letter-spacing: .1em; }

/* Values chips */
.v6-values {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-top: 14px;
}
.v6-value {
  padding: 14px 12px; border-radius: 14px;
  background: rgba(245,238,220,.03);
  border: 1px solid rgba(245,238,220,.08);
  text-align: center; transition: background .25s, border-color .25s;
}
.v6-value:hover { background: rgba(212,175,55,.06); border-color: rgba(212,175,55,.25); }
.v6-value i { color: #D4AF37; font-size: 1.1rem; }
.v6-value b { display: block; margin-top: 8px; color: #F5EEDC; font-weight: 500; font-size: .9rem; }
.v6-value span { display: block; color: rgba(245,238,220,.55); font-size: .78rem; margin-top: 2px; }

@media (max-width: 900px) {
  .v6-today-card.v6-span-6,
  .v6-today-card.v6-span-4,
  .v6-today-card.v6-span-3,
  .v6-today-card.v6-span-8 { grid-column: span 12; }
  .v6-values { grid-template-columns: repeat(2, 1fr); }
}

/* ─── MOMENT MILESTONE POLISH — reframe as historical entries ───────── */
.v6-why-ribbon {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(212,175,55,.08);
  border: 1px solid rgba(212,175,55,.25);
  color: #EAD9A5; font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; font-family: 'JetBrains Mono', ui-monospace, monospace;
  margin-bottom: 10px;
}
.v6-mom-why {
  margin-top: 10px; padding: 12px 14px;
  background: rgba(212,175,55,.04);
  border-left: 2px solid rgba(212,175,55,.4);
  color: rgba(245,238,220,.72); font-size: .92rem;
  border-radius: 0 10px 10px 0; font-style: italic;
  font-family: var(--font-nation);
}
.v6-mom-hero-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: .22em; text-transform: uppercase;
  color: #D4AF37; font-size: .78rem;
}

/* ─── FOOTER polish — a nation, not a website ───────────────────────── */
.foot .v6-foot-motto {
  font-family: var(--font-nation); font-style: italic;
  color: rgba(245,238,220,.7); font-size: 1.05rem;
  margin: 8px 0 4px; max-width: 420px; line-height: 1.5;
}

/* ─── Micro-interactions ────────────────────────────────────────────── */
.v6-today-card, .v6-arrival-ctas .btn { will-change: transform; }
.v6-arrival-ctas .btn { transition: transform .3s, box-shadow .3s, background .3s; }

/* Mobile refinements */
@media (max-width: 640px) {
  .v6-arrival { padding: 40px 0 32px; }
  .v6-arrival-stats { grid-template-columns: repeat(2, 1fr); gap: 18px 22px; }
  .v6-arrival-secondary { gap: 14px; font-size: .88rem; }
  .v6-today-card { padding: 22px 20px 18px; }
  .v6-today-card h3 { font-size: 1.2rem; }
}

/* Reduced motion honour */
@media (prefers-reduced-motion: reduce) {
  .v6-arrival-eyebrow, .v6-arrival-title, .v6-arrival-lead,
  .v6-arrival-ctas, .v6-arrival-secondary, .v6-arrival-stats {
    animation: none !important;
  }
}

/* ─── V6.1 · PER-PAGE CIVILIZATION FRAME ─────────────────────────────
   A subtle banner injected above the main content of every recognised
   page. It answers "why does this exist inside HINDESH?" in one line
   so no section of the nation ever feels disconnected. */
.v6-page-frame {
  padding: clamp(28px, 5vh, 56px) 0 clamp(20px, 3vh, 36px);
  position: relative;
  border-bottom: 1px solid rgba(212,175,55,.08);
  background:
    radial-gradient(ellipse at 15% 0%, rgba(212,175,55,.05), transparent 55%),
    linear-gradient(180deg, rgba(19,27,46,.35), transparent 90%);
}
.v6-pf-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .74rem; letter-spacing: .24em; text-transform: uppercase;
  color: #D4AF37; margin-bottom: 10px;
  display: inline-flex; align-items: center; gap: 10px;
}
.v6-pf-eyebrow::before {
  content: ''; width: 22px; height: 1px;
  background: linear-gradient(90deg, #D4AF37, transparent);
  display: inline-block;
}
.v6-pf-title {
  font-family: var(--font-nation);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  color: #F5EEDC; font-weight: 500;
  letter-spacing: -0.008em; line-height: 1.1;
  margin: 0 0 8px;
}
.v6-pf-sub {
  color: rgba(245,238,220,.62);
  font-size: clamp(.95rem, 1.2vw, 1.05rem);
  line-height: 1.55; max-width: 720px;
  margin: 0;
}
@media (max-width: 640px) {
  .v6-page-frame { padding: 26px 0 20px; }
  .v6-pf-title { font-size: 1.4rem; }
  .v6-pf-sub { font-size: .92rem; }
}

/* ═══════════════════════════════════════════════════════════════════
   V6.2 · SOCIETAL SYSTEMS · People's Voice, Citizen Service, Missions,
   Founder's Letter, and shared empty states / composer polish.
   ═══════════════════════════════════════════════════════════════════ */

.v6-narrow { max-width: 880px; margin-left: auto; margin-right: auto; }

/* Shared composer card */
.v6-composer { padding: 24px; margin-bottom: 24px; }
.v6-composer-head {
  display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px;
}
.v6-composer-head i {
  font-size: 1.3rem; color: #D4AF37;
  padding: 10px; border-radius: 12px;
  background: rgba(212,175,55,.08); border: 1px solid rgba(212,175,55,.2);
}
.v6-composer-head b { font-family: var(--font-nation); font-size: 1.1rem; color: #F5EEDC; font-weight: 500; }
.v6-composer-body { display: flex; flex-direction: column; gap: 12px; }
.v6-composer-body .input, .v6-composer-body .textarea { width: 100%; }
.v6-composer-body .textarea { min-height: 92px; resize: vertical; }
.v6-composer-body .flex-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* Shared tabs */
.v6-tabs { display: flex; gap: 6px; margin: 24px 0 16px; flex-wrap: wrap; }
.v6-tab {
  padding: 8px 16px; border-radius: 999px; text-decoration: none;
  color: rgba(245,238,220,.65); font-size: .9rem;
  background: rgba(19,27,46,.4); border: 1px solid rgba(212,175,55,.1);
  transition: color .25s, background .25s, border-color .25s;
}
.v6-tab:hover { color: #F5EEDC; border-color: rgba(212,175,55,.3); }
.v6-tab.is-active { color: #050914; background: #D4AF37; border-color: #D4AF37; font-weight: 500; }

/* Empty states */
.v6-empty, .v6-empty-cta {
  text-align: center; padding: 48px 28px; border-radius: 20px;
  background: rgba(19,27,46,.4); border: 1px dashed rgba(212,175,55,.2);
}
.v6-empty i, .v6-empty-cta i {
  font-size: 2rem; color: rgba(212,175,55,.55); margin-bottom: 14px; display: block;
}
.v6-empty h3, .v6-empty-cta h3 {
  font-family: var(--font-nation); font-size: 1.4rem; color: #F5EEDC;
  margin: 0 0 8px; font-weight: 500;
}
.v6-empty p, .v6-empty-cta p { max-width: 460px; margin: 0 auto 16px; }

/* People's Voice · vote card */
.v6-voice-list { display: flex; flex-direction: column; gap: 14px; }
.v6-voice-card {
  display: grid; grid-template-columns: 68px 1fr; gap: 16px;
  padding: 20px; border-radius: 18px;
  background: rgba(19,27,46,.55); border: 1px solid rgba(212,175,55,.12);
  transition: border-color .25s, transform .25s;
}
.v6-voice-card:hover { transform: translateY(-2px); border-color: rgba(212,175,55,.28); }
.v6-voice-vote {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 10px 8px; border-radius: 14px;
  background: rgba(212,175,55,.06); border: 1px solid rgba(212,175,55,.22);
  color: rgba(245,238,220,.7); cursor: pointer; transition: all .25s;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.v6-voice-vote:hover:not(:disabled) { background: rgba(212,175,55,.14); color: #F5EEDC; }
.v6-voice-vote:disabled { cursor: not-allowed; opacity: .55; }
.v6-voice-vote.is-voted { background: #D4AF37; color: #050914; border-color: #D4AF37; }
.v6-voice-vote i { font-size: 1.4rem; }
.v6-voice-count { font-size: 1.05rem; font-weight: 600; }
.v6-voice-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  margin-bottom: 6px; font-size: .82rem;
}
.v6-voice-kind {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(245,238,220,.05); color: rgba(245,238,220,.7);
  font-size: .78rem;
}
.v6-voice-status {
  padding: 3px 10px; border-radius: 999px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
}
.v6-voice-title {
  font-family: var(--font-nation); font-size: 1.15rem; color: #F5EEDC;
  font-weight: 500; margin: 4px 0 8px; line-height: 1.3;
}
.v6-voice-text { color: rgba(245,238,220,.72); font-size: .95rem; line-height: 1.55; margin: 0; }
.v6-voice-note {
  margin-top: 12px; padding: 10px 14px;
  background: rgba(212,175,55,.06); border-left: 2px solid #D4AF37;
  border-radius: 0 10px 10px 0; font-size: .9rem; color: #EAD9A5;
}

/* Citizen Service · request card */
.v6-service-list { display: flex; flex-direction: column; gap: 14px; }
.v6-service-card {
  padding: 20px; border-radius: 18px;
  background: rgba(19,27,46,.55); border: 1px solid rgba(212,175,55,.12);
  transition: border-color .25s, transform .25s, opacity .25s;
}
.v6-service-card:hover { transform: translateY(-2px); border-color: rgba(212,175,55,.28); }
.v6-service-card.is-resolved { opacity: .78; border-color: rgba(124,242,214,.2); }
.v6-service-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.v6-service-head > div:nth-child(2) { flex: 1; }
.v6-service-title { font-family: var(--font-nation); font-size: 1.15rem; color: #F5EEDC; font-weight: 500; line-height: 1.3; }
.v6-service-status {
  padding: 4px 12px; border-radius: 999px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  align-self: flex-start;
}
.v6-service-status.open     { background: rgba(212,175,55,.15); color: #D4AF37; }
.v6-service-status.resolved { background: rgba(124,242,214,.14); color: #7CF2D6; }
.v6-service-body { color: rgba(245,238,220,.72); font-size: .95rem; line-height: 1.55; margin: 8px 0 14px; }
.v6-service-foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding-top: 12px; border-top: 1px solid rgba(212,175,55,.08); flex-wrap: wrap;
}
.v6-service-helper { color: rgba(245,238,220,.72); font-size: .9rem; }
.v6-service-helper i { color: #7CF2D6; margin-right: 6px; }

/* National Missions · card grid */
.v6-mission-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.v6-mission-card {
  padding: 24px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(19,27,46,.55), rgba(19,27,46,.75));
  border: 1px solid rgba(212,175,55,.14);
  position: relative; overflow: hidden;
  transition: transform .35s, border-color .35s, box-shadow .35s;
}
.v6-mission-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 100% 0%, var(--mn-color, #D4AF37)22, transparent 55%);
  pointer-events: none;
}
.v6-mission-card:hover {
  transform: translateY(-3px);
  border-color: var(--mn-color, rgba(212,175,55,.4));
  box-shadow: 0 22px 46px -22px rgba(0,0,0,.6);
}
.v6-mission-card.is-done { opacity: .7; }
.v6-mission-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(212,175,55,.1); color: var(--mn-color, #D4AF37);
  font-size: 1.3rem; margin-bottom: 14px;
  border: 1px solid var(--mn-color, rgba(212,175,55,.25));
}
.v6-mission-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--mn-color, #D4AF37); margin-bottom: 8px;
}
.v6-mission-title {
  font-family: var(--font-nation); font-size: 1.25rem; color: #F5EEDC;
  margin: 0 0 8px; font-weight: 500; line-height: 1.3;
}
.v6-mission-body { color: rgba(245,238,220,.7); font-size: .95rem; line-height: 1.5; margin: 0 0 14px; }
.v6-mission-rewards { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.v6-mission-cta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.v6-mission-done {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(124,242,214,.12); color: #7CF2D6;
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .82rem;
}

/* Founder's Letter · long-form typography */
.v6-letter {
  padding: clamp(32px, 5vw, 56px);
  background: rgba(19,27,46,.45);
  border: 1px solid rgba(212,175,55,.16);
  border-radius: 24px;
  font-family: var(--font-nation);
}
.v6-letter p {
  font-size: clamp(1.05rem, 1.5vw, 1.15rem);
  line-height: 1.75; color: rgba(245,238,220,.85);
  margin: 0 0 22px;
}
.v6-letter p a { color: #D4AF37; text-decoration: none; border-bottom: 1px dashed rgba(212,175,55,.4); }
.v6-letter p a:hover { color: #F5D25F; border-color: #F5D25F; }
.v6-letter-open { font-size: 1.35rem !important; color: #F5EEDC !important; margin-bottom: 26px !important; }
.v6-letter-close {
  font-style: italic; color: #F5EEDC; margin-top: 32px;
  padding-top: 22px; border-top: 1px solid rgba(212,175,55,.14);
}
.v6-letter-values, .v6-letter-promises {
  margin: 0 0 22px 0; padding-left: 20px;
  font-size: 1.05rem; line-height: 1.85; color: rgba(245,238,220,.85);
}
.v6-letter-values li, .v6-letter-promises li { margin-bottom: 8px; }
.v6-letter-values b { color: #D4AF37; font-family: var(--font-nation); }
.v6-letter-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

@media (max-width: 640px) {
  .v6-voice-card { grid-template-columns: 56px 1fr; padding: 16px; }
  .v6-voice-vote { padding: 8px 6px; }
  .v6-composer { padding: 18px; }
  .v6-service-head { flex-wrap: wrap; }
  .v6-service-status { order: 3; margin-top: 4px; }
}

/* ═══════════════════════════════════════════════════════════════════
   V6.3 · Mobile responsive polish (non-arrival)
   Arrival hero has its own responsive block above.
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 520px) {
  .v6-today { padding: 32px 0; }
  .v6-today-head { margin-bottom: 24px; }
  .v6-today-title { font-size: 1.7rem; }
  .v6-today-lead { font-size: .92rem; }
  .v6-today-card { padding: 20px 18px 16px; border-radius: 16px; }
  .v6-today-card h3 { font-size: 1.15rem; }
  .v6-today-card p  { font-size: .9rem; }

  .v6-mission-grid { gap: 14px; }
  .v6-mission-card { padding: 20px 18px; }
  .v6-mission-title { font-size: 1.15rem; }

  .v6-voice-card { padding: 14px; gap: 12px; }
  .v6-voice-title { font-size: 1.05rem; }
  .v6-voice-text { font-size: .9rem; }

  .v6-service-card { padding: 16px; }
  .v6-service-title { font-size: 1.05rem; }
  .v6-service-foot { gap: 8px; }
  .v6-service-foot .btn { flex: 1; min-width: 130px; }

  .v6-letter { padding: 24px 20px; border-radius: 18px; }
  .v6-letter p { font-size: 1rem; line-height: 1.7; }
  .v6-letter-open { font-size: 1.15rem !important; }
  .v6-letter-ctas .btn-lg { padding: 12px 18px; font-size: .95rem; width: 100%; justify-content: center; }

  .v6-page-frame { padding: 20px 0 16px; }
  .v6-pf-title { font-size: 1.25rem; }
  .v6-pf-eyebrow { font-size: .7rem; letter-spacing: .18em; }

  .v6-composer { padding: 16px; }
  .v6-composer-body .flex-between { flex-direction: column; align-items: stretch; }
  .v6-composer-body .flex-between .btn { width: 100%; }
}

/* Long-word / URL wrapping across all V6 typography */
.v6-voice-title, .v6-voice-text,
.v6-service-title, .v6-service-body,
.v6-mission-title, .v6-mission-body,
.v6-today-card h3, .v6-today-card p,
.v6-pf-title, .v6-pf-sub,
.v6-letter p { overflow-wrap: anywhere; word-break: break-word; }

/* Touch tap targets ≥ 44px on mobile */
@media (max-width: 520px) {
  .v6-voice-vote, .v6-tab, .v6-arrival-secondary a, .v6-mission-cta .btn {
    min-height: 44px;
  }
}

/* Global scrollbar-safe overflow on cards containing bg images */
.v6-today-card, .city-tile, .trend-card { overflow: hidden; }

/* ═══════════════════════════════════════════════════════════════════
   V6.8 · Moments page polish + Map illustration.
   ═══════════════════════════════════════════════════════════════════ */

/* Moments — richer hero + gold accent on cards */
.v5-mom-hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 10% 10%, rgba(212,175,55,.18), transparent 60%),
    radial-gradient(900px 400px at 90% 0%, rgba(76,242,214,.10), transparent 60%),
    linear-gradient(180deg, rgba(5,9,20,.4), transparent 90%) !important;
  border-bottom: 1px solid rgba(212,175,55,.16) !important;
}
.v5-mom-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(180deg, rgba(5,9,20,.35), rgba(5,9,20,.9)),
    url('/images/generated/knowledge-library.jpg');
  background-size: cover; background-position: center;
  opacity: .32;
  pointer-events: none;
}
.v5-mom-hero > .container { position: relative; z-index: 1; }

.v6-mom-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(212,175,55,.14);
  border: 1px solid rgba(212,175,55,.32);
  color: #F5D25F;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  margin-bottom: 14px;
}
.v5-mom-title {
  font-family: var(--font-nation, 'Fraunces', 'Cormorant Garamond', serif) !important;
  color: #F5EEDC !important;
  font-weight: 500 !important;
  line-height: 1.1;
  letter-spacing: -.015em !important;
}
.v5-mom-lead {
  color: rgba(245,238,220,.75) !important;
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 640px;
}
.v5-mom-tab {
  padding: 9px 16px !important;
  background: rgba(19,27,46,.55) !important;
  border: 1px solid rgba(212,175,55,.14) !important;
  color: rgba(245,238,220,.72) !important;
  transition: all .25s !important;
}
.v5-mom-tab:hover {
  border-color: rgba(212,175,55,.4) !important;
  color: #F5EEDC !important;
  background: rgba(212,175,55,.08) !important;
  transform: translateY(-1px);
}
.v5-mom-tab.is-active {
  background: linear-gradient(180deg, #F5D25F, #D4AF37) !important;
  color: #050914 !important;
  box-shadow: 0 6px 18px -8px rgba(212,175,55,.55);
}
.v5-mom-card {
  background: linear-gradient(180deg, rgba(19,27,46,.65), rgba(19,27,46,.85)) !important;
  border: 1px solid rgba(212,175,55,.16) !important;
  border-radius: 22px !important;
  padding: 24px !important;
  position: relative;
  overflow: hidden;
}
.v5-mom-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--mom-color, #D4AF37), transparent 80%);
  opacity: .8;
}
.v5-mom-card:hover {
  border-color: rgba(212,175,55,.35) !important;
  transform: translateY(-3px);
  box-shadow: 0 20px 46px -22px rgba(0,0,0,.6);
}
.v5-mom-h3 {
  font-family: var(--font-nation, 'Fraunces', serif) !important;
  color: #F5EEDC !important;
  font-size: 1.35rem !important;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 8px !important;
}
.v6-mom-why {
  background: linear-gradient(90deg, rgba(212,175,55,.08), transparent 90%);
}

/* ─── LIVING MAP — SVG illustration of the nation ─── */
.v6-map-illustration {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 480px;
  border-radius: 20px;
  overflow: hidden;
  margin: 24px 0 32px;
  border: 1px solid rgba(212,175,55,.2);
  box-shadow: 0 22px 48px -22px rgba(0,0,0,.6);
  background: #E9E2CE;
}
.v6-map-illustration svg { display: block; width: 100%; height: 100%; }
.v6-map-illustration .m-city {
  cursor: pointer;
  transition: transform .2s ease, filter .2s;
  transform-origin: center;
  transform-box: fill-box;
}
.v6-map-illustration .m-city:hover { transform: scale(1.35); filter: drop-shadow(0 0 10px #EF7A3B); }
.v6-map-illustration .m-city-label {
  font-family: var(--font-nation, 'Fraunces', serif);
  font-size: 11px;
  fill: #2A2016;
  font-weight: 500;
  pointer-events: none;
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
}
.v6-map-illustration .m-caption {
  position: absolute;
  bottom: 12px; left: 16px;
  color: #2A2016;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  background: rgba(255,255,255,.6);
  padding: 4px 10px; border-radius: 999px;
  backdrop-filter: blur(4px);
}

@media (max-width: 640px) {
  .v6-map-illustration { border-radius: 16px; }
  .v6-map-illustration .m-city-label { font-size: 9px; }
}

/* ═══════════════════════════════════════════════════════════════════
   V6.9 · Moments = Twitter of the nation
   Two-column feed + trending rail + Sponsored ribbon.
   ═══════════════════════════════════════════════════════════════════ */
.v6-mom-layout {
  max-width: 1160px; margin: 0 auto; padding: 20px 20px 96px;
  display: grid; grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px; align-items: flex-start;
}
.v6-mom-feed { max-width: 100% !important; padding: 0 !important; }

.v6-mom-rail { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 18px; }
.v6-rail-block {
  padding: 20px; border-radius: 18px;
  background: rgba(19,27,46,.55);
  border: 1px solid rgba(212,175,55,.14);
}
.v6-rail-head { margin-bottom: 12px; }
.v6-rail-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .68rem; letter-spacing: .22em;
  color: #F5D25F; margin-bottom: 6px;
}
.v6-rail-block h3 {
  font-family: var(--font-nation, 'Fraunces', serif);
  font-size: 1.1rem; color: #F5EEDC; font-weight: 500;
  margin: 0; line-height: 1.3; letter-spacing: -0.005em;
}
.v6-rail-copy { color: rgba(245,238,220,.65); font-size: .9rem; line-height: 1.6; margin: 0 0 12px; }
.v6-rail-list { list-style: none; padding: 0; margin: 0; }
.v6-rail-list li { margin-bottom: 6px; }
.v6-rail-item {
  display: grid; grid-template-columns: 28px 1fr; gap: 10px;
  padding: 10px; border-radius: 12px;
  text-decoration: none; color: inherit;
  transition: background .2s;
}
.v6-rail-item:hover { background: rgba(212,175,55,.06); }
.v6-rail-kind { font-size: 1.05rem; }
.v6-rail-title {
  display: block; color: #F5EEDC; font-weight: 500; font-size: .93rem;
  line-height: 1.35; overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.v6-rail-meta { display: block; color: rgba(245,238,220,.5); font-size: .78rem; margin-top: 2px; }
.v6-rail-heat { color: #F5D25F; }
.v6-rail-empty { color: rgba(245,238,220,.55); font-size: .9rem; padding: 10px 4px; }

/* Sponsored ribbon */
.v6-mom-sponsored {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(245,210,95,.18), rgba(245,210,95,.06));
  border: 1px solid rgba(245,210,95,.45);
  color: #F5D25F;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  white-space: nowrap;
}
.v6-mom-sponsored i { font-size: .72rem; }

@media (max-width: 900px) {
  .v6-mom-layout { grid-template-columns: minmax(0, 1fr); padding: 20px 16px 80px; }
  .v6-mom-rail { position: static; order: -1; }
}
