/* =========================================================
   UK ETA EXPRESS / shared theme for all sub pages
   Same system as the homepages: passport cover navy, security paper,
   foil gold, signal red. Loaded after each page's own styles.
   ========================================================= */
:root, body {
    --cover-navy: #0E1B3D;
    --crown-blue: #00247D;
    --paper: #EEF2F7;
    --paper-line: #C9D3E6;
    --foil-gold: #C2A465;
    --signal-red: #C8102E;
    --stamp-green: #1E7B4F;
    --ink: #141A2E;

    --bg: var(--cover-navy);
    --bg-raised: #15254D;
    --fg: #F2F4F8;
    --fg-muted: rgba(242, 244, 248, 0.70);
    --rule: rgba(194, 164, 101, 0.30);
    --accent: var(--foil-gold);
    --site-nav-bg: rgba(14, 27, 61, 0.92);
    --field-bg: #0F1F45;
    --field-border: rgba(242, 244, 248, 0.22);

    /* legacy variables used inside the page content */
    --text-main: var(--fg);
    --text-muted: var(--fg-muted);
    --text-faint: rgba(242, 244, 248, 0.45);
    --bg-page: var(--bg);
    --bg-card: var(--bg-raised);
    --border-color: var(--rule);
    --header-bg: var(--site-nav-bg);
    --nav-bg: var(--site-nav-bg);
    --glass-bg: var(--bg-raised);
    --glass-border: var(--rule);
    --glass-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.6);
    --card-hover-shadow: 0 16px 36px -24px rgba(0, 0, 0, 0.6);
    --input-bg: var(--field-bg);
    --input-border: var(--field-border);
    --input-text: var(--fg);
    --mobile-menu-bg: var(--bg-raised);
    --mobile-border: var(--rule);
    --bg-overlay: transparent;
    --hero-overlay-start: transparent;
    --hero-overlay-mid: transparent;

    --font-display: 'Source Serif 4', Georgia, serif;
    --font-body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
    --font-mrz: 'IBM Plex Mono', ui-monospace, monospace;
    --dw: 700;
    --display-tracking: -0.01em;
    --wrap: 1240px;
    --gutter: clamp(16px, 4vw, 40px);
}
body.light-mode, html.light-mode body {
    --bg: #F4F6FA;
    --bg-raised: #FFFFFF;
    --fg: var(--ink);
    --fg-muted: #4A5370;
    --rule: rgba(0, 36, 125, 0.16);
    --accent: var(--crown-blue);
    --site-nav-bg: rgba(244, 246, 250, 0.94);
    --field-bg: #FFFFFF;
    --field-border: #C3CCDD;
    --text-main: var(--fg);
    --text-muted: var(--fg-muted);
    --text-faint: rgba(20, 26, 46, 0.45);
    --bg-page: var(--bg);
    --bg-card: var(--bg-raised);
    --border-color: var(--rule);
    --header-bg: var(--site-nav-bg);
    --nav-bg: var(--site-nav-bg);
    --glass-bg: var(--bg-raised);
    --glass-border: var(--rule);
    --glass-shadow: 0 20px 44px -30px rgba(0, 36, 125, 0.35);
    --card-hover-shadow: 0 16px 36px -26px rgba(0, 36, 125, 0.35);
    --input-bg: var(--field-bg);
    --input-border: var(--field-border);
    --input-text: var(--fg);
    --mobile-menu-bg: var(--bg-raised);
    --mobile-border: var(--rule);
}

/* Fonts per language (same pairing as the homepages) */
:lang(zh) { --font-display: 'Chiron Sung HK', 'Noto Serif TC', serif; --font-body: 'Chiron Hei HK', 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif; --dw: 800; --display-tracking: .02em; }
:lang(ja), :lang(jp) { --font-display: 'Noto Serif JP', 'Hiragino Mincho ProN', serif; --font-body: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif; --dw: 800; --display-tracking: .02em; }
:lang(ko), :lang(kr) { --font-display: 'Noto Serif KR', 'AppleMyungjo', serif; --font-body: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; --dw: 800; --display-tracking: 0; }
:lang(ar) { --font-display: 'Noto Naskh Arabic', serif; --font-body: 'Noto Sans Arabic', Tahoma, sans-serif; --dw: 700; --display-tracking: 0; }

