/* After Normal: shared styles. No external fonts or requests. */
:root {
  color-scheme: light;
  --bg: #FFF3DA;
  --tint: #FFF3DA;
  --surface: #FFFFFF;
  --ink: #1B1B19;
  --muted: #4B4638;
  --rule: #E8D3BC;
  --control: #6F664F;
  /* The whole site wears one signal red, with amber, charcoal and cream beside it, like hazard signage. */
  --accent: #B3261E;
  --accent-ink: #FFFFFF;
  --accent-soft: #FFE3DE;
  --high: #A3190E;
  --emerg: #8E1A12;
  --med: #7A5200;
  --link: #82150E;
  --sel: #FFE9A8;
  --focus: #1B1B19;
  --road: #F0B429;
  --radius: 12px;
  --font-head: "Bahnschrift", "Roboto Condensed", "Arial Narrow", "Avenir Next Condensed", "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
/* One red theme for every page. The site is always light, whatever the device's dark-mode setting. Red also means "emergency" here,
   so the unanswered-question and emergency-number blocks add a second cue (an icon, a solid dark-red fill) and never rely on red alone. */

/* Each part of the site wears its own camouflage colourway (original patterns, see tools/make-camo.cjs) */
:root { --camo: url("camo-woodland.svg"); --camo-bg: url("camo-woodland-light.svg"); --camo-base: #434330; }
body[data-page="home"] { --camo: url("camo-woodland.svg"); --camo-bg: url("camo-woodland-light.svg"); --camo-base: #434330; }
body[data-page="plan"] { --camo: url("camo-grey.svg"); --camo-bg: url("camo-grey-light.svg"); --camo-base: #4A4D4F; }
body[data-page="now"] { --camo: url("camo-night.svg"); --camo-bg: url("camo-night-light.svg"); --camo-base: #23252A; }
body[data-page="guides"] { --camo: url("camo-desert.svg"); --camo-bg: url("camo-desert-light.svg"); --camo-base: #8A744A; }
body[data-page="shop"] { --camo: url("camo-forest.svg"); --camo-bg: url("camo-forest-light.svg"); --camo-base: #2F3B26; }
body[data-page="info"] { --camo: url("camo-grey.svg"); --camo-bg: url("camo-grey-light.svg"); --camo-base: #4A4D4F; }
*, *::before, *::after { box-sizing: border-box; }
.road { height: 56px; background: var(--camo-base) var(--camo) 0 0 / 220px 220px; border-top: 3px solid #1B1B19; }
.card { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1rem 1.15rem; margin: 1.1rem 0; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--camo-base); background-image: var(--camo); background-size: 360px 360px;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
}
.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1rem; }

[hidden] { display: none !important; }
h1, h2, h3, .brand {
  overflow-wrap: break-word;
  font-family: var(--font-head);
  font-stretch: condensed;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.12;
  margin: 0;
}
h1 { font-size: 2.1rem; font-weight: 800; }
h2 { font-size: 1.5rem; font-weight: 800; margin-top: 2rem; }
h3 { font-size: 1.15rem; font-weight: 700; margin-top: 1.4rem; }
p { margin: 0.7rem 0; }
a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 0.12em; }

/* headings we move focus to for screen readers need no visible ring */
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus, #app:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: 0.6rem 1rem; z-index: 10;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* header: bold colour band with a striped awning edge, like the shop fronts in the channel banner */
.site-header { background: var(--accent); color: var(--accent-ink); position: relative; }
.site-header::after { content: ""; display: block; height: 56px; border-top: 3px solid #1B1B19; border-bottom: 3px solid #1B1B19; background: var(--camo-base) var(--camo) 0 0 / 220px 220px; }
.site-header .wrap { max-width: 72rem; display: flex; align-items: center; justify-content: space-between; gap: 0.6rem 1.4rem; padding-top: 0.75rem; padding-bottom: 0.75rem; flex-wrap: wrap; }
.brand { font-size: 1.7rem; font-weight: 800; text-decoration: none; color: #FFFFFF; }
.brand span { color: #FFE08A; }
.tools { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.tools .label { font-size: 0.8rem; color: var(--accent-ink); margin-right: 0.2rem; }

/* camouflage trim: only ever a border or divider, never behind text */
.site-footer::before { content: ""; display: block; height: 40px; margin-top: -1.5rem; margin-bottom: 1.5rem; background: var(--camo-base) var(--camo) 0 0 / 220px 220px; border-top: 3px solid #1B1B19; border-bottom: 3px solid var(--accent); }

/* buttons */
.btn {
  appearance: none; cursor: pointer; font: inherit; font-weight: 700;
  min-height: 2.9rem; padding: 0.55rem 1.2rem; border-radius: var(--radius);
  border: 2px solid var(--ink); background: var(--surface); color: var(--ink);
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
}
.btn:hover { background: var(--bg); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.small { min-height: 2.4rem; padding: 0.25rem 0.7rem; font-size: 0.9rem; }

.site-footer { background: var(--accent-soft); border-top: 0; margin-top: 3rem; padding: 1.5rem 0 3rem; color: var(--ink); font-size: 0.9rem; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* main navigation */
.nav-main { display: flex; gap: 1.1rem; flex-wrap: wrap; align-items: center; }
.nav-main a { color: #FFFFFF; font-weight: 700; text-decoration: none; padding: 0.35rem 0.1rem; border-bottom: 3px solid transparent; }
.nav-main a:hover, .nav-main a[aria-current="page"] { border-bottom-color: #FFE08A; }


@media (max-width: 42rem) {
  .site-header .wrap { padding-top: 0.5rem; padding-bottom: 0.5rem; gap: 0.3rem 1rem; }
  .brand { font-size: 1.45rem; }
  .nav-main { gap: 0.2rem 1rem; font-size: 0.95rem; }
}

.nav-main .ns { display: none; }
@media (max-width: 42rem) { .nav-main .nl { display: none; } .nav-main .ns { display: inline; } }

/* colourful components shared by every page */
.site-header :focus-visible { outline: 3px solid #FFFFFF; box-shadow: 0 0 0 6px #1B1B19; }
.site-header .btn { background: #FFF8E6; color: #1B1B19; border-color: #1B1B19; }
main .card, main .route, main .product { border-top: 10px solid var(--accent); }
.page-title { background: linear-gradient(transparent 60%, #FFD66B 60%); display: inline-block; padding: 0 0.3rem; margin-left: -0.3rem; }
main .btn.primary:hover { filter: brightness(1.1); }
.wrap.page-wrap { max-width: 46rem; }

/* In an emergency: the strip on the home page and the emergency-number block in the plan and on the board */
.emergency-strip { background: var(--emerg); color: #FFFFFF; border-bottom: 6px solid var(--road); }
.es-inner { max-width: 72rem; margin: 0 auto; padding: 0.7rem 1rem 0.3rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.2rem; }
.es-tag { margin: 0; font-family: var(--font-head); font-stretch: condensed; text-transform: uppercase; font-weight: 800; letter-spacing: 0.06em; background: #FFE08A; color: #1B1B19; padding: 0.2rem 0.7rem; }
.es-main { margin: 0; font-size: 1.1rem; font-weight: 600; }
.es-main strong { font-family: var(--font-head); font-stretch: condensed; font-weight: 800; font-size: 1.9rem; line-height: 1; letter-spacing: 0.01em; }
.es-main strong.es-long { font-size: 1.35rem; letter-spacing: 0; }
.es-pick { margin: 0; }
.es-pick label { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.95rem; }
.es-pick select { font: inherit; font-size: 0.95rem; min-height: 2.4rem; max-width: 19rem; padding: 0.2rem 0.5rem; border: 2px solid #FFFFFF; border-radius: 8px; background: #FFFFFF; color: #1B1B19; }
.es-note { max-width: 72rem; margin: 0 auto; padding: 0 1rem 0.65rem; font-size: 0.9rem; color: #FFE9E5; }
.emergency-strip :focus-visible { outline: 3px solid #FFFFFF; box-shadow: 0 0 0 6px #1B1B19; }
ul.official > li:first-child, .official-list > li:first-child { background: var(--emerg); color: #FFFFFF; border-radius: var(--radius); padding: 0.8rem 1rem; }
ul.official > li:first-child .k, .official-list > li:first-child .k { color: #FFE08A; }
ul.official > li:first-child .emergency-number, .official-list > li:first-child .emergency-number { color: #FFFFFF; font-size: 2.4rem; }
ul.official > li:first-child .hint, .official-list > li:first-child .hint { color: #FFE9E5; }
@media (max-width: 34rem) { .es-main strong { font-size: 1.6rem; } .es-pick, .es-pick label { display: block; width: 100%; } .es-pick select { display: block; width: 100%; max-width: none; margin-top: 0.3rem; } }
.es-caveat { margin: 0.2rem 0 0; font-size: 0.9rem; color: #FFE9E5; flex-basis: 100%; }
.emergency-number.long, ul.official > li:first-child .emergency-number.long, .official-list > li:first-child .emergency-number.long { font-size: 1.5rem; letter-spacing: 0; }
.emergency-number { overflow-wrap: anywhere; }
@media print {
  body { background: #fff !important; } .site-header::after { display: none; } main .card, main .route, main .product { border-top-width: 2px; } .page-title { background: none; }
  .emergency-strip, .site-header, .site-footer, .skip { display: none !important; }
  .btn.primary, .hero .btn.primary { background: none !important; color: #000 !important; border-color: #000 !important; }
  .hero-bar, .hero .scene, .hero .grain, .hero .shade, .hero-video { display: none !important; }
  .hero, .hero-slab, .band { background: none !important; color: #000 !important; box-shadow: none !important; min-height: 0 !important; }
  .hero *, .band * { color: #000 !important; }
  ul.official > li:first-child, .official-list > li:first-child { background: none; color: #000; border: 2px solid #000; }
  ul.official > li:first-child *, .official-list > li:first-child * { color: #000 !important; }
}

/* Deep camouflage shows around the content. The content itself sits on a clear cream panel so text stays easy to read. */
main.wrap, main > .wrap { background-color: var(--tint); background-image: var(--camo-bg); background-size: 360px 360px; border-left: 3px solid #1B1B19; border-right: 3px solid #1B1B19; }
main.wrap { margin-top: 1.4rem; margin-bottom: 1.4rem; border-top: 3px solid #1B1B19; border-bottom: 3px solid #1B1B19; padding-bottom: 1.2rem; }
@media (max-width: 46rem) { main.wrap, main > .wrap { border-left-width: 0; border-right-width: 0; } }
@media print { main.wrap, main > .wrap { background: none !important; border: 0 !important; } }

/* "Plan now, before it's too late": a red reminder bar on the guides and shop pages (assets/nudge.js) */
.nudge { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #8E1A12; color: #FFFFFF; border-top: 4px solid #1B1B19; box-shadow: 0 -4px 14px rgba(0,0,0,0.3); transform: translateY(110%); transition: transform 0.35s ease; }
.nudge.on { transform: none; }
.nudge-in { max-width: 62rem; margin: 0 auto; padding: 0.6rem 3.2rem 0.6rem 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem; position: relative; }
.nudge-msg { margin: 0; font-size: 1.1rem; line-height: 1.25; flex: 1 1 14rem; }
.nudge-msg strong { text-transform: uppercase; letter-spacing: 0.02em; }
.nudge-sub { display: block; font-size: 0.9rem; opacity: 0.95; }
.nudge-btn { background: #F0B429 !important; color: #1B1B19 !important; border: 2px solid #1B1B19 !important; font-weight: 800; }
.nudge-x { position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%); width: 2.6rem; height: 2.6rem; border: 0; background: transparent; color: #FFFFFF; font-size: 1.8rem; line-height: 1; cursor: pointer; border-radius: 8px; }
.nudge-x:focus-visible, .nudge-btn:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }
body.has-nudge { padding-bottom: 5.5rem; }
@media (prefers-reduced-motion: reduce) { .nudge { transition: none; } }
@media print { .nudge { display: none !important; } body.has-nudge { padding-bottom: 0; } }

.share { margin: 0.6rem 0 1rem; } .copy-msg { margin-left: 0.5rem; font-weight: 700; }
@media print { .share { display: none; } }
