/* ─────────────────────────────────────────────
   VISAS SECTION — visas.css
   Vista: #view-visas
   ───────────────────────────────────────────── */

/* ─── CSS VARIABLE BRIDGE ─────────────────────
   Variables used by the calendar that are not
   defined in the main project's theme files     */
:root {
  --text-strong: #172033;
  --text-base: #17212b;
  --surface-light: #f4f6fb;
  --radius-3xl: 24px;
  --shadow-elevated: 0 20px 60px rgba(15, 23, 42, 0.15);
  --panel-blur: blur(12px);
  --control-transition: 0.15s ease;
  --primary-3: rgba(47, 122, 130, 0.12);
  --border-soft: rgba(23, 33, 43, 0.08);
}

/* Shell */
.visas-shell {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem 1rem;
  max-width: 72rem;
  margin: 0 auto;
}

/* ─── WORKING HOLIDAY PAGE ───────────────────── */

.whv-working-holiday-shell {
  display: grid;
  gap: 0;
}

.whv-working-holiday-page {
  max-width: var(--container, 72rem);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.whv-working-holiday-page .whv-hub-intro {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

.whv-working-holiday-page .whv-hub-kicker {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: rgba(233, 69, 96, 0.12);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.whv-working-holiday-page .whv-hub-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 1rem;
}

.whv-working-holiday-page .whv-hub-title span {
  background: linear-gradient(90deg, var(--accent), #ff6b9d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.whv-working-holiday-page .whv-hub-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 42rem;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.whv-working-holiday-page .whv-hub-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.whv-working-holiday-page .whv-hub-cta-row .btn {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.whv-working-holiday-page .btn-small {
  padding: 6px 14px;
  font-size: 0.82rem;
}

.whv-working-holiday-page .btn-large {
  padding: 12px 24px;
  font-size: 1.05rem;
  border-radius: 12px;
}

.whv-working-holiday-page .btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: #17212b;
  border: 1px solid rgba(205, 213, 228, 0.8);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.07), 0 4px 14px rgba(15, 23, 42, 0.05);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.whv-working-holiday-page .btn-secondary:hover {
  background: #fff;
  border-color: #b8c4d8;
  color: #172033;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1), 0 6px 20px rgba(15, 23, 42, 0.07);
}

.whv-working-holiday-page .btn-glow {
  box-shadow: 0 4px 14px rgba(233, 69, 96, 0.28), 0 10px 30px rgba(233, 69, 96, 0.18);
}

.whv-working-holiday-page .btn-glow:hover {
  box-shadow: 0 6px 20px rgba(233, 69, 96, 0.35), 0 14px 38px rgba(233, 69, 96, 0.22);
}

.whv-working-holiday-page .whv-hub-section {
  background: rgba(12, 22, 44, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  padding: 2.5rem;
  margin-bottom: 2rem;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.whv-working-holiday-page .whv-hub-section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.whv-working-holiday-page .whv-hub-section-title svg {
  color: var(--accent);
  flex-shrink: 0;
}

.whv-working-holiday-page .whv-hub-body {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.97rem;
  line-height: 1.7;
  margin: 0 0 1.5rem;
}

.whv-working-holiday-page .whv-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
}

.whv-working-holiday-page .whv-pillar {
  background: rgba(12, 22, 44, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.1rem;
  padding: 1.25rem 1.1rem;
}

.whv-working-holiday-page .whv-pillar-icon {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.whv-working-holiday-page .whv-pillar-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.3rem;
}

.whv-working-holiday-page .whv-pillar-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
  margin: 0;
}

.whv-working-holiday-page .whv-req-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.whv-working-holiday-page .whv-req-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  font-weight: 600;
}

.whv-working-holiday-page .whv-req-chip::before {
  content: "✓";
  color: var(--accent-2);
  font-weight: 800;
  font-size: 0.75rem;
}

.whv-working-holiday-page .whv-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.whv-working-holiday-page .whv-action-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 1.75rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 22, 44, 0.68);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 240ms ease, box-shadow 240ms ease;
  overflow: hidden;
}

.whv-working-holiday-page .whv-action-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 240ms ease;
  border-radius: inherit;
  pointer-events: none;
}

.whv-working-holiday-page .whv-action-card--destinos::before {
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.12), rgba(248, 79, 118, 0.06));
}

.whv-working-holiday-page .whv-action-card--calendario::before {
  background: linear-gradient(135deg, rgba(0, 201, 177, 0.12), rgba(59, 130, 246, 0.06));
}

.whv-working-holiday-page .whv-action-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.25);
}

.whv-working-holiday-page .whv-action-card:hover::before {
  opacity: 1;
}

.whv-working-holiday-page .whv-action-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  position: relative;
  z-index: 1;
}

.whv-working-holiday-page .whv-action-card--destinos .whv-action-card-icon {
  background: rgba(233, 69, 96, 0.15);
}

