/* Move Northamptonshire - built by deploy.sh from tokens, base, header, components. Edit those, not this. */
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("../fonts/open-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("../fonts/open-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Brand guidelines v1, signed off 15 Oct 2026 (Brief/2026-10-15-brand-final, p9). The token names predate them:
     navy = Midnight, orange = Coral, north = Sky, west = Leaf, mist = Cloud. Deeps, tints and hovers are derived. */
  --mn-navy: #201b35;
  --mn-orange: #ef7a4d;
  --mn-north: #2785a7;
  --mn-west: #588830;
  --mn-navy-60: #797686; /* the guidelines' Midnight 60% tint (4.4:1 on white) */

  --mn-orange-deep: #9b4f31; /* 4.7:1 on Cloud, 5.9 on white */
  --mn-north-deep: #237695;
  --mn-west-deep: #4e792b;
  --mn-navy-soft: #322d45;

  --mn-mist: #e2e7e8;
  --mn-orange-50: #fdf2ed;
  --mn-north-50: #e9f3f6;
  --mn-west-50: #eef3ea;
  --mn-navy-50: #e9e8eb; /* Midnight at 10%: the Midnight place tint */

  --mn-orange-hover: #f29571;
  --mn-mist-hover: #cfd3d6;

  --ink: var(--mn-navy);
  --body: #413d53;
  --muted: #585468;
  --ground: #ffffff;
  --white: #ffffff;
  --line: rgba(32, 27, 53, 0.12);
  --accent: var(--mn-orange);
  --accent-text: var(--mn-orange-deep);
  --on-accent: var(--mn-navy);
  --focus: var(--mn-navy); /* navy on light and orange grounds; dark grounds switch to orange in base.css */

  --on-navy: #ededef;
  --on-navy-soft: #dedde1;
  --on-navy-muted: #bcbbc2;
  --on-dark-soft: rgba(255, 255, 255, 0.85);
  --line-on-dark: rgba(255, 255, 255, 0.12);
  --line-on-dark-strong: rgba(255, 255, 255, 0.25);
  --veil-on-dark: rgba(255, 255, 255, 0.1);

  --gap-3xs: 4px; --gap-half: 5px; --gap-tight: 6px; --gap-2xs: 8px; --gap-xs: 10px;
  --gap-sm: 20px; --gap-md: 40px; --gap-lg: 60px; --gap-xl: 80px; --gap-2xl: 100px; --gap-3xl: 120px;

  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-xs: 12px; --text-sm: 14px; --text-md: 16px; --text-base: 18px;
  --text-lg: clamp(18px, 1rem + 0.35vw, 20px);
  --text-xl: clamp(20px, 1.05rem + 0.6vw, 24px);
  --text-2xl: clamp(26px, 1.2rem + 1.2vw, 36px);
  --text-3xl: clamp(34px, min(1.4rem + 2.4vw, 6vh), 54px);
  --text-4xl: clamp(40px, min(1.6rem + 3.6vw, 8vh), 72px);
  --text-menu: clamp(40px, 1.2rem + 6vw, 96px);

  --radius: 0;
  --bar: 14px;
  --icon-sm: 16px;
  --header-height: 88px;
  --width: 1400px; --width-wide: 1600px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1); --ease-fast: cubic-bezier(0.16, 1, 0.3, 1); --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.15s ease; --t-base: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
p, li, dd, figcaption { text-wrap: pretty; }
body { margin: 0; font-family: var(--font); font-size: var(--text-base); line-height: 1.6; color: var(--body); background: var(--ground); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
/* overflow-wrap: "Northamptonshire" at heading size is wider than a 320px screen (400% zoom); it breaks only then. */
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 var(--gap-sm); text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3, h4 { font-size: var(--text-xl); letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0 0 var(--gap-sm); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only, .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--gap-sm); top: -60px; background: var(--mn-orange); color: var(--mn-navy); padding: var(--gap-xs) var(--gap-sm); font-weight: 700; z-index: 300; }
.skip:focus { top: var(--gap-xs); }

/* The header and footer parts step out of their wrapper so the header can stick to the whole page. */
.site-chrome { display: contents; }

.container { width: 100%; max-width: var(--width); margin-inline: auto; padding-inline: var(--gap-md); }
@media (max-width: 768px) { .container { padding-inline: var(--gap-sm); } }

.section { padding-block: var(--gap-2xl); }
@media (max-width: 768px) { .section { padding-block: var(--gap-lg); } }
.section--tight-top { padding-top: var(--gap-lg); }
.section--tight-bottom { padding-bottom: var(--gap-lg); }
/* Two neighbouring sections on the same ground read as one: the second drops its top padding, so the gap between
   them is one section's padding, not two (Richard, 2 Oct). */
.bg-white + .section.bg-white, .bg-mist + .section.bg-mist, .bg-orange-50 + .section.bg-orange-50, .bg-north-50 + .section.bg-north-50,
.bg-west-50 + .section.bg-west-50, .bg-place-50 + .section.bg-place-50, .bg-navy + .section.bg-navy { padding-top: 0; }
/* A section's padding is its only edge: the first and last thing inside never add margin on top of it (the county
   map card on Our places carried 60px over the padding, so the gap read double). */
.section > .container > :first-child { margin-top: 0; }
.section > .container > :last-child { margin-bottom: 0; }
.bg-white { background: var(--ground); }
.bg-mist { background: var(--mn-mist); }
.bg-orange-50 { background: var(--mn-orange-50); }
.bg-north-50 { background: var(--mn-north-50); }
.bg-west-50 { background: var(--mn-west-50); }
.bg-navy { background: var(--mn-navy); color: var(--on-navy); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy-solid { background: var(--mn-navy); }
.bg-north { background: var(--mn-north); }
.bg-west { background: var(--mn-west); }
.bg-north-deep { background: var(--mn-north-deep); }
.bg-west-deep { background: var(--mn-west-deep); }
.bg-place-50 { background: var(--place-50, var(--mn-north-50)); }
.bg-place-deep { background: var(--place-deep, var(--mn-north-deep)); }

.lede { font-size: var(--text-lg); line-height: 1.55; color: var(--ink); font-weight: 500; }
.label { display: inline-flex; align-items: center; gap: var(--gap-2xs); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: var(--gap-sm); line-height: 1; }
.label::before { content: ""; width: 10px; height: 12px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.bg-navy .label, .menu .label, .feature .label, .connector .label, .map-card .label { color: var(--mn-orange); }
.label--navy { color: var(--mn-navy); }
.h1--page { font-size: var(--text-3xl); }
.h3--lg { font-size: var(--text-2xl); }

.m-0 { margin: 0; }
.mt-xs { margin-top: var(--gap-xs); }
.mt-md { margin-top: var(--gap-md); }
.mt-lg { margin-top: var(--gap-lg); }
.mb-lg { margin-bottom: var(--gap-lg); }
.mx-auto { margin-inline: auto; }
.text-white { color: var(--white); }
.text-body { color: var(--body); }
/* Place colours, one per place since 13 Oct (the Place's Colour field): --place marks and pins, --place-deep text
   on the tint, --place-50 the tint, --place-surface / --place-on the banner and card face (deep + white unless set).
   Orange carries navy text: white on orange is 2.6:1, navy is 6.9:1. Navy's banner is the soft navy, so it never
   runs into the navy header. */
/* Blue and green are the place grounds where the soft white falls short of 4.5:1 for small text (4.2, measured by
   axe on the breadcrumbs): full white there (5.1). */
.place--north { --place: var(--mn-north); --place-deep: var(--mn-north-deep); --place-50: var(--mn-north-50); --place-on-soft: var(--white); }
.place--west { --place: var(--mn-west); --place-deep: var(--mn-west-deep); --place-50: var(--mn-west-50); --place-on-soft: var(--white); }
.place--orange { --place: var(--mn-orange); --place-deep: var(--mn-orange-deep); --place-50: var(--mn-orange-50); --place-surface: var(--mn-orange); --place-on: var(--mn-navy); --place-on-soft: var(--mn-navy); }
.place--navy { --place: var(--mn-navy); --place-deep: var(--mn-navy); --place-50: var(--mn-navy-50); --place-surface: var(--mn-navy-soft); }

html { scrollbar-color: var(--mn-navy) var(--mn-mist); scrollbar-width: auto; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--mn-mist); }
::-webkit-scrollbar-thumb { background: var(--mn-navy); border: 2px solid var(--mn-mist); }
::-webkit-scrollbar-thumb:hover { background: var(--mn-orange); }

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: var(--d, 0s); }
  [data-reveal].is-in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0.01s !important; animation-duration: 0.01s !important; scroll-behavior: auto !important; } }

/* Focus rings need 3:1 against the ground they sit on (WCAG 1.4.11). Orange on white is 2.6:1 and
   vanishes on orange, so: navy on light and orange grounds, orange on navy and the deep place colours. */
.bg-navy, .site-header, .site-footer, .menu, .map-card, .quote-block, .hero--place .hero__panel, .skip { --focus: var(--mn-orange); }
.hero__panel, .signup { --focus: var(--mn-navy); }
.place--orange .hero--place .hero__panel { --focus: var(--mn-navy); }

/* Brand stays as specified by default. A device asking for more contrast gets navy in place of white on
   orange, the only brand pairing under 4.5:1; Windows high-contrast mode keeps its own colours and borders. */
@media (prefers-contrast: more) {
  .hero:not(.hero--place) h1, .pennant h2 em, .pennant h2 span { color: var(--mn-navy); }
  .place-tile p, .principle p { opacity: 1; }
}
@media (forced-colors: active) {
  .btn, .wp-block-button__link, .tag, .funders a, .place-tile, .card, .quote-block, .pennant, .hero__panel, .route__cell { border: 1px solid CanvasText; forced-color-adjust: auto; }
  .hero__panel, .pennant, .route__angle { clip-path: none; }
  :focus-visible { outline-color: Highlight; }
  .label::before, .brand-bar, .place-tile::after, .quote-block::before, .signup::after { display: none; }
}

/* On dark grounds the label and other accent text use full orange (6.9:1 on navy); orange-deep is for light grounds. */
.bg-navy, .site-header, .site-footer, .menu, .map-card { --accent-text: var(--mn-orange); }
.site-footer__base span a { text-decoration: underline; text-underline-offset: 3px; }

.site-header { background: var(--mn-navy); color: var(--white); position: sticky; top: 0; z-index: 200; }
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 0px); }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--gap-md); min-height: var(--header-height); }
.site-header__logo { display: block; line-height: 0; position: relative; z-index: 1; }
.site-header__logo svg { width: 300px; height: auto; }
@media (max-width: 560px) { .site-header__logo svg { width: 240px; } }

/* The bar stretches to the header's full height so a dropdown can hang from the header's bottom edge. */
.site-nav { align-self: stretch; display: flex; }
.site-nav__list { display: flex; align-items: stretch; gap: var(--gap-md); list-style: none; margin: 0; padding: 0; }
.site-nav__item { position: relative; display: flex; align-items: center; }
.site-nav__item > a:not(.btn) { color: var(--white); text-decoration: none; font-weight: 600; font-size: var(--text-md); padding-block: var(--gap-xs); background: linear-gradient(var(--mn-orange), var(--mn-orange)) left bottom / 0 3px no-repeat; transition: background-size 0.3s var(--ease); }
/* The orange rule marks the page being read, and the section it sits in when it is a sub-page. */
.site-nav__item > a:not(.btn):hover, .site-nav__item > a[aria-current="page"], .site-nav__item > a.is-section { background-size: 100% 3px; }
.site-nav__item > a { white-space: nowrap; }
/* Dropdowns (disclosure pattern): the top item stays a link; the button beside it opens the list. The button ships
   hidden and site.js reveals it, so without JavaScript there is no dead control. Opens on click only, never hover. */
