/* ═══════════════════════════════════════════════════════════════════
   NRI Outpost — Indian Missions section (homepage)
                  + per-city consulate & emergency callout (cities)
   ═══════════════════════════════════════════════════════════════════ */

/* ─── HOMEPAGE: Mission directory ──────────────────────────── */
.missions-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.missions-toolbar-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-right: 2px;
}
.missions-filter {
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-2);
  border: 1px solid var(--rule);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.missions-filter:hover { background: var(--paper-2); color: var(--ink); }
.missions-filter.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.missions-filter-flag { font-size: 14px; line-height: 1; }
.missions-filter-count {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  opacity: 0.6;
  margin-left: 2px;
}

.missions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
}
.mission {
  background: var(--card, var(--paper));
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.mission[data-type="Embassy"]::before,
.mission[data-type="High Commission"]::before {
  content: "Top mission";
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--saffron) 16%, var(--paper-2));
  color: var(--saffron);
}
.mission-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.mission-flag {
  font-size: 18px;
  line-height: 1;
}
.mission-type {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.mission-city {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 2px 0 0;
  line-height: 1.05;
  flex-basis: 100%;
}
.mission-city em {
  font-style: italic;
  color: var(--saffron);
}
.mission-name {
  font-size: 13px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.4;
}

.mission-block {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
}
.mission-block-icon {
  width: 14px;
  height: 14px;
  margin-top: 3px;
  color: var(--ink-3);
  flex: none;
}
.mission-block-icon svg { display: block; width: 14px; height: 14px; }
.mission-block strong { color: var(--ink); font-weight: 500; }

.mission-phones {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.mission-phone {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink);
  border: 1px solid var(--rule);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.mission-phone:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  text-decoration: none;
}
.mission-phone-tag {
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
}
.mission-phone.emerg {
  background: color-mix(in oklab, var(--saffron) 14%, var(--paper-2));
  border-color: color-mix(in oklab, var(--saffron) 30%, var(--rule));
  color: color-mix(in oklab, var(--saffron) 75%, var(--ink));
}
.mission-phone.emerg:hover {
  background: var(--saffron);
  color: var(--paper);
  border-color: var(--saffron);
}

/* "Current phone & 24×7 emergency line — at consulate.gov.in" CTA card.
   Replaces the old tel: pills because consulate switchboards change
   without notice and the website always has the up-to-date numbers. */
.mission-contact-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.mission-contact-cta:hover {
  background: color-mix(in oklab, var(--saffron) 7%, var(--paper-2));
  border-color: color-mix(in oklab, var(--saffron) 30%, var(--rule));
  text-decoration: none;
}
.mission-contact-cta-icon {
  width: 18px; height: 18px; flex: none;
  color: var(--saffron);
}
.mission-contact-cta-icon svg { width: 18px; height: 18px; display: block; }
.mission-contact-cta-text { display: flex; flex-direction: column; gap: 2px; }
.mission-contact-cta-text strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.mission-contact-cta-text small {
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.4;
}

.mission-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.mission-jur {
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.45;
  flex: 1;
  min-width: 0;
}
.mission-jur strong { color: var(--ink-2); font-weight: 600; }
.mission-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--saffron);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.mission-link:hover { color: var(--ink); text-decoration: none; }

.mission-note {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
  padding: 8px 11px;
  background: var(--paper-2);
  border-radius: 8px;
}

/* ─── HOMEPAGE: Universal emergencies sub-panel ────────────── */
.emerg-universal {
  margin-top: 36px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 12px;
  padding: 28px 32px 30px;
  position: relative;
  overflow: hidden;
}
.emerg-universal::before {
  content: "+";
  position: absolute;
  top: -16px;
  right: -8px;
  font-size: 140px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  font-family: 'Instrument Serif', Georgia, serif;
  pointer-events: none;
}
.emerg-universal-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.emerg-universal-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 28px;
  line-height: 1.05;
  margin: 6px 0 6px;
  letter-spacing: -0.015em;
  font-weight: 400;
}
.emerg-universal-title em {
  font-style: italic;
  color: var(--saffron);
}
.emerg-universal-sub {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
  max-width: 56ch;
  margin: 0 0 22px;
}

