/* Africa Embassy Finder - local package stylesheet
   Controls /africa-embassy-finder/ pages from one shared CSS file. */
:root{
  --atv-navy:#10263f;
  --atv-blue:#155c94;
  --atv-gold:#d99a2b;
  --atv-green:#21745b;
  --atv-red:#b64235;
  --atv-ink:#1e293b;
  --atv-muted:#5f6f82;
  --atv-line:#dbe4ee;
  --atv-bg:#f5f8fb;
  --atv-card:#ffffff;
  --atv-soft:#eef6fb;
  --atv-focus:#f59e0b;
  --radius:18px;
  --shadow:0 16px 45px rgba(15,35,58,.10);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Arial,Helvetica,sans-serif;line-height:1.65;color:var(--atv-ink);background:var(--atv-bg)}
a{color:var(--atv-blue);text-decoration:none}
a:hover{text-decoration:underline}
a:focus,button:focus,select:focus,input:focus,textarea:focus{outline:3px solid var(--atv-focus);outline-offset:3px}
img{max-width:100%;height:auto}
.container{width:min(1180px,92%);margin:0 auto}.site-header{position:sticky;top:0;z-index:50;background:#fff;border-bottom:1px solid var(--atv-line);box-shadow:0 6px 20px rgba(16,38,63,.06)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:78px}.brand{display:flex;align-items:center;gap:10px;color:var(--atv-navy);font-weight:800}.brand img{display:block;object-fit:contain}.primary-nav{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.primary-nav a{padding:10px 12px;border-radius:999px;color:var(--atv-navy);font-weight:700;font-size:.94rem}.primary-nav a:hover{background:var(--atv-soft);text-decoration:none}.menu-toggle{display:none;border:1px solid var(--atv-line);background:#fff;border-radius:999px;padding:10px 14px;color:var(--atv-navy);font-weight:800}
.hero{padding:58px 0;background:linear-gradient(135deg,#0f2b46 0%,#145d8f 62%,#198067 100%);color:#fff}.hero-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);gap:30px;align-items:start}.hero h1{font-size:clamp(2rem,4vw,4rem);line-height:1.05;margin:.25em 0}.hero p{font-size:1.05rem}.eyebrow,.badge{display:inline-flex;align-items:center;gap:8px;margin:0 0 8px;padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.16);color:inherit;font-weight:800;letter-spacing:.02em;text-transform:uppercase;font-size:.78rem}.card{background:var(--atv-card);color:var(--atv-ink);border:1px solid var(--atv-line);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow)}.hero .card{background:#fff}.notice{border-left:5px solid var(--atv-gold);padding:12px 14px;border-radius:12px;background:#fff7e6;color:#4f3410}.warning{border-left-color:var(--atv-red);background:#fff1ee;color:#5d211b}.success{border-left-color:var(--atv-green);background:#ecfdf5;color:#164e3b}
main section{padding:52px 0}.section-title{max-width:860px;margin:0 auto 26px;text-align:center}.section-title h2,h2{color:var(--atv-navy);line-height:1.18}.section-title p{color:var(--atv-muted)}.grid{display:grid;gap:20px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.stack{display:grid;gap:16px}.checker-form{display:grid;gap:18px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.checker-form label{display:grid;gap:7px;font-weight:800;color:var(--atv-navy)}.checker-form select,.checker-form input,.checker-form textarea{width:100%;border:1px solid var(--atv-line);border-radius:12px;padding:12px 13px;background:#fff;color:var(--atv-ink);font:inherit}.btn,.checker-form button,.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:999px;padding:13px 20px;background:var(--atv-gold);color:#201305;font-weight:900;cursor:pointer;text-decoration:none}.btn.secondary,.button.secondary{background:var(--atv-navy);color:#fff}.btn:hover,.button:hover,.checker-form button:hover{text-decoration:none;filter:brightness(.96)}.result-panel,[data-result],#checker-result-root{margin-top:16px;border:1px solid var(--atv-line);border-radius:16px;background:#f8fbff;padding:18px}.result-panel:empty,[data-result]:empty,#checker-result-root:empty{display:none}.breadcrumbs{font-size:.92rem;margin:18px 0;color:var(--atv-muted)}.breadcrumbs a{font-weight:700}.country-directory,.link-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.country-directory a,.link-grid a{display:block;background:#fff;border:1px solid var(--atv-line);border-radius:12px;padding:12px 14px;font-weight:800;color:var(--atv-navy)}.country-directory a:hover,.link-grid a:hover{background:var(--atv-soft);text-decoration:none}.data-table-wrap{overflow-x:auto;border:1px solid var(--atv-line);border-radius:16px;background:#fff}table{width:100%;border-collapse:collapse;min-width:680px;background:#fff}caption{text-align:left;font-weight:900;color:var(--atv-navy);padding:14px 16px;border-bottom:1px solid var(--atv-line)}th,td{padding:13px 15px;border-bottom:1px solid var(--atv-line);vertical-align:top;text-align:left}th{background:#eef6fb;color:var(--atv-navy)}tr:last-child td{border-bottom:0}.faq details{background:#fff;border:1px solid var(--atv-line);border-radius:14px;padding:16px}.faq details+details{margin-top:12px}.faq summary{cursor:pointer;font-weight:900;color:var(--atv-navy)}.source-list li,.check-list li{margin-bottom:8px}.site-footer{background:#0f1c27;color:#dbe7f2;margin-top:50px}.site-footer a{color:#fff}.footer-inner{width:min(1180px,92%);margin:0 auto;padding:42px 0}.footer-grid{display:grid;grid-template-columns:1.2fr repeat(3,1fr);gap:24px}.footer-grid h2,.footer-grid h3{color:#fff;margin-top:0}.footer-links{display:grid;gap:8px}.footer-country-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:20px}.footer-country-links a{font-size:.92rem;color:#dbe7f2}.small,.last-reviewed{font-size:.92rem;color:var(--atv-muted)}.last-reviewed{background:#eef6fb;border:1px solid var(--atv-line);border-radius:12px;padding:10px 12px;display:inline-block}.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}
@media (max-width:900px){.hero-grid,.grid-2,.grid-3,.grid-4{grid-template-columns:1fr}.menu-toggle{display:inline-flex}.primary-nav{display:none;position:absolute;left:4%;right:4%;top:78px;background:#fff;border:1px solid var(--atv-line);border-radius:16px;padding:12px;box-shadow:var(--shadow)}.primary-nav.is-open{display:grid}.primary-nav a{display:block}.form-grid,.country-directory,.link-grid,.footer-grid,.footer-country-links{grid-template-columns:1fr 1fr}}
@media (max-width:580px){.container{width:min(100% - 28px,1180px)}.hero{padding:38px 0}.form-grid,.country-directory,.link-grid,.footer-grid,.footer-country-links{grid-template-columns:1fr}.card{padding:18px}.header-inner{min-height:72px}.primary-nav{top:72px}.hero h1{font-size:2rem}}


/* Africa-Tour-Visa shared topbar and navigation */
.topbar{position:sticky;top:0;z-index:1000;background:#ffffff;border-bottom:1px solid rgba(15,23,42,.10);box-shadow:0 8px 24px rgba(15,23,42,.06)}
.topbar-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:76px}
.brand{display:inline-flex;align-items:center;gap:.75rem;text-decoration:none;color:#0f172a;line-height:1.1}
.brand img{display:block;width:36px;height:46px;object-fit:contain;flex:0 0 auto}
.brand strong{display:block;font-size:1.02rem;font-weight:800;letter-spacing:.01em;color:#0f172a}
.brand small{display:block;margin-top:.18rem;font-size:.78rem;color:#475569;font-weight:600}
.nav-wrap{display:flex;align-items:center}
.nav{display:flex;align-items:center;justify-content:flex-end;gap:.25rem;flex-wrap:wrap}
.nav a{display:inline-flex;align-items:center;min-height:40px;padding:.55rem .7rem;border-radius:999px;color:#1e293b;text-decoration:none;font-weight:700;font-size:.91rem;transition:background .2s ease,color .2s ease,transform .2s ease}
.nav a:hover,.nav a:focus-visible{background:#eaf7f0;color:#0f6b45;outline:2px solid transparent}
.nav-toggle{display:none;appearance:none;border:1px solid rgba(15,23,42,.18);background:#fff;color:#0f172a;border-radius:12px;padding:.55rem .7rem;font-size:1.25rem;line-height:1;cursor:pointer}
.nav-toggle:focus-visible{outline:3px solid rgba(15,107,69,.35);outline-offset:2px}
@media (max-width: 980px){.topbar-inner{align-items:center}.nav-toggle{display:inline-flex}.nav-wrap{position:absolute;left:1rem;right:1rem;top:82px;display:none;background:#fff;border:1px solid rgba(15,23,42,.12);box-shadow:0 18px 42px rgba(15,23,42,.16);border-radius:18px;padding:.75rem}.nav-wrap.open{display:block}.nav{display:grid;grid-template-columns:1fr;gap:.2rem}.nav a{border-radius:12px;justify-content:flex-start}.brand small{max-width:180px}}

/* 2026-07 update: brand header polish and fitted three-column layouts */
.topbar .brand,
header.topbar .brand{
  display:inline-flex;
  align-items:center;
  gap:.78rem;
  min-width:250px;
  max-width:330px;
  color:#0f172a;
  text-decoration:none;
  line-height:1.1;
  flex:0 0 auto;
}
.topbar .brand:hover,
header.topbar .brand:hover{text-decoration:none}
.topbar .brand img,
header.topbar .brand img{
  width:52px;
  height:64px;
  min-width:52px;
  object-fit:contain;
  display:block;
}
.topbar .brand span,
header.topbar .brand span{display:grid;gap:.15rem;min-width:0}
.topbar .brand strong,
header.topbar .brand strong{
  display:block;
  font-size:1.04rem;
  font-weight:900;
  letter-spacing:.01em;
  color:#0f172a;
  white-space:nowrap;
}
.topbar .brand small,
header.topbar .brand small{
  display:block;
  color:#475569;
  font-size:.78rem;
  font-weight:700;
  line-height:1.25;
}
.topbar .nav-wrap{flex:1 1 auto;min-width:0}
.topbar .nav{width:100%;display:flex;align-items:center;justify-content:flex-end;gap:.22rem;flex-wrap:wrap}
.topbar .nav a{white-space:nowrap}

/* Support both existing class styles: grid-3 and grid three */
.grid.three,
.grid-3,
.three{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
  align-items:stretch;
}
.grid.two,
.grid-2,
.two{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
}
.grid.three > *,
.grid-3 > *,
.three > *{min-width:0}
.card{min-width:0;overflow-wrap:anywhere}

/* Country directory: fitted 3-column desktop layout for readable links */
.directory-grid,
ul.directory-grid,
.country-directory,
.link-grid{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.directory-grid li{margin:0;min-width:0}
.directory-grid a,
.country-directory a,
.link-grid a{
  display:flex;
  align-items:center;
  min-height:54px;
  width:100%;
  padding:12px 14px;
  border:1px solid var(--atv-line);
  border-radius:14px;
  background:#fff;
  color:var(--atv-navy);
  font-weight:800;
  line-height:1.3;
  overflow-wrap:anywhere;
}
.directory-grid a:hover,
.country-directory a:hover,
.link-grid a:hover{background:var(--atv-soft);text-decoration:none}

/* Forms and main content spacing fixes */
.section{padding-top:52px;padding-bottom:52px}
.table-wrap,.data-table-wrap{overflow-x:auto;border:1px solid var(--atv-line);border-radius:16px;background:#fff}
.form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.checker-result{margin-top:16px;border:1px solid var(--atv-line);border-radius:16px;background:#f8fbff;padding:18px}

@media (max-width:1120px){
  .topbar-inner{align-items:center}
  .topbar .brand,header.topbar .brand{max-width:300px;min-width:230px}
  .topbar .nav a{font-size:.86rem;padding:.5rem .55rem}
}
@media (max-width:980px){
  .topbar .brand,header.topbar .brand{max-width:calc(100% - 64px);min-width:0}
  .topbar .brand strong,header.topbar .brand strong{white-space:normal}
  .grid.three,.grid-3,.three,.directory-grid,ul.directory-grid,.country-directory,.link-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
  .topbar-inner{min-height:74px}
  .topbar .brand small,header.topbar .brand small{font-size:.72rem}
  .grid.three,.grid-3,.three,.grid.two,.grid-2,.two,.form-grid.two,.directory-grid,ul.directory-grid,.country-directory,.link-grid{grid-template-columns:1fr}
  .directory-grid a,.country-directory a,.link-grid a{min-height:auto}
}