/* ==========================================================================
   site-frame.css — ONE look for every page (#160, owner 2026-10-30: "it is not like the app look like").
   Linked as the LAST stylesheet in <head> of every page by scripts/site-chrome.mjs (and by ssr-layout.mts),
   so it wins over each page's own inline styles at equal specificity.
   - The footer block (.eut-footer) applies everywhere, the app included.
   - The frame rules apply only to <body data-frame="read|wide">, which site-chrome.mjs sets on the standalone
     pages. The app (index.html) is the model and has no data-frame.
   ========================================================================== */

/* ---- 1. The app's colours, on every standalone page ---------------------------------------------------
   Every page family already colours itself through these variables, so one block brings the guides, pricing,
   salary, EU Knowledge, landing, legal and SSR pages onto the app's palette. */
:root {
  --eu-blue: #003399;
  --eu-blue-deep: #001a55;
  --eu-gold: #FFCC00;
  --gold: #003399;            /* the guides' gold labels → the app's blue */
  --ink: #0a0e27;
  --ink-soft: #1c2240;
  --paper: #fafaf7;
  --paper-2: #fafaf7;         /* the guides' lighter band → plain paper, like the app */
  --paper-warm: #f5f2ea;
  --bg: #fafaf7;              /* legal pages */
  --surface: #ffffff;
  --line: #e5e1d4;
  --line-soft: #efece2;
  --muted: #6b6b6b;
}
body.dark-mode {
  --eu-blue: #5d8aff;
  --eu-blue-deep: #3a64d9;
  --gold: #9ab4ff;
  --ink: #e8eaf3;
  --ink-soft: #c8cde0;
  --paper: #0d1320;
  --paper-2: #0d1320;
  --paper-warm: #151b2c;
  --bg: #0d1320;
  --surface: #1a2236;
  --line: #2b3350;
  --line-soft: #232944;
  --muted: #9aa1b8;
  color-scheme: dark;
}

/* ---- 2. Two widths only: reading pages 720 px, wide pages 1180 px (the header's width) ---------------- */
body[data-frame="read"] { --max: 720px; }
body[data-frame="wide"] { --max: 1180px; }
body[data-frame] .eup-wrap,
body[data-frame] .wrap,
body[data-frame] .mp-wrap,
body[data-frame] .impressum-content { max-width: var(--max); margin-left: auto; margin-right: auto; }
body[data-frame] .eup-wrap,
body[data-frame] .wrap,
body[data-frame] .impressum-content { padding-left: 24px; padding-right: 24px; box-sizing: border-box; }
body[data-frame] .impressum-content { padding-top: 40px; padding-bottom: 40px; }

/* ---- 3. Page background and text, like the app -------------------------------------------------------- */
body[data-frame] { background: var(--paper); color: var(--ink); }
body[data-frame="read"] { font-size: 1.0625rem; line-height: 1.7; }
body.dark-mode[data-frame] { background: var(--paper); color: var(--ink); }
/* Links in the page content only — never the header's buttons (Go Premium keeps its own colours). */
body.dark-mode[data-frame] :is(article, main, .eup-wrap, .wrap, .impressum-content, .hero, .mp-hero, .page-header) a:not([class*="btn"]):not([class*="cta"]) { color: #9ab4ff; }

/* The guides' gradient band behind the title → plain paper, like the app's sections. */
body[data-frame] .hero { background: none; border-bottom: 0; text-align: left; }
body[data-frame] .mp-hero { background: none; }
/* Title blocks line up with the content column below them (same left edge as the cards / the article). */
body[data-frame] .hero-inner { padding-bottom: 12px; }
/* EU Knowledge's title block has no inner wrapper: pad it so its edge matches the column (cards start at the same x). */
body[data-frame] .hero:not(:has(> .hero-inner)) { padding-left: max(24px, calc((100% - var(--max)) / 2 + 24px)); padding-right: max(24px, calc((100% - var(--max)) / 2 + 24px)); }
body[data-frame] .hero:not(:has(> .hero-inner)) p { max-width: 62ch; margin-left: 0; margin-right: 0; }
/* The header's inner row is border-box on every page (a page without a global box-sizing rule shifted it 24 px). */
body[data-frame] .eut-header-inner { box-sizing: border-box; }
body[data-frame] .page-header-inner { padding-left: 24px; padding-right: 24px; box-sizing: border-box; }

/* ---- 4. One type scale --------------------------------------------------------------------------------- */
/* Label above a title */
body[data-frame] .kicker,
body[data-frame] .hero .kicker,
body[data-frame] .eup-eyebrow,
body[data-frame] .mp-kicker,
body[data-frame] .section-eyebrow,
body[data-frame] .hero-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--eu-blue);
}
/* Page title */
body[data-frame] h1,
body[data-frame] .mp-hero h1,
body[data-frame] .page-header h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; color: var(--ink);
}
body[data-frame] h1 em { font-style: normal; color: inherit; font-weight: inherit; }
/* Lead line under the title: not italic, like the app */
body[data-frame] .standfirst,
body[data-frame] .eup-lede,
body[data-frame] .mp-standfirst,
body[data-frame] .page-header p.lede,
body[data-frame] .hero > p:not([class]) {
  font-size: 1.15rem; line-height: 1.55; font-style: normal; color: var(--ink-soft);
}
/* Section titles */
body[data-frame] article h2,
body[data-frame] main h2,
body[data-frame] .eup-wrap h2,
body[data-frame] .wrap h2 {
  font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; color: var(--ink);
}
body[data-frame] article h3,
body[data-frame] main h3 { font-size: 1.15rem; font-weight: 700; color: var(--ink); }
/* Small notes: plain, not italic (the app uses no italics for interface text). */
body[data-frame] .section-sub,
body[data-frame] .section-note,
body[data-frame] .gsearch-status,
body[data-frame] .gs-hint,
body[data-frame] .ex-intro,
body[data-frame] .ex-disclaimer { font-style: normal; }
/* No drop cap: the first letter is an ordinary letter, like the rest of the site. */
body[data-frame] .lede::first-letter {
  float: none; font-size: inherit; font-weight: inherit; line-height: inherit; padding: 0; margin: 0; color: inherit;
}

