/* Namport additions to the Atlantic design for live content. Kept apart from the
   mockup stylesheets so those stay byte-identical to designs/Atlantic. */

/* Leadership: a photo, when there is one, fills the initials circle. */
.person .mono{overflow:hidden}
.person .mono img{width:100%;height:100%;object-fit:cover;object-position:50% 20%;display:block}

/* Home slider: extra slides stack inside .hero .bg and cross-fade (hero-slider.js). */
.hero .bg .slide{position:absolute;inset:0;opacity:0;transition:opacity 1.2s ease}
.hero .bg .slide.on{opacity:1}
.hero[data-hero] .wrap{transition:opacity .6s ease}
.hero[data-hero] .wrap.fading{opacity:0}
/* Right edge, centred: the hero is a full viewport tall below the top bar, so its bottom edge sits off screen. */
.hero .dots{position:absolute;right:28px;top:50%;transform:translateY(-50%);z-index:3;display:flex;flex-direction:column;gap:10px}
.hero .dots button{width:4px;height:30px;border:0;border-radius:2px;background:rgba(255,255,255,.4);cursor:pointer;padding:0}
.hero .dots button[aria-current="true"]{background:var(--orange)}
@media(max-width:760px){.hero .dots{right:14px}}
@media(prefers-reduced-motion:reduce){.hero .bg .slide,.hero[data-hero] .wrap{transition:none}}

/* Filter chips: the Atlantic .sus .chips look, usable anywhere; the current one is filled. */
.chips{display:flex;gap:12px;flex-wrap:wrap}
.chips a{border:1.3px solid var(--line);border-radius:100px;padding:12px 22px;font:600 14px/1 var(--head);transition:.3s}
.chips a:hover,.chips a[aria-current="page"]{background:var(--ink);color:var(--paper);border-color:var(--ink)}

/* Library and article documents rendered as links keep the Atlantic .doc row look. */
a.doc{color:inherit}

