/* =============================================================================
   CAASL UI Revamp — UI-S4 Homepage Pilot (Direction A "Colombo FIR")
   Home-only, loaded after ui-foundation.css. fullpage.js is retired (index.php),
   so #fullpage sections flow vertically; this sheet re-skins each section.
   All modules/positions and Smart Slider 3 are preserved — nothing is hardcoded.
   Section map:  .slider=Smart Slider hero · .HomeSlide=primary service cards
   (events menu) · .BotWelcom=stats (welcomenotebottom) · .iconSecs=service grid
   (awards) · .DolasMahe=news · .ContactDiv=quick-contact + footer.
   ============================================================================ */

/* ---- 1) normal vertical flow (undo fullpage.js full-height layout) ---- */
#fullpage{ height:auto !important; transform:none !important; }
#fullpage > .section{ height:auto !important; min-height:0 !important; position:relative !important;
  padding:0 !important; }
.fp-enabled #fullpage > .section{ visibility:visible !important; }
#fp-nav, .fp-slidesNav{ display:none !important; }
.fp-tableCell{ height:auto !important; vertical-align:top !important; display:block !important; }

/* ---- 2) section rhythm ---- */
#fullpage > .section{ padding:56px 0 !important; }
#fullpage > .section:first-child{ padding:0 !important; }       /* hero/slider flush */
.HomeSlide{ padding-top:0 !important; }
/* Owner call (2026-07-03): tiles sit tight under the hero card. Legacy fullpage.css shifted
   .HomeSlide 56px down (`position:relative; bottom:-56px` — a remnant of the tiles overlapping
   the OLD full-bleed slider) and pinned its height via webkit-only media rules (313px/213px,
   leaving dead space under the tiles and clipping wrapped rows on tablet). Kill both: the
   slider→tiles gap is now just .HomeSlide's own padding-top (32px desktop, SC2-5b in
   ui-polish.css), and the section ends where the tiles end. */
.HomeSlide{ top:auto !important; bottom:auto !important; height:auto !important; }
/* tiles→stats gap: the 66px compensated the old 56px shift/overhang; with the shift gone,
   10px keeps the same ~66px visual gap above "Data & Analysis" (= .BotWelcom). */
#fullpage > .section:has(.BotWelcom){ margin-top:10px !important; }
#fullpage .container{ max-width:var(--maxw); }

/* ---- 3) hero / slider — "instrument card" (matches the tile/stats card language) ----
   The hero used to be a full-bleed banner; framing it as an inset rounded card ties it
   to the same "card on paper" motif as .HomeSlide/.iconSecs below it. Smart Slider 3's
   own responsive engine (ResizeObserver) recalculates the slide/layer geometry to fit
   whatever box we give it, so shrinking the card via padding is enough — no slider
   config changes needed. All slide types (text-quote AND photo/banner) get the card;
   photo slides use background-size:cover already, so they simply crop compactly to the
   smaller box instead of spanning edge-to-edge. Width matches the navy navbar "pill"
   (#header .custom-nav) exactly, so the card lines up directly under the nav bar
   instead of overhanging it. That pill sits inside Bootstrap's own responsive
   .container, which switches to a narrower fixed width below each breakpoint
   (e.g. 970px @ >=992px vs 1170px @ >=1200px) — a flat "container minus 15px each
   side" calc only matches the pill at the widest breakpoint, so user.js measures the
   pill's real offsetWidth live and exposes --nav-pill-w (same pattern as --header-h
   below); the :root calc is just the fallback for the instant before JS runs.

   Top clearance: legacy fullpage.css makes #header position:fixed (it used to overlay
   #fullpage sections that fullpage.js sized/offset with a ".fp-completely" class — now
   retired, and nothing replaced that clearance). #header's real height varies by
   breakpoint/nav-wrap (~152-216px measured), so user.js measures it live and exposes
   --header-h; we add a fixed visible gap on top of that so the card's rounded top
   corners actually show against the paper background instead of being hidden under
   the fixed header. --header-h has a safe fallback for the instant before JS runs.
   The 15.5px extra was tuned so this gap (header bottom -> card top) visually
   matches the pill's own bottom clearance (nav pill bottom -> header bottom, ~19px,
   from .custom-nav's margin-bottom:14px in ui-polish.css + the header's own edge) —
   see ss/61.png (owner's annotated screenshot) for the two gaps this equalises. */
#fullpage > .section:first-child{
  padding:calc(var(--header-h, 160px) + 15.5px) 20px 0 !important; background:var(--paper); }
.slider{ position:relative; max-width:var(--nav-pill-w, var(--maxw)); margin:0 auto; border-radius:16px;
  overflow:hidden; box-shadow:var(--shadow); border:1px solid var(--line); background:var(--navy); }
:root{ --nav-pill-w: calc(var(--maxw) - 30px); } /* fallback until user.js measures the real pill width */
.slider::after{ display:none; } /* the card border replaces the old flush baseline rule */
/* Slide height = 60% of the original design height. Smart Slider 3's admin "height"
   setting turned out to be dead for this build's render path (verified: changing it in
   the DB, even to an extreme value, had zero effect on the compiled output — some other
   internal generator/cache path is actually driving it), so this overrides the
   generated inline <style> block instead. Un-important-but-later-loaded plugin CSS
   loses to !important regardless of source order/specificity, so this is reliable.

   Mobile clipping (fixed 2026-07-01): the previous version of this rule only targeted
   .n2-ss-slider-2/.n2-ss-layers-container. Smart Slider also inline-sizes .n2-ss-slide
   (the per-slide box, overflow:hidden) to its own JS-computed natural height per
   breakpoint (254.328px measured on mobile) — that selector wasn't included, so the
   ancestor .n2-ss-slide stayed short while its child .n2-ss-layers-container (matched by
   this rule at every nesting depth, including the one inside .n2-ss-slide) was forced
   to the full 288px, taller than its own clipping parent. Result: bottom ~34px of the
   slide got clipped by .n2-ss-slide's overflow:hidden. Fix: include .n2-ss-slide so the
   clip box itself grows to match, confirmed against ss/hero-60pct-mobile-full.png. */
.slider .n2-ss-slider-2, .slider .n2-ss-layers-container, .slider .n2-ss-slide{ height:288px !important; }
@media (max-width:767px){
  /* #header is NOT fixed at this breakpoint (compact mobile header flows normally),
     so no header-height clearance is needed here — just a small visible gap. */
  #fullpage > .section:first-child{ padding:14px 12px 0 !important; }
  .slider{ border-radius:12px; }
}
/* arrows: dark rounded-square "instrument button", floating half over the card edge */
.slider .nextend-arrow{ background:rgba(11,42,74,.55) !important; border-radius:8px !important;
  backdrop-filter:blur(2px); transition:background .2s ease; }
.slider .nextend-arrow:hover{ background:var(--amber-deep) !important; }
.slider .nextend-arrow-previous{ left:16px !important; }
.slider .nextend-arrow-next{ right:16px !important; }

