/* CSRTA — Confined Space and Rescue Trade Association
   Brand colours carried over from the original site:
   headings navy #003366 (h1, h3–h6) and charcoal #333333 (h2), body text black,
   links charcoal underlined, buttons navy, nav dark green #253A20, logo green #044C1B. */

@font-face { font-family: "Outfit"; src: url("/assets/fonts/outfit-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-latin-600-normal.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }

:root {
  --navy: #003366;
  --navy-deep: #00264d;
  --navy-ink: #001a33;
  --ink: #333333;
  --text: #000000;
  --muted: #4a5563;
  --green: #044c1b;
  --nav: #253a20;
  --red: #f70b0b;
  --line: #d9dee5;
  --line-soft: #e8ecf1;
  --grey: #f3f5f7;
  --grey-2: #e6e6e6;
  --white: #ffffff;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 1px 2px rgba(0, 26, 51, .06), 0 4px 16px rgba(0, 26, 51, .06);
  --shadow-lift: 0 2px 4px rgba(0, 26, 51, .08), 0 12px 32px rgba(0, 26, 51, .12);
  --wrap: 1200px;
  --measure: 72ch;
  --font-head: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "Poppins", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--white); color: var(--text); font: 400 1rem/1.75 var(--font-body); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.fill { fill: currentColor; stroke: none; }
.sr, .skip:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--white); color: var(--navy); padding: 10px 16px; border-radius: var(--radius); box-shadow: var(--shadow-lift); }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* ---------- type ---------- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; color: var(--navy); text-wrap: balance; }
h2 { color: var(--ink); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); }
h3 { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.6rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 1rem; }
p { margin: 0 0 1.1em; }
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); text-decoration-thickness: 2px; }
strong { font-weight: 600; }
hr { border: 0; height: 1px; background: var(--line); margin: 2.5rem 0; }

.c-navy { color: var(--navy); }
.c-ink { color: var(--ink); }
.c-black { color: var(--text); }
.c-white { color: var(--white); }
.c-red { color: var(--red); }
.c-green { color: var(--green); }

.prose { max-width: var(--measure); }
.prose > :last-child { margin-bottom: 0; }
.prose + .prose { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.6em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 0; margin: 0 0 1.25em; list-style: none; }
.prose li { position: relative; padding-left: 1.6em; margin: .35em 0; }
.prose ul > li::before { content: ""; position: absolute; left: .2em; top: .72em; width: .45em; height: .45em; background: var(--navy); border-radius: 1px; }
.prose ol { counter-reset: n; }
.prose ol > li { counter-increment: n; }
.prose ol > li::before { content: counter(n) "."; position: absolute; left: 0; color: var(--navy); font-weight: 600; font-family: var(--font-head); }
.prose li ul, .prose li ol { margin: .4em 0 .4em; }
.prose li ul > li::before { background: transparent; border: 1.5px solid var(--navy); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: .6em .8em; text-align: left; vertical-align: top; }
.prose th { background: var(--grey); font-family: var(--font-head); color: var(--navy); }
.prose blockquote { margin: 1.5em 0; padding: .4em 0 .4em 1.2em; border-left: 3px solid var(--navy); color: var(--ink); }
.prose a.doc { display: inline-flex; gap: .45em; align-items: baseline; }
.prose a.doc::before { content: "PDF"; font: 600 .62rem/1 var(--font-body); letter-spacing: .06em; color: var(--white); background: var(--navy); padding: .3em .45em; border-radius: 3px; position: relative; top: -.15em; flex: none; }
.prose li:has(> a.doc:only-child)::before, .prose li:has(> strong > a.doc:only-child)::before { display: none; }
.prose li:has(> a.doc:only-child), .prose li:has(> strong > a.doc:only-child) { padding-left: 0; }