.site-nav__toggle { display: grid; place-items: center; width: 44px; height: 44px; margin-left: var(--gap-3xs); margin-right: calc(var(--gap-xs) * -1); padding: 0; background: none; border: 0; color: var(--white); cursor: pointer; transition: background var(--t-fast); }
.site-nav__toggle:hover, .site-nav__toggle[aria-expanded="true"] { background: var(--veil-on-dark); }
.site-nav__toggle svg { transition: transform 0.3s var(--ease); }
.site-nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.site-nav__sub { position: absolute; top: 100%; left: calc(var(--gap-sm) * -1); z-index: 1; width: max-content; min-width: 300px; max-width: 400px; margin: 0; padding: var(--gap-xs); list-style: none; background: var(--mn-navy-soft); }
/* The last items open leftwards, so a dropdown near the button never runs off the screen. */
.site-nav__item:nth-last-child(-n+2) .site-nav__sub { left: auto; right: calc(var(--gap-sm) * -1); }
.site-nav__sub a { display: flex; align-items: center; gap: var(--gap-xs); min-height: 44px; padding: var(--gap-2xs) var(--gap-xs); color: var(--white); text-decoration: none; font-weight: 600; font-size: var(--text-md); transition: background var(--t-fast); }
.site-nav__sub a:hover { background: var(--veil-on-dark); }
/* The page being read: a firmer ground and a heavier weight, so it never rests on colour alone. */
.site-nav__sub a[aria-current="page"] { background: var(--line-on-dark-strong); font-weight: 700; }
/* A place keeps its own colour on a chevron, as on the place tiles and the map. */
.site-nav__sub a.is-place::before, .menu__sub a.is-place::before { content: ""; flex: none; width: 10px; height: 12px; background: var(--mn-north); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.site-nav__sub a.is-west::before, .menu__sub a.is-west::before { background: var(--mn-west); }
.site-nav__sub a.is-orange::before, .menu__sub a.is-orange::before { background: var(--mn-orange); }
.site-nav__sub a.is-navy::before, .menu__sub a.is-navy::before { background: var(--white); } /* the panel is navy */
@keyframes mn-sub-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes mn-sub-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-10px); } }
@media (prefers-reduced-motion: no-preference) {
  .site-nav__sub.is-open { animation: mn-sub-in 0.3s var(--ease-out) both; }
  .site-nav__sub.is-closing { animation: mn-sub-out 0.15s ease-in both; }
}
@media (prefers-reduced-motion: reduce) { .site-nav__toggle svg { transition: none; } }
@media (forced-colors: active) { .site-nav__sub { border: 1px solid CanvasText; } .site-nav__sub a.is-place::before, .menu__sub a.is-place::before { display: none; } }
/* Three items with dropdowns and the button fit on one line down to 1081px; a tighter gap helps below 1240px.
   The breakpoints are in em (67.5em = 1080px at the default 16px), so a reader who sets a larger default text size
   gets the menu button sooner instead of a bar that runs off the screen. site.js matches 67.5625em (1081px). */
@media (max-width: 77.5em) { .site-nav__list { gap: var(--gap-sm); } }
@media (max-width: 67.5em) { .site-nav { display: none; } }

.burger { display: none; position: relative; z-index: 1; flex-direction: column; justify-content: center; gap: var(--gap-2xs); width: 56px; height: 56px; padding: 0 var(--gap-xs); background: none; border: 0; cursor: pointer; }
.burger span { display: block; height: 3px; background: var(--white); transition: transform 0.4s var(--ease), opacity 0.2s ease; transform-origin: center; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }
@media (max-width: 67.5em) { .burger { display: flex; } }

.menu { position: fixed; inset: 0; z-index: 190; background: var(--mn-navy); color: var(--white); display: flex; flex-direction: column; padding-top: var(--menu-top, var(--header-height)); overflow-y: auto; scrollbar-color: var(--mn-orange) var(--mn-navy-soft); }
.menu[hidden] { display: none; }
.menu::-webkit-scrollbar-track { background: var(--mn-navy-soft); }
.menu::-webkit-scrollbar-thumb { background: var(--mn-orange); border-color: var(--mn-navy-soft); }
/* The full-page menu: each top item is a large heading link with its sub-pages listed under it. Groups sit side
   by side while there is room and stack on a phone. */
.menu__inner { flex: 1; display: flex; align-items: center; padding-block: var(--gap-lg); }
.menu__inner > nav { width: 100%; }
.menu__links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: var(--gap-md); align-items: start; }
.menu__links > li > a { display: inline-block; overflow-wrap: anywhere; color: var(--white); text-decoration: none; text-transform: uppercase; font-weight: 700; letter-spacing: -0.02em; font-size: var(--text-3xl); line-height: 1.05; padding-block: var(--gap-3xs); transition: color var(--t-fast), transform 0.4s var(--ease); }
.menu__links > li > a:hover, .menu__links > li > a:focus-visible, .menu__links > li > a[aria-current="page"], .menu__links > li > a.is-section { color: var(--mn-orange); }
.menu__links > li > a:hover, .menu__links > li > a:focus-visible { transform: translateX(10px); }
.menu__sub { list-style: none; margin: var(--gap-xs) 0 0; padding: 0; display: grid; }
.menu__sub a { display: flex; align-items: center; gap: var(--gap-xs); min-height: 44px; color: var(--on-navy); text-decoration: none; font-weight: 600; font-size: var(--text-lg); line-height: 1.3; transition: color var(--t-fast); }
.menu__sub a:hover, .menu__sub a:focus-visible { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.menu__sub a[aria-current="page"] { color: var(--mn-orange); font-weight: 700; }
.menu .brand-bar { flex: none; }
@media (max-width: 760px) { .menu__inner { align-items: start; padding-block: var(--gap-md); } }
@keyframes mn-menu-in { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes mn-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .menu.is-open { animation: mn-fade 0.3s ease both; }
  .menu.is-open .menu__links > li { animation: mn-menu-in 0.6s var(--ease-out) both; }
  .menu.is-open .menu__links > li:nth-child(2) { animation-delay: 0.05s; }
  .menu.is-open .menu__links > li:nth-child(3) { animation-delay: 0.1s; }
  .menu.is-open .menu__links > li:nth-child(4) { animation-delay: 0.15s; }
  .menu.is-open .menu__links > li:nth-child(5) { animation-delay: 0.2s; }
  .menu.is-open .menu__links > li:nth-child(n+6) { animation-delay: 0.25s; }
}
body.menu-open { overflow: hidden; }

.logo-anim .arrow { animation: mn-cut 1.2s var(--ease-out) 0.3s both; }
.logo-anim.is-replay .arrow { animation: mn-cut-replay 0.9s var(--ease-out) both; }
@keyframes mn-cut { from { transform: translateX(-90px); } to { transform: none; } }
/* A second keyframe name, because re-applying the same name never restarts an animation. */
@keyframes mn-cut-replay { from { transform: translateX(-90px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .logo-anim .arrow, .logo-anim.is-replay .arrow { animation: none; } }

.brand-bar { display: grid; grid-template-columns: 2fr 1fr 1fr; height: var(--bar); }
.brand-bar span:nth-child(1) { background: var(--mn-orange); }
.brand-bar span:nth-child(2) { background: var(--mn-north); }
.brand-bar span:nth-child(3) { background: var(--mn-west); }

.btn, .wp-block-button .wp-block-button__link { display: inline-flex; align-items: center; gap: var(--gap-xs); min-height: 48px; padding: 0 var(--gap-sm); font: 700 var(--text-sm)/1 var(--font); letter-spacing: 0.01em; text-decoration: none; border: 2px solid transparent; border-radius: var(--radius); cursor: pointer; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.btn svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease-fast); }
.btn:hover svg { transform: translateX(4px); }
.btn--navy, .wp-block-button .wp-block-button__link { background: var(--mn-navy); color: var(--white); }
.btn--navy:hover, .wp-block-button .wp-block-button__link:hover { background: var(--mn-navy-soft); }
.btn--orange, .wp-block-button.is-style-orange .wp-block-button__link { background: var(--mn-orange); color: var(--mn-navy); }
.btn--orange:hover, .wp-block-button.is-style-orange .wp-block-button__link:hover { background: var(--mn-orange-hover); }
.btn--outline, .wp-block-button.is-style-outline .wp-block-button__link { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--outline:hover, .wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.bg-navy .btn--outline, .bg-navy .wp-block-button.is-style-outline .wp-block-button__link { color: var(--white); }
.bg-navy .btn--outline:hover, .bg-navy .wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--white); color: var(--mn-navy); border-color: var(--white); }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: var(--gap-xs); }
.link-arrow { display: inline-flex; align-items: center; gap: var(--gap-2xs); font-weight: 700; font-size: var(--text-sm); color: var(--ink); text-decoration: none; }
.link-arrow svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease-fast); }
.link-arrow:hover svg, a:hover .link-arrow svg { transform: translateX(4px); }

.hero { position: relative; background: var(--mn-navy); overflow: hidden; }
.hero__media { position: absolute; inset: 0 0 0 38%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__panel { position: relative; background: var(--mn-orange); color: var(--mn-navy); width: 62%; clip-path: polygon(0 0, 80% 0, 100% 50%, 80% 100%, 0 100%); padding-block: var(--gap-2xl) var(--gap-2xl); }
/* The text runs from the page column's left edge to a gap short of where the panel's point starts (80% of its
   62% = 49.6vw), so it has the same room on every screen. (A % padding here was a share of the panel, which
   grows with the screen: at 2560 it left the text 350px.) */
.hero__content { --hero-left: max(var(--gap-md), calc((100vw - var(--width)) / 2 + var(--gap-md))); margin-left: var(--hero-left); max-width: calc(49.6vw - var(--hero-left) - var(--gap-lg)); }
/* White on orange follows the brand sample (2.6:1); flagged to Gill 28 Sept, brand leads. */
.hero h1 { color: var(--white); margin-bottom: var(--gap-sm); max-width: none; }
.hero .lede { color: var(--mn-navy); font-weight: 600; max-width: none; margin-bottom: var(--gap-md); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--gap-xs); }
/* The weekly place photo (mn/hero-photo, Gill 13 Oct) and its location tag: small white type on a navy chip,
   bottom right of the photo on the page column's edge, the pin in the place's own colour. */
.hero__photo { position: relative; height: 100%; margin: 0; }
.hero__tag { position: absolute; right: max(var(--gap-md), calc((100vw - var(--width)) / 2 + var(--gap-md))); bottom: var(--gap-md); display: inline-flex; align-items: center; gap: var(--gap-tight); padding: var(--gap-tight) var(--gap-xs); background: rgba(32, 27, 53, 0.8); color: var(--white); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; line-height: 1.2; text-transform: uppercase; }
.hero__tag svg { flex: none; width: 10px; height: 12px; fill: var(--mn-orange); }
.hero__tag--north svg { fill: var(--mn-north); }
.hero__tag--west svg { fill: var(--mn-west); }
.hero__tag--navy svg { fill: var(--white); }
@media (max-width: 900px) { .hero__tag { right: var(--gap-sm); bottom: var(--gap-sm); } }
/* The banner video (mn_render_hero_video, started by site.js): over the photo, unseen until it is really playing,
   then a slow fade. The photo's place tag steps aside, since the video is not that photo. The pause button sits
   top right on a wide screen; on a phone the panel's point covers the top, so it goes bottom right. */
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; transition: opacity 0.8s var(--ease-out); }
.is-playing > .hero__video { opacity: 1; }
.is-playing > .hero__tag { opacity: 0; visibility: hidden; transition: opacity var(--t-fast), visibility 0s linear 0.15s; }
.hero__pause { position: absolute; z-index: 1; top: var(--gap-md); right: max(var(--gap-md), calc((100vw - var(--width)) / 2 + var(--gap-md))); display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--radius); background: var(--mn-navy); color: var(--white); cursor: pointer; transition: background var(--t-fast); }
.hero__pause:hover { background: var(--mn-navy-soft); }
.hero__pause:focus-visible { outline-color: var(--white); }
.hero__pause svg { width: var(--icon-sm); height: var(--icon-sm); fill: currentColor; }
.hero__pause .icon-play, .hero__pause[data-state="paused"] .icon-pause { display: none; }
.hero__pause[data-state="paused"] .icon-play { display: block; }
@media (max-width: 900px) { .hero__pause { top: auto; right: var(--gap-sm); bottom: var(--gap-sm); } }
/* The home video carries its place names burned in at the bottom right: its crop keeps that corner, and on a phone
   its pause button moves to the bottom left so it never covers them. (.hero__photo is the home banner only.) */
.hero__photo > .hero__video { object-position: right bottom; }
@media (max-width: 900px) { .hero__photo > .hero__pause { right: auto; left: var(--gap-sm); } }
.hero--place .hero__panel { background: var(--place-surface, var(--place-deep, var(--mn-north-deep))); color: var(--place-on, var(--white)); }
.hero--place h1, .hero--place .lede { color: var(--place-on, var(--white)); }
.hero--place .crumbs, .hero--place .crumbs a { color: var(--place-on-soft, var(--on-dark-soft)); }
/* On an orange banner the orange button would vanish, so it turns navy. */
.place--orange .hero--place .btn--orange { background: var(--mn-navy); color: var(--white); }
.place--orange .hero--place .btn--orange:hover { background: var(--mn-navy-soft); }
@media (max-width: 900px) {
  .hero { display: flex; flex-direction: column-reverse; background: transparent; }
  .hero__media { position: relative; inset: auto; height: 300px; }
  .hero__panel { width: 100%; z-index: 1; margin-bottom: -36px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 36px), 50% 100%, 0 calc(100% - 36px)); padding-block: var(--gap-lg) calc(var(--gap-lg) + 36px); }
  .hero__content { margin-left: 0; padding-inline: var(--gap-sm); max-width: none; }
}
@keyframes mn-hero-in { from { transform: translateX(-40px); } to { transform: none; } }
@keyframes mn-hero-img { from { transform: scale(1.06); } to { transform: none; } }
/* scripting: enabled replaces the old inline ".js" class script: no inline JS in the head.
   The heading and the photo are on screen at the first paint, never faded in: Chrome does not count a paint at
   zero opacity as the page's largest, and with both hidden it finds none at all. (Only the video waits unseen, over
   a photo that is already there, until it really plays: above.) The photo settles from a slight zoom; on a wide
   screen the panel also slides in, its left edge off the screen. On a phone the panel is the full width, so a
   slide would open a strip of page ground at its right edge: there it stays put. */
