/* ==========================================================================
   Fonts (self-hosted: Inter and Source Serif 4)
   ========================================================================== */
@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/fonts/2c55a0e60120577a-s.0-dom-5bn10r2.woff2)format("woff2");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/fonts/9c72aa0f40e4eef8-s.1y4-pdgsjb-pw.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}
@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/fonts/ad66f9afd8947f86-s.3lvt2whj97whp.woff2)format("woff2");unicode-range:U+1F??}
@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/fonts/5476f68d60460930-s.2uwcyprjm3xu3.woff2)format("woff2");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}
@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/fonts/2bbe8d2671613f1f-s.0k62hbripvv8p.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/fonts/1bffadaabf893a1e-s.3-6t-g6q0vh0a.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/fonts/83afe278b6a6bb3c-s.p.2bn3s6zvc0dyp.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Inter Fallback;src:local(Arial);ascent-override:90.44%;descent-override:22.52%;line-gap-override:0.0%;size-adjust:107.12%}
@font-face{font-family:"Source Serif 4";font-style:normal;font-weight:200 900;font-display:swap;src:url(/assets/fonts/20aee433927f7d4b-s.22-vwy_zcz7be.woff2)format("woff2");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:"Source Serif 4";font-style:normal;font-weight:200 900;font-display:swap;src:url(/assets/fonts/256e1f7f180674ba-s.3_q_pmj-3v7pv.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}
@font-face{font-family:"Source Serif 4";font-style:normal;font-weight:200 900;font-display:swap;src:url(/assets/fonts/be3bf58b83159894-s.0kupvvif_223v.woff2)format("woff2");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}
@font-face{font-family:"Source Serif 4";font-style:normal;font-weight:200 900;font-display:swap;src:url(/assets/fonts/753b6407f468151f-s.11jlrhjosin9v.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:"Source Serif 4";font-style:normal;font-weight:200 900;font-display:swap;src:url(/assets/fonts/292081311a6a8abc-s.3z1vcboutudqk.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Source Serif 4";font-style:normal;font-weight:200 900;font-display:swap;src:url(/assets/fonts/68d403cf9f2c68c5-s.p.012bmydply3go.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Source Serif 4 Fallback";src:local(Times New Roman);ascent-override:87.87%;descent-override:28.41%;line-gap-override:0.0%;size-adjust:117.91%}
:root {
  --font-inter: "Inter", "Inter Fallback";
  --font-source-serif: "Source Serif 4", "Source Serif 4 Fallback";
}

/* ==========================================================================
   IACAB - corporate style, navy + gold
   Rounded surfaces, soft depth and calm motion. No coloured-line containers.
   ========================================================================== */

:root {
  --navy-950: #06162c;
  --navy-900: #0b2545;
  --navy-800: #13325c;
  --navy-700: #1d4275;
  --gold-600: #8f6a24;
  --gold-500: #b8892d;
  --gold-300: #e3c78f;
  --cream: #f7f4ee;
  --grey-50: #f4f6f9;
  --grey-200: #dfe3ea;
  --grey-300: #c8ced8;
  --ink: #1d2733;
  --muted: #5a6573;
  --white: #ffffff;

  --font-serif: var(--font-source-serif), Georgia, "Times New Roman", serif;
  --font-sans: var(--font-inter), system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgb(11 37 69 / 0.06), 0 4px 14px rgb(11 37 69 / 0.06);
  --shadow-md: 0 2px 4px rgb(11 37 69 / 0.06), 0 16px 36px rgb(11 37 69 / 0.13);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --watermark: url("/images/iacab-logo-white.png?v=2");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

main,
.site-footer { overflow-x: clip; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy-700);
  text-underline-offset: 3px;
  transition: color 0.2s;
}
a:hover {
  color: var(--gold-600);
}

:focus-visible {
  outline: 3px solid var(--gold-300);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: var(--gold-300);
  color: var(--navy-950);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  color: var(--navy-900);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 0.6em;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.9vw, 2.25rem); }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }

ul,
ol { padding-left: 1.25rem; margin: 0 0 1.25rem; }
li { margin-bottom: 0.4rem; }
li::marker { color: var(--gold-500); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--white);
  color: var(--navy-900);
  padding: 8px 16px;
  z-index: 100;
  border-radius: var(--radius-sm);
}
.skip-link:focus { left: 16px; top: 8px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.lead {
  font-size: 1.14rem;
  color: var(--muted);
  max-width: 62ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.45rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  line-height: 1.3;
  transition: background 0.25s, color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-gold { background: var(--gold-500); color: var(--white); box-shadow: 0 6px 18px rgb(184 137 45 / 0.35); }
.btn-gold:hover { background: var(--gold-600); color: var(--white); }
.btn-navy { background: var(--navy-900); color: var(--white); box-shadow: 0 6px 18px rgb(11 37 69 / 0.22); }
.btn-navy:hover { background: var(--navy-700); color: var(--white); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; pointer-events: none; }
.btn-light { background: var(--white); color: var(--navy-900); }
.btn-light:hover { background: var(--cream); color: var(--navy-900); }
.btn-ghost { background: rgb(255 255 255 / 0.12); color: var(--white); }
.btn-ghost:hover { background: rgb(255 255 255 / 0.22); color: var(--white); }
.btn-soft { background: var(--cream); color: var(--navy-900); }
.btn-soft:hover { background: #efe8da; color: var(--navy-900); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* Older class names still used on some pages */
.btn-outline { background: var(--cream); color: var(--navy-900); }
.btn-outline:hover { background: #efe8da; color: var(--navy-900); }
.on-dark .btn-outline { background: rgb(255 255 255 / 0.12); color: var(--white); }
.on-dark .btn-outline:hover { background: rgb(255 255 255 / 0.22); color: var(--white); }

/* ---------- Header ---------- */
.topbar { background: var(--navy-950); color: #c3ccd9; font-size: 0.85rem; }
.topbar .container { display: flex; justify-content: flex-end; gap: 1.75rem; padding-top: 0.45rem; padding-bottom: 0.45rem; }
.topbar a { color: #c3ccd9; text-decoration: none; }
.topbar a:hover { color: var(--white); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  box-shadow: 0 1px 0 var(--grey-200), 0 8px 24px rgb(11 37 69 / 0.05);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; color: var(--navy-900); }
.brand img { width: 50px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 700; letter-spacing: 0.03em; }
.brand-sub { font-size: 0.72rem; color: var(--muted); max-width: 220px; }

.nav { display: flex; align-items: center; }
.nav-list { display: flex; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; margin: 0; }
.nav-link {
  display: block;
  position: relative;
  padding: 0.55rem 0.95rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.97rem;
  white-space: nowrap;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.nav-link:hover { background: var(--cream); color: var(--navy-900); }
.nav-link[aria-current="page"] { color: var(--navy-900); font-weight: 700; background: var(--cream); }
.nav-sub {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 290px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s, transform 0.22s var(--ease), visibility 0.22s;
}
.nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-item:hover > .nav-sub,
.nav-item:focus-within > .nav-sub { opacity: 1; visibility: visible; transform: none; }
.nav-sub li { margin: 0; }
.nav-sub a { display: block; padding: 0.55rem 0.85rem; color: var(--ink); text-decoration: none; font-size: 0.93rem; border-radius: var(--radius-sm); transition: background 0.2s, padding 0.2s; }
.nav-sub a:hover { background: var(--cream); color: var(--navy-900); padding-left: 1.05rem; }

.nav-toggle {
  display: none;
  background: var(--cream);
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  cursor: pointer;
  color: var(--navy-900);
  font: inherit;
  font-weight: 600;
}

@media (max-width: 1100px) {
  .brand-sub { display: none; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: var(--gutter);
    right: var(--gutter);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 0.75rem;
    display: none;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }
  .nav[data-open="true"] { display: block; animation: drop 0.25s var(--ease); }
  .nav-list { flex-direction: column; }
  .nav-link { border-radius: var(--radius-sm); }
  .nav-sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0.4rem 0.75rem; min-width: 0; }
  .nav-sub::before { display: none; }
  /* Phones: no top bar (email/phone are in the footer), compact header that sticks from the top. */
  .topbar { display: none; }
  .site-header .container { min-height: 64px; }
  .brand img { width: 40px; }
  .brand-name { font-size: 1.25rem; }
  .nav { max-height: calc(100vh - 90px); }
}

/* ---------- Home banner ---------- */
.hero-wrap { padding: 18px var(--gutter) 0; }
.hero {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-900) url("/images/hero.webp") center / cover no-repeat;
  color: var(--white);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgb(6 22 44 / 0.94) 0%, rgb(11 37 69 / 0.84) 50%, rgb(11 37 69 / 0.5) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 460px;
  height: 520px;
  background: var(--watermark) center / contain no-repeat;
  opacity: 0.07;
  animation: float 14s ease-in-out infinite;
}
.hero .container { position: relative; z-index: 1; padding-top: clamp(4.5rem, 10vw, 8rem); padding-bottom: clamp(4.5rem, 10vw, 8rem); }
.hero h1 { color: var(--white); max-width: 22ch; animation: fadeUp 0.9s var(--ease) both; }
.hero p { color: #d6dde8; font-size: 1.16rem; max-width: 58ch; animation: fadeUp 0.9s 0.12s var(--ease) both; }
.hero .actions { animation: fadeUp 0.9s 0.24s var(--ease) both; }

/* ---------- Page title band (inner pages) ---------- */
.page-hero-wrap { padding: 18px var(--gutter) 0; }
.page-hero {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, var(--navy-700) 0%, var(--navy-900) 45%, var(--navy-950) 100%);
  color: var(--white);
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: 50%;
  width: 300px;
  height: 340px;
  transform: translateY(-50%);
  background: var(--watermark) center / contain no-repeat;
  opacity: 0.06;
}
.page-hero .container { position: relative; z-index: 1; padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.page-hero .container > * { animation: fadeUp 0.8s var(--ease) both; }
.page-hero .container > :nth-child(2) { animation-delay: 0.06s; }
.page-hero .container > :nth-child(3) { animation-delay: 0.12s; }
.page-hero .container > :nth-child(4) { animation-delay: 0.18s; }
.page-hero h1 { color: var(--white); margin-bottom: 0.35em; max-width: 24ch; }
.page-hero .lead { color: #c9d2df; margin: 0; }
.page-hero .subtitle { display: inline-block; color: var(--navy-950); background: var(--gold-300); font-weight: 700; font-size: 0.85rem; padding: 0.2rem 0.75rem; border-radius: 999px; margin: 0 0 0.9rem; }
.breadcrumbs { font-size: 0.85rem; margin-bottom: 1rem; color: #9fb0c7; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: 0.4rem; color: #6f84a3; }
.breadcrumbs a { color: #c9d2df; text-decoration: none; }
.breadcrumbs a:hover { color: var(--white); text-decoration: underline; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.section-grey { background: var(--cream); }
.section-navy {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 120% at 0% 0%, var(--navy-800) 0%, var(--navy-900) 50%, var(--navy-950) 100%);
  color: #d4dbe6;
}
.section-navy::after {
  content: "";
  position: absolute;
  left: -80px;
  bottom: -100px;
  width: 420px;
  height: 480px;
  background: var(--watermark) center / contain no-repeat;
  opacity: 0.05;
}
.section-navy .container { position: relative; z-index: 1; }
.section-navy h2,
.section-navy h3 { color: var(--white); }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split > img,
.split > div > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

/* Photo with a solid gold shape behind it */
.media { position: relative; isolation: isolate; }
.media::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 12% -18px -18px 12%;
  border-radius: var(--radius-lg);
  background: var(--gold-300);
}
.media.media-navy::before { background: var(--navy-900); inset: -18px 12% 12% -18px; }
@media (max-width: 640px) {
  .media::before { inset: 14% -10px -10px 14%; }
  .media.media-navy::before { inset: -10px 14% 14% -10px; }
  .hero::after { width: 260px; height: 300px; right: -70px; bottom: -60px; opacity: 0.05; }
  .page-hero::after { width: 180px; height: 210px; right: -60px; opacity: 0.05; }
}
.media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); transition: transform 0.8s var(--ease); }
.media:hover img { transform: scale(1.015); }

/* ---------- Cards ---------- */
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.9rem 1.75rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.section:not(.section-grey) .tile { background: var(--cream); box-shadow: none; }
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.section:not(.section-grey) .tile:hover { background: var(--white); }
.tile h3 { margin-bottom: 0.5rem; }
.tile h3 a { color: var(--navy-900); text-decoration: none; }
.tile h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card clickable */
.tile h3 a:hover { color: var(--navy-900); }
.tile p { color: var(--muted); font-size: 0.97rem; }
.tile .meta { font-size: 0.88rem; color: var(--gold-600); font-weight: 600; margin-bottom: 0.4rem; }
.tile .more { margin-top: auto; display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.93rem; color: var(--navy-700); text-decoration: none; }
.tile .more svg { transition: transform 0.3s var(--ease); }
.tile:hover .more { color: var(--gold-600); }
.tile:hover .more svg { transform: translateX(5px); }

.tile-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--navy-900);
  color: var(--gold-300);
  margin-bottom: 1.25rem;
  transition: background 0.35s, color 0.35s, transform 0.35s var(--ease);
}
.tile:hover .tile-icon { background: var(--gold-500); color: var(--white); transform: rotate(-6deg); }

/* Standards list as rounded rows */
.link-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 0.75rem; }
.link-list li {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 1rem;
  align-items: center;
  margin: 0;
  padding: 0.95rem 1.2rem;
  background: var(--cream);
  border-radius: var(--radius);
  transition: background 0.25s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.section-grey .link-list li { background: var(--white); }
.link-list li:hover { background: var(--white); box-shadow: var(--shadow-md); transform: translateX(4px); }
.link-list .abbr {
  grid-row: span 2;
  min-width: 64px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold-300);
  background: var(--navy-900);
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
}
.link-list a { text-decoration: none; font-weight: 600; color: var(--navy-900); }
.link-list a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.link-list span:not(.abbr) { font-size: 0.86rem; color: var(--muted); }

/* ---------- Content pages ---------- */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.75rem; }
.prose img { margin: 1.5rem 0 2rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }

.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 960px) { .content-layout { grid-template-columns: 1fr; } }
.sidebar { display: grid; gap: 1.25rem; position: sticky; top: 110px; }
@media (max-width: 960px) { .sidebar { position: static; } }
.side-panel { background: var(--cream); border-radius: var(--radius); padding: 1.5rem; }
.side-panel h3 { font-size: 1.05rem; margin-bottom: 0.8rem; }
.side-panel p { font-size: 0.95rem; color: var(--muted); }
.side-panel ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.15rem; }
.side-panel li { margin: 0; }
.side-panel li a { display: block; padding: 0.5rem 0.75rem; text-decoration: none; font-size: 0.94rem; color: var(--ink); border-radius: var(--radius-sm); transition: background 0.2s, color 0.2s; }
.side-panel li a:hover { background: var(--white); color: var(--navy-900); }
.side-panel li a[aria-current="page"] { background: var(--navy-900); color: var(--white); font-weight: 600; }
.side-panel.dark { background: var(--navy-900); color: #c9d2df; }
.side-panel.dark h3 { color: var(--white); }
.side-panel.dark p { color: #c9d2df; }
.side-panel.dark a { color: var(--gold-300); }

.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 1rem; }
.steps li { counter-increment: step; position: relative; margin: 0; padding: 1.25rem 1.4rem 1.25rem 4.6rem; background: var(--cream); border-radius: var(--radius); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.steps li:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); background: var(--white); }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--navy-900);
  color: var(--gold-300);
  font-family: var(--font-serif);
  font-weight: 700;
}
.steps strong { display: block; color: var(--navy-900); font-family: var(--font-serif); font-size: 1.12rem; }
.steps p { margin: 0.25rem 0 0; color: var(--muted); }