.whv-working-holiday-page .whv-action-card--calendario .whv-action-card-icon {
  background: rgba(0, 201, 177, 0.15);
}

.whv-working-holiday-page .whv-action-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  position: relative;
  z-index: 1;
}

.whv-working-holiday-page .whv-action-card-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.55;
  margin: 0;
  flex: 1;
  position: relative;
  z-index: 1;
}

.whv-working-holiday-page .whv-action-card-link {
  align-self: flex-start;
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.whv-working-holiday-page .whv-hub-footer-space {
  height: 3rem;
}

/* ─── TABS ────────────────────────────────────── */

.visas-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 4px;
  background: var(--surface-light, #f4f6fb);
  border: 1px solid rgba(15, 52, 96, 0.09);
  border-radius: 14px;
  width: fit-content;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.visas-tab {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted, #6b7280);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.visas-tab:hover {
  color: var(--text-strong, #172033);
  background: rgba(15, 52, 96, 0.05);
}

.visas-tab.is-active {
  background: #172033;
  color: var(--text-strong, #172033);
  border-color: rgba(15, 52, 96, 0.12);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1);
}

/* ─── PANELS ──────────────────────────────────── */

.visa-panel {
  display: block;
}

.visa-panel--hidden {
  display: none;
}

/* ─── COMING SOON ─────────────────────────────── */

.visas-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 4rem 1.5rem;
  text-align: center;
  color: var(--text-muted, #6b7280);
}

.visas-coming-soon-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.visas-coming-soon h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-strong, #172033);
  margin: 0;
}

.visas-coming-soon p {
  font-size: 0.95rem;
  max-width: 36rem;
  margin: 0;
  line-height: 1.6;
}

/* ─── RESPONSIVE ──────────────────────────────── */

@media (max-width: 600px) {
  .visas-tabs {
    width: 100%;
    overflow-x: auto;
  }

  .visas-tab {
    flex: 1;
    text-align: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.82rem;
  }

  .whv-working-holiday-page {
    padding: 0 1rem;
  }

  .whv-working-holiday-page .whv-hub-intro {
    padding: 2rem 0 1.75rem;
  }

  .whv-working-holiday-page .whv-hub-section {
    padding: 1.75rem 1.25rem;
  }

  .whv-working-holiday-page .whv-pillars-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ─── PATHWAYS (non-WHV) PANEL ─────────────── */

.pathways-shell {
  display: grid;
  gap: 1.75rem;
  padding: 1.5rem 1rem 3rem;
  max-width: 72rem;
  margin: 0 auto;
}

.pathways-hero {
  text-align: left;
  display: grid;
  gap: 0.5rem;
  padding: 1.5rem 1.75rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(47, 122, 130, 0.08), rgba(47, 122, 130, 0.02));
  border: 1px solid var(--border-soft);
}

.pathways-hero__kicker {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #2f7a82;
}

.pathways-hero__title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-strong, #172033);
  line-height: 1.15;
}

.pathways-hero__subtitle {
  margin: 0;
  max-width: 48rem;
  color: var(--text-muted, #6b7280);
  font-size: 0.975rem;
  line-height: 1.6;
}

.pathways-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  padding: 1rem 1.25rem;
  background: var(--surface-light, #f4f6fb);
  border-radius: 14px;
  border: 1px solid var(--border-soft);
}

.pathways-filter {
  display: grid;
  gap: 0.35rem;
  flex: 1 1 220px;
}

.pathways-filter__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted, #6b7280);
}

.pathways-filter__input {
  appearance: none;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: #fff;
  font-size: 0.95rem;
  color: var(--text-base, #17212b);
  cursor: pointer;
  transition: border-color var(--control-transition), box-shadow var(--control-transition);
}

.pathways-filter__input:focus {
  outline: none;
  border-color: #2f7a82;
  box-shadow: 0 0 0 3px rgba(47, 122, 130, 0.18);
}

.pathways-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.pathways-loading {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  color: var(--text-muted, #6b7280);
}

.pathways-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 3rem 1rem;
  color: var(--text-muted, #6b7280);
  text-align: center;
}

.pathways-empty__icon {
  font-size: 2rem;
}

/* Card */

.pathway-card {
  position: relative;
  display: grid;
  gap: 0.85rem;
  padding: 1.25rem 1.25rem 1rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border-soft);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: transform var(--control-transition), box-shadow var(--control-transition);
  cursor: pointer;
}

.pathway-card:hover,
.pathway-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.10);
  border-color: rgba(47, 122, 130, 0.25);
}

.pathway-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.pathway-card__flag {
  font-size: 1.75rem;
  line-height: 1;
}