/* ---------- Base ---------- */
html { scroll-padding-top: 88px; }
body {
    font-family: var(--font-body) !important;
    background-color: var(--bg) !important;
    background-image: none !important;
    color: var(--fg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
main h1, main h2, main h3, section h1, section h2, section h3, article h1, article h2, article h3 {
    font-family: var(--font-display) !important;
    font-weight: var(--dw) !important;
    letter-spacing: var(--display-tracking) !important;
    text-transform: none !important;
}
main h1, section h1, article h1 { line-height: 1.15 !important; }
:lang(ar) main h1, :lang(ar) section h1 { line-height: 1.5 !important; }
main h4, main h5, main h6, section h4, section h5, section h6 { text-transform: none !important; letter-spacing: 0 !important; }

/* Retire the template chrome: all-caps labels, wide tracking, tiny type */
body .uppercase { text-transform: none !important; }
body [class*="tracking-"] { letter-spacing: .01em !important; }
:lang(ar) [class*="tracking-"] { letter-spacing: 0 !important; }
body [class*="text-[8px]"], body [class*="text-[9px]"], body [class*="text-[10px]"] { font-size: 12px !important; }
body [class*="text-[11px]"] { font-size: 13px !important; }
body .font-black:not(h1):not(h2):not(h3) { font-weight: 700 !important; }

/* Photo heroes give way to the cover embossing */
.bg-uk-hero, .bg-hero-overlay { display: none !important; }
.cover-emboss {
    position: absolute; inset: 0 0 auto 0; height: 900px; z-index: -1; pointer-events: none;
    background:
        repeating-radial-gradient(circle at 88% 8%, transparent 0 13px, rgba(194,164,101,.10) 13px 14px),
        repeating-radial-gradient(circle at 70% -10%, transparent 0 17px, rgba(194,164,101,.06) 17px 18px);
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 85% 10%, #000 20%, transparent 75%);
            mask-image: radial-gradient(ellipse 60% 70% at 85% 10%, #000 20%, transparent 75%);
}
body.light-mode .cover-emboss {
    background:
        repeating-radial-gradient(circle at 88% 8%, transparent 0 13px, rgba(0,36,125,.07) 13px 14px),
        repeating-radial-gradient(circle at 70% -10%, transparent 0 17px, rgba(0,36,125,.045) 17px 18px);
}

/* Surfaces */
.glass-panel, .glass-card, .bg-card {
    background: var(--bg-raised) !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    border: 1px solid var(--rule) !important;
    box-shadow: var(--glass-shadow) !important;
}
body [class*="rounded-[2"], body [class*="rounded-[3"], body .rounded-3xl { border-radius: 14px !important; }
body .rounded-2xl { border-radius: 12px !important; }
body [class*="backdrop-blur"] { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
body .drop-shadow-2xl, body .drop-shadow-md, body .drop-shadow-lg { filter: none !important; }
.input-theme {
    background: var(--field-bg) !important; border: 1px solid var(--field-border) !important; color: var(--fg) !important;
    border-radius: 8px !important; font-size: 16px !important; font-weight: 500 !important; min-height: 48px;
}
.input-theme:focus { border-color: var(--accent) !important; box-shadow: 0 0 0 3px rgba(0, 36, 125, .18) !important; }
.input-label { font-size: 13px !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--fg-muted) !important; }
details > summary { cursor: pointer; }

/* ---------- Navigation (identical to the homepages) ---------- */
.site-wrap, .nav .wrap, .footer .wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    background: var(--site-nav-bg);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rule);
    font-family: var(--font-body);
    line-height: 1.5;
}
.nav-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.nav .wordmark { font-weight: 700; font-size: 18px; letter-spacing: .02em; color: var(--fg); white-space: nowrap; text-decoration: none; }
.nav .wordmark span { color: var(--signal-red); }
.nav .brand-by { font-size: 12px; color: var(--fg-muted); }
.nav .brand-partner { display: flex; align-items: center; gap: 8px; }
.nav .brand-partner img { display: block; }
.nav .brand-partner img:first-child { height: 15px; width: auto; }
.nav .brand-partner img:last-child { height: 18px; width: auto; border-radius: 2px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--fg-muted); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.nav-links a:hover { color: var(--fg); }
.nav-links svg { width: 15px; height: 15px; }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.icon-btn {
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--rule); background: transparent;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--fg-muted);
}
.icon-btn:hover { color: var(--fg); }
.icon-btn svg { width: 17px; height: 17px; }
.nav .light-icon { display: none; }
body.light-mode .nav .light-icon { display: inline; }
body.light-mode .nav .dark-icon { display: none; }
.lang { position: relative; }
.lang summary {
    list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--fg);
    height: 38px; padding: 0 12px; border-radius: 19px; border: 1px solid var(--rule); font-size: 13px; font-weight: 700;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 14px; height: 14px; }
.lang-list {
    position: absolute; right: 0; top: calc(100% + 8px); width: 184px; padding: 6px;
    background: var(--bg-raised); border: 1px solid var(--rule); border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}