@media (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  .hero__media img { animation: mn-hero-img 1.4s var(--ease-out) 0.45s both; }
}
@media (prefers-reduced-motion: no-preference) and (scripting: enabled) and (width > 900px) {
  .hero__panel { animation: mn-hero-in 0.9s var(--ease-out) both; }
}
.crumbs { font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--gap-sm); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-xl); align-items: center; }
.split--top { align-items: start; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
/* minmax(0, 1fr): a long word in a quote ("Northamptonshire" at text-2xl) must not hold the column wider than a
   320px screen (400% zoom); the word breaks instead (overflow-wrap on headings and the quote). */
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: var(--gap-md); }
  /* Stacked, a column holding only a label and heading sits on its text the way any heading does: the heading's
     own margin is the whole gap, so it never floats halfway between its text and the section above. */
  .split:has(> :first-child > :is(h2, h3):last-child) { row-gap: 0; }
}

.head-row { display: flex; justify-content: space-between; align-items: end; gap: var(--gap-md); margin-bottom: var(--gap-lg); flex-wrap: wrap; }
.head-row h2 { margin-bottom: 0; }
.head-row__aside { flex: 0 1 50%; margin: 0; }   /* half the row, as the two-column split: a column, not a text cap */

.places { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-sm); }
/* Place tiles or a row of cards under a heading-and-text split are a new group: more air above them than between
   paragraphs. --gap-md here plus the column's last margin (--gap-sm) = --gap-lg seen. */
.split + :is(.places, .split) { margin-top: var(--gap-md); }
.place-tile { position: relative; display: flex; flex-direction: column; min-height: 320px; padding: var(--gap-md) var(--gap-sm) var(--gap-sm); color: var(--white); text-decoration: none; background: var(--mn-north-deep); overflow: hidden; transition: transform 0.4s var(--ease); }
.place-tile--west { background: var(--mn-west-deep); }
.place-tile::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; background: var(--veil-on-dark); clip-path: polygon(0 0, 100% 50%, 0 100%); transition: transform 0.5s var(--ease); }
.place-tile:hover::after { transform: translateX(-16px); }
.place-tile__town { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.9; margin-bottom: var(--gap-xs); }
.place-tile h3 { color: var(--white); font-size: var(--text-2xl); font-weight: 700; margin-bottom: var(--gap-sm); }
.place-tile p { font-size: var(--text-md); line-height: 1.5; margin-bottom: var(--gap-md); }
.place-tile .link-arrow { color: var(--white); margin-top: auto; position: relative; z-index: 1; }
/* Each Place's own colour (13 Oct). Blue and green stay deep for white text; orange carries navy; navy is the soft navy. */
.place-tile--orange { background: var(--mn-orange); color: var(--mn-navy); }
.place-tile--orange h3, .place-tile--orange .link-arrow { color: var(--mn-navy); }
.place-tile--orange::after { background: rgba(32, 27, 53, 0.08); }
.place-tile--navy { background: var(--mn-navy-soft); }
/* margin-top auto: the facts sit on the tile's foot, so they line up across tiles whatever the strapline length. */
.place-tile__facts + .link-arrow { margin-top: 0; }
.place-tile__facts { list-style: none; margin: auto 0 var(--gap-md); padding: var(--gap-sm) 0 0; border-top: 1px solid color-mix(in srgb, currentColor 30%, transparent); display: grid; gap: var(--gap-sm); position: relative; z-index: 1; }
.place-tile__facts li { display: grid; grid-template-columns: 24px 1fr; gap: var(--gap-xs); align-items: start; }
.place-tile__icon { width: 24px; height: 24px; margin-top: 2px; }
.place-tile__fact { display: flex; flex-direction: column; }
.place-tile__fact-label { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.9; }
.place-tile__fact strong { font-size: var(--text-xl); font-weight: 700; line-height: 1.2; }
.place-tile__fact-compare { font-size: var(--text-sm); opacity: 0.9; }
@media (max-width: 1080px) { .places { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .places { grid-template-columns: 1fr; } .place-tile { min-height: 0; } }
.places--3 { grid-template-columns: repeat(3, 1fr); }
.places--3 .place-tile { min-height: 220px; }
@media (max-width: 900px) { .places--3 { grid-template-columns: 1fr; } .places--3 .place-tile { min-height: 0; } }

/* == places carousel (home, contract section 9) == */
/* The same tiles in a looping strip: three and a peek on desktop, two and a peek on a tablet, one and a peek on a
   phone. Snap per tile, native swipe and trackpad scroll, no autoplay. Without JavaScript it is a plain horizontal
   scroll of the real tiles with its scrollbar; site.js adds .is-ready, the clones, the buttons and the cursor chip. */
.places-carousel { position: relative; --slide: calc((100% - 3 * var(--gap-sm)) / 3.25); }
.places-carousel__track { display: flex; gap: var(--gap-sm); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.places-carousel.is-ready .places-carousel__track { scrollbar-width: none; }
.places-carousel.is-ready .places-carousel__track::-webkit-scrollbar { display: none; }
.places-carousel__slide { flex: 0 0 var(--slide); scroll-snap-align: start; display: flex; }
.places-carousel__slide .place-tile, .places-carousel__slide > .card { flex: 1; }
.places-carousel__controls { display: flex; justify-content: space-between; align-items: center; gap: var(--gap-sm); margin-top: var(--gap-sm); }
.places-carousel__btns { display: flex; gap: var(--gap-xs); }
.places-carousel__btn { display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0; color: var(--mn-navy); background: transparent; border: 2px solid var(--mn-navy); border-radius: var(--radius); cursor: pointer; transition: background var(--t-fast), color var(--t-fast); }
.places-carousel__btn:hover { background: var(--mn-navy); color: var(--white); }
.places-carousel__btn svg { width: var(--icon-sm); height: var(--icon-sm); }
/* The chip follows a mouse over a tile cut off by the track's edge (site.js): a click there brings it into view. */
.places-carousel__cursor { position: absolute; top: 0; left: 0; z-index: 2; display: grid; place-items: center; width: 56px; height: 56px; margin: -28px 0 0 -28px; color: var(--mn-navy); background: var(--mn-orange); pointer-events: none; opacity: 0; transform: translate(var(--cx, 0), var(--cy, 0)) scale(0.6); transition: opacity var(--t-fast), transform 0.18s var(--ease-out); }
.places-carousel__cursor svg { grid-area: 1 / 1; width: 20px; height: 20px; }
.places-carousel__cursor svg:first-child { visibility: hidden; }
.places-carousel__cursor.is-prev svg:first-child { visibility: visible; }
.places-carousel__cursor.is-prev svg:last-child { visibility: hidden; }
.places-carousel__cursor.is-on { opacity: 1; transform: translate(var(--cx, 0), var(--cy, 0)) scale(1); }
.places-carousel.is-edge .places-carousel__track, .places-carousel.is-edge .place-tile { cursor: none; }
@media (prefers-reduced-motion: reduce) { .places-carousel__cursor { transition: none; } }
@media (forced-colors: active) { .places-carousel__cursor { display: none; } .places-carousel.is-edge .places-carousel__track, .places-carousel.is-edge .place-tile { cursor: auto; } }
@media (max-width: 900px) { .places-carousel { --slide: calc((100% - 2 * var(--gap-sm)) / 2.2); } }
@media (max-width: 560px) {
  .places-carousel { --slide: calc((100% - var(--gap-sm)) / 1.15); }
  .places-carousel__slide .place-tile { min-height: 280px; }
  .places-carousel__controls .btn { flex: 1; justify-content: center; }
}

.map-card { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--mn-navy); color: var(--on-navy); margin-top: var(--gap-lg); }
.map-card__body { padding: var(--gap-lg); }
.map-card__body h3 { color: var(--white); font-size: var(--text-2xl); }
.map-card__map { position: relative; background: var(--mn-navy-soft); min-height: 480px; overflow: hidden; }
.map-card__fallback { position: absolute; inset: var(--gap-md); width: calc(100% - 80px); height: calc(100% - 80px); }
.map-card__note { margin-top: var(--gap-md); color: var(--on-navy-muted); }
.map-legend__title { margin: var(--gap-md) 0 0; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-navy-muted); }
.map-legend__title + .map-legend { margin-top: var(--gap-xs); }
.map-legend { display: flex; flex-wrap: wrap; gap: var(--gap-sm); list-style: none; padding: 0; margin: var(--gap-md) 0 0; font-size: var(--text-sm); font-weight: 600; }
.map-legend li { display: flex; align-items: center; gap: var(--gap-2xs); }
.map-legend i { width: 14px; height: 14px; display: block; }
@media (max-width: 900px) { .map-card { grid-template-columns: 1fr; } .map-card__body { padding: var(--gap-md) var(--gap-sm); } }

.pennant { background: var(--mn-orange); color: var(--mn-navy); text-align: center; clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%); padding: var(--gap-lg) var(--gap-md) var(--gap-2xl); max-width: 760px; margin: 0 auto calc(var(--gap-lg) * -1); }
.pennant h2 { color: var(--mn-navy); margin: 0 auto; }
.pennant h2 span { color: var(--white); }
.lede--pennant { color: var(--white); text-align: center; margin: var(--gap-xl) auto 0; text-wrap: pretty; }
/* More words under the lede: the same centred column, quieter than the lede. */
.pennant__body { margin: var(--gap-md) auto 0; text-align: center; text-wrap: pretty; }
.pennant__body p { color: var(--on-navy-soft); }
.pennant__body p:last-child { margin-bottom: 0; }
@media (max-width: 620px) {
  .pennant { padding-inline: var(--gap-sm); }
  .pennant h2 { font-size: var(--text-2xl); }
}

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-md); padding-top: var(--gap-2xl); counter-reset: p; }
.principle { border-top: 4px solid var(--mn-orange); padding-top: var(--gap-sm); }
.principle:nth-child(3n+2) { border-color: var(--mn-north); } /* the colours repeat every three: the Framework page has six */
.principle:nth-child(3n) { border-color: var(--mn-west); }
.principle h3 { color: var(--white); }
.principle p { color: var(--on-navy-soft); }
/* Below 900px the air steps down as .section does: --gap-md plus the intro's last paragraph margin (--gap-sm) = --gap-lg seen. */
@media (max-width: 900px) { .principles { grid-template-columns: 1fr; gap: var(--gap-md); padding-top: var(--gap-md); } }

.quote-block { background: var(--mn-west-deep); color: var(--white); padding: var(--gap-lg); position: relative; }
/* Beside text in a split, the box runs the full height of the text column, so no white shows under it on wide screens (Gill, 13 Oct). */
.split > .quote-block { align-self: stretch; }
.quote-block.bg-north-deep { background: var(--mn-north-deep); }
.quote-block.bg-navy-solid { background: var(--mn-navy); }
.quote-block p { font-size: var(--text-2xl); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; color: var(--white); margin: 0; overflow-wrap: break-word; text-wrap: balance; }
.quote-block::before { content: ""; position: absolute; top: 0; right: 0; width: 80px; height: 80px; background: var(--mn-orange); clip-path: polygon(0 0, 100% 0, 100% 100%); }
/* Phones: the place-tile inset, so "Northamptonshire," fits whole on a line instead of breaking mid-word; below
   about 350px the size eases under text-2xl's floor for the same reason. */
@media (max-width: 640px) { .quote-block { padding: var(--gap-md) var(--gap-sm); } .quote-block p { font-size: min(var(--text-2xl), 7.5vw); } }
/* A resident's words on a place page (mn/place-hearing): the place's own colour, as its hero panel. */
.quote-block--place { background: var(--place-surface, var(--place-deep, var(--mn-north-deep))); color: var(--place-on, var(--white)); margin: 0; }
.quote-block--place blockquote { margin: 0; }
.quote-block.quote-block--place p, .quote-block.quote-block--place .label { color: inherit; } /* over .quote-block .label further down */
.quote-block--place figcaption { margin-top: var(--gap-sm); font-size: var(--text-sm); font-weight: 600; }
.place--orange .quote-block--place::before { background: var(--mn-navy); } /* an orange corner would vanish on the orange box */

