/* Wayfinding-inspired design system. One bold element: the departure board. */
:root {
  --blue: #0e2c66;
  --board: #081a3d;
  --board-line: #1c3770;
  --yellow: #ffcb05;
  --yellow-ink: #3a2e00;
  --concrete: #e9edf2;
  --paper: #ffffff;
  --text: #101828;
  --muted: #475467;
  --green: #12805c;
  --green-bg: #d9f2e8;
  --alert: #b42318;
  --alert-bg: #fdecea;
  --rule: #cfd6df;
  --radius: 6px;
  --measure: 68ch;
  --font-latin: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: var(--font-latin);
}
html[lang="ur"] { --font-body: "Noto Nastaliq Urdu", "Archivo", serif; }
html[lang="ar"] { --font-body: "Noto Sans Arabic", "Archivo", sans-serif; }
html[lang="hi"] { --font-body: "Noto Sans Devanagari", "Archivo", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--concrete);
}
html[lang="ur"] body { line-height: 2.1; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: #08224f; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; box-shadow: 0 0 0 6px var(--blue); }

.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--yellow); color: var(--yellow-ink); padding: 8px 14px; border-radius: var(--radius); z-index: 10; font-weight: 700; }
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 20px; }

/* Header */
.site-header { background: #fff; color: var(--blue); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); text-decoration: none; font-family: var(--font-latin); font-weight: 800; font-size: 1.2rem; font-stretch: 112%; letter-spacing: 0.01em; }
.brand::before { content: ""; width: 12px; height: 28px; background: var(--yellow); border-radius: 2px; }
.lang-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.lang-nav a { color: var(--muted); text-decoration: none; padding: 6px 12px; border-radius: 999px; font-size: 0.95rem; line-height: 1.4; }
.lang-nav a:hover { background: var(--concrete); color: var(--blue); }
.lang-nav a[aria-current="true"] { background: var(--yellow); color: var(--yellow-ink); font-weight: 700; }

/* Hero */
.hero { background: linear-gradient(180deg,#f4f8ff 0%,#fff8dc 100%); color: var(--text); padding-block: 40px 48px; }
.hero h1 { color: var(--blue); margin: 0 0 14px; font-family: var(--font-body); font-weight: 800; font-size: clamp(1.9rem, 5.2vw, 3.4rem); line-height: 1.12; max-width: 20ch; }
html[lang="en"] .hero h1, html[lang="hi"] .hero h1 { font-stretch: 108%; }
html[lang="ur"] .hero h1 { line-height: 1.7; max-width: 26ch; }
.hero p { margin: 0 0 26px; font-size: 1.15rem; color: var(--muted); max-width: 52ch; }
.search { display: flex; gap: 10px; max-width: 640px; }
.search input { flex: 1; min-width: 0; font: inherit; font-size: 1.1rem; padding: 16px 18px; border: 2px solid var(--rule); border-radius: var(--radius); background: #fff; color: var(--text); }
.search input::placeholder { color: #667085; }
.search button { font: inherit; font-weight: 800; font-size: 1.05rem; padding: 0 26px; border: 0; border-radius: var(--radius); background: var(--yellow); color: var(--yellow-ink); cursor: pointer; }
.search button:hover { background: #ffd83d; }

/* Departure board */
.board { background: var(--board); color: #fff; padding-block: 34px 40px; }
.board h2 { margin: 0 0 18px; font-size: 1.35rem; font-weight: 800; color: #fff; }
.board-head, .board-row { display: grid; grid-template-columns: 1.3fr 1.2fr 2fr 0.8fr; gap: 16px; align-items: center; padding: 14px 8px; }
.board-head { color: #9db4e6; font-size: 0.95rem; border-bottom: 2px solid var(--yellow); }
.board-row { color: #fff; text-decoration: none; border-bottom: 1px solid var(--board-line); font-variant-numeric: tabular-nums; }
.board-row:hover, .board-row:focus-visible { background: #0f2859; color: #fff; }
.board-row .country { font-weight: 800; font-size: 1.15rem; }
.board-row .card { color: var(--yellow); font-weight: 700; font-family: var(--font-latin); }
.board-row .when { color: #dbe5ff; }
.pill { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--green-bg); color: #0b5c42; font-weight: 800; font-size: 0.95rem; line-height: 1.5; justify-self: start; }
.board-row[hidden] { display: none; }
.board-empty { padding: 18px 8px; color: #dbe5ff; }
.board-note { margin: 16px 0 0; color: #9db4e6; font-size: 0.95rem; }

/* Content sections */
.section { padding-block: 44px; }
.section h2 { margin: 0 0 12px; font-size: 1.5rem; line-height: 1.3; font-weight: 800; color: var(--blue); }
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1em; }

.warn { background: var(--alert-bg); border-inline-start: 6px solid var(--alert); padding: 20px 24px; border-radius: var(--radius); max-width: 760px; }
.warn h2 { color: var(--alert); font-size: 1.25rem; margin-bottom: 8px; }
.warn p { margin: 0; color: #5b1a14; }

/* Country page */
.page-hero { background: linear-gradient(180deg,#f4f8ff 0%,#fff8dc 100%); color: var(--text); padding-block: 24px 28px; }
.crumb { display: inline-block; margin-bottom: 14px; color: var(--blue); text-decoration: none; font-size: 0.98rem; }
.crumb:hover { color: #08224f; text-decoration: underline; }
.page-hero h1 { color: var(--blue); margin: 0 0 8px; font-size: clamp(1.8rem, 4.6vw, 2.9rem); line-height: 1.15; font-weight: 800; }
html[lang="en"] .page-hero h1 { font-stretch: 108%; }
html[lang="ur"] .page-hero h1 { line-height: 1.7; }
.page-hero .checked { margin: 0; color: var(--muted); font-size: 0.98rem; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; padding-block: 36px 60px; }
.facts { order: 2; position: sticky; top: 16px; background: var(--paper); border-radius: var(--radius); border-top: 8px solid var(--blue); padding: 20px 22px 24px; box-shadow: 0 1px 0 var(--rule), 0 12px 30px -18px rgba(8,26,61,.35); }
.facts h2 { margin: 0 0 12px; font-size: 1.2rem; color: var(--blue); }
.facts dl { margin: 0; }
.facts dt { margin-top: 14px; color: var(--muted); font-size: 0.92rem; }
.facts dd { margin: 2px 0 0; font-weight: 700; }
.facts .cost { color: var(--green); }
.btn { display: block; margin-top: 12px; text-align: center; padding: 14px 18px; background: var(--yellow); color: var(--yellow-ink); font-weight: 800; border-radius: var(--radius); text-decoration: none; }
.btn:hover { background: #ffd83d; color: var(--yellow-ink); }
.btn.second { background: #fff; border: 2px solid var(--blue); color: var(--blue); }
.btn.second:hover { background: var(--concrete); color: var(--blue); }

.article { order: 1; background: var(--paper); border-radius: var(--radius); padding: 8px 28px 32px; box-shadow: 0 1px 0 var(--rule); }
.article h2 { margin: 28px 0 10px; font-size: 1.35rem; color: var(--blue); }
.article ul, .article ol { margin: 0; padding-inline-start: 1.4em; max-width: var(--measure); }
.article li { margin-bottom: 0.6em; }
.article ol { counter-reset: s; list-style: none; padding-inline-start: 0; }
.article ol li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.article ol li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; margin-top: 2px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; font-family: var(--font-latin); line-height: 1; }
.article .p { max-width: var(--measure); margin: 0 0 0.9em; }
details { border-bottom: 1px solid var(--rule); padding: 14px 0; max-width: var(--measure); }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 10px 0 0; }
.small { color: var(--muted); font-size: 0.95rem; max-width: var(--measure); }

/* Footer */
.site-footer { background: var(--board); color: #cfdcff; padding-block: 34px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 16px; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0; max-width: 70ch; font-size: 0.95rem; }

/* Legal pages */
.legal { background: var(--paper); border-radius: var(--radius); padding: 32px; margin-block: 36px 60px; box-shadow: 0 1px 0 var(--rule); }
.legal h1 { margin-top: 0; color: var(--blue); }
.legal h2 { margin-top: 1.6em; color: var(--blue); font-size: 1.25rem; }
.legal p, .legal li { max-width: var(--measure); }

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; gap: 24px; }
  .facts { position: static; order: 1; }
  .article { order: 2; padding-inline: 20px; }
}
@media (max-width: 640px) {
  .hero { padding-block: 32px 40px; }
  .search { flex-direction: column; }
  .search button { padding: 14px; }
  .board-head { display: none; }
  .board-row { grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 6px; }
  .board-row .country { grid-column: 1; }
  .board-row .card { grid-column: 1; }
  .board-row .when { grid-column: 1 / -1; font-size: 0.98rem; }
  .board-row .pill { grid-column: 2; grid-row: 1; }
  .legal { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

.legal { overflow-wrap: anywhere; }
.nw { white-space: nowrap; }

/* Hero with illustration */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: center; }
.hero-art .art { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 24px rgba(8,26,61,.22)); }
.hero-art.small-art { max-width: 300px; justify-self: end; }
.page-hero .hero-grid { grid-template-columns: minmax(0, 1fr) 300px; }
@media (max-width: 860px) {
  .hero-grid, .page-hero .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 340px; margin-inline: auto; order: -1; }
  .hero-art.small-art { max-width: 220px; justify-self: center; }
}

/* Affiliate box */
.aff { margin: 30px 0 6px; padding: 20px 22px; background: #fffbe6; border: 1px solid #f1dd8a; border-radius: var(--radius); }
.article .aff h2 { margin: 0 0 14px; font-size: 1.2rem; }
.aff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.aff-item { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px; }
.aff-item h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--blue); }
.aff-item p { margin: 0 0 12px; font-size: .97rem; color: var(--muted); }
.aff-btn { display: inline-block; padding: 10px 18px; border-radius: var(--radius); background: var(--blue); color: #fff; font-weight: 800; text-decoration: none; }
.aff-btn:hover { background: #08224f; color: #fff; }
.aff .small { margin-top: 12px; }

/* ===== v3 look: bright, passport-stamp theme ===== */
:root { --accent: #2f5fd0; --ink: #12243f; --page: #f3f6fb; }
body { background: var(--page); }
.hero { background: radial-gradient(900px 420px at 85% 10%, #dbe9ff 0%, rgba(219,233,255,0) 70%), radial-gradient(700px 360px at 0% 100%, #fff1c2 0%, rgba(255,241,194,0) 70%), #f7faff; padding-block: 44px 56px; }
.hero h1 { color: var(--ink); font-size: clamp(2rem, 4.8vw, 3.2rem); max-width: 17ch; }
.hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
.hero-art .art { filter: drop-shadow(0 22px 28px rgba(18,36,63,.22)); transform: rotate(-1.5deg); }
.search input { border: 2px solid #c9d6ea; box-shadow: 0 6px 18px -10px rgba(18,36,63,.4); }
.search button { background: var(--ink); color: #fff; }
.search button:hover { background: #1d3a66; color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid #d5dfee; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; line-height: 1.5; }
.chip::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.chip:hover { border-color: var(--accent); color: var(--ink); }
.checked-line { margin: 16px 0 0 !important; font-size: .95rem !important; color: var(--muted) !important; }

.board { background: var(--page); color: var(--text); padding-block: 44px 24px; }
.board h2 { color: var(--ink); font-size: 1.6rem; margin-bottom: 22px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 18px; background: #fff; border-radius: 14px; border: 1px solid #dbe3ef; border-top: 6px solid var(--accent); text-decoration: none; color: var(--text); box-shadow: 0 10px 24px -18px rgba(18,36,63,.45); transition: transform .15s ease, box-shadow .15s ease; }
.tile:hover, .tile:focus-visible { transform: translateY(-3px); box-shadow: 0 18px 30px -18px rgba(18,36,63,.55); background: #fff; color: var(--text); }
.tile[hidden] { display: none; }
.tile-code { position: absolute; inset-inline-end: 18px; top: 16px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; border: 3px double var(--accent); color: var(--accent); font-family: var(--font-latin); font-weight: 900; font-size: 1.05rem; transform: rotate(-10deg); }
.tile-main { display: flex; flex-direction: column; gap: 6px; padding-inline-end: 64px; }
.tile .country { font-weight: 800; font-size: 1.4rem; color: var(--ink); line-height: 1.3; }
.tile .card { align-self: flex-start; padding: 2px 12px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--accent); font-weight: 800; font-family: var(--font-latin); font-size: .98rem; }
.tile .when { color: var(--muted); font-size: .98rem; flex: 1; }
.tile-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; padding-top: 12px; border-top: 1px dashed #d5dfee; }
.tile .go { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--accent); }
html[dir="rtl"] .chev { transform: scaleX(-1); }
.board-note { color: var(--muted); }
.board-empty { color: var(--muted); }

.page-hero { background: linear-gradient(180deg, #eaf2ff 0%, #f3f6fb 100%); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 14%, #fff) 0%, #f3f6fb 100%); padding-block: 26px 30px; border-bottom: 4px solid var(--accent); }
.page-hero h1 { color: var(--ink); }
.page-hero .hero-grid { grid-template-columns: minmax(0, 1fr) 280px; }
.hero-art.small-art { max-width: 280px; }
.facts { border-top-color: var(--accent); }
.facts h2, .article h2 { color: var(--ink); }
.article ol li::before { background: var(--accent); }
.aff-btn { background: var(--ink); }
@media (max-width: 860px) { .hero-art { max-width: 420px; } .hero-art .art { transform: none; } }
@media (max-width: 640px) { .tiles { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .hero-grid, .page-hero .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-art { order: -1; max-width: 360px; margin-inline: auto; }
  .hero-art.small-art { max-width: 240px; }
  .hero h1 { max-width: none; }
}
html[lang="ur"] .hero h1 { max-width: none; font-size: clamp(1.7rem, 4.4vw, 2.6rem); }

.related{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:.6rem}.related li a{display:inline-block;padding:.5rem .9rem;border:1px solid var(--accent,#999);border-radius:999px;text-decoration:none}