.lang-list a { display: block; padding: 7px 12px; border-radius: 8px; font-size: 14px; color: var(--fg-muted); text-decoration: none; }
.lang-list a:hover { background: var(--crown-blue); color: #fff; }
.lang-list a[aria-current="page"] { color: var(--fg); font-weight: 700; }
.menu-btn { display: none !important; }
#mobile-menu {
    position: absolute; left: 0; right: 0; top: 72px; background: var(--bg-raised); border-bottom: 1px solid var(--rule);
    max-height: 0; opacity: 0; overflow: hidden auto; transition: max-height .35s ease, opacity .35s ease;
}
#mobile-menu.open { max-height: 82vh; opacity: 1; }
.mobile-inner { padding: 20px var(--gutter) 28px; display: grid; gap: 18px; }
.mobile-inner > a { font-size: 17px; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; color: var(--fg); }
.mobile-inner svg { width: 17px; height: 17px; }
.mobile-group { padding-top: 16px; border-top: 1px solid var(--rule); }
.mobile-group p { margin: 0 0 10px; font-size: 13px; color: var(--fg-muted); }
.mobile-langs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.mobile-langs a { font-size: 14px; color: var(--fg-muted); text-decoration: none; }
.mobile-langs a[aria-current="page"] { color: var(--fg); font-weight: 700; }
.mobile-theme { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; font-size: 15px; cursor: pointer; color: var(--fg); }

/* ---------- Footer (identical to the homepages) ---------- */
.footer { margin-top: 40px; padding: 56px 0 40px; background: #091330; color: #C9D0E0; text-align: center; font-family: var(--font-body); line-height: 1.7; }
body.light-mode .footer { background: #E7EBF3; color: #3B4463; }
.footer-note { max-width: 36em; margin: 0 auto 28px; font-size: 14px; line-height: 1.9; }
.footer-note span { display: block; margin-top: 6px; opacity: .7; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; margin-bottom: 32px; }
.footer-links a, .footer-links span { font-size: 14px; text-decoration: none; color: inherit; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.payment-icons { display: flex; justify-content: center; align-items: center; gap: 32px; margin-bottom: 28px; }
.payment-icons img { height: 22px; width: auto; filter: brightness(0) invert(1); opacity: .5; }
body.light-mode .payment-icons img { filter: grayscale(1) brightness(.3); opacity: .7; }
.copyright { font-size: 12px; opacity: .6; margin: 0; }

@media (max-width: 1080px) {
    .nav-links { display: none; }
    .nav-tools .icon-btn.theme, .nav-tools .lang { display: none; }
    .menu-btn { display: inline-flex !important; }
}
@media (max-width: 720px) {
    .nav .wordmark { font-size: 16px; }
    .nav .brand-by, .nav .brand-partner img:last-child { display: none; }
}

/* ---------- Right to left ---------- */
[dir=rtl] .lang-list { right: auto; left: 0; }
[dir=rtl] .lucide-arrow-right, [dir=rtl] .lucide-chevron-left, [dir=rtl] .lucide-chevron-right { transform: scaleX(-1); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Dark mode for content written with light utility colours ---------- */
body:not(.light-mode) [class*="text-[#00247D]"], body:not(.light-mode) [class*="text-[#1a42a8]"], body:not(.light-mode) .text-brand-blue,
body:not(.light-mode) [class*="text-blue-"], body:not(.light-mode) [style*="color: var(--brand-blue)"], body:not(.light-mode) [style*="color:var(--brand-blue)"] { color: #A9BEF5 !important; }
body:not(.light-mode) .bg-white, body:not(.light-mode) .bg-gray-50, body:not(.light-mode) .bg-gray-100, body:not(.light-mode) .bg-slate-50 { background-color: var(--bg-raised) !important; }
body:not(.light-mode) .text-gray-900, body:not(.light-mode) .text-gray-800, body:not(.light-mode) .text-black, body:not(.light-mode) .text-slate-900 { color: var(--fg) !important; }
body:not(.light-mode) .text-gray-700, body:not(.light-mode) .text-gray-600, body:not(.light-mode) .text-gray-500, body:not(.light-mode) .text-slate-600 { color: var(--fg-muted) !important; }
body:not(.light-mode) [class*="border-gray-"] { border-color: var(--rule) !important; }
body:not(.light-mode) .content-card, body:not(.light-mode) .requirement-box { background: var(--bg-raised) !important; border-color: var(--rule) !important; color: var(--fg); }
body:not(.light-mode) [class*="bg-white/"], body:not(.light-mode) [class*="bg-gray-50/"] { background-color: var(--bg-raised) !important; }
body.dark-mode [class*="dark:bg-[#1"], body.dark-mode [class*="dark:bg-[#0"], body.dark-mode [class*="dark:bg-black"],
body.dark-mode [class*="dark:bg-gray-9"], body.dark-mode [class*="dark:bg-slate-9"], body.dark-mode [class*="dark:bg-zinc-9"], body.dark-mode [class*="dark:bg-neutral-9"] { background-color: var(--bg-raised) !important; }
