/* The house look for Access Compass's static pages (guides, services, entitlements, Help and policies). Generated from src/fonts.css and
   src/styles.css values; fonts are copies of src/assets/fonts (licences and checksums in fonts/README.md). */
/*
 * The house fonts, self-hosted (no outside font request). Files, sources,
 * versions, licences (SIL OFL 1.1) and checksums: src/assets/fonts/README.md.
 * Latin subset only; other scripts fall back to the system font.
 * font-display: swap shows text at once in the stand-in below, then swaps.
 */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/static-pages/fonts/rp-fraunces-opsz-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: 'Fraunces';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('/static-pages/fonts/rp-fraunces-opsz-italic.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: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static-pages/fonts/rp-atkinson-400.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: 'Atkinson Hyperlegible';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/static-pages/fonts/rp-atkinson-400-italic.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: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static-pages/fonts/rp-atkinson-700.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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static-pages/fonts/rp-plexmono-400.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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static-pages/fonts/rp-plexmono-500.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;
}

/*
 * Stand-ins shown until a font arrives, sized to match it so text does not
 * re-wrap and push the page down when the font loads. Atkinson: measured on
 * 3 October 2026 against Arial (text width 99.1%, ascent 95.8%, descent 29.3%
 * of the font size). Fraunces: measured against Georgia the same day, Fraunces
 * sets about 5% WIDER than Georgia, so the stand-in is scaled UP to 105% (an
 * earlier 86% was copied from the Hub's display cut and had it the wrong way
 * round: the home heading re-wrapped when the font arrived).
 * IBM Plex Mono needs none: Courier New has the same advance width.
 */
@font-face {
  font-family: 'Atkinson Fallback';
  src: local('Arial'), local('ArialMT');
  font-style: normal;
  font-weight: 400;
  size-adjust: 99.1%;
  ascent-override: 95.8%;
  descent-override: 29.3%;
}

@font-face {
  font-family: 'Atkinson Fallback';
  src: local('Arial Italic'), local('Arial-ItalicMT');
  font-style: italic;
  font-weight: 400;
  size-adjust: 99.1%;
  ascent-override: 95.8%;
  descent-override: 29.3%;
}

@font-face {
  font-family: 'Atkinson Fallback';
  src: local('Arial Bold'), local('Arial-BoldMT');
  font-style: normal;
  font-weight: 700;
  size-adjust: 99.1%;
  ascent-override: 95.8%;
  descent-override: 29.3%;
}

@font-face {
  font-family: 'Fraunces Fallback';
  src: local('Georgia');
  font-style: normal;
  font-weight: 300 500;
  size-adjust: 105%;
}

@font-face {
  font-family: 'Fraunces Fallback';
  src: local('Georgia Italic'), local('Georgia-Italic');
  font-style: italic;
  font-weight: 300 500;
  size-adjust: 105%;
}

@font-face {
  font-family: 'Fraunces Fallback';
  src: local('Georgia Bold'), local('Georgia-Bold');
  font-style: normal;
  font-weight: 600 700;
  size-adjust: 105%;
}

@font-face {
  font-family: 'Fraunces Fallback';
  src: local('Georgia Bold Italic'), local('Georgia-BoldItalic');
  font-style: italic;
  font-weight: 600 700;
  size-adjust: 105%;
}

/* House tokens for the static pages, the same values as the app (src/styles.css).
   Light: ink #1d2433 on paper #f6efe3 13.59:1, on card #ffffff 15.53:1; soft ink #3f4856 on card 9.42:1;
   link #9a4e14 on card 6.58:1, on paper 5.76:1.
   Dark: cream #f5ede0 on navy #111a2e 14.92:1, on card #17223a 13.63:1; soft #c3bbae on card 8.32:1;
   link #e9a65b on card 7.71:1, on navy 8.44:1.
   A saved app choice (gbe.theme) sets data-theme before paint; without one, the device setting decides. */
