/* Visa checklists: app-style step flow (passport, destination, checklist).
   Loaded only on /visa-checklists pages, after tokens.css and site.css.
   Brand tokens: tokens.css. Rust buttons on light, Coral only on Deep. */

@view-transition { navigation: auto; }

.vcx { background: var(--stp-paper); color: var(--stp-ink); padding-bottom: var(--stp-space-6); }
/* The step band sits right under the site header. Breadcrumbs stay in the
   page for screen readers and in the JSON-LD; the back button and the choice
   chips do their job on screen. */
.stp-main--bleed:has(> .vcx) > .stp-breadcrumbs { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vcx-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Step band */
.vcx-band { background: var(--stp-deep); color: var(--stp-on-dark); }
.vcx-band__inner { max-width: 46rem; margin: 0 auto; padding: 1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: 0.875rem; }
.vcx-band__top { display: flex; align-items: center; gap: 0.75rem; min-height: var(--stp-target); }
.vcx-band__title { margin: 0; font-family: var(--stp-font-display); font-weight: 600; font-size: 1.0625rem; }
.vcx-band__step { margin: 0 0 0 auto; font-size: 0.875rem; color: var(--stp-on-dark-muted); }
.vcx-back { width: var(--stp-target); height: var(--stp-target); border-radius: var(--stp-radius-pill); border: 1px solid rgba(220, 233, 223, 0.35); background: var(--stp-juniper); color: var(--stp-on-dark) !important; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vcx-back:focus-visible, .vcx-chip:focus-visible { outline: 3px solid var(--stp-focus-on-dark); outline-offset: 2px; }
.vcx-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.375rem; }
.vcx-progress span { height: 4px; border-radius: var(--stp-radius-pill); background: var(--stp-juniper); }
.vcx-progress span.is-on { background: var(--stp-coral); }
.vcx-crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.vcx-chip { min-height: 2.5rem; padding: 0.375rem 0.875rem 0.375rem 0.5rem; border-radius: var(--stp-radius-pill); border: 1px solid rgba(220, 233, 223, 0.35); background: var(--stp-juniper); color: var(--stp-on-dark) !important; text-decoration: none !important; font-size: 0.875rem; display: inline-flex; align-items: center; gap: 0.5rem; }
.vcx-chip img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(220, 233, 223, 0.4); }

