/* ============================================
   ElsewhereCo · visa.css
   The passport visa checker (assets/js/visa.js): a picker panel and a result
   panel on the site's own tokens. Loaded only by pages that mount it.
   Two panels side by side on desktop, stacked below 760px.
   ============================================ */

.visa-section .section-num { margin-bottom: 1.5rem; }
.visa-lead {
  max-width: 54ch;
  margin: 0 auto 2.75rem;
  text-align: center;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--text-soft);
  text-wrap: pretty;
}

.visa {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
  max-width: 1080px;
  margin: 0 auto;
}
@media (max-width: 760px) {
  .visa { grid-template-columns: minmax(0, 1fr); }
}

.visa-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
@media (max-width: 600px) {
  .visa-panel { padding: 1.4rem 1.25rem; }
}

/* ── Picker ────────────────────────────────── */

/* Caption row: the checker's name on one side, "TZA · ENTRY" on the other. */
.visa-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
body[dir="rtl"] .visa-caption {
  font-family: var(--sans-ar);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
}
/* The code stays Latin, tracked and upright in both languages. */
.visa-caption-code {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.visa-field + .visa-field { margin-top: 1.25rem; }
.visa-field[hidden] { display: none; }
.visa-field label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
body[dir="rtl"] .visa-field label {
  font-family: var(--sans-ar);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text);
}
.visa-field select {
  width: 100%;
  padding: 0.85rem 0;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--bg-card);
  color: var(--text);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--t-fast);
}
.visa-field select:hover { border-bottom-color: var(--line-bold); }
.visa-field select:focus {
  outline: none;
  border-bottom-color: var(--brand);
  border-bottom-width: 2px;
  padding-bottom: calc(0.85rem - 1px);
}
.visa-field select:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.visa-picker .visa-foot { margin-top: auto; padding-top: 1.75rem; }

/* ── Result ────────────────────────────────── */

.visa-status {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 1.1rem;
  align-items: center;
  padding-bottom: 1.4rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--line-strong);
}
.visa-badge {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.9rem;
  line-height: 1;
}
/* Success: the site's ink. Warning: the accent with its own ink on top, which
   is near-white in the light theme and forest in the dark one, so the glyph
   clears contrast on both grounds. No transition: the state must not flicker. */
.visa[data-tone="ok"] .visa-badge { background: var(--text); color: var(--bg); }
.visa[data-tone="warn"] .visa-badge { background: var(--brand); color: var(--brand-ink); }

.visa-status-text { min-width: 0; }
.visa-headline {
  margin: 0 0 0.3rem;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  text-wrap: balance;
}
body[dir="rtl"] .visa-headline { line-height: 1.3; }
.visa-sub {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-soft);
  text-wrap: pretty;
}

.visa-note {
  margin: 0 0 1.4rem;
  padding: 0.75rem 1rem;
  border-inline-start: 2px solid var(--brand);
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}
.visa-note[hidden] { display: none; }

.visa-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 2rem;
  margin: 0;
}
@media (max-width: 760px) {
  .visa-facts { grid-template-columns: 1fr; gap: 1rem; }
}
.visa-facts > div { min-width: 0; }
.visa-facts dt {
  margin-bottom: 0.35rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
body[dir="rtl"] .visa-facts dt {
  font-family: var(--sans-ar);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
}
.visa-facts dd {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-wrap: pretty;
}

.visa-foot {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.visa-result .visa-foot {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.visa-foot a {
  color: var(--text-soft);
  text-decoration: underline;
  text-decoration-color: var(--line-bold);
  text-underline-offset: 3px;
  transition: color var(--t-fast), text-decoration-color var(--t-fast);
}
@media (hover: hover) and (pointer: fine) {
  .visa-foot a:hover { color: var(--brand); text-decoration-color: var(--brand); }
}
.visa-foot a:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
