/* Plain, mobile-first styles. System fonts only; no external assets. */
:root {
  --text: #1a1a1a;
  --muted: #4a4a4a;      /* 8.9:1 on white */
  --bg: #ffffff;
  --panel: #f4f5f7;
  --link: #0b57a4;       /* 6.9:1 on white */
  --link-visited: #5b2a86;
  --border: #c9ced6;
  --focus: #b35900;
  --max: 42rem;
  --hl-red-bg: #fdecea; --hl-red-text: #5c0f0a; --hl-red-border: #b3261e;
  --hl-green-bg: #e8f5e9; --hl-green-text: #0f3d12; --hl-green-border: #2e7d32;
  --hl-amber-bg: #fff8e1; --hl-amber-text: #4a3000; --hl-amber-border: #a66d00;
  --hl-blue-border: #0b57a4;
  --caution-bg: #fff3e0; --caution-text: #4a2200; --caution-border: #c25e00;
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #ececec;
    --muted: #c4c4c4;
    --bg: #15171a;
    --panel: #1f2226;
    --link: #8cc4ff;
    --link-visited: #d1b3ff;
    --border: #3a3f46;
    --focus: #ffb15c;
    --hl-red-bg: #3b1513; --hl-red-text: #ffd9d5; --hl-red-border: #ff8a80;
    --hl-green-bg: #13301a; --hl-green-text: #d3f5d6; --hl-green-border: #81c784;
    --hl-amber-bg: #352a0c; --hl-amber-text: #ffecb3; --hl-amber-border: #ffca28;
    --hl-blue-border: #8cc4ff;
    --caution-bg: #3a2410; --caution-text: #ffe0c2; --caution-border: #ffab40;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
a { color: var(--link); text-underline-offset: 0.15em; }
a:visited { color: var(--link-visited); }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: 1.75rem; margin: 1.5rem 0 1rem; }
h2 { font-size: 1.35rem; margin-top: 2rem; }
ul, ol { padding-left: 1.25rem; }

.skip-link { position: absolute; left: -999px; top: 0; padding: 0.5rem 1rem; background: var(--bg); }
.skip-link:focus { left: 0.5rem; top: 0.5rem; z-index: 10; }

.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.site-name { font-weight: 700; text-decoration: none; color: var(--text); }
.site-name:visited { color: var(--text); }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
nav a[aria-current="page"] { font-weight: 700; }

main { padding-bottom: 2rem; }
.last-verified { color: var(--muted); font-size: 0.95rem; border-top: 1px solid var(--border); padding-top: 0.75rem; margin-top: 2rem; }
.note { background: var(--panel); border-left: 4px solid var(--border); padding: 0.75rem 1rem; }
.placeholder { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--panel); padding: 0 0.25rem; }

.site-footer { border-top: 1px solid var(--border); background: var(--panel); font-size: 0.95rem; padding: 1rem 0 2rem; }
.site-footer .disclaimer { color: var(--muted); margin-top: 0; }

.warning { background: var(--panel); border-left: 4px solid var(--focus); padding: 0.75rem 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.starter-item { border: 1px solid var(--border); border-radius: 6px; margin: 0.5rem 0; }
.starter-item summary { cursor: pointer; padding: 0.75rem 1rem; font-weight: 600; }
.starter-item summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.starter-item[open] summary { border-bottom: 1px solid var(--border); }
.starter-body { padding: 0 1rem 0.75rem; }
.service-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.25rem 1rem; }
.soon { color: var(--muted); }
.soon-tag { font-size: 0.85rem; white-space: nowrap; }

.toc { background: var(--panel); padding: 0.5rem 1rem; }
.toc ul { display: block; }
.steps li { margin-bottom: 0.75rem; }
.source { display: block; font-size: 0.9rem; color: var(--muted); }
.sources { font-size: 0.95rem; }