/* ---- 4) PRIMARY service tiles (.HomeSlide = events menu) — "instrument tiles" ----
   Cockpit-instrument cards matching the navy/amber flight-deck brand: a circular icon
   "dial" unifies the varied icons, and the navbar's amber "runway" accent is carried
   here — on hover the tile lifts, the dial ring activates, an amber runway lights up
   across the tile base, and the mono action cue "takes off". (Tiles are direct links;
   the legacy hover mega-menu is removed.) */
.HomeSlide{ background:var(--paper); }
.HomeSlide ul.menu{ display:flex; flex-wrap:nowrap; gap:18px;
  list-style:none; margin:0 auto; padding:0 20px; max-width:var(--maxw); float:none !important; }
.HomeSlide ul.menu > li{ flex:1 1 0; min-width:0; width:auto; margin:0 !important; float:none !important;
  display:flex; background:var(--white); border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow);
  overflow:hidden; position:relative;
  transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
/* amber "runway" lighting up across the base on hover — the brand signature */
.HomeSlide ul.menu > li::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:3px;
  background:linear-gradient(90deg,var(--amber-deep),var(--amber),var(--amber-deep));
  transform:scaleX(0); transform-origin:center; transition:transform .28s ease; }
.HomeSlide ul.menu > li:hover, .HomeSlide ul.menu > li:focus-within{
  transform:translateY(-5px); border-color:var(--navy); box-shadow:0 16px 34px rgba(11,42,74,.16); }
.HomeSlide ul.menu > li:hover::after, .HomeSlide ul.menu > li:focus-within::after{ transform:scaleX(1); }
/* the link = vertical instrument layout (dial · title · action cue pinned to the base) */
.HomeSlide ul.menu > li > a{ display:flex !important; flex-direction:column; align-items:center;
  justify-content:flex-start; flex:1 1 auto; width:100%; gap:16px; padding:30px 18px 24px !important;
  min-height:234px; box-sizing:border-box;
  color:var(--navy) !important; text-decoration:none; text-align:center;
  font-family:var(--display); font-weight:700; font-size:.95rem; line-height:1.28;
  border-bottom:0 !important; background:transparent !important; }
/* icon "dial": user.js wraps each icon img in a .caasl-dial span and recolours the icon
   to a single brand tint via CSS mask (so the varied-colour PNGs read uniform). */
/* generic dial + masked icon — shared by the .HomeSlide primary tiles and the .iconSecs grid */
.caasl-dial{ display:inline-flex; align-items:center; justify-content:center; flex:none;
  background:var(--paper); border:1px solid var(--line); border-radius:50%;
  transition:border-color .2s ease, background .2s ease, transform .2s ease; }
.caasl-ico{ flex:none; border:0; padding:0;
  background-color:var(--ti-accent, var(--navy)) !important;   /* per-tile accent tint (--ti-accent, inline from user.js; navy for unmapped icons); !important beats the legacy img background that re-whitened it */
  -webkit-mask-size:contain; mask-size:contain; -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
  -webkit-mask-position:center; mask-position:center; }