/* Body */
.vcx-body { max-width: 46rem; margin: 0 auto; padding: 1.75rem 1.25rem 0; display: flex; flex-direction: column; gap: 1.125rem; }
.vcx-body--checklist { padding-bottom: 0; }
.vcx-h1 { margin: 0; font-family: var(--stp-font-display); font-weight: 600; font-size: clamp(1.75rem, 4vw, 2.375rem); line-height: 1.15; letter-spacing: -0.02em; }
.vcx-h2 { margin: 0.5rem 0 0.75rem; font-family: var(--stp-font-display); font-weight: 600; font-size: 1.375rem; }
.vcx-lead { margin: 0; color: var(--stp-muted); font-size: 1rem; line-height: 1.55; }
.vcx-kicker { margin: 0 0 -0.5rem; color: var(--stp-rust); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.vcx-fine { margin: 0.5rem 0 0; color: var(--stp-muted); font-size: 0.875rem; line-height: 1.55; }
.vcx-link { font-weight: 600; color: var(--stp-rust); }

/* Category pills */
.vcx-cats { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.vcx-cat { min-height: 2.5rem; padding: 0.5rem 1rem; border-radius: var(--stp-radius-pill); font-size: 0.9375rem; display: inline-flex; align-items: center; }
.vcx-cat.is-on { background: var(--stp-deep); color: var(--stp-on-dark); font-weight: 600; }
.vcx-cat.is-soon { border: 1px dashed var(--stp-control-border); color: var(--stp-muted); }

/* Rows: passports and destinations */
.vcx-list { list-style: none; margin: 0; padding: 0 !important; display: flex; flex-direction: column; gap: 0.625rem; }
.vcx-list li { margin: 0; }
@media (min-width: 48rem) { .vcx-list--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vcx-row { min-height: 4.5rem; padding: 0.75rem 1rem; border-radius: 1.125rem; display: flex; align-items: center; gap: 0.875rem; background: var(--stp-white); border: 1px solid var(--stp-hairline); box-shadow: 0 6px 18px rgba(15, 41, 38, 0.06); color: var(--stp-ink) !important; text-decoration: none !important; }
a.vcx-row:hover { border-color: var(--stp-rust); }
a.vcx-row:focus-visible { outline: 3px solid var(--stp-focus); outline-offset: 2px; }
.vcx-row.is-off { opacity: 0.65; box-shadow: none; }
.vcx-flag { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(15, 41, 38, 0.15); }
.vcx-row__text { display: flex; flex-direction: column; gap: 0.25rem; flex: 1; min-width: 0; }
.vcx-row__head { display: flex; align-items: center; gap: 0.5rem; }
.vcx-row__title { font-size: 1.0625rem; font-weight: 600; min-width: 0; }
.vcx-row__meta { font-size: 0.875rem; color: var(--stp-muted); }
.vcx-row__meta strong { color: var(--stp-ink); }
.vcx-row__chev { color: var(--stp-muted); flex-shrink: 0; }
.vcx-badge { font-size: 0.75rem; font-weight: 600; padding: 0.1875rem 0.5625rem; border-radius: var(--stp-radius-pill); white-space: nowrap; }
.vcx-badge--ok { background: var(--stp-aloe); color: var(--stp-juniper); }
.vcx-badge--paused { background: var(--stp-rust); color: var(--stp-white); }
.vcx-badge--off { background: #E8E3D8; color: var(--stp-muted); }
.vcx-badge--nat { background: var(--stp-paper); color: var(--stp-rust); }
.vcx-row__head .vcx-badge { margin-left: auto; }

/* Search */
.vcx-search { display: flex; align-items: center; gap: 0.625rem; min-height: 3rem; padding: 0 0.875rem; border-radius: 0.875rem; border: 1px solid var(--stp-control-border); background: var(--stp-white); color: var(--stp-muted); }
.vcx-search:focus-within { outline: 3px solid var(--stp-focus); outline-offset: 2px; }
.vcx-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--stp-ink); padding: 0.75rem 0; }
.vcx-search input:focus { outline: none; }
.vcx-empty { margin: 0; padding: 1rem; border-radius: 0.875rem; background: var(--stp-white); color: var(--stp-muted); }
[hidden] { display: none !important; }

/* Checklist */
.vcx-alert { padding: 0.875rem 1rem; border-radius: 1rem; background: var(--stp-rust); color: var(--stp-white); line-height: 1.5; }
.vcx-alert strong { display: block; }
.vcx-ready { display: flex; align-items: center; gap: 1rem; padding: 1rem; border-radius: 1.25rem; background: var(--stp-deep); color: var(--stp-on-dark); }
.vcx-ring { flex-shrink: 0; }
.vcx-ring circle { fill: none; stroke-width: 10; }
.vcx-ring__bg { stroke: var(--stp-juniper); }
.vcx-ring__fg { opacity: 0; stroke: var(--stp-coral); stroke-linecap: round; transition: stroke-dasharray 0.4s var(--stp-ease); }
.vcx-ring text { fill: var(--stp-on-dark); font-family: var(--stp-font-display); font-weight: 600; font-size: 18px; }
.vcx-ready__title { margin: 0; font-family: var(--stp-font-display); font-weight: 600; font-size: 1.0625rem; }
.vcx-ready__sub { margin: 0.25rem 0 0; color: var(--stp-on-dark-muted); font-size: 0.875rem; line-height: 1.45; }

.vcx-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; }
.vcx-fact { padding: 0.875rem; border-radius: 1rem; background: var(--stp-white); display: flex; flex-direction: column; gap: 0.25rem; }
.vcx-fact--wide { grid-column: span 2; }
.vcx-fact__label { font-size: 0.8125rem; color: var(--stp-muted); }
.vcx-fact__value { font-family: var(--stp-font-display); font-weight: 600; font-size: 1.25rem; }
.vcx-fact__note { font-size: 0.8125rem; line-height: 1.4; color: var(--stp-muted); }
.vcx-fact__text { font-weight: 600; line-height: 1.45; }
@media (min-width: 40rem) { .vcx-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } .vcx-fact--wide { grid-column: span 1; } }

.vcx-card { padding: 1rem; border-radius: 1rem; background: var(--stp-white); line-height: 1.55; }
.vcx-card p { margin: 0.5rem 0 0; }
.vcx-card--aloe { background: var(--stp-aloe); }
.vcx-card--warn { border: 1px solid rgba(168, 67, 38, 0.4); }
.vcx-card--warn .vcx-card__h svg { color: var(--stp-rust); }
.vcx-card__h { margin: 0; display: flex; align-items: center; gap: 0.5rem; font-family: var(--stp-font-display); font-weight: 600; font-size: 1.0625rem; }
.vcx-card__sub { font-size: 0.9375rem; }
.vcx-warn { margin: 0.5rem 0 0; padding-left: 1.125rem; display: flex; flex-direction: column; gap: 0.5rem; }

