/* ===========================================================================
   chrome.css — every page loads this: the site's two fonts, the header and
   the footer. Generated pages add hf.css for their bodies; the legal pages,
   the contact page and the parcel-returns page keep site.css for theirs.
   ---------------------------------------------------------------------------
   FONTS. Manrope (headings) and Inter (text) are SELF-HOSTED: the woff2 files
   sit in assets/fonts/ beside their licences (SIL Open Font License 1.1) and
   come from this site's own host, so privacy.html's "loads no fonts or images
   from anyone else's server" stays true and check-site.py holds it. Each file
   is the Latin subset of the family's variable font, as Google Fonts serves
   it, so one file carries every weight the pages use (Manrope 600 to 800,
   Inter 400 to 700). Where they came from: the README, "Fonts".

   Everything here is namespaced (hf-) or a literal value, never a site.css
   token, so the pages that load both stylesheets cannot have one overwrite
   the other.
   =========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin.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: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/manrope-latin.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;
}

/* The notch strip on phones. */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: #001b3b; }

.hf-skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: #ffffff; color: #001b3b; border-radius: 10px; padding: 12px 16px;
  font: 700 15px/1 Inter, "Segoe UI", system-ui, -apple-system, sans-serif; text-decoration: none;
}
.hf-skip:focus { top: 12px; }