.pathway-card__badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pathway-card__badge--ancestry { background: rgba(168, 85, 247, 0.12); color: #7c3aed; }
.pathway-card__badge--mercosur_residency { background: rgba(59, 130, 246, 0.12); color: #1d4ed8; }
.pathway-card__badge--arraigo { background: rgba(234, 88, 12, 0.12); color: #c2410c; }
.pathway-card__badge--points_based { background: rgba(16, 185, 129, 0.12); color: #047857; }
.pathway-card__badge--studies { background: rgba(14, 165, 233, 0.14); color: #0369a1; }
.pathway-card__badge--passive_income { background: rgba(245, 158, 11, 0.14); color: #b45309; }

.pathway-card__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-strong, #172033);
  line-height: 1.3;
}

.pathway-card__country {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #2f7a82;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pathway-card__summary {
  font-size: 0.92rem;
  color: var(--text-muted, #6b7280);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pathway-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--border-soft);
  font-size: 0.78rem;
  color: var(--text-muted, #6b7280);
}

.pathway-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.pathway-card__meta-icon {
  font-size: 0.9rem;
}

.pathway-card__cta {
  margin-top: 0.35rem;
  font-weight: 700;
  color: #2f7a82;
  font-size: 0.88rem;
}

@media (max-width: 600px) {
  .pathways-hero {
    padding: 1.25rem;
  }
  .pathways-hero__title {
    font-size: 1.5rem;
  }
  .pathways-filters {
    padding: 0.85rem 1rem;
  }
}

/* ═══ Intent picker (onboarding) ═══════════════════════════════════════ */
.visas-intent {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 1rem 1.25rem;
  margin: 0 auto 1.25rem;
  max-width: 1120px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.82));
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02), 0 4px 18px rgba(15, 23, 42, 0.04);
}

.visas-intent__label {
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.65);
}

.visas-intent__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  flex: 1 1 auto;
}

.visas-intent__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(15, 23, 42, 0.85);
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease,
    background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.visas-intent__chip:hover {
  border-color: rgba(15, 23, 42, 0.28);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.visas-intent__chip:focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

.visas-intent__chip:active {
  transform: translateY(1px);
}

.visas-intent__chip.is-active {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}

.visas-intent__emoji {
  font-size: 1rem;
  line-height: 1;
}

.visas-intent__text {
  line-height: 1.1;
}

@media (max-width: 600px) {
  .visas-intent {
    padding: 0.85rem 0.9rem;
    margin: 0 0.5rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  .visas-intent__label {
    font-size: 0.75rem;
  }
  .visas-intent__options {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
  }
  .visas-intent__chip {
    flex: 0 0 auto;
  }
}

/* ═══ Pathway detail drawer ═══════════════════════════════════════════ */
.pathway-detail {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.pathway-detail[hidden] {
  display: none;
}

.pathway-detail__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0);
  transition: background 0.25s ease;
  pointer-events: auto;
}

.pathway-detail.is-open .pathway-detail__overlay {
  background: rgba(15, 23, 42, 0.45);
}

/* Dark theme: darker overlay + blur so grid doesn't bleed through */
.pathway-detail__overlay {
  backdrop-filter: blur(0);
  transition: background 0.25s ease, backdrop-filter 0.25s ease;
}

.pathway-detail.is-open .pathway-detail__overlay {
  background: rgba(4, 9, 20, 0.72);
  backdrop-filter: blur(6px);
}

.pathway-detail__panel {
  position: relative;
  width: min(540px, 100%);
  height: 100%;
  background: #fff;
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  overflow: hidden;
}

.pathway-detail.is-open .pathway-detail__panel {
  transform: translateX(0);
}

.pathway-detail__panel:focus-visible {
  outline: none;
}

.pathway-detail__header {
  padding: 1.25rem 1.5rem 1.1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: linear-gradient(180deg, #fff, #f8fafc);
}

.pathway-detail__header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pathway-detail__flag {
  font-size: 2rem;
  line-height: 1;
}

.pathway-detail__close {
  appearance: none;
  border: none;
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.7);
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.pathway-detail__close:hover {
  background: rgba(15, 23, 42, 0.14);
  color: #0f172a;
}

.pathway-detail__close:focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

.pathway-detail__badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.12);
  color: #4338ca;
}

.pathway-detail__country {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.55);
}

.pathway-detail__title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
  margin: 0;
}

.pathway-detail__summary {
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(15, 23, 42, 0.78);
  margin: 0;
}

.pathway-detail__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
  margin-top: 0.15rem;
}

.pathway-detail__meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(15, 23, 42, 0.75);
  padding: 0.25rem 0.55rem;
  background: rgba(15, 23, 42, 0.05);
  border-radius: 999px;
}

.pathway-detail__meta-icon {
  font-size: 0.9rem;
  line-height: 1;
}

.pathway-detail__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1.2rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.pathway-detail__section {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.pathway-detail__section-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(15, 23, 42, 0.6);
  margin: 0;
}

.pathway-detail__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pathway-detail__list li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(15, 23, 42, 0.82);
}