.HomeSlide .caasl-dial{ width:74px; height:74px; }
.HomeSlide .caasl-ico{ width:40px; height:40px; }
/* owner-supplied two-colour tile marks (caa-tiles.svg sprite): navy line = currentColor, gold detail = --caa-accent */
.HomeSlide .caasl-dial{ color:#020081; --caa-accent:#A16207; }
.HomeSlide .caasl-mark{ display:block; width:40px; height:40px; overflow:visible; }
.HomeSlide ul.menu > li:hover .caasl-dial, .HomeSlide ul.menu > li:focus-within .caasl-dial{ --caa-accent:#C98A10; }
.HomeSlide ul.menu > li:hover .caasl-dial, .HomeSlide ul.menu > li:focus-within .caasl-dial{
  border-color:var(--amber); background:var(--white); transform:scale(1.05); }
/* fallback (mask unsupported / JS not run): keep the original icon in a simple dial */
.HomeSlide ul.menu > li > a > img:not(.caasl-ico){ width:74px; height:74px; padding:16px; box-sizing:border-box;
  object-fit:contain; background:var(--paper); border:1px solid var(--line); border-radius:50%; }
.HomeSlide ul.menu .image-title{ display:block; }
.HomeSlide ul.menu > li > .nav-child{ display:none !important; }
.HomeSlide .fa-times-circle{ display:none !important; }
/* action cue: mono "OPEN →" pinned to the bottom; advances on hover */
.HomeSlide ul.menu > li > a::after{ content:"OPEN \2192"; margin-top:auto; padding-top:14px;
  font-family:var(--mono); font-weight:600; font-size:.68rem; letter-spacing:.14em; white-space:nowrap;
  color:var(--ink-muted); transition:color .2s ease, letter-spacing .2s ease; }
.HomeSlide ul.menu > li:hover > a::after, .HomeSlide ul.menu > li:focus-within > a::after{
  color:var(--amber-deep); letter-spacing:.2em; }
@media (prefers-reduced-motion:reduce){
  .HomeSlide ul.menu > li, .HomeSlide ul.menu > li > a img, .HomeSlide ul.menu > li::after,
  .HomeSlide ul.menu > li > a::after{ transition:none !important; }
  .HomeSlide ul.menu > li:hover{ transform:none; }
}

/* ---- 5) stats band (.BotWelcom = welcomenotebottom) ---- */
.BotWelcom h3{ font-size:1.6rem; margin-bottom:2px; }
.BotWelcom h5{ font-family:var(--mono); font-size:.8rem; letter-spacing:.04em; color:var(--ink-muted);
  text-transform:uppercase; margin:0 0 18px; }
.BotWelcom table{ width:100%; border-collapse:collapse; background:var(--white);
  border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.BotWelcom th{ background:var(--navy); color:#fff; font-family:var(--display); font-weight:700;
  text-align:left; padding:11px 14px; font-size:.9rem; }
.BotWelcom td{ padding:11px 14px; border-top:1px solid var(--line); font-size:.92rem; }
.BotWelcom tr:nth-child(even) td{ background:#fafbfc; }

/* ---- 6) SECONDARY service grid (.iconSecs) — compact "instrument tiles" ----
   Same brand language as the primary tiles (dial + navy icon + amber runway hover),
   but lighter and tighter: smaller dial, no action cue (these are quick links). */
/* Layout (owner call, matches PRODUCTION caa.lk/en): 4 across × 3 rows of WIDE, SHALLOW
   landscape tiles (prod: 328×151, icon over a 1-2 line label) instead of tall squares.
   The module markup's three legacy Bootstrap .row blocks of four have been merged into ONE
   .row of 12 cols (DB content, see scripts/secondary-grid-6col.md) so the grid is free to
   lay them out. The grid is capped at the navy navbar pill's width (--nav-pill-w, measured
   live by user.js — same cap the hero card uses) and centered, so the tiles never exceed
   the navbar; 1fr columns then split that width evenly. */
/* Section heading (SERVICES_TITLE/2, index.php): without it the grid read as a
   continuation of "Data & Analysis" above. Same h3+mono-h5 pattern as .BotWelcom,
   centered like News Feeds since the grid itself is centered at the pill width. */
.iconSecs h3{ font-size:1.6rem; font-weight:600; color:var(--navy); text-align:center;
  margin:0 0 2px; }
  /* 600 matches what .BotWelcom/.DolasMahe h3 compute to (family is the inherited
     Archivo stack); the initial 700 made this heading look like a different typeface */
.iconSecs h5{ font-family:var(--mono); font-size:.8rem; letter-spacing:.04em; color:var(--navy);
  text-transform:uppercase; text-align:center; margin:0 0 26px; }
.iconSecs .mod-custom > .row{ display:grid; grid-template-columns:repeat(4, minmax(0, 1fr));
  grid-auto-rows:minmax(140px, 1fr); gap:18px; margin:0 auto;
  max-width:min(var(--nav-pill-w, calc(var(--maxw) - 30px)), 100%); }
/* Rows are minmax(140px,1fr): at least the design height, and the 1fr equalises the implicit
   rows, so if a tile's label wraps taller ALL rows grow together — no clipping, no uneven rows.
   margin auto centers the capped grid; Bootstrap's .row negative side margins die with it. */
/* Bootstrap's clearfix .row::before/::after become GRID ITEMS in a grid container and eat two
   cells (shunting the first tile into column 2). Remove them. */
.iconSecs .mod-custom > .row::before, .iconSecs .mod-custom > .row::after{ content:none; display:none; }
/* Legacy fullpage.css sets .custom{margin-bottom:-90px} to cancel the OLD markup's three rows of
   per-column bottom margins (3×30px). The merged grid uses gap instead, so that -90px now just
   shortens .iconSecs and lets the grid's last 90px run under the next section. Neutralise it. */
.iconSecs .mod-custom{ margin-bottom:0; }
.iconSecs .col-md-3, .iconSecs .col-xs-12{ width:auto; max-width:none; margin:0; padding:0; display:flex;
  min-height:0; }   /* let the grid item shrink to the fixed row height instead of the tallest label forcing the row taller (row-gap was reading as 48px, not 18px) */
.iconSecs .col-md-3 > a, .iconSecs .col-xs-12 > a{ display:flex; width:100%; }
.iconSecs .service-grid{ display:flex; flex-direction:column; align-items:center; justify-content:center;
  width:100%; min-height:140px;          /* fills the (equalised) grid row via flex stretch; 140px floor (prod tiles are 151px) */
  margin:0;                              /* legacy fullpage/responsive.css margin-bottom (~25px) inflated the rows and left the cards floating 25px short of them — gap replaces it */
  background:var(--white); border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow);
  padding:18px 12px; box-sizing:border-box; text-align:center; position:relative; overflow:hidden;
  transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
/* amber runway lights up across the base on hover (matches the primary tiles) */
.iconSecs .service-grid::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:3px;
  background:linear-gradient(90deg,var(--amber-deep),var(--amber),var(--amber-deep));
  transform:scaleX(0); transform-origin:center; transition:transform .28s ease; }
.iconSecs a:hover .service-grid, .iconSecs a:focus-visible .service-grid{
  transform:translateY(-4px); border-color:var(--navy); box-shadow:0 14px 30px rgba(11,42,74,.14); }
.iconSecs a:hover .service-grid::after, .iconSecs a:focus-visible .service-grid::after{ transform:scaleX(1); }
.iconSecs .post_content{ display:flex; flex-direction:column; align-items:center; gap:12px;
  color:var(--navy); font-family:var(--display); font-weight:600; font-size:.88rem; line-height:1.3; }
.iconSecs .into-img{ margin:0; line-height:0; }
.iconSecs .desc, .iconSecs .desc p{ margin:0; }
.iconSecs .caasl-dial{ width:58px; height:58px; }
.iconSecs .caasl-ico{ width:30px; height:30px; }
.iconSecs a:hover .caasl-dial, .iconSecs a:focus-visible .caasl-dial{
  border-color:var(--amber); background:var(--white); transform:scale(1.05); }
/* fallback (no JS / mask unsupported): original icon in a simple dial */
.iconSecs .into-img img:not(.caasl-ico){ width:56px; height:56px; padding:13px; box-sizing:border-box;
  object-fit:contain; background:var(--paper); border:1px solid var(--line); border-radius:50%; }
.iconSecs a{ text-decoration:none; }
/* Tiles keep the full-size proportions as they shrink. Below ~1200px the 6 columns squeeze the
   tiles under 172px, but the px metrics above stay full-size — labels wrap to 6–7 lines and the
   equalised rows balloon (~240px tall × 147px wide skinny tiles). Scale every internal metric
   with the tile's own width (container-query units; each col is the container), so a shrunken
   tile is a miniature of the 172px design — same wrap, same ratio. Each factor = the px value
   above ÷ the 172px design width. Browsers without container queries drop these declarations
   entirely and keep the px fallbacks above. */
.iconSecs .col-md-3, .iconSecs .col-xs-12{ container-type:inline-size; }
.iconSecs .service-grid{ padding:clamp(12px, 10.5cqi, 18px) clamp(8px, 7cqi, 12px); }
.iconSecs .post_content{ font-size:clamp(.72rem, 8.2cqi, .88rem); gap:clamp(8px, 7cqi, 12px); }
.iconSecs .caasl-dial{ width:clamp(44px, 33.7cqi, 58px); height:clamp(44px, 33.7cqi, 58px); }
.iconSecs .caasl-ico{ width:clamp(23px, 17.4cqi, 30px); height:clamp(23px, 17.4cqi, 30px); }
.iconSecs .into-img img:not(.caasl-ico){ width:clamp(42px, 32.6cqi, 56px); height:clamp(42px, 32.6cqi, 56px);
  padding:clamp(9px, 7.6cqi, 13px); }
/* Responsive column count: the wide landscape tiles halve as the viewport narrows —
   4 across → 2 across (≤900px, tiles stay ~330-430px wide) → single column (≤520px, like
   production's col-xs-12 stack). The equalised auto rows absorb any extra label wrap. */
@media (max-width:900px){ .iconSecs .mod-custom > .row{ grid-template-columns:repeat(2, minmax(0, 1fr)); } }
@media (max-width:520px){ .iconSecs .mod-custom > .row{ grid-template-columns:minmax(0, 1fr); } }

/* ---- 7) news (.DolasMahe) — "instrument card" news feed, aligned to the navbar pill ----
   Same card language as the service tiles (white card, line border, shadow, lift + amber
   runway on hover, mono action cue) applied to the 3 mod_articles_category items, and the
   card row is capped at the navbar pill width (--nav-pill-w — the hero card's and the
   12-tile grid's cap) so the whole section lines up with everything above it. */
/* Tighten the 12-tiles → news seam: both sections carry the full 56px rhythm padding and the
   heading adds its own margins, reading as a ~170px hole. Halve the two paddings that meet
   at this seam and zero the heading's top margin. */
#fullpage > .section:has(.iconSecs){ padding-bottom:24px !important; }
#fullpage > .section:has(.DolasMahe){ padding-top:24px !important; }
.DolasMahe h3{ font-size:1.6rem !important; margin-top:0 !important; margin-bottom:16px;
  color:var(--navy) !important; }
.DolasMahe .mod-articlescategory{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px; max-width:min(var(--nav-pill-w, calc(var(--maxw) - 30px)), 100%);
  margin:0 auto; padding:0; list-style:none; }
.DolasMahe .mod-articlescategory > li{ width:auto !important; max-width:none !important;
  margin:0 !important; padding:0 0 38px !important;   /* bottom padding reserves the cue strip */
  float:none !important; display:flex; flex-direction:column; position:relative; overflow:hidden;
  background:var(--white); border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow);
  transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
/* amber runway across the base on hover — the shared brand signature */
.DolasMahe .mod-articlescategory > li::after{ content:""; position:absolute; left:0; right:0; bottom:0;
  height:3px; background:linear-gradient(90deg,var(--amber-deep),var(--amber),var(--amber-deep));
  transform:scaleX(0); transform-origin:center; transition:transform .28s ease; }
.DolasMahe .mod-articlescategory > li:hover, .DolasMahe .mod-articlescategory > li:focus-within{
  transform:translateY(-5px); border-color:var(--navy); box-shadow:0 16px 34px rgba(11,42,74,.16); }
.DolasMahe .mod-articlescategory > li:hover::after,
.DolasMahe .mod-articlescategory > li:focus-within::after{ transform:scaleX(1); }
/* mono "READ →" cue pinned to the card base (the tiles' OPEN cue, adapted) */
.DolasMahe .mod-articlescategory > li::before{ content:"READ \2192"; position:absolute;
  left:16px; bottom:12px; font-family:var(--mono); font-weight:600; font-size:.68rem;
  letter-spacing:.14em; color:var(--ink-muted); transition:color .2s ease, letter-spacing .2s ease; }
.DolasMahe .mod-articlescategory > li:hover::before,
.DolasMahe .mod-articlescategory > li:focus-within::before{ color:var(--amber-deep); letter-spacing:.2em; }
/* image = flush card top, uniform crop (source images are mixed posters/photos) */
.DolasMahe .mod-articles-category-image{ display:block; margin:0; line-height:0; }
.DolasMahe .mod-articles-category-image img{ width:100%; height:150px; object-fit:cover; display:block; }
/* title + teaser in the brand type ramp (replaces the legacy teal link colour); both are
   line-clamped so one very long headline can't stretch all three equalised cards tall —
   the full text is one READ-> away. */
.DolasMahe .mod-articles-category-title{ display:-webkit-box; -webkit-box-orient:vertical;
  -webkit-line-clamp:3; overflow:hidden; padding:14px 16px 0; margin:0 0 6px;
  /* no bottom padding on a line-clamped box — clipping happens at the padding edge, so
     padding lets the first pixels of the clipped 4th line show through; margin doesn't */
  font-family:var(--display); font-weight:700; font-size:.95rem; line-height:1.35;
  color:var(--navy) !important; text-decoration:none; text-align:left; }   /* legacy justify made ragged word gaps */
.DolasMahe .mod-articles-category-title:hover,
.DolasMahe .mod-articles-category-title:focus-visible{ color:var(--amber-deep) !important; }
.DolasMahe .mod-articles-category-introtext{ display:-webkit-box; -webkit-box-orient:vertical;
  -webkit-line-clamp:2; overflow:hidden; margin:0; padding:0 16px;
  color:var(--ink-muted); font-size:.85rem; line-height:1.5; }
@media (max-width:900px){
  .DolasMahe .mod-articlescategory{ grid-template-columns:minmax(0, 1fr); }
}

/* ---- 8) quick-contact + footer (.ContactDiv) — navy flight-deck band ----
   Owner call (2026-07-03, round 2): the white-cards-on-paper treatment blended into the
   News Feeds band above (same white cards, same paper). The footer zone now inverts to a
   full-bleed NAVY band — the navbar pill's colour, closing the page in the same voice it
   opens — with an amber runway rule marking the seam. The three columns (inquiry form ·
   address · gov links) become dark instrument panels in a grid still capped at the navbar
   pill width. The copyright bar (.footerrow) is a darker strip below (ui-polish FOOTER-DARK). */
.ContactDiv{ background:var(--navy); color:#D9E4F0;
  border-top:3px solid var(--amber); }
/* the block renders inside a legacy <footer> element (fullpage.css: footer{color:white;
   padding:80px 0}) — drop its padding (the section rhythm owns the spacing). */
.ContactDiv footer{ color:#D9E4F0; padding-top:0; padding-bottom:0; }
.ContactDiv h3, .ContactDiv h4{ color:#fff; text-shadow:none;
  font-family:var(--display); font-weight:700; font-size:1.15rem; margin:0 0 14px; }
.ContactDiv label{ color:#A9BCD1; }
/* three equal instrument cards, aligned to the navbar pill like every section above.
   Bootstrap pins .container to fixed widths (970px at ≥992, narrower than the pill) and
   our own `#fullpage .container` caps it at --maxw (content 1160 < the 1170 pill at ≥1920)
   — free it with the #fullpage selector so the row's own nav-pill cap does the aligning. */
#fullpage .ContactDiv > .container{ width:auto; max-width:none; padding:0 20px; }
.ContactDiv > .container > .row{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px; max-width:min(var(--nav-pill-w, calc(var(--maxw) - 30px)), 100%); margin:0 auto; }
.ContactDiv > .container > .row::before, .ContactDiv > .container > .row::after{ content:none; display:none; }
.ContactDiv > .container > .row > [class*="col-"]{ width:auto; max-width:none; margin:0; float:none;
  padding:22px 20px; background:rgba(255,255,255,.055); border:1px solid rgba(255,255,255,.16);
  border-radius:14px; box-shadow:none; min-height:0; }
/* the form module's own white panel would double up inside the card — flatten it */
.ContactDiv .moduletable{ background:transparent !important; box-shadow:none !important;
  border:0 !important; padding:0 !important; margin:0 !important; }
.ContactDiv .sp_quickcontact{ background:transparent !important; box-shadow:none !important;
  border:0 !important; padding:0 !important; }
/* legacy fullpage.css paints the form a white panel (#sp-quickcontact-form{background:#fff})
   and the map CTA a bright blue block (.FMap{background:#0553cc}) — flatten both into the
   dark instrument card; the white FIELDS carry the contrast */
.ContactDiv #sp-quickcontact-form{ background:transparent; border-radius:0; padding:0; }
.ContactDiv .FMap{ background:transparent; padding:0; }
/* fields: white with the brand line border; amber focus (matches ui-forms language) */
.ContactDiv .form-control, .ContactDiv input, .ContactDiv select, .ContactDiv textarea{
  background:#fff; border:1px solid var(--line); color:var(--ink); border-radius:8px; }
/* the message box's native resize handle could drag it past the card edge —
   keep resizing but vertical-only, pinned to the card width */
.ContactDiv textarea{ max-width:100% !important; resize:vertical; }
.ContactDiv .form-control::placeholder, .ContactDiv input::placeholder,
.ContactDiv textarea::placeholder{ color:var(--ink-muted); }
.ContactDiv input:focus, .ContactDiv select:focus, .ContactDiv textarea:focus{
  border-color:var(--amber-deep); outline:2px solid var(--amber); outline-offset:0; }
/* the reCAPTCHA widget is a fixed 304px iframe — scale it down so it stays inside the
   card when three columns squeeze below ~320px each */
.ContactDiv .g-recaptcha{ transform:scale(.86); transform-origin:0 0; }
@media (min-width:1500px){ .ContactDiv .g-recaptcha{ transform:none; } }
.ContactDiv .btn-primary{ background:var(--amber) !important; color:var(--amber-ink) !important;
  border-color:var(--amber) !important; border-radius:8px !important; font-weight:700; }
.ContactDiv .btn-primary:hover{ background:var(--amber-deep) !important; border-color:var(--amber-deep) !important; }
/* the quickcontact submit is a bare input.button (legacy navy — invisible on the navy card):
   same amber primary-action treatment as the other CTAs */
.ContactDiv #sp_qc_submit{ background:var(--amber) !important; color:var(--amber-ink) !important;
  border:0 !important; border-radius:8px !important; font-weight:700; padding:9px 22px !important;
  cursor:pointer; transition:background .2s ease; }
.ContactDiv #sp_qc_submit:hover{ background:var(--amber-deep) !important; }
/* address card: light ink, white links, amber hover */
.ContactDiv .address, .ContactDiv .address a{ color:#D9E4F0; text-shadow:none; }
.ContactDiv .address a{ color:#fff; }
.ContactDiv .address a:hover{ color:var(--amber); }
/* links (both the address list and the gov-links list are ul.footer): white, amber hover
   (legacy fullpage.css already paints `.footer li` white — now correct again) */
.ContactDiv ul.footer{ margin:0; padding:0; list-style:none; }
.ContactDiv ul.footer li{ color:#D9E4F0; }
.ContactDiv a:not(.btn):not(.readmore-but){ color:#fff; text-decoration:none; }
.ContactDiv a:not(.btn):not(.readmore-but):hover{ color:var(--amber); }
/* the two CTAs on navy: "Find us" = outlined instrument button, "CAA Documents" = amber */
.ContactDiv .FMap a{ display:inline-flex; align-items:center; gap:8px; width:auto !important;
  background:transparent !important; color:#fff !important; border:1px solid rgba(255,255,255,.45);
  border-radius:8px; padding:12px 22px; text-decoration:none; font-weight:600;
  transition:background .2s ease, border-color .2s ease, color .2s ease; }
.ContactDiv .FMap a:hover{ background:var(--amber) !important; border-color:var(--amber);
  color:var(--amber-ink) !important; }
/* owner call 2026-07-03: the "CAA Documents" button is not required — and the SI/TA
   address modules carry a SECOND stray amber button (an icon-only readmore-but).
   Hide the .contact-link wrappers (all languages, all their buttons); "Find us"
   (.FMap) stays. RE-ENABLE: delete this rule. */
.ContactDiv .contact-link, .ContactDiv a.readmore-but{ display:none !important; }
@media (max-width:900px){
  .ContactDiv > .container > .row{ grid-template-columns:minmax(0, 1fr); }
}

/* ---- 8b) UX polish (2026-07-04): notice slides · promo cards · stats CTA · form rhythm ---- */
/* text-only "notice" slides (Smart Slider canvas slides, tagged .caasl-notice/.caasl-notice-bg
   by user.js): the legacy look was italic amber 'quote' text floating on a bright royal-blue
   gradient — off-brand next to the instrument cards. Brand-navy gradient, the display face on
   a translucent panel with an amber rule, and a mono NOTICE eyebrow (per-language). */
#n2-ss-2 .caasl-notice-bg .n2-ss-slide-background-color{
  background:linear-gradient(135deg, #0B2A4A 0%, #123A64 55%, #185086 100%) !important; }
#n2-ss-2 .caasl-notice .n2-ss-item-content{
  font-family:var(--display) !important; font-style:normal !important; color:#fff !important;
  font-weight:600; line-height:1.55 !important; text-align:left !important;
  font-size:clamp(.95rem, 1.35vw, 1.3rem) !important; text-shadow:none !important; }
#n2-ss-2 .caasl-notice .caasl-notice-text{
  background:rgba(6,22,40,.38); border-left:3px solid var(--amber);
  border-radius:0 12px 12px 0; padding:20px 26px !important; text-align:left; }
#n2-ss-2 .caasl-notice .caasl-notice-text::before{ content:"NOTICE"; display:block;
  font-family:var(--mono); font-size:.7rem; font-weight:600; letter-spacing:.24em;
  color:var(--amber); margin-bottom:10px; }
html[lang="si-lk"] #n2-ss-2 .caasl-notice .caasl-notice-text::before{ content:"නිවේදනය"; letter-spacing:.06em; }
html[lang="ta-in"] #n2-ss-2 .caasl-notice .caasl-notice-text::before{ content:"அறிவிப்பு"; letter-spacing:.03em; }

/* ---- 8b-ii) slide re-layout inside the hero window (2026-07-06) ----
   The slides are authored on a 1440x480 canvas but the hero card window is
   ~1168x288 (owner: window size is right) — Smart Slider just CROPS the
   overflow, so authored layer positions ran off-margin, text overlapped and
   photos didn't fit. Keep the window; re-lay every slide inside it.
   user.js classifies: .caasl-photocap (photo via order-paired background
   element OR a .n2-ss-layer-content CSS background) / .caasl-notice (no photo).
   Photo slides: photo covers the window, all text collects in a bottom-left
   caption plate over a scrim. Notice slides: content centres in the window. */
/* SS3 keeps the 1440px canvas width at EVERY level (slider-1 down to the
   layers container) and centres it in the 1168px window (±136px hidden each
   side) — force the whole chain to the real window width */
/* NOTE: the SS3 ALIGN wrapper (#n2-ss-2-align) is the element that actually
   carries the 1440px canvas width — include it, but never a bare
   [id^=n2-ss-] pattern: that also catches the arrow/bullet WIDGETS
   (#n2-ss-2-arrow-next …) and stretches them across the slide */
.slider #n2-ss-2, .slider #n2-ss-2-align,
.slider .n2-ss-slider-1, .slider .n2-ss-slider-2, .slider .n2-ss-slider-3,
.slider .n2-ss-slide, .slider .n2-ss-layers-container{
  width:100% !important; max-width:100% !important; left:0 !important;
  margin-left:0 !important; margin-right:0 !important; }
#n2-ss-2 .n2-ss-slide-background-image{ background-size:cover !important;
  background-position:center !important; }

/* -- shared flatten: the slide/content wrapper layers fill the window -- */
#n2-ss-2 .caasl-photocap .n2-ss-layer[data-sstype="slide"],
#n2-ss-2 .caasl-notice .n2-ss-layer[data-sstype="slide"],
#n2-ss-2 .caasl-photocap .n2-ss-layer[data-sstype="slide"] > .n2-ss-layer,
#n2-ss-2 .caasl-notice .n2-ss-layer[data-sstype="slide"] > .n2-ss-layer{
  position:absolute !important; inset:0 !important; width:100% !important;
  height:100% !important; margin:0 !important; padding:0 !important;
  transform:none !important; }
/* the top content wrapper becomes the flex stage (keeps its own bg photo, e.g.
   the AML slide's layer background) */
#n2-ss-2 .caasl-photocap .n2-ss-layer[data-sstype="slide"] .n2-ss-layer > .n2-ss-layer-content,
#n2-ss-2 .caasl-notice .n2-ss-layer[data-sstype="slide"] .n2-ss-layer > .n2-ss-layer-content{
  position:relative !important; width:100% !important; height:100% !important;
  min-height:0 !important; background-size:cover !important;
  background-position:center !important; display:flex !important;
  flex-direction:column !important; font-size:16px !important; }
/* every layer inside the stage flows */
#n2-ss-2 .caasl-photocap .n2-ss-layer-content .n2-ss-layer,
#n2-ss-2 .caasl-notice .n2-ss-layer-content .n2-ss-layer{
  position:relative !important; z-index:1; inset:auto !important;
  width:auto !important; max-width:100% !important; height:auto !important;
  margin:0 !important; padding:0 !important; transform:none !important;
  display:block !important; }
/* nested content wrappers (row/col internals) flatten; their decorative strip
   backgrounds were unusable crops at this size — drop them */
#n2-ss-2 .caasl-photocap .n2-ss-layer-content .n2-ss-layer-content,
#n2-ss-2 .caasl-notice .n2-ss-layer-content .n2-ss-layer-content{
  position:static !important; width:auto !important; height:auto !important;
  min-height:0 !important; padding:0 !important; display:block !important;
  background-image:none !important; }

/* -- photo slides: bottom-left caption plate over a scrim -- */
#n2-ss-2 .caasl-photocap .n2-ss-layer[data-sstype="slide"] .n2-ss-layer > .n2-ss-layer-content{
  justify-content:flex-end !important; align-items:flex-start !important;
  padding:14px 30px 34px !important; }
#n2-ss-2 .caasl-photocap .n2-ss-layer[data-sstype="slide"] .n2-ss-layer > .n2-ss-layer-content::before{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(180deg, rgba(6,22,40,.05) 35%, rgba(6,22,40,.84) 100%); }
#n2-ss-2 .caasl-photocap .n2-ss-layer-content .n2-ss-layer,
#n2-ss-2 .caasl-photocap .n2-ss-layer-content .n2-ss-layer :not(a){
  color:#fff !important; font-family:var(--display) !important;
  font-style:normal !important; text-align:left !important;
  text-shadow:0 1px 10px rgba(6,22,40,.9) !important; }
