/* GetReady family stylesheet v2: the shared look of every GetReady site.
   Source of truth: the GetReady brand system (tokens.json + components/bundle.css).
   Loaded last on every page, so the family colours and type win over a site's own.
   v1 set tokens and type. v2 adds the shared header, top bar, footer, tiles and motion,
   so every GetReady site has the same logo size, header, footer and thumbnail behaviour.
   Do not edit per site: change the brand system and copy this file to all GetReady repos. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter-medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-semibold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/inter-bold.woff2") format("woff2"); }
:root {
  --bg: #ffffff;
  --bg-alt: #f6f4ee;
  --text: #0b0f14;
  --muted: #4a525c;
  --accent: #8a6a2b;
  --accent-text: #ffffff;
  --border: #e2dfd6;
  --badge-bg: #f3ecdc;
  --badge-text: #6b5220;
  --tone-green: #2f6b47;
  --tone-purple: #5a4a99;
  --tone-blue: #245d88;
  --tone-red: #9e3a32;
  --tone-teal: #0e6660;
  --mark-gold: #b8923f;
  --mark-steel-1: #1d2733;
  --mark-steel-2: #2f3d52;
  --mark-steel-3: #4a5c75;
  --mark-obsidian: #0b0f14;
  --shadow: 0 1px 2px rgb(11 15 20 / 0.04), 0 8px 24px rgb(11 15 20 / 0.06);
  --space-8: 8px;
  --space-12: 12px;
  --space-14: 14px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-64: 64px;
  --space-80: 80px;
  --radius-8: 8px;
  --radius-10: 10px;
  --radius-12: 12px;
  --radius-14: 14px;
  --radius-16: 16px;
  --radius-pill: 999px;
  --container: 1040px;
  --measure: 620px;
  --mark-size: 34px;
  --touch-target: 44px;
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f14;
    --bg-alt: #121821;
    --text: #e8e6df;
    --muted: #9aa3ad;
    --accent: #d4b06a;
    --accent-text: #0b0f14;
    --border: #252d38;
    --badge-bg: #2a2416;
    --badge-text: #e8d3a3;
    --tone-green: #86cfa3;
    --tone-purple: #b9acef;
    --tone-blue: #8cc2ea;
    --tone-red: #f19c92;
    --tone-teal: #7fd3cb;
    --mark-gold: #d4b06a;
    --mark-steel-1: #566b86;
    --mark-steel-2: #6a7f9a;
    --mark-steel-3: #7f93ad;
    --mark-obsidian: #445771;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
  }
}

/* Family type: Inter only, everywhere (brand rule, no exceptions) */
html body, html body :is(button, input, select, textarea, h1, h2, h3, h4, h5, h6, p, li, a, span, label, blockquote, figcaption) { font-family: var(--font-sans) !important; }
/* No gradient, serif or italic display headings */
html body :is(h1, h2, h3) { background-image: none !important; -webkit-text-fill-color: currentColor !important; }
/* Page titles in one colour: text, no italic or coloured words */
html body h1, html body h1 * { color: var(--text) !important; -webkit-text-fill-color: currentColor !important; font-style: normal !important; }

/* Category tones: data-tone="green|purple|blue|red|teal" on a tile, card or badge */
[data-tone="green"] { --tone: var(--tone-green); }
[data-tone="purple"] { --tone: var(--tone-purple); }
[data-tone="blue"] { --tone: var(--tone-blue); }
[data-tone="red"] { --tone: var(--tone-red); }
[data-tone="teal"] { --tone: var(--tone-teal); }

/* ---------- v2 components ---------- */

/* Header: one bar height, one logo size, one wordmark (no tagline) on every GetReady site.
   Brand rule: mark 34px, Inter Medium caps, 0.16em tracking, "GETREADY" in text colour, site name in gold. */
