/* EESQueue — EU Entry/Exit System hub. Passport-inspired palette. */
:root {
	--navy: #0b2545;
	--blue: #13315c;
	--accent: #1d6fb8;
	--gold: #e9b949;
	--go: #2a9d8f;
	--warn: #e9a23b;
	--bad: #d1495b;
	--bg: #f5f7fb;
	--card: #ffffff;
	--ink: #15233b;
	--muted: #5b6b82;
	--line: #e3e9f2;
	--radius: 14px;
	--wrap: 1080px;
	--shadow: 0 1px 2px rgba(11, 37, 69, 0.06), 0 8px 24px rgba(11, 37, 69, 0.06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--ink);
	background: var(--bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.2; color: var(--navy); letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 .4em; }
h2 { font-size: 1.6rem; margin: 1.8em 0 .6em; }
h3 { font-size: 1.18rem; margin: 1.4em 0 .4em; }
p { margin: 0 0 1em; }
small { color: var(--muted); }

/* Header */
header.site {
	background: var(--navy);
	color: #fff;
	position: sticky; top: 0; z-index: 50;
	box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
header.site .wrap { display: flex; align-items: center; gap: 22px; height: 60px; }
.brand { font-weight: 800; font-size: 1.2rem; color: #fff; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.brand:hover { text-decoration: none; }
.brand .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(233,185,73,.25); }
header.site nav { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }
header.site nav a { color: #cfe0f3; font-weight: 500; font-size: .95rem; }
header.site nav a:hover { color: #fff; text-decoration: none; }

/* Hero */
.hero { background: linear-gradient(160deg, var(--navy), var(--blue)); color: #fff; padding: 56px 0 64px; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero p.lede { font-size: 1.18rem; color: #d7e4f4; max-width: 60ch; margin-bottom: 1.4em; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.pill { display: inline-block; background: rgba(255,255,255,.12); color: #eaf2fb; padding: 4px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; margin-bottom: 18px; }

/* Buttons */
.btn { display: inline-block; background: var(--gold); color: #2a1c00; font-weight: 700; padding: 12px 22px; border-radius: 10px; border: 0; cursor: pointer; font-size: 1rem; }
.btn:hover { filter: brightness(1.05); text-decoration: none; }
.btn.ghost { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }

/* Cards & grid */
.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card.link:hover { border-color: var(--accent); }
section { padding: 8px 0; }
.section-pad { padding: 40px 0; }

/* Calculator */
.calc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.trip-row { display: flex; gap: 12px; align-items: flex-end; margin-bottom: 10px; flex-wrap: wrap; }
.trip-row label { display: flex; flex-direction: column; font-size: .8rem; color: var(--muted); font-weight: 600; gap: 4px; }
.trip-row input[type=date], #asof { padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: .98rem; font-family: inherit; }
.trip-del { background: #fbe9ec; color: var(--bad); border: 0; border-radius: 8px; width: 36px; height: 38px; cursor: pointer; font-size: 1rem; }
.calc-actions { display: flex; gap: 10px; margin: 14px 0 4px; flex-wrap: wrap; }
.calc-actions button { background: #eef3fa; color: var(--blue); border: 1px solid var(--line); border-radius: 8px; padding: 9px 16px; font-weight: 600; cursor: pointer; }
.asof-row { margin: 18px 0; display: flex; flex-direction: column; gap: 4px; font-size: .8rem; color: var(--muted); font-weight: 600; max-width: 220px; }
.result { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.result-nums { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 14px; }
.result-nums .num { font-size: 2.4rem; font-weight: 800; color: var(--navy); line-height: 1; }
.result-nums .lbl { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.gauge { height: 12px; background: #eef2f7; border-radius: 999px; overflow: hidden; margin: 6px 0 16px; }
.gauge-fill { height: 100%; width: 0; border-radius: 999px; transition: width .3s; background: var(--go); }
.gauge-fill.warn { background: var(--warn); }
.gauge-fill.over { background: var(--bad); }
.verdict { font-weight: 600; padding: 12px 16px; border-radius: 10px; }
.verdict.ok { background: #e7f6f3; color: #1c6b60; }
.verdict.over { background: #fbe9ec; color: #9e2030; }
.plan-note { margin-top: 12px; color: var(--muted); font-size: .95rem; }

/* Live wait badges */
.wait { white-space: nowrap; font-size: .95rem; }
.wait strong { font-weight: 800; }
.wait small { font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; padding: 1px 6px; border-radius: 999px; margin-left: 4px; vertical-align: middle; }
.wait.live strong { color: var(--go); }
.wait.live small { background: #e7f6f3; color: #1c6b60; }
.wait.typical strong { color: var(--blue); }
.wait.typical small { background: #eef2f7; color: #5b6b82; }
.wait.none { color: var(--muted); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--go); margin-right: 6px; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.wait-hero { display: flex; gap: 28px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); margin: 16px 0; }
.wait-hero .w { font-size: 1.9rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.wait-hero .k { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

/* Status badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.badge.live { background: #e7f6f3; color: #1c6b60; }
.badge.partial, .badge.mobile_unit { background: #fff4e0; color: #8a5a07; }
.badge.suspended { background: #fbe9ec; color: #9e2030; }
.badge.pending, .badge.manual { background: #eef2f7; color: #5b6b82; }

/* Tables */
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: .95rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
th { background: #f0f4fa; color: var(--blue); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f8fafd; }

/* Stat strip */
.stats { display: flex; gap: 14px; flex-wrap: wrap; margin: 18px 0; }
.stat { background: rgba(255,255,255,.1); border-radius: 10px; padding: 12px 18px; }
.stat .v { font-size: 1.7rem; font-weight: 800; }
.stat .k { font-size: .8rem; color: #cfe0f3; }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 600; color: var(--navy); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details > p { padding: 0 18px 16px; margin: 0; color: var(--ink); }

/* Callouts */
.callout { border-left: 4px solid var(--accent); background: #eef4fb; padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 16px 0; }
.callout.warn { border-color: var(--warn); background: #fff6e9; }
.callout.bad { border-color: var(--bad); background: #fdeef0; }

/* prose lists */
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }

/* Breadcrumb */
.crumb { font-size: .85rem; color: var(--muted); margin: 18px 0 6px; }

/* Footer */
footer.site { background: var(--navy); color: #b8c8de; padding: 36px 0; margin-top: 56px; font-size: .9rem; }
footer.site a { color: #cfe0f3; }
footer.site .cols { display: flex; gap: 40px; flex-wrap: wrap; margin-bottom: 22px; }
footer.site h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 10px; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 6px; }
.disclaimer { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; color: #8ea4c0; }

/* Mobile nav (CSS-only hamburger) + horizontally scrollable wide tables */
.nav-toggle { position: absolute; left: -9999px; }
.nav-burger { display: none; margin-left: auto; cursor: pointer; color: #fff; font-size: 1.5rem; line-height: 1; padding: 6px 8px; user-select: none; }
.nav-burger::before { content: "☰"; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }

@media (max-width: 820px) {
	.grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
	header.site .wrap { height: auto; min-height: 56px; padding: 8px 20px; flex-wrap: wrap; gap: 10px; }
	.nav-burger { display: block; }
	#nav-toggle:checked ~ .nav-burger::before { content: "✕"; }
	header.site nav { display: none; width: 100%; flex-direction: column; gap: 0; margin: 0 -20px; padding: 0 20px; }
	#nav-toggle:checked ~ nav { display: flex; padding-bottom: 8px; }
	header.site nav a { padding: 12px 2px; width: 100%; border-top: 1px solid rgba(255,255,255,.1); font-size: 1rem; }
	.table-wrap table { white-space: nowrap; }
	.result-nums { gap: 20px; }
	h1 { font-size: 1.75rem; }
	.hero { padding: 40px 0 44px; }
	.section-pad { padding: 28px 0; }
	.btn { width: 100%; text-align: center; }
	.cta-row { flex-direction: column; align-items: stretch; }
	.wait-hero { gap: 18px; }
}