#n2-ss-2 .caasl-photocap .n2-ss-layer-content h1,
#n2-ss-2 .caasl-photocap .n2-ss-layer-content h2,
#n2-ss-2 .caasl-photocap .n2-ss-layer-content h3{
  font-size:clamp(1.05rem, 1.6vw, 1.5rem) !important; line-height:1.28 !important;
  margin:0 0 2px !important; font-weight:700 !important; }
#n2-ss-2 .caasl-photocap .n2-ss-layer-content .n2-ss-item-content,
#n2-ss-2 .caasl-photocap .n2-ss-layer-content p{
  font-size:clamp(.8rem, 1vw, .95rem) !important; line-height:1.45 !important;
  margin:0 !important; }
/* action links ("Click Here") become amber chips */
#n2-ss-2 .caasl-photocap .n2-ss-layer-content a{
  display:inline-block !important; background:var(--amber) !important;
  color:var(--amber-ink) !important; text-shadow:none !important;
  font-family:var(--mono) !important; font-weight:600 !important;
  font-size:.68rem !important; letter-spacing:.1em; text-transform:uppercase;
  padding:7px 14px !important; border-radius:8px; margin-top:8px !important; }
/* inline caption images stay small strips */
#n2-ss-2 .caasl-photocap .n2-ss-layer-content img{ max-height:76px !important;
  width:auto !important; max-width:100% !important; }

