/* These styles are generated from project.scss. */

.alert-debug {
  color: black;
  background-color: white;
  border-color: #d6e9c6;
}

.alert-error {
  color: #b94a48;
  background-color: #f2dede;
  border-color: #eed3d7;
}

/* ==========================================================================
   Visa detail page  (design handoff: design_handoff_visa_detail_page)
   --------------------------------------------------------------------------
   Only what Bootstrap 5 cannot already express lives here: the palette, the
   hairline tile grid, the amber conditions panel, and the JS-free FAQ marker.
   Layout, spacing and breakpoints are Bootstrap utilities in the template.

   No webfont: the design was re-confirmed on the system stack, which is what
   Bootstrap already ships. A render-blocking font on ~40k SEO pages is not
   worth it.
   ========================================================================== */

:root {
  --vr-accent: #2a6fdb;
  --vr-accent-hover: #1b5bc0;
  --vr-dark: #12233f;
  --vr-ink: #1a1d24;
  --vr-body: #5b6472;
  --vr-body-strong: #404755;
  /* The handoff specifies #8892a0 / #98a1b0. Both are used for REAL label text at 10.5-13px —
     the tile labels, the eyebrows, the source lines — where they measure 3.15:1 and 2.7:1 against
     white and fail WCAG AA (4.5:1 for small text). Darkened to the nearest passing values: 4.83:1
     and 4.69:1. Note the consequence: at these sizes AA leaves almost no room for a two-tier muted
     palette, so the "soft" tier is now barely distinguishable from the normal one. Worth taking
     back to the designer rather than pretending it still reads as two levels. */
  --vr-muted: #6b7280;
  --vr-muted-soft: #6e7481;
  --vr-hairline: #e4e7ec;
  --vr-hairline-soft: #eef0f3;
  --vr-tile-line: #e9edf2;
  --vr-page-bg: #f2f3f5;
}

body.vr-page {
  background: var(--vr-page-bg);
}

/* The page sits on one white card. */
.vr-shell {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .07), 0 20px 50px -30px rgba(0, 0, 0, .25);
}

.vr-ink { color: var(--vr-ink); }
.vr-muted { color: var(--vr-muted); }
.vr-body-text { color: var(--vr-body); }

.vr-h1 {
  font-size: 33px;
  line-height: 1.13;
  font-weight: 700;
  letter-spacing: -.02em;
}

.vr-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--vr-muted);
}

/* Verdict strip -------------------------------------------------------- */
.vr-verdict {
  border: 1px solid var(--vr-hairline);
  border-radius: 14px;
  background: linear-gradient(90deg, #fbfcfe, #f4f8ff);
}

.vr-flag {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .1);
}

/* Entry conditions ----------------------------------------------------- */
/* Amber rather than the page's blue: these are the rules that get a traveller
   denied BOARDING, so they must not read as another neutral info card. */
.vr-conditions {
  border: 1px solid #f0e3c2;
  background: #fdfaf1;
  border-radius: 14px;
}

.vr-conditions .vr-cond-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #b7860b;
}

.vr-conditions .vr-cond-value {
  font-size: 13px;
  line-height: 1.5;
  color: #3f3620;
  font-weight: 500;
}

.vr-conditions .vr-cond-row + .vr-cond-row {
  border-top: 1px solid #f0e6cf;
}