ul.cards { list-style: none; padding: 0; margin: 0; }
.card__media:not([class*="bg-"]) { background: var(--mn-north-50); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-md) var(--gap-sm); }
@media (max-width: 1000px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }
.wp-block-post-template.cards { list-style: none; margin: 0; padding: 0; }
.card { display: flex; flex-direction: column; background: var(--white); text-decoration: none; color: inherit; }
.cards > li > .card { height: 100%; }
.card--mist { background: var(--mn-mist); }
.card__media { aspect-ratio: 16 / 10; position: relative; overflow: hidden; margin: 0; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__thumb { position: absolute; inset: 0; display: grid; place-items: center; }
/* No picture: navy, the brand's orange angle on the right and the whole stacked logo (MN_CARD_BLANK, home.php). The
   logo is sized by the card's WIDTH, so at the site's card ratio it sits whole: its left edge on the card text's
   gap, its right edge clear of the angle's tip. */
.card__media.card__media--blank { background: var(--mn-navy) url("../img/move-stacked-dark.svg") no-repeat left var(--gap-sm) center / 46% auto; }
.card__media--blank::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 42%; background: var(--mn-orange); clip-path: polygon(38% 0, 100% 0, 100% 100%, 38% 100%, 0 50%); }
.card__thumb svg { width: 56px; height: 56px; opacity: 0.9; }
.card__body { padding: var(--gap-sm); display: flex; flex-direction: column; flex: 1; }
.card__meta { display: flex; flex-wrap: wrap; gap: var(--gap-2xs); margin-bottom: var(--gap-xs); }
/* Level-agnostic: cards are h3 (under the category h2 on place pages); older content may still hold h4. */
.card :is(h3, h4) { font-size: var(--text-lg); margin-bottom: var(--gap-xs); overflow-wrap: break-word; hyphens: auto; }
.card :is(h3, h4) a { text-decoration: none; }
.card :is(h3, h4) a:hover { text-decoration: underline; }
.card p { font-size: var(--text-md); line-height: 1.55; color: var(--body); margin-bottom: var(--gap-sm); }
.card .link-arrow { margin-top: auto; }
.card__file { font-size: var(--text-xs); color: var(--muted); font-weight: 600; margin-top: auto; padding-top: var(--gap-xs); display: flex; justify-content: space-between; align-items: center; gap: var(--gap-xs); }
.tag { display: inline-block; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.04em; padding: var(--gap-3xs) var(--gap-2xs); background: var(--mn-mist); color: var(--ink); }
.tag--north { background: var(--mn-north-50); color: var(--mn-north-deep); }
.tag--west { background: var(--mn-west-50); color: var(--mn-west-deep); }
.tag--orange { background: var(--mn-orange-50); color: var(--mn-orange-deep); }
.tag--navy { background: var(--mn-mist); color: var(--mn-navy); }
.tag--type { background: var(--mn-navy); color: var(--white); }
/* On a mist card (the resource hubs) the plain and navy chips would melt into the card: there they sit on white. */
.card--mist .tag:not(.tag--north, .tag--west, .tag--orange, .tag--type) { background: var(--white); }

.wp-block-query-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap-xs); margin-top: var(--gap-lg); font-weight: 700; font-size: var(--text-sm); }
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 var(--gap-xs); color: var(--ink); text-decoration: none; }
.wp-block-query-pagination a:hover { background: var(--mn-mist-hover); }
.wp-block-query-pagination .page-numbers.current { background: var(--mn-navy); color: var(--white); }

.entry-media { margin: 0 0 var(--gap-lg); }
.entry-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
/* Crop focus, picked per photo in the media library (inc/crop-focus.php); without one, crops hold the centre. */
img.crop-top { object-position: 50% 0; }
img.crop-bottom { object-position: 50% 100%; }
/* Inside a story: headings at reading size (the section size is for page titles), photos in line with the text.
   .entry-main, because every page's content carries .entry-content too. */
.entry-main .entry-content { overflow-wrap: break-word; } /* an email address in a story is wider than a phone column */
.entry-main .entry-action { margin-top: var(--gap-md); } /* a Resource's download, video or link, under its content */
.entry-main .entry-content h2 { font-size: var(--text-2xl); margin-top: var(--gap-md); }
.entry-main .entry-content h3 { font-size: var(--text-xl); margin-top: var(--gap-md); }
.entry-main .entry-content > .wp-block-image { margin: var(--gap-md) 0; } /* not the byline's photo, inside .byline */
/* A quote in a story (the Quote block): an orange rule, the words larger, the speaker beneath. */
.entry-main .entry-content .wp-block-quote { margin: var(--gap-md) 0; padding-left: var(--gap-sm); border-left: 4px solid var(--mn-orange); }
.entry-main .entry-content .wp-block-quote p { font-size: var(--text-xl); font-weight: 600; line-height: 1.35; }
.entry-main .entry-content .wp-block-quote cite { display: block; margin-top: var(--gap-xs); font-size: var(--text-md); font-style: normal; }
/* A staff blog's byline at the top of the story: the author's photo (optional) beside "A staff blog by ...". */
.entry-content .byline { display: flex; align-items: center; gap: var(--gap-sm); margin-bottom: var(--gap-md); }
.entry-content .byline figure { flex: none; width: 64px; margin: 0; }
.entry-content .byline img { width: 64px; height: 64px; object-fit: cover; }
.entry-content .byline p { margin: 0; font-weight: 600; }

.signup { background: var(--mn-orange); color: var(--mn-navy); position: relative; overflow: hidden; }
/* The navy arrow is measured from the logo, not the window: the logo (240px) sits at the content edge of the
   1400px container, so the arrow's straight part starts 60px before it at every width. --tip is the point. */
.signup { --tip: clamp(100px, 10vw, 200px); }
.signup::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: calc(max(50% - 360px, 340px) + var(--tip)); background: var(--mn-navy); clip-path: polygon(var(--tip) 0, 100% 0, 100% 100%, var(--tip) 100%, 0 50%); }
.signup__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--gap-lg); align-items: center; }
.signup h2 { color: var(--mn-navy); }
.signup p { color: var(--mn-navy); font-weight: 500; }
.signup__art { justify-self: end; }
.signup__art img { width: 240px; }
@media (max-width: 900px) { .signup::after { display: none; } .signup__inner { grid-template-columns: 1fr; } .signup__art { display: none; } }

.field { display: flex; flex-direction: column; gap: var(--gap-2xs); margin-bottom: var(--gap-sm); }
.field label { font-size: var(--text-sm); font-weight: 700; color: var(--ink); }
.input, .wp-block-search__input { min-height: 52px; padding: 0 var(--gap-sm); font: 500 var(--text-md) var(--font); color: var(--ink); background: var(--white); border: 2px solid var(--mn-navy); border-radius: var(--radius); width: 100%; }
.input::placeholder, .wp-block-search__input::placeholder { color: var(--muted); }
.input:focus, .wp-block-search__input:focus { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: none; }
.signup .input:focus { outline-color: var(--mn-navy); }
textarea.input { min-height: 140px; padding-block: var(--gap-sm); resize: vertical; }
.inline-form { display: flex; gap: var(--gap-xs); max-width: 560px; }
.inline-form .input { flex: 1; }
.form-note { font-size: var(--text-sm); margin-top: var(--gap-xs); }
@media (max-width: 560px) { .inline-form { flex-direction: column; } }
.wp-block-search__inside-wrapper { display: flex; gap: var(--gap-xs); max-width: 560px; border: 0; padding: 0; }
.wp-block-search__button { min-height: 52px; margin: 0; padding: 0 var(--gap-sm); font: 700 var(--text-sm)/1 var(--font); background: var(--mn-navy); color: var(--white); border: 2px solid transparent; border-radius: var(--radius); cursor: pointer; transition: background var(--t-fast); }
.wp-block-search__button:hover { background: var(--mn-navy-soft); }
@media (max-width: 560px) { .wp-block-search__inside-wrapper { flex-direction: column; } }

.tabs__list { display: flex; gap: var(--gap-3xs); border-bottom: 2px solid var(--mn-navy); margin-bottom: var(--gap-lg); overflow-x: auto; }
.tabs__tab { font: 700 var(--text-base) var(--font); color: var(--ink); background: var(--mn-mist); border: 0; padding: var(--gap-sm) var(--gap-md); cursor: pointer; white-space: nowrap; transition: background var(--t-fast), color var(--t-fast); }
.tabs__tab:hover { background: var(--mn-mist-hover); }
.tabs__tab[aria-selected="true"] { background: var(--mn-navy); color: var(--white); }
.tabs__panel[hidden] { display: none; }
@media (max-width: 620px) {
  .tabs__list { flex-wrap: wrap; border-bottom: 0; gap: var(--gap-3xs); }
  .tabs__tab { flex: 1 1 100%; text-align: left; padding: var(--gap-xs) var(--gap-sm); font-size: var(--text-md); }
}

.connector { background: var(--mn-navy); color: var(--on-navy); padding: var(--gap-md); }
.connector h3 { color: var(--white); }
.connector .avatar { width: 72px; height: 72px; background: var(--place, var(--mn-north)); display: grid; place-items: center; font-weight: 700; font-size: var(--text-xl); color: var(--place-on, var(--white)); margin-bottom: var(--gap-sm); }
.connector a { color: var(--white); font-weight: 700; }
.place--navy .connector .avatar { background: var(--mn-orange); color: var(--mn-navy); } /* a navy square would vanish on the navy card */
.connector p { margin-bottom: var(--gap-xs); }
.connector__role { color: var(--white); font-weight: 600; }
.connector__contact, .lead__contact { list-style: none; padding: 0; margin: var(--gap-sm) 0 0; display: grid; gap: var(--gap-3xs); overflow-wrap: anywhere; }
.connector .link-arrow { color: var(--white); }

/* == place leads (Our places; Gill 13 Oct) == white cards on mist, each in its place's colour */
.leads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-sm); }
@media (max-width: 1080px) { .leads { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .leads { grid-template-columns: 1fr; } .lead { padding: var(--gap-sm); } }
.lead { display: flex; flex-direction: column; align-items: flex-start; background: var(--white); padding: var(--gap-md); }
.lead .avatar { width: 72px; height: 72px; object-fit: cover; background: var(--place); color: var(--place-on, var(--white)); display: grid; place-items: center; font-weight: 700; font-size: var(--text-xl); margin-bottom: var(--gap-sm); }
.lead .tag { margin-bottom: var(--gap-2xs); }
.lead :is(h3, h4) { font-size: var(--text-xl); margin-bottom: var(--gap-3xs); }
/* Meet the Place team: place leads, then the people who work across the county. */
.leads__title { font-size: var(--text-lg); margin: var(--gap-md) 0 var(--gap-sm); }
.leads-group > .leads__title:first-child { margin-top: 0; }
/* Pages in this section (mn/section-links): one row of plain links, each row filled edge to edge so a wrapped
   row never leaves a lone short box. Mist on a white ground, white on a mist one. */
.section-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--gap-xs); }
.section-links li { flex: 1 1 260px; display: flex; }
.section-links__link { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: var(--gap-sm); min-height: 60px; padding: var(--gap-xs) var(--gap-sm); background: var(--mn-mist); color: var(--ink); font-weight: 700; text-decoration: none; transition: background var(--t-fast); }
.section-links__link:hover { background: var(--mn-mist-hover); }
:is(.bg-mist, .bg-orange-50, .bg-north-50, .bg-west-50) .section-links__link { background: var(--white); }
:is(.bg-mist, .bg-orange-50, .bg-north-50, .bg-west-50) .section-links__link:hover { background: var(--mn-navy-50); }
.lede + .section-links { margin-top: var(--gap-md); }
.section-links__link svg { flex: none; width: 16px; height: 16px; transition: transform 0.3s var(--ease-fast); }
.section-links__link:hover svg { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .section-links__link svg { transition: none; } }
@media (forced-colors: active) { .section-links__link { border: 1px solid CanvasText; } }
.section-links + .head-row, .section-links + .cards { margin-top: var(--gap-lg); }
.lead__role { font-weight: 600; margin-bottom: var(--gap-xs); }
.lead .link-arrow { margin-top: auto; padding-top: var(--gap-xs); }
.lead__contact a { font-weight: 700; }
/* "Coming soon": a person outline in the place colour instead of a photo */
.connector .avatar svg, .lead .avatar svg { width: 60%; height: 60%; fill: currentColor; opacity: 0.85; }
/* The email and the page link sit together at the foot of the card, so both line up across a row */
.lead__contact { margin-top: auto; padding-top: var(--gap-xs); }
.lead .lead__contact + .link-arrow { margin-top: 0; }
.connector .link-arrow { margin-top: var(--gap-xs); }
/* A Team member's own page: photo beside the bio, above it on a phone */
.person { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--gap-md); align-items: start; }
.person__photo { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--mn-mist); }
.person__photo--initials { display: grid; place-items: center; background: var(--mn-navy); color: var(--white); font-weight: 700; font-size: var(--text-3xl); }
.person__email { overflow-wrap: anywhere; font-weight: 700; }
@media (max-width: 620px) { .person { grid-template-columns: 1fr; gap: var(--gap-sm); } .person__photo { width: 160px; } }
.focus-list { display: flex; flex-wrap: wrap; gap: var(--gap-2xs); list-style: none; padding: 0; margin: 0 0 var(--gap-md); }
.focus-list li { background: var(--place-50, var(--mn-north-50)); color: var(--place-deep, var(--mn-north-deep)); font-weight: 700; font-size: var(--text-sm); padding: var(--gap-2xs) var(--gap-sm); }

