/* Community Matters corporate website — stylesheet
   Palette shared with cmapprenticeships.co.uk; structure and type deliberately different. */
:root {
  --navy: #14213d;
  --navy-2: #1f2f55;
  --red: #c00021;
  --red-dark: #96001a;
  --teal: #0f7c8c;
  --teal-dark: #0a5f6c;
  --ink: #1f2933;
  --muted: #5b6673;
  --rule: #c9d0da;
  --rule-strong: #14213d;
  --grey: #f2f4f7;
  --white: #fff;
  --serif: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; /* headings: same family as cmapprenticeships.co.uk */
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1200px;
  --gutter: clamp(18px, 4vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 800; color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height: 1.08; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; font-family: var(--sans); font-weight: 800; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: .35em; }
.lead { font-size: 1.2rem; line-height: 1.55; max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: .5rem 1rem; z-index: 999; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Buttons: rectangular, two weights only */
.btn { display: inline-block; font-family: var(--sans); font-weight: 700; font-size: .95rem; padding: .8rem 1.4rem; border: 1.5px solid var(--navy); background: var(--navy); color: #fff; text-decoration: none; line-height: 1.2; cursor: pointer; }
.btn:hover { background: var(--navy-2); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-white { background: #fff; color: var(--navy); border-color: #fff; }
.btn-white:hover { background: var(--grey); color: var(--navy); }
.btn-group { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.75rem; }
.link { font-weight: 700; color: var(--red); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.link:hover { color: var(--red-dark); }

/* Top strip and header */
.topbar { background: var(--navy); color: #fff; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; }
.topbar a { color: #fff; text-decoration: none; opacity: .9; }
.topbar a:hover { opacity: 1; text-decoration: underline; }
.topbar nav { display: flex; gap: 1.5rem; }
.site-header { background: #fff; border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 84px; }
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--navy); }
.brand img { width: 46px; height: 46px; }
.brand b { font-family: var(--sans); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.01em; display: block; line-height: 1.1; }
.brand small { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; letter-spacing: .01em; margin-top: .15rem; }
.main-nav { display: flex; align-items: stretch; gap: 1.6rem; }
.main-nav > a, .main-nav .has-menu > a { display: inline-flex; align-items: center; height: 84px; line-height: 1; color: var(--navy); font-weight: 700; font-size: .95rem; text-decoration: none; padding: 0; border-bottom: 2px solid transparent; box-sizing: border-box; }
.main-nav > a:hover, .main-nav .has-menu:hover > a, .main-nav > a[aria-current], .main-nav .has-menu > a[aria-current] { border-bottom-color: var(--red); }
.has-menu { position: relative; display: flex; }
.has-menu .menu { display: none; position: absolute; top: 100%; left: -1rem; background: #fff; border: 1px solid var(--rule); border-top: 3px solid var(--red); min-width: 320px; padding: .5rem 0; z-index: 60; }
.has-menu:hover .menu, .has-menu:focus-within .menu { display: block; }
.has-menu .menu a { display: block; padding: .6rem 1.1rem; color: var(--ink); text-decoration: none; font-size: .93rem; line-height: 1.3; }
.has-menu .menu a:hover { background: var(--grey); color: var(--navy); }
.has-menu .menu a small { display: block; color: var(--muted); font-size: .8rem; margin-top: .1rem; }
.has-menu .menu a.all { border-top: 1px solid var(--rule); margin-top: .4rem; padding-top: .8rem; font-weight: 700; color: var(--red); }
.header-cta { display: flex; align-items: center; gap: 1rem; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--navy); padding: .55rem .9rem; font: inherit; font-weight: 700; color: var(--navy); cursor: pointer; }
.mobile-only { display: none; }
@media (max-width: 1040px) {
  .main-nav { gap: 1.1rem; } .main-nav > a, .main-nav .has-menu > a { font-size: .88rem; }
}
@media (max-width: 900px) {
  .topbar nav span { display: none; }
  .site-header .container { min-height: 68px; }
  .brand img { width: 38px; height: 38px; } .brand b { font-size: 1.15rem; } .brand small { display: none; }
  .nav-toggle { display: inline-block; }
  .header-cta .btn { display: none; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--rule); flex-direction: column; align-items: stretch; gap: 0; max-height: var(--nav-max, 80vh); overflow: auto; }
  body.nav-open .main-nav { display: flex; }
  .main-nav > a, .main-nav .has-menu > a { display: block; height: auto; line-height: 1.4; padding: .9rem var(--gutter); border-bottom: 1px solid var(--rule); border-left: 4px solid transparent; }
  .has-menu { display: block; }
  .main-nav > a[aria-current], .main-nav .has-menu > a[aria-current] { border-left-color: var(--red); border-bottom-color: var(--rule); }
  .has-menu .menu { display: none; position: static; border: 0; border-bottom: 1px solid var(--rule); background: var(--grey); min-width: 0; padding: .25rem 0; }
  .has-menu.sub-open .menu { display: block; }
  .has-menu:hover .menu { display: none; } .has-menu.sub-open:hover .menu { display: block; }
  .has-menu .menu a { padding-left: calc(var(--gutter) + 1rem); }
  .mobile-only { display: block; padding: 1rem var(--gutter); }
}

/* Hero: white, left-aligned statement with framed photograph */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--rule); }
.hero .container { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { max-width: 16ch; }
.hero .mark { display: block; width: 56px; height: 5px; background: var(--red); margin-bottom: 1.5rem; }
.hero .crumb { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.hero .crumb a { color: var(--muted); }
.hero figure { margin: 0; position: relative; }
.hero figure img { aspect-ratio: 4 / 3.4; object-fit: cover; object-position: center; width: 100%; }

/* Home hero art: the roundel at the centre of expanding rings, bleeding off the right edge */
.hero.home { overflow: hidden; }
.hero.home .container { align-items: center; }
.hero-art { display: grid; place-items: center; }
.hero-art img { width: min(100%, 400px); height: auto; }
@media (max-width: 860px) { .hero-art img { width: 220px; margin-top: 1rem; } }
.hero.plain .container { grid-template-columns: 1fr; }
.hero.plain h1 { max-width: 22ch; }
@media (max-width: 860px) { .hero .container { grid-template-columns: 1fr; } .hero figure { max-width: 420px; } .hero figure img { aspect-ratio: 4 / 3; } }

/* Facts strip under the hero */
.factbar { background: var(--navy); color: #fff; }
.factbar .container { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.factbar div { padding: 1.4rem 1.5rem 1.4rem 0; border-right: 1px solid rgba(255,255,255,.2); }
.factbar div + div { padding-left: 1.5rem; }
.factbar div:last-child { border-right: 0; }
.factbar b { display: block; font-family: var(--sans); font-size: 2rem; font-weight: 600; line-height: 1; }
.factbar span { display: block; font-size: .88rem; opacity: .85; margin-top: .4rem; }
@media (max-width: 860px) { .factbar .container { grid-template-columns: repeat(2, minmax(0, 1fr)); } .factbar div:nth-child(2) { border-right: 0; } .factbar div:nth-child(3) { padding-left: 0; border-top: 1px solid rgba(255,255,255,.2); } .factbar div:nth-child(4) { border-top: 1px solid rgba(255,255,255,.2); } }
@media (max-width: 480px) { .factbar .container { grid-template-columns: 1fr; } .factbar div { border-right: 0; padding-left: 0 !important; border-top: 1px solid rgba(255,255,255,.2); } .factbar div:first-child { border-top: 0; } }

/* Sections on the asymmetric grid: heading left, content right */
.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section + .section, .section + .band { border-top: 1px solid var(--rule); }
.band { background: var(--grey); padding: clamp(3rem, 6vw, 5.5rem) 0; }
.band-navy { background: var(--navy); color: #fff; padding: clamp(3rem, 6vw, 5.5rem) 0; }
.band-navy h2, .band-navy h3 { color: #fff; }
.band-navy a { color: #fff; }
.row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 4vw, 4rem); }
.row > .side h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); position: sticky; top: 100px; }
.row > .side p { color: var(--muted); max-width: 32ch; }
.band-navy .row > .side p { color: rgba(255,255,255,.8); }
@media (max-width: 860px) { .row { grid-template-columns: 1fr; } .row > .side h2 { position: static; } }

/* Lists of things as rows with rules */
.rows { border-top: 1px solid var(--rule-strong); }
.rows > * { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem 2.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); align-items: start; }
.rows h3 { margin: 0; font-size: 1.25rem; }
.rows h3 small { display: block; font-family: var(--sans); font-weight: 600; font-size: .85rem; color: var(--muted); margin-top: .3rem; }
.rows p { margin: 0; color: var(--ink); }
.rows .link { display: inline-block; margin-top: .5rem; }
a.rows-item:hover h3 { color: var(--red); }
@media (max-width: 640px) { .rows > * { grid-template-columns: 1fr; gap: .4rem; } }

/* Three strands on the home page: columns divided by rules, no cards */
.strands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong); }
.strands { column-gap: 2.5rem; }
.strands > a { display: block; padding: 2rem 0 2.5rem; text-decoration: none; color: var(--ink); position: relative; }
.strands > a + a::before { content: ""; position: absolute; left: -1.25rem; top: 0; bottom: 0; width: 1px; background: var(--rule); }
.strands img { aspect-ratio: 3 / 2; height: auto; object-fit: cover; object-position: center; width: 100%; display: block; margin-bottom: 1.25rem; filter: saturate(.85); }
.strands h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.strands p { color: var(--ink); min-height: 0; }
.strands .link { margin-top: .25rem; }
.strands > a:hover h3 { color: var(--red); }
@media (max-width: 860px) { .strands { grid-template-columns: 1fr; } .strands > a { border-bottom: 1px solid var(--rule); padding: 1.5rem 0; } .strands > a + a::before { display: none; } }

/* Big numbers */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.figures div { border-top: 2px solid var(--red); padding-top: 1rem; }
.figures b { display: block; font-family: var(--sans); font-size: 3rem; font-weight: 600; line-height: 1; color: var(--navy); }
.band-navy .figures b { color: #fff; }
.figures span { display: block; margin-top: .5rem; color: var(--muted); font-size: .95rem; }
.band-navy .figures span { color: rgba(255,255,255,.8); }
@media (max-width: 860px) { .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Logo wall: bordered grid, no motion */
.logo-wall { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.logo-wall > * { display: grid; place-items: center; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 1.2rem; min-height: 96px; background: #fff; }
.logo-wall img { max-height: 52px; width: auto; max-width: 100%; object-fit: contain; }
.logo-wall a:hover { background: var(--grey); }
@media (max-width: 960px) { .logo-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .logo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Prose */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2rem; font-size: 1.6rem; }
.prose h3 { margin-top: 1.5rem; }
.prose p, .prose li { line-height: 1.7; }
.prose img { margin: 1.5rem 0; }
.check { list-style: none; padding: 0; }
.check li { position: relative; padding-left: 1.6rem; margin-bottom: .55rem; }
.check li::before { content: ""; position: absolute; left: 0; top: .72em; width: .7em; height: 2px; background: var(--red); }

/* Numbered steps: only where content is a sequence */
.steps { list-style: none; padding: 0; margin: 1.5rem 0; counter-reset: s; border-top: 1px solid var(--rule-strong); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 0 1rem; align-items: start; padding: 1.25rem 0; border-bottom: 1px solid var(--rule); margin: 0; }
.steps li::before { content: counter(s); grid-row: 1 / span 2; font-family: var(--sans); font-size: 2rem; font-weight: 600; color: var(--red); line-height: 1; }
.steps h3 { margin: .15rem 0 .35rem; font-size: 1.2rem; }
.steps p { margin: 0; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid rgba(255,255,255,.3); }
.timeline li { display: grid; grid-template-columns: 90px 1fr; gap: 1rem; padding: 0 0 1.5rem 1.5rem; position: relative; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .55em; width: 12px; height: 12px; background: var(--red); }
.timeline b { font-family: var(--sans); font-size: 1.3rem; font-weight: 600; color: #fff; line-height: 1.2; }
.timeline p { margin: 0; color: rgba(255,255,255,.88); }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: .25rem; } }

/* Team */
.team-group + .team-group { margin-top: 3.5rem; }
.team-group h2 { font-size: 1.5rem; padding-bottom: .75rem; border-bottom: 1px solid var(--rule-strong); margin-bottom: 1.75rem; }
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.5rem; }
.person img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; background: var(--grey); filter: saturate(.9); }
.person b { display: block; font-family: var(--sans); font-size: 1.15rem; font-weight: 600; color: var(--navy); margin-top: .8rem; }
.person span { display: block; color: var(--muted); font-size: .9rem; }
.person .links { margin-top: .35rem; font-size: .85rem; display: flex; gap: .75rem; }
@media (max-width: 900px) { .people { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; } }

/* Two-column text pages (services, news post) */
.two-col { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.aside { border-top: 2px solid var(--navy); padding-top: 1rem; position: sticky; top: 100px; }
.aside h3 { font-family: var(--sans); font-size: .95rem; font-weight: 800; margin-bottom: .75rem; }
.aside ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.aside li { border-bottom: 1px solid var(--rule); margin: 0; }
.aside li a { display: block; padding: .55rem 0; color: var(--ink); text-decoration: none; font-size: .95rem; }
.aside li a:hover, .aside li a[aria-current] { color: var(--red); }
.aside p { font-size: .95rem; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } .aside { position: static; } }

/* News */
.posts { border-top: 1px solid var(--rule-strong); }
.posts a { display: grid; grid-template-columns: 160px 1fr; gap: 1rem 2.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.posts time { color: var(--muted); font-size: .9rem; font-weight: 600; padding-top: .35rem; }
.posts h3 { margin: 0 0 .4rem; font-size: 1.3rem; }
.posts p { margin: 0; }
.posts a:hover h3 { color: var(--red); }
@media (max-width: 640px) { .posts a { grid-template-columns: 1fr; gap: .3rem; } }

/* Hub rows and cards on the Training Hubs page */
.hubs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; border-top: 1px solid var(--rule-strong); }
.hub { padding: 2rem 0; border-bottom: 1px solid var(--rule); }
.hub img { height: 54px; width: auto; max-width: 240px; object-fit: contain; object-position: left; margin-bottom: 1.25rem; }
.hub dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 1rem 0 0; font-size: .92rem; }
.hub dt { font-weight: 800; color: var(--navy); } .hub dd { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .hubs { grid-template-columns: 1fr; } }

/* Programme table on the apprenticeships page */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .9rem .75rem .9rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 800; color: var(--navy); border-bottom: 1px solid var(--rule-strong); font-size: .85rem; }
td b { font-family: var(--sans); font-size: 1.1rem; font-weight: 600; color: var(--navy); }

/* Work list */
.work-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 3rem; }
.work-groups h3 { font-size: 1.15rem; margin: 1.25rem 0 .5rem; }
.work-groups ul { margin: 0; padding-left: 1.1em; }
.work-groups li { font-size: .95rem; margin-bottom: .3rem; }
@media (max-width: 760px) { .work-groups { grid-template-columns: 1fr; } }

/* Partners page */
.partner-group + .partner-group { margin-top: 3rem; }
.partner-group h2 { font-size: 1.4rem; margin-bottom: 1.25rem; }

/* Forms */
.form { display: grid; gap: 1.1rem; }
.form .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.form label { display: block; font-weight: 700; color: var(--navy); margin-bottom: .35rem; font-size: .95rem; }
.form .opt { font-weight: 500; color: var(--muted); }
.form input, .form select, .form textarea { width: 100%; font: inherit; padding: .75rem .85rem; border: 1.5px solid var(--rule); background: #fff; color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--navy); outline: none; }
.form textarea { min-height: 160px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.notice { background: var(--grey); border-left: 3px solid var(--teal); padding: 1rem 1.25rem; }
.notice p:last-child { margin: 0; }
@media (max-width: 640px) { .form .pair { grid-template-columns: 1fr; } }
.contact-details dt { font-weight: 800; color: var(--navy); margin-top: 1rem; font-size: .9rem; }
.contact-details dd { margin: .2rem 0 0; }

/* Closing band */
.cta { background: var(--navy); color: #fff; padding: clamp(3rem, 6vw, 5rem) 0; }
.cta .container { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem; align-items: center; }
.cta h2 { color: #fff; margin-bottom: .5rem; }
.cta p { color: rgba(255,255,255,.85); margin: 0; max-width: 56ch; }
.cta .btn-group { margin: 0; justify-content: flex-end; }
.cta a.email { color: #fff; font-weight: 700; }
@media (max-width: 860px) { .cta .container { grid-template-columns: 1fr; } .cta .btn-group { justify-content: flex-start; } }

/* Footer */
.site-footer { background: #fff; border-top: 3px solid var(--navy); padding: 3rem 0 2rem; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 3rem; }
.footer-grid h4 { margin-bottom: .75rem; font-size: .85rem; color: var(--navy); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .45rem; }
.footer-grid li a { color: var(--ink); text-decoration: none; }
.footer-grid li a:hover { color: var(--red); text-decoration: underline; }
.footer-brand { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.footer-brand b { font-family: var(--sans); font-size: 1.2rem; color: var(--navy); }
.footer-grid .lw { height: 72px; width: auto; margin-top: 1rem; }
.footer-bottom { border-top: 1px solid var(--rule); margin-top: 2.5rem; padding-top: 1.25rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: .85rem; }
.footer-bottom nav { display: flex; gap: 1.25rem; }
.footer-bottom a { color: var(--muted); }
.footer-bottom button { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .ofsted-qr span { max-width: none; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Cookie banner and toast (only used when analytics is switched on) */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--navy); color: #fff; padding: 1rem 0; font-size: .92rem; }
.cookie-banner .container { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cookie-banner p { margin: 0; max-width: 70ch; } .cookie-banner a { color: #fff; }
.cookie-actions { display: flex; gap: .5rem; }
.cookie-actions .btn { padding: .55rem 1rem; }
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); background: var(--navy); color: #fff; padding: .75rem 1.25rem; z-index: 95; font-size: .9rem; max-width: 90vw; }

/* 404 */
.err { padding: clamp(4rem, 10vw, 8rem) 0; }
.err .container { max-width: 640px; }

.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mb-0 { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media (max-width: 640px) { .topbar nav + nav, .topbar nav a:nth-child(2) { display: none; } }

/* Ofsted report QR code */
.ofsted-qr { display: inline-flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--ink); border: 1px solid var(--rule); padding: .6rem .9rem .6rem .6rem; background: #fff; max-width: 100%; }
.ofsted-qr:hover { border-color: var(--navy); color: var(--ink); }
.ofsted-qr img { width: 84px; height: 84px; flex: none; }
.ofsted-qr span { font-size: .85rem; line-height: 1.35; color: var(--muted); max-width: 18ch; }
.ofsted-qr b { display: block; color: var(--navy); font-size: .95rem; }
.ofsted-row { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; margin-top: 1.25rem; }