.emerg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.emerg-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.emerg-card.primary {
  background: var(--saffron);
  color: #1a1410;
  border-color: var(--saffron);
}
.emerg-card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
}
.emerg-card.primary .emerg-card-label { opacity: 0.75; color: #1a1410; }
.emerg-card-number {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin-top: 2px;
  text-decoration: none;
}
.emerg-card.primary .emerg-card-number { color: #1a1410; }
.emerg-card-number:hover { text-decoration: none; }
.emerg-card-sub {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}
.emerg-card.primary .emerg-card-sub { color: rgba(26, 20, 16, 0.7); }
.emerg-card-note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
  margin-top: 4px;
  font-style: italic;
}
.emerg-card.primary .emerg-card-note { color: rgba(26, 20, 16, 0.6); }

/* Link button on each universal emergency card — replaces the old phone
   number. Subtle outline by default; primary card flips to dark-on-saffron. */
.emerg-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  margin-top: 4px;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.18);
  white-space: nowrap;
}
.emerg-card-link:hover {
  background: var(--saffron);
  color: #1a1410;
  border-color: var(--saffron);
  text-decoration: none;
}
.emerg-card.primary .emerg-card-link {
  background: rgba(26, 20, 16, 0.18);
  color: #1a1410;
  border-color: rgba(26, 20, 16, 0.3);
}
.emerg-card.primary .emerg-card-link:hover {
  background: #1a1410;
  color: var(--paper);
  border-color: #1a1410;
}

/* Curated phone numbers (MEA Control Room, Passport Seva, eVisa Helpdesk).
   Tap-to-call on mobile; stable across years. */
.emerg-card-phones {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.emerg-card-phone {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-decoration: none;
  white-space: nowrap;
}
.emerg-card-phone:hover {
  background: var(--saffron);
  color: #1a1410;
  border-color: var(--saffron);
  text-decoration: none;
}
.emerg-card.primary .emerg-card-phone {
  background: rgba(26, 20, 16, 0.18);
  color: #1a1410;
  border-color: rgba(26, 20, 16, 0.3);
}
.emerg-card-phones-note {
  margin-top: 4px;
  font-size: 10.5px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}
.emerg-card.primary .emerg-card-phones-note { color: rgba(26, 20, 16, 0.7); }

.emerg-card-email {
  margin-top: 4px;
  font-size: 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.emerg-card-email a {
  color: var(--saffron);
  text-decoration: none;
}
.emerg-card-email a:hover { color: var(--paper); text-decoration: none; }
.emerg-card.primary .emerg-card-email a { color: #1a1410; }

.mission-disclaimer {
  margin-top: 16px;
  padding: 12px 16px;
  font-size: 12px;
  color: var(--ink-3);
  background: var(--paper-2);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  line-height: 1.5;
}
.mission-disclaimer-icon { flex: none; color: var(--ink-3); margin-top: 1px; }
.mission-disclaimer strong { color: var(--ink-2); }

/* ─── CITY PAGE: Compact "Your consulate + emergency" panel ── */
.city-consulate-panel {
  margin: 24px 0 4px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.ccp-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ccp-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ccp-eyebrow-icon {
  width: 16px; height: 16px;
  border-radius: 4px;
  background: var(--paper);
  border: 1px solid var(--rule);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ccp-eyebrow-icon svg { width: 10px; height: 10px; display: block; color: var(--ink-2); }
.ccp-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--ink);
  margin: 0;
  font-weight: 400;
}
.ccp-title em {
  font-style: italic;
  color: var(--saffron);
}
.ccp-title small {
  display: block;
  font-family: inherit;
  font-style: normal;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0;
  margin-top: 2px;
  line-height: 1.4;
}

/* Consulate side */
.ccp-cons-address {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}
.ccp-cons-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.ccp-cons-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--saffron);
  text-decoration: none;
}
.ccp-cons-link:hover { color: var(--ink); text-decoration: none; }

/* Compact "current phone at consulate.gov.in →" CTA on city pages.
   Replaces the old tel: pills — see comment in consulates.js. */
.ccp-cons-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
}
.ccp-cons-contact:hover {
  background: color-mix(in oklab, var(--saffron) 7%, var(--paper));
  border-color: color-mix(in oklab, var(--saffron) 30%, var(--rule));
  text-decoration: none;
}
.ccp-cons-contact-icon {
  width: 14px; height: 14px; flex: none;
  color: var(--saffron);
}
.ccp-cons-contact-icon svg { width: 14px; height: 14px; display: block; }
.ccp-cons-contact strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.ccp-cons-contact small {
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.4;
}