.hearing { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap-sm); }
.hearing article { background: var(--white); padding: var(--gap-md); }
.hearing h3 { font-size: var(--text-lg); display: flex; gap: var(--gap-xs); align-items: baseline; }
.hearing h3::before { content: ""; flex: none; width: 10px; height: 14px; background: var(--place, var(--mn-north)); clip-path: polygon(0 0, 100% 50%, 0 100%); }
@media (max-width: 760px) { .hearing { grid-template-columns: 1fr; } }
/* What we're hearing as a bento (mn_render_place_hearing): four columns, the anchor (the quote, or the first point
   when there is none) two by two, the tiles around it sized by place.php so every row fills. Two columns on a
   tablet, where each wide or full tile is its own row and singles pair; one column on a phone, anchor first. */
.place-hearing h2 { margin-bottom: var(--gap-md); }
.bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bento > .quote-block, .bento__lead, .bento__tall { grid-column: span 2; grid-row: span 2; }
.bento__wide { grid-column: span 2; }
.bento__solo { grid-column: 1 / -1; }
.bento .bento__lead p { font-size: var(--text-xl); line-height: 1.4; }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento > .quote-block, .bento__lead, .bento__tall { grid-row: auto; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento > *, .bento > .quote-block { grid-column: auto; }   /* the quote's own span is the more specific rule */
}

/* Filter rows sit side by side (Richard, 2 Oct); on a hub the search box shares the line (.hub-bar). */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap-xs) var(--gap-md); margin-bottom: var(--gap-lg); }
.hub-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap-sm) var(--gap-md); margin-bottom: var(--gap-lg); }
.hub-bar .hub-search { flex: 0 1 300px; margin: 0; }
.hub-bar .filters { margin: 0; }
.hub-bar .search .input { min-height: 44px; padding-left: 44px; font-size: var(--text-md); }
.hub-bar .search svg { left: 14px; width: 18px; height: 18px; }
.filters__select { min-height: 40px; width: auto; padding: 0 40px 0 var(--gap-xs); font-size: var(--text-sm); font-weight: 600; appearance: none; cursor: pointer;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23141035' stroke-width='2'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center / 14px; }
.filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap-2xs); scrollbar-width: none; }
.filters__label { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-right: var(--gap-3xs); }
.chip { font: 600 var(--text-sm) var(--font); min-height: 40px; padding: 0 var(--gap-xs); border: 2px solid var(--mn-navy); background: var(--white); color: var(--ink); cursor: pointer; transition: background var(--t-fast), color var(--t-fast); }
.chip:hover { background: var(--mn-mist); }
.chip[aria-pressed="true"] { background: var(--mn-navy); color: var(--white); }
.search { position: relative; max-width: 640px; }
.search svg { position: absolute; left: var(--gap-sm); top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--ink); }
.search .input { padding-left: 52px; min-height: 60px; font-size: var(--text-lg); }
.results-count { font-size: var(--text-sm); font-weight: 600; color: var(--muted); margin-bottom: var(--gap-sm); }
.empty { padding: var(--gap-lg); background: var(--white); text-align: center; }
@media (max-width: 760px) {
  .hub-bar .hub-search, .filters__row { flex: 1 1 100%; }
  /* min-width 0: as flex items the bar and its rows would otherwise grow to their chips' width and push the page
     sideways; at 0 each row scrolls inside itself as intended. */
  .hub-bar .filters, .filters { min-width: 0; max-width: 100%; }
  .filters__row { min-width: 0; flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gap-sm) * -1); padding-inline: var(--gap-sm); scroll-padding-inline: var(--gap-sm); }
  .filters__row::-webkit-scrollbar { display: none; }
  .filters__label { flex: none; min-width: 0; margin-right: var(--gap-2xs); }
  .chip { flex: none; }
}
[data-hub] .cards { transition: opacity 0.2s ease, transform 0.2s ease; }
[data-hub] .cards[aria-busy="true"] { opacity: 0; transform: translateY(10px); }

.feature { display: grid; grid-template-columns: auto 1fr auto; gap: var(--gap-md); align-items: center; background: var(--mn-navy); color: var(--on-navy); padding: var(--gap-lg); position: relative; overflow: hidden; }
.feature h2 { color: var(--white); font-size: var(--text-2xl); margin-bottom: var(--gap-xs); }
.feature p { margin: 0; }
.feature__icon { width: 96px; height: 96px; background: var(--mn-orange); clip-path: polygon(0 0, 70% 0, 100% 50%, 70% 100%, 0 100%); }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; padding: var(--gap-md) var(--gap-sm); } }

@keyframes mn-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .tabs__panel.is-entering { animation: mn-in 0.5s var(--ease-out) 0.08s both; }
  [data-hub] .cards.is-entering > .card { animation: mn-in 0.5s var(--ease-out) both; }
  [data-hub] .cards.is-entering > .card:nth-child(2) { animation-delay: 0.04s; }
  [data-hub] .cards.is-entering > .card:nth-child(3) { animation-delay: 0.08s; }
  [data-hub] .cards.is-entering > .card:nth-child(n+4) { animation-delay: 0.12s; }
}

@media (max-width: 640px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  /* Buttons run full width with the label centred. A new place that holds a button joins this list. */
  .hero__actions .btn, .inline-form .btn, form > .btn, .route__cell .btn, .local-stories__actions .btn,
  .wp-block-buttons, .wp-block-buttons > .wp-block-button, .wp-block-buttons .wp-block-button__link { width: 100%; justify-content: center; }
}

.site-footer { background: var(--mn-navy); color: var(--on-navy-soft); padding-block: var(--gap-xl) var(--gap-md); font-size: var(--text-md); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--gap-md); padding-bottom: var(--gap-lg); }
.site-footer h2 { color: var(--white); font-size: var(--text-sm); font-weight: 700; letter-spacing: 0.14em; line-height: 1.2; text-transform: uppercase; max-width: none; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; }
/* The base row's own links only: the link inside the "Led by" sentence stays inline so the sentence wraps as text. */
.site-footer ul a, .site-footer__base > a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a { color: var(--on-navy-soft); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__logo { width: 280px; max-width: 100%; margin-bottom: var(--gap-sm); }
.site-footer__base { border-top: 1px solid var(--line-on-dark); padding-top: var(--gap-md); display: flex; align-items: center; justify-content: space-between; gap: var(--gap-sm); flex-wrap: wrap; font-size: var(--text-sm); }
.site-footer__grid p, .site-footer__base > * { text-wrap: balance; } /* no lone word or number on a phone's last line */
.site-footer .site-footer__credit { color: var(--white); font-weight: 700; }
.site-footer__cookies { gap: var(--gap-2xs); }
.site-footer__cookies svg { width: 18px; height: 18px; flex: none; color: var(--mn-orange); transition: transform 0.4s var(--ease); }
.site-footer__cookies:hover svg { transform: rotate(-20deg); }
@media (prefers-reduced-motion: reduce) { .site-footer__cookies svg { transition: none; } }
/* Socials: a row of 44px square targets under the strapline, line icons in the footer's text colour. */
.site-footer ul.site-footer__social { display: flex; flex-wrap: wrap; gap: var(--gap-xs); margin-top: var(--gap-sm); }
.site-footer ul.site-footer__social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-on-dark-strong); color: var(--white); transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.site-footer ul.site-footer__social a:hover, .site-footer ul.site-footer__social a:focus-visible { background: var(--white); color: var(--mn-navy); border-color: var(--white); text-decoration: none; }
.site-footer__social svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) { .site-footer ul.site-footer__social a { transition: none; } }
/* Four partner links since 13 Oct: each row fills the column, so a wrapped row never leaves a lone short box. */
.funders { display: flex; gap: var(--gap-xs); flex-wrap: wrap; margin-top: var(--gap-sm); }
.funders a, .funders > span { flex: 1 0 auto; border: 1px solid var(--line-on-dark-strong); padding: var(--gap-2xs) var(--gap-xs); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.06em; color: var(--white); text-decoration: none; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.funders a:hover, .funders a:focus-visible { background: var(--white); color: var(--mn-navy); border-color: var(--white); }
/* A white logo can't take the white hover: its box lifts with a veil instead. 30px tall under a 280px wordmark: clearly smaller (p7: never equal to or larger than the Move logo). */
.funders .funders__logo { flex: 0 0 auto; display: inline-flex; align-items: center; }
.funders a.funders__logo:hover, .funders a.funders__logo:focus-visible { background: var(--veil-on-dark); border-color: var(--white); }
.funders__logo img { display: block; width: auto; height: auto; max-height: 30px; max-width: 100%; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* Block wrappers: core blocks add a figure or a wrapper div around what the mock styled directly. */
.hero__media .wp-block-image, .split__media .wp-block-image, .signup__art .wp-block-image { margin: 0; height: 100%; }
.hero__media .wp-block-image img { height: 100%; }
.pennant h2 em { font-style: normal; color: var(--white); }
.wp-block-button.has-arrow .wp-block-button__link::after { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4'/%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 16 16' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform 0.3s var(--ease-fast); }
.wp-block-button.has-arrow .wp-block-button__link:hover::after { transform: translateX(4px); }
.hero .wp-block-button.is-style-outline .wp-block-button__link { color: var(--mn-navy); }
.hero .wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--mn-navy); color: var(--white); border-color: var(--mn-navy); }
.cards-empty { color: var(--muted); }
.cards-more { margin: var(--gap-md) 0 0; }
.signup__status { font-weight: 700; margin-top: var(--gap-xs); }
.signup__status:empty { display: none; }
.choices.signup__choices { margin: var(--gap-sm) 0; }
.signup__choices legend { color: var(--mn-navy); }
.signup .signup__status.notice { margin: var(--gap-xs) 0 0; }

/* County map (live). The drawn map shows until MapLibre has loaded, then steps aside. */
.map-card__hint { font-size: var(--text-sm); color: var(--on-navy-soft); }
/* MapLibre's own stylesheet loads later and sets .maplibregl-map { position: relative }, so this needs the extra class. */
.map-card__map .mn-map__canvas { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s var(--ease); }
.map-card__map.is-live .mn-map__canvas { opacity: 1; }
.map-card__map.is-live .map-card__fallback { opacity: 0; }
.map-card__map .map-card__fallback { transition: opacity 0.5s var(--ease); }
.map-pin { display: block; width: 32px; height: 40px; padding: 0; background: none; border: 0; cursor: pointer; color: var(--mn-north); }
.map-pin--west { color: var(--mn-west); }
.map-pin--orange { color: var(--mn-orange); }
.map-pin--navy { color: var(--mn-navy); }
.map-card .map-pin--navy { color: color-mix(in srgb, var(--white) 80%, var(--mn-navy)); } /* navy on the navy county card would vanish; off-white so the white border still reads */
.place-map .map-pin--orange path { stroke: var(--mn-navy); } /* orange alone is 2.4:1 on the light map */
.map-pin svg { display: block; width: 32px; height: 40px; overflow: visible; transform-origin: 50% 100%; transition: transform 0.2s var(--ease-fast); }
.map-pin path { fill: currentColor; stroke: var(--white); stroke-width: 2.5; stroke-linejoin: round; }
/* MapLibre positions the marker with a transform on the button, so the lift goes on the graphic inside. */
.map-pin:hover svg, .map-pin:focus-visible svg, .map-pin[aria-expanded="true"] svg { transform: translateY(-3px) scale(1.12); }
.map-pin:hover, .map-pin:focus-visible, .map-pin[aria-expanded="true"] { z-index: 2; }
.map-pin--label-left .map-pin__label { left: auto; right: 38px; }
.map-pin:focus-visible { outline: 3px solid var(--mn-orange); outline-offset: 3px; }
.map-pin__label { position: absolute; left: 38px; top: 6px; white-space: nowrap; font: 700 var(--text-sm)/1 var(--font); color: var(--white); text-shadow: 0 0 3px var(--mn-navy), 0 0 3px var(--mn-navy), 0 0 6px var(--mn-navy); pointer-events: none; }
:is(.map-card, .place-map) .maplibregl-popup-content { padding: var(--gap-sm); border-radius: 0; background: var(--white); color: var(--body); box-shadow: 0 12px 32px rgba(13, 10, 38, 0.35); font-family: var(--font); }
:is(.map-card, .place-map) .maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color: var(--white); }
:is(.map-card, .place-map) .maplibregl-popup-anchor-top .maplibregl-popup-tip { border-bottom-color: var(--white); }
:is(.map-card, .place-map) .maplibregl-popup { --focus: var(--mn-navy); }
/* Popups ease in. The fade stays under reduced motion (it is not movement), so it beats base.css's blanket cut. */
:is(.map-card, .place-map) .maplibregl-popup-content { animation: mn-pop-in 220ms var(--ease, ease-out) both; }
@keyframes mn-pop-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes mn-pop-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { :is(.map-card, .place-map) .maplibregl-popup-content { animation: mn-pop-fade 200ms ease-out both !important; } }
/* The close sits ON the area-colour rule: centred on its 4px line (content padding 20 + 2 = 22 = half of 44),
   with a 28px white square masking the line under it, so it reads "------ x". right: 4.4px puts the x glyph's
   right edge 20px in, mirroring the line's 20px start on the left. The hit area stays 44px. */
