:root {
  color-scheme: light;
  --ink: #17201f;
  --muted: #5d6966;
  --paper: #f6f4ee;
  --surface: #fffdf8;
  --line: #d9d8cf;
  --green: #174c41;
  --green-soft: #dce9e3;
  --amber: #9b5c12;
  --amber-soft: #f8ead2;
  --red: #9a352d;
  --shadow: 0 24px 70px rgb(23 32 31 / 9%);
  --night: #0c2b25;
  --night-2: #14463b;
  --gold: #f0b45b;
  --gold-deep: #e39d35;
  --blue: #1d4f91;
  --blue-soft: #dde9f8;
  --violet: #5b3a8c;
  --violet-soft: #ebe3f6;
  --yellow: #7a5600;
  --yellow-soft: #fbedb5;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 83% 8%, rgb(23 76 65 / 8%), transparent 26rem),
    linear-gradient(180deg, #fbfaf5 0%, var(--paper) 100%);
}

a {
  color: var(--green);
}

.page-shell {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.hero-band {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 78% 30%, rgb(240 180 91 / 16%), transparent 32rem),
    radial-gradient(circle at 10% 90%, rgb(47 139 112 / 35%), transparent 28rem),
    radial-gradient(rgb(255 255 255 / 7%) 1px, transparent 1.5px) 0 0 / 22px 22px,
    linear-gradient(160deg, var(--night-2) 0%, var(--night) 70%);
}

.hero-arc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-arc path {
  fill: none;
  stroke: var(--gold);
  stroke-dasharray: 2 12;
  stroke-linecap: round;
  stroke-width: 2.5;
  opacity: 0.45;
}

.hero-arc circle {
  fill: var(--gold);
  opacity: 0.7;
}

.hero-band .page-shell {
  position: relative;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
}

.hero-band .wordmark {
  color: #fff;
}

.hero-band .wordmark-mark {
  color: var(--night);
  background: var(--gold);
}

.hero-band .mode-chip {
  color: #cfe9de;
  background: rgb(255 255 255 / 9%);
}

.hero-band .mode-chip .status-dot {
  background: #5fd3a8;
}

.hero-band .account-state {
  color: rgb(255 255 255 / 70%);
}

.hero-band .account-action {
  border-color: rgb(255 255 255 / 25%);
  color: #fff;
  background: transparent;
}

.hero-band .account-action:hover {
  background: rgb(255 255 255 / 12%);
}

.wordmark {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-family: Georgia, serif;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.mode-chip,
.decision-chip {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mode-chip {
  padding: 8px 12px;
  color: var(--green);
  background: var(--green-soft);
}

.hero-band .mode-chip--offline {
  color: var(--night);
  background: var(--gold);
}

.hero-band .mode-chip--offline .status-dot {
  background: var(--night);
}

.masthead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.account {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin: 0;
}

.account-state {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.account-action,
button.account-action {
  display: inline-flex;
  min-height: 0;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  background: var(--surface);
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
}

.account-action:hover,
button.account-action:hover {
  background: var(--green-soft);
}

.field-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.field-note--warn {
  color: var(--amber);
}

.field-note a {
  color: inherit;
  font-weight: 760;
}

.field-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

button.field-choice {
  min-height: 0;
  padding: 6px 12px;
  border: 1px solid var(--green);
  border-radius: 999px;
  color: var(--green);
  background: var(--surface);
  font-size: 13px;
}

button.field-choice:hover,
button.field-choice[aria-pressed="true"] {
  color: #fff;
  background: var(--green);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2f8b70;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: 64px 0 88px;
}

.hero-band .eyebrow {
  color: var(--gold);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

h1 em {
  color: var(--gold);
}

.hero-copy {
  max-width: 540px;
  margin: 24px 0 0;
  color: rgb(255 255 255 / 74%);
  font-size: 18px;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  margin: 36px 0 0;
}

.hero-stats div {
  padding-left: 14px;
  border-left: 2px solid var(--gold);
}

.hero-stats dt {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1;
}

.hero-stats dd {
  margin: 6px 0 0;
  color: rgb(255 255 255 / 62%);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ticket {
  overflow: hidden;
  border-radius: 22px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 40px 90px rgb(0 0 0 / 35%);
}

.ticket-head {
  position: relative;
  padding: 22px 26px 20px;
  border-bottom: 2px dashed var(--line);
  background: #fbf6e8;
}

.ticket-head::before,
.ticket-head::after {
  position: absolute;
  bottom: -13px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--night);
  content: "";
}

.ticket-head::before {
  left: -12px;
}

.ticket-head::after {
  right: -12px;
}

.ticket-label {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 14px;
  align-items: end;
}

.route-end {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.route-end--to {
  text-align: right;
}

.route-caption {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.route-end strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.route-line {
  position: relative;
  width: clamp(48px, 8vw, 96px);
  margin-bottom: 12px;
  border-top: 2px dashed var(--green);
}

.route-plane {
  position: absolute;
  top: -14px;
  left: 50%;
  padding: 0 6px;
  color: var(--green);
  background: #fbf6e8;
  font-size: 18px;
  line-height: 1.4;
  transform: translateX(-50%);
}

.route-passport {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.route-passport strong {
  color: var(--ink);
}

.ticket-body {
  padding: 24px 22px 22px;
}

.form-note {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.form-note--warn {
  color: var(--amber);
}

.form-note a {
  color: inherit;
  font-weight: 760;
}

.research-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.field-group {
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.field-group:focus-within {
  border-color: var(--green);
}

.research-form > button {
  grid-column: 1 / -1;
  min-height: 56px;
  margin-top: 4px;
  color: var(--night);
  background: var(--gold);
  font-size: 17px;
}

.research-form > button:hover {
  background: var(--gold-deep);
}

label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button {
  min-height: 58px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--green);
  font: inherit;
  font-weight: 760;
  cursor: pointer;
}

button:hover {
  background: #0f3c33;
}

button:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid #e3a95a;
  outline-offset: 3px;
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.progress {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
}

.progress[hidden] {
  display: none;
}

.progress-track {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--green-soft);
}

.progress-bar {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  animation: travel 1.1s ease-in-out infinite alternate;
}

.progress-steps {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.progress-steps li::before {
  display: inline-block;
  width: 1.4em;
  content: "·";
}

.progress-steps li.done::before {
  content: "✓";
  color: var(--green);
}

.progress-steps li.current {
  color: var(--ink);
  font-weight: 700;
}

.progress-elapsed {
  font-variant-numeric: tabular-nums;
}

@keyframes travel {
  from { transform: translateX(-20%); }
  to { transform: translateX(160%); }
}

.error-message {
  margin: 18px 0 0;
  color: var(--red);
  font-weight: 700;
}

.results {
  display: grid;
  gap: 28px;
  padding: 64px 0 72px;
  scroll-margin-top: 16px;
  counter-reset: panel;
}

.empty-state,
.panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.empty-state {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.how-steps li {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.how-number {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--gold);
  background: var(--night);
  font-family: Georgia, serif;
  font-size: 15px;
}

.empty-state .how-steps h2 {
  margin: 18px 0 8px;
  font-size: 24px;
}

.empty-state .how-steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.empty-state h2,
.panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.empty-state p:last-child {
  max-width: 600px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.panel {
  --pad: clamp(22px, 4.5vw, 44px);
  overflow: hidden;
  padding: var(--pad);
  border: 1.5px solid rgb(12 43 37 / 22%);
  counter-increment: panel;
}

.panel-header {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin: calc(var(--pad) * -1) calc(var(--pad) * -1) 28px;
  padding: 24px var(--pad);
  color: #fff;
  background:
    radial-gradient(circle at 92% 0%, rgb(240 180 91 / 18%), transparent 18rem),
    radial-gradient(rgb(255 255 255 / 6%) 1px, transparent 1.5px) 0 0 / 20px 20px,
    linear-gradient(160deg, var(--night-2) 0%, var(--night) 80%);
}

.panel-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 16px;
  align-items: center;
}

.panel-heading::before {
  display: grid;
  grid-row: span 2;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1.5px solid rgb(240 180 91 / 60%);
  border-radius: 50%;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 15px;
  content: counter(panel, decimal-leading-zero);
}

.panel--refusal .panel-heading::before {
  content: "!";
  font-size: 20px;
}

.panel-header .eyebrow {
  margin-bottom: 4px;
  color: var(--gold);
}

.panel-header h2 {
  color: #fff;
  font-size: clamp(26px, 3.4vw, 38px);
}

.decision-chip {
  flex: none;
  padding: 9px 12px;
  color: var(--green);
  background: var(--green-soft);
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-chip--verified {
  color: #11613a;
  background: #cdeedb;
}

.status-chip--partial,
.decision-chip--uncertain {
  color: var(--yellow);
  background: var(--yellow-soft);
}

.decision-chip--no-visa {
  color: var(--blue);
  background: var(--blue-soft);
}

.decision-chip--visa {
  color: var(--violet);
  background: var(--violet-soft);
}

/* Incomplete evidence is named above the guidance in one line, and set out in full at the end.
   Both halves matter: a partial plan must not look complete, and a wall of caveats above the answer
   buries the answer. */
.evidence-pointer {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-left: 4px solid var(--amber);
  border-radius: 6px;
  background: var(--amber-soft);
  color: #684319;
  font-size: 14px;
  font-weight: 600;
}

/* An official questionnaire holding the decision is a next step, not a caveat, so it is set in the
   green used for things the traveller can act on rather than the amber used for gaps in evidence. */
.decision-tool {
  margin: 0 0 16px;
  padding: 16px 18px;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  line-height: 1.55;
}

/* A delegated service is a weaker thing than an official tool and must not look identical to it:
   the tool is the authority's own page, this is a company the authority contracts with, and the
   reader has to be able to tell at a glance which they are being sent to. */
.decision-tool--delegated {
  border-left-color: var(--amber);
  background: var(--amber-soft);
  color: var(--amber);
}

.decision-tool-title {
  margin: 0 0 8px;
  font-weight: 800;
}

.decision-tool p {
  margin: 0;
}

.decision-tool a {
  overflow-wrap: anywhere;
}

.evidence-banner {
  margin-bottom: 24px;
  padding: 20px;
  border-left: 4px solid var(--amber);
  border-radius: 8px;
  background: var(--amber-soft);
  color: #684319;
}

.evidence-banner-title {
  margin: 0 0 10px;
  font-weight: 800;
}

.evidence-banner ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.6;
}

.evidence-banner-note {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.55;
}

.stale-badge {
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--amber);
  background: var(--amber-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lead {
  max-width: 780px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
}

.detail-cell {
  padding: 20px;
  background: var(--surface);
}

.detail-cell span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-cell p {
  margin: 0;
  line-height: 1.5;
}

.requirement-list {
  display: grid;
  gap: 12px;
}

.requirement-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.requirement-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.requirement-card p {
  margin: 6px 0;
  color: var(--muted);
  line-height: 1.55;
}

.reason {
  font-size: 14px;
}

/* One card for every outgoing link. Action and evidence share the same shape;
   only the role label and a subtle left accent tell them apart. */
.link-cards {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}

.link-card {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  max-width: 760px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
  transition: background 140ms ease, transform 140ms ease;
}

.link-card:hover {
  background: var(--green-soft);
  transform: translateY(-1px);
}

.link-card--action {
  border-left-color: var(--green);
}

.link-card--evidence {
  border-left-color: var(--line);
}

.link-card-body {
  display: grid;
  gap: 3px;
}

.link-card-role-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.link-card-role {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.link-card--stale {
  border-left-color: var(--amber);
}

.link-card--action .link-card-role {
  color: var(--green);
}

.link-card--evidence .link-card-role {
  color: var(--muted);
}

.link-card-title {
  font-weight: 750;
  line-height: 1.35;
}

.link-card-sub {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.link-card-arrow {
  flex: none;
  color: var(--green);
  font-weight: 700;
}

.evidence-eyebrow {
  margin: 22px 0 12px;
}

.steps {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: #fff;
  line-height: 1.55;
  counter-increment: steps;
}

.steps li::before {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  content: counter(steps, decimal-leading-zero);
  font-size: 11px;
  font-weight: 800;
}

.step-content h3 {
  margin: 2px 0 8px;
  color: var(--ink);
  font-size: 18px;
}

.step-content > p:not(.step-timing) {
  margin: 0;
}

.step-timing {
  margin: 0 0 7px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.reliability-block {
  padding: 22px;
  border-radius: 16px;
  background: #f3f1ea;
}

.reliability-block h3 {
  margin-top: 0;
}

.reliability-block ul {
  margin-bottom: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.6;
}

.checked-at {
  font-size: 13px;
}

.disclaimer {
  padding: 20px;
  border-left: 4px solid var(--amber);
  border-radius: 8px;
  color: #684319;
  background: var(--amber-soft);
  line-height: 1.6;
}

footer {
  padding: 28px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

footer p {
  max-width: 760px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 44px 0 56px;
  }

  .how-steps {
    grid-template-columns: 1fr;
  }

  .hero-arc {
    display: none;
  }
}

@media (max-width: 760px) {
  .route-end strong {
    font-size: 21px;
  }

  .ticket-body {
    padding: 20px 16px 18px;
  }

  .ticket-head {
    padding: 20px 18px 18px;
  }

  .detail-grid {
    padding: 12px;
  }

  .panel-header {
    display: grid;
  }

  .panel-header .chip-group {
    justify-content: flex-start;
    padding-left: 60px;
  }

  .mode-chip {
    font-size: 10px;
  }

  /* One column on a phone: two squeezed a country name to a few letters. */
  .research-form {
    grid-template-columns: 1fr;
  }

  .masthead {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 0;
  }

  .masthead-actions {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
