/* Generated by pipeline/corpus_identity.py from the identity 'eu-law' and its look
   'journal' (pipeline/identity_values.py). Do not edit: change the identity and
   rebuild the pages. */
html:root {
  --font-display: "Open Sans", sans-serif;
  --font-sans: "Open Sans", sans-serif;
  --font-eyebrow: "Open Sans", sans-serif;
  --eyebrow-prefix: "";
  --hero-ground: none;
  --radius-xs: 0;
  --radius-sm: 0;
  --radius-control: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-pill: 0;
  --shadow-popover: 0 0 0 1px var(--rule-strong);
  --font-serif: "Open Sans", sans-serif;
  --weight-display: 600;
  --tracking-display: -0.015em;
  --weight-button: 600;
  --tab-mark: 4px;
  --control-height: 2.5rem;
  --bar-height: 4rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6.5rem;
  --type-display: 600 3.25rem/3.75rem var(--font-display);
  --type-title-1: 600 2.125rem/2.625rem var(--font-display);
  --type-title-2: 600 1.375rem/1.875rem var(--font-display);
  --type-title-3: 700 1rem/1.375rem var(--font-display);
  --type-reading-lg: 400 1.0625rem/1.875rem var(--font-serif);
  --type-reading: 400 1.125rem/1.875rem var(--font-serif);
  --type-reading-sm: 400 0.875rem/1.375rem var(--font-serif);
  --type-ui: 400 0.9375rem/1.375rem var(--font-sans);
  --type-ui-strong: 600 0.9375rem/1.375rem var(--font-sans);
  --type-label: 400 0.8125rem/1.125rem var(--font-sans);
  --type-eyebrow: 600 0.75rem/1rem var(--font-eyebrow);
  --type-ref: 400 0.8125rem/1.125rem var(--font-mono);
  --tracking-hero: -0.015em;
  --tracking-title-1: 0;
  --tracking-title-2: 0;
  --tracking-title-3: 0;
  --tracking-eyebrow: 0.1em;
  --measure: 45rem;
  --surface-page: light-dark(#eef2f8, #0e1424);
  --surface-raised: light-dark(#ffffff, #172036);
  --surface-sunken: light-dark(#dfe6f1, #0a0f1b);
  --rule: light-dark(#c9d3e3, #283452);
  --rule-strong: light-dark(#6b7a94, #7583a5);
  --ink: light-dark(#0f1a33, #f2f5fb);
  --ink-muted: light-dark(#4a5670, #b4bed4);
  --claim-open: light-dark(#4a5670, #b4bed4);
  --on-action: light-dark(#ffffff, #0e1424);
  --link: light-dark(#1f3f94, #a9bcf2);
  --accent: light-dark(#1f3f94, #a9bcf2);
  --accent-text: light-dark(#1f3f94, #a9bcf2);
  --accent-soft: light-dark(#e1e7f5, #22305a);
  --action: light-dark(#1f3f94, #a9bcf2);
  --brand-gold: light-dark(#1f3f94, #a9bcf2);
  --gold-text: light-dark(#1f3f94, #a9bcf2);
  --ink-eyebrow: light-dark(#4a5670, #b4bed4);
  --corpus-logo-light: url("/corpus-logo.svg?v=c954017beaba");
  --corpus-logo-dark: url("/corpus-logo-dark.svg?v=c954017beaba");
  --corpus-logo-ratio: 1012 / 248;
  --corpus-mark-light: url("/corpus-mark.svg?v=c954017beaba");
  --corpus-mark-dark: url("/corpus-mark-dark.svg?v=c954017beaba");
  --corpus-mark-ratio: 248 / 248;
}

/* EU-lovgivning's signature (JOURNAL_LOOK, its design system v2, 2026-11-18): the bar's second
   line — Ask · Read · Study — as a solid blue band under the white first line, the same blue in
   both schemes. Every site's bar has the two lines since 2026-11-18 (web-shared/site-bar.css,
   web-corpus/src/styles.css); only this look colours the second one. Appended to the corpus's
   generated corpus.css (pipeline/corpus_identity.py 	oken_sheet), so it reaches the passage
   pages' bar (.site-sections) and the chat's (.site-header__sections) alike, and only this
   look's site. The lockup stays on the white line: on the band its tile would vanish.

   Every selector starts html:root, as the tokens do, so it outranks the app's own header rules,
   which Vite loads after this sheet.

   Wide screens only. On a phone the sections live in the menu, as on every other site. */

html:root {
  /* The band and its labels: 9.6:1 and 6.5:1, white on the tile's deep blue. */
  --band: #1f3f94;
  --on-band: #ffffff;
  --on-band-muted: #c9d5f7;
}

/* The bar itself is white (the raised surface) across the whole window, over the blue-grey page:
   the design system's white header that the band hangs from. */
html:root .site-bar,
html:root .site-header {
  background: var(--surface-raised);
  box-shadow: 0 0 0 100vmax var(--surface-raised);
  clip-path: inset(0 -100vmax);
}

@media (min-width: 48rem) {
  html:root .site-sections,
  html:root .site-header__sections {
    border-block-start: 0;
    /* The band bleeds to both edges of the window while the tabs stay on the frame. */
    background: var(--band);
    box-shadow: 0 0 0 100vmax var(--band);
    clip-path: inset(0 -100vmax);
  }

  html:root .site-tabs a,
  html:root .site-header__section {
    color: var(--on-band-muted);
    border-block-end-color: transparent;
    margin-block-end: 0;
  }

  html:root .site-tabs a:hover,
  html:root .site-header__section:hover {
    color: var(--on-band);
  }

  html:root .site-tabs a[aria-current="page"],
  html:root .site-header__section[aria-current="page"] {
    color: var(--on-band);
    border-block-end-color: var(--on-band);
  }

  /* A page's own action on the band: outlined in white. */
  html:root .site-sections .ask {
    border-color: var(--on-band-muted);
    color: var(--on-band);
  }

  html:root .site-sections .ask:hover {
    background: none;
    border-color: var(--on-band);
  }

  /* On the band the focus ring turns white, as the design system says. */
  html:root .site-tabs a:focus-visible,
  html:root .site-sections .ask:focus-visible,
  html:root .site-header__section:focus-visible {
    outline-color: var(--on-band);
  }
}

/* An Article's number centred over its text in the deep blue, as the Official Journal sets it
   (the design system's Article). From the page's own `data-provision` (pipeline/page_markup.py
   `_provision_sign`), so the markup says what the provision is and only this look centres it.
   The law stays in Open Sans with open leading: EU law reads as a structured document. */
html:root {
  --accent-deep: light-dark(#142b6b, #d0daf8);
}

/* The section's own heading (version, tier, citation) first, then the Article's number, then
   its paragraphs. */
html:root .version[data-provision] {
  display: flex;
  flex-direction: column;
}

html:root .version[data-provision] > h2 { order: 0; }
html:root .version[data-provision] > :not(h2) { order: 2; }

html:root .version[data-provision]::before {
  order: 1;
  content: attr(data-provision);
  display: block;
  margin-block: 0.25rem 0.75rem;
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
}

html:root .version[data-provision] > h2 + * {
  margin-block-start: 0;
}

/* The Article's paragraphs with their numbers hung in a 48 px margin (the design system's
   `.st-pn`, 14 px 600 muted), the text on the measure beside them. The number takes the text's
   leading so the two share a baseline. The source does not tell a point from a paragraph, so
   points are not nested further. */
html:root .passage > .version[data-provision] {
  max-inline-size: calc(var(--measure) + 3rem);
}

html:root .version[data-provision] .verse {
  position: relative;
  padding-inline-start: 3rem;
}

html:root .version[data-provision] .verse .number {
  position: absolute;
  inset-inline-start: 0;
  font: 600 0.875rem/1.875rem var(--font-sans);
  color: var(--ink-muted);
  vertical-align: baseline;
}

/* The Article's title, which the source prints as its heading row (verse 0), centred under its
   number as the Official Journal sets it: 18/26 semibold. */
html:root .version[data-provision] .verse[data-v="0"] {
  margin-block: 0 var(--space-4);
  padding-inline-start: 0;
  text-align: center;
}

html:root .version[data-provision] .verse[data-v="0"] .text {
  font: 600 1.125rem/1.625rem var(--font-display);
}

html:root .version[data-provision] .verse[data-v="0"] .number { display: none; }

/* Eyebrows here are muted ink, never the accent (the design system's eyebrow). */
html:root :is(.version h2, .chapter-eyebrow, .parallel__head, .parallel__label, .alongside__table th, .alongside__label) {
  color: var(--ink-muted);
}

/* A group's heading on the index is a section heading here: the look's title-2. */
html:root .book-group h2 {
  font: var(--type-title-2);
  letter-spacing: var(--tracking-title-2);
}

/* The index's tiles, 176 px and 8 px apart (the design system's tile). The kinds are a mosaic of
   three blues, never a row of one shade: the first in the accent, any further solid tile in the
   mid or the deep blue by turn, white on all three. A quiet tile is white, its count in the
   accent (Jack, 2026-11-19), so today the mosaic is the first tile alone. */
html:root {
  --accent-mid: light-dark(#2f55b5, #7f9be6);
}
html:root .tiles {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 8px;
}
html:root .tile { min-block-size: 11rem; }
html:root .tiles li:nth-child(even) .tile:not(.tile--quiet) {
  border-color: var(--accent-mid);
  background: var(--accent-mid);
}
html:root .tiles li:nth-child(odd):not(:first-child) .tile:not(.tile--quiet) {
  border-color: var(--accent-deep);
  background: var(--accent-deep);
}

/* An answer's section (the design system's AnswerHeadings): semibold sans over a 1 px rule, its
   number on a 28 px square tile in the deep blue, echoing the tiles. Structured and roomy, as
   the site's Articles are. The shared rules are the app's (web-corpus/src/styles.css). */
html:root .answer h3 {
  padding-block-end: var(--space-2);
  border-block-end: 1px solid var(--rule);
  font: 600 1.3125rem/1.75rem var(--font-sans);
}

html:root .answer h3 .st-hn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 1.75rem;
  block-size: 1.75rem;
  /* The tile's middle on the title's middle, in the flow of the heading's first line. */
  vertical-align: 0.15em;
  background: var(--accent-deep);
  color: var(--on-action);
  font: 700 0.9375rem/1 var(--font-sans);
}