/* Route cards ---------------------------------------------------------- */
.vr-route { border: 1px solid var(--vr-hairline); border-radius: 14px; background: #fff; }
.vr-route.vr-route-primary { border-color: #cfe0ff; background: #fbfcff; }

.vr-chip {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--vr-dark);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.vr-pill { font-size: 10px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.vr-pill-primary { color: var(--vr-accent); background: #e8f0ff; }
.vr-pill-neutral { color: var(--vr-body); background: var(--vr-hairline-soft); }

/* Fact tiles: hairlines are the 1px grid gap showing the backing colour. The
   grid sizes itself to however many tiles rendered, so a route with no allowed
   stay gets two even tiles rather than a gap. */
.vr-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 1px;
  background: var(--vr-tile-line);
  border: 1px solid var(--vr-tile-line);
  border-radius: 10px;
  overflow: hidden;
}

.vr-tile { background: #fff; padding: 11px 13px; }
.vr-tile-label { font-size: 10.5px; color: var(--vr-muted); font-weight: 500; letter-spacing: .03em; }
.vr-tile-value { font-size: 14px; font-weight: 700; margin-top: 2px; }

.vr-detail-box { border: 1px solid var(--vr-hairline); background: #fbfcfd; border-radius: 10px; }
.vr-detail-dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 18px; font-size: 12.5px; }

.vr-btn-accent {
  background: var(--vr-accent);
  color: #fff;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 16px;
}
.vr-btn-accent:hover { background: var(--vr-accent-hover); color: #fff; }

.vr-btn-dark {
  background: var(--vr-dark);
  color: #fff;
  border-radius: 9px;
  font-weight: 600;
  padding: 11px 20px;
}
.vr-btn-dark:hover { background: #1c3459; color: #fff; }

/* Partner CTA. Carries the site's revenue, so it gets accent weight rather than the neutral grey
   it had — but it stays visually distinct from a route card, because it is not one. */
.vr-partner {
  border: 1px solid #cfe0ff;
  background: linear-gradient(90deg, #f7faff, #eef4ff);
  border-radius: 14px;
}

.vr-partner-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--vr-accent);
}

.vr-partner-btn {
  background: var(--vr-accent);
  color: #fff;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 22px;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(42, 111, 219, .3), 0 6px 16px -8px rgba(42, 111, 219, .6);
}
.vr-partner-btn:hover { background: var(--vr-accent-hover); color: #fff; }

/* FAQ: native <details>, no JS. The "+" rotates into an "x" when open. */
.vr-faq { border: 1px solid var(--vr-hairline); border-radius: 14px; overflow: hidden; }
.vr-faq details + details { border-top: 1px solid var(--vr-hairline-soft); }
.vr-faq summary { list-style: none; cursor: pointer; font-size: 13.5px; font-weight: 600; }
.vr-faq summary::-webkit-details-marker { display: none; }
.vr-faq summary .vr-faq-icon { transition: transform .2s; flex: none; }
.vr-faq details[open] summary .vr-faq-icon { transform: rotate(45deg); }

/* Passport hub + countries index --------------------------------------- */
.vr-cat { border: 1px solid var(--vr-hairline); border-radius: 14px; overflow: hidden; }
.vr-cat summary { list-style: none; cursor: pointer; }
.vr-cat summary::-webkit-details-marker { display: none; }

/* Destination / country rows: the whole row is the hit area, not just the text. */
.vr-dest a:hover,
.vr-country a:hover { background: #f4f7fd; }

/* A-Z jump nav. Inactive letters stay visible but unclickable — a bar that silently drops letters
   is harder to scan than one that shows the gap. */
.vr-az {
  display: inline-block;
  min-width: 24px;
  padding: 2px 0;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  color: var(--vr-accent);
}
.vr-az:hover { background: #e8f0ff; }
.vr-az-off { color: #c3c8d1; cursor: default; }

.vr-region-pill {
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--vr-hairline);
  background: #fff;
  color: var(--vr-body);
}
.vr-region-pill:hover { background: var(--vr-hairline-soft); }
.vr-region-pill.active {
  background: var(--vr-accent);
  border-color: var(--vr-accent);
  color: #fff;
}

/* Map country hover, for the pointer-having minority. */
.vr-map-c { transition: opacity .15s; }
svg:hover .vr-map-c:hover { opacity: .75; }

/* Follows the cursor, so it must never be a hit target itself — pointer-events:none stops it
   sitting under the pointer and triggering mouseleave on the country underneath. */
.vr-map-tip {
  position: fixed;
  z-index: 1080;
  pointer-events: none;
  background: var(--vr-dark);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  padding: 6px 10px;
  border-radius: 7px;
  max-width: 260px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}

/* Landing page ---------------------------------------------------------- */
/* The hero band is full-bleed, so this page opts out of base.html's .container
   via .vr-page-flush and each section caps its own width instead. */
.vr-page-flush > .container { max-width: none; padding: 0; }

.lp-hero { background: radial-gradient(120% 120% at 50% -20%, #eaf1ff 0%, var(--vr-page-bg) 55%); }

.lp-fresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #1f7a44;
  background: #e7f4ec;
  padding: 6px 12px;
  border-radius: 999px;
}
.lp-fresh-dot { width: 6px; height: 6px; border-radius: 50%; background: #22a35a; }

.lp-h1 { font-size: 44px; line-height: 1.08; font-weight: 700; letter-spacing: -.025em; }
.lp-h2 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.lp-lead { max-width: 560px; font-size: 16px; line-height: 1.55; color: var(--vr-body); }

.lp-card {
  max-width: 620px;
  background: #fff;
  border: 1px solid var(--vr-hairline);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 24px 50px -30px rgba(0, 0, 0, .28);
  padding: 26px;
}

.lp-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--vr-body);
  margin-bottom: 6px;
}

/* The design's select. Bootstrap's .form-select supplies the caret and focus
   ring; these are the handoff's box metrics on top. */
select.lp-sel {
  font-size: 14px;
  color: var(--vr-ink);
  padding: 12px 38px 12px 14px;
  border: 1px solid var(--vr-hairline);
  border-radius: 10px;
}
select.lp-sel:focus { border-color: var(--vr-accent); box-shadow: 0 0 0 .2rem rgba(42, 111, 219, .15); }

.lp-field-error, .lp-alert { font-size: 12.5px; }
.lp-field-error { color: #b42318; margin-top: 5px; }

.lp-btn {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--vr-accent);
  border: none;
  padding: 14px;
  border-radius: 11px;
}
.lp-btn:hover { background: var(--vr-accent-hover); color: #fff; }

.lp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 620px;
}
.lp-stat-value { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.lp-stat-label { font-size: 12.5px; color: var(--vr-body); margin-top: 2px; }

.lp-strip-label { font-size: 13px; font-weight: 600; color: var(--vr-body); }
.lp-strip-all { font-size: 13px; font-weight: 600; text-decoration: none; }

.lp-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--vr-ink);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--vr-hairline);
  padding: 6px 12px;
  border-radius: 999px;
}
.lp-chip:hover { background: #e8f0ff; border-color: #cfe0ff; }
.lp-chip img { border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }

.lp-step {
  background: #fff;
  border: 1px solid var(--vr-hairline);
  border-radius: 14px;
  padding: 20px;
}
.lp-step-n {
  display: inline-flex;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--vr-dark);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
}
.lp-step-title { font-size: 14.5px; font-weight: 700; margin-top: 12px; }
.lp-step-text { font-size: 13px; line-height: 1.55; color: var(--vr-body); margin-top: 5px; }

.lp-faq-answer { font-size: 13px; line-height: 1.6; color: var(--vr-body); }

/* Footer: site-wide, dark, and the crawl path into the passport hubs. */
.lp-footer { background: var(--vr-dark); color: #c7d0de; }
.lp-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
}
/* The navbar mark, scaled down. flex:none stops it squashing when the wordmark wraps. */
.lp-footer-mark {
  width: 28px;
  height: 28px;
  flex: none;
  object-fit: contain;
}
.lp-footer-tld { color: #93a1b8; font-weight: 500; }
.lp-footer-blurb { font-size: 12.5px; line-height: 1.6; max-width: 260px; color: #93a1b8; }
.lp-footer-contact { font-size: 12.5px; }
.lp-footer-contact a { color: #8fb4ff; text-decoration: none; }
.lp-footer-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8194ad;
  margin-bottom: 12px;
}
.lp-footer-link {
  display: block;
  font-size: 12.5px;
  color: #c7d0de;
  text-decoration: none;
  line-height: 2;
}

/* Keyword-rich anchor text on one line. Tightened line-height because these sit in a single
   column, and allowed to wrap below sm where the column is too narrow to hold them. */
.lp-footer-link-wide { line-height: 1.75; white-space: nowrap; }

@media (max-width: 575.98px) {
  .lp-footer-link-wide { white-space: normal; }
}
.lp-footer-link:hover { color: #fff; }
.lp-footer-legal {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 16px;
  font-size: 11.5px;
  color: #8194ad;
}

/* Responsive ----------------------------------------------------------- */
/* Bootstrap's grid handles the column stack; these are the type/rhythm steps
   the handoff specifies at each breakpoint. */
@media (max-width: 767.98px) {
  .vr-h1 { font-size: 26px; }
  .vr-detail-dl { grid-template-columns: repeat(2, 1fr); }
  .lp-h1 { font-size: 32px; }
}

@media (max-width: 479.98px) {
  /* Tiles stack rather than scroll: values must never wrap mid-word. */
  .vr-tiles { grid-template-columns: 1fr; }
  .vr-detail-dl { grid-template-columns: 1fr; }
}
