/* NAPC, Control Room on the live site (Ed, 21 Oct 2026: the full site mockup becomes napc.uk). Loaded after
   kit.css and cr.css on every page. Two parts: what the mockup left out (the menu on a phone, links in the
   footer), and the bridge that lets every page built before the Control Room (articles, case studies,
   services, forms) read the Blueprint palette and follow Blue, Dark and Light. */

/* ---- The menu on a phone: the mockup hid the six doors below 800px with no way back to them. With About added
   (11 Nov 2026) the seven doors wrap to two lines below about 980px, so the Menu button takes over from there. ---- */
.menu-btn{display:none;margin-left:12px;padding:8px 12px;border:1px solid color-mix(in srgb,var(--g-line) 70%,transparent);background:transparent;color:var(--g-ink);font:600 .8125rem/1 Inter,sans-serif;cursor:pointer}
@media(max-width:980px){
  .hd nav{display:none}
  .menu-btn{display:inline-block}
  .hd .row{grid-template-columns:auto 1fr}
  .hd .end{justify-self:end}
  .hd nav.open{display:flex;flex-direction:column;gap:0;position:absolute;left:0;right:0;top:100%;padding:8px 16px 16px;background:var(--g-bg);border-bottom:1px solid var(--g-line)}
  .hd nav.open a{padding:13px 2px;font-size:1rem;border-bottom:1px solid color-mix(in srgb,var(--g-line) 35%,transparent)}
  .hd nav.open a::after{display:none}
}
@media(max-width:540px){.modes button{padding:7px 5px;font-size:.625rem}.hd .tel{display:none}}

.ft address a{text-decoration:underline;text-underline-offset:.2em}
.ft-bar a{color:inherit;text-decoration:underline;text-underline-offset:.2em}

/* ---- The bridge. ----
   The older pages read one set of names (global.css: --bg, --surface, --ink, --muted, --line, --soft,
   --olive and the --c-* context colours, and a few Tailwind colours). Inside .legacy those names take the
   Control Room's ground, which kit.css and cr.css already switch for each mode. The page sits on the light
   ground in Blue and Light, and on the dark ground in Dark. */