.hf-shell {
  max-width: 1200px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* --- Header ------------------------------------------------------------- */
.hf-mast {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: #001b3b; border-bottom: 1px solid #123b66;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}
.hf-mast-in { display: flex; align-items: center; gap: 22px; min-height: 70px; }
.hf-lockup { display: inline-flex; align-items: center; background: #ffffff; border-radius: 10px; padding: 6px 12px; flex: none; }
.hf-lockup img { display: block; height: 30px; width: auto; }
.hf-nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.hf-nav a {
  color: #dbe8f8; text-decoration: none; font: 600 14.5px/1 Inter, "Segoe UI", system-ui, sans-serif;
  padding: 10px 12px; border-radius: 9px; white-space: nowrap;
}
.hf-nav a:hover { background: #082a50; color: #ffffff; }
.hf-nav a[aria-current="page"] { color: #ffffff; background: #082a50; box-shadow: inset 0 -2px 0 #5ca2f4; }
.hf-mast-right { display: flex; align-items: center; gap: 10px; flex: none; }
.hf-mast .masthead-signin {
  color: #dbe8f8; font: 600 14.5px/1 Inter, "Segoe UI", system-ui, sans-serif; text-decoration: none;
  padding: 10px 6px; display: inline-flex; align-items: center; min-height: 40px;
}
.hf-mast .masthead-signin:hover { color: #ffffff; }
.hf-cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px;
  border-radius: 12px; background: #5ca2f4; color: #001b3b; text-decoration: none;
  font: 700 15px/1 Inter, "Segoe UI", system-ui, sans-serif;
}
.hf-cta:hover { background: #83b8f7; color: #001b3b; }
.hf-mast a:focus-visible, .hf-foot a:focus-visible { outline: 3px solid #5ca2f4; outline-offset: 2px; border-radius: 8px; }
@media (max-width: 1080px) {
  .hf-mast-in { flex-wrap: wrap; gap: 6px 14px; padding-block: 10px; min-height: 0; }
  .hf-nav {
    order: 3; flex-basis: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .hf-nav::-webkit-scrollbar { display: none; }
  .hf-nav a { padding: 9px 10px; min-height: 44px; display: inline-flex; align-items: center; }
  .hf-mast-right { margin-left: auto; }
}
@media (max-width: 560px) {
  .hf-lockup { padding: 5px 9px; }
  .hf-lockup img { height: 24px; }
  .hf-cta { padding: 0 12px; font-size: 14px; }
}
@media (max-width: 360px) {
  .hf-mast-right { gap: 4px; }
  .hf-cta { padding: 0 10px; font-size: 13.5px; }
}

/* --- Footer ------------------------------------------------------------- */
.hf-foot {
  background: #001b3b; color: #c3d6ee;
  font: 400 14px/1.6 Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}
/* Two columns: the brand, then the link groups, which sit side by side in
   their own grid (the footer's <nav> holds all of them, so the outer grid has
   only two children; 1.27.1 fixed the three columns stacking in one). */
.hf-foot-in { padding-block: 44px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 3fr); gap: 28px 40px; }
.hf-foot-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 24px 28px; align-content: start; }
.hf-foot-brand p { margin: 14px 0 0; max-width: 34ch; }
.hf-foot-legal { color: #8aa3bd; font-size: 13px; }
.hf-foot-h { color: #ffffff; font: 700 13px/1 Inter, "Segoe UI", system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; }
.hf-foot ul { list-style: none; margin: 0; padding: 0; }
.hf-foot li a { color: #dbe8f8; text-decoration: none; display: inline-flex; align-items: center; min-height: 36px; }
.hf-foot li a:hover { color: #ffffff; text-decoration: underline; }
@media (pointer: coarse) { .hf-foot li a { min-height: 44px; } }
@media (max-width: 860px) { .hf-foot-in { grid-template-columns: minmax(0, 1fr); } }

/* --- Cookie choice (assets/analytics.js builds it) ----------------------- */
/* The banner asks once where it asks (assets/analytics.js, ASK_ZONES); the
   footer's "Cookie settings" opens it again, there and wherever a browser
   already holds an answer. Its two buttons look the same on purpose: saying
   no is as easy as saying yes. */
.hf-consent {
  position: fixed; z-index: 70; box-sizing: border-box;
  left: max(16px, env(safe-area-inset-left, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px));
  max-width: min(420px, calc(100vw - 32px)); padding: 16px 18px;
  /* Never taller than the window, so at 400% zoom the question scrolls
     instead of leaving the top of the screen. */
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto;
  background: #ffffff; color: #29445f; border: 1px solid #d7e3ee; border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 27, 59, .18);
  font: 400 14px/1.55 Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}
.hf-consent p { margin: 0; }
.hf-consent .hf-consent-title { margin-bottom: 4px; color: #001b3b; font: 800 16px/1.3 Manrope, "Segoe UI", system-ui, sans-serif; }
.hf-consent-items { margin: 8px 0; padding-left: 18px; }
.hf-consent-items li { margin: 4px 0 0; }
.hf-consent strong { color: #001b3b; font-weight: 700; }
.hf-consent a { color: #003f8a; font-weight: 600; }
.hf-consent-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.hf-consent-actions button {
  flex: 1 1 140px; min-height: 44px; padding: 0 16px; border-radius: 12px; cursor: pointer;
  background: #001b3b; color: #ffffff; border: 1px solid #001b3b;
  font: 700 15px/1 Inter, "Segoe UI", system-ui, sans-serif;
}
.hf-consent-actions button:hover { background: #082a50; }
/* The focus ring meets 3:1 on its own ground: the light-ground accent on the
   white box, the dark-ground one on the footer. */
.hf-consent a:focus-visible, .hf-consent button:focus-visible {
  outline: 3px solid #0056bb; outline-offset: 2px; border-radius: 8px;
}
.hf-consent-open:focus-visible { outline: 3px solid #5ca2f4; outline-offset: 2px; border-radius: 8px; }
.hf-consent-open {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0; margin: 0;
  background: none; border: 0; cursor: pointer; color: #dbe8f8; text-decoration: underline;
  font: 400 13px/1.6 Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}
.hf-consent-open:hover { color: #ffffff; }
@media (pointer: coarse) { .hf-consent-open { min-height: 44px; } }
@media print { .hf-consent { display: none; } }

/* --- The light page header, for the pages that keep site.css ------------- */
.hf-hero {
  background: linear-gradient(180deg, #e4f0fd 0%, #f5f9fd 100%); color: #29445f;
  padding-block: clamp(32px, 5vw, 64px); border-bottom: 1px solid #d7e3ee;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}
.hf-hero.compact { padding-block: clamp(24px, 4vw, 40px); }
.hf-kicker { display: inline-flex; margin-top: 16px; font: 800 12px/1.2 Inter, "Segoe UI", system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #003f8a; }
.hf-hero h1 {
  margin: 10px 0 0; color: #001b3b; font: 800 clamp(30px, 3.8vw, 48px)/1.06 Manrope, "Segoe UI", system-ui, sans-serif;
  letter-spacing: -.035em; text-wrap: balance;
}
.hf-hero .hf-lede { margin: 12px 0 0; font-size: 17px; line-height: 1.6; color: #29445f; max-width: 64ch; }
.hf-lockup { min-height: 40px; }