.note { background: var(--cream); border-radius: var(--radius); padding: 1.1rem 1.35rem; margin: 1.5rem 0; font-size: 0.97rem; }

.draft-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--grey-200);
  color: var(--muted);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  vertical-align: middle;
}
.page-hero .draft-label { background: rgb(255 255 255 / 0.16); color: var(--white); margin-bottom: 0.9rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.75rem; }
.faq details { background: var(--cream); border-radius: var(--radius); transition: background 0.25s, box-shadow 0.25s; }
.faq details[open] { background: var(--white); box-shadow: var(--shadow-md); }
.faq summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 1.15rem 3.5rem 1.15rem 1.4rem;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--navy-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  width: 1.9rem;
  height: 1.9rem;
  margin-top: -0.95rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-300);
  font-family: var(--font-sans);
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.3s var(--ease), background 0.3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--gold-500); color: var(--white); }
.faq .answer { padding: 0 1.4rem 1.2rem; color: var(--muted); max-width: 74ch; animation: fadeIn 0.4s var(--ease); }

/* ---------- Call-to-action panel ---------- */
.cta-section { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 7vw, 5rem); }
.cta-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(2rem, 5vw, 3.25rem);
  border-radius: var(--radius-lg);
  background: radial-gradient(120% 160% at 100% 100%, var(--navy-700) 0%, var(--navy-900) 50%, var(--navy-950) 100%);
  color: #d4dbe6;
}
.cta-panel::after {
  content: "";
  position: absolute;
  right: 4%;
  top: -40px;
  width: 220px;
  height: 250px;
  background: var(--watermark) center / contain no-repeat;
  opacity: 0.06;
}
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel h2 { color: var(--white); margin: 0 0 0.3rem; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.cta-panel p { margin: 0; max-width: 52ch; }

/* ---------- Statistics & client logos ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1.25rem; margin-bottom: 2.25rem; text-align: center; }
.stats > div { background: rgb(255 255 255 / 0.06); border-radius: var(--radius); padding: 2rem 1rem; transition: background 0.3s, transform 0.35s var(--ease); }
.stats > div:hover { background: rgb(255 255 255 / 0.1); transform: translateY(-4px); }
.stats strong { display: block; font-family: var(--font-serif); font-size: clamp(2.5rem, 5vw, 3.4rem); color: var(--gold-300); line-height: 1.1; margin-bottom: 0.3rem; font-variant-numeric: tabular-nums; }
.stats span { color: #c9d2df; }

.logo-row { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1rem; }
.logo-row li { margin: 0; display: grid; place-items: center; height: 120px; padding: 1.25rem; background: var(--cream); border-radius: var(--radius); transition: background 0.3s, transform 0.35s var(--ease), box-shadow 0.3s; }
.logo-row li:hover { background: var(--white); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.logo-row img { max-height: 70px; width: auto; filter: grayscale(1); opacity: 0.75; transition: filter 0.35s, opacity 0.35s, transform 0.35s var(--ease); }
.logo-row li:hover img { filter: none; opacity: 1; transform: scale(1.06); }

/* Client carousel: 4 logos per view on desktop, 3 on tablet, 2 on phones. */
.logo-carousel { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.75rem; }
.logo-carousel .logo-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3rem) / 4); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 0; }
.logo-carousel .logo-row::-webkit-scrollbar { display: none; }
.logo-carousel .logo-row li { scroll-snap-align: start; }
.logo-carousel-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--grey-200); border-radius: 50%; background: var(--white); color: var(--navy-900); cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.logo-carousel-btn:hover, .logo-carousel-btn:focus-visible { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.logo-carousel-btn.prev svg { transform: rotate(180deg); }
@media (max-width: 900px) { .logo-carousel .logo-row { grid-auto-columns: calc((100% - 2rem) / 3); } }
@media (max-width: 560px) { .logo-carousel { gap: 0.4rem; } .logo-carousel .logo-row { grid-auto-columns: calc((100% - 1rem) / 2); } .logo-carousel-btn { width: 36px; height: 36px; } }

/* ---------- Membership ---------- */
.membership { display: grid; grid-template-columns: 320px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.membership > img { width: 100%; background: var(--white); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-md); }
@media (max-width: 760px) { .membership { grid-template-columns: 1fr; } .membership > img { max-width: 320px; } }

/* ---------- Forms ---------- */
.contact-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-md); }
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-row-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .form-row, .form-row-3 { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 0.35rem; color: var(--navy-900); }
.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fbfaf7;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field textarea:focus { outline: none; background: var(--white); border-color: var(--gold-500); box-shadow: 0 0 0 4px rgb(184 137 45 / 0.18); }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.92rem; color: var(--muted); }
.consent input { margin-top: 0.3rem; accent-color: var(--navy-900); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 0.85rem 1.1rem; border-radius: var(--radius-sm); font-size: 0.95rem; animation: fadeIn 0.3s; }
.form-status.ok { background: #e6f3ea; color: #1d5b34; }
.form-status.err { background: #fbe9e9; color: #8a1f1f; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: start; margin: 0; }
.contact-list .icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgb(255 255 255 / 0.1); color: var(--gold-300); }
.contact-list .label { display: block; font-size: 0.8rem; font-weight: 600; color: #9fb0c7; }
.contact-list .value { color: var(--white); text-decoration: none; }
.contact-list a.value:hover { color: var(--gold-300); }
.side-panel .contact-list a.value { display: inline; padding: 0; background: none; color: var(--white); }
.side-panel .contact-list a.value:hover { color: var(--gold-300); background: none; }

/* News cards */
.news-card { padding-top: 0; overflow: hidden; }
.news-card-media { margin: 0 -1.75rem 1.25rem; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-900); }
.news-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.news-card:hover .news-card-media img { transform: scale(1.05); }
.news-card-placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(120% 120% at 100% 0%, var(--navy-700), var(--navy-950)); }
.news-card-placeholder img { width: 72px; height: auto; object-fit: contain; opacity: 0.85; }
.news-card:hover .news-card-placeholder img { transform: none; }
.news-head { max-width: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.news-head h2 { margin: 0; }
.article-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-top: 0 !important; }
.side-date { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 0.1rem; }
.side-panel li a[aria-current="page"] .side-date { color: #c9d2df; }

.news-meta { font-size: 0.86rem; color: var(--gold-600); font-weight: 600; margin-bottom: 0.4rem; }

/* ---------- 404 ---------- */
.not-found { position: relative; overflow: hidden; text-align: center; padding: clamp(4rem, 12vw, 8rem) 0; }
.not-found .code {
  font-family: var(--font-serif);
  font-size: clamp(6rem, 22vw, 12rem);
  line-height: 1;
  font-weight: 700;
  color: var(--navy-900);
  margin: 0 0 0.5rem;
  animation: fadeUp 0.9s var(--ease) both;
}
.not-found .code { display: flex; justify-content: center; align-items: center; gap: 0.06em; }
.not-found .code span { display: inline-block; }
.not-found h1 { animation: fadeUp 0.9s 0.1s var(--ease) both; }
.not-found .lead { margin: 0 auto 2rem; animation: fadeUp 0.9s 0.2s var(--ease) both; }
.not-found .actions { justify-content: center; animation: fadeUp 0.9s 0.3s var(--ease) both; }

/* ---------- Footer ---------- */
.footer-cta { padding: 0 var(--gutter) clamp(3rem, 7vw, 4.5rem); }
.footer-cta-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.5rem, 4vw, 3rem);
  background: var(--cream);
  border-radius: var(--radius-lg);
}
.footer-cta-inner h2 { margin: 0 0 0.3rem; }
.footer-cta-inner p { margin: 0; color: var(--muted); }
.footer-cta-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 0.8rem !important; }
.footer-cta-links a { display: inline-flex; align-items: center; gap: 0.45rem; text-decoration: none; font-weight: 500; }

