/* ArrivalFacts. A passport page, not a SaaS page: security-paper ground, navy ink,
   and one loud thing per page, the entry stamp that carries the answer. */

@font-face { font-family: "Public Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/public-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url(/fonts/public-sans-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/public-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/public-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Stamp"; font-weight: 600; font-display: swap; src: url(/fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Stamp"; font-weight: 700; font-display: swap; src: url(/fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); }

:root {
  --paper: #f3f6f5;        /* security paper, cool */
  --paper-deep: #e4ebe9;   /* table stripes, masthead band */
  --ink: #16213a;          /* passport navy */
  --ink-soft: #46536a;
  --rule: #c3cfcc;
  --link: #1d4f91;

  --s-free: #1c6a45;       /* green stamp */
  --s-arrival: #5d3a9b;    /* violet stamp */
  --s-eta: #86560a;        /* amber-brown stamp */
  --s-evisa: #1d4f91;      /* blue stamp */
  --s-required: #a1241c;   /* red stamp */
  --s-none: #3b3f46;

  --measure: 40rem;
  --wide: 68rem;
  --gutter: clamp(1rem, 4vw, 2rem);

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: clamp(1.8rem, 1.3rem + 2.2vw, 2.6rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 "Public Sans", system-ui, sans-serif;
  font-feature-settings: "kern", "liga";
}
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 2px; }
img, svg { display: block; max-width: 100%; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; }
.skip:focus { left: 0; z-index: 10; }

/* Masthead: a band of fine guilloche lines, the way passport pages are printed. */
.masthead {
  background-color: var(--paper-deep);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24' viewBox='0 0 120 24'%3E%3Cpath d='M0 12 C 15 2, 30 22, 45 12 S 75 2, 90 12 S 120 22, 120 12' fill='none' stroke='%2316213a' stroke-opacity='.07' stroke-width='1'/%3E%3Cpath d='M0 6 C 15 16, 30 -4, 45 6 S 75 16, 90 6 S 120 -4, 120 6' fill='none' stroke='%2316213a' stroke-opacity='.05' stroke-width='1'/%3E%3Cpath d='M0 18 C 15 28, 30 8, 45 18 S 75 28, 90 18 S 120 8, 120 18' fill='none' stroke='%2316213a' stroke-opacity='.05' stroke-width='1'/%3E%3C/svg%3E");
  border-bottom: 1px solid var(--rule);
}
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; }
.brand-mark { width: 1.6rem; height: 1.6rem; color: var(--ink); }
.topnav { display: flex; gap: 1.25rem; font-size: var(--step--1); }
.topnav a { color: var(--ink); text-decoration: none; }
.topnav a:hover { text-decoration: underline; }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 1rem 0 0; font-size: var(--step--1); color: var(--ink-soft); }
.crumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--rule); }
.crumbs a { color: var(--ink-soft); }

main { padding-bottom: 3rem; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: var(--step-3); font-weight: 700; max-width: 22ch; }
h2 { font-size: var(--step-2); font-weight: 700; margin-top: 2.75rem; }
h3 { font-size: var(--step-1); font-weight: 600; margin-top: 1.5rem; }
p { margin: .75rem 0 0; max-width: var(--measure); }
.lead { font-size: var(--step-1); line-height: 1.5; }
.muted { color: var(--ink-soft); }
.small { font-size: var(--step--1); }

/* ---------- Answer block ---------- */
.answer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: start; margin-top: 1.75rem; }
.answer-text { min-width: 0; }
.answer .lead { margin-top: 1rem; }
@media (max-width: 46rem) {
  .answer { grid-template-columns: 1fr; }
  .answer .stamp { order: -1; justify-self: start; }
}

/* The stamp. Rubber-stamp ink: double frame, condensed caps, slight rotation, rough edge. */
.stamp {
  --c: var(--s-none);
  color: var(--c);
  border: 3px solid currentColor;
  border-radius: 10px;
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4.5px currentColor;
  padding: .85rem 1.25rem .8rem;
  min-width: 13rem;
  text-align: center;
  font-family: "Stamp", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  transform: rotate(-4deg);
  margin: .5rem .5rem 0 0;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -1.3 1.55'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -1.3 1.55'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: press .5s cubic-bezier(.2, .9, .25, 1.15) both;
}
.stamp-place { display: block; font-weight: 600; font-size: .95rem; letter-spacing: .08em; }
.stamp-status { display: block; font-weight: 700; font-size: 2.35rem; line-height: 1; margin: .35rem 0 .2rem; letter-spacing: .01em; }
.stamp-days { display: block; font-weight: 700; font-size: 1.35rem; letter-spacing: .06em; }
.stamp-date { display: block; font-weight: 600; font-size: .85rem; letter-spacing: .1em; margin-top: .45rem; padding-top: .4rem; border-top: 2px solid currentColor; }
@keyframes press { from { opacity: 0; transform: rotate(-9deg) scale(1.25); } to { opacity: 1; transform: rotate(-4deg) scale(1); } }
@media (prefers-reduced-motion: reduce) { .stamp { animation: none; } }