/* Navigator and checker */
.tool { background: var(--panel); border: 1px solid var(--border); border-radius: 6px; padding: 0.5rem 1rem; }
.tool label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.tool select, .tool input { width: 100%; max-width: 30rem; font: inherit; padding: 0.5rem; border: 1px solid var(--muted); border-radius: 4px; background: var(--bg); color: var(--text); }
.tool button { font: inherit; font-weight: 600; padding: 0.5rem 1.25rem; border: 0; border-radius: 4px; background: var(--link); color: #ffffff; cursor: pointer; }
@media (prefers-color-scheme: dark) { .tool button { color: #15171a; } }
.tool select:focus-visible, .tool input:focus-visible, .tool button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
#nav-result:focus, #check-result:focus { outline: none; }
.result { border: 1px solid var(--border); border-radius: 6px; padding: 0 1rem 0.5rem; margin: 1rem 0; }
.verdict { font-weight: 600; }
.facts dt { font-weight: 600; margin-top: 0.5rem; }
.facts dd { margin-left: 0; }
.facts dd ul { margin: 0; }
.country-list { columns: 2 12rem; }
.sources li { margin-bottom: 0.75rem; overflow-wrap: anywhere; }
code { overflow-wrap: anywhere; }
details summary { cursor: pointer; font-weight: 600; }
/* "No scheme covers this passport" card */
.highlight { font-weight: 700; font-size: 1.15rem; padding: 0.6rem 0.8rem; border-radius: 4px; margin: 1rem 0 0.75rem; }
/* Alert colours: each pair is checked for WCAG AA (4.5:1) by tests/contrast.test.mjs. */
.highlight-needs-visa { background: var(--hl-red-bg); color: var(--hl-red-text); border-left: 6px solid var(--hl-red-border); }
.highlight-visa-free { background: var(--hl-green-bg); color: var(--hl-green-text); border-left: 6px solid var(--hl-green-border); }
.highlight-unknown { background: var(--hl-amber-bg); color: var(--hl-amber-text); border-left: 6px solid var(--hl-amber-border); }
.later { background: var(--panel); color: var(--text); border-left: 6px solid var(--hl-blue-border); padding: 0.25rem 0.8rem 0.5rem; margin: 0.75rem 0; border-radius: 4px; }
.caution { background: var(--caution-bg); color: var(--caution-text); border: 2px solid var(--caution-border); border-radius: 6px; padding: 0.25rem 0.8rem 0.5rem; margin: 0.75rem 0; }
.must-do { background: var(--caution-bg); color: var(--caution-text); border: 2px solid var(--caution-border); border-radius: 6px; padding: 0.25rem 0.8rem 0.5rem; margin: 0.75rem 0; }
.caution a, .must-do a, .highlight a { color: inherit; }
.caution-title { font-weight: 700; }
.result-fallback details { display: inline-block; margin-left: 0.4rem; }
.result-fallback blockquote { margin: 0.3rem 0 0.3rem 0.5rem; padding-left: 0.6rem; border-left: 3px solid var(--border); font-style: italic; }
.independent { color: var(--muted); font-size: 0.95rem; margin-top: -0.5rem; }
.key-facts { background: var(--panel); border-left: 4px solid var(--link); padding: 0.6rem 0.9rem; }
.official-link .domain { font-size: 0.9rem; }
table { border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid var(--border); padding: 0.4rem; text-align: left; vertical-align: top; }

/* Launch pass 2026-10-15: destination search, "check another trip", compact source lines on small screens. */
#destination-filter { display: block; width: 100%; max-width: 28rem; font: inherit; padding: 0.5rem; margin-bottom: 0.5rem; }
#destination-filter[hidden], #destination-filter-label[hidden] { display: none; }
button.again { font: inherit; padding: 0.5rem 1rem; cursor: pointer; }
@media (max-width: 600px) {
  .source { font-size: 0.8rem; line-height: 1.35; overflow-wrap: anywhere; }
  .source details { display: inline; }
  .source details summary { display: inline; font-weight: 600; }
  .source details[open] blockquote { margin: 0.25rem 0 0.5rem; font-size: 0.85rem; }
}