.site-footer { background: var(--navy-950); color: #aab6c7; font-size: 0.93rem; }
.site-footer a { color: #aab6c7; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-menu { background: var(--navy-900); }
.footer-menu .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 0.5rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.footer-menu a { color: var(--white); font-weight: 600; padding: 0.35rem 0.9rem; border-radius: 999px; transition: background 0.2s; }
.footer-menu a:hover { background: rgb(255 255 255 / 0.1); }
.footer-main { display: grid; grid-template-columns: 1fr minmax(0, 470px); gap: 2.5rem; align-items: center; padding-top: 3rem; padding-bottom: 2.5rem; }
@media (max-width: 760px) { .footer-main { grid-template-columns: 1fr; } }
.footer-brand { display: grid; grid-template-columns: auto 1fr; gap: 0 1.25rem; align-items: center; }
.footer-name { font-family: var(--font-serif); font-size: 1.35rem; line-height: 1.25; color: var(--white); max-width: 22ch; margin-bottom: 0.6rem !important; }
.footer-brand img { width: 70px; grid-row: span 2; opacity: 0.95; }
.footer-brand p { margin: 0; }
.newsletter { background: rgb(255 255 255 / 0.05); border-radius: var(--radius); padding: 1.5rem; }
.newsletter h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 0.8rem; }
.newsletter-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.8rem; }
.newsletter-row input { flex: 1 1 200px; min-width: 0; padding: 0.75rem 1rem; border: 0; border-radius: 999px; font: inherit; }
.newsletter-row input:focus { outline: 3px solid var(--gold-300); }
.newsletter .consent { color: #aab6c7; font-size: 0.85rem; }
.newsletter .consent a { text-decoration: underline; }
.newsletter .form-status { margin-top: 0.8rem; }
.footer-bottom { background: rgb(0 0 0 / 0.18); }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; padding-top: 1.1rem; padding-bottom: 1.1rem; font-size: 0.83rem; color: #8592a6; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; }

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

/* ---------- Motion ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes drop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(-3deg); }
}

/* Scroll reveal (classes added by components/Reveal.tsx) */
[data-reveal="on"] .reveal:not(.is-visible) { opacity: 0; }
[data-reveal="on"] .reveal.is-visible:not(.reveal-instant) { animation: fadeUp 0.75s var(--reveal-delay, 0ms) var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Form message area (filled by assets/js/main.js): takes no space while empty. */
.js-status:empty { display: none; }

/* ---------- Accredited organisations search ---------- */
.org-search { display: grid; gap: 1.1rem; padding: clamp(1.25rem, 3.5vw, 2.25rem); background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.org-search-main input { padding: 0.9rem 1.15rem; font-size: 1.05rem; }
.org-search-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; align-items: end; }
.org-search-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 0.6rem; min-height: calc(1.5rem + 1.7em + 2px); }
.field select {
  width: 100%;
  height: calc(1.5rem + 1.7em + 2px); /* same height as .field input */
  padding: 0 0.95rem;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fbfaf7;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field select:focus { outline: none; background: var(--white); border-color: var(--gold-500); box-shadow: 0 0 0 4px rgb(184 137 45 / 0.18); }

.org-state { margin-top: 2rem; padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--cream); border-radius: var(--radius-lg); text-align: center; }
.org-state h2 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.org-state p { margin: 0 auto; max-width: 60ch; color: var(--muted); }

.org-count { font-size: 1.4rem; margin: 2.5rem 0 0.25rem; }
.org-range { margin: 0; color: var(--muted); font-size: 0.93rem; }
.org-results { list-style: none; display: grid; gap: 0.9rem; margin: 1.25rem 0 0; padding: 0; }
.org-result { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 1rem 2.5rem; margin: 0; padding: 1.4rem 1.6rem; background: var(--cream); border-radius: var(--radius); }
.org-result h3 { margin-bottom: 0.25rem; }
.org-result p { margin: 0; }
.org-result p.org-result-type { margin-bottom: 0.45rem; color: var(--gold-600); font-weight: 600; font-size: 0.92rem; overflow-wrap: anywhere; }
.org-result-address { white-space: pre-line; }
.org-result-address,
.org-result-place { color: var(--muted); font-size: 0.96rem; overflow-wrap: anywhere; }
.org-result-contact { display: grid; gap: 0.2rem; align-content: start; margin: 0; font-size: 0.96rem; }
.org-result-contact > div { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 0.5rem; }
.org-result-contact dt { color: var(--muted); }
.org-result-contact dd { margin: 0; overflow-wrap: anywhere; }

.status-label { display: inline-block; padding: 0.15rem 0.7rem; border-radius: 999px; background: var(--gold-300); color: var(--navy-950); font-family: var(--font-sans); font-size: 0.78rem; font-weight: 700; line-height: 1.5; vertical-align: middle; }

.pager { margin-top: 1.75rem; }
.pager ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin: 0; padding: 0; }
.pager li { margin: 0; }
.pager a { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 0.9rem; border-radius: 999px; background: var(--cream); color: var(--navy-900); font-weight: 600; font-size: 0.93rem; text-decoration: none; transition: background 0.2s, color 0.2s; }
.pager a:hover { background: #efe8da; color: var(--navy-900); }
.pager a[aria-current="page"] { background: var(--navy-900); color: var(--white); }

@media (max-width: 860px) {
  .org-search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .org-result { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .org-search-grid { grid-template-columns: minmax(0, 1fr); }
  .org-search-actions { justify-content: stretch; }
  .org-search-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- Certificate status page ---------- */
.cert-status { max-width: 720px; text-align: center; }
.cert-status .tile-icon { margin: 0 auto 1.25rem; }
.cert-status h1 { margin-top: 0.9rem; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.cert-status .lead { margin-left: auto; margin-right: auto; }
.cert-status p:last-child { margin-bottom: 0; color: var(--muted); }