/* ---------- top bar + header ---------- */
.topbar { background: var(--navy-ink); color: #c9d6e3; font-size: .8rem; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar-tag { margin: 0; letter-spacing: .04em; }
.topbar-links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.topbar a { color: #e6edf4; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: var(--white); text-decoration: underline; }
.topbar svg { font-size: 1rem; opacity: .85; }
@media (max-width: 760px) { .topbar-tag { display: none; } .topbar-links { width: 100%; justify-content: space-between; gap: 10px; } .sr-md { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line-soft); }
.header-in { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand { flex: none; display: block; }
.brand img { width: 200px; height: auto; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav-desktop-list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-desktop-list a { display: block; padding: 8px 9px; color: var(--nav); font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; text-decoration: none; position: relative; white-space: nowrap; }
.nav-desktop-list a::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 2px; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.nav-desktop-list a:hover::after, .nav-desktop-list a[aria-current]::after { transform: scaleX(1); }
.nav-desktop-list a[aria-current] { color: var(--green); }
.nav-toggle { display: none; }
.nav-index { display: none; }

/* ---------- mobile menu: a contents page ---------- */
@media (max-width: 1180px) {
  .header-in { min-height: 72px; }
  .brand img { width: 168px; }
  .site-header { backdrop-filter: none; background: var(--white); }

  .nav-toggle { display: grid; place-items: center; margin-left: auto; width: 46px; height: 46px; padding: 0; border: 1.5px solid var(--navy); border-radius: 5px; background: var(--white); color: var(--navy); cursor: pointer; position: relative; z-index: 2; transition: background .2s, color .2s; }
  .nav-toggle[aria-expanded="true"] { background: var(--navy); color: var(--white); }
  .bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform .25s ease, background .2s, width .25s; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -6px; } .bars::after { top: 6px; width: 13px; }
  .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { width: 20px; transform: translateY(-6px) rotate(-45deg); }

  .nav-desktop-list, .site-nav > .nav-cta { display: none; }
  .site-nav {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; top: var(--nav-top, 110px); z-index: 1;
    overflow-y: auto; overscroll-behavior: contain; background: var(--white);
    border-top: 1px solid var(--line);
    opacity: 0; transform: translateY(-10px); visibility: hidden;
    transition: opacity .22s ease, transform .3s ease, visibility 0s linear .3s;
  }
  .site-nav.open { opacity: 1; transform: none; visibility: visible; transition: opacity .22s ease, transform .3s ease, visibility 0s; }

  /* ruled-paper margin line */
  .nav-index { display: block; position: relative; min-height: 100%; padding: 22px 22px calc(26px + env(safe-area-inset-bottom)) 38px; }
  .nav-index::before { content: ""; position: absolute; top: 0; bottom: 0; left: 22px; width: 1px; background: rgba(4, 76, 27, .35); }

  .ix-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 18px; padding-bottom: 10px; border-bottom: 2px solid var(--navy); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
  .ix-head span:first-child { font: 700 1.35rem/1 var(--font-head); letter-spacing: -.01em; text-transform: none; color: var(--navy); }
  .ix-head span:last-child { text-align: right; max-width: 15em; line-height: 1.4; }

  .ix-group { margin: 0 0 18px; }
  .ix-title { display: flex; align-items: baseline; gap: 10px; margin: 0 0 4px; font: 600 .72rem/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
  .ix-title span { font: 700 .95rem/1 var(--font-head); letter-spacing: 0; }
  .ix-group ol { list-style: none; margin: 0; padding: 0; }
  .ix-group a { display: flex; align-items: baseline; gap: 10px; padding: 11px 0; color: var(--navy); text-decoration: none; font: 600 1.18rem/1.25 var(--font-head); }
  .ix-label { flex: none; max-width: 75%; }
  .ix-lead { flex: 1; min-width: 16px; border-bottom: 2px dotted #b7c3d0; transform: translateY(-4px) scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
  .ix-no { flex: none; font: 500 .8rem/1 var(--font-body); color: var(--muted); font-variant-numeric: tabular-nums; }
  .site-nav.open .ix-lead { transform: translateY(-4px) scaleX(1); }
  .site-nav.open .ix-group li:nth-child(1) .ix-lead { transition-delay: .05s; } .site-nav.open .ix-group li:nth-child(2) .ix-lead { transition-delay: .1s; }
  .site-nav.open .ix-group li:nth-child(3) .ix-lead { transition-delay: .15s; } .site-nav.open .ix-group li:nth-child(4) .ix-lead { transition-delay: .2s; }
  .ix-group a:hover .ix-lead, .ix-group a:focus-visible .ix-lead { border-bottom-color: var(--navy); }
  .ix-group a[aria-current] .ix-label { box-shadow: inset 0 -.32em 0 rgba(242, 201, 76, .55); }
  .ix-group a[aria-current] .ix-no { color: var(--navy); font-weight: 600; }

  /* incident reporting carries a hazard-tape marker */
  .ix-urgent a { position: relative; }
  .ix-urgent a::before { content: ""; position: absolute; left: -16px; top: 10px; bottom: 10px; width: 6px; border-radius: 1px; background: repeating-linear-gradient(-45deg, #f2c94c 0 5px, var(--navy) 5px 10px); }

  .ix-res { margin: 6px 0 20px; padding: 18px 18px 16px; background: var(--navy); border-radius: var(--radius-lg); color: var(--white); }
  .ix-res-head { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; font: 700 1.25rem/1.2 var(--font-head); }
  .ix-res-no { display: grid; place-items: center; width: 28px; height: 28px; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 5px; font: 700 .85rem/1 var(--font-head); }
  .ix-res-head svg { margin-left: auto; font-size: 1.2rem; transition: transform .2s; }
  .ix-res-head:hover svg { transform: translateX(3px); }
  /* the global a:hover (navy) outranks .ix-res-head and made the heading vanish on the navy panel */
  .ix-res-head:hover, .ix-res-head:focus-visible, .ix-res-head[aria-current] { color: var(--white); }
  .ix-res-head:hover span:not(.ix-res-no), .ix-res-head[aria-current] span:not(.ix-res-no) { text-decoration: underline; text-decoration-color: #f2c94c; text-decoration-thickness: 2px; text-underline-offset: 5px; }
  .ix-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(255, 255, 255, .18); }
  .ix-chips a { display: inline-block; padding: 7px 12px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; color: var(--white); text-decoration: none; font-size: .8rem; line-height: 1.2; transition: background .15s, color .15s; }
  .ix-chips a:hover, .ix-chips a[aria-current] { background: var(--white); color: var(--navy); }

  .ix-foot { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
  .ix-foot a { color: var(--ink); }

  html.nav-open { overflow: hidden; }
}
/* tablet: the contents sheet flies out from the right at two-thirds width over a dimmed page */
@media (min-width: 768px) and (max-width: 1180px) {
  .site-nav { left: auto; width: 66%; border-top: 0; border-left: 1px solid var(--line); box-shadow: -24px 0 48px rgba(0, 26, 51, .18); transform: translateX(32px); }
  .site-nav.open { transform: none; }
  html.nav-open body::after { content: ""; position: fixed; left: 0; right: 0; bottom: 0; top: var(--nav-top, 110px); z-index: 40; background: rgba(0, 26, 51, .38); animation: nav-dim .25s ease; }
}
@keyframes nav-dim { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 1180px) and (prefers-reduced-motion: reduce) {
  .site-nav, .site-nav.open { transform: none; transition: none; }
  html.nav-open body::after { animation: none; }
  .ix-lead, .site-nav.open .ix-lead { transform: translateY(-4px); transition: none; }
}

/* ---------- buttons ---------- */
.actions { margin: 1.25em 0; display: flex; flex-wrap: wrap; gap: 12px; }
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px; border-radius: 5px; border: 1.5px solid var(--navy); background: var(--navy); color: var(--white); font: 500 .9rem/1.2 var(--font-body); letter-spacing: .02em; text-decoration: none; transition: background .15s, color .15s, box-shadow .15s, transform .15s; }
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: var(--white); box-shadow: var(--shadow); transform: translateY(-1px); text-decoration: none; }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover, .btn-outline[aria-current] { background: var(--navy); color: var(--white); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: .8rem; }
.btn-light { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn-light:hover { background: #e9eff6; border-color: #e9eff6; color: var(--navy); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: var(--white); }
.btn-doc::before { content: ""; width: 14px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 3v12m0 0l-5-5m5 5l5-5M4 21h16'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 3v12m0 0l-5-5m5 5l5-5M4 21h16'/%3E%3C/svg%3E") center/contain no-repeat; }
.btn-back { display: inline-flex; align-items: center; gap: 6px; color: var(--white); font-size: .85rem; text-decoration: none; opacity: .9; }

/* ---------- hero ---------- */
.hero { position: relative; color: var(--white); background: var(--navy-ink); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(0, 26, 51, .95) 0%, rgba(0, 51, 102, .88) 45%, rgba(0, 51, 102, .55) 100%); }
.hero-in { padding: 44px 24px 56px; }
.hero h1 { color: var(--white); font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); max-width: 22ch; margin: 0; }
.hero .eyebrow { margin: 0 0 .6rem; font: 600 .78rem/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .14em; color: #b9cde2; }
.hero-meta { margin: 1rem 0 0; color: #d3e0ec; font-size: .9rem; }
.hero-lead { margin: 1.4rem 0 0; max-width: 62ch; color: #e8eef5; font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 2rem 0 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; padding: 0; margin: 0 0 2rem; font-size: .8rem; color: #b9cde2; }
.crumbs li + li::before { content: "/"; margin: 0 .55em; opacity: .55; }
.crumbs a { color: #e6edf4; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: var(--white); }
.hero-home .hero-in { padding: 96px 24px 108px; }
.hero-home h1 { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 4.6rem); max-width: none; }
.h1-pre { display: block; font-size: .42em; font-weight: 500; letter-spacing: .02em; color: #c7d7e8; margin-bottom: .2em; }
@media (max-width: 600px) { .hero-in { padding: 28px 16px 40px; } .hero-home .hero-in { padding: 64px 16px 72px; } }

/* ---------- sections ---------- */
.block { padding: clamp(48px, 6vw, 80px) 0; }
.band-grey { background: var(--grey); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.band-grey + .band-grey { border-top: 0; padding-top: 0; }
.band-dark { background: var(--ink); color: var(--white); }
.band-navy { background: var(--navy); color: var(--white); }
.band-dark h2, .band-dark h3, .band-navy h2, .band-navy h3 { color: var(--white); }
.section-title { margin-bottom: 1.5rem; }

.panel { border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px); margin: 1.5rem 0; }
.panel-grey { background: var(--grey); border: 1px solid var(--line-soft); }
.panel-navy { background: var(--navy); color: var(--white); }
.panel-dark { background: var(--ink); color: var(--white); }
.panel-navy h2, .panel-navy h3, .panel-navy h4, .panel-dark h2, .panel-dark h3 { color: var(--white); }
.panel-navy a:not(.btn), .panel-dark a:not(.btn):not(.post-card a), .band-navy a:not(.btn), .band-dark .prose a:not(.btn) { color: var(--white); }

/* ---------- rows / grids ---------- */
.row { display: grid; gap: clamp(24px, 4vw, 56px); align-items: start; margin: 0 0 2rem; }
.row:last-child { margin-bottom: 0; }
.row > .col { min-width: 0; }
.r-1-1 { grid-template-columns: 1fr 1fr; }
.r-1-2 { grid-template-columns: 1fr 2fr; }
.r-2-1 { grid-template-columns: 2fr 1fr; }
.r-1-3 { grid-template-columns: 1fr 3fr; }
.r-3-1 { grid-template-columns: 3fr 1fr; }
.r-2-3 { grid-template-columns: 2fr 3fr; }
.r-3-2 { grid-template-columns: 3fr 2fr; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.row-icon { grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.row .prose { max-width: none; }
.col-media { align-self: start; }
@media (max-width: 860px) {
  .row:not(.row-icon):not(.media-strip) { grid-template-columns: 1fr; }
}
.media-strip { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.media-strip .col { flex: 0 0 auto; }
.media-strip .media-badge img { width: 120px; }

/* Rows where text sits beside a picture read best with a divider between repeated entries (partners, people, centres). */
.row.r-1-3, .row.r-3-1, .row.r-2-1, .row.r-1-2 { padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.row.r-1-3:last-child, .row.r-3-1:last-child, .row.r-2-1:last-child, .row.r-1-2:last-child { border-bottom: 0; padding-bottom: 0; }

/* ---------- media ---------- */
.media { margin: 0 0 1rem; }
.media img { border-radius: var(--radius); }
.media-badge img { width: 100%; max-width: 320px; margin: 0 auto; border-radius: 0; filter: drop-shadow(0 6px 16px rgba(0, 26, 51, .14)); }
.media-strip .media-badge { margin: 0; }
.media-logo { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 18px; display: flex; align-items: center; justify-content: center; aspect-ratio: 8 / 3; }
.media-logo img { max-height: 100%; width: auto; object-fit: contain; }
.media-portrait img { width: 100%; max-width: 360px; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.media-photo img { width: 100%; border-radius: var(--radius-lg); }

/* ---------- cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin: 0 0 1.5rem; }
.row:has(> .col > a.card) { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-bottom: 20px; }
.card { display: flex; flex-direction: column; gap: 10px; position: relative; padding: 24px 56px 24px 24px; min-height: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; color: var(--navy); transition: border-color .15s, box-shadow .15s, transform .15s; }
.card:hover { border-color: var(--navy); box-shadow: var(--shadow-lift); transform: translateY(-2px); color: var(--navy); }
.card-title { font: 700 1.2rem/1.25 var(--font-head); }
.card-arrow { position: absolute; right: 20px; bottom: 24px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--grey); color: var(--navy); transition: background .15s, color .15s; }
.card:hover .card-arrow { background: var(--navy); color: var(--white); }
.card-media { padding: 0 0 22px; }
.card-media .card-title { padding: 0 56px 0 22px; }
.card-img { display: block; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--grey); aspect-ratio: 580 / 295; border-bottom: 1px solid var(--line-soft); }
.card-img { background: var(--white); }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.card-media .card-arrow { bottom: 18px; }

/* ---------- module list rows (title + button inside grey bars) ---------- */
.panel-grey .row.r-3-1, .panel-grey .row.r-2-1 { border: 0; padding: 0; margin: 0; align-items: center; }
.panel-grey:has(> .row) { padding: 22px 26px; margin: 0 0 14px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--navy); }
.panel-grey:has(> .row) .prose h3, .panel-grey:has(> .row) .prose p { margin: 0; }
.panel-grey:has(> .row) .actions { margin: 0; justify-content: flex-end; }
@media (max-width: 860px) { .panel-grey:has(> .row) .actions { justify-content: flex-start; } }

/* ---------- icon rows (tests list) ---------- */
.row-icon { padding: 16px 20px; margin: 0 0 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color .15s, box-shadow .15s; }
.row-icon:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.row-icon h3 { margin: 0; font-size: 1.1rem; }
.row-icon h3 a { color: var(--navy); text-decoration: none; }
.row-icon h3 a::after { content: ""; position: absolute; inset: 0; }
.row-icon { position: relative; }
.tick { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--white); }

/* ---------- accordion ---------- */
.accordion { border-top: 1px solid var(--line); max-width: 900px; }
.acc { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 4px; font: 600 1.08rem/1.35 var(--font-head); color: var(--navy); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--grey) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003366' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/16px no-repeat; transition: transform .2s, background-color .2s; }
.acc[open] summary::after { transform: rotate(45deg); background-color: #dfe7ef; }
.acc summary:hover { color: var(--navy-deep); }
.acc-body { padding: 0 4px 24px; }

/* ---------- embeds (Microsoft Forms) ---------- */
.embed { margin: 1.5rem 0 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); box-shadow: var(--shadow); }
.embed iframe { display: block; width: 100%; height: 1000px; border: 0; }
.embed-h-900 iframe, iframe.embed-h-900 { height: 900px; } iframe.embed-h-1000 { height: 1000px; } iframe.embed-h-1100 { height: 1100px; }
iframe.embed-h-1200 { height: 1200px; } iframe.embed-h-1300 { height: 1300px; } iframe.embed-h-1400 { height: 1400px; } iframe.embed-h-1500 { height: 1500px; } iframe.embed-h-1600 { height: 1600px; }
@media (max-width: 600px) { .embed iframe { height: 1300px !important; } }
.embed-fallback { margin: 0; padding: 12px 18px; font-size: .85rem; background: var(--grey); border-top: 1px solid var(--line); }

/* ---------- posts ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.post-card a { display: flex; flex-direction: column; height: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--text); transition: box-shadow .15s, transform .15s, border-color .15s; }
.post-card a:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); border-color: var(--navy); color: var(--text); }
.post-card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--grey); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card a:hover .post-card-img img { transform: scale(1.03); }
.post-card-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; }
.post-meta { font-size: .78rem; color: var(--muted); letter-spacing: .02em; }
.post-card-title { font: 700 1.15rem/1.3 var(--font-head); color: var(--navy); }
.post-card-excerpt { font-size: .9rem; color: var(--ink); line-height: 1.6; }
.band-dark .post-card a { border-color: transparent; }
.band-dark .actions, .panel-dark .actions { margin-top: 2rem; }

.article-wrap { display: flex; justify-content: center; }
.article { width: 100%; max-width: 780px; }
.article-body .prose { max-width: none; }
.article-body { font-size: 1.02rem; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-bottom: 24px; margin-bottom: 32px; border-bottom: 1px solid var(--line); font-size: .85rem; color: var(--navy); font-weight: 500; }
.share span { margin-right: 6px; }
.share a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); color: var(--navy); font-size: 1rem; transition: background .15s, color .15s, border-color .15s; }
.share a:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.pager a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--navy); text-decoration: none; font: 600 1rem/1.35 var(--font-head); }
.pager a:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.pager span { display: block; font: 500 .72rem/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; }
.pager-next { text-align: right; }
@media (max-width: 600px) { .pager { grid-template-columns: 1fr; } .pager-next { text-align: left; } }

/* ---------- home ---------- */
.pathway-row { padding: clamp(28px, 4vw, 44px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); align-items: center; }
.pathway-row .media-badge img { max-width: 300px; }
.band-grey .pathway-row { border-color: var(--line-soft); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #d6e1ec; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.site-footer h2 { font: 600 .78rem/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .14em; color: var(--white); margin: 0 0 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 10px; }
.site-footer a { color: #d6e1ec; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-logo { font: 700 2rem/1 var(--font-head); color: var(--white); margin: 0 0 16px; letter-spacing: .01em; }
.footer-brand p { max-width: 36ch; line-height: 1.7; }
.footer-contact a, .footer-contact span { display: inline-flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { margin-top: .3em; opacity: .8; }
.footer-report { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 9px 14px; border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--radius); color: var(--white) !important; }
.footer-report:hover { background: rgba(255, 255, 255, .1); text-decoration: none !important; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: .8rem; color: #b9cde2; }
.footer-base p { margin: 0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .topbar, .site-header, .site-footer, .share, .pager, .hero-bg { display: none !important; } .hero { color: #000; background: none; } .hero h1 { color: var(--navy); } }

/* pathway badges stay in view beside long copy */
@media (min-width: 861px) { .pathway-row .col-media { position: sticky; top: 120px; } }
.media-pair { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.media-pair .media { flex: 1 1 140px; max-width: 220px; margin: 0; }

/* rhythm between stacked blocks */
.wrap > * + .row, .wrap > * + .accordion, .wrap > * + .card-grid, .wrap > * + .post-grid, .wrap > .prose + .panel,
.wrap > .row + .prose, .wrap > .accordion + .prose, .wrap > .card-grid + .prose, .wrap > .row + .row { margin-top: 2.5rem; }
.wrap > .row-icon + .row-icon, .wrap > .row:has(> .col > a.card) + .row:has(> .col > a.card) { margin-top: 0; }
/* badges that sit inside a column of text (e.g. "modules available") stay small, as on the original */
.col:not(.col-media) .media-badge { margin: .25rem 0 1rem; }
.col:not(.col-media) .media-badge img { max-width: 120px; margin: 0; }
.col:not(.col-media) .media-strip .media-badge img, .col:not(.col-media) .row .media-badge img { max-width: 110px; }

@media (max-width: 600px) { .col:not(.col-media) .media-strip .media-badge img { max-width: 84px; } }