:root{--g-panel:#fff;--g-hair:#c8d8e0;--acc2:#518196}
:root[data-mode=dark]{--g-panel:#152126;--g-hair:#2b3f47;--acc2:var(--lime)}

/* The font names Tailwind reads, pointed at the Control Room's own Inter and Archivo files. */
:root{--font-sans:Inter,ui-sans-serif,system-ui,sans-serif;--font-display:Archivo,Inter,'Helvetica Neue',Arial,sans-serif}

/* The old page ground had a soft green fade behind everything; the Control Room has the faint grid. */
body::before{display:none!important}

.legacy{
  --bg:var(--g-bg);--surface:var(--g-panel);--ink:var(--g-ink);--muted:var(--g-muted);--line:var(--g-line);--soft:var(--g-soft);--olive:var(--acc2);
  --c-bg:var(--g-bg);--c-text:var(--g-ink);--c-muted:var(--g-muted);--c-accent:var(--acc2);--c-link:var(--g-ink);--c-rule:var(--g-line);--c-panel:var(--g-panel);--c-focus:var(--acc2);
  --color-ink:var(--g-ink);--color-grey:var(--g-muted);--color-hedge:var(--g-line);--color-lawn:var(--g-soft);
  --color-steel-100:var(--g-soft);--color-steel-200:var(--g-hair);--color-steel-300:var(--g-hair);--color-steel-500:var(--g-line);--color-steel-600:var(--g-muted);--color-steel-900:var(--g-ink);
  --color-slate-deep:var(--acc2);--color-slate-deeper:var(--acc2);--color-lime-ink:var(--acc2);--color-office:var(--deep);
  display:block;padding-top:84px;color:var(--g-ink);font-family:var(--font-sans);font-size:1.0625rem;line-height:1.65
}
@media(max-width:800px){.legacy{padding-top:70px}}

/* Headings and links inside the older pages keep their own rhythm, not the Control Room's resets. */
.legacy h1,.legacy h2,.legacy h3{color:var(--c-text)}
.legacy a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em}
.legacy a.btn,.legacy a.link-arrow,.legacy a.no-underline,.legacy nav a{text-decoration:none}
.legacy ul.dash-list,.legacy .prose-sheet ul{list-style:none}
.legacy .prose-sheet ul:not(.dash-list){list-style:disc;padding-left:1.4em}
.legacy .prose-sheet ol{list-style:decimal;padding-left:1.4em}

/* Dark bands keep light words in every mode; they are blueprint blue now, not olive. */
.legacy .glass-dark,.legacy .metal{background:var(--deep);color:#f5f8fa;--c-text:#f5f8fa;--c-muted:#cadbe2;--c-accent:var(--lime);--c-rule:rgba(245,248,250,.25);--ink:#f5f8fa;--muted:#cadbe2;--line:#74a0b4}
.legacy .glass-dark .text-ink{color:#f5f8fa}

/* White sheets become the panel colour, so Dark has no glare. */
.legacy .bg-white{background-color:var(--g-panel)}

/* Buttons from the older pages, in the Control Room's colours. */
.legacy .btn-line{background:var(--lime);border-color:var(--lime);color:#172c36}
.legacy .btn-line:hover{background:var(--g-ink);border-color:var(--g-ink);color:var(--g-bg)}
.legacy .btn-slate{background:var(--deep);border-color:var(--deep);color:#f5f8fa}
.legacy .btn-slate:hover{background:var(--lime);border-color:var(--lime);color:#172c36}
.legacy .field{background:var(--g-panel);color:var(--g-ink);border-color:var(--g-line)}
.legacy .field::placeholder{color:var(--g-muted)}

/* Skip to content: out of sight until a keyboard reaches it. */
.skip-link{position:absolute;left:16px;top:-120px;z-index:100;padding:10px 16px;background:var(--lime);color:#172c36;font:600 .9375rem/1.3 Inter,sans-serif;text-decoration:none}
.skip-link:focus-visible{top:12px}

/* Article text: the typography plugin sets its own greys on .prose, which would stay dark in Dark mode. */
.legacy .prose,.legacy .prose-sheet{--tw-prose-body:var(--g-ink);--tw-prose-headings:var(--g-ink);--tw-prose-lead:var(--g-muted);--tw-prose-links:var(--g-ink);--tw-prose-bold:var(--g-ink);--tw-prose-counters:var(--acc2);--tw-prose-bullets:var(--acc2);--tw-prose-hr:var(--g-line);--tw-prose-quotes:var(--g-ink);--tw-prose-captions:var(--g-muted);--tw-prose-code:var(--g-ink);--tw-prose-th-borders:var(--g-line);--tw-prose-td-borders:var(--g-line)}

/* The first screen paints at once (Lighthouse, 23 Oct 2026: the hero's fade held the largest text back
   1.3 to 2.4 s). The headline still rises out of its mask; everything else above the fold is simply there. */
main > section:first-child .rv{opacity:1;transform:none;transition:none}

/* ---- Article text (Ed, 23 Nov 2026: "the blogs on the case studies ... sort out the formatting with the
   subheadings ... make sure the spacing is good enough to make it readable"). One rhythm for every blog
   post and case study: a clear gap above each subheading and a smaller one below it, a full line between
   paragraphs, lists and quotes set apart. ---- */
.legacy .prose-sheet{font-size:1.125rem;line-height:1.75;color:var(--g-ink);max-width:68ch}
.legacy .prose-sheet>*:first-child{margin-top:0}
.legacy .prose-sheet p{margin:0 0 1.25em}
.legacy .prose-sheet h2{margin:2.2em 0 .7em;font-size:clamp(1.55rem,1.2rem + .9vw,2rem);font-weight:400;line-height:1.2;letter-spacing:-.02em;color:var(--g-ink)}
.legacy .prose-sheet h3{margin:1.9em 0 .6em;font-size:1.3rem;font-weight:500;line-height:1.3;letter-spacing:-.01em;color:var(--g-ink)}
.legacy .prose-sheet h4{margin:1.6em 0 .5em;font-size:1.125rem;font-weight:600;line-height:1.4}
.legacy .prose-sheet h2::before{content:"";display:block;width:44px;height:3px;margin-bottom:.7em;background:var(--lime)}
.legacy .prose-sheet ul,.legacy .prose-sheet ol{margin:0 0 1.4em}
.legacy .prose-sheet li{margin:.45em 0;padding-left:.2em}
.legacy .prose-sheet li>p{margin:0}
.legacy .prose-sheet blockquote{margin:1.8em 0;padding:.4em 0 .4em 1.2em;border-left:3px solid var(--lime);font-style:normal;color:var(--g-ink)}
.legacy .prose-sheet blockquote p{margin:0 0 .6em}
.legacy .prose-sheet blockquote p:last-child{margin:0}
.legacy .prose-sheet blockquote p::before,.legacy .prose-sheet blockquote p::after{content:none}
.legacy .prose-sheet img,.legacy .prose-sheet figure{margin:2em 0}
.legacy .prose-sheet hr{margin:2.5em 0;border:0;border-top:1px solid var(--g-line)}
.legacy .prose-sheet table{margin:1.8em 0;width:100%;border-collapse:collapse;font-size:1rem}
.legacy .prose-sheet th,.legacy .prose-sheet td{padding:10px 12px;border-bottom:1px solid var(--g-line);text-align:left;vertical-align:top}
@media(max-width:640px){.legacy .prose-sheet{font-size:1.0625rem;line-height:1.7}}

/* The space check (Ed, 23 Nov 2026): in every list of titled rows (services, steps, policies, limits) the
   words sit a clear step below their title, not tucked up against it. */
main h3+p,main h4+p,main li>b+p{margin-top:10px}
main .h2+p:not(.lede),main h2+p:not([class]){margin-top:20px}