.pathway-detail__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: #4f46e5;
}

.pathway-detail__list--steps {
  counter-reset: step;
}

.pathway-detail__list--steps li {
  padding-left: 1.9rem;
  counter-increment: step;
}

.pathway-detail__list--steps li::before {
  content: counter(step);
  top: 0;
  width: 1.35rem;
  height: 1.35rem;
  background: #0f172a;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.pathway-detail__list--errors li::before {
  background: #dc2626;
}

.pathway-detail__list--for-whom li::before {
  background: #16a34a;
}

.pathway-detail__footer {
  flex: 0 0 auto;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  display: flex;
  justify-content: flex-end;
}

.pathway-detail__source {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: #0f172a;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.08s ease;
}

.pathway-detail__source:hover {
  background: #1e293b;
}

.pathway-detail__source:active {
  transform: translateY(1px);
}

.pathway-detail__source:focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

.pathway-detail__source.is-disabled {
  background: rgba(15, 23, 42, 0.4);
  cursor: not-allowed;
  pointer-events: none;
}

body.pathway-detail-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .pathway-detail__panel {
    width: 100%;
    box-shadow: none;
  }
  .pathway-detail__header {
    padding: 1rem 1.15rem 0.9rem;
  }
  .pathway-detail__body {
    padding: 1rem 1.15rem 1.25rem;
  }
  .pathway-detail__footer {
    padding: 0.85rem 1.15rem;
  }
  .pathway-detail__title {
    font-size: 1.2rem;
  }
}

/* ═══ Eligibility tool ═══════════════════════════════════════════════ */
.eligibility-tool__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.9rem 1rem;
  margin-bottom: 1rem;
}

.eligibility-tool__grid .form-group {
  margin: 0;
}

.eligibility-tool__result {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.eligibility-tool__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.78);
}

.eligibility-summary__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.75);
}

.eligibility-summary__chip--eligible {
  background: rgba(22, 163, 74, 0.12);
  color: #166534;
}

.eligibility-summary__chip--maybe {
  background: rgba(217, 119, 6, 0.14);
  color: #b45309;
}

.eligibility-summary__chip--ineligible {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

.eligibility-tool__grid-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.85rem;
}

.eligibility-result {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.1rem 1.1rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
}

.eligibility-result::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: rgba(15, 23, 42, 0.15);
}

.eligibility-result--eligible::before { background: #16a34a; }
.eligibility-result--maybe::before { background: #d97706; }
.eligibility-result--ineligible::before { background: #dc2626; }

.eligibility-result__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.eligibility-result__flag {
  font-size: 1.6rem;
}

.eligibility-result__status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  color: rgba(15, 23, 42, 0.75);
}

.eligibility-result--eligible .eligibility-result__status {
  background: rgba(22, 163, 74, 0.14);
  color: #166534;
}

.eligibility-result--maybe .eligibility-result__status {
  background: rgba(217, 119, 6, 0.16);
  color: #b45309;
}

.eligibility-result--ineligible .eligibility-result__status {
  background: rgba(220, 38, 38, 0.14);
  color: #b91c1c;
}

.eligibility-result__category {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(15, 23, 42, 0.55);
}

.eligibility-result__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.eligibility-result__summary {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.5;
  color: rgba(15, 23, 42, 0.72);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.eligibility-result__reasons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.eligibility-result__reasons li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.8rem;
  color: rgba(15, 23, 42, 0.7);
  line-height: 1.4;
}

.eligibility-result__reasons li::before {
  content: '·';
  position: absolute;
  left: 0.35rem;
  top: -0.1rem;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.4);
}

.eligibility-result__cta {
  align-self: flex-start;
  margin-top: 0.3rem;
  appearance: none;
  border: none;
  background: transparent;
  color: #4338ca;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.eligibility-result__cta:hover { text-decoration: underline; }

.eligibility-tool__empty {
  text-align: center;
  padding: 2rem 1rem;
  color: rgba(15, 23, 42, 0.6);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

/* ═══ Pathway spotlight (inside Explorar view) ═══════════════════════ */
.pathway-spotlight {
  margin: 0 auto 1.25rem;
  padding: 1.1rem 1.25rem 1.25rem;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.06), rgba(14, 165, 233, 0.05));
  border: 1px solid rgba(79, 70, 229, 0.18);
  border-radius: 18px;
  max-width: 72rem;
}

.pathway-spotlight[hidden] { display: none; }

.pathway-spotlight__header {
  margin-bottom: 0.85rem;
}

.pathway-spotlight__kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4338ca;
}

.pathway-spotlight__title {
  margin: 0.15rem 0 0.2rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.pathway-spotlight__subtitle {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(15, 23, 42, 0.7);
}

.pathway-spotlight__categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: 0.6rem 0.7rem;
}

.pathway-spotlight__card {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  font: inherit;
  text-align: left;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 0.1rem 0.55rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
}

