/* theme: base */
/*
 * Base theme design tokens. Child themes override any of these in their own tokens.css;
 * Branding settings (primary/accent colours) override the theme at the end.
 * Colours: text pairs meet WCAG AA (4.5:1) on --gn-color-bg.
 */
:root {
    --gn-color-bg: #ffffff;
    --gn-color-surface: #f5f5f4;
    --gn-color-text: #1c1917;
    --gn-color-muted: #57534e;
    --gn-color-headline: var(--gn-color-text);
    --gn-color-border: #e7e5e4;
    --gn-color-primary: #1f2937;
    --gn-color-on-primary: #ffffff;
    --gn-color-accent: #b91c1c;
    --gn-color-on-accent: #ffffff;
    --gn-color-breaking: #b91c1c;
    --gn-color-on-breaking: #ffffff;
    /* The play mark on video articles (NEWS-427): the accent unless a theme or the newsroom says otherwise. */
    --gn-color-video-mark: var(--gn-color-accent);
    --gn-color-on-video-mark: var(--gn-color-on-accent);
    /* A stamp on a picture in lists (NEWS-471): the breaking pair unless a theme says otherwise. */
    --gn-color-stamp: var(--gn-color-breaking);
    --gn-color-on-stamp: var(--gn-color-on-breaking);
    /* The sun of the weather box (NEWS-475): a sun's own yellow, not the brand's accent, which may be red. */
    --gn-color-weather-sun: #f2b100;
    /* The loud colour for headlines on pictures (NEWS-482): the breaking pair unless a theme says otherwise. */
    --gn-color-overlay-accent: var(--gn-color-breaking);
    --gn-color-on-overlay-accent: var(--gn-color-on-breaking);

    /* The device's own interface font: nothing to download, so the first paint is the final one.
       A theme or customer that wants a brand font declares it in "fonts" and names it here. */
    --gn-font-sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --gn-font-serif: ui-serif, Georgia, 'Times New Roman', serif;
    --gn-font-display: var(--gn-font-sans); /* headlines */
    --gn-font-body: var(--gn-font-sans);    /* running text */

    --gn-text-headline: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
    --gn-leading-tight: 1.15;
    --gn-text-body: 1.125rem;   /* running text: 18px reads well on a phone */
    --gn-text-lead: 1.25rem;
    --gn-text-small: 0.875rem;
    --gn-leading-body: 1.7;
    --gn-text-scale: 1;         /* the reader's text-size choice on articles (set by article-tools.js) */

    --gn-color-link: var(--gn-color-accent);

    /* Text over a picture (NEWS-342): a dark fade and the light text on it, fixed here so a coloured section cannot wash them out. */
    --gn-color-scrim: var(--gn-color-text);
    --gn-color-on-scrim: var(--gn-color-bg);

    /* A category's colour (NEWS-341): on labels, its page, its sections and articles; set per category in the compiled tokens. */
    --gn-color-category: var(--gn-color-accent);
    --gn-color-on-category: var(--gn-color-on-accent);

    /* The header and the menu bar (Appearance → header style, NEWS-301): on the page's own colours, the bar in the primary colour. */
    --gn-color-header-bg: var(--gn-color-bg);
    --gn-color-header-text: var(--gn-color-headline);
    --gn-color-header-muted: var(--gn-color-muted);
    --gn-color-header-border: var(--gn-color-border);
    --gn-color-header-rule: var(--gn-color-primary);   /* the line under the header */
    --gn-color-nav-bg: var(--gn-color-primary);
    --gn-color-nav-text: var(--gn-color-on-primary);
    --gn-color-nav-hover-bg: var(--gn-color-accent);
    --gn-color-nav-hover-text: var(--gn-color-on-accent);

    /* The footer (Appearance → footer, NEWS-337): on the surface colour by default. */
    --gn-color-footer-bg: var(--gn-color-surface);
    --gn-color-footer-text: var(--gn-color-text);
    --gn-color-footer-muted: var(--gn-color-muted);
    --gn-color-footer-border: var(--gn-color-border);
    --gn-color-footer-current: var(--gn-color-accent);   /* the menu entry of the page being read */

    /* Cards and the home page (Appearance → density and lead image): the gap inside a card, its title's size, the hero's columns. */
    --gn-card-gap: 0.875rem;
    --gn-text-card: 1.0625rem;        /* a card's title on a phone */
    --gn-text-card-wide: 1.1875rem;   /* and on wider screens */
    --gn-hero-columns: 2fr 1fr;       /* the lead story beside its smaller neighbours */

    /* Layout: the page width, the width of a comfortable line of text, and the space around them. */
    --gn-container: 72rem;
    --gn-measure: 44rem;
    --gn-side-width: 18.75rem;   /* the side column (NEWS-344): room for a 300-pixel ad */
    --gn-gutter: clamp(1rem, 4vw, 2rem);
    --gn-space-block: 1.25rem;
    --gn-space-section: clamp(1.25rem, 3vw, 2.5rem);

    --gn-radius-sm: 0.25rem;
    --gn-radius-md: 0.5rem;
    --gn-radius-lg: 0.75rem;

    --gn-shadow-card: 0 1px 2px rgb(0 0 0 / 0.06), 0 1px 3px rgb(0 0 0 / 0.1);
    --gn-shadow-raised: 0 0.25rem 1rem rgb(0 0 0 / 0.35); /* a control floating over an image (the play button) */
}

/* Dark mode is P2 (spec §5): values are ready, activated by data-color-scheme="dark" on <html>. */
:root[data-color-scheme='dark'] {
    --gn-color-bg: #0c0a09;
    --gn-color-surface: #1c1917;
    --gn-color-text: #f5f5f4;
    --gn-color-muted: #a8a29e;
    --gn-color-border: #292524;
    --gn-color-primary: #e5e7eb;
    --gn-color-on-primary: #111827;
    --gn-color-accent: #f87171;
    --gn-color-on-accent: #111827;
}

/* customer: surseexterne */
/*
 * Surse Externe: brand tokens from the identity sheet "B · Cadrul" (October 2026).
 * Primary (#15294b, deep navy, 14.5:1 on white) and accent (#a3521a, copper, 5.6:1 on white)
 * come from Branding settings (customer.json); these are the rest.
 */
:root {
    --gn-color-text: #14171c;
    --gn-color-headline: #15294b;
    --gn-color-muted: #4a505a;
    --gn-color-breaking: #a3521a;        /* the copper square of the mark: the one place the accent appears */
    --gn-color-on-breaking: #ffffff;

    --gn-font-display: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;   /* headlines and the wordmark */
    --gn-font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;     /* articles: the system font, for speed */
}

:root[data-color-scheme='dark'] {
    --gn-color-bg: #0f1417;              /* the dark surface of the identity sheet */
}

/* branding settings */
:root {
    --gn-color-primary: #15294b;
    --gn-color-on-primary: #ffffff;
    --gn-color-accent: #a3521a;
    --gn-color-on-accent: #ffffff;
}