:is(.map-card, .place-map) .maplibregl-popup-close-button { top: 0; right: 4.4px; width: 44px; height: 44px; font-size: 22px; line-height: 1; color: var(--mn-north); border-radius: 0; background: linear-gradient(var(--white), var(--white)) center / 28px 28px no-repeat; transition: color var(--t-fast); }
:is(.map-card, .place-map) .map-popup--west .maplibregl-popup-close-button { color: var(--mn-west); }
:is(.map-card, .place-map) .map-popup--orange .maplibregl-popup-close-button { color: var(--mn-orange-deep); }
:is(.map-card, .place-map) .map-popup--navy .maplibregl-popup-close-button { color: var(--mn-navy); }
:is(.map-card, .place-map) .maplibregl-popup-close-button:hover, :is(.map-card, .place-map) :is(.map-popup--west, .map-popup--orange, .map-popup--navy) .maplibregl-popup-close-button:hover { background: linear-gradient(var(--white), var(--white)) center / 28px 28px no-repeat; color: var(--mn-orange); }
.map-pop { border-top: 4px solid var(--mn-north); padding-top: var(--gap-xs); padding-right: var(--gap-md); }
.map-pop--west { border-color: var(--mn-west); }
.map-pop__town { display: block; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mn-north-deep); margin-bottom: var(--gap-3xs); }
.map-pop--west .map-pop__town { color: var(--mn-west-deep); }
.map-pop--orange { border-color: var(--mn-orange); }
.map-pop--orange .map-pop__town { color: var(--mn-orange-deep); }
.map-pop--navy { border-color: var(--mn-navy); }
.map-pop--navy .map-pop__town { color: var(--mn-navy); }
.map-pop__name { font-size: var(--text-lg); margin-bottom: var(--gap-2xs); color: var(--ink); }
.map-pop p { font-size: var(--text-sm); line-height: 1.5; margin-bottom: var(--gap-xs); }
.map-pop .link-arrow { min-height: 44px; }
.map-card .maplibregl-ctrl-group { border-radius: 0; box-shadow: none; }
.map-card .maplibregl-ctrl-group button { width: 44px; height: 44px; }
.map-card .maplibregl-ctrl-attrib { font: 500 11px/1.4 var(--font); }
.map-card .maplibregl-ctrl-attrib a { color: var(--mn-navy); text-decoration: underline; text-underline-offset: 2px; }
.map-card .maplibregl-cooperative-gesture-screen { background: rgba(13, 10, 38, 0.72); color: var(--white); font: 700 var(--text-md)/1.4 var(--font); padding: var(--gap-md); }
@media (max-width: 900px) { .map-card__map { min-height: 420px; } .map-pin__label { font-size: var(--text-xs); } }
@media (forced-colors: active) { .map-pin path { fill: CanvasText; stroke: Canvas; } }
/* Controls in the card's navy, so nothing on the map outshines the pins. */
.map-card .maplibregl-ctrl-group { background: var(--mn-navy); border: 1px solid var(--line-on-dark-strong); }
.map-card .maplibregl-ctrl-group button + button { border-top: 1px solid var(--line-on-dark-strong); }
.map-card .maplibregl-ctrl-group button:hover { background: var(--mn-navy-soft); }
.map-card .maplibregl-ctrl-group .maplibregl-ctrl-icon { filter: invert(1); }
.map-card .maplibregl-ctrl-group button:focus-visible { outline: 3px solid var(--mn-orange); outline-offset: 2px; }
.map-card .maplibregl-ctrl-attrib, .map-card .maplibregl-ctrl-attrib.maplibregl-compact { background: rgba(32, 27, 53, 0.85); color: var(--on-navy-soft); }
.map-card .maplibregl-ctrl-attrib a { color: var(--white); }
.map-card .maplibregl-ctrl-attrib-button { filter: invert(1); background-color: transparent; }
.map-card .maplibregl-ctrl-attrib-button:focus-visible { outline: 3px solid var(--mn-navy); }

/* Place page. The area colour arrives as --place / --place-deep / --place-50 from the body class. */
.place-about__focus > h3:first-child { margin-top: 0; }
/* The map ends its row the way a paragraph does (--gap-sm), so the gap to the focus row is the usual --gap-lg. */
.place-about__map .place-map { margin-bottom: var(--gap-sm); }
/* Stacked on a phone, the chips sit above the lead card at the same --gap-lg as every other step in the section. */
.place-about__focus .focus-list { margin-bottom: var(--gap-sm); }

/* The light local map: part of the page, not a window - mist land, no frame, a single place pin. */
.place-map { margin: 0 0 var(--gap-md); }
.place-map__map { position: relative; aspect-ratio: 4 / 3; background: var(--mn-mist); overflow: hidden; }
.place-map__map .mn-map__canvas { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s var(--ease); }
.place-map__map.is-live .mn-map__canvas { opacity: 1; }
.place-map__fallback { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); transition: opacity 0.5s var(--ease); }
.place-map__map.is-live .place-map__fallback { opacity: 0; }
.place-map__caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--gap-3xs) var(--gap-sm); margin-top: var(--gap-2xs); font-size: var(--text-sm); font-weight: 700; color: var(--ink); }
.place-map__caption span { font-weight: 500; color: var(--muted); }
.map-pin--static { cursor: default; pointer-events: none; color: var(--place, var(--mn-north)); }
.place-map .map-pin__label { color: var(--mn-navy); text-shadow: 0 0 3px var(--white), 0 0 3px var(--white), 0 0 6px var(--white); }

/* Community assets on the map: off until asked for. The button sits above the map (so Tab goes on to the pins it
   turns on); pressed, it fills navy. The asset pins are smaller than the place's own, with a white ring inside a navy
   edge: the navy reads on the light map, the white keeps overlapping pins apart. A 44px target round a 20px pin. */
.place-map__toggle { display: inline-flex; align-items: center; gap: var(--gap-2xs); min-height: 44px; margin-bottom: var(--gap-xs); padding: 0 var(--gap-sm); border: 2px solid var(--mn-navy); background: var(--white); color: var(--mn-navy); font: 700 var(--text-sm)/1.2 var(--font); cursor: pointer; transition: background var(--t-fast), color var(--t-fast); }
.place-map__toggle[hidden] { display: none; }
.place-map__toggle svg { width: 14px; height: 18px; flex: none; }
.place-map__toggle path { fill: var(--place, var(--mn-north)); stroke: var(--mn-navy); stroke-width: 3; }
.place-map__toggle:hover { background: var(--mn-mist); }
.place-map__toggle[aria-pressed="true"] { background: var(--mn-navy); color: var(--white); }
.place-map__toggle[aria-pressed="true"] path { stroke: var(--white); }
.place-map__toggle:focus-visible { outline: 3px solid var(--mn-orange); outline-offset: 3px; }
.map-pin--asset { width: 20px; height: 25px; padding: 19px 12px 0; box-sizing: content-box; color: var(--place, var(--mn-north)); }
.map-pin--asset svg { width: 20px; height: 25px; }
.place-map .map-pin--asset path { stroke: var(--white); stroke-width: 3.5; }
.place-map .map-pin--asset .map-pin__edge { stroke: var(--mn-navy); stroke-width: 7; }
.map-pin--asset:focus-visible { outline-color: var(--mn-navy); }
.map-pop__list { list-style: none; margin: 0; padding: 0; max-height: 216px; overflow-y: auto; overscroll-behavior: contain; }
.map-pop__list li + li { border-top: 1px solid var(--line); }
.map-pop__list a { display: flex; align-items: center; min-height: 44px; font-size: var(--text-sm); font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.map-pop__list a:hover { color: var(--place-deep, var(--ink)); }
.map-pop__kind { display: block; margin-top: calc(-1 * var(--gap-2xs)); padding-bottom: var(--gap-2xs); font-size: var(--text-xs); color: var(--muted); }

/* Community assets: four groups, each a disclosure bar with its count; open, its entries run in columns. */
.place-assets h2 { margin-bottom: var(--gap-sm); }
.place-assets__intro { margin-bottom: var(--gap-md); }
.assets__group { border-top: 2px solid var(--mn-navy); }
.assets__group:last-child { border-bottom: 2px solid var(--mn-navy); }
.assets__summary { display: flex; align-items: center; gap: var(--gap-sm); min-height: 64px; padding: var(--gap-xs) 0; list-style: none; cursor: pointer; font-size: var(--text-lg); font-weight: 700; color: var(--ink); }
.assets__summary::-webkit-details-marker { display: none; }
.assets__summary::after { content: ""; flex: none; width: 12px; height: 12px; margin: 0 var(--gap-2xs) 4px auto; border-right: 3px solid var(--mn-navy); border-bottom: 3px solid var(--mn-navy); transform: rotate(45deg); transition: transform 0.2s var(--ease-fast); }
.assets__group[open] > .assets__summary::after { transform: rotate(-135deg); margin-bottom: -4px; }
/* Opening and closing slide where the browser can animate to the panel's own height; elsewhere, and with reduced
   motion, it snaps. Height is a layout animation, accepted here for one short panel at the chevron's pace. The clip
   margin keeps an entry's focus ring. A group opened from the map skips the slide (map.js). */
@media (prefers-reduced-motion: no-preference) {
  @supports (interpolate-size: allow-keywords) and selector(::details-content) {
    .assets__group { interpolate-size: allow-keywords; }
    .assets__group::details-content { block-size: 0; opacity: 0; overflow: clip; overflow-clip-margin: 8px; transition: block-size 0.2s var(--ease-fast), opacity 0.2s var(--ease-fast), content-visibility 0.2s allow-discrete; }
    .assets__group[open]::details-content { block-size: auto; opacity: 1; }
    .assets__group[data-instant]::details-content { transition: none; }
  }
}
.assets__summary:hover .assets__name { text-decoration: underline; text-underline-offset: 4px; }
.assets__summary:focus-visible { outline: 3px solid var(--mn-orange); outline-offset: 3px; }
.assets__count { display: inline-flex; align-items: center; justify-content: center; min-width: 2em; padding: var(--gap-3xs) var(--gap-2xs); background: var(--place-50, var(--mn-north-50)); color: var(--place-deep, var(--mn-north-deep)); font-size: var(--text-sm); line-height: 1; }
.assets__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--gap-md); margin: 0; padding: 0 0 var(--gap-md); list-style: none; }
.assets__item { display: flex; flex-direction: column; gap: var(--gap-3xs); padding: var(--gap-xs) 0; border-top: 1px solid var(--line); }
.assets__item:focus { outline: 3px solid var(--place, var(--mn-navy)); outline-offset: 4px; }
.assets__item:focus:not(:focus-visible) { outline-style: dotted; }
.assets__title { font-weight: 700; color: var(--ink); }
.assets__kind { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--place-deep, var(--mn-north-deep)); }
.assets__address { font-size: var(--text-sm); color: var(--muted); }
@media (max-width: 900px) { .assets__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .assets__list { grid-template-columns: 1fr; } .assets__summary { font-size: var(--text-md); } }
@media (forced-colors: active) {
  .assets__summary::after { border-color: CanvasText; }
  /* The navy fill is dropped in forced colours: pressed takes the system highlight instead. */
  .place-map__toggle[aria-pressed="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight; }
  .place-map__toggle[aria-pressed="true"] path { fill: HighlightText; stroke: Highlight; }
}
.place-map .maplibregl-ctrl-group { border-radius: 0; box-shadow: none; border: 1px solid var(--line); }
.place-map .maplibregl-ctrl-group button { width: 44px; height: 44px; }
.place-map .maplibregl-ctrl-group button + button { border-top: 1px solid var(--line); }
.place-map .maplibregl-ctrl-group button:focus-visible { outline: 3px solid var(--mn-navy); outline-offset: 2px; }
.place-map .maplibregl-ctrl-attrib { font: 500 11px/1.4 var(--font); }
.place-map .maplibregl-ctrl-attrib a { color: var(--mn-navy); text-decoration: underline; text-underline-offset: 2px; }
.place-map .maplibregl-cooperative-gesture-screen { background: rgba(13, 10, 38, 0.72); color: var(--white); font: 700 var(--text-md)/1.4 var(--font); padding: var(--gap-md); }

/* "What we're hearing" without headings (the copy has none yet): the marker moves to the words. */
.hearing .hearing__item--plain { position: relative; padding-left: calc(var(--gap-md) + 20px); }
.hearing__item--plain::before { content: ""; position: absolute; left: var(--gap-md); top: calc(var(--gap-md) + 0.45em); width: 10px; height: 14px; background: var(--place, var(--mn-north)); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.hearing__item--plain p { font-size: var(--text-lg); line-height: 1.5; color: var(--ink); margin: 0; }

/* Tabs: without JavaScript the list stays hidden and each panel shows under its own heading. */
.tabs__panel + .tabs__panel { margin-top: var(--gap-xl); }
[data-tabs].is-ready .tabs__heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[data-tabs].is-ready .tabs__panel + .tabs__panel { margin-top: 0; }
.tabs__panel:focus-visible { outline: 3px solid var(--mn-navy); outline-offset: 4px; }
.hero--place .btn--outline { color: var(--place-on, var(--white)); border-color: var(--place-on, var(--white)); }
.hero--place .btn--outline:hover { background: var(--place-on, var(--white)); color: var(--mn-navy); border-color: var(--place-on, var(--white)); }
.place--orange .hero--place .btn--outline:hover { color: var(--white); }

/* Single entries (Stories, Resources): content 60, sidebar 40. */
.entry-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--gap-xl); align-items: start; }
.entry-aside { display: grid; gap: var(--gap-sm); }
.entry-card { background: var(--mn-mist); padding: var(--gap-md); }
/* On a tinted section the card turns white, or its padding reads as text set in from the section edge. */
:is(.bg-mist, .bg-orange-50, .bg-north-50, .bg-west-50) .entry-card { background: var(--white); }
.entry-card__title { font-size: var(--text-lg); margin-bottom: var(--gap-xs); }
.entry-card p:last-child { margin-bottom: 0; }
.entry-author__head { display: flex; align-items: center; gap: var(--gap-sm); margin-bottom: var(--gap-xs); }
.entry-author__head .entry-card__title { margin: 0; }
.entry-author .avatar { flex: none; width: 56px; height: 56px; display: grid; place-items: center; background: var(--mn-navy); color: var(--white); font-weight: 700; }
.share { display: flex; flex-wrap: wrap; gap: var(--gap-2xs); list-style: none; padding: 0; margin: 0; }
.share__link { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: var(--mn-navy); color: var(--white); border: 0; cursor: pointer; transition: background var(--t-fast), color var(--t-fast); }
.share__link svg { width: 20px; height: 20px; fill: currentColor; }
.share__link:hover { background: var(--mn-orange); color: var(--mn-navy); }
.share__link:focus-visible { outline: 3px solid var(--mn-navy); outline-offset: 2px; }
.share__status { font-size: var(--text-sm); font-weight: 600; margin: var(--gap-2xs) 0 0; }
.share__status:empty { display: none; }
.related { list-style: none; padding: 0; margin: 0; }
.related li + li { border-top: 1px solid var(--line); }
.related__link { display: block; padding: var(--gap-xs) 0; color: var(--ink); text-decoration: none; }
.related__link:hover .related__title { text-decoration: underline; }
.related__date { display: block; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--gap-3xs); }
.related__title { font-weight: 700; line-height: 1.35; }
.entry-explore ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--gap-xs); }
.entry-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-sm); margin-top: var(--gap-xl); padding-top: var(--gap-md); border-top: 2px solid var(--mn-navy); }
.entry-nav__link { display: flex; flex-direction: column; gap: var(--gap-2xs); padding: var(--gap-sm); background: var(--mn-mist); color: var(--ink); text-decoration: none; transition: background var(--t-fast); }
.entry-nav__link:hover { background: var(--mn-mist-hover); }
.entry-nav__link--next { align-items: flex-end; text-align: right; }
.entry-nav__dir { display: inline-flex; align-items: center; gap: var(--gap-2xs); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.entry-nav__dir svg { width: 14px; height: 14px; }
.entry-nav__title { font-weight: 700; font-size: var(--text-md); line-height: 1.35; }
@media (max-width: 900px) {
  .entry-layout { grid-template-columns: minmax(0, 1fr); gap: var(--gap-lg); }
  .entry-card { padding: var(--gap-sm); }
}
@media (max-width: 560px) { .entry-nav { grid-template-columns: 1fr; } .entry-nav__gap { display: none; } }
.hub-search { margin-bottom: var(--gap-md); }
.card__media--icon { aspect-ratio: 16 / 7; }

/* Forms: the contact form. Choices are radios styled as chips; no dropdowns anywhere. */
.form { display: grid; gap: var(--gap-2xs); }
.form__pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-sm); }
.choices { border: 0; padding: 0; margin: 0 0 var(--gap-sm); min-width: 0; }
.choices legend { padding: 0; margin-bottom: var(--gap-2xs); font-size: var(--text-sm); font-weight: 700; color: var(--ink); }
.choices__row { display: flex; flex-wrap: wrap; gap: var(--gap-2xs); }
.choice { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice + .chip { display: inline-flex; align-items: center; }
.choice:checked + .chip { background: var(--mn-navy); color: var(--white); }
.choice:focus-visible + .chip { outline: 3px solid var(--focus); outline-offset: 2px; }
.field__hint { font-size: var(--text-sm); color: var(--muted); margin: 0 0 var(--gap-2xs); }
.input--area { min-height: 180px; padding-block: var(--gap-xs); resize: vertical; line-height: 1.55; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.notice { padding: var(--gap-sm) var(--gap-md); font-weight: 600; margin-bottom: var(--gap-md); }
.notice--ok { background: var(--mn-north-50); color: var(--mn-north-deep); }
.notice--error { background: var(--mn-orange-50); color: var(--mn-orange-deep); }
.notice:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 620px) { .form__pair { grid-template-columns: 1fr; gap: 0; } .form .btn { justify-self: stretch; justify-content: center; } }

/* Content pages. */
.prose { max-width: 72ch; overflow-wrap: break-word; }
.prose h2 { margin-top: var(--gap-lg); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--gap-md); font-size: var(--text-lg); }
.prose ul { padding-left: 1.2em; margin: 0 0 var(--gap-sm); }
.prose li + li { margin-top: var(--gap-2xs); }
/* Tables in legal and content pages (the cookie list): ruled rows, no boxes, text wraps inside the prose width so a
   phone never needs a sideways scroll; cookie names break anywhere. */