.pathway-spotlight__card:hover {
  border-color: rgba(79, 70, 229, 0.45);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.pathway-spotlight__card:focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

.pathway-spotlight__emoji {
  font-size: 1.3rem;
  grid-row: span 2;
  align-self: center;
}

.pathway-spotlight__label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
}

.pathway-spotlight__count {
  font-size: 0.75rem;
  color: rgba(15, 23, 42, 0.6);
}

.pathway-spotlight__flags {
  grid-column: 1 / -1;
  margin-top: 0.3rem;
  font-size: 0.95rem;
  letter-spacing: 0.08rem;
}

@media (max-width: 600px) {
  .pathway-spotlight {
    margin: 0 0.5rem 1rem;
    padding: 0.9rem 1rem 1rem;
  }
  .pathway-spotlight__categories {
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  }
}

/* ════════════════════════════════════════════════════════════════════════
   DARK THEME ALIGNMENT — overrides for pathways, intent picker, drawer,
   eligibility tool and spotlight. Matches the rest of the app using the
   global tokens (--bg, --card, --card2, --text, --muted, --border,
   --accent, --accent2). Appended last so it wins the cascade.
   ════════════════════════════════════════════════════════════════════════ */

/* ── Hero + filters + empty/loading states ─────────────────────────── */
.pathways-hero {
  background: linear-gradient(135deg, rgba(74, 154, 168, 0.16), rgba(56, 119, 126, 0.04));
  border: 1px solid var(--border);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.pathways-hero__kicker {
  color: var(--accent2);
}

.pathways-hero__title {
  color: var(--text);
  letter-spacing: -0.01em;
}

.pathways-hero__subtitle {
  color: var(--muted);
}

.pathways-filters {
  background: var(--card);
  border: 1px solid var(--border);
  align-items: flex-end;
}

.pathways-filter__label {
  color: var(--muted);
}

.pathways-filter__input {
  background: var(--card2);
  color: var(--text);
  border: 1px solid var(--border);
}

.pathways-filter__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74, 154, 168, 0.22);
}

.pathways-filter__input option {
  background: var(--card);
  color: var(--text);
}

.pathways-loading,
.pathways-empty {
  grid-column: 1 / -1;
  color: var(--muted);
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
}

.pathways-empty__icon {
  font-size: 2.25rem;
  opacity: 0.85;
}

/* ── Pathway cards ─────────────────────────────────────────────────── */
.pathway-card {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  padding: 1.15rem 1.2rem 1.1rem;
}

.pathway-card:hover,
.pathway-card:focus-within {
  border-color: var(--accent);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34);
}

.pathway-card__title {
  color: var(--text);
}

.pathway-card__country {
  color: var(--accent2);
}

.pathway-card__summary {
  color: var(--muted);
}

.pathway-card__meta {
  color: var(--muted);
  border-top: 1px dashed var(--border);
}

.pathway-card__cta {
  color: var(--accent2);
}