/* ---- 8b-iii) banner slides (2026-12-04) ----
   user.js tags .caasl-banner on a slide whose content is one wide image layer
   (text baked into the picture, e.g. the "Notice to Airlines" banner) plus at
   most link buttons; the image layer is .caasl-banner-img. Banner art carries
   text right down to its bottom edge, so nothing may sit on top of it: the
   image fills the window above a slim navy strip (--caasl-banner-strip) that
   holds the slider bullets and the "Click Here" amber chip. object-fit:contain
   everywhere, so baked-in text is never cropped (desktop: thin navy side bars). */
#n2-ss-2{ --caasl-banner-strip:30px; }
#n2-ss-2 .caasl-banner .n2-ss-layer[data-sstype="slide"],
#n2-ss-2 .caasl-banner .n2-ss-layer[data-sstype="slide"] > .n2-ss-layer,
#n2-ss-2 .caasl-banner .n2-ss-layer[data-sstype="slide"] .n2-ss-layer > .n2-ss-layer-content{
  position:absolute !important; inset:0 !important; width:100% !important;
  height:100% !important; min-height:0 !important; margin:0 !important;
  padding:0 !important; transform:none !important;
  background:#0B2A4A !important; }
#n2-ss-2 .caasl-banner .caasl-banner-img{
  position:absolute !important; inset:0 0 var(--caasl-banner-strip) 0 !important;
  width:100% !important; height:auto !important; max-width:none !important;
  margin:0 !important; padding:0 !important; transform:none !important; z-index:0; }
