/* ==========================================================================
   Jeddah International School — jis-2027.css
   One stylesheet for jischool.org (EN + FR), built on the same system as
   alferas.com: one type scale, one spacing scale, one button, one card.
   Colours: JIS navy + gold. Type: San Francisco on Apple devices, Inter
   (with its display cut for large text) everywhere else.
   1 tokens · 2 base · 3 header · 4 hero · 5 sections · 6 home blocks
   7 footer · 8 floating · 9 responsive · 10 inner pages · 11 news & stories
   12 French site
   ========================================================================== */

/* 0. Font: Inter (variable, with the optical-size axis), self-hosted — same file as alferas.com.
   Apple devices use San Francisco first; everyone else gets Inter. */
@font-face {
  font-family: "Inter Var";
  src: url("../fonts/inter-var-08a9a4ae.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000, U+0020-007E, U+00A0-00AC, U+00AE-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+2002, U+2009, U+200B, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+202F, U+2032-2033, U+2039-203A, U+2044, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2248, U+FEFF;
}

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --ink: #0a1024;
  --ink-2: #3a4256;
  --muted: #5d6576;
  --hairline: #e3e7ef;
  --canvas: #ffffff;
  --pearl: #f5f7fb;
  --navy: #0b2a6b;
  --navy-deep: #061638;
  --royal: #1e4fd8;
  --gold: #ffc20e;
  --gold-strong: #f0b400;
  --gold-ink: #8a6100;          /* gold text on white (AA) */
  --font: -apple-system, BlinkMacSystemFont, "Inter Var", "Inter", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --t-hero: clamp(2.75rem, 1.4rem + 5vw, 5.75rem);
  --t-h2: clamp(2.25rem, 1.45rem + 3.1vw, 4rem);
  --t-h3: clamp(1.5rem, 1.25rem + .9vw, 2rem);
  --t-h4: 1.3125rem;
  --t-quote: clamp(1.25rem, 1.1rem + .6vw, 1.625rem);
  --t-lead: clamp(1.1875rem, 1.05rem + .55vw, 1.5rem);
  --t-body: 1.0625rem;
  --t-small: .875rem;
  --t-eyebrow: .8125rem;
  --track-hero: -.045em;
  --track-head: -.03em;
  --track-tight: -.015em;
  --track-eyebrow: .08em;

  --wide: 1320px;
  --gutter: clamp(1.25rem, .6rem + 2.6vw, 2.75rem);
  --section: clamp(4.5rem, 2.6rem + 6vw, 8.5rem);
  --gap: clamp(1rem, .6rem + 1vw, 1.5rem);
  --r-sm: 12px; --r-md: 20px; --r-lg: 28px; --r-pill: 999px;
  --shadow-card: 0 1px 2px rgba(10,16,36,.04), 0 10px 30px rgba(10,16,36,.07);
  --shadow-float: 0 2px 6px rgba(10,16,36,.06), 0 24px 60px rgba(10,16,36,.16);
  --ease: cubic-bezier(.2,.7,.2,1);

  /* Older variable names still used by page-specific styles and CMS content, mapped onto the tokens above */
  --paper: var(--pearl); --card: #fff; --surface: #fff;
  --navy-2: var(--royal); --navy-soft: var(--royal);
  --gold-lit: var(--gold); --gold-deep: var(--gold-ink);
  --rule: var(--hairline); --rule-dark: rgba(255,255,255,.14); --muted-light: rgba(255,255,255,.75);
  --serif: var(--font); --sans: var(--font); --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: var(--r-md); --r: var(--r-md);
  --shadow: var(--shadow-card); --shadow-md: var(--shadow-float);
  --grad-aurora: linear-gradient(135deg, var(--navy-deep), var(--navy));
  --glow-gold: radial-gradient(900px 420px at 85% -10%, rgba(255,194,14,.16), transparent 60%);
  --jis-navy: var(--navy); --jis-navy-2: var(--royal); --jis-navy-dark: var(--navy-deep);
  --jis-gold: var(--gold); --jis-gold-dark: var(--gold-strong); --jis-grey: var(--pearl);
  --jis-radius: var(--r-md); --jis-shadow: var(--shadow-card);
}

/* 2. Base ------------------------------------------------------------------ */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); font-size: var(--t-body); line-height: 1.55; color: var(--ink);
  background: var(--canvas); font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font); font-weight: 700; color: var(--ink); letter-spacing: var(--track-tight); line-height: 1.15; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--navy); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--royal); }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid rgba(30,79,216,.45); outline-offset: 3px; border-radius: 8px; }
[style*="font-family"]:not([style*="var("]), font { font-family: var(--font) !important; } /* pasted Word fonts */

.container { max-width: calc(var(--wide) + 2 * var(--gutter)); padding-inline: var(--gutter); }
.section-pad { padding-block: var(--section); }

/* Shared type roles */
.eyebrow, .section-title, .kgf-kicker, .nx-kicker, .director-wrap h3, .jis-footer h3 {
  font-size: var(--t-eyebrow); font-weight: 600; letter-spacing: var(--track-eyebrow);
  text-transform: uppercase; color: var(--gold-ink); line-height: 1.3;
}
.h2, .about-h2, .vm-h2, .kgf-h, .nx-title {
  font-size: var(--t-h2); font-weight: 700; line-height: 1.04; letter-spacing: var(--track-head); color: var(--ink);
}
.lead, .about-wrap p.lead-text, .nx-sub {
  font-size: var(--t-lead); line-height: 1.45; color: var(--muted); font-weight: 400; letter-spacing: -.005em;
}