/* Category badges — darker tints that read on --card */
.pathway-card__badge {
  background: var(--card2);
  color: var(--muted);
  border: 1px solid var(--border);
}
.pathway-card__badge--ancestry        { background: rgba(168, 85, 247, 0.18);  color: #c4b5fd; border-color: rgba(168, 85, 247, 0.35); }
.pathway-card__badge--mercosur_residency { background: rgba(59, 130, 246, 0.2); color: #93c5fd; border-color: rgba(59, 130, 246, 0.4); }
.pathway-card__badge--arraigo         { background: rgba(234, 88, 12, 0.2);    color: #fdba74; border-color: rgba(234, 88, 12, 0.4); }
.pathway-card__badge--points_based    { background: rgba(16, 185, 129, 0.2);   color: #6ee7b7; border-color: rgba(16, 185, 129, 0.4); }
.pathway-card__badge--studies         { background: rgba(14, 165, 233, 0.2);   color: #7dd3fc; border-color: rgba(14, 165, 233, 0.4); }
.pathway-card__badge--passive_income  { background: rgba(245, 158, 11, 0.2);   color: #fcd34d; border-color: rgba(245, 158, 11, 0.4); }

/* ── Intent picker (top chips) ─────────────────────────────────────── */
.visas-intent {
  background: linear-gradient(180deg, var(--card), var(--card2));
  border: 1px solid var(--border);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
}

.visas-intent__label {
  color: var(--muted);
}

.visas-intent__chip {
  background: var(--card2);
  color: var(--text);
  border: 1px solid var(--border);
}

.visas-intent__chip:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.visas-intent__chip:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 2px;
}

.visas-intent__chip.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(56, 119, 126, 0.45);
}

/* ── Pathway detail drawer ─────────────────────────────────────────── */
.pathway-detail__panel {
  background: var(--card);
  color: var(--text);
  border-left: 1px solid var(--border);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.55);
}

.pathway-detail__header {
  background: linear-gradient(180deg, var(--card2), var(--card));
  border-bottom: 1px solid var(--border);
}

.pathway-detail__close {
  background: var(--card2);
  color: var(--text);
  border: 1px solid var(--border);
}

.pathway-detail__close:hover {
  background: var(--card);
  border-color: var(--accent);
  color: var(--accent2);
}

.pathway-detail__badge {
  background: var(--card2);
  color: var(--muted);
  border: 1px solid var(--border);
}

.pathway-detail__country {
  color: var(--accent2);
}

.pathway-detail__title {
  color: var(--text);
}

.pathway-detail__summary {
  color: var(--muted);
}

.pathway-detail__meta-pill {
  background: var(--card2);
  color: var(--text);
  border: 1px solid var(--border);
}

.pathway-detail__meta-icon {
  color: var(--accent2);
}

.pathway-detail__body {
  color: var(--text);
}

.pathway-detail__section-title {
  color: var(--accent2);
}

.pathway-detail__description {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text);
}

.pathway-detail__list li {
  color: var(--muted);
}

.pathway-detail__list li strong,
.pathway-detail__list li b {
  color: var(--text);
}

.pathway-detail__list li::before {
  background: var(--accent2);
}

.pathway-detail__list--steps li::before {
  background: var(--accent);
  color: #fff;
}

.pathway-detail__list--errors li::before {
  background: #ef4444;
}

.pathway-detail__list--for-whom li::before {
  background: #22c55e;
}

.pathway-detail__footer {
  background: var(--card2);
  border-top: 1px solid var(--border);
}

.pathway-detail__source {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.pathway-detail__source:hover {
  background: var(--accent2);
  border-color: var(--accent2);
}

.pathway-detail__source.is-disabled {
  background: var(--card);
  color: var(--muted);
  border-color: var(--border);
}

/* ── Eligibility tool ──────────────────────────────────────────────── */
#tool-eligibility .calc-form.eligibility-tool {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

#tool-eligibility .calc-form.eligibility-tool > h3 {
  color: var(--text);
}

.eligibility-tool__grid .form-group label {
  color: var(--muted);
}

.eligibility-tool__summary {
  color: var(--muted);
}

.eligibility-tool__summary strong {
  color: var(--text);
}

.eligibility-summary__chip {
  background: var(--card2);
  color: var(--muted);
  border: 1px solid var(--border);
}

.eligibility-summary__chip--eligible {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.35);
}

.eligibility-summary__chip--maybe {
  background: rgba(234, 179, 8, 0.18);
  color: #fde68a;
  border-color: rgba(234, 179, 8, 0.35);
}

.eligibility-summary__chip--ineligible {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.35);
}

.eligibility-result {
  background: var(--card2);
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.eligibility-result::before {
  background: var(--border);
}

.eligibility-result--eligible::before    { background: #22c55e; }
.eligibility-result--maybe::before       { background: #eab308; }
.eligibility-result--ineligible::before  { background: #ef4444; }

.eligibility-result__status {
  background: var(--card);
  color: var(--muted);
  border: 1px solid var(--border);
}

.eligibility-result--eligible .eligibility-result__status {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.35);
}

.eligibility-result--maybe .eligibility-result__status {
  background: rgba(234, 179, 8, 0.18);
  color: #fde68a;
  border-color: rgba(234, 179, 8, 0.35);
}

.eligibility-result--ineligible .eligibility-result__status {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.35);
}

.eligibility-result__category {
  color: var(--muted);
}

.eligibility-result__title {
  color: var(--text);
}

.eligibility-result__summary {
  color: var(--muted);
}

.eligibility-result__reasons li {
  color: var(--muted);
}

.eligibility-result__reasons li::before {
  color: var(--accent2);
}

.eligibility-result__cta {
  color: var(--accent2);
}

.eligibility-tool__empty {
  color: var(--muted);
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* ── Pathway spotlight (Explorar view) ─────────────────────────────── */
.pathway-spotlight {
  background: linear-gradient(135deg, rgba(74, 154, 168, 0.14), rgba(56, 119, 126, 0.04));
  border: 1px solid var(--border);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
}

.pathway-spotlight__kicker {
  color: var(--accent2);
}

.pathway-spotlight__title {
  color: var(--text);
}

.pathway-spotlight__subtitle {
  color: var(--muted);
}

.pathway-spotlight__card {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
}

.pathway-spotlight__card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
}

.pathway-spotlight__card:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 2px;
}

.pathway-spotlight__label {
  color: var(--text);
}

.pathway-spotlight__count {
  color: var(--muted);
}

/* ════════════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — comprehensive overhaul
   Appended last to override the fragmented breakpoints earlier in the file.
   Breakpoints:
     ≤ 960px  → tablet portrait: compact spacing, grid 2cols
     ≤ 768px  → small tablet / big phone: single column, stacked filters
     ≤ 480px  → phone portrait: drawer full-width, tighter typography
     ≤ 380px  → small phone: ultra compact
   ════════════════════════════════════════════════════════════════════════ */

/* ── Tablet portrait ≤ 960px ──────────────────────────────────────── */
@media (max-width: 960px) {
  .pathways-shell {
    padding: 1.25rem 0.85rem 2.5rem;
    gap: 1.35rem;
  }
  .pathways-hero {
    padding: 1.35rem 1.35rem;
  }
  .pathways-hero__title {
    font-size: 1.55rem;
  }
  .pathways-hero__subtitle {
    font-size: 0.94rem;
  }
  .pathways-filters {
    padding: 0.95rem 1rem;
    gap: 0.75rem;
  }
  .pathways-filter {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 0;
  }
  .pathways-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
  }
  .pathway-card {
    padding: 1.1rem 1.1rem 0.95rem;
  }
  .eligibility-tool__grid {
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 0.75rem;
  }
  .eligibility-tool__grid-results {
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  }
  .pathway-spotlight {
    padding: 1.1rem 1.15rem 1.25rem;
  }
  .pathway-spotlight__categories {
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 0.65rem;
  }
}