/* Events (built from Atlantic parts: .feat, .tbl/.trow, .cards). */
.ev-date{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;min-width:74px;padding:12px 10px;border-radius:14px;background:var(--ink);color:#fff;font-family:var(--head);line-height:1}
.ev-date b{font-size:26px;font-weight:700;letter-spacing:-.02em}
.ev-date small{font-size:11.5px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;margin-top:6px;color:rgba(255,255,255,.8)}
.trow .ev-title b{display:block;margin-bottom:4px}
.trow a.ev-title{color:inherit}
.trow a.ev-title:hover b{color:var(--blue)}
.ev-aside{position:sticky;top:120px}
@media(max-width:900px){.ev-aside{position:static}}

/* Lightbox (lightbox.js): native <dialog>, so Esc and focus handling come from the browser. */
dialog.lb{border:0;padding:0;background:transparent;width:fit-content;max-width:94vw;max-height:94vh;overflow:visible;margin:auto}
dialog.lb::backdrop{background:rgba(10,20,38,.88)}
dialog.lb figure{margin:0;display:flex;flex-direction:column;align-items:center;gap:14px}
dialog.lb img,dialog.lb video{max-width:min(1200px,calc(94vw - 140px));max-height:80vh;width:auto;height:auto;border-radius:12px;display:block}
dialog.lb .frame{width:min(1100px,calc(94vw - 140px));aspect-ratio:16/9;border:0;border-radius:12px;background:#000}
@media(max-width:760px){dialog.lb img,dialog.lb video,dialog.lb .frame{max-width:94vw;width:94vw}dialog.lb .lb-prev,dialog.lb .lb-next{top:auto;bottom:18px;transform:none}}
dialog.lb figcaption{color:#fff;font:500 15px/1.4 var(--body);text-align:center;max-width:70ch}
dialog.lb .lb-btn{position:fixed;top:50%;transform:translateY(-50%);width:52px;height:52px;border-radius:50%;border:0;background:rgba(255,255,255,.92);color:var(--navy);font:600 22px/1 var(--head);cursor:pointer}
dialog.lb .lb-prev{left:18px}dialog.lb .lb-next{right:18px}
dialog.lb .lb-close{position:fixed;top:18px;right:18px;transform:none;width:46px;height:46px}
dialog.lb .lb-btn:hover{background:var(--orange);color:#fff}

/* Procurement: the cancelled pill, and links inside the Atlantic tender table. */
.pill.grey{background:rgba(107,113,128,.14);color:var(--grey)}
.tbl .desc a{color:inherit;border-bottom:1px solid transparent;transition:.25s}
.tbl .desc a:hover{color:var(--blue);border-color:var(--blue)}
.tbl-wrap + .brow{margin-top:28px}

/* Notices on public pages (also in namport-forms.css for form pages). */
.notice{background:#FFF3E0;border:1px solid #F7C89A;border-radius:12px;padding:12px 16px;font-size:14px;color:var(--orange-deep);margin-bottom:22px}
.notice.ok{background:#E6F7EE;border-color:#A8DFC2;color:#12805A}
/* FAQ topics and answers written in the CMS */
.faq-topic{font:700 20px/1.3 var(--head);margin:40px 0 6px;max-width:860px}
.faq-topic:first-of-type{margin-top:0}
.acc .ans p{margin:0 0 10px}.acc .ans p:last-child{margin-bottom:0}
.acc .ans ul{margin:0 0 10px 20px}.acc .ans li{list-style:disc;margin-bottom:6px}
/* vacancy body written in the CMS */
.vac-body h3{font:600 20px/1.3 var(--head);margin:26px 0 12px;color:var(--ink)}
.vac-body{margin-bottom:8px}
/* site search results: Atlantic cards stacked in one column */
.results{display:grid;gap:14px}
.results .card h3{font-size:19px;margin:6px 0 6px}
.results .card p{margin:0}
/* The design's .banner (site-pages.css), also for pages with their own mockup stylesheet (careers) */
.banner{display:flex;justify-content:space-between;align-items:center;gap:30px;flex-wrap:wrap;background:linear-gradient(135deg,#0055A5,#1C3D74 60%,#10233F);color:#fff;border-radius:22px;padding:38px 44px}
.banner h3{font-size:clamp(20px,2.2vw,28px);font-weight:700;color:#fff}
.banner p{color:#C7D0E6;font-size:15px;margin-top:6px;max-width:60ch}
.banner-form{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.banner-form input,.banner-form select{height:52px;border-radius:100px;border:0;padding:0 20px;font:500 15px var(--body);min-width:220px}
.banner-msg{flex-basis:100%;color:#FFD9B8;font-size:14px}
.hp{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}

/* Content pages (the old site's CMS pages): section sidebar beside the text */
.pg-grid{display:grid;grid-template-columns:260px minmax(0,1fr);gap:56px;align-items:start}
.pg-side{position:sticky;top:110px;border:1px solid var(--line);border-radius:18px;padding:22px;background:var(--cloud)}
.pg-side .eyebrow{margin-bottom:12px}
.pg-side nav{display:flex;flex-direction:column}
.pg-side nav a{padding:9px 0;border-bottom:1px solid var(--line);font:500 14.5px/1.35 var(--head);color:var(--ink)}
.pg-side nav a:last-child{border-bottom:0}
.pg-side nav a:hover{color:var(--blue)}
.pg-side nav a[aria-current=page]{color:var(--orange-deep,#C25E1F);font-weight:700}
.pg-body{max-width:80ch;min-width:0}
.pg-body h2{font:700 24px/1.25 var(--head);margin:34px 0 12px}
.pg-body h3{font:700 19px/1.3 var(--head);margin:26px 0 10px}
.pg-body h4{font:700 16px/1.3 var(--head);margin:20px 0 8px}
.pg-body p,.pg-body li{color:var(--grey);font-size:16px;line-height:1.7}
.pg-body p{margin-bottom:14px}
.pg-body ul,.pg-body ol{margin:0 0 16px 22px}
.pg-body ul li{list-style:disc;margin-bottom:6px}
.pg-body ol li{list-style:decimal;margin-bottom:6px}
.pg-body a{color:var(--blue);text-decoration:underline;text-underline-offset:3px}
.pg-body strong,.pg-body b{color:var(--ink)}
.pg-body img{max-width:100%;height:auto;border-radius:14px;margin:14px 0}
.pg-body blockquote{border-left:3px solid var(--orange);padding-left:16px;margin:18px 0}
.pg-body hr{border:0;border-top:1px solid var(--line);margin:28px 0}
.pg-body table{display:block;overflow-x:auto;border-collapse:collapse;margin:18px 0;max-width:100%}
.pg-body td,.pg-body th{border:1px solid var(--line);padding:12px 14px;vertical-align:top;font-size:15px}
.pg-body td p{font-size:14.5px;margin-bottom:6px}
.pg-body th{background:var(--cloud);text-align:left;font-family:var(--head)}
.pg-body > :first-child{margin-top:0}
.pg-people{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:18px;margin:26px 0}
.pg-person{border:1px solid var(--line);border-radius:16px;padding:16px;background:var(--cloud);display:flex;flex-direction:column;gap:4px}
.pg-person img{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:12px;margin:0 0 8px}
.pg-person .mono{width:100%;aspect-ratio:4/5;border-radius:12px;display:grid;place-items:center;background:var(--blue);color:#fff;font:700 34px/1 var(--head);margin-bottom:8px}
.pg-person.feat .mono{background:var(--orange)}
.pg-person b{font:600 16px/1.3 var(--head);color:var(--ink)}
.pg-person small{color:var(--grey);font-size:13.5px}
.pg-person .ct{font-size:13px;color:var(--grey)}
.pg-person .ct a{text-decoration:none;word-break:break-all}
.pg-files{margin:0!important;padding:0}
.pg-files li{list-style:none!important;margin:0}
.pg-files a{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);text-decoration:none;color:var(--ink);font-weight:500}
.pg-files .ext{font:700 10px/1 var(--head);background:var(--orange);color:#fff;border-radius:4px;padding:4px 6px}
.pg-files small{margin-left:auto;color:var(--grey);font-size:12.5px}
@media(max-width:900px){.pg-grid{grid-template-columns:1fr;gap:28px}.pg-side{position:static;order:2}}

/* "In this section" strip on the designed section pages */
.sec-pages{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px;margin-top:26px}
.sec-pages a{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid var(--line);border-radius:14px;padding:16px 18px;background:var(--paper);font:600 15px/1.35 var(--head);color:var(--ink);transition:.3s}
.sec-pages a:hover{border-color:var(--blue);transform:translateY(-2px)}
.sec-pages a::after{content:"→";color:var(--orange)}

/* Bids page: requests for quotations grouped by category (as the old site listed them) */
.rfq-group{border:1px solid var(--line);border-radius:16px;margin-bottom:14px;background:var(--cloud)}
.rfq-group summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;padding:16px 20px;font:600 16px/1.3 var(--head)}
.rfq-group summary::-webkit-details-marker{display:none}
.rfq-group summary span{background:var(--blue);color:#fff;border-radius:100px;font-size:12px;padding:3px 10px}
.rfq-group .tbl-wrap{padding:0 12px 12px}
.tbl .lnk{color:var(--blue);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.rfq-email{margin-top:22px;padding-top:18px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:8px}
.rfq-email h4{font:600 16px/1.3 var(--head)}
.rfq-email p{color:var(--grey);font-size:14px}
.rfq-email label{font:600 13px/1 var(--head);margin-top:6px}
.rfq-email input{border:1px solid var(--line);border-radius:10px;padding:11px 13px;font-size:14.5px;background:#fff}
.rfq-email .btn-lg{margin-top:8px;justify-content:center}

/* Registration portal: four ways to register */
.reg-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}
.reg-choice{display:flex;flex-direction:column;gap:10px;border:1px solid var(--line);border-radius:18px;padding:28px 26px;background:var(--cloud);color:var(--ink);transition:.35s}
.reg-choice:hover{border-color:var(--blue);transform:translateY(-4px);box-shadow:0 24px 50px -34px rgba(16,35,63,.3)}
.reg-choice h3{font:700 24px/1.2 var(--head)}
.reg-choice p{color:var(--grey);font-size:14.5px;flex:1}
.reg-choice .go{display:inline-flex;align-items:center;gap:8px;font:600 14px/1 var(--head);color:var(--orange-deep,#C25E1F)}

/* Live AIS map */
.ais-map{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:var(--cloud)}
.ais-map iframe{display:block;width:100%;height:min(70vh,620px);border:0}

/* Home page announcement (old site's popup) */
.ann{max-width:min(560px,92vw);border:0;border-radius:20px;padding:34px 32px 28px;box-shadow:0 40px 90px -30px rgba(16,35,63,.55);background:var(--paper,#fff);color:var(--ink)}
.ann::backdrop{background:rgba(16,35,63,.55)}
.ann h2{font:700 26px/1.2 var(--head);margin:10px 0 12px}
.ann-body p{color:var(--grey);font-size:15.5px;line-height:1.65;margin-bottom:10px}
.ann-body a{color:var(--blue);text-decoration:underline}
.ann-row{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}
.ann-x{position:absolute;top:12px;right:14px;border:0;background:none;font-size:28px;line-height:1;color:var(--grey);cursor:pointer}

/* Cookie consent (only when Google Analytics is configured) */
.consent{position:fixed;left:16px;right:16px;bottom:16px;z-index:90;max-width:720px;margin:0 auto;background:var(--paper,#fff);border:1px solid var(--line);border-radius:16px;padding:16px 20px;box-shadow:0 24px 60px -30px rgba(16,35,63,.45);display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.consent[hidden]{display:none}
.consent p{font-size:14px;color:var(--grey);margin:0;flex:1 1 320px}
.consent a{color:var(--blue);text-decoration:underline}
.consent div{display:flex;gap:10px}
.consent .btn-lg{padding:12px 20px;font-size:14px}

/* Home "Where Namibia meets the world": the text beside the photo collage, as the Horizon design intends.
   The mockup's own home page lacks this rule (it sits in the inner-page block), so it stacks them. */
#gateway .feat{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center}
@media(max-width:860px){#gateway .feat{grid-template-columns:1fr;gap:30px}}

/* Home "Who we are": no bottom padding, the stats strip follows straight on. */
#about{padding-bottom:0}

/* Inner pages: a dark fade behind the transparent menu so its items stand out on bright photos. */
body.inner .nav::before{content:"";position:absolute;left:0;right:0;top:0;height:190px;background:linear-gradient(180deg,rgba(16,35,63,.72) 0%,rgba(16,35,63,.38) 50%,rgba(16,35,63,0) 100%);pointer-events:none;z-index:-1;transition:opacity .4s}
body.inner .nav.solid::before{opacity:0}

.foot a{font-weight:600}

/* The stats strip's own top padding (96px) still left too wide a gap under "Who we are". */
#stats{padding-top:56px}