#n2-ss-2 .caasl-banner .caasl-banner-img .n2-ss-item-content{
  position:absolute !important; inset:0 !important; width:100% !important;
  height:100% !important; max-width:none !important; margin:0 !important;
  padding:0 !important; transform:none !important; }
#n2-ss-2 .caasl-banner .caasl-banner-img img{
  width:100% !important; height:100% !important; max-width:none !important;
  max-height:none !important; object-fit:contain; object-position:center;
  border-radius:0 !important; display:block; }
/* every other layer (the link buttons) pins bottom-right as an amber chip */
#n2-ss-2 .caasl-banner .n2-ss-layer-content > .n2-ss-layer:not(.caasl-banner-img){
  position:absolute !important; inset:auto 22px 4px auto !important;
  width:auto !important; height:auto !important; margin:0 !important;
  transform:none !important; z-index:2; }
#n2-ss-2 .caasl-banner .n2-ss-layer:not(.caasl-banner-img) a{
  display:inline-block !important; background:var(--amber) !important;
  color:var(--amber-ink) !important; text-shadow:none !important;
  font-family:var(--mono) !important; font-weight:600 !important;
  font-size:.68rem !important; letter-spacing:.1em; text-transform:uppercase;
  padding:4px 12px !important; border-radius:6px; border:0 !important;
  line-height:1.4 !important; }