/* ── Small tablet / big phone ≤ 768px ─────────────────────────────── */
@media (max-width: 768px) {
  .pathways-shell {
    padding: 1rem 0.75rem 2rem;
    gap: 1.15rem;
  }
  .pathways-hero {
    padding: 1.15rem 1.1rem;
    border-radius: 16px;
  }
  .pathways-hero__kicker {
    font-size: 0.72rem;
  }
  .pathways-hero__title {
    font-size: 1.4rem;
  }
  .pathways-hero__subtitle {
    font-size: 0.9rem;
  }

  .pathways-filters {
    padding: 0.85rem 0.9rem;
    gap: 0.65rem;
    border-radius: 12px;
  }
  .pathways-filter {
    flex: 1 1 100%;
    min-width: 0;
  }
  .pathways-filter__label {
    font-size: 0.78rem;
  }
  .pathways-filter__input {
    font-size: 16px; /* prevent iOS zoom on focus */
    padding: 0.7rem 0.8rem;
    min-height: 44px; /* touch target */
  }

  .pathways-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
  .pathway-card {
    padding: 1rem 1rem 0.9rem;
    gap: 0.7rem;
  }
  .pathway-card__title {
    font-size: 1.05rem;
  }
  .pathway-card__summary {
    font-size: 0.88rem;
    -webkit-line-clamp: 3;
  }
  .pathway-card__meta {
    gap: 0.4rem 0.75rem;
    font-size: 0.75rem;
  }

  /* Intent picker — horizontal scroll on small */
  .visas-intent {
    margin: 0 0.5rem 1rem;
    padding: 0.85rem 0.9rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }
  .visas-intent__options {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0.1rem 0.1rem 0.3rem;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .visas-intent__chip {
    flex: 0 0 auto;
    scroll-snap-align: start;
    min-height: 40px;
  }

  /* Eligibility tool */
  .eligibility-tool__grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
  .eligibility-tool__grid-results {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .eligibility-tool__summary {
    font-size: 0.85rem;
  }
  .eligibility-result {
    padding: 0.9rem 1rem 1rem;
  }
  .eligibility-result__title {
    font-size: 0.98rem;
  }
  .eligibility-result__summary {
    font-size: 0.85rem;
    -webkit-line-clamp: 4;
  }
  #tool-eligibility .calc-form.eligibility-tool {
    padding: 1rem 0.95rem;
  }
  #tool-eligibility .calc-form.eligibility-tool > h3 {
    font-size: 1.05rem;
  }
  #tool-eligibility .form-group input,
  #tool-eligibility .form-group select {
    font-size: 16px; /* prevent iOS zoom */
    min-height: 44px;
  }

  /* Drawer — full width, tighter */
  .pathway-detail__panel {
    width: 100%;
    max-width: 100%;
    box-shadow: none;
  }
  .pathway-detail__header {
    padding: 0.95rem 1.1rem 0.85rem;
    gap: 0.45rem;
  }
  .pathway-detail__title {
    font-size: 1.15rem;
  }
  .pathway-detail__summary {
    font-size: 0.88rem;
  }
  .pathway-detail__body {
    padding: 0.95rem 1.1rem 1.2rem;
    gap: 1.05rem;
  }
  .pathway-detail__meta-row {
    gap: 0.35rem 0.45rem;
  }
  .pathway-detail__meta-pill {
    font-size: 0.72rem;
    padding: 0.22rem 0.5rem;
  }
  .pathway-detail__section-title {
    font-size: 0.72rem;
  }
  .pathway-detail__description,
  .pathway-detail__list li {
    font-size: 0.88rem;
  }
  .pathway-detail__footer {
    padding: 0.8rem 1.1rem;
    /* iOS safe-area for home bar */
    padding-bottom: calc(0.8rem + env(safe-area-inset-bottom, 0px));
  }
  .pathway-detail__source {
    min-height: 44px;
    padding: 0.7rem 1.1rem;
    font-size: 0.92rem;
  }
  .pathway-detail__close {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.15rem;
  }

  /* Spotlight */
  .pathway-spotlight {
    margin: 0 0.5rem 1rem;
    padding: 0.95rem 1rem 1.1rem;
    border-radius: 16px;
  }
  .pathway-spotlight__title {
    font-size: 1.2rem;
  }
  .pathway-spotlight__subtitle {
    font-size: 0.88rem;
  }
  .pathway-spotlight__categories {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
  }
  .pathway-spotlight__card {
    padding: 0.75rem 0.85rem;
    min-height: 44px;
  }
}