html body :is(.site-header, header.nav) {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent) !important;
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border: 0 !important; border-bottom: 1px solid var(--border) !important;
  color: var(--text) !important; box-shadow: none !important; margin: 0 !important;
  display: block !important; block-size: auto !important; min-block-size: 0 !important; padding: 0 !important;
}
/* A page wrapper around the header must not box it in */
html body > :is(.container, .wrap):has(> :is(.site-header, header.nav)) { max-inline-size: none !important; padding: 0 !important; margin: 0 !important; }
html body :is(.site-header, header.nav) > :is(.container, .wrap) {
  box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 4px 24px; max-inline-size: calc(var(--container) + 40px) !important; inline-size: 100%;
  margin-inline: auto !important; padding: 14px 20px !important; min-block-size: 72px; border: 0 !important;
}
html body .logo {
  display: inline-flex !important; align-items: center !important; gap: 10px !important;
  min-block-size: var(--touch-target); font-family: var(--font-sans) !important;
  font-size: 1.05rem !important; font-weight: 500 !important; letter-spacing: 0.16em !important;
  line-height: 1.2 !important; text-transform: uppercase !important; white-space: nowrap;
  color: var(--text) !important; text-decoration: none !important;
}
html body .logo img, html body .logo svg { display: block; inline-size: var(--mark-size) !important; block-size: var(--mark-size) !important; flex: none; margin: 0 !important; }
html body .logo > span { color: var(--text) !important; font: inherit !important; letter-spacing: inherit !important; margin: 0 !important; }
html body .logo > span > span { display: inline-block; margin-inline-start: 0.38em !important; color: var(--accent) !important; }
/* The mark gives a small, friendly turn of its diamonds on hover (no motion when reduced) */
@media (prefers-reduced-motion: no-preference) {
  html body .logo img { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
  html body .logo:hover img, html body .logo:focus-visible img { transform: rotate(90deg) scale(1.06); }
}
/* No tagline or extra block under the logo */
html body :is(.site-header, header.nav) :is(.logo-tagline, .tagline, .brand-tagline) { display: none !important; }
html body .gr-family-logo-stack { display: contents; }

/* Main navigation: plain links, same size and weight everywhere (no pills or boxed buttons) */
html body :is(.site-header, header.nav) nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px !important; margin: 0; }
html body :is(.site-header, header.nav) nav a {
  display: inline-flex; align-items: center; min-block-size: var(--touch-target); padding: 0 10px !important; margin: 0 !important;
  font-size: 0.95rem !important; font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none !important;
  color: var(--muted) !important; background: none !important; border: 0 !important; border-radius: var(--radius-8) !important;
  box-shadow: none !important; text-decoration: none !important; position: relative; white-space: nowrap;
}
html body :is(.site-header, header.nav) nav a:hover, html body :is(.site-header, header.nav) nav a[aria-current] { color: var(--accent) !important; }
html body :is(.site-header, header.nav) nav a::after {
  content: ""; position: absolute; inset-inline: 10px; inset-block-end: 8px; block-size: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
html body :is(.site-header, header.nav) nav a:is(:hover, :focus-visible, [aria-current])::after { transform: scaleX(1); }
@media (max-width: 600px) {
  html body :is(.site-header, header.nav) > :is(.container, .wrap) { padding: 10px 16px !important; min-block-size: 60px; column-gap: 10px; }
  html body .logo { font-size: 0.92rem !important; gap: 8px !important; }
  html body .logo img { inline-size: 28px !important; block-size: 28px !important; }
  html body :is(.site-header, header.nav) nav { margin-inline-start: -10px; }
  html body :is(.site-header, header.nav) nav a { font-size: 0.88rem !important; padding: 0 10px !important; }
}
/* Small phones: keep logo, menu and language button on one row (the header is sticky, so a second row costs screen on every page) */
@media (max-width: 400px) {
  html body .logo { font-size: 0.84rem !important; letter-spacing: 0.1em !important; }
  /* Headers that show their links instead of a Menu button: logo and language on top, links on one full row below */
  html body :is(.site-header, header.nav) > :is(.container, .wrap) > :is(.world-control, .world-settings, .network-controls) { order: 2; }
  html body :is(.site-header, header.nav) > :is(.container, .wrap) > :is(nav, .nav-links) { order: 3; flex-basis: 100%; }
}
@media (max-width: 380px) {
  html body .logo { font-size: 0.78rem !important; letter-spacing: 0.06em !important; }
}

/* Top bar (All sites / Language / Country): same width and type as the header */
html body .network-controls { background: var(--bg) !important; color: var(--text) !important; border: 0 !important; border-bottom: 1px solid var(--border) !important; margin: 0 !important; box-shadow: none !important; }
html body .network-controls .nc-inner { max-inline-size: calc(var(--container) + 40px) !important; padding: 2px 20px !important; justify-content: flex-end !important; margin-inline: auto !important; border: 0 !important; background: none !important; }
html body .network-controls :is(summary, .nc-current) { font-size: 0.875rem !important; min-block-size: var(--touch-target) !important; color: var(--text) !important; }
@media (max-width: 600px) { html body .network-controls .nc-inner { padding-inline: 16px !important; justify-content: flex-start !important; } }

/* Footer: the same panel, logo, columns and small print on every GetReady site */
html body footer:not(.card-footer):not(.article-footer) {
  background: var(--bg-alt) !important; color: var(--muted) !important; border-top: 1px solid var(--border) !important;
  padding: 40px 0 24px !important; margin: 48px 0 0 !important; font-size: 0.9rem !important; line-height: 1.6;
  max-inline-size: none !important; inline-size: auto !important; box-shadow: none !important; border-radius: 0 !important;
}
html body footer:not(.card-footer):not(.article-footer) > :is(.container, .wrap, .footer-main, div) {
  box-sizing: border-box; max-inline-size: calc(var(--container) + 40px) !important; margin-inline: auto !important; padding-inline: 20px !important;
}
html body footer p { margin: 4px 0 !important; }
html body footer .footer-bottom, html body footer .footer-bottom p { font-size: 0.85rem !important; }
html body footer .gr-footer-toggle { display: inline-flex !important; inline-size: auto !important; gap: 4px; margin: 0 0 8px !important; padding: 2px !important; background: none !important; border: 1px solid var(--border); border-radius: var(--radius-pill); }
html body footer .gr-footer-toggle a { display: inline-flex; align-items: center; min-block-size: 36px; padding: 0 12px; border-radius: var(--radius-pill); text-decoration: none; font-weight: 600; }
html body footer a { color: var(--accent); text-underline-offset: 3px; }
html body footer .footer-brand { max-inline-size: 420px; }
html body footer .footer-brand .logo { font-size: 0.95rem !important; margin-block-end: 6px; }
html body footer .footer-brand .logo img { inline-size: 28px !important; block-size: 28px !important; }
html body footer .footer-brand p { color: var(--muted); }
html body footer .gr-footer-top { margin-block-end: 18px !important; padding-block-end: 18px; border-bottom: 1px solid var(--border); }
html body footer :is(.footer-title) { color: var(--text) !important; font-weight: 700; }
html body footer .footer-list a { color: var(--muted); text-decoration: none; }
html body footer .footer-list a:hover { color: var(--accent); text-decoration: underline; }
html body footer .family-links a { font-weight: 600; text-decoration: none; }
html body footer .family-links a:hover { text-decoration: underline; }
html body footer .footer-bottom { margin-top: 24px !important; padding-top: 16px !important; border-top: 1px solid var(--border) !important; }
html body .site-notice { background: var(--accent) !important; color: var(--accent-text) !important; font-size: 0.85rem; line-height: 1.45; text-align: center; padding: 10px 16px !important; margin: 0 !important; }
html body .site-notice a { color: inherit; }

/* Tiles and thumbnails: one card look and one interactive motion on every GetReady site.
   Pictures, icons and drawings all sit in the same rounded frame and react the same way. */
html body :is(.tile, .tool-card, .ck-card, .hub-card, .g-family-card) {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-14) !important;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .3s ease;
}
html body :is(.tile, .tool-card, .ck-card, .hub-card, .g-family-card)::before {
  /* gold light sweep on hover or keyboard focus */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: linear-gradient(115deg, transparent 30%, color-mix(in srgb, var(--mark-gold) 22%, transparent) 50%, transparent 70%);
  background-size: 250% 100%; background-position: 120% 0;
}
html body :is(.tile, .tool-card, .ck-card, .hub-card, .g-family-card) :is(.card-icon, .ck-card-art, .card-top img, .tile-img, picture, img:not(.logo img)) {
  border-radius: var(--radius-10); transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
html body :is(.tile, .tool-card, .ck-card, .hub-card, .g-family-card):is(:hover, :focus-visible, :focus-within) {
  border-color: color-mix(in srgb, var(--mark-gold) 60%, var(--border)) !important; box-shadow: var(--shadow) !important;
}
@media (prefers-reduced-motion: no-preference) {
  html body :is(.tile, .tool-card, .ck-card, .hub-card, .g-family-card):is(:hover, :focus-visible) { transform: translateY(-4px); }
  html body :is(.tile, .tool-card, .ck-card, .hub-card, .g-family-card):is(:hover, :focus-visible)::before { opacity: 1; animation: gr-sweep 1.1s ease-out 1 both; }
  html body :is(.tile, .tool-card, .ck-card, .hub-card, .g-family-card):is(:hover, :focus-visible) .card-icon { animation: gr-pop .6s cubic-bezier(.2,.8,.2,1) 1 both; }
  html body :is(.tile, .tool-card, .ck-card, .hub-card, .g-family-card):is(:hover, :focus-visible) :is(.ck-card-art, picture, img:not(.logo img)) { transform: scale(1.05); }
  /* Tiles rise in once as they come on screen (browsers without scroll timelines just show them) */
  @supports (animation-timeline: view()) {
    html body :is(.tiles > .tile, .tool-card, .ck-card) { animation: gr-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  }
}
@keyframes gr-sweep { from { background-position: 120% 0; } to { background-position: -20% 0; } }
@keyframes gr-pop { 0% { transform: scale(1) rotate(0); } 40% { transform: scale(1.18) rotate(-8deg); } 70% { transform: scale(.96) rotate(4deg); } 100% { transform: scale(1.06) rotate(0); } }
@keyframes gr-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Hero: a slow faceted-diamond glow in the family colours behind every GetReady home hero */
html body :is(.hero, .home-hero, .gr-hero) { position: relative; isolation: isolate; }
html body :is(.hero, .home-hero, .gr-hero)::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset-block-start: 12%; inset-inline-end: 4%; block-size: min(76%, 260px); aspect-ratio: 1;
  background:
    conic-gradient(from 45deg at 50% 50%, var(--mark-gold) 0 25%, var(--mark-steel-3) 0 50%, var(--mark-obsidian) 0 75%, var(--mark-steel-2) 0);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); opacity: .08; filter: blur(.5px);
}
@media (prefers-reduced-motion: no-preference) {
  html body :is(.hero, .home-hero, .gr-hero)::after { animation: gr-drift 14s ease-in-out infinite alternate; }
}
@keyframes gr-drift { from { transform: translateY(0) rotate(0deg); } to { transform: translateY(14px) rotate(14deg); } }
@media (max-width: 600px) { html body :is(.hero, .home-hero, .gr-hero)::after { block-size: min(60%, 120px); opacity: .06; } }

/* Visitors who ask for less motion get none */
@media (prefers-reduced-motion: reduce) {
  html body *, html body *::before, html body *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