:root {
  color-scheme: light;
  --bg: #f6efe3; --card: #ffffff; --ink: #1d2433; --ink-soft: #3f4856; --line: #cfc6b3; --accent: #9a4e14;
  --font-body: 'Atkinson Hyperlegible', 'Atkinson Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', 'Fraunces Fallback', Georgia, 'Times New Roman', serif;
  /* --on-brand on --brand 5.98:1; --brand on --bg 5.23:1. */
  /* --brand on --card 5.98:1; --ok on --bg 5.67:1; --ok on --card 6.48:1. */
  /* --warn on --bg 5.19:1; --warn on --card 5.93:1; --danger on --bg 5.75:1. */
  /* --danger on --card 6.57:1; --link-visited on --bg 7.25:1; --link-visited on --card 8.29:1. */
  /* --line-strong on --bg 3.25:1; --line-strong on --card 3.71:1; --focus on --bg 5.12:1. */
  /* --focus on --card 5.85:1; --ink on --tip-bg 14.28:1; --ink-soft on --tip-bg 8.50:1. */
  /* --accent on --tip-bg 5.56:1. */

  --brand: #1f6f63;
  --on-brand: #ffffff;
  --ok: #1d6b45;
  --warn: #8a5a00;
  --danger: #b42318;
  --link-visited: #5b3f8c;
  --line-strong: #8c8472;
  --focus: #b43c0a;
  --tip-bg: color-mix(in srgb, var(--brand) 6%, var(--card));
  --shadow: 0 2px 10px rgba(22, 36, 58, 0.12);
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #111a2e; --card: #17223a; --ink: #f5ede0; --ink-soft: #c3bbae; --line: #34425e; --accent: #e9a65b;
  /* --on-brand on --brand 7.48:1; --brand on --bg 7.44:1. */
  /* --brand on --card 6.80:1; --ok on --bg 9.63:1; --ok on --card 8.80:1. */
  /* --warn on --bg 9.38:1; --warn on --card 8.57:1; --danger on --bg 8.01:1. */
  /* --danger on --card 7.31:1; --link-visited on --bg 9.58:1; --link-visited on --card 8.74:1. */
  /* --line-strong on --bg 4.10:1; --line-strong on --card 3.75:1; --focus on --bg 6.19:1. */
  /* --focus on --card 5.65:1; --ink on --tip-bg 12.35:1; --ink-soft on --tip-bg 7.54:1. */
  /* --accent on --tip-bg 6.88:1. */

  --brand: #6fb7a8;
  --on-brand: #0f1a2c;
  --ok: #8fcfa9;
  --warn: #f0b36a;
  --danger: #f2998a;
  --link-visited: #c9b8f0;
  --line-strong: #6b7c99;
  --focus: #f97316;
  --tip-bg: #1b2a45;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #111a2e; --card: #17223a; --ink: #f5ede0; --ink-soft: #c3bbae; --line: #34425e; --accent: #e9a65b;
    /* --on-brand on --brand 7.48:1; --brand on --bg 7.44:1. */
    /* --brand on --card 6.80:1; --ok on --bg 9.63:1; --ok on --card 8.80:1. */
    /* --warn on --bg 9.38:1; --warn on --card 8.57:1; --danger on --bg 8.01:1. */
    /* --danger on --card 7.31:1; --link-visited on --bg 9.58:1; --link-visited on --card 8.74:1. */
    /* --line-strong on --bg 4.10:1; --line-strong on --card 3.75:1; --focus on --bg 6.19:1. */
    /* --focus on --card 5.65:1; --ink on --tip-bg 12.35:1; --ink-soft on --tip-bg 7.54:1. */
    /* --accent on --tip-bg 6.88:1. */

    --brand: #6fb7a8;
    --on-brand: #0f1a2c;
    --ok: #8fcfa9;
    --warn: #f0b36a;
    --danger: #f2998a;
    --link-visited: #c9b8f0;
    --line-strong: #6b7c99;
    --focus: #f97316;
    --tip-bg: #1b2a45;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  }
}
body { font-family: var(--font-body); background: var(--bg); color: var(--ink); }
/* Long words (email addresses, place names) and table cells wrap, so a 320px screen at 200% text never scrolls sideways. */
body, td, th, caption { overflow-wrap: anywhere; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 600; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Fixed house pair in all three modes: cream on ink 13.59:1; amber ring on its ink surround 7.45:1. */
.skip-link { position: absolute; top: 0; left: 0; z-index: 1000; transform: translateY(-300%); background: #1d2433; color: #f6efe3; padding: .75rem 1.25rem; font-weight: 700; font-size: 1rem; text-decoration: underline; border-radius: 0 0 8px 0; }
.skip-link:hover { color: #f6efe3; }
.skip-link:focus, .skip-link:focus-visible { transform: translateY(0); outline: 3px solid #e9a65b; outline-offset: 0; box-shadow: 0 0 0 6px #1d2433; }
main:focus { outline: none; }
@media print {
  :root, :root[data-theme='dark'], :root:not([data-theme]) {
    color-scheme: light;
    --bg: Canvas; --card: Canvas; --ink: CanvasText; --ink-soft: CanvasText; --accent: CanvasText;
    --brand: CanvasText; --on-brand: Canvas; --ok: CanvasText; --warn: CanvasText; --danger: CanvasText;
    --link-visited: CanvasText; --line-strong: CanvasText; --focus: CanvasText; --tip-bg: Canvas; --shadow: none;
  }
}
@media (forced-colors: active) {
  body, .container { background: Canvas; color: CanvasText; }
  *, *::before, *::after { border-color: CanvasText !important; outline-color: Highlight !important; }
  a, a:visited, a * { color: LinkText !important; }
  .btn, .button, button, .skip-link { background: Canvas !important; color: LinkText !important; forced-color-adjust: none; }
  .skip-link:focus, .skip-link:focus-visible { box-shadow: none; }
}
