/* ==========================================================================
   Independent passport & visa assistance — site stylesheet
   No external fonts or scripts (keeps the Content-Security-Policy strict).
   Palette: deep navy + Kenyan highland green + savanna gold. Flag colours and
   national emblems are intentionally avoided so the site never looks official.
   All text colours meet WCAG 2.1 AA contrast on their backgrounds.
   ========================================================================== */

:root {
  --navy: #0f2e4a;
  --navy-2: #1b4466;
  --ink: #1d2f40;
  --muted: #4f6478;          /* 6.0:1 on white */
  --line: #dce5ec;
  --pale: #f4f7fa;
  --white: #ffffff;
  --blue: #1d5f9c;           /* links/accents, 6.2:1 on white */
  --green: #1d6b4f;          /* 6.1:1 on white */
  --green-bg: #e6f2ec;
  --gold: #c8922e;
  --gold-bg: #fbf2e1;
  --amber-ink: #7a4c05;
  --red: #a42a2a;
  --red-bg: #fbeaea;
  --radius: 10px;
  --shadow: 0 14px 40px rgba(15, 46, 74, .08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }  /* class display rules must never override the hidden attribute */
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--white); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); letter-spacing: -.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
ul, ol { padding-left: 1.25rem; }
:focus-visible { outline: 3px solid #f0b43c; outline-offset: 2px; border-radius: 4px; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.container.narrow { width: min(920px, calc(100% - 40px)); }
.prose { max-width: 820px; }
.prose.wide { max-width: 1060px; }
.prose h2 { margin-top: 1.8em; }
.prose li { margin-bottom: .45em; }
.muted, .form-hint { color: var(--muted); font-size: .92rem; }
.small { font-size: .85rem; }
.centre { text-align: center; }
.lead { font-size: 1.12rem; color: var(--muted); }
.pre-line { white-space: pre-line; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 10px 14px; z-index: 100; border-radius: 6px; }
.skip-link:focus { left: 8px; }
.inline-link { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.inline-link:hover { color: var(--navy); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; color: var(--green); margin-bottom: .6rem; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.eyebrow-light { color: #cfe3d8; }

/* ---------- Buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 20px; min-height: 44px;
  background: var(--navy); color: #fff; border: 1px solid var(--navy); border-radius: 8px; font: 600 .95rem/1.2 var(--font);
  cursor: pointer; transition: background .15s, color .15s; text-align: center; }
.button:hover { background: var(--navy-2); }
.button-primary { background: var(--navy); }
.button-small { padding: 8px 14px; min-height: 38px; font-size: .88rem; }
.button-secondary, .button-outline { background: #fff; color: var(--navy); border-color: #b8c8d6; }
.button-secondary:hover, .button-outline:hover { background: var(--pale); color: var(--navy); }
.button-light { background: #fff; color: var(--navy); border-color: #fff; }
.button-light:hover { background: #e8f0f6; }
.button-wide { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }
.text-button { border: 0; background: none; color: var(--blue); font: 600 .9rem var(--font); cursor: pointer; padding: 8px; }
.text-link { font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Header & navigation ---------- */
.site-header { background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.nav-wrap { min-height: 74px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; margin-right: auto; }
.brand-mark { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; box-shadow: inset 0 -4px 0 var(--gold); }
.brand-copy { display: grid; line-height: 1.2; min-width: 0; }
.brand-copy strong { font-size: .95rem; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 330px; }
.brand-copy small { font-size: .75rem; color: var(--muted); }
.nav-panel { display: flex; align-items: center; gap: 22px; }
.main-nav { display: flex; gap: 18px; align-items: center; }
.main-nav a { font-size: .92rem; font-weight: 600; color: #34495d; padding: 6px 2px; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--blue); border-bottom-color: var(--gold); }
.nav-account { display: flex; align-items: center; gap: 10px; }
.nav-logout { margin: 0; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label { display: none; }
.workspace-bar { background: var(--navy); }
.workspace-links { display: flex; gap: 4px 18px; flex-wrap: wrap; padding: 8px 0; }
.workspace-links a { color: #dbe7f1; font-size: .86rem; font-weight: 600; padding: 4px 0; }
.workspace-links a:hover { color: #fff; text-decoration: underline; }

/* ---------- Flash messages & notices ---------- */
.flash-wrap { padding-top: 16px; display: grid; gap: 8px; }
.flash { padding: 12px 16px; border-radius: 8px; background: var(--green-bg); color: #164c38; border: 1px solid #c4e0d2; font-size: .95rem; }
.flash-error { background: var(--red-bg); color: #7d1f1f; border-color: #efc7c7; }
.flash-info { background: #e9f1f9; color: #1d4a74; border-color: #c9dbec; }
.notice { background: #eef4f9; border-left: 4px solid var(--blue); padding: 14px 16px; margin: 16px 0; color: #24435e; border-radius: 0 8px 8px 0; font-size: .95rem; }
.notice ul { margin: .4em 0 0; }
.disclaimer-box { border: 1px solid #e3d3b0; background: var(--gold-bg); border-radius: var(--radius); padding: 14px 18px; margin: 18px 0; }
.disclaimer-box strong { display: block; color: var(--amber-ink); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.disclaimer-box p { margin: 0; color: #4b3a17; font-size: .95rem; }
.source-note { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.empty-note { background: var(--pale); border: 1px dashed #c6d4e0; border-radius: var(--radius); padding: 16px; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(120deg, #f4f8fb 0%, #f7f9f5 60%, #eef4ef 100%); overflow: hidden; }
.hero-grid { min-height: 540px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; padding-block: 64px; }
.hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.5rem); }
.hero h1 span { color: var(--green); }
.hero-lead { font-size: 1.08rem; color: var(--muted); max-width: 600px; }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 26px; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 30px; color: var(--muted); font-size: .9rem; max-width: 560px; }
.shield { flex: 0 0 26px; width: 26px; height: 26px; display: grid; place-items: center; background: var(--gold-bg); color: var(--amber-ink); border-radius: 50%; font-weight: 800; }
.hero-visual { height: 380px; position: relative; display: grid; place-items: center; }
.visual-orbit { position: absolute; border: 1px solid rgba(29,107,79,.18); border-radius: 50%; width: 350px; height: 350px; }
.orbit-two { width: 280px; height: 280px; border-style: dashed; }
.visual-card { position: relative; width: 225px; height: 290px; border-radius: 13px; background: linear-gradient(150deg, #1d5a45, #12382c); box-shadow: 0 30px 60px rgba(15,46,74,.25); padding: 26px; color: #ecd9a6; transform: rotate(-7deg); z-index: 2; }
.passport-top { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: .62rem; letter-spacing: .2em; }
.passport-emblem { font-size: 2rem; }
.passport-lines { margin: 64px auto 0; width: 115px; display: grid; gap: 9px; }
.passport-lines i { height: 3px; background: rgba(236,217,166,.35); border-radius: 4px; }
.passport-lines i:nth-child(2) { width: 75%; margin: auto; }
.passport-footer { position: absolute; bottom: 22px; left: 24px; right: 24px; display: flex; justify-content: space-between; font-size: .55rem; letter-spacing: .12em; }
.floating-chip { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 11px 14px; display: flex; align-items: center; gap: 10px; z-index: 3; }
.chip-one { top: 40px; right: 0; } .chip-two { bottom: 44px; left: 0; }
.chip-icon { width: 30px; height: 30px; display: grid; place-items: center; background: var(--green-bg); color: var(--green); border-radius: 8px; font-weight: 800; }
.chip-blue { background: #e8f0f8; color: var(--blue); }
.floating-chip b, .floating-chip small { display: block; }
.floating-chip b { font-size: .78rem; color: var(--navy); }
.floating-chip small { font-size: .72rem; color: var(--muted); }
.trust-strip { border-bottom: 1px solid var(--line); background: #fff; }
.trust-items { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-block: 18px; }
.trust-items span { font-size: .9rem; color: var(--muted); font-weight: 600; }
.trust-items b { color: var(--gold); margin-right: 6px; }

/* ---------- Sections & cards ---------- */
.section { padding: 80px 0; }
.section.policy { padding: 56px 0 72px; }
.section-heading { text-align: center; max-width: 700px; margin: 0 auto 40px; }
.section-heading p { color: var(--muted); }
.section-footnote { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 24px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-grid.two-up { grid-template-columns: repeat(2, 1fr); }
.service-card { border: 1px solid var(--line); border-radius: 12px; padding: 28px; background: #fff; display: flex; flex-direction: column; }
.featured-card { border-color: #c5d6e5; background: linear-gradient(160deg, #f6f9fc, #fff); }
.service-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; font-size: 1.35rem; margin-bottom: 18px; }
.icon-gold { background: var(--gold-bg); color: var(--amber-ink); }
.icon-blue { background: #e8f0f8; color: var(--blue); }
.icon-green { background: var(--green-bg); color: var(--green); }
.card-kicker { font-size: .72rem; letter-spacing: .1em; font-weight: 700; color: var(--muted); }
.service-card h3 { font-size: 1.3rem; margin: 6px 0 12px; }
.card-note { font-size: .9rem; color: var(--muted); }
.card-link { margin-top: auto; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 16px; font-weight: 700; color: var(--blue); }
.tick-list, .check-list { list-style: none; padding: 0; margin: 0 0 16px; }
.tick-list li, .check-list li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.tick-list li::before, .check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 800; }
.process-section { background: var(--pale); padding: 80px 0; }
.process-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; }
.process-intro p { color: var(--muted); }
.step { display: grid; grid-template-columns: 50px 1fr; gap: 18px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid #d6e1ea; }
.step:last-child { border: 0; margin: 0; padding: 0; }
.step-number { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--gold); color: var(--navy); font-size: .85rem; font-weight: 800; }
.step h3 { margin: 4px 0 6px; } .step p { margin: 0; color: var(--muted); }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.benefit-grid.three { grid-template-columns: repeat(3, 1fr); }
.benefit-grid article { border: 1px solid var(--line); border-radius: 12px; padding: 22px; background: #fff; }
.benefit-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--green-bg); color: var(--green); display: grid; place-items: center; font-size: 1.2rem; margin-bottom: 14px; }
.benefit-grid p { color: var(--muted); margin: 0; }
.faq-section { background: var(--pale); }
.faq-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 72px; }
.faq-heading { text-align: left; margin: 0; }
.faq-list details { border-bottom: 1px solid #d6e1ea; padding: 16px 0; }
.faq-list summary { font-weight: 700; color: var(--navy); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--blue); font-size: 1.3rem; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { color: var(--muted); padding: 10px 28px 0 0; margin: 0; }
.contact-section { background: var(--navy); padding: 68px 0; }
.contact-panel { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.contact-panel h2 { color: #fff; } .contact-panel p { color: #c9d8e5; }
.contact-details { border-left: 1px solid rgba(255,255,255,.2); padding-left: 40px; display: grid; gap: 16px; }
.contact-details small { display: block; font-size: .72rem; letter-spacing: .12em; color: #a9c0d3; }
.contact-details strong { color: #fff; }
.info-block { border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; margin: 16px 0; }
.info-block h2 { font-size: 1.2rem; margin: 0 0 8px; }
.info-block p { margin: 0; color: #2d4255; }
.fee-compare, .channel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 24px 0; }
.fee-compare article, .channel-card { border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: #fff; }
.fee-compare article:first-child { border-color: #b9d8c7; background: #f6fbf8; }
.fee-compare h2, .channel-card h3 { font-size: 1.05rem; margin: 0 0 10px; }
.fee-compare ul { margin: 0; padding-left: 1.1rem; font-size: .93rem; }

/* ---------- Forms ---------- */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.form-group label, .form-field label { font-size: .9rem; font-weight: 600; color: var(--navy); }
.form-control, .form-field input, .form-field select, .form-field textarea,
.history-panel form input:not([type=hidden]):not([type=checkbox]):not([type=radio]),
.history-panel form select, .history-panel form textarea,
.form-card input:not([type=checkbox]), .form-card select, .form-card textarea,
.inline-form select, .inline-form input:not([type=hidden]), .upload-box select, .upload-box input[type=file],
.subtle-fieldset input, .privacy-panel select, .privacy-panel textarea {
  width: 100%; min-height: 44px; border: 1px solid #b9c9d7; border-radius: 7px; padding: 10px 12px; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; }
textarea { min-height: 96px; resize: vertical; }
input[type=file] { padding: 9px; background: var(--pale); }
.form-control:focus, input:focus, select:focus, textarea:focus { outline: 3px solid #f0b43c; outline-offset: 1px; border-color: var(--blue); }
.is-invalid { border-color: var(--red) !important; }
.field-error { color: var(--red); font-size: .9rem; margin: 4px 0; display: block; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field small { color: var(--muted); font-size: .85rem; }
.full-width { grid-column: 1 / -1; }
.history-panel form label, .form-card label, .upload-box label, .subtle-fieldset label { display: block; margin: 12px 0; font-size: .9rem; font-weight: 600; color: var(--navy); }
.history-panel form label > input, .history-panel form label > select, .history-panel form label > textarea,
.form-card label > input, .form-card label > select, .form-card label > textarea, .upload-box label > select, .upload-box label > input { margin-top: 6px; }
.check-label { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 12px; font-weight: 500 !important; line-height: 1.55; margin: 16px 0; }
.check-label input { margin-top: 4px; width: 20px; height: 20px; flex: 0 0 auto; min-height: 0 !important; }
.form-card { border: 1px solid var(--line); border-radius: 12px; padding: 24px; background: #fff; margin: 20px 0; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 10px 0; }
.inline-form label { width: 100%; font-weight: 600; color: var(--navy); }
.inline-form select, .inline-form input:not([type=hidden]) { flex: 1 1 240px; width: auto; }
.upload-box { border: 1px dashed #aac0d2; border-radius: 12px; padding: 18px 20px; margin-top: 18px; background: #fbfdff; }
.upload-box h3 { margin: 0 0 6px; }
.subtle-fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 14px 0; }
.subtle-fieldset legend { font-size: .88rem; font-weight: 600; color: var(--muted); padding: 0 6px; }
.collection-notice { background: var(--pale); border-radius: 10px; padding: 14px 16px; margin: 6px 0 4px; }
.collection-notice h2 { font-size: 1rem; margin: 0 0 6px; }
.collection-notice p, .collection-notice-inline { font-size: .92rem; color: #33495c; margin: 0; }
.collection-notice-inline { background: var(--pale); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }

/* ---------- Auth & portal ---------- */
.auth-section, .portal-section { background: var(--pale); padding: 48px 0 72px; min-height: 60vh; }
.auth-card { width: min(100% - 32px, 480px); margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 34px; box-shadow: var(--shadow); }
.auth-card-wide { width: min(100% - 32px, 760px); }
.auth-card h1, .portal-heading h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.auth-intro { color: var(--muted); }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); margin-top: 22px; padding-top: 16px; font-size: .92rem; color: var(--muted); }
.auth-links a { color: var(--blue); font-weight: 600; }
.qr-wrap { text-align: center; }
.breadcrumb { display: flex; gap: 8px; font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--blue); text-decoration: underline; }
.portal-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.portal-heading p { color: var(--muted); margin: 0; }
.portal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 20px 0; }
.portal-tile, .history-panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.portal-tile { display: grid; gap: 6px; } .portal-tile:hover { border-color: #a9c0d3; }
.portal-tile strong { color: var(--navy); font-size: 1.05rem; }
.portal-tile span { color: var(--muted); font-size: .92rem; }
.history-panel { margin-bottom: 18px; }
.history-panel h2 { font-size: 1.25rem; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 20px; }
.action-card { display: grid; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; transition: border-color .15s, box-shadow .15s; }
.action-card:hover { border-color: #a9c0d3; box-shadow: var(--shadow); }
.action-card strong { color: var(--navy); font-size: 1.12rem; }
.action-card span:not(.service-icon) { color: var(--muted); font-size: .93rem; }
.action-card em { font-style: normal; font-weight: 700; color: var(--blue); margin-top: 6px; }
.action-card .service-icon { margin-bottom: 6px; }
.count-badge { display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: 99px; background: var(--red); color: #fff; font-size: .78rem; text-align: center; }
.stepper { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; flex-wrap: wrap; counter-reset: step; }
.stepper li { counter-increment: step; flex: 1 1 140px; padding: 8px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.stepper li::before { content: counter(step) ". "; font-weight: 700; }
.stepper li.current { border-color: var(--navy); color: var(--navy); font-weight: 700; }
.stepper li.done { background: var(--green-bg); border-color: #b9d8c7; color: #164c38; }
.fact-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 0 0 14px; }
.fact-list > div { background: var(--pale); border-radius: 10px; padding: 12px 14px; }
.fact-list dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.fact-list dd { margin: 4px 0 0; font-weight: 600; color: var(--navy); }
.answers summary { cursor: pointer; font-weight: 600; color: var(--blue); }
.document-list { list-style: none; padding: 0; margin: 0; }
.document-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.document-list li > form, .document-list li > p { flex-basis: 100%; }
.document-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.official-requirements { background: #f6fbf8; border: 1px solid #c7e1d4; border-radius: 10px; padding: 14px 18px; margin-top: 16px; }
.official-requirements h3 { margin: 0 0 8px; font-size: 1rem; }
.official-requirements ul { margin: 0; font-size: .93rem; }
.privacy-panel { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 22px; }
.privacy-panel h2 { font-size: 1.2rem; }

/* ---------- Status pills ---------- */
.status-pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .8rem; font-weight: 700; background: #e8eef4; color: #23405a; white-space: nowrap; vertical-align: middle; }
.tone-neutral { background: #eceff2; color: #3b4a58; }
.tone-progress { background: #e4eef8; color: #1d4a74; }
.tone-action { background: #fdf0d8; color: var(--amber-ink); }
.tone-success { background: var(--green-bg); color: #164c38; }
.tone-danger { background: var(--red-bg); color: #7d1f1f; }
.status-panel h2 { margin-top: 4px; }

/* ---------- Payments ---------- */
.payment-card { border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin: 14px 0; background: #fff; }
.fee-table { width: 100%; border-collapse: collapse; margin: 10px 0 14px; font-size: .95rem; }
.fee-table th, .fee-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.fee-table td:last-child { text-align: right; white-space: nowrap; }
.fee-table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.fee-table tr.total th, .fee-table tr.total td { font-weight: 800; color: var(--navy); background: var(--pale); }
.policy-table td:last-child { text-align: left; white-space: normal; }
.external-fees { background: var(--pale); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; font-size: .93rem; }
.external-fees ul { margin: 6px 0; }
.instructions { background: #f6fbf8; border: 1px solid #c7e1d4; border-radius: 10px; padding: 12px 14px; margin: 10px 0; }
.instructions p { margin: 6px 0 0; }
.payment-form { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 6px; }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; text-align: left; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
tbody tr:hover { background: #fafcfd; }
.row-actions { text-align: right; white-space: nowrap; }

/* ---------- Timeline & messages ---------- */
.timeline { margin: 0; padding-left: 1.2rem; }
.timeline li { padding: 0 0 1rem .4rem; }
.timeline li p { margin: .3rem 0; color: var(--muted); font-size: .93rem; }
.timeline li small, .message small { display: block; color: var(--muted); font-size: .82rem; }
.message { padding: 14px 0; border-bottom: 1px solid var(--line); }
.message:last-child { border-bottom: 0; }
.message p { white-space: pre-wrap; margin: 6px 0 0; }

/* ---------- Admin ---------- */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: grid; gap: 6px; }
.stat-card span { color: var(--muted); font-size: .88rem; }
.stat-card strong { color: var(--navy); font-size: 1.35rem; overflow-wrap: anywhere; }
.readiness-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.readiness-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 8px; background: var(--pale); }
.readiness-list li > span { flex: 0 0 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; }
.readiness-list li.ok > span { background: var(--green-bg); color: var(--green); }
.readiness-list li.todo > span { background: #fdf0d8; color: var(--amber-ink); }
.readiness-list small { display: block; color: var(--muted); }
.page-header { padding: 32px 0 8px; }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; align-items: end; }
.list-item, .message-card, .card { border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin: 10px 0; background: #fff; }

/* ---------- Wizard (passport & eTA) ---------- */
.form-container { max-width: 860px; margin: 0 auto; }
.wizard-progress { margin: 22px 0 26px; font-size: .92rem; color: var(--muted); font-weight: 700; }
.wizard-progress-top { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; }
.progress-track { height: 8px; background: #e2eaf0; border-radius: 99px; margin-top: 8px; overflow: hidden; }
.progress-track span { display: block; height: 100%; width: 12.5%; background: var(--green); transition: width .2s; }
.wizard-step { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 24px; margin: 0 0 20px; background: #fff; }
.wizard-step legend { font-size: 1.2rem; font-weight: 800; color: var(--navy); padding: 0 8px; }
.wizard-step label { display: flex; flex-direction: column; gap: 6px; font-size: .92rem; font-weight: 600; color: var(--navy); margin: 12px 0; }
.wizard-step input:not([type=checkbox]), .wizard-step select, .wizard-step textarea { width: 100%; min-height: 44px; border: 1px solid #b9c9d7; border-radius: 7px; padding: 10px 12px; font: inherit; font-size: 1rem; background: #fff; color: var(--ink); }
.wizard-step .conditional { display: block; padding: 12px 15px; background: var(--pale); border-radius: 8px; margin: 14px 0; }
.wizard-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line); }
.wizard-spacer { flex: 1; }
.review-summary { background: var(--pale); border-radius: 8px; padding: 14px; }
.review-summary p { border-bottom: 1px solid var(--line); padding: 7px; margin: 0; }
.review-summary p:last-child { border: 0; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .8rem; margin: 1rem 0 1.5rem; }
.review-grid > div { padding: .8rem; border: 1px solid var(--line); border-radius: 9px; overflow-wrap: anywhere; }
.review-grid strong, .review-grid span { display: block; }
.eta-step { padding: 1.25rem 0; } .eta-step[hidden] { display: none; }
.eligibility-note { margin: 1.25rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--pale); }
.consent-check { display: flex; align-items: flex-start; gap: .7rem; padding: 1rem; border: 1px solid var(--line); border-radius: 10px; }

/* ---------- Empty/error states ---------- */
.empty-state { min-height: 55vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-block: 64px; }
.empty-state p { color: var(--muted); max-width: 560px; }
.empty-code { font-size: 3.6rem; font-weight: 800; color: #c9d6e2; }

/* ---------- Footer ---------- */
.site-footer { background: #0b2236; color: #c9d6e2; padding: 0 0 22px; margin-top: 0; }
.footer-notice { border-bottom: 1px solid rgba(255,255,255,.12); padding: 22px 0; }
.footer-notice strong { color: #f3d79b; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-notice p { margin: 6px 0 0; color: #dbe5ee; font-size: .95rem; max-width: 980px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .9fr .9fr; gap: 40px; padding: 36px 0; }
.footer-brand { color: #fff; font-size: 1.05rem; font-weight: 800; }
.footer-grid p { font-size: .9rem; color: #b8c9d8; margin: 10px 0 0; }
.footer-legal { font-size: .82rem !important; }
.footer-grid h3 { font-size: .95rem; color: #fff; margin: 0 0 12px; }
.footer-grid > div > a:not(.footer-brand) { display: block; font-size: .9rem; color: #c3d3e1; margin: 8px 0; }
.footer-grid > div > a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #a9bccd; font-size: .82rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav { gap: 12px; } .main-nav a { font-size: .86rem; }
  .brand-copy strong { max-width: 180px; }
}
@media (max-width: 960px) {
  .nav-toggle-label { display: inline-flex; align-items: center; gap: 4px; flex-direction: column; justify-content: center; width: 48px; height: 44px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; position: relative; }
  .nav-toggle-label span { display: block; width: 20px; height: 2px; background: var(--navy); }
  .nav-toggle-label b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nav-toggle:focus-visible + .nav-toggle-label { outline: 3px solid #f0b43c; }
  .nav-wrap { flex-wrap: wrap; }
  .nav-panel { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 8px; padding: 6px 0 16px; }
  .nav-toggle:checked ~ .nav-panel { display: flex; }
  .main-nav { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-account { flex-wrap: wrap; padding-top: 8px; }
  .hero-grid, .process-layout, .faq-layout, .contact-panel { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { display: none; }
  .hero-grid { min-height: 0; padding-block: 48px; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-details { border-left: 0; border-top: 1px solid rgba(255,255,255,.2); padding: 22px 0 0; }
}
@media (max-width: 700px) {
  body { font-size: 15.5px; }
  .container, .container.narrow { width: calc(100% - 28px); }
  .section { padding: 56px 0; } .process-section { padding: 56px 0; }
  .service-grid, .service-grid.two-up, .benefit-grid, .benefit-grid.three, .form-grid, .portal-grid { grid-template-columns: 1fr; }
  .trust-items { display: grid; grid-template-columns: 1fr 1fr; }
  .auth-card { padding: 24px 18px; }
  .history-panel, .portal-tile { padding: 18px 16px; }
  .portal-heading { align-items: flex-start; }
  .wizard-step { padding: 18px 14px; }
  .wizard-actions .button, .button-row .button { flex: 1 1 auto; }
  .wizard-spacer { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .brand-copy small { display: none; }
  /* Stack data tables into labelled cards on phones */
  .responsive-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .responsive-table, .responsive-table tbody, .responsive-table tr, .responsive-table td { display: block; width: 100%; }
  .responsive-table tr { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; padding: 6px 4px; }
  .responsive-table td { border: 0; padding: 6px 10px; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .responsive-table td::before { content: attr(data-label); font-weight: 700; color: var(--muted); text-align: left; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
  .responsive-table td.row-actions { justify-content: flex-end; }
  .responsive-table td.row-actions::before { content: none; }
  .fee-table th, .fee-table td { padding: 9px 8px; }
  .fee-table th[scope=row] { font-size: .85rem; text-transform: none; letter-spacing: 0; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print {
  .site-header, .site-footer .footer-grid, .workspace-bar, .button, .nav-toggle-label { display: none !important; }
  body { font-size: 12pt; color: #000; }
  .footer-notice { border: 0; } .footer-notice p, .footer-notice strong { color: #000; }
  .site-footer { background: none; }
}

/* Stage 2 customer dashboard */
.dashboard-heading { align-items: center; gap: 20px; }
.account-reference { margin-top: 10px; color: var(--muted); font-size: .92rem; }
.account-reference strong { color: var(--navy); letter-spacing: .03em; }
.profile-progress, .stat-card, .history-panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.profile-progress { padding: 16px 18px; margin: 0 0 22px; }
.profile-progress > div:first-child { display:flex; justify-content:space-between; gap:12px; }
.progress-track { height: 9px; background: #e9eef2; border-radius: 20px; overflow:hidden; margin: 10px 0 7px; }
.progress-track span { display:block; height:100%; background: var(--green); border-radius:inherit; }
.profile-progress a { font-size:.88rem; }
.dashboard-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:20px 0 28px; }
.stat-card { padding:15px 17px; display:flex; flex-direction:column; gap:7px; min-height:82px; }
.stat-card span { color:var(--muted); font-size:.86rem; }
.stat-card strong { color:var(--navy); font-size:1.55rem; line-height:1.1; }
.stat-link { text-decoration:none; }
.dashboard-section-title { font-size:1.35rem; margin:25px 0 14px; }
.dashboard-columns { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr); gap:18px; margin:18px 0; align-items:start; }
.dashboard-columns .history-panel { min-width:0; padding:20px; }
.dashboard-columns .panel-heading { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.dashboard-columns .panel-heading h2 { font-size:1.15rem; margin:0; }
.dashboard-action-list,.activity-list { list-style:none; padding:0; margin:12px 0 0; }
.dashboard-action-list li { display:flex; justify-content:space-between; gap:12px; padding:13px 0; border-bottom:1px solid var(--line); }
.dashboard-action-list li:last-child { border-bottom:0; }
.dashboard-action-list strong,.activity-list strong { display:block; font-size:.94rem; }
.dashboard-action-list p,.activity-list p { color:var(--muted); margin:4px 0; font-size:.86rem; }
.dashboard-action-list a { flex-shrink:0; font-size:.85rem; font-weight:700; }
.activity-list li { display:flex; gap:12px; padding:11px 0; border-bottom:1px solid var(--line); }
.activity-dot { width:9px; height:9px; margin:6px 0 0 2px; flex:0 0 9px; border-radius:50%; background:var(--gold); }
.activity-list small { color:var(--muted); font-size:.78rem; }
.dashboard-link-list { display:grid; }
.dashboard-link-list a { padding:12px 0; border-bottom:1px solid var(--line); font-weight:700; text-decoration:none; }
.dashboard-link-list a span { display:block; color:var(--muted); font-weight:400; font-size:.84rem; margin-top:3px; }
.dashboard-disclaimer { color:var(--muted); font-size:.82rem; margin:22px 0 0; }
@media(max-width:850px) { .dashboard-stats { grid-template-columns:repeat(2,minmax(0,1fr)); } .dashboard-columns { grid-template-columns:1fr; } }
@media(max-width:560px) { .dashboard-heading { align-items:flex-start; flex-direction:column; } .dashboard-stats { gap:8px; } .stat-card { padding:12px; } .stat-card strong { font-size:1.3rem; } .dashboard-columns .history-panel { padding:14px; } }
.customer-shortcuts { display:flex; flex-wrap:wrap; gap:8px; margin:16px 0 22px; }
.customer-shortcuts a { display:inline-block; padding:8px 12px; background:#fff; border:1px solid var(--line); border-radius:9px; font-size:.86rem; font-weight:650; text-decoration:none; }
.customer-shortcuts a:hover { border-color:var(--navy); }
.customer-profile-photo { width:88px; height:88px; object-fit:cover; border-radius:50%; border:2px solid var(--line); }

/* ---------- Stage 3–8 additions ---------- */
.flag { font-size: 1.15em; line-height: 1; }
.admin-table td, .admin-table th { vertical-align: top; }
.filter-bar .form-grid { margin-bottom: .5rem; }
.row-actions { display: flex; flex-wrap: wrap; gap: .25rem .9rem; align-items: center; }
.row-actions form { display: inline; margin: 0; }
.destination-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.destination-list a, .destination-list .destination-closed { display: flex; gap: .6rem; align-items: center; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.destination-list a:hover, .destination-list a:focus { border-color: var(--blue); }
.destination-list small { display: block; color: var(--muted); }
.region-heading { margin-top: 1.5rem; }
.category-choice { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.category-choice li { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.checklist-table .badge { display: inline-block; font-size: .78rem; padding: .1rem .5rem; border-radius: 999px; background: var(--pale); border: 1px solid var(--line); color: var(--muted); }
.checklist-table .badge-legal { background: var(--green-bg); color: var(--green); border-color: transparent; }
.checklist-table .badge-conditional { background: var(--gold-bg); color: var(--amber-ink); border-color: transparent; }
.checklist-table .badge-pending { background: var(--red-bg); color: var(--red); border-color: transparent; }
.next-step { border-left: 4px solid var(--gold); background: var(--gold-bg); padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.25rem; }
.next-step h2 { margin-bottom: .3rem; font-size: 1.2rem; }
.next-step p { margin-bottom: .6rem; }
.region-group { border-bottom: 1px solid var(--line); padding: .75rem 0; }
.region-group summary { cursor: pointer; color: var(--navy); padding: .25rem 0; }
.region-group[open] summary { margin-bottom: .6rem; }
.main-nav a { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1280px) { .main-nav { gap: 14px; } .main-nav a { font-size: .9rem; } .brand-copy small { display: none; } }

/* Stage 4 visa-focused homepage */
.feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.1rem;margin-top:1.5rem}
.feature-card{background:var(--surface,#fff);border:1px solid var(--border,#dce4ea);border-radius:1rem;padding:1.35rem}
.feature-card h3{margin-top:0}
.steps-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1rem;padding:0;list-style:none;counter-reset:stage4step;margin:1.5rem 0 2rem}
.steps-grid li{counter-increment:stage4step;display:flex;flex-direction:column;gap:.55rem;padding:1rem;border:1px solid var(--border,#dce4ea);border-radius:.9rem;background:var(--surface,#fff)}
.steps-grid li:before{content:counter(stage4step);display:grid;place-items:center;width:2rem;height:2rem;border-radius:50%;background:#e7f0f6;color:#123b58;font-weight:700}
.steps-grid span{font-size:.94rem;color:var(--muted,#5e6d78)}
.hero-art{display:flex;align-items:center;justify-content:center;min-height:250px}
.hero-art-card{display:flex;flex-direction:column;gap:.7rem;padding:2rem;border:1px solid var(--border,#dce4ea);border-radius:1.2rem;background:var(--surface,#fff);box-shadow:0 18px 50px rgba(15,46,74,.08);max-width:360px;width:100%}
.hero-art-mark{display:grid;place-items:center;width:3rem;height:3rem;border-radius:50%;background:#e3f3eb;color:#176b43;font-size:1.7rem;font-weight:800}
.hero-art-card small{color:var(--muted,#5e6d78)}
.preserve-lines{white-space:pre-line}
@media(max-width:800px){.feature-grid{grid-template-columns:1fr}.steps-grid{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.steps-grid{grid-template-columns:1fr}}

/* ==========================================================================
   Simplified application flow (dashboard choices, step indicator, checklist,
   review, M-PESA payment and success pages). Mobile first; no external assets.
   ========================================================================== */
.welcome-block { margin-bottom: 18px; }
.welcome-block h1 { margin-bottom: .2em; }
.lead { font-size: 1.1rem; color: var(--muted); }
.small { font-size: .88rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .03em; }
.optional { font-weight: 400; color: var(--muted); font-size: .88em; }
.back-link { margin-top: 24px; }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 8px 0 22px; }
.choice-card { display: flex; align-items: center; gap: 16px; padding: 22px 20px; background: var(--navy); color: #fff; border-radius: 14px; box-shadow: var(--shadow); min-height: 96px; transition: transform .15s ease, background .15s ease; }
.choice-card:nth-child(2) { background: var(--green); }
.choice-card:hover, .choice-card:focus-visible { transform: translateY(-2px); background: var(--navy-2); }
.choice-card:nth-child(2):hover, .choice-card:nth-child(2):focus-visible { background: #17573f; }
.choice-icon { font-size: 2rem; line-height: 1; }
.choice-text { display: flex; flex-direction: column; flex: 1; }
.choice-text strong { font-size: 1.2rem; text-transform: uppercase; letter-spacing: .02em; }
.choice-text small { opacity: .9; }
.choice-go { font-size: 1.6rem; }

.quick-links { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.quick-links a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; font-size: .9rem; color: var(--navy); }
.quick-links a strong { font-size: 1.25rem; min-height: 1.3em; }
.quick-links a:hover { border-color: var(--blue); }

.stage-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.stage-chip { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.stage-chip.has-items { color: var(--navy); border-color: #b9cadb; }
.stage-chip strong { font-size: 1rem; }

.app-list { list-style: none; margin: 0; padding: 0; }
.app-row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.app-row:first-child { border-top: 0; }
.app-row-main { display: flex; flex-direction: column; }
.app-row-status { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }

.progress-steps { list-style: none; display: flex; gap: 4px; margin: 0 0 4px; padding: 0; overflow-x: auto; }
.progress-steps li { flex: 1 1 0; min-width: 64px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .78rem; color: var(--muted); text-align: center; position: relative; }
.progress-steps li::before { content: ""; position: absolute; top: 14px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.progress-steps li:first-child::before { display: none; }
.progress-steps li.done::before, .progress-steps li.current::before { background: var(--green); }
.step-dot { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); font-weight: 700; color: var(--muted); }
.progress-steps li.done .step-dot { background: var(--green); border-color: var(--green); color: #fff; }
.progress-steps li.current .step-dot { border-color: var(--navy); color: var(--navy); box-shadow: 0 0 0 4px rgba(15,46,74,.12); }
.progress-steps li.current { color: var(--navy); font-weight: 700; }
.step-count { margin: 0 0 18px; }

.search-bar { display: flex; gap: 8px; margin: 10px 0 18px; }
.search-bar input { flex: 1; min-height: 48px; padding: 10px 14px; border: 1px solid #b9cadb; border-radius: var(--radius); font-size: 1rem; }

.option-card { display: flex; align-items: flex-start; gap: 12px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; margin-bottom: 10px; }
.option-card:hover, .option-card:focus-within { border-color: var(--blue); }
.option-card input { margin-top: 4px; width: 20px; height: 20px; flex: none; }
.option-card > span { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.option-card small { color: var(--muted); }
.option-link { justify-content: space-between; color: var(--ink); }
.option-meta { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.service-choice, .category-choice { list-style: none; margin: 0 0 16px; padding: 0; }
.badge-awaiting { color: var(--amber-ink) !important; font-weight: 600; }

.summary-strip { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin: 0 0 18px; }
.summary-strip div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.summary-strip dt { font-size: .8rem; color: var(--muted); }
.summary-strip dd { margin: 0; font-weight: 700; color: var(--navy); }

.info-note { background: #e9f1f9; border: 1px solid #c9dbec; color: #1d4a74; border-radius: var(--radius); padding: 12px 16px; margin: 0 0 16px; }
.info-note.action { background: var(--gold-bg); border-color: #f0d9ad; color: var(--amber-ink); }
.info-note.success { background: var(--green-bg); border-color: #bfe0cf; color: var(--green); }
.info-note ul { margin: 6px 0 8px; padding-left: 20px; }

.stack-form .form-section { border: 0; padding: 0; margin: 0 0 20px; background: #fff; border-radius: 12px; padding: 18px; border: 1px solid var(--line); }
.stack-form legend { font-weight: 700; color: var(--navy); font-size: 1.05rem; padding: 0 4px; }
.stack-form .form-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.stack-form input, .stack-form select, .stack-form textarea { min-height: 44px; padding: 9px 12px; border: 1px solid #b9cadb; border-radius: 8px; font: inherit; background: #fff; }
.stack-form .form-field small { color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 18px; }
.button-large { min-height: 54px; padding: 14px 28px; font-size: 1.1rem; width: 100%; }

.doc-checklist { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.doc-card { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.doc-card.state-missing { border-left-color: #b9cadb; }
.doc-card.state-uploaded, .doc-card.state-received, .doc-card.state-under_review { border-left-color: var(--blue); }
.doc-card.state-accepted { border-left-color: var(--green); }
.doc-card.state-rejected, .doc-card.state-replacement_required { border-left-color: var(--red); }
.doc-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.doc-head h2 { font-size: 1.02rem; margin: 0 0 4px; }
.doc-state { white-space: nowrap; font-size: .85rem; font-weight: 700; color: var(--navy); }
.req-badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #e8eef4; color: #23405a; }
.req-required { background: var(--red-bg); color: var(--red); }
.req-conditional { background: var(--gold-bg); color: var(--amber-ink); }
.req-awaiting { background: #f1ecf8; color: #5a3a87; }
.req-recommended { background: var(--green-bg); color: var(--green); }
.uploaded-files { list-style: none; margin: 8px 0; padding: 0; }
.uploaded-files li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px dashed var(--line); }
.upload-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.upload-inline input[type=file] { max-width: 100%; font-size: .9rem; }
form.inline { display: inline; }
.official-steps { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 12px; }

.review-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; }
.review-head { display: flex; justify-content: space-between; align-items: baseline; }
.review-card h2 { font-size: 1.05rem; }
.review-list { margin: 0; display: grid; gap: 0; }
.review-list > div { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.review-list > div:first-child { border-top: 0; }
.review-list dt { color: var(--muted); }
.review-list dd { margin: 0; overflow-wrap: anywhere; }
.review-docs { list-style: none; padding: 0; margin: 0; }
.review-docs li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.review-docs li:first-child { border-top: 0; }
.review-confirm { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }

.pay-box { background: #fff; border: 2px solid var(--green); border-radius: 14px; padding: 18px; margin-bottom: 18px; }
.pay-amount { display: flex; flex-direction: column; margin-bottom: 10px; }
.pay-amount strong { font-size: 2rem; color: var(--green); }
.pay-amount span, .pay-amount small { color: var(--muted); }
.pay-steps { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.submit-box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin: 20px 0 0; }

.success-panel { text-align: center; background: var(--green-bg); border: 1px solid #bfe0cf; border-radius: 14px; padding: 26px 18px; margin-bottom: 18px; }
.success-mark { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--green); color: #fff; font-size: 2rem; margin-bottom: 8px; }
.success-panel h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--green); }

.home-hero { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; padding: 64px 0 56px; }
.home-hero h1 { color: #fff; max-width: 16ch; }
.home-hero p { color: #dfe9f2; max-width: 60ch; font-size: 1.1rem; }
.home-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: -40px; }
.home-service { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 24px; display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); }
.home-service h2 { margin: 0; }
.home-service .button { align-self: flex-start; margin-top: 10px; }
.how-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: how; }
.how-steps li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; counter-increment: how; }
.how-steps li::before { content: counter(how); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 8px; }
.how-steps strong { display: block; color: var(--navy); }
.chip-list { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list li { background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; font-size: .92rem; }
.faq-short details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; }
.faq-short summary { font-weight: 700; color: var(--navy); cursor: pointer; }
.faq-short details p { margin: 8px 0 0; }
.section-alt { background: var(--pale); }

@media (max-width: 760px) {
  .choice-grid, .home-services { grid-template-columns: 1fr; }
  .quick-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .how-steps { grid-template-columns: 1fr 1fr; }
  .app-row { grid-template-columns: 1fr; gap: 6px; }
  .app-row-status { align-items: flex-start; text-align: left; }
  .app-row .button { justify-self: start; }
  .summary-strip { grid-template-columns: 1fr; }
  .review-list > div { grid-template-columns: 1fr; gap: 0; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .button { width: 100%; }
  .progress-steps { overflow: visible; }
  .progress-steps li { min-width: 0; }
  .progress-steps .step-label { display: none; }
  .step-dot { width: 26px; height: 26px; font-size: .8rem; }
  .progress-steps li::before { top: 12px; }
  .search-bar { flex-direction: column; }
  .home-services { margin-top: -28px; }
}
@media (max-width: 420px) { .how-steps { grid-template-columns: 1fr; } }

/* ---- Two-service release: payment review, checklists, M-PESA box ---- */
.button-danger { background: #b42318; border-color: #b42318; color: #fff; }
.button-danger:hover, .button-danger:focus { background: #8f1c13; border-color: #8f1c13; color: #fff; }
.button[disabled] { opacity: .5; cursor: not-allowed; }
.check-list li.bad::before { content: "✗"; color: #b42318; }
.check-list li.unknown::before { content: "?"; color: #8a6d00; }
.check-list li.bad, .check-list li.unknown { padding-left: 26px; }
.evidence-text { white-space: pre-wrap; word-break: break-word; background: #f6f8fa; border: 1px solid #d5dde5; border-radius: 8px; padding: 12px; font-size: .95rem; }
.pay-number { font-size: 1.15rem; margin: 6px 0; }
.pay-number strong { font-size: 1.6rem; letter-spacing: .04em; }
.mpesa-box { border: 2px solid #1d8a4e; background: #f1faf4; border-radius: 12px; padding: 16px 18px; margin: 16px 0; }
.mpesa-box h2, .mpesa-box h3 { margin-top: 0; }
.status-trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 10px 0 16px; }
.status-trio div { background: #f6f8fa; border: 1px solid #e3e8ee; border-radius: 10px; padding: 10px 12px; }
.status-trio dt { font-size: .8rem; color: #5b6573; text-transform: uppercase; letter-spacing: .04em; }
.status-trio dd { margin: 4px 0 0; font-weight: 700; }
.doc-section-title { margin-top: 28px; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9rem; color: #4b5563; margin: 6px 0; }
.doc-badge { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: .85rem; font-weight: 700; }
.doc-badge.badge-missing_required { background: #fdecea; color: #b42318; }
.doc-badge.badge-missing_optional { background: #eef2f6; color: #475467; }
.doc-badge.badge-uploaded, .doc-badge.badge-under_review { background: #fff6e0; color: #8a5a00; }
.doc-badge.badge-accepted { background: #e7f6ec; color: #1d6b3c; }
.doc-badge.badge-needs_replacement { background: #fdecea; color: #b42318; }
.choice-radio { display: block; border: 1px solid #d5dde5; border-radius: 10px; padding: 12px 14px; margin: 8px 0; cursor: pointer; }
.choice-radio input { margin-right: 8px; }
.choice-radio small { display: block; color: #5b6573; margin: 4px 0 0 26px; }
.checkbox-line { display: flex; gap: 8px; align-items: flex-start; }
.filter-bar .form-grid { align-items: end; }
.choice-radio { display: grid; grid-template-columns: 22px 1fr; column-gap: 8px; align-items: start; }
.choice-radio input[type=radio] { width: 18px; height: 18px; margin: 3px 0 0; padding: 0; }
.choice-radio small { grid-column: 2; margin: 4px 0 0; }
/* Visa category list: one clean card per category, radio beside the text. */
.category-choice { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.category-choice > li { border: 0; padding: 0; margin: 0; background: none; box-shadow: none; }
.category-choice .option-card { display: grid; grid-template-columns: 22px 1fr; column-gap: 12px; align-items: start; padding: 14px 16px; }
.category-choice .option-card input[type=radio] { width: 18px; height: 18px; margin: 3px 0 0; }
.category-choice .option-card small { display: block; margin-top: 3px; }
.subtle-fieldset { border: 0; padding: 0; margin: 0; background: none; box-shadow: none; }
.pay-details { margin: 6px 0 12px; padding-left: 20px; }
.pay-amount-box { font-size: 1.05rem; margin: 10px 0; }
.large-textarea { min-height: 150px; }
.configuring-note h2 { margin-top: 0; }
.option-unavailable { opacity: .7; background: #f6f8fa; cursor: not-allowed; }
.option-unavailable .radio-placeholder { width: 18px; height: 18px; border: 2px solid #c5ccd6; border-radius: 50%; margin-top: 3px; }
.unavailable-note { color: #8a5a00; font-weight: 600; }
.app-facts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 4px 0 0; }
.app-facts div { display: flex; gap: 4px; }
.app-facts dt { color: #5b6573; }
.app-facts dt::after { content: ":"; }
.app-facts dd { margin: 0; }
.app-row-status { display: flex; flex-direction: column; gap: 3px; }

/* ---- Document Issuance Management ---- */
.detail-list { display: grid; grid-template-columns: minmax(140px, 38%) 1fr; gap: 6px 14px; margin: 8px 0 14px; }
.detail-list dt { color: var(--muted); font-size: .88rem; }
.detail-list dd { margin: 0; overflow-wrap: anywhere; }
.plain-list { list-style: none; padding: 0; margin: 6px 0 12px; }
.plain-list li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.checksum { font-size: .72rem; overflow-wrap: anywhere; display: inline-block; max-width: 16ch; }
.authority-card { border-top: 1px solid var(--line); padding: 14px 0; }
.authority-card h3 { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 1.05rem; }
.pagination { display: flex; gap: 12px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.flag-row { border-left: 3px solid var(--line); padding-left: 10px; margin: 8px 0; }
.issued-doc h2 { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
details summary { cursor: pointer; font-weight: 600; margin-top: 8px; }
@media (max-width: 720px) {
  .detail-list { grid-template-columns: 1fr; }
  .detail-list dd { margin-bottom: 6px; }
  .dashboard-columns { grid-template-columns: 1fr; }
  table.responsive-table thead { display: none; }
  table.responsive-table tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  table.responsive-table td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 0; }
  table.responsive-table td::before { content: attr(data-label); font-weight: 600; color: var(--muted); }
}

/* Automatic document validation */
.field-success { display: block; color: #164c38; }
.uploaded-files li .status-pill { margin-left: 4px; }

/* ---------- Administrator dashboard (server-rendered, no JavaScript) ---------- */
.admin-search { display: flex; gap: 8px; align-items: center; }
.admin-search input { min-height: 40px; border: 1px solid #b9c9d7; border-radius: 7px; padding: 8px 10px; font: inherit; min-width: 220px; }
.attention-panel { border-left: 4px solid var(--gold); }
.attention-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.attention-list a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 8px; background: var(--pale); color: var(--navy); font-weight: 700; text-decoration: none; }
.attention-list a:hover, .attention-list a:focus { background: #e9f0f6; }
.stat-link { color: inherit; transition: border-color .15s; }
.stat-link:hover, .stat-link:focus { border-color: var(--blue); }
.stat-card small { font-size: .8rem; }
.stat-alert { border-left: 4px solid var(--red); }
.dashboard-grid.two-up { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.admin-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-bottom: 22px; }
.admin-sections a { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--navy); text-decoration: none; }
.admin-sections a:hover, .admin-sections a:focus { border-color: var(--blue); }
.admin-sections small { color: var(--muted); font-size: .84rem; }
details.readiness > summary { cursor: pointer; font-size: 1.05rem; padding: 2px 0 8px; }
@media (max-width: 760px) {
  .admin-search { width: 100%; }
  .admin-search input { min-width: 0; flex: 1; }
}
.stat-card strong.stat-text { font-size: 1rem; font-weight: 600; color: var(--muted); }

/* Applicant Face Photograph preview (passport applications) */
.face-photo-preview { margin: 12px 0; }
.face-photo-preview img { display: block; width: auto; height: auto; max-width: 220px; max-height: 280px; border: 1px solid var(--border); border-radius: 12px; object-fit: cover; background: #fff; }
.face-photo-admin img { max-width: 260px; max-height: 340px; }
.processing-disclaimer { border: 1px solid #c9dbec; background: #f4f8fc; border-radius: var(--radius); padding: 14px 18px; margin: 0 0 18px; }
.processing-disclaimer h2, .processing-disclaimer h3 { margin: 0 0 6px; font-size: 1.05rem; }
.processing-disclaimer p { margin: 0 0 8px; }
.processing-disclaimer .processing-state { font-weight: 600; }

/* One-click visa category choice (no JavaScript) */
.option-card.option-button { width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.option-card.option-button:hover, .option-card.option-button:focus-visible { border-color: var(--accent, #1d4a74); box-shadow: 0 0 0 3px rgba(29, 74, 116, 0.15); }
.option-card .option-cta { color: var(--accent, #1d4a74); font-weight: 600; }

/* Payment proof progress: received -> automatic validation -> administrator verification */
.proof-steps { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.proof-steps .proof-done { color: #1d6b3c; }
.proof-steps .proof-failed { color: #b42318; font-weight: 600; }
.proof-steps .proof-current { color: #1d4a74; font-weight: 600; }
.proof-steps .proof-todo { color: #667085; }

/* Audit 2026-11: admin dashboard readiness list (status shown by pills). */
.plain-list .status-pill { margin-right: 6px; }

/* Audit 2026-11: site-wide independent-service notice in the footer. */
.footer-notice { padding-top: 18px; padding-bottom: 6px; font-size: .9rem; line-height: 1.5; }
.footer-notice p { margin: 0; }

/* Application assistance records (integrated document issuance). Uses the existing palette. */
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 16px; }
.filter-row select { min-height: 40px; padding: 6px 10px; border: 1px solid #b9cadb; border-radius: 8px; font: inherit; background: #fff; }
.record-preview { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.record-preview .review-list { flex: 1 1 280px; margin: 0; }
.record-photo { width: 120px; height: auto; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
#application-record .button-row { align-items: center; }
#record-actions form { margin-top: 14px; }
.record-revoke { margin-top: 6px; }
.record-revoke summary { cursor: pointer; color: var(--red); font-weight: 600; font-size: .9rem; }
.record-revoke form { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; min-width: 200px; }
.record-revoke input { min-height: 40px; padding: 6px 10px; border: 1px solid #b9cadb; border-radius: 8px; font: inherit; }
@media (max-width: 640px) { .record-photo { width: 96px; } }

/* Simplified document review (November 2026). */
.review-card-doc .doc-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.review-card-doc h2 { margin-bottom: 2px; }
.decision-options { border: 0; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.review-form { margin-top: 10px; }
.account-sections a small { display: block; }

/* Temporary Document Issuance: the application just approved */
tr.row-highlight td { background: #fff7e0; }
tr.row-highlight td:first-child { box-shadow: inset 4px 0 0 #c48a00; }
.issue-card { border: 1px solid #dde3ea; border-radius: 10px; padding: 14px 16px; margin: 10px 0; background: #fff; }
.issue-card.row-highlight { background: #fff7e0; border-color: #c48a00; box-shadow: inset 4px 0 0 #c48a00; }
.issue-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.issue-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
.issue-form label { font-weight: 600; }
.issue-form select { width: auto; min-width: 230px; flex: 0 1 auto; }


/* ---- Applicant form guidance (examples, help, conditional questions) ---- */
.field-hint { display: block; margin-top: 4px; color: #4a5866; font-size: .86rem; line-height: 1.35; }
.field-example { display: inline-block; color: #5f6b77; font-style: italic; }
.required-mark { color: #8a1f11; font-weight: 600; font-size: .82rem; }
.field-label { display: block; font-weight: 600; margin-bottom: 6px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #c9d3dd; border-radius: 999px;
  padding: 7px 14px; background: #fff; cursor: pointer; font-weight: 500; }
.choice-pill:has(input:checked) { border-color: #12324f; background: #eaf1f8; }
.upload-tip { background: #f4f7fa; border-left: 3px solid #12324f; padding: 6px 10px; border-radius: 4px; }
input::placeholder, textarea::placeholder { color: #8b96a1; font-style: italic; }
.answer-warnings { border-left: 4px solid #c48a00; background: #fff8e6; padding: 10px 14px; border-radius: 6px; }
/* Follow-up questions appear only for the matching answer. Browsers without :has() simply show them all. */
@supports selector(:has(*)) {
  .conditional { display: none !important; }
  form:has(select[name="occupation_status"] option[value="employed"]:checked) .cond-occ-employed { display: flex !important; }
  form:has(select[name="occupation_status"] option[value="self_employed"]:checked) .cond-occ-self_employed { display: flex !important; }
  form:has(select[name="occupation_status"] option[value="student"]:checked) .cond-occ-student { display: flex !important; }
  form:has(select[name="occupation_status"] option[value="other"]:checked) .cond-occ-other { display: flex !important; }
  form:has(select[name="marital_status"] option[value="other"]:checked) .cond-marital-other { display: flex !important; }
  form:has(select[name="previous_visa_refusal"] option[value="Yes"]:checked) .cond-refusal-yes { display: flex !important; }
  form:has(select[name="travel_purpose"] option[value="other"]:checked) .cond-purpose-other { display: flex !important; }
  form:has(select[name="passport_status"] option[value="valid"]:checked) .cond-passport-valid { display: grid !important; }
  form:has(input[name="linked_passport_record"]:not([value=""])) .cond-passport-valid { display: grid !important; }
}
@media (max-width: 640px) { .choice-pill { flex: 1 1 45%; justify-content: center; } }
/* the document or decision the administrator was sent to next */
.document-row:target, #decision:target { outline: 3px solid #c48a00; outline-offset: 4px; border-radius: 8px; background: #fffbf0; }
.document-row { scroll-margin-top: 90px; } #decision { scroll-margin-top: 90px; }

/* Admin dashboard: four numbered work steps */
.work-steps { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.work-step a { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: 12px; border: 1px solid #dde3ea; background: #fff; text-decoration: none; color: inherit; height: 100%; }
.work-step.has-work a { border-color: #c48a00; box-shadow: inset 5px 0 0 #c48a00; background: #fffbf0; }
.work-step a:hover, .work-step a:focus { border-color: #12324f; }
.step-number { flex: 0 0 34px; height: 34px; border-radius: 50%; background: #12324f; color: #fff; display: grid; place-items: center; font-weight: 700; }
.step-body { flex: 1; display: flex; flex-direction: column; gap: 3px; } .step-body small { color: #5f6b77; line-height: 1.3; }
.step-count { text-align: center; font-size: 1.7rem; font-weight: 700; line-height: 1; color: #8a5a00; } .step-count small { display: block; font-size: .72rem; font-weight: 600; color: #8a5a00; }
.step-done { font-size: .8rem; font-weight: 600; color: #2f6b3a; }
.section-title { margin: 28px 0 12px; font-size: 1.2rem; }
.choice-pill input[type="radio"] { width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; flex: 0 0 auto; accent-color: #12324f; box-shadow: none; }
.required-note { background: #f4f7fa; border-radius: 6px; padding: 8px 12px; font-size: .9rem; }
.work-step a { flex-wrap: wrap; align-items: flex-start; }
.step-count { flex-basis: 100%; text-align: left; padding-left: 46px; font-size: 1.35rem; }
.step-count small { display: inline; margin-left: 6px; font-size: .8rem; }
/* GTDC wordmark */
.brand-mark.brand-mark-wide { width: auto; min-width: 46px; padding: 0 8px; font-size: .78rem; letter-spacing: .06em; }
.hero-brand { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .85rem; opacity: .9; margin-bottom: 6px; }
.reference-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reference-grid .stat-card strong.mono { font-size: 1.35rem; letter-spacing: .02em; white-space: nowrap; }
@media (max-width: 760px) { .reference-grid { grid-template-columns: 1fr; } }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* Visa form: passport record that carries a passport number (28 Nov 2026) */
.record-number { color: var(--success, #1d7a4a); }

/* Admin dashboard results row (production review, 28 Nov 2026) */
.results-bar { list-style: none; padding: 0; margin: 18px 0 8px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.results-bar a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 16px; background: #fff; border: 1px solid var(--line, #dde3ea); border-radius: 10px; text-decoration: none; color: inherit; }
.results-bar a:hover, .results-bar a:focus-visible { border-color: var(--navy, #12304f); }
.results-bar span { color: var(--muted, #5b6778); font-size: .9rem; }
.results-bar strong { font-size: 1.1rem; color: var(--navy, #12304f); white-space: nowrap; }
.reference-line { margin-top: 10px; }
@media (max-width: 760px) { .results-bar { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .results-bar { grid-template-columns: 1fr; } }

/* Staff filter (production review, 28 Nov 2026) */
.filter-fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.filter-fields label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; flex: 1 1 220px; }
.filter-fields input, .filter-fields select { width: 100%; min-height: 42px; }
.filter-fields .button { flex: 0 0 auto; }

/* Collapsible processing-time note (production review, 28 Nov 2026) */
details.processing-disclaimer.compact { padding: 12px 16px; margin: 16px 0; }
details.processing-disclaimer.compact summary { cursor: pointer; font-weight: 700; color: var(--navy, #12304f); }
details.processing-disclaimer.compact[open] summary { margin-bottom: 8px; }
.quick-links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 640px) { .quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Phones: show the whole name on two short lines instead of cutting it off */
@media (max-width: 520px) {
  .brand-copy strong { white-space: normal; max-width: 150px; font-size: .82rem; line-height: 1.15; overflow: visible; }
}

/* Decided documents: the decision form folds away (production review, 28 Nov 2026) */
details.change-decision { margin-top: 8px; }
details.change-decision summary { cursor: pointer; color: var(--navy, #12304f); font-weight: 600; font-size: .92rem; }
.stat-card .status-pill { white-space: normal; max-width: 100%; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Waiting too long (automation, 30 Nov 2026) */
.attention-panel.has-waiting { border-left: 4px solid #b54708; }
.attention-list { list-style: none; padding: 0; margin: 0; }
.attention-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 0; border-bottom: 1px solid var(--line, #e3e8ef); }
.attention-list li:last-child { border-bottom: 0; }
.attention-list li > a:first-child { flex: 1 1 260px; text-decoration: none; color: inherit; }
.days-waiting, .count-badge { background: #fff4e5; color: #8a3b00; border-radius: 999px; padding: 2px 10px; font-weight: 700; font-size: .85rem; white-space: nowrap; }
.count-badge { margin-left: 6px; }

/* Customer "What you need to do" (automation, 30 Nov 2026) */
.todo-panel { border-left: 4px solid var(--gold, #b8860b); }
.todo-list { list-style: none; margin: 0; padding: 0; }
.todo-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; padding: 10px 0; border-bottom: 1px solid var(--line, #e3e8ef); }
.todo-list li:last-child { border-bottom: 0; }

/* ===================================================================
   GTDC homepage + header redesign (30 Nov 2026), from the owner's design image.
   Blue-and-white palette; no JavaScript (menus use <details>).
   =================================================================== */
:root { --gtdc-deep: #0a1f5c; --gtdc-blue: #0d47a1; --gtdc-bright: #1565d8; --gtdc-sky: #e8f3fd; }

/* Header: logo, brand, menus, Login / Register */
.site-header .nav-wrap { min-height: 84px; }
.brand-logo { display: block; flex: 0 0 auto; line-height: 0; }
.brand-logo img { width: 64px; height: auto; }
.site-header .brand-copy strong { font-size: 1.7rem; font-weight: 900; letter-spacing: .01em; color: var(--gtdc-deep); line-height: 1; max-width: none; }
.site-header .brand-copy small { font-size: .8rem; font-weight: 600; color: #1f2f4a; margin-top: 3px; }
.main-nav { gap: 26px; }
.main-nav > a, .nav-menu > summary { display: inline-flex; align-items: center; gap: 6px; font-size: .95rem; font-weight: 600; color: #1c2a44; padding: 8px 2px; border-bottom: 3px solid transparent; cursor: pointer; }
.main-nav > a:hover, .nav-menu > summary:hover { color: var(--gtdc-blue); border-bottom-color: transparent; }
.main-nav > a.is-current, .nav-menu > summary.is-current { color: var(--gtdc-blue); border-bottom-color: var(--gtdc-blue); }
.nav-icon { width: 18px; height: 18px; fill: currentColor; flex: 0 0 auto; }
.nav-menu { position: relative; display: block; }
.nav-menu > summary { display: flex; margin: 0; }
.nav-menu > summary { list-style: none; }
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); margin-left: 4px; transition: transform .15s; }
.nav-menu[open] > summary::after { transform: translateY(1px) rotate(225deg); }
.nav-menu > summary:focus-visible { outline: 3px solid #f0b43c; outline-offset: 2px; }
.nav-menu-list { position: absolute; top: calc(100% + 8px); left: -12px; z-index: 40; min-width: 240px; display: grid; padding: 8px; background: #fff; border: 1px solid #d5e2f1; border-radius: 10px; box-shadow: 0 16px 36px rgba(10, 31, 92, .14); }
.nav-menu-list a { padding: 10px 12px; border-radius: 6px; font-size: .92rem; font-weight: 600; color: #1c2a44; white-space: nowrap; }
.nav-menu-list a:hover, .nav-menu-list a:focus-visible { background: var(--gtdc-sky); color: var(--gtdc-blue); }
.site-header .nav-account .button { border-radius: 10px; min-height: 44px; padding: 9px 18px; font-size: .95rem; gap: 8px; background: var(--gtdc-blue); border-color: var(--gtdc-blue); }
.site-header .nav-account .button:hover { background: var(--gtdc-deep); }
.site-header .nav-account .button-outline { background: #fff; color: var(--gtdc-blue); border: 2px solid var(--gtdc-blue); }
.site-header .nav-account .button-outline:hover { background: var(--gtdc-sky); color: var(--gtdc-deep); }
@media (min-width: 961px) and (max-width: 1280px) {
  .main-nav { gap: 16px; }
  .site-header .brand-copy small { display: block; font-size: .72rem; }
  .site-header .brand-copy strong { font-size: 1.45rem; }
  .brand-logo img { width: 54px; }
}
@media (max-width: 960px) {
  .main-nav { gap: 0; }
  .main-nav > a, .nav-menu > summary { display: flex; padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .main-nav > a.is-current, .nav-menu > summary.is-current { border-bottom-color: var(--line); box-shadow: inset 3px 0 0 var(--gtdc-blue); padding-left: 10px; }
  .nav-menu > summary::after { margin-left: auto; }
  .nav-menu-list { position: static; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 6px 14px; min-width: 0; background: transparent; }
  .site-header .nav-account .button { flex: 1 1 140px; }
}
@media (max-width: 700px) {
  .site-header .nav-wrap { min-height: 70px; }
  .brand-logo img { width: 48px; }
  .site-header .brand-copy strong { font-size: 1.35rem; }
  .site-header .brand-copy small { display: block; font-size: .68rem; max-width: 190px; white-space: normal; }
}

/* Hero */
.gtdc-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #d9ecfc 0%, #eef6fe 55%, #f7fbff 100%); }
.gtdc-hero::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -70px; height: 120px; background: #fff; border-radius: 50%; }
.gtdc-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 24px; min-height: 560px; padding-block: 48px 64px; }
.gtdc-hero-copy h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); line-height: 1.08; font-weight: 900; letter-spacing: -.01em; color: var(--gtdc-deep); margin: 0 0 14px; max-width: 20ch; }
.gtdc-hero-slogan { font-size: clamp(1.5rem, 3vw, 2.5rem); font-style: italic; font-weight: 800; color: #0b1733; margin: 0 0 18px; }
.gtdc-hero-slogan::after { content: ""; display: block; width: 120px; height: 5px; border-radius: 3px; background: var(--gtdc-bright); margin-top: 16px; }
.gtdc-hero-lead { font-size: clamp(1.02rem, 1.5vw, 1.25rem); color: #13213d; max-width: 34em; margin: 0 0 26px; }
.gtdc-hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.gtdc-cta { display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 12px 22px 12px 18px; border-radius: 999px; background: var(--gtdc-blue); color: #fff; font-size: 1.1rem; font-weight: 700; box-shadow: 0 10px 24px rgba(13, 71, 161, .28); transition: background .15s, transform .15s; }
.gtdc-cta:hover { background: var(--gtdc-deep); color: #fff; transform: translateY(-1px); }
.gtdc-cta:focus-visible { outline: 3px solid #f0b43c; outline-offset: 3px; }
.gtdc-cta svg { width: 30px; height: 30px; padding: 3px; border-radius: 6px; background: #fff; color: var(--gtdc-blue); flex: 0 0 auto; }
.gtdc-cta-arrow { font-size: 1.6rem; line-height: 1; margin-left: 4px; }
.gtdc-hero-note { margin: 22px 0 0; font-size: .86rem; color: #3a4d68; max-width: 40em; }
.gtdc-hero-art { position: relative; align-self: stretch; display: flex; align-items: center; }
/* Soft edges so the artwork blends into the sky-blue hero: the picture fades left/right,
   the image fades top/bottom (two single-layer masks; no mask compositing needed). */
.gtdc-hero-art picture { display: block; width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 92%, transparent 100%); }
.gtdc-hero-art img { display: block; width: 100%; height: auto; aspect-ratio: 852 / 648; object-fit: contain;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 86%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 86%, transparent 100%); }
@media (max-width: 960px) {
  .gtdc-hero-grid { grid-template-columns: 1fr; min-height: 0; padding-block: 36px 56px; gap: 8px; }
  .gtdc-hero-copy h1 { max-width: none; }
  .gtdc-hero-art { max-width: 620px; width: 100%; justify-self: center; margin-top: 12px; }
  .gtdc-hero-art picture { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%); }
}
@media (max-width: 520px) {
  .gtdc-hero-actions { flex-direction: column; }
  .gtdc-cta { justify-content: flex-start; width: 100%; }
  .gtdc-cta-arrow { margin-left: auto; }
}

/* Feature strip */
.gtdc-features { background: #fff; padding: 8px 0 28px; }
.gtdc-feature-list { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #f4f9ff; border: 1px solid #dbe8f5; border-radius: 16px; padding: 22px 12px; }
.gtdc-feature-list li { display: flex; align-items: center; gap: 14px; padding: 6px 20px; }
.gtdc-feature-list li + li { border-left: 1px solid #c9d9ec; }
.gtdc-feature-list svg { width: 48px; height: 48px; color: var(--gtdc-blue); flex: 0 0 auto; }
.gtdc-feature-list div { display: grid; gap: 2px; }
.gtdc-feature-list strong { font-size: 1.08rem; color: #0b1733; line-height: 1.2; }
.gtdc-feature-list strong a { color: inherit; }
.gtdc-feature-list strong a:hover { color: var(--gtdc-blue); text-decoration: underline; }
.gtdc-feature-list span { font-size: .86rem; color: #3a4d68; }
@media (max-width: 960px) {
  .gtdc-feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .gtdc-feature-list li:nth-child(3) { border-left: 0; }
}
@media (max-width: 520px) {
  .gtdc-feature-list { grid-template-columns: 1fr; padding: 10px; }
  .gtdc-feature-list li { padding: 12px 10px; }
  .gtdc-feature-list li + li { border-left: 0; border-top: 1px solid #c9d9ec; }
}
@media print { .gtdc-hero-art, .gtdc-features { display: none; } }

/* ===================================================================
   Site-wide GTDC theme (30 Nov 2026): carries the homepage design's blue-and-white palette,
   headings and components to every page, plus phone usability fixes found by
   tools/browser_page_sweep.py (tap targets, sideways scrolling, long words).
   =================================================================== */
:root { --navy: #0a1f5c; --navy-2: #0d47a1; --blue: #0d47a1; }

/* Buttons and links */
.button, .button-primary { background: var(--gtdc-blue); border-color: var(--gtdc-blue); border-radius: 10px; }
.button:hover, .button-primary:hover { background: var(--gtdc-deep); border-color: var(--gtdc-deep); }
.button-secondary, .button-outline { color: var(--gtdc-blue); border-color: #9fbbe0; }
.button-secondary:hover, .button-outline:hover { background: var(--gtdc-sky); color: var(--gtdc-deep); }
.button:focus-visible, .text-button:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid #f0b43c; outline-offset: 2px; }
.eyebrow { color: var(--gtdc-blue); }
.workspace-bar { background: var(--gtdc-deep); }
.site-footer { background: #081a4b; }

/* Page headings: same accent bar as the homepage slogan */
.portal-heading h1::after, .section.policy h1::after, .page-band h1::after, .auth-card h1::after {
  content: ""; display: block; width: 72px; height: 4px; border-radius: 3px; background: var(--gtdc-bright); margin-top: 12px; }

/* Public information pages: light sky band behind the heading */
.section.policy, .page-band { background: linear-gradient(180deg, #e3f0fd 0, #f3f8fe 220px, #fff 420px); }
.info-block { border-color: #d5e2f1; border-left: 4px solid var(--gtdc-bright); background: #fff; box-shadow: 0 6px 18px rgba(10, 31, 92, .04); }
.faq-short details, .faq-list details { border-color: #d5e2f1; }

/* Portal pages (customer, staff, admin) */
.portal-section { background: linear-gradient(180deg, #eaf3fd 0, #f4f8fc 180px, #f4f8fc 100%); }
.history-panel, .stat-card, .doc-card, .service-card { border-color: #d5e2f1; }
.stat-card strong { color: var(--gtdc-deep); }

/* Customer dashboard service choices */
.choice-card { background: linear-gradient(135deg, var(--gtdc-deep), var(--gtdc-blue)); }
.choice-card:nth-child(2) { background: linear-gradient(135deg, var(--gtdc-blue), var(--gtdc-bright)); }
.choice-card:hover, .choice-card:focus-visible { background: var(--gtdc-deep); }
.choice-card:nth-child(2):hover, .choice-card:nth-child(2):focus-visible { background: var(--gtdc-blue); }

/* Sign-in, registration and password pages: travel artwork beside the form on wide screens */
.auth-section { background: linear-gradient(180deg, #d9ecfc 0%, #eef6fe 55%, #f7fbff 100%); }
@media (min-width: 1100px) {
  .auth-section { display: flex; justify-content: center; align-items: center; gap: 56px; padding-inline: 24px; }
  .auth-section > .auth-card { margin: 0; flex: 0 1 480px; }
  .auth-section > .auth-card-wide { flex-basis: 680px; }
  .auth-section::after { content: ""; flex: 0 1 520px; align-self: center; aspect-ratio: 852 / 648; background: url("../img/gtdc-hero-travel.webp") center / contain no-repeat;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 58%, transparent 74%); mask-image: radial-gradient(ellipse at center, #000 58%, transparent 74%); }
  .auth-section:has(.auth-card-wide)::after { flex-basis: 420px; }
}

/* Plain <details> toggles get a clear, consistent arrow */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details:not(.nav-menu) > summary { display: flex; align-items: center; gap: 10px; }
details:not(.nav-menu) > summary::before { content: ""; flex: 0 0 auto; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
details:not(.nav-menu)[open] > summary::before { transform: rotate(45deg); }

/* Confirmation before irreversible actions (no JavaScript) */
.confirm-action { display: inline-block; }
.confirm-action > summary { color: #b42318; font-weight: 600; cursor: pointer; margin: 0; padding: 8px 4px; }
.confirm-action[open] { display: block; background: #fff5f4; border: 1px solid #f3c1bc; border-radius: 10px; padding: 10px 14px; margin-top: 8px; }
.confirm-action form { display: grid; gap: 8px; justify-items: start; }

/* Accessibility and overflow fixes */
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
select, input, textarea { max-width: 100%; }
label, .form-field, .form-group, .filter-grid > *, .form-grid > *, .doc-head > * { min-width: 0; }
.doc-head { flex-wrap: wrap; }
main small, main dd, main .mono, main code { overflow-wrap: anywhere; }
main p, main li, main td { overflow-wrap: break-word; }

/* Phones: every button, form control and toggle is at least 44 px tall (WCAG 2.5.5 target size) */
@media (max-width: 700px) {
  main .button, main button, main input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]), main select,
  main summary, .site-header .button, .site-header button { min-height: 44px; }
  main .button, main button, main summary { display: inline-flex; align-items: center; }
  main details > summary { display: flex; }
  main .text-button { padding: 10px 8px; }
  main input[type=file] { min-height: 44px; }
  main a.button, main .button-small { padding-block: 10px; }
}
.doc-card { min-width: 0; }
.doc-card p, .doc-card small, .doc-card li { overflow-wrap: anywhere; }

/* Dashboard panels (30 Nov 2026) */
.overview-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 20px; }
.overview-panels .history-panel { margin: 0; }
.overview-panels h3 { font-size: 1.05rem; margin: 0 0 10px; }
.mini-stats { display: grid; gap: 8px; margin: 0 0 8px; }
.mini-stats > div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #e3ecf6; padding-bottom: 6px; }
.mini-stats dt { color: var(--muted); } .mini-stats dd { margin: 0; font-weight: 700; color: var(--gtdc-deep); text-align: right; }
.health-list, .alert-list, .activity-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.health-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; }
.health-list li span:not(.health-dot) { color: var(--muted); font-size: .9rem; }
.health-dot { width: 10px; height: 10px; border-radius: 50%; background: #98a2b3; flex: 0 0 auto; align-self: center; }
.health-list .is-ok .health-dot { background: #1d6b3c; } .health-list .is-bad .health-dot { background: #b42318; }
.health-list .is-bad strong { color: #b42318; }
.alert-list li { background: #fff6e0; border: 1px solid #f0d9ad; border-radius: 8px; padding: 8px 10px; color: #6b4600; font-size: .92rem; }
.activity-list li { display: grid; gap: 2px; border-bottom: 1px solid #e3ecf6; padding-bottom: 6px; }
.staff-counts { margin-bottom: 16px; }

/* Button variants keep their own backgrounds over the site-wide blue (30 Nov 2026 fix). */
.button.button-secondary, .button.button-outline { background: #fff; color: var(--gtdc-blue); border-color: #9fbbe0; }
.button.button-secondary:hover, .button.button-outline:hover { background: var(--gtdc-sky); color: var(--gtdc-deep); border-color: var(--gtdc-blue); }
.button.button-light { background: #fff; color: var(--gtdc-deep); border-color: #fff; }
.button.button-light:hover { background: #e8f0f6; }
.button.button-danger { background: #b42318; border-color: #b42318; color: #fff; }
.button.button-danger:hover, .button.button-danger:focus { background: #8f1c13; border-color: #8f1c13; color: #fff; }
.results-bar.staff-counts { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.upload-inline { flex-wrap: wrap; min-width: 0; max-width: 100%; }
.upload-inline input[type=file] { max-width: 100%; min-width: 0; width: 100%; }