#n2-ss-2 .caasl-banner .n2-ss-layer:not(.caasl-banner-img) a *{
  color:inherit !important; font:inherit !important; background:none !important; }

/* -- notice slides: centre the panel in the window -- */
/* some slides (e.g. 47) have no [content] wrapper level: make the [slide]
   wrapper itself a centering flex stage too — nested stages both centre */
#n2-ss-2 .caasl-notice .n2-ss-layer[data-sstype="slide"]{
  display:flex !important; flex-direction:column !important;
  justify-content:center !important; align-items:center !important;
  padding:18px 7% !important; }
#n2-ss-2 .caasl-notice .n2-ss-layer[data-sstype="slide"] .n2-ss-layer{
  position:relative !important; inset:auto !important; width:auto !important;
  max-width:100% !important; height:auto !important; margin:0 !important;
  transform:none !important; }
#n2-ss-2 .caasl-notice .n2-ss-layer[data-sstype="slide"] .n2-ss-layer > .n2-ss-layer-content{
  justify-content:center !important; align-items:center !important;
  padding:18px 7% !important;
  /* some notice slides paint their own royal-blue layer background over the
     slide background — clear it so the .caasl-notice-bg navy gradient shows */
  background-color:transparent !important; background-image:none !important; }
#n2-ss-2 .caasl-notice .n2-ss-layer-content .n2-ss-layer,
#n2-ss-2 .caasl-notice .n2-ss-layer-content .n2-ss-layer :not(a):not(a *){
  color:#fff !important; font-family:var(--display) !important;
  font-style:normal !important; text-align:center;
  text-shadow:none !important; }
#n2-ss-2 .caasl-notice .caasl-notice-text{ max-width:min(860px, 92%); }
#n2-ss-2 .caasl-notice .caasl-notice-text,
#n2-ss-2 .caasl-notice .caasl-notice-text *{
  color:#fff !important; font-family:var(--display) !important;
  font-style:normal !important; font-weight:600;
  font-size:clamp(.95rem, 1.35vw, 1.3rem) !important; line-height:1.5 !important;
  text-align:left !important; text-shadow:none !important; }
/* links on notice slides get the same amber chip as photo captions */
#n2-ss-2 .caasl-notice .n2-ss-layer-content a{
  display:inline-block !important; background:var(--amber) !important;
  color:var(--amber-ink) !important; text-shadow:none !important;
  font-family:var(--mono) !important; font-weight:600 !important;
  font-size:.68rem !important; letter-spacing:.1em; text-transform:uppercase;
  padding:7px 14px !important; border-radius:8px; margin-top:10px !important; }
#n2-ss-2 .caasl-notice .n2-ss-layer-content a *{ color:var(--amber-ink) !important;
  font-family:var(--mono) !important; font-size:.68rem !important;
  text-shadow:none !important; }
/* phones: the long notice text nearly overflows the window — tighten */
@media (max-width:480px){
  #n2-ss-2 .caasl-notice .caasl-notice-text,
  #n2-ss-2 .caasl-notice .caasl-notice-text *{ font-size:.82rem !important;
    line-height:1.42 !important; }
  #n2-ss-2 .caasl-notice .caasl-notice-text{ padding:12px 14px !important; }
  #n2-ss-2 .caasl-photocap .n2-ss-layer[data-sstype="slide"] .n2-ss-layer > .n2-ss-layer-content{
    padding:10px 16px 24px !important; } }

/* NGAP/CADEC promo rail (col-md-3 beside .BotWelcom): raw square images with the Read More
   button absolutely positioned over the photo (legacy a.readmore-but{position:absolute;
   left:110px;bottom:70px}) become instrument cards — heading, image, mono READ cue, amber
   runway hover like every card on the page. user.js first moves CADEC's stray outside-h3
   into its .banner-box so both cards share one structure. */
.banner-img{ margin-top:18px; position:static; overflow:visible; }
.banner-box{ height:auto; overflow:hidden; position:relative; background:var(--white);
  border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow);
  display:flex; flex-direction:column;
  transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.banner-img .banner-box{ height:auto; margin-top:0; }
.banner-box::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:3px;
  background:linear-gradient(90deg,var(--amber-deep),var(--amber),var(--amber-deep));
  transform:scaleX(0); transform-origin:center; transition:transform .28s ease; }
.banner-box:hover{ transform:translateY(-4px); border-color:var(--navy);
  box-shadow:0 14px 30px rgba(11,42,74,.14); }
.banner-box:hover::after{ transform:scaleX(1); }
.banner-box h3, .banner-img h3{ color:var(--navy); font-family:var(--display); font-weight:700;
  font-size:.95rem; margin:0; padding:12px 14px 10px; }
.banner-box img, .banner-img img{ width:100%; height:150px; object-fit:cover; display:block; }
.banner-box a.readmore-but{ position:static !important; display:block; margin:0;
  background:transparent !important; color:var(--ink-muted) !important;
  font-family:var(--mono); font-weight:600; font-size:.68rem; letter-spacing:.14em;
  text-transform:uppercase; text-align:right; padding:12px 14px !important; border-radius:0;
  text-decoration:none; transition:color .2s ease, letter-spacing .2s ease; }
.banner-box a.readmore-but::after{ content:"\2192"; margin-left:6px; }
.banner-box:hover a.readmore-but{ color:var(--amber-deep) !important; letter-spacing:.2em; }

/* "More Statistics" CTA: legacy .BotWelcom a.but floats right out of the card flow (it hung
   over the card edge) with a fixed 141px width. Anchor it in flow as a brand button. */
.BotWelcom a.but{ float:none; display:inline-block; width:auto; margin:14px 0 0;
  background:var(--navy); color:#fff; font-family:var(--display); font-weight:600;
  font-size:.82rem; padding:10px 22px; border-radius:8px; border:1px solid var(--navy);
  text-decoration:none; transition:background .2s ease, border-color .2s ease, color .2s ease; }