.prose .wp-block-table { margin: var(--gap-md) 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); line-height: 1.5; }
.prose th, .prose td { padding: var(--gap-xs) var(--gap-xs) var(--gap-xs) 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.prose th { font-weight: 700; color: var(--ink); border-bottom-color: var(--ink); }
.prose td:first-child { font-weight: 600; color: var(--ink); }
/* Legal pages: the text with an "On this page" list (mn/page-contents) sticky on its right, clear of the sticky
   header; the list comes first in the source so a keyboard or screen-reader user meets it before the text. Under
   1000px it sits above the text and does not stick. The current section is marked by the brand's triangle and ink. */
.legal { display: grid; grid-template-columns: minmax(0, 1fr) 300px; column-gap: var(--gap-xl); align-items: start; }
/* The text fills its column (Richard, 1 Oct: no dead gap before the list), so the two edges meet the container. */
.legal > .prose { grid-column: 1; grid-row: 1; max-width: none; }
.legal .prose h2 { font-size: var(--text-2xl); }
.legal .prose p, .legal .prose h2, .legal .prose h3 { max-width: none; }
.legal > .page-contents { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--header-height) + var(--gap-md)); max-height: calc(100vh - var(--header-height) - 2 * var(--gap-md)); overflow-y: auto; }
.page-contents__title { margin: 0 0 var(--gap-xs); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text, var(--mn-orange-deep)); max-width: none; }
.page-contents ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.page-contents li { border-bottom: 1px solid var(--line); }
.page-contents a { position: relative; display: flex; align-items: center; min-height: 44px; padding: var(--gap-2xs) 0 var(--gap-2xs) var(--gap-sm); font-size: var(--text-sm); line-height: 1.35; color: var(--body); text-decoration: none; transition: color var(--t-fast); }
.page-contents a::before { content: ""; position: absolute; left: 0; width: 8px; height: 10px; background: var(--mn-orange); clip-path: polygon(0 0, 100% 50%, 0 100%); opacity: 0; transition: opacity var(--t-fast); }
.page-contents a:hover { color: var(--ink); }
.page-contents a[aria-current="true"] { color: var(--ink); font-weight: 700; }
.page-contents a[aria-current="true"]::before { opacity: 1; }
@media (max-width: 1000px) {
  .legal { grid-template-columns: minmax(0, 1fr); }
  .legal > .prose, .legal > .page-contents { grid-column: 1; grid-row: auto; }
  .legal > .page-contents { position: static; max-height: none; margin-bottom: var(--gap-lg); }
}
@media (forced-colors: active) { .page-contents a[aria-current="true"] { text-decoration: underline; } }
/* The cookie list (Name, Type, Purpose, Lasts) stacks on a phone: one block per row, the name as its heading,
   the other cells labelled. The labels come from the column order, so they apply only to tables marked data-table. */
@media (max-width: 620px) {
  .prose .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .prose .data-table tr, .prose .data-table td { display: block; }
  .prose .data-table tr { padding: var(--gap-xs) 0; border-bottom: 1px solid var(--line); }
  .prose .data-table td { padding: 0; border: 0; }
  .prose .data-table td:first-child { margin-bottom: var(--gap-3xs); }
  .prose .data-table td:nth-child(2)::before { content: "Type: "; font-weight: 700; color: var(--ink); }
  .prose .data-table td:nth-child(3)::before { content: "Purpose: "; font-weight: 700; color: var(--ink); }
  .prose .data-table td:nth-child(4)::before { content: "Lasts: "; font-weight: 700; color: var(--ink); }
}
.quote-block .label { font-size: var(--text-xs); line-height: 1; color: var(--white); margin-bottom: var(--gap-sm); max-width: none; }
.contact-aside { display: grid; gap: var(--gap-sm); }
.entry-card .label { margin-bottom: var(--gap-xs); }

/* == route strip == */
/* The two-cell route card between the home hero and Our places (mn/route, inc/blocks/route.php): the places one
   way, the framework the other. Richard, 30 Sept: a card that sits clear of the hero, not a band touching it, with
   double the air around the content. The layer behind the places cell is cut as the brand's arrow angle, right-pointing on desktop
   and down-pointing under 900px (the hero's own breakpoint). It is a real element behind the content, so every
   link stays a full rectangle: the tap target never shrinks at the point and the focus ring, drawn outside the
   box, is never clipped. The layer stops at the card edge. The card sits the .container padding in from the
   viewport (40px, 20px on a phone) up to --width, and the air above and below it is equal: the section after
   it starts its content as far below the card as the card sits under the hero. */
.route { position: relative; overflow: hidden; width: min(100% - 2 * var(--gap-md), var(--width) - 2 * var(--gap-md)); margin: var(--gap-lg) auto 0; --route-point: var(--gap-md); }
.route + .section { padding-top: var(--gap-lg); }
.route--navy { background: var(--mn-navy); color: var(--on-navy-soft); --focus: var(--mn-orange); --accent-text: var(--mn-orange); --route-angle: var(--mn-navy-soft); --route-partners: var(--mn-navy); --route-partners-ink: var(--white); --route-partners-label: var(--mn-orange); --route-partners-focus: var(--mn-orange); }
/* The places layer on mist is white: orange-50 on mist is 1.02:1, a layer nobody can see. */
.route--mist { background: var(--mn-mist); color: var(--body); --route-angle: var(--white); --route-partners: var(--mn-navy); --route-partners-ink: var(--white); --route-partners-focus: var(--mn-orange); }
/* The partners cell sits on brand navy (Richard, 1 Oct: orange-deep read as brown and stuck out), with the orange label of its pair; on mist it is the navy block. Never a place colour.
   These rules style its button on both grounds. */
.route__cell--partners { background: var(--route-partners); color: var(--route-partners-ink); --focus: var(--route-partners-focus); }
.route__cell--partners .route__label { color: var(--route-partners-label, var(--route-partners-ink)); }
.route__cell--partners .btn--outline { color: var(--route-partners-ink); border-color: var(--route-partners-ink); }
.route__cell--partners .btn--outline:hover { background: var(--route-partners-ink); color: var(--route-partners); }
/* The inner grid fills the card edge to edge (no container margins inside a card); each cell carries its own air. */
.route__inner { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: none; padding-inline: 0; }
/* Gill, 13 Oct: the strip does the heavy lifting between framework and places, so it gets more presence: the label
   as a heading, more height, and the button under the text at every width (the 1fr row keeps both buttons level
   when one cell has more lines). */