/* ── Phone portrait ≤ 480px ───────────────────────────────────────── */
@media (max-width: 480px) {
  .pathways-shell {
    padding: 0.85rem 0.6rem 1.75rem;
    gap: 1rem;
  }
  .pathways-hero {
    padding: 1rem 0.95rem;
  }
  .pathways-hero__title {
    font-size: 1.25rem;
  }
  .pathways-hero__subtitle {
    font-size: 0.86rem;
    line-height: 1.5;
  }

  .pathway-card {
    padding: 0.9rem 0.95rem 0.85rem;
    border-radius: 14px;
  }
  .pathway-card__header {
    gap: 0.4rem;
  }
  .pathway-card__flag {
    font-size: 1.5rem;
  }
  .pathway-card__badge {
    font-size: 0.65rem;
    padding: 0.22rem 0.45rem;
  }
  .pathway-card__title {
    font-size: 1rem;
  }
  .pathway-card__summary {
    font-size: 0.84rem;
  }
  .pathway-card__meta {
    gap: 0.3rem 0.6rem;
    font-size: 0.72rem;
    padding-top: 0.5rem;
  }
  .pathway-card__cta {
    font-size: 0.82rem;
  }

  /* Drawer */
  .pathway-detail__flag {
    font-size: 1.6rem;
  }
  .pathway-detail__title {
    font-size: 1.05rem;
  }
  .pathway-detail__body {
    padding: 0.85rem 0.95rem 1.1rem;
    gap: 0.95rem;
  }
  .pathway-detail__list li {
    padding-left: 1.35rem;
    font-size: 0.85rem;
  }
  .pathway-detail__list--steps li::before {
    left: 0;
    width: 1.1rem;
    height: 1.1rem;
    font-size: 0.7rem;
  }

  /* Eligibility */
  .eligibility-result {
    padding: 0.85rem 0.9rem 0.95rem;
  }
  .eligibility-result__flag {
    font-size: 1.35rem;
  }
  .eligibility-result__title {
    font-size: 0.92rem;
  }
  .eligibility-result__summary {
    font-size: 0.82rem;
  }
  .eligibility-summary__chip {
    font-size: 0.72rem;
  }

  /* Spotlight */
  .pathway-spotlight {
    padding: 0.85rem 0.9rem 1rem;
  }
  .pathway-spotlight__categories {
    grid-template-columns: 1fr 1fr;
  }
  .pathway-spotlight__card {
    padding: 0.65rem 0.75rem;
    font-size: 0.85rem;
  }
  .pathway-spotlight__emoji {
    font-size: 1.2rem;
  }

  /* Intent */
  .visas-intent {
    margin: 0 0.35rem 0.85rem;
    padding: 0.75rem 0.8rem;
  }
  .visas-intent__chip {
    font-size: 0.82rem;
    padding: 0.45rem 0.75rem;
  }
}

/* ── Small phone ≤ 380px ──────────────────────────────────────────── */
@media (max-width: 380px) {
  .pathways-shell {
    padding: 0.75rem 0.5rem 1.5rem;
  }
  .pathways-hero__title {
    font-size: 1.15rem;
  }
  .pathway-card__title {
    font-size: 0.95rem;
  }
  .pathway-card__summary {
    font-size: 0.82rem;
    -webkit-line-clamp: 3;
  }
  .pathway-card__meta {
    font-size: 0.68rem;
  }
  .pathway-detail__title {
    font-size: 1rem;
  }
  .pathway-spotlight__categories {
    grid-template-columns: 1fr;
  }
}

/* ── Landscape short viewport: drawer never taller than visible area ── */
@media (max-height: 520px) and (max-width: 900px) {
  .pathway-detail__header {
    padding-top: 0.7rem;
    padding-bottom: 0.6rem;
  }
  .pathway-detail__body {
    padding-top: 0.75rem;
    padding-bottom: 0.9rem;
  }
  .pathway-detail__footer {
    padding-top: 0.6rem;
    padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px));
  }
}