.BotWelcom a.but:hover{ background:var(--amber); border-color:var(--amber); color:var(--amber-ink); }

/* quick-contact fields: consistent size + vertical rhythm (colours are set in 8 above;
   the browser defaults left them cramped at unequal widths on the dark panel) */
.ContactDiv #sp-quickcontact-form input:not([type="submit"]),
.ContactDiv #sp-quickcontact-form select,
.ContactDiv #sp-quickcontact-form textarea{
  display:block; width:100%; box-sizing:border-box; padding:10px 12px; margin:0 0 12px;
  font-size:.9rem; font-family:inherit; }
.ContactDiv #sp-quickcontact-form textarea{ min-height:104px; }
/* the empty "Subject..." option renders as a value — show it placeholder-grey until chosen */
.ContactDiv #sp-quickcontact-form select:invalid{ color:var(--ink-muted); }

/* ---- 8c) owner screenshot fixes (2026-07-05, ss/66+67) ---- */
/* ss/66 — copyright strip: the credit sat in a half-width col-lg-6 (509px at 1170) and
   wrapped mid-name ("T2 / Web Works."). Flex the row: the copyright col takes the space
   it needs, the Sitemap/last-modified col right-aligns. Below 1024px the cols stack and
   the line may wrap as a whole — only the mid-name break was the defect. */
@media (min-width:1024px){
  .ContactDiv .footerrow{ display:flex; align-items:center; }
  .ContactDiv .footerrow::before, .ContactDiv .footerrow::after{ content:none; display:none; }
  .ContactDiv .footerrow > [class*="col-"]{ width:auto; float:none; }
  .ContactDiv .footerrow > [class*="col-"]:first-child{ flex:1 1 auto; min-width:0; }
  .ContactDiv .footerrow .footer1{ white-space:nowrap; }
  .ContactDiv .footerrow .sitmapLinks{ margin-left:auto; }
}
/* ss/67 — ragged bottoms: the floated stats col (.BotWelcom) and the NGAP/CADEC promo col
   ended at different heights. Flex the row so both columns share one bottom line: the
   stats card (.jm-tabs .tab-content) fills its column, and the CADEC photo is the
   flexible element that absorbs the difference on the promo side. */
@media (min-width:992px){
  .row.p100:has(> .BotWelcom){ display:flex; align-items:stretch; }
  .row.p100:has(> .BotWelcom)::before, .row.p100:has(> .BotWelcom)::after{ content:none; display:none; }
  .row.p100 > .BotWelcom{ display:flex; flex-direction:column; float:none; }
  .row.p100 > .BotWelcom .mod-custom, .row.p100 > .BotWelcom .jm-tabs{
    flex:1 1 auto; display:flex; flex-direction:column; min-height:0; }
  .row.p100 > .BotWelcom .jm-tabs .nav-tabs{ flex:none; }
  .row.p100 > .BotWelcom .jm-tabs .tab-content{ flex:1 1 auto; }
  .row.p100 > .BotWelcom + [class*="col-"]{ display:flex; flex-direction:column; float:none; }
  .row.p100 > .BotWelcom + [class*="col-"] .mod-custom{ flex:1 1 auto; display:flex; flex-direction:column; min-height:0; }
  .row.p100 > .BotWelcom + [class*="col-"] .banner-img{ flex:1 1 auto; display:flex; flex-direction:column; min-height:0; }
  .row.p100 > .BotWelcom + [class*="col-"] .banner-img .banner-box{ flex:1 1 auto; min-height:0; }
  .row.p100 > .BotWelcom + [class*="col-"] .banner-img .banner-box img{
    flex:1 1 150px; min-height:110px; height:auto; }
}

/* ---- 9) responsive ---- */
@media (max-width:1040px){
  .HomeSlide ul.menu{ flex-wrap:wrap; }
  /* the menu's legacy clearfix ::before/::after are flex items too: once the row wraps they
     take a slot + a gap each, so on ~360-400px phones tile 1 sat alone (off-centre) and tile 6
     dropped to its own row (owner's A21 screenshot, 2026-12-04). Drop them when wrapping. */
  .HomeSlide ul.menu::before, .HomeSlide ul.menu::after{ content:none; display:none; }
  .HomeSlide ul.menu > li{ flex:1 1 28%; padding:0 !important; }   /* legacy li padding (12px on phones) doubled the link's own inset */
}
@media (max-width:767px){
  #fullpage > .section{ padding:36px 0 !important; }
  .HomeSlide ul.menu > li{ flex:1 1 44%; }
  /* legacy responsive.css sets span.image-title{width:49%} below 768px, squeezing tile labels
     to ~60px so long words spilled out of the tile on phones. Use the tile's full width. */
  .HomeSlide ul.menu .image-title{ width:100%; max-width:100%; overflow-wrap:break-word; hyphens:auto; }
  .BotWelcom table, .BotWelcom thead, .BotWelcom tbody, .BotWelcom tr, .BotWelcom td, .BotWelcom th{ display:block; }
  .BotWelcom th{ display:none; }
  .BotWelcom td{ border-top:1px solid var(--line); }
}

/* ---- fix/complete-ui-stabilization: 320px reflow edge ---- */
/* Smart Slider 3 layer offset can leak ~20px at very small widths — clip the
   wrapper's horizontal edge (slide content is centred, arrows unaffected). */
.slider{ max-width:min(var(--nav-pill-w),100%); overflow-x:clip; }
/* long home news titles must wrap on narrow screens */
.DolasMahe .mod-articles-category-title a{ overflow-wrap:anywhere; }
/* stack home news cards on small screens (were staying multi-column at 320) */
@media (max-width:520px){
  .DolasMahe .mod-articlescategory > li{ width:100% !important; max-width:100% !important; }
  /* two ~125-150px primary tiles per row: slimmer insides so labels get room */
  .HomeSlide ul.menu{ gap:12px; padding:0 12px; }
  .HomeSlide ul.menu > li > a{ gap:12px; padding:22px 10px 18px !important; min-height:200px; font-size:.9rem; }
  .HomeSlide .caasl-dial{ width:62px; height:62px; }
  .HomeSlide .caasl-mark, .HomeSlide .caasl-ico{ width:34px; height:34px; }
  .HomeSlide ul.menu .image-title{ padding:4px 0; }
}
/* contain the third-party Facebook embed (fixed width) so it can't leak page width at <=320 */
.facebook{ max-width:100%; overflow-x:clip; }
.facebook .fb-page, .facebook iframe, .facebook > div, .facebook span{ max-width:100% !important; }
/* Reflow safeguard at the smallest widths: Smart Slider 3 layers + the Facebook
   embed are fixed-width third-party internals that can't shrink below ~300px.
   Clip the home wrapper's horizontal edge at <=360 (home-only; mmenu lives outside
   #fullpage; vertical content fully intact). */
@media (max-width:360px){ #fullpage{ overflow-x:clip; } }