.route__cell { position: relative; display: grid; grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; align-content: stretch; padding-block: var(--gap-lg); }
.route__cell:only-child { grid-column: 1 / -1; }
.route__cell--places { padding-left: var(--gap-md); padding-right: calc(var(--route-point) + var(--gap-md)); }
.route__cell--partners { padding-left: var(--gap-lg); padding-right: var(--gap-md); }
.route__angle { position: absolute; inset: 0; background: var(--route-angle); clip-path: polygon(0 0, calc(100% - var(--route-point)) 0, 100% 50%, calc(100% - var(--route-point)) 100%, 0 100%); }
/* Line at 16px minimum: this is a whole audience's wayfinding on a phone. */
.route__label, .route__line { position: relative; margin: 0; }
.route__label { font-size: var(--text-2xl); font-weight: 700; line-height: 1.15; text-wrap: balance; color: var(--accent-text); margin-bottom: var(--gap-sm); }
.route__line { font-size: var(--text-base); font-weight: 500; line-height: 1.5; text-wrap: pretty; }
.route__cell .btn { position: relative; grid-row: 3; justify-self: start; align-self: end; margin-top: var(--gap-md); }
@media (max-width: 900px) {
  .route { --route-point: var(--gap-sm); }
  .route__inner { grid-template-columns: 1fr; }
  .route__cell { padding-block: var(--gap-md); }
  .route__cell--places { padding-inline: var(--gap-sm); padding-bottom: calc(var(--route-point) + var(--gap-md)); }
  .route__cell--partners { padding-inline: var(--gap-sm); }
  .route__angle { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--route-point)), 50% 100%, 0 calc(100% - var(--route-point))); }
}
@media (max-width: 768px) {
  .route { width: calc(100% - 2 * var(--gap-sm)); margin-top: var(--gap-md); }
  .route + .section { padding-top: var(--gap-md); }
}
/* On a phone the button drops under the text at full width, as the hero's own buttons do at this width. */
@media (max-width: 640px) {
  .route__cell { grid-template-columns: 1fr; }
  .route__cell .btn { grid-column: 1; grid-row: auto; justify-content: center; margin-top: var(--gap-xs); }
}

/* == place: local stories == */
/* Local stories: heading, intro, the newest three, "All stories". */
.local-stories__intro { margin-bottom: var(--gap-lg); }
.local-stories__actions { margin-top: var(--gap-lg); }
/* Preview notice for signed-in visitors before launch (inc/staging-notice.php). */
.staging-notice { width: min(520px, calc(100vw - 32px)); padding: var(--gap-md); border: 0; border-radius: var(--radius); background: var(--white); color: var(--body); }
.staging-notice::backdrop { background: rgba(32, 27, 53, 0.6); }
.staging-notice__title { max-width: none; margin: 0 0 var(--gap-xs); font-size: var(--text-xl); color: var(--ink); }
.staging-notice p { margin: 0 0 var(--gap-sm); }
@media (max-width: 30em) { .staging-notice { padding: var(--gap-sm); } }
@media (forced-colors: active) { .staging-notice { border: 2px solid CanvasText; } }

/* Cookie consent (inc/consent.php, assets/js/consent.js): banner, preferences dialog, reload notice and the
   placeholder that stands in for a video until "Embedded media" is allowed. Square, Move tokens, spacing on the
   gap scale. Nothing here shows the markup: the theme prints it hidden and only consent.js removes that. */
:root {
  --marbl-consent-bg: var(--white);
  --marbl-consent-ink: var(--ink);
  --marbl-consent-muted: var(--muted);
  --marbl-consent-accent: var(--mn-navy);
  --marbl-consent-accent-ink: var(--white);
  --marbl-consent-border: var(--mn-navy);
  --marbl-consent-font: var(--font);
  --marbl-consent-z: 300;
  --marbl-consent-overlay: rgba(32, 27, 53, 0.6);
}
.marbl-consent,
.marbl-consent-embed {
    /* Site-mapped colours (neutral fallbacks) */
    --_bg: var(--marbl-consent-bg, #ffffff);
    --_ink: var(--marbl-consent-ink, #161415);
    --_muted: var(--marbl-consent-muted, #5f5c5d);
    --_accent: var(--marbl-consent-accent, #161415);
    --_accent-ink: var(--marbl-consent-accent-ink, #ffffff);
    --_border: var(--marbl-consent-border, #161415);
    --_z: var(--marbl-consent-z, 9000);
    --_overlay: var(--marbl-consent-overlay, rgba(0, 0, 0, 0.5));
    --_font: var(--marbl-consent-font, inherit);
    /* House measures */
    --_text: 16px;
    --_text-sm: 14px;
    --_title: 20px;
    --_line: 1.5;
    --_tap: 44px;
    --_pad: var(--gap-sm);
    --_gap: var(--gap-xs);
    --_gap-sm: var(--gap-2xs);
    --_edge: var(--gap-sm);
    --_width: 360px;
    --_prefs-width: 560px;
    --_rule: 1px;
    --_switch-w: 44px;
    --_switch-h: 24px;
    --_switch-knob: 16px;
    --_switch-pad: 2px;
    --_focus: 2px;
    --_dur: 0.25s;
    --_narrow: 480px;
    font-family: var(--_font);
    color: var(--_ink);
}

.marbl-consent [hidden],
.marbl-consent[hidden] {
    display: none !important;
}

/* == banner (bottom right box, non-modal) == */

.marbl-consent__banner,
.marbl-consent__notice {
    position: fixed;
    right: var(--_edge);
    bottom: var(--_edge);
    z-index: var(--_z);
    box-sizing: border-box;
    width: calc(100vw - (var(--_edge) * 2));
    max-width: var(--_width);
    padding: var(--_pad);
    background: var(--_bg);
    color: var(--_ink);
    border: var(--_rule) solid var(--_border);
    border-radius: 0;
    box-shadow: none;
    font-size: var(--_text);
    line-height: var(--_line);
    animation: marbl-consent-in var(--_dur) ease-out;
}

.marbl-consent__notice {
    display: flex;
    align-items: center;
    gap: var(--_gap);
}

.marbl-consent__notice-text {
    margin: 0;
    flex: 1 1 auto;
}

.marbl-consent__title {
    margin: 0 0 var(--_gap-sm);
    font-size: var(--_title);
    font-weight: 700;
    line-height: 1.2;
    color: var(--_ink);
}

.marbl-consent__intro,
.marbl-consent__desc {
    margin: 0 0 var(--_gap);
    font-size: var(--_text);
    color: var(--_ink);
}

.marbl-consent__desc {
    color: var(--_muted);
    margin-bottom: 0;
}

.marbl-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--_gap-sm);
    margin-top: var(--_gap);
}

/* Equal weight, on purpose: no button is dressed to be the "right" answer. */
.marbl-consent__btn {
    flex: 1 1 auto;
    box-sizing: border-box;
    min-height: var(--_tap);
    padding: var(--_gap-sm) var(--_gap);
    margin: 0;
    font: inherit;
    font-size: var(--_text);
    font-weight: 600;
    line-height: 1.2;
    color: var(--_accent-ink);
    background: var(--_accent);
    border: var(--_rule) solid var(--_accent);
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
    text-align: center;
}

.marbl-consent__btn:hover {
    color: var(--_accent);
    background: var(--_bg);
}

.marbl-consent__btn:focus-visible,
.marbl-consent__switch:focus-visible,
.marbl-consent__close:focus-visible,
.marbl-consent__policy a:focus-visible {
    outline: var(--_focus) solid var(--_ink);
    outline-offset: var(--_focus);
}

.marbl-consent__policy {
    margin: var(--_gap) 0 0;
    font-size: var(--_text-sm);
}

.marbl-consent__policy a {
    color: var(--_ink);
    text-decoration: underline;
}

/* == preferences (modal) == */

.marbl-consent__overlay {
    position: fixed;
    inset: 0;
    z-index: var(--_z);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--_edge);
    background: var(--_overlay);
}

.marbl-consent__prefs {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: var(--_prefs-width);
    max-height: calc(100vh - (var(--_edge) * 2));
    overflow: auto;
    padding: var(--_pad);
    background: var(--_bg);
    color: var(--_ink);
    border: var(--_rule) solid var(--_border);
    border-radius: 0;
    box-shadow: none;
    font-size: var(--_text);
    line-height: var(--_line);
    animation: marbl-consent-in var(--_dur) ease-out;
}

.marbl-consent__prefs:focus {
    outline: none;
}

.marbl-consent__prefs:focus-visible {
    outline: var(--_focus) solid var(--_ink);
    outline-offset: calc(var(--_focus) * -1);
}

.marbl-consent__cats {
    display: grid;
    gap: var(--_gap);
    margin: var(--_gap) 0;
}

.marbl-consent__cat {
    padding-top: var(--_gap);
    border-top: var(--_rule) solid var(--_border);
}

.marbl-consent__cat-head {
    display: flex;
    align-items: center;
    gap: var(--_gap-sm);
    margin-bottom: var(--_gap-sm);
}

.marbl-consent__label {
    flex: 1 1 auto;
    font-weight: 600;
}

.marbl-consent__always {
    font-size: var(--_text-sm);
    color: var(--_muted);
}

/* A real checkbox drawn as a square switch. */
.marbl-consent__switch {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 auto;
    box-sizing: border-box;
    width: var(--_switch-w);
    height: var(--_switch-h);
    margin: 0;
    padding: var(--_switch-pad);
    background: var(--_bg);
    border: var(--_rule) solid var(--_border);
    border-radius: 0;
    cursor: pointer;
    position: relative;
}

.marbl-consent__switch::before {
    content: "";
    position: absolute;
    top: var(--_switch-pad);
    left: var(--_switch-pad);
    width: var(--_switch-knob);
    height: var(--_switch-knob);
    background: var(--_muted);
    transition: transform var(--_dur) ease-out, background-color var(--_dur) ease-out;
}

.marbl-consent__switch:checked {
    border-color: var(--_accent);
}

.marbl-consent__switch:checked::before {
    background: var(--_accent);
    transform: translateX(calc(var(--_switch-w) - var(--_switch-knob) - (var(--_switch-pad) * 2) - (var(--_rule) * 2)));
}

.marbl-consent__switch:disabled {
    cursor: default;
    opacity: 0.6;
}

.marbl-consent__close {
    position: absolute;
    top: var(--_gap-sm);
    right: var(--_gap-sm);
    box-sizing: border-box;
    width: var(--_tap);
    height: var(--_tap);
    margin: 0;
    padding: 0;
    font: inherit;
    font-size: var(--_title);
    line-height: 1;
    color: var(--_ink);
    background: transparent;
    border: var(--_rule) solid transparent;
    border-radius: 0;
    cursor: pointer;
}

.marbl-consent__close:hover {
    border-color: var(--_border);
}

/* == embed placeholder == */

.marbl-consent-embed {
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--_gap-sm);
    aspect-ratio: 16 / 9;
    width: 100%;
    padding: var(--_pad);
    text-align: center;
    background: var(--_bg);
    border: var(--_rule) solid var(--_border);
    border-radius: 0;
    font-size: var(--_text);
    line-height: var(--_line);
}

.marbl-consent-embed__title {
    margin: 0;
    font-weight: 700;
}

.marbl-consent-embed__note {
    margin: 0;
    color: var(--_muted);
}

.marbl-consent-embed .marbl-consent__btn {
    flex: 0 0 auto;
}

/* The "Watch on" link in a video placeholder: a text link beside the button, never a second button. */
.marbl-consent-embed__watch {
    display: inline-flex;
    align-items: center;
    min-height: var(--_tap);
    color: var(--_ink);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

/* No player is coming (the banner switched off): the title and the link, with no 16:9 frame held open. */
.marbl-consent-embed--link {
    aspect-ratio: auto;
}

.marbl-consent-embed.is-active > :not(iframe) {
    display: none;
}

.marbl-consent-embed.is-active {
    padding: 0;
    border: 0;
}

.marbl-consent-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* == motion, width, forced colours == */

@keyframes marbl-consent-in {
    from { opacity: 0; transform: translateY(var(--_gap)); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .marbl-consent__banner,
    .marbl-consent__notice,
    .marbl-consent__prefs {
        animation: none;
    }
    .marbl-consent__switch::before {
        transition: none;
    }
}

@media (max-width: 480px) {
    .marbl-consent__banner,
    .marbl-consent__notice {
        right: 0;
        bottom: 0;
        left: 0;
        width: auto;
        max-width: none;
        border-width: var(--_rule) 0 0;
    }
    /* Zoomed in on a phone, the banner scrolls inside itself rather than covering the whole screen. */
    .marbl-consent__banner {
        max-height: 60vh;
        max-height: 60dvh;
        overflow-y: auto;
    }
    .marbl-consent__overlay {
        padding: 0;
        align-items: flex-end;
    }
    .marbl-consent__prefs {
        max-width: none;
        max-height: 100vh;
        max-height: 100dvh;
        border-width: var(--_rule) 0 0;
    }
    .marbl-consent__actions {
        flex-direction: column;
    }
}

@media (forced-colors: active) {
    .marbl-consent__banner,
    .marbl-consent__notice,
    .marbl-consent__prefs,
    .marbl-consent__cat,
    .marbl-consent-embed {
        border-color: CanvasText;
    }
    .marbl-consent__btn,
    .marbl-consent__close,
    .marbl-consent__switch {
        border-color: CanvasText;
        forced-color-adjust: none;
        color: ButtonText;
        background: ButtonFace;
    }
    .marbl-consent__switch::before {
        background: CanvasText;
    }
    .marbl-consent__switch:checked {
        background: Highlight;
    }
    .marbl-consent__switch:checked::before {
        background: HighlightText;
    }
}