/* ---- 5. Dark mode for the families that never had one (literal light colours) ------------------------ */
body.dark-mode[data-frame] .card,
body.dark-mode[data-frame] .callout,
body.dark-mode[data-frame] .note,
body.dark-mode[data-frame] details,
body.dark-mode[data-frame] table,
body.dark-mode[data-frame] .faq-item { background: var(--surface); border-color: var(--line); color: var(--ink); }
body.dark-mode[data-frame] th,
body.dark-mode[data-frame] td { border-color: var(--line); }
/* Literal light backgrounds in single families (pricing cards, the salary form, the EU Knowledge AI note). */
body.dark-mode[data-frame] .plan,
body.dark-mode[data-frame] .euc-field select,
body.dark-mode[data-frame] .ai-notice { background: var(--surface); color: var(--ink); border-color: var(--line); }

/* ---- 6. The footer (every page) ------------------------------------------------------------------------ */
footer.eut-footer {
  display: block; margin: 64px 0 0; padding: 32px 24px 40px; background: transparent; border-top: 1px solid var(--line, #e5e1d4);
  color: var(--muted, #6b6b6b); font-size: 13px; line-height: 1.55; text-align: center;
  font-family: Inter Tight, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif; font-style: normal;
}
footer.eut-footer .eut-footer-inner { max-width: 760px; margin: 0 auto; padding: 0; }
footer.eut-footer p { margin: 0; max-width: none; font-size: inherit; color: inherit; }
footer.eut-footer .eut-footer-brand { font-size: 14px; color: var(--ink, #0a0e27); margin-bottom: 12px; }
footer.eut-footer .eut-footer-brand strong { color: var(--eu-blue, #003399); font-weight: 700; }
footer.eut-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 0 0 10px; }
footer.eut-footer nav a { color: var(--ink, #0a0e27); text-decoration: none; font-weight: 500; }
footer.eut-footer nav a:hover { color: var(--eu-blue, #003399); text-decoration: underline; }
footer.eut-footer .eut-footer-legal { margin-bottom: 18px; }
footer.eut-footer .eut-footer-legal a { color: var(--muted, #6b6b6b); font-weight: 400; }
footer.eut-footer .eut-footer-independent { font-weight: 600; color: var(--ink-soft, #1c2240); margin-bottom: 6px; }
footer.eut-footer .eut-footer-ai { font-size: 12px; text-align: left; color: var(--muted, #6b6b6b); }
footer.eut-footer .eut-footer-ai strong { color: var(--ink-soft, #1c2240); }
body.dark-mode footer.eut-footer { border-top-color: #2b3350; color: #9aa1b8; }
body.dark-mode footer.eut-footer .eut-footer-brand,
body.dark-mode footer.eut-footer nav a,
body.dark-mode footer.eut-footer .eut-footer-independent,
body.dark-mode footer.eut-footer .eut-footer-ai strong { color: #e8eaf3; }
body.dark-mode footer.eut-footer .eut-footer-brand strong { color: #9ab4ff; }
body.dark-mode footer.eut-footer .eut-footer-legal a { color: #9aa1b8; }
/* The header brand is EU blue; on the dark header it needs the light blue every dark page uses for links. */
body.dark-mode .eut-brand { color: #9ab4ff; }
@media (max-width: 600px) {
  /* bottom room for the round tour button, which sits over the last lines on a phone */
  footer.eut-footer { padding: 28px 16px 96px; margin-top: 48px; }
  footer.eut-footer nav { gap: 6px 14px; }
}