.st-visa_free { --c: var(--s-free); }
.st-visa_on_arrival { --c: var(--s-arrival); }
.st-eta { --c: var(--s-eta); }
.st-e_visa { --c: var(--s-evisa); }
.st-visa_required { --c: var(--s-required); }
.st-no_admission { --c: var(--s-none); }

/* Inline status word in tables and lists: a small ink mark, same colours as the stamps. */
.tag { color: var(--c, var(--ink)); font-weight: 600; white-space: nowrap; }
.tag::before { content: ""; display: inline-block; width: .6em; height: .6em; border-radius: 50%; background: currentColor; margin-right: .45em; vertical-align: .05em; }

/* ---------- Facts ---------- */
.facts { margin: 2rem 0 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); max-width: var(--measure); border-top: 2px solid var(--ink); }
.facts dt, .facts dd { padding: .7rem 0; border-bottom: 1px solid var(--rule); margin: 0; }
.facts dt { font-weight: 600; padding-right: 1.5rem; }
@media (max-width: 30rem) {
  .facts { grid-template-columns: 1fr; }
  .facts dt { border-bottom: 0; padding-bottom: 0; }
  .facts dd { padding-top: .15rem; }
}

.notice { max-width: var(--measure); margin-top: 1.5rem; padding: .9rem 1.1rem; border-left: 4px solid var(--ink); background: var(--paper-deep); }
.notice p { margin: 0; }
.notice p + p { margin-top: .5rem; }

/* ---------- Lists of places ---------- */
.places { list-style: none; padding: 0; margin: 1rem 0 0; columns: 15rem auto; column-gap: 2.5rem; }
.places li { break-inside: avoid; padding: .35rem 0; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 1rem; }
.places .days { color: var(--ink-soft); font-size: var(--step--1); white-space: nowrap; }

.group-head { display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; }
.group-head .count { color: var(--ink-soft); font-size: var(--step--1); }

/* Summary bar on hubs: one strip, widths are the real shares. */
.share { display: flex; height: .9rem; max-width: var(--measure); margin-top: 1.25rem; border-radius: 2px; overflow: hidden; background: var(--paper-deep); }
.share span { background: var(--c); }
.share-legend { list-style: none; padding: 0; margin: .75rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; font-size: var(--step--1); }

/* ---------- Sponsored ---------- */
.sponsored { margin-top: 2.75rem; max-width: var(--measure); }
.sponsored-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.sponsored-list li { padding: 1rem 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25rem 1.5rem; align-items: center; }
.sponsored-list p { margin: .15rem 0 0; color: var(--ink-soft); font-size: var(--step--1); }
.btn { display: inline-block; padding: .55rem 1rem; border: 2px solid var(--ink); color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--step--1); border-radius: 4px; white-space: nowrap; }
.btn:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 30rem) { .sponsored-list li { grid-template-columns: 1fr; } .btn { justify-self: start; margin-top: .5rem; } }

/* ---------- FAQ ---------- */
.faq { max-width: var(--measure); margin-top: 1rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: .85rem 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 1rem; }

/* ---------- Home ---------- */
.home-hero { padding: 3rem 0 1rem; }
.home-hero h1 { max-width: 18ch; font-size: clamp(2rem, 1.3rem + 3vw, 3.2rem); }
.picker { margin-top: 2rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 1rem; align-items: end; max-width: 52rem; }
.picker label { display: block; font-weight: 600; font-size: var(--step--1); margin-bottom: .35rem; }
.picker select { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 4px; padding: .65rem .75rem; }
.picker button { font: inherit; font-weight: 700; color: var(--paper); background: var(--ink); border: 2px solid var(--ink); border-radius: 4px; padding: .65rem 1.4rem; cursor: pointer; }
.picker button:hover { background: var(--link); border-color: var(--link); }
@media (max-width: 40rem) { .picker { grid-template-columns: 1fr; } .picker button { justify-self: start; } }

.legend-row { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: 1rem 1.75rem; max-width: var(--wide); }
.legend-row li { border-top: 3px solid var(--c); padding-top: .6rem; }
.legend-row strong { color: var(--c); display: block; }
.legend-row span { font-size: var(--step--1); color: var(--ink-soft); }

.az { list-style: none; padding: 0; margin: 1rem 0 0; columns: 12rem auto; column-gap: 2rem; }
.az li { padding: .2rem 0; break-inside: avoid; }

.prose { max-width: var(--measure); }
.prose ul, .prose ol { max-width: var(--measure); padding-left: 1.25rem; }
.prose li { margin-top: .35rem; }

.foot { border-top: 1px solid var(--rule); background: var(--paper-deep); margin-top: 2rem; }
.foot-inner { padding-top: 1.75rem; padding-bottom: 2rem; }
.foot-note { margin: 0; font-weight: 600; }
.foot nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1rem; font-size: var(--step--1); }
.foot nav a { color: var(--ink); }
.foot-small { font-size: .8rem; color: var(--ink-soft); }
.foot-small a { color: var(--ink-soft); }

.related { list-style: none; padding: 0; margin: 1rem 0 0; columns: 18rem auto; column-gap: 2.5rem; }
.related li { padding: .3rem 0; break-inside: avoid; }