/* Emergency side */
.ccp-emerg-primary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ccp-emerg-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.ccp-emerg-pill:hover {
  background: var(--saffron);
  color: var(--paper);
  text-decoration: none;
}
.ccp-emerg-pill small {
  font-family: inherit;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  opacity: 0.7;
  text-transform: uppercase;
}

.ccp-emerg-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ccp-emerg-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--rule);
  font-size: 13px;
}
.ccp-emerg-item:last-child { border-bottom: none; }
.ccp-emerg-label {
  color: var(--ink-2);
  line-height: 1.35;
}
.ccp-emerg-label small {
  display: block;
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 1px;
}
.ccp-emerg-num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.ccp-emerg-num:hover { color: var(--saffron); text-decoration: none; }

/* Per-city emergency item link — replaces inline phone numbers. */
.ccp-emerg-link {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--saffron);
  text-decoration: none;
  white-space: nowrap;
  flex: none;
}
.ccp-emerg-link:hover { color: var(--ink); text-decoration: none; }

/* Universal "911/988 are universal" reminder inside the per-city emerg panel. */
.ccp-emerg-universal-note {
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
  padding: 8px 10px;
  background: var(--paper);
  border: 1px dashed var(--rule);
  border-radius: 8px;
}
.ccp-emerg-universal-note strong {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: var(--ink);
}

/* ─── CITY PAGE: "Getting around" public-transit panel ────── */
.city-transit-panel {
  margin: 16px 0 4px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 22px 24px;
}
.ctp-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.ctp-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  flex-basis: 100%;
}
.ctp-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  flex: 1;
}
.ctp-title small {
  display: block;
  font-family: inherit;
  font-style: normal;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0;
  margin-top: 2px;
  line-height: 1.4;
}
.ctp-tap-pill {
  flex: none;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.ctp-tap-pill.ok {
  background: color-mix(in oklab, var(--teal) 14%, var(--paper-2));
  color: color-mix(in oklab, var(--teal) 75%, var(--ink));
}
.ctp-tap-pill.no {
  background: var(--paper-2);
  color: var(--ink-3);
  border: 1px dashed var(--rule);
}

.ctp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.ctp-block {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 10px 12px;
}
.ctp-block.ctp-airport { grid-column: 1 / -1; }
.ctp-block-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.ctp-block-value {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.45;
}

.ctp-fares {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  padding: 12px 0;
  border-top: 1px dashed var(--rule);
  border-bottom: 1px dashed var(--rule);
  margin-bottom: 12px;
}
.ctp-fare {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ctp-fare-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ctp-fare-value {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12.5px;
  color: var(--ink);
  font-weight: 600;
}

.ctp-tip {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.5;
  padding: 10px 12px;
  background: color-mix(in oklab, var(--saffron) 7%, var(--paper-2));
  border: 1px solid color-mix(in oklab, var(--saffron) 18%, var(--rule));
  border-radius: 8px;
  margin-bottom: 12px;
}
.ctp-tip strong {
  color: var(--saffron);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ctp-foot {
  font-size: 12px;
  color: var(--ink-3);
}
.ctp-link {
  color: var(--saffron);
  text-decoration: none;
  font-weight: 600;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
}
.ctp-link:hover { color: var(--ink); text-decoration: none; }

/* Mobile */
@media (max-width: 920px) {
  .city-consulate-panel {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
  .city-transit-panel { padding: 18px; }
  .ctp-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .missions-grid { grid-template-columns: 1fr; }
  .mission { padding: 18px 18px 20px; }
  .mission-city { font-size: 22px; }
  .emerg-universal { padding: 22px 18px 26px; }
  .emerg-universal-title { font-size: 24px; }
  .city-consulate-panel { padding: 18px; }
  .ccp-title { font-size: 20px; }
}