/* Buttons: one shape, three looks */
.btn-jis, .btn-jis-gold, .btn-jis-outline, .hf-ghost, .btn-subscribe, .nx-all {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 1.5rem; border: 0; border-radius: var(--r-pill);
  font-family: var(--font); font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; line-height: 1;
  white-space: nowrap; cursor: pointer; box-shadow: none;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-jis-gold, .btn-subscribe { background: var(--gold); color: var(--ink); box-shadow: 0 8px 24px rgba(240,180,0,.28); }
.btn-jis-gold:hover, .btn-subscribe:hover { background: var(--gold-strong); color: var(--ink); }
.btn-jis { background: var(--navy); color: #fff; }
.btn-jis:hover { background: var(--royal); color: #fff; }
.btn-jis-outline, .nx-all { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--hairline); }
.btn-jis-outline:hover, .nx-all:hover { color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.hf-ghost { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hf-ghost:hover { background: rgba(255,255,255,.24); color: #fff; }
.btn-jis:active, .btn-jis-gold:active, .hf-ghost:active { transform: scale(.98); }
.btn-jis i, .btn-jis-gold i { font-size: .8em; }

/* 3. Header ---------------------------------------------------------------- */
.topbar-overlay {
  position: absolute; inset: 0 0 auto 0; z-index: 1040;
  display: flex; align-items: center; gap: 28px; padding: 14px max(var(--gutter), calc((100% - var(--wide)) / 2));
  background: linear-gradient(180deg, rgba(6,16,40,.55), rgba(6,16,40,0));
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.topbar-overlay.scrolled { position: fixed; background: rgba(6,22,56,.86); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.topbar-overlay .brandbar, .topbar-overlay .brandbar .container { background: none; border: 0; padding: 0; margin: 0; max-width: none; }
.topbar-overlay .brandbar a { display: flex; align-items: center; gap: 12px; color: #fff; }
.topbar-overlay img.logo { width: 52px; height: 52px; border-radius: 50%; background: #fff; padding: 5px; object-fit: contain; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.topbar-overlay .school-name { margin: 0; font-size: 1rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; color: #fff; text-transform: capitalize; }
.topbar-overlay .since { display: block; margin-top: 3px; font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.topbar-overlay .brandbar .text-end { display: none !important; }
.topbar-overlay .mainnav { flex: 1; min-width: 0; background: none; border: 0; position: static; }
.topbar-overlay .mainnav .container { max-width: none; padding: 0; }
.mainnav .navbar-nav.mx-auto { display: flex; gap: 2px; }
.mainnav .navbar-nav.mx-auto .nav-item { order: 3; }
.mainnav .navbar-nav.mx-auto .nav-item:first-child { order: 1; }
.mainnav .navbar-nav.mx-auto .nav-item.nav-admissions { order: 2; }
.mainnav .navbar-nav.mx-auto .nav-item.nav-contact { order: 9; }
.mainnav .nav-link {
  padding: 8px 14px !important; border-radius: var(--r-pill); font-size: .9375rem; font-weight: 500;
  letter-spacing: -.005em; text-transform: none; color: rgba(255,255,255,.92) !important; white-space: nowrap;
}
.mainnav .nav-link:hover, .mainnav .nav-item.show > .nav-link { background: rgba(255,255,255,.14); color: #fff !important; }
.mainnav .dropdown-toggle::after, .mainnav .nav-link::after { display: none; }
.mainnav .navbar-utils { display: flex; align-items: center; gap: 2px; }
.mainnav .navbar-utils > li:nth-child(2) { display: none; }             /* Year Book lives in the footer menu */
.mainnav .navbar-utils .nav-link i { display: none; }
.mainnav .lang-sw { display: inline-flex; gap: 2px; margin-inline: 6px; padding: 3px; border-radius: var(--r-pill); background: rgba(255,255,255,.12); }
.mainnav .lang-sw a { padding: 5px 10px; border-radius: var(--r-pill); font-size: .8125rem; font-weight: 600; color: rgba(255,255,255,.75); }
.mainnav .lang-sw a.on { background: #fff; color: var(--ink); }
.mainnav .navbar-utils .dropdown > .nav-link { box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.mainnav .nav-item.nav-admissions > .nav-link { background: var(--gold); color: var(--ink) !important; font-weight: 600; margin-inline-start: 6px; }
.mainnav .nav-item.nav-admissions > .nav-link:hover { background: var(--gold-strong); }
.mainnav .navbar-nav.mx-auto { margin-inline: auto; }
.mainnav .dropdown-menu {
  margin-top: 10px !important; padding: 8px; min-width: 260px; border: 0; border-radius: var(--r-md);
  box-shadow: var(--shadow-float); font-size: .9375rem;
}
.mainnav .dropdown-item { padding: 10px 14px; border-radius: var(--r-sm); color: var(--ink-2); font-weight: 500; white-space: normal; }
.mainnav .dropdown-item:hover { background: var(--pearl); color: var(--navy); }
@media (min-width: 992px) { .mainnav .dropdown:hover > .dropdown-menu { display: block; } }
.mainnav .navbar-toggler { border: 0; border-radius: 50%; width: 44px; height: 44px; background: rgba(255,255,255,.14); color: #fff; }
.mainnav .navbar-toggler i { color: #fff; }

/* 4. Hero ------------------------------------------------------------------ */
.hero-full { position: relative; height: 100svh; min-height: 640px; max-height: 1000px; overflow: hidden; background: var(--navy-deep); }
.hf-media, .hf-scrim { position: absolute; inset: 0; }
.hf-vid, .hf-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hf-scrim { z-index: 1; background:
  linear-gradient(90deg, rgba(6,16,40,.82) 0%, rgba(6,16,40,.55) 42%, rgba(6,16,40,.12) 75%),
  linear-gradient(0deg, rgba(6,16,40,.55) 0%, rgba(6,16,40,0) 35%); }
.hf-copy { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end;
  max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) clamp(4rem, 3rem + 4vw, 7rem); color: #fff; }
.hf-row { display: block; }
.hf-left { max-width: 1040px; }
.hf-right { display: none; }                                              /* the name is said once */
.hf-badge { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 8px 14px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.hf-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(255,194,14,.28); }
.hero-full h1 { margin: 0; font-size: var(--t-hero); font-weight: 700; line-height: .98; letter-spacing: var(--track-hero); color: #fff; max-width: none; text-shadow: none; }
.hf-sub { margin: 22px 0 0; max-width: none; text-wrap: pretty; font-size: var(--t-lead); line-height: 1.45; color: rgba(255,255,255,.88); font-weight: 400; }
.hf-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Credential strip under the hero */
.jis-cred { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 22px;
  padding: 18px var(--gutter); background: var(--pearl); border-bottom: 1px solid var(--hairline);
  font-size: .9375rem; color: var(--muted); }
.jis-cred strong { color: var(--ink); font-weight: 600; }
.jis-cred .d1 { width: 4px; height: 4px; border-radius: 50%; background: #c3c9d6; }

/* Image slider: only used if the hero video is switched off in the CMS */
.hero-swiper { position: relative; background: var(--navy-deep); }
.hero-swiper img { display: block; width: 100%; height: min(88svh, 820px); object-fit: cover; }
.hero-swiper .hero-caption { position: absolute; inset: auto 0 0 0; padding: 6rem var(--gutter) clamp(3rem, 2rem + 3vw, 5rem); color: #fff; background: linear-gradient(0deg, rgba(6,16,40,.75), rgba(6,16,40,0)); }
.hero-swiper .hero-caption h2 { margin: 0 0 12px; font-size: var(--t-h2); line-height: 1.04; letter-spacing: var(--track-head); color: #fff; }
.hero-swiper .hero-caption p { margin: 0; max-width: 56ch; font-size: var(--t-lead); color: rgba(255,255,255,.88); }
.hero-swiper .swiper-pagination-bullet-active { background: var(--gold); }
.hero-swiper :is(.swiper-button-prev, .swiper-button-next) { color: #fff; }

/* 5. Section heads (built from the existing headings) ---------------------- */
.section-head { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(2.5rem, 1.6rem + 3vw, 4.5rem); text-align: start; }
.section-head--solo { grid-template-columns: 1fr; }
.section-head .lead { margin: 0; }
.section-head h2 { margin: 14px 0 0; }
.section-title { margin: 0; text-align: start; }
.section-title i, .section-line { display: none; }

/* 6. Home blocks ----------------------------------------------------------- */
/* About + school stages */
.about-wrap { background: var(--canvas); padding-bottom: clamp(2.5rem, 1.6rem + 3vw, 4rem); }
.about-wrap p.lead-text { margin: 0 0 24px; max-width: none; text-align: start; }
.about-wrap .brand-mark { color: var(--ink); font-weight: 600; background: none; padding: 0; }
.about-wrap p.text-center { text-align: start !important; }
.about-wrap + .section-pad { padding-top: 0; background: var(--canvas); }
.level-card { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.level-card img { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.level-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.level-card:hover img { transform: scale(1.04); }
.level-card .overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; color: #fff;
  background: linear-gradient(0deg, rgba(6,16,40,.82) 0%, rgba(6,16,40,0) 55%); }
.level-card .overlay h5 { margin: 0; font-size: var(--t-h4); font-weight: 700; letter-spacing: var(--track-tight); color: #fff; }
.level-card .overlay h5 span { color: inherit; }
.level-card .overlay p { margin: 6px 0 0; font-size: .9375rem; font-weight: 600; color: rgba(255,255,255,.85); }
.level-card .overlay p::after { content: " →"; }

/* Early Years film */
.kgf-wrap { background: var(--pearl); }
.kgf-wrap .kgf-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; background: none; border: 0; box-shadow: none; padding: 0; max-width: none; }
.kgf-kicker { margin: 0 0 14px; }
.kgf-h { margin: 0 0 20px; color: var(--ink); }
.kgf-p { margin: 0 0 30px; font-size: var(--t-lead); line-height: 1.45; color: var(--muted); }
.kgf-media { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--navy-deep); box-shadow: var(--shadow-float); }
.kgf-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kgf-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; }
.kgf-play span { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); box-shadow: 0 12px 30px rgba(6,16,40,.3); transition: transform .2s var(--ease); }
.kgf-play svg { width: 28px; height: 28px; fill: var(--ink); margin-left: 4px; }
.kgf-play:hover span { transform: scale(1.06); }
.kgf-dur { position: absolute; right: 16px; bottom: 16px; padding: 6px 10px; border-radius: var(--r-pill); background: rgba(6,16,40,.7); color: #fff; font-size: .8125rem; font-weight: 600; }
.kgf-media.playing .kgf-play, .kgf-media.playing .kgf-dur { display: none; }

/* Vision & Mission */
.vm-wrap { background: var(--navy-deep); color: #fff; }
.vm-wrap .section-title { color: var(--gold); }
.vm-wrap .vm-h2 { color: #fff; }
.vm-wrap .section-head .lead { color: rgba(255,255,255,.72); }
.vm-wrap .row { align-items: stretch; }
.vm-card { height: 100%; padding: clamp(1.75rem, 1.2rem + 1.5vw, 2.75rem); border-radius: var(--r-lg); background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.vm-card .vm-badge { display: block; margin: 0 0 18px; font-size: var(--t-eyebrow); font-weight: 600; letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--gold); background: none; padding: 0; }
.vm-card .vm-badge i, .vm-card .fa-square-check, .vm-card .fa-pencil { display: none; }
.vm-card p { margin: 0 0 16px; font-size: 1.0625rem; line-height: 1.6; color: rgba(255,255,255,.82); }
.vm-wrap .col-lg-5 .vm-card p { font-size: var(--t-h3); line-height: 1.3; font-weight: 600; letter-spacing: var(--track-tight); color: #fff; }
.vm-wrap .col-lg-7 .vm-card p + p { position: relative; padding-inline-start: 22px; }
.vm-wrap .col-lg-7 .vm-card p + p::before { content: ""; position: absolute; inset-inline-start: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.vm-card a { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 600; color: var(--gold); }
.vm-card a::after { content: "→"; }

/* News & events */
.nx-wrap { background: var(--canvas); padding-block: var(--section); }
.nx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 clamp(2rem, 1.4rem + 2vw, 3.5rem); }
.nx-kicker { display: block; margin: 0 0 14px; }
.nx-kicker::before { display: none; }
.nx-title { margin: 0; }
.nx-sub { margin: 16px 0 0; max-width: 560px; }
.nx-all span { display: none; }
.nx-all::after { content: "→"; }
.nx-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: var(--gap); }
.nx-card { overflow: hidden; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-card); border: 0; }
.nx-media { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--navy-deep); }
.nx-feature .nx-media { aspect-ratio: 2.1 / 1; }
.nx-media img, .nx-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nx-play { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); box-shadow: 0 12px 30px rgba(6,16,40,.3); cursor: pointer; }
.nx-play svg { width: 26px; height: 26px; fill: var(--ink); margin-left: 4px; }
.nx-badge { position: absolute; z-index: 2; left: 18px; top: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--r-pill); background: rgba(255,255,255,.94); font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.nx-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.nx-dur { position: absolute; z-index: 2; right: 16px; bottom: 16px; padding: 6px 10px; border-radius: var(--r-pill); background: rgba(6,16,40,.7); color: #fff; font-size: .8125rem; font-weight: 600; }
.nx-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(6,22,56,0) 60%, rgba(6,22,56,.35)); }
.nx-media.playing::after, .nx-media.playing .nx-play, .nx-media.playing .nx-badge, .nx-media.playing .nx-dur { display: none; }
.nx-media.playing video { object-fit: contain; background: #000; }
.nx-ph { display: flex; align-items: center; justify-content: space-between; margin: 0 0 6px; }
.nx-body { padding: 28px 30px 30px; }
.nx-meta { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: var(--t-small); color: var(--muted); }
.nx-meta b { width: 4px; height: 4px; border-radius: 50%; background: #c3c9d6; }
.nx-h3 { margin: 0 0 10px; font-size: var(--t-h3); line-height: 1.15; letter-spacing: var(--track-tight); }
.nx-p { margin: 0 0 18px; color: var(--muted); }
.nx-link { font-weight: 600; color: var(--navy); }
.nx-panel { display: flex; flex-direction: column; padding: 26px 26px 22px; }
.nx-ph h4, .nx-lh h4 { margin: 0 0 6px; font-size: var(--t-h4); letter-spacing: var(--track-tight); }
.nx-list { margin: 0 0 18px; padding: 0; list-style: none; }
.nx-list li + li { border-top: 1px solid var(--hairline); }
.nx-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.nx-chip { flex: 0 0 52px; height: 56px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--pearl); color: var(--ink); line-height: 1; }
.nx-chip b { font-size: 1.25rem; font-weight: 700; color: var(--navy); }
.nx-chip span { margin-top: 4px; font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nx-rt { display: block; font-weight: 600; color: var(--ink); line-height: 1.3; }
.nx-rd { display: block; margin-top: 3px; font-size: var(--t-small); color: var(--muted); }
.nx-cta { margin-top: auto; display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 48px; border-radius: var(--r-pill); background: var(--pearl); font-weight: 600; color: var(--navy); }
.nx-cta:hover { background: #eaeef6; }
.nx-latest { margin-top: clamp(2rem, 1.4rem + 2vw, 3.5rem); }
.nx-minis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.nx-mini { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-md); background: var(--pearl); color: inherit; transition: background-color .2s var(--ease); }
.nx-mini:hover { background: #eaeef6; color: inherit; }
.nx-mini .nx-rt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .9375rem; }
.nx-thumb { flex: 0 0 52px; height: 52px; border-radius: 12px; overflow: hidden; background: #fff; }
.nx-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nx-thumb.doc { display: grid; place-items: center; background: var(--navy); }
.nx-thumb.doc b { font-size: .6875rem; font-weight: 700; letter-spacing: .08em; color: var(--gold); background: none; padding: 0; }

/* Director */
.director-wrap { background: var(--pearl); }
.director-wrap .row { --bs-gutter-x: clamp(2rem, 1rem + 4vw, 5rem); }
.director-wrap .col-md-3 { text-align: start !important; }
.director-wrap img.avatar { width: 100%; max-width: 300px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-float); }
.director-wrap h3 { margin: 0 0 20px !important; }
.director-wrap p.quote { margin: 0 0 28px; max-width: 54ch; font-size: var(--t-quote); line-height: 1.45; font-weight: 500; letter-spacing: -.012em; color: var(--ink); }
.director-wrap p.quote i { display: none; }
.director-wrap p.quote::before { content: "“"; color: var(--gold-strong); }
.director-wrap p.quote::after { content: "”"; color: var(--gold-strong); }

/* Accredited by */
.accred-strip { background: var(--canvas); padding-block: clamp(3rem, 2rem + 3vw, 5rem); border-top: 1px solid var(--hairline); }
.accred-strip .section-title { text-align: center; color: var(--muted); margin-bottom: 28px; }
.accred-strip .logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 56px; }
.accred-strip .logos img { height: 56px; width: auto; max-width: 160px; object-fit: contain; filter: none; opacity: 1; }

/* 7. Footer ---------------------------------------------------------------- */
.jis-footer { background: var(--ink); color: rgba(255,255,255,.66); padding: clamp(3.5rem, 2.5rem + 3vw, 5.5rem) 0 2.5rem; font-size: .9375rem; }
.jis-footer h3 { margin: 0 0 18px; color: var(--gold); padding: 0; }
.jis-footer h3::after, .jis-footer h3 i { display: none; }
.jis-footer ul { list-style: none; margin: 0; padding: 0; }
.jis-footer ul li { margin: 0 0 10px; }
.jis-footer ul li a, .jis-footer a { color: rgba(255,255,255,.78); }
.jis-footer ul li a:hover, .jis-footer a:hover { color: #fff; }
.jis-footer .nl-note { color: rgba(255,255,255,.6); font-size: .9375rem; }
.jis-footer .newsletter input { width: 100%; min-height: 48px; margin-bottom: 10px; padding: 0 18px; border-radius: var(--r-pill); border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; font: inherit; outline: none; }
.jis-footer .newsletter input:focus { border-color: var(--gold); }
.jis-footer .btn-subscribe { width: 100%; }
.jis-footer .badges img { height: 40px; width: auto; }
.jis-bottombar { background: var(--ink); border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; }
.jis-bottombar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.jis-bottombar p { margin: 0; color: rgba(255,255,255,.5); font-size: var(--t-small); }
.jis-bottombar a { color: rgba(255,255,255,.7); font-size: var(--t-small); }
.jis-social { display: flex; gap: 8px; }
.jis-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; font-size: .95rem; }
.jis-social a:hover { background: var(--gold); color: var(--ink); }
#txterror { display: none; margin-top: 8px; padding: 8px 12px; border-radius: var(--r-sm); background: #1f7a4d; color: #fff; font-size: var(--t-small); }

/* 8. Floating -------------------------------------------------------------- */
.social-rail, .backtotop { display: none !important; }                    /* social links now live in the footer */
#jisWa { position: fixed; right: 22px; bottom: 22px; z-index: 1500; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #25d366; box-shadow: 0 10px 26px -8px rgba(37,211,102,.6); }

/* Modals and forms (sign-in, OTP) */
.modal-content { border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-float); }
.modal-header { background: var(--navy); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.form-control { min-height: 48px; border-radius: var(--r-sm); border: 1px solid var(--hairline); font: inherit; }
.form-control:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11,42,107,.12); }

/* Mobile menu (offcanvas) */
.offcanvas { font-family: var(--font); }
.offcanvas-header { background: var(--navy-deep); }
.offcanvas .accordion-button, .offcanvas .list-group-item a { font-size: 1rem; font-weight: 500; color: var(--ink); }
.mob-lang { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--pearl); }
.mob-lang b { font-size: var(--t-eyebrow); letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--muted); }
.mob-lang .p { display: flex; gap: 6px; }
.mob-lang .p a { min-width: 52px; padding: 8px 12px; border-radius: var(--r-pill); text-align: center; font-weight: 600; background: #fff; box-shadow: inset 0 0 0 1px var(--hairline); color: var(--ink); }
.mob-lang .p a.on { background: var(--gold); box-shadow: none; }
.mob-sec { padding: 16px 16px 6px; font-size: var(--t-eyebrow); font-weight: 600; letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--gold-ink); }

/* 9. Responsive ------------------------------------------------------------ */
@media (max-width: 1199px) {
  .topbar-overlay .navbar-utils > li:not(.lang-sw):not(.dropdown):not(.nav-admissions) { display: none; }
}
@media (max-width: 991px) {
  .topbar-overlay { padding: 10px var(--gutter); }
  .topbar-overlay img.logo { width: 44px; height: 44px; padding: 4px; }
  .topbar-overlay .school-name { font-size: .9375rem; }
  .topbar-overlay .since { font-size: .625rem; }
  .topbar-overlay .mainnav .container { justify-content: flex-end; }
  .topbar-overlay .mainnav .navbar-collapse { background: rgba(6,22,56,.97); border-radius: var(--r-md); padding: 10px; margin-top: 10px; }
  .section-head { grid-template-columns: 1fr; }
  .kgf-wrap .kgf-card, .nx-grid { grid-template-columns: 1fr; }
  .kgf-wrap .kgf-media { order: -1; }
  .nx-minis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .director-wrap img.avatar { max-width: 220px; }
}
@media (max-width: 640px) {
  .hero-full { min-height: 600px; }
  .hf-copy { padding-bottom: 3.5rem; }
  .hf-cta .btn-jis-gold, .hf-cta .hf-ghost { flex: 1 1 100%; }
  .nx-head { flex-direction: column; align-items: flex-start; }
  .nx-minis { grid-template-columns: 1fr; }
  .level-card img { aspect-ratio: 3 / 4; }
  .jis-cred .d1 { display: none; }
  .accred-strip .logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; justify-items: center; }
  .accred-strip .logos img { height: 44px; max-width: 100%; }
  .jis-bottombar .container { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }


/* 10. Inner pages ---------------------------------------------------------- */
/* Page band: the site's script turns the old banner row into .page-band with an h1 */
.container-fluid:has(> #row-top):not(.page-band) { padding-inline: 0; } /* the band row runs edge to edge */
#row-top { margin: 0; }
#middle-banner, #hint, .breadcrumb, .page-band > img { display: none; }
.page-band {
  position: relative; overflow: hidden;
  padding: clamp(8.5rem, 7rem + 4vw, 11rem) 0 clamp(3rem, 2rem + 3vw, 5rem);
  background: radial-gradient(900px 420px at 85% -10%, rgba(255,194,14,.16), transparent 60%), linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
}
.page-band .page-band { margin: 0; padding: 0; overflow: visible; background: none; } /* some views mark both the wrapper and the row */
.page-band-title { margin: 0; max-width: 20ch; font-size: var(--t-h2); font-weight: 700; line-height: 1.04; letter-spacing: var(--track-head); color: #fff; }
/* Full-width text pages read in one centred column; the band title lines up with it */
.col-md-12 > #content-description { max-width: 46rem; margin-inline: auto; }
body:has(.col-md-12 > #content-description) .page-band .container { max-width: calc(46rem + 2 * var(--gutter)); }
body:has(.ar-card) .page-band .container { max-width: calc(860px + 2 * var(--gutter)); }
body:has(.ff27) .page-band .container { max-width: calc(1050px + 2 * var(--gutter)); } /* French fees page */

/* Page body */
.clearfix + .container { padding-block: clamp(3rem, 2rem + 3vw, 5rem) var(--section); }
:where(#content-description, .page-content) { font-size: 1.0625rem; line-height: 1.7; color: var(--ink-2); }
:where(#content-description, .page-content) :is(p, ul, ol, h2, h3, h4, blockquote) { max-width: 46rem; }
:where(#content-description, .page-content) > :first-child,
:where(#content-description, .page-content) > .page-content > :first-child { margin-top: 0; }
:where(#content-description, .page-content) h2 { margin: 2.75rem 0 .9rem; font-size: var(--t-h3); font-weight: 700; line-height: 1.15; letter-spacing: var(--track-tight); color: var(--ink); }
:where(#content-description, .page-content) h3 { margin: 2rem 0 .6rem; font-size: 1.3125rem; font-weight: 700; line-height: 1.25; letter-spacing: var(--track-tight); color: var(--ink); }
:where(#content-description, .page-content) h4 { margin: 1.6rem 0 .5rem; font-size: 1.0625rem; font-weight: 700; color: var(--ink); }
:where(#content-description, .page-content) p { margin: 0 0 1.1rem; }
:where(#content-description, .page-content) :is(ul, ol) { margin: 0 0 1.4rem; padding-inline-start: 1.35rem; }
:where(#content-description, .page-content) li { margin: 0 0 .5rem; padding-inline-start: .3rem; }
:where(#content-description, .page-content) ul > li::marker { color: var(--gold-strong); }
:where(#content-description, .page-content) ol > li::marker { color: var(--navy); font-weight: 700; }
:where(#content-description, .page-content) :is(strong, b) { font-weight: 600; color: var(--ink); }
:where(#content-description, .page-content) a:not([class]) { color: var(--royal); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:where(#content-description, .page-content) img { max-width: 100%; height: auto; border-radius: var(--r-md); }
:where(#content-description, .page-content) hr { margin: 2.5rem 0; border: 0; border-top: 1px solid var(--hairline); opacity: 1; }
:where(#content-description, .page-content) p:empty { display: none; }
/* Tables (fees, calendars) */
:where(#content-description, .page-content) table:not(.fc *) { width: 100%; margin: 1.4rem 0 2.2rem; border: 1px solid var(--hairline); border-collapse: separate; border-spacing: 0; border-radius: var(--r-md); overflow: hidden; background: #fff; font-size: .9375rem; line-height: 1.5; }
:where(#content-description, .page-content) :is(th, td):not(.fc *) { padding: .8rem 1rem; border: 0; border-top: 1px solid var(--hairline); text-align: start; vertical-align: top; }
:where(#content-description, .page-content) :is(thead th, thead td, tr:first-child > th):not(.fc *) { border-top: 0; background: var(--navy-deep); color: #fff; font-weight: 600; }
:where(#content-description, .page-content) table:not(:has(th)):not(.fc *) tr:first-child > td { border-top: 0; background: var(--navy-deep); color: #fff; font-weight: 600; }
:where(#content-description, .page-content) tbody tr:nth-child(even) > td:not(.fc *) { background: var(--pearl); }
/* (.fc = the FullCalendar widget on Academic Activities keeps its own table styles) */
.fc :is(h1, h2, h3) { color: inherit; }
/* Text pasted from Word or other sites: keep the site's type */
:where(#content-description, .page-content) :is([style*="font-size"], font[size]) { font-size: inherit !important; }
:where(#content-description, .page-content) [style*="line-height"] { line-height: inherit !important; }
:where(#content-description, .page-content) [style*="text-align: justify"], :where(#content-description, .page-content) [style*="text-align:justify"] { text-align: start !important; }
:where(#content-description, .page-content) :is(h1, h2, h3, h4, h5, h6)[style*="color"],
:where(#content-description, .page-content) :is([style*="color:#888"], [style*="color: #888"], [style*="color: rgb(136, 136, 136)"]) { color: inherit !important; }
:where(#content-description, .page-content) font[color] { color: inherit; }

/* Side navigation (About pages) and side card (Admissions) */
.nav-stacked { flex-direction: column; flex-wrap: nowrap; gap: 2px; padding: 10px; border-radius: var(--r-md); background: var(--pearl); }
.nav-stacked > li > a { display: block; padding: 10px 14px; border-radius: var(--r-sm); color: var(--ink-2); font-size: .9375rem; font-weight: 500; line-height: 1.35; }
.nav-stacked > li > a:hover, .nav-stacked > li.active > a { background: #fff; color: var(--navy); }
.side-card { padding: 22px 22px 12px; border-radius: var(--r-md); background: var(--pearl); }
.side-card h4 { margin: 0 0 6px; font-size: var(--t-eyebrow); font-weight: 600; letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--gold-ink); }
.side-links { margin: 0; padding: 0; list-style: none; }
.side-links li + li { border-top: 1px solid var(--hairline); }
.side-links a { display: block; padding: 11px 0; color: var(--ink); font-size: .9375rem; font-weight: 500; }
.side-links a:hover { color: var(--royal); }
@media (min-width: 768px) { .col-md-3 > :is(.nav-stacked, .side-card) { position: sticky; top: 104px; } }

/* Admissions: action strip (desktop) and bottom bar (phone) */
.adm-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 2.75rem; padding: 22px 24px; border-radius: var(--r-lg); background: var(--navy-deep); color: #fff; }
.adm-cta .adm-cta-t { flex: 1 1 260px; margin: 0; font-size: 1.1875rem; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; color: #fff; }
.adm-cta .adm-cta-t small { display: block; margin-top: 4px; font-size: .9375rem; font-weight: 400; color: rgba(255,255,255,.72); }
:is(.adm-cta, .adm-bar) a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-pill); font-size: .9375rem; font-weight: 600; line-height: 1; white-space: nowrap; }
:is(.adm-cta, .adm-bar) .a1 { background: var(--gold); color: var(--ink); }
.adm-cta .a2 { background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); color: #fff; }
:is(.adm-cta, .adm-bar) .a3 { background: #25d366; color: #fff; }
.adm-bar { display: none; }
.fee-note { color: var(--muted); font-size: .875rem; }
.fee-callout { margin: 1.4rem 0; padding: 16px 20px; border-radius: var(--r-md); background: #fff8e1; box-shadow: inset 0 0 0 1px rgba(240,180,0,.45); color: var(--ink); }

/* Contact */
.well { min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.map-wrap { margin-top: 2.5rem; overflow: hidden; line-height: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; }

/* Pages built in the CMS (programme cards, calendar, Early Years film) */
.page-content .jp .jp-kick { font-family: var(--font); font-size: var(--t-eyebrow); font-weight: 600; letter-spacing: var(--track-eyebrow); color: var(--gold-ink); }
.page-content .jp .jp-card { border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.page-content .jp .jp-card h3 { font-family: var(--font); font-size: 1.25rem; font-weight: 700; letter-spacing: var(--track-tight); }
/* Card grids built in the CMS step out of the reading column, up to the page width */
.page-content .jp .jp-grid { --x: min(68rem, calc(100vw - 2 * var(--gutter))); width: var(--x); max-width: none; margin-inline: calc((100% - var(--x)) / 2); }
.kg-film { margin: 0 0 2.5rem; }
.kg-film .kgf-cap { margin: 14px 2px 0; font-size: .9375rem; color: var(--muted); }
.kg-film .kgf-cap b { color: var(--navy); }
.privacy-paragraph { text-align: start; }

/* Phone menu: quick links */
.mob-utils { margin: 0; padding: 0 0 12px; }
.mob-utils .list-group-item { padding: 0; border: 0; border-bottom: 1px solid var(--hairline); }
.mob-utils .list-group-item a { display: block; padding: 12px 16px; color: var(--ink); font-size: 1rem; font-weight: 500; }

/* 11. News & stories (News & Events page, story pages) --------------------- */
.nl-wrap, .ar-wrap { max-width: calc(var(--wide) + 2 * var(--gutter)); padding-top: clamp(3rem, 2rem + 3vw, 5rem); padding-bottom: var(--section); }
.nl-intro { margin: 0 0 clamp(2rem, 1.4rem + 2vw, 3rem); }
.nl-intro .nx-sub { margin-top: 0; }
.nl-feature { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); margin: 0 0 var(--gap); overflow: hidden; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-card); }
.nl-feature .nx-media { aspect-ratio: auto; min-height: 360px; }
.nl-feature .nx-h3 { font-size: var(--t-h3); }
.nl-fb { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.5rem, 1rem + 2vw, 3rem); }
.nl-flink { color: inherit; }
.nl-flink:hover { color: var(--royal); }
.nl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.nl-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-card); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.nl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-float); }
.nl-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--pearl); }
.nl-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nl-b { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 20px 22px 24px; }
.nl-d { margin: 0; font-size: var(--t-small); color: var(--muted); }
.nl-t { margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 1.1875rem; font-weight: 700; line-height: 1.3; letter-spacing: var(--track-tight); color: var(--ink); }
.nl-t a { color: inherit; }
.nl-t a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.nl-card:hover .nl-t { color: var(--royal); }
.nl-ext { position: relative; z-index: 2; align-self: flex-start; font-size: .875rem; font-weight: 600; color: var(--royal); }
.nl-more { margin-top: auto; padding-top: 6px; font-size: .9375rem; font-weight: 600; color: var(--navy); }
.nl-cover { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 20px 22px; overflow: hidden; color: #fff; background: radial-gradient(520px 260px at 92% -25%, rgba(255,194,14,.22), transparent 62%), linear-gradient(140deg, var(--navy-deep) 0%, var(--navy) 60%, #163d9a 100%); }
.nl-cover::after { content: ""; position: absolute; right: -42px; bottom: -42px; width: 170px; height: 170px; border: 26px solid rgba(255,255,255,.07); border-radius: 50%; }
.nl-cv-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; }
.nl-pdf { padding: 6px 8px; border-radius: 6px; background: var(--gold); font-size: .6875rem; font-weight: 700; letter-spacing: .1em; line-height: 1; color: var(--ink); }
.nl-cv-k { font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.nl-cv-ico { position: relative; z-index: 1; width: 60px; height: 60px; fill: none; stroke: rgba(255,255,255,.9); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.nl-empty { padding: 3rem 1rem; text-align: center; color: var(--muted); }
.ar-card { max-width: 860px; margin: 0 auto; padding: clamp(1.5rem, 1rem + 2vw, 3rem); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-card); }
.ar-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: var(--t-small); color: var(--muted); }
.ar-kicker a { font-size: var(--t-eyebrow); font-weight: 600; letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--gold-ink); }
.ar-kicker b { width: 4px; height: 4px; border-radius: 50%; background: #c3c9d6; }
.ar-h2 { margin: 0 0 16px; font-size: var(--t-h3); font-weight: 700; line-height: 1.15; letter-spacing: var(--track-tight); color: var(--ink); }
.ar-h2 a { color: inherit; }
.ar-story + .ar-story, .ar-story + .ar-docs-wrap { margin-top: 2.5rem; }
.ar-body { font-size: 1.125rem; line-height: 1.7; color: var(--ink-2); }
.ar-body p { margin: 0 0 1.2rem; }
.ar-body :is(img, video) { display: block; max-width: 100%; height: auto; border-radius: var(--r-md); }
.ar-body video { width: 100%; background: #000; }
.ar-docs { margin: 0; padding: 0; list-style: none; }
.ar-doc { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--hairline); }
.ar-doc:first-child { padding-top: 4px; border-top: 0; }
.ar-doc .nx-thumb { flex-basis: 48px; height: 48px; }
.ar-doc-t { flex: 1; min-width: 0; font-weight: 600; color: var(--ink); }
.ar-doc-t a { color: inherit; }
.ar-btns { display: flex; flex: none; gap: 8px; }
.ar-btn, .ar-back { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-pill); background: #fff; box-shadow: inset 0 0 0 1px var(--hairline); font-size: .9375rem; font-weight: 600; color: var(--navy); }
.ar-btn:hover, .ar-back:hover { box-shadow: inset 0 0 0 1px var(--navy); color: var(--navy); }
.ar-btn.primary { background: var(--gold); box-shadow: none; color: var(--ink); }
.ar-btn.primary:hover { background: var(--gold-strong); color: var(--ink); }
.ar-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--hairline); font-size: .9375rem; color: var(--muted); }
.ar-empty p { margin: 0; color: var(--muted); }

/* 12. French site ---------------------------------------------------------- */
.af-wrap { background: var(--pearl); }
.af-wrap .af-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.af-wrap .af-logo { display: block; width: 72px; height: auto; margin: 0 0 20px; }
.af-wrap .af-kicker { margin: 0 0 14px; font-size: var(--t-eyebrow); font-weight: 600; letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--gold-ink); }
.af-wrap .af-h { margin: 0 0 20px; font-size: var(--t-h2); font-weight: 700; line-height: 1.04; letter-spacing: var(--track-head); color: var(--ink); }
.af-wrap .af-p { margin: 0 0 24px; font-size: var(--t-lead); line-height: 1.45; color: var(--muted); }
.af-wrap .af-disc { margin: 0; padding: 16px 20px; border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow-card); font-size: 1.0625rem; color: var(--ink); }
.af-wrap .af-disc strong { color: var(--navy); }
.af-wrap .af-media { overflow: hidden; border-radius: var(--r-lg); background: var(--navy-deep); box-shadow: var(--shadow-float); }
.af-wrap video { display: block; width: 100%; height: auto; }
.footer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; margin: 0 0 clamp(2rem, 1.5rem + 2vw, 3rem); padding: 0 0 clamp(1.5rem, 1rem + 1vw, 2rem); border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-nav a { font-size: 1rem; font-weight: 600; color: #fff; }
.footer-nav a:hover { color: var(--gold); }
.footer-nav .sep { flex-basis: 100%; height: 0; }
.footer-nav .util { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-nav .util a { font-size: .875rem; font-weight: 400; color: rgba(255,255,255,.6); }

@media (max-width: 991px) {
  .nl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nl-feature, .af-wrap .af-card { grid-template-columns: 1fr; }
  .nl-feature .nx-media { min-height: 0; aspect-ratio: 16 / 9; }
  .af-wrap .af-media { order: -1; }
}
@media (max-width: 767px) {
  .col-md-3 > :is(.nav-stacked, .side-card) { margin-top: 2.5rem; }
  .adm-cta { display: none; }
  .adm-bar { position: fixed; inset: auto 0 0 0; z-index: 1040; display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 -8px 24px rgba(6,16,40,.12); }
  .adm-bar a { flex: 1; }
  .adm-bar .a2 { background: var(--navy); color: #fff; }
  .adm-bar .a3 { flex: 0 0 48px; padding: 0; }
  body.has-adm-bar { padding-bottom: 76px; }
  body.has-adm-bar #jisWa { display: none; }
  :where(#content-description, .page-content) table:not(.fc *) { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  :where(#content-description, .page-content) :is(th, thead td, td:first-child) { white-space: nowrap; }
  :where(#content-description, .page-content) table:not(:has(th)) tr:first-child > td { white-space: nowrap; }
}
@media (max-width: 640px) {
  .nl-grid { grid-template-columns: 1fr; }
  .ar-doc { flex-wrap: wrap; }
  .ar-btns { width: 100%; padding-inline-start: 64px; }
  .ar-foot { flex-direction: column; align-items: flex-start; }
}