.vcx-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 0.25rem; padding: 0.25rem; margin-bottom: 0.75rem; border-radius: 0.875rem; background: var(--stp-aloe); }
.vcx-tab { min-height: var(--stp-target); border: 0; border-radius: 0.625rem; background: transparent; color: var(--stp-juniper); font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer; padding: 0.375rem 0.25rem; }
.vcx-tab[aria-selected="true"] { background: var(--stp-deep); color: var(--stp-on-dark); }
.vcx-tab:focus-visible { outline: 3px solid var(--stp-focus); outline-offset: 2px; }
.vcx-tab__n { font-weight: 400; opacity: 0.85; }
.vcx-tabs-on .vcx-group__h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.vcx-group__h { margin: 1rem 0 0.5rem; font-size: 1rem; }

.vcx-docs { list-style: none; margin: 0; padding: 0 !important; display: flex; flex-direction: column; gap: 0.5rem; }
.vcx-doc { position: relative; margin: 0; padding: 0.75rem 0.875rem; border-radius: 0.875rem; background: var(--stp-white); border: 1px solid var(--stp-hairline); transition: background-color 0.15s ease, border-color 0.15s ease; }
.vcx-doc__box { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vcx-doc__label { display: flex; align-items: flex-start; gap: 0.75rem; cursor: pointer; min-height: 1.75rem; }
.vcx-doc__tick { width: 24px; height: 24px; border-radius: 0.5rem; border: 2px solid var(--stp-control-border); background: var(--stp-white); color: transparent; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; transition: background-color 0.15s ease, border-color 0.15s ease; }
.vcx-doc__text { line-height: 1.45; }
.vcx-doc__meta { padding-left: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; }
.vcx-doc__meta:empty { display: none; }
.vcx-doc__note { margin: 0.25rem 0 0; width: 100%; font-size: 0.875rem; color: var(--stp-muted); line-height: 1.45; }
.vcx-doc__box:focus-visible + .vcx-doc__label .vcx-doc__tick { outline: 3px solid var(--stp-focus); outline-offset: 2px; }
.vcx-doc__box:checked + .vcx-doc__label .vcx-doc__tick { background: var(--stp-juniper); border-color: var(--stp-juniper); color: var(--stp-aloe); }
.vcx-doc__box:checked + .vcx-doc__label .vcx-doc__text { color: var(--stp-muted); text-decoration: line-through; }
.vcx-doc:has(.vcx-doc__box:checked) { background: #EEF4EF; border-color: var(--stp-juniper); }

.vcx-more { border-radius: 1rem; background: var(--stp-white); padding: 0 1rem; }
.vcx-more summary { min-height: var(--stp-target); display: flex; align-items: center; font-weight: 600; cursor: pointer; }
.vcx-more[open] { padding-bottom: 1rem; }
.vcx-fees { list-style: none; margin: 0; padding: 0 !important; display: flex; flex-direction: column; gap: 0.5rem; }
.vcx-fees li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem 0.75rem; margin: 0; }
.vcx-fees li > span:first-child { flex: 1 1 12rem; }
.vcx-dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 1rem; margin: 0.75rem 0 0; }
.vcx-dl dt { font-weight: 600; }
.vcx-dl dd { margin: 0; }
.vcx-sources { margin: 0; padding-left: 1.125rem; display: flex; flex-direction: column; gap: 0.375rem; line-height: 1.5; }

/* Action bar: stays at the bottom of the screen while the checklist scrolls */
.vcx-actions { position: sticky; bottom: 0; z-index: 5; margin: 0.5rem -1.25rem 0; padding: 0.75rem 1.25rem calc(0.75rem + env(safe-area-inset-bottom)); background: var(--stp-paper); border-top: 1px solid var(--stp-hairline); display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 0.625rem; }
.vcx-action { white-space: nowrap; min-height: 3.125rem; border-radius: 0.875rem; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-weight: 600; text-decoration: none !important; }
.vcx-action--ghost { border: 1px solid var(--stp-deep); color: var(--stp-deep) !important; background: var(--stp-white); }
.vcx-action--main { background: var(--stp-btn-light-bg); color: var(--stp-btn-light-text) !important; }
.vcx-action:focus-visible { outline: 3px solid var(--stp-focus); outline-offset: 2px; }

@media (max-width: 26rem) { .vcx-hide-sm { display: none; } }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .vcx-enter { animation: vcxIn 0.32s var(--stp-ease); }
  a.vcx-row { transition: transform 0.15s ease, border-color 0.15s ease; }
  a.vcx-row:active, .vcx-action:active, .vcx-tab:active { transform: scale(0.98); }
}
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
@keyframes vcxIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
