/* The act sites' stylesheet (frontend/templates/actsite/): Eureka's brand (navy, blue, the rule, Source Serif 4 for
   headings, as frontend/static/frontend/site.css), system sans-serif for the chrome; the legal text itself keeps the
   reader's lex.css and web.css. No EU colours or symbols. Loaded after lex.css and web.css, so it wins over their
   body rules for the page's chrome. */
:root {
  --as-navy: #1B2540; --as-blue: #2A4FD0; --as-blue-soft: #EEF1FC; --as-rule: #E3E6EE;
  --as-text: #1d2733; --as-muted: #475467; --as-bg-soft: #f6f7fa;
  --as-draft: #8a4b00; --as-draft-bg: #fff4e0;
  --as-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --as-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --as-width: 50rem;
  /* the law's text (PLAYBOOK.md 5.14): a white sheet with a navy spine; Eureka's own blocks: the soft panel */
  --as-law-rule: var(--as-navy); --as-law-face: Georgia, "Times New Roman", serif;
}
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../frontend/fonts/SourceSerif4-600-latin.beb0c8d8bee8.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: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../frontend/fonts/SourceSerif4-600-latin-ext.c4d949760b48.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Greek and Cyrillic (the Guides in Greek and Bulgarian): loaded only by a page that has such letters */
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../frontend/fonts/SourceSerif4-600-greek.01c063640801.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../frontend/fonts/SourceSerif4-600-cyrillic.146a6c4f5403.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* ---- base ---- */
html { -webkit-text-size-adjust: 100%; }
html body.as-page, html.eureka-page body.as-page { margin: 0; font: 16px/1.6 var(--as-sans); color: var(--as-text); background: #fff; overflow-wrap: break-word; }
.as-page a { color: var(--as-blue); }
.as-page a:hover { color: var(--as-navy); }
.as-page :focus-visible { outline: 2px solid var(--as-blue); outline-offset: 2px; border-radius: 2px; }
.as-skip { position: absolute; left: -9999px; top: 0; }
.as-skip:focus { left: 1rem; top: .5rem; z-index: 1000; background: #fff; padding: .4rem .8rem; border: 1px solid var(--as-rule); border-radius: 6px; }
.as-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.as-h1, .as-h2, .as-h3 { font-family: var(--as-serif); font-weight: 600; color: var(--as-navy); line-height: 1.2; }
.as-h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.6rem); margin: 0 0 .75rem; letter-spacing: -.01em; }
.as-h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); margin: 2rem 0 .75rem; }
.as-h3 { font-size: 1.1rem; margin: 1.25rem 0 .5rem; }
.as-muted { color: var(--as-muted); }
.as-lead { font-size: 1.1rem; color: var(--as-muted); }
blockquote { margin: .5rem 0 .25rem; padding: .25rem 0 .25rem 1rem; border-left: 3px solid var(--as-law-rule); font-family: var(--as-law-face); }

/* ---- header ---- */
.as-head { border-bottom: 1px solid var(--as-rule); background: #fff; }
.as-head-row { max-width: var(--as-width); margin: 0 auto; padding: .75rem 1rem .25rem; display: flex; align-items: center; gap: .5rem .9rem; flex-wrap: wrap; }
.as-brand { display: inline-flex; align-items: center; flex: none; }
.as-brand img { display: block; height: 24px; width: auto; }
.as-name { font-family: var(--as-serif); font-weight: 600; font-size: 1.15rem; color: var(--as-navy) !important; text-decoration: none; padding-left: .9rem; border-left: 1px solid var(--as-rule); line-height: 1.2; }
.as-chip { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--as-navy); background: var(--as-blue-soft); border: 1px solid #cdd6f6; border-radius: 999px; padding: .1rem .55rem; }
.as-langs { margin-left: auto; position: relative; font-size: .9rem; }
.as-langs summary { cursor: pointer; list-style: none; border: 1px solid var(--as-rule); border-radius: 6px; padding: .15rem .55rem; }
.as-langs ul { position: absolute; right: 0; z-index: 20; margin: .3rem 0 0; padding: .3rem 0; list-style: none; background: #fff; border: 1px solid var(--as-rule); border-radius: 8px; box-shadow: 0 8px 24px rgba(16, 24, 40, .1); min-width: 10rem; }
.as-langs li a { display: block; padding: .25rem .9rem; text-decoration: none; }
.as-langs a[aria-current] { font-weight: 600; }
/* many languages (up to the EU's 24): columns of the languages' own names, scrolling when taller than the window */
.as-langs ul.as-langs-many { display: grid; grid-template-columns: repeat(3, max-content); column-gap: .25rem; max-width: calc(100vw - 2rem); max-height: min(70vh, 32rem); overflow-y: auto; overscroll-behavior: contain; }
.as-langs ul.as-langs-many li a { padding: .3rem .8rem; white-space: nowrap; }
@media (max-width: 600px) {
  .as-langs ul.as-langs-many { grid-template-columns: repeat(2, minmax(0, 1fr)); width: calc(100vw - 2rem); }
  .as-langs ul.as-langs-many li a { padding: .45rem .8rem; white-space: normal; }
}
.as-menu { max-width: var(--as-width); margin: 0 auto; padding: 0 1rem; }
.as-name-short { display: none; }
.as-menu ul { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin: 0; padding: 0; list-style: none; }
.as-menu a { display: inline-block; padding: .45rem 0 .55rem; color: var(--as-muted); text-decoration: none; font-size: .95rem; border-bottom: 2px solid transparent; }
.as-menu a:hover { color: var(--as-blue); }
.as-menu a[aria-current] { color: var(--as-navy); font-weight: 600; border-bottom-color: var(--as-blue); }

/* ---- main, footer ---- */
.as-main { display: block; }
/* the reader bundle is on every page (its column, on the whole text and the parts' pages only, makes room by html's
   margin-right, web.css; data-page-kind="page" has none); a page
   without the act's text (#docHtml) keeps the site's own gutters, not web.css's 50 px on the body */
html.eureka-page body.as-page:not(:has(#docHtml)) { padding-left: 0 !important; padding-right: 0 !important; }
.as-page-body, .as-hero, .as-contents, .as-part, .as-prevnext { max-width: var(--as-width); margin: 0 auto; padding: 0 1rem; box-sizing: border-box; }
.as-page-body { padding-top: 2rem; padding-bottom: 3rem; }
.as-foot { border-top: 1px solid var(--as-rule); background: var(--as-bg-soft); margin-top: 3rem; }
.as-foot-inner { max-width: var(--as-width); margin: 0 auto; padding: 1.5rem 1rem 2rem; font-size: .9rem; color: var(--as-muted); }
.as-foot-inner p { margin: 0 0 .6rem; }
.as-foot .as-disclaimer { color: var(--as-text); }

/* ---- front page ---- */
.as-hero { padding-top: 2.25rem; padding-bottom: .5rem; }
.as-kicker { margin: 0 0 .35rem; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--as-blue); }
.as-kind { margin: 0 0 1rem; color: var(--as-muted); }
.as-status-line { margin: 0 0 .2rem; }
/* which text a page shows (frontend/actsite_version.py): under the title, before everything else */
.as-version { margin: .1rem 0 .8rem; color: var(--as-muted); font-size: .95rem; }
.as-version-text { color: var(--as-text); }
.as-shown-mark { margin-left: .4rem; padding: .05rem .4rem; border-radius: .2rem; background: var(--as-blue-soft);
  color: var(--as-navy); font-size: .85rem; font-weight: 600; }
.as-version-newer { margin: -.4rem 0 .8rem; padding: .35rem .6rem; border-left: 3px solid var(--as-blue);
  background: var(--as-blue-soft); font-size: .95rem; }
.as-status-next { margin: 0 0 .2rem; }
.as-status-next a { text-decoration: none; }
.as-status-next a:hover { text-decoration: underline; }
.as-next .as-h2 { margin-top: 0; font-size: 1.15rem; }
.as-next p { margin: 0 0 .6rem; }
.as-next .as-source { margin: .4rem 0 0; }
.as-next-line strong { color: var(--as-navy); }
.as-box.as-next { scroll-margin-top: 1rem; }
.as-source { margin: 0 0 1rem; font-size: .85rem; color: var(--as-muted); }
.as-buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0 0; }
.as-button { display: inline-block; padding: .6rem 1.3rem; border-radius: 999px; font-weight: 600; text-decoration: none; background: var(--as-blue); color: #fff !important; border: 1px solid var(--as-blue); }
.as-button:hover { background: var(--as-navy); border-color: var(--as-navy); }
.as-button-outline { background: #fff; color: var(--as-blue) !important; }
.as-button-outline:hover { background: var(--as-blue-soft); color: var(--as-navy) !important; border-color: var(--as-navy); }
.as-contents { padding-bottom: 1rem; }
.as-toc { list-style: none; margin: 0; padding: 0; }
.as-toc li { border-top: 1px solid var(--as-rule); }
.as-toc a { display: flex; gap: .75rem; padding: .4rem 0; text-decoration: none; }
.as-toc-n { flex: none; min-width: 5.5rem; font-weight: 600; color: var(--as-navy); }
.as-toc-h { color: var(--as-text); }
.as-toc a:hover .as-toc-h { color: var(--as-blue); text-decoration: underline; }
/* a division inside a contents group (PLAYBOOK 5.1): a chapter's sections (a title's chapters), smaller than the
   group's heading and set off by a rule on the left that runs on along its articles; each level deeper steps in */
.as-toc-sub { margin: 1rem 0 0; padding: .15rem 0 .35rem .75rem; border-left: 3px solid #cdd6f6; font: 500 .92rem/1.35 var(--as-sans); color: var(--as-muted); }
.as-toc-sub-n { color: var(--as-blue); font-weight: 600; }
.as-toc-sub-sep { color: var(--as-muted); font-weight: 400; }
.as-toc-in { padding-left: .75rem; border-left: 3px solid var(--as-rule); }
.as-toc-sub.as-toc-d2, .as-toc-in.as-toc-d2 { margin-left: .75rem; }
.as-toc-sub.as-toc-d3, .as-toc-in.as-toc-d3 { margin-left: 1.5rem; }
.as-recital-grid { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.as-recital-grid a { display: inline-block; min-width: 2.4rem; text-align: center; padding: .2rem 0; border: 1px solid var(--as-rule); border-radius: 6px; text-decoration: none; font-size: .9rem; }
.as-recital-grid a:hover { background: var(--as-blue-soft); }
.as-text { border-top: 1px solid var(--as-rule); margin-top: 2rem; }
.as-text-title { max-width: var(--as-width); margin: 2rem auto 0; padding: 0 1rem; }
/* the heading starts where the text under it starts (owner 2026-11-16: it stood 34 px to the left): the reader's
   frame (static/lex/web.css) gives #docHtml 52em at most and 50 px on each side, 16 px below 768 px */
html.eureka-page .as-text > .as-text-title { box-sizing: border-box; max-width: calc(var(--as-width) + 2rem); padding: 0 50px; }
@media (max-width: 767px) { html.eureka-page .as-text > .as-text-title { padding: 0 16px; } }
.as-text #docHtml { font-family: Georgia, "Times New Roman", serif; }
/* the act's tables (annexes, correlation tables) never widen the page: each scrolls sideways inside its own box, at
   every width (the Reader's phone rule, static/lex/web.css, made the Guides' rule on desktops too; not the Official
   Journal's header line, which always fits). And the Reader's rule for the points' label column (lex.css: the first
   cell of a table without .oj-table kept on one line, 1% wide) holds only for a row of two cells, a point and its
   text, and only in a table with EUR-Lex's columns (the Official Journal's points: <col width="4%"><col width="96%">):
   a consolidated text's data table has no .oj-table class either, and on one line its first cells made Directive
   (EU) 2022/2555's Annex I about 4,150 px wide (2026-11-18); a proposal's tables (the memorandum's, 52026PC1100) have
   no columns and their first cells are sentences */
.as-page #docHtml table:not(:has(.oj-hd-date, .hd-date)) { display: block; max-width: 100%; overflow-x: auto; }
.as-page #docHtml table:not(.oj-table) td:first-child:not(:nth-last-child(2)),
.as-page #docHtml table:not(.oj-table):not(:has(> col, > colgroup)) td:first-child { white-space: normal; width: auto; }
/* a data table (ruled, as a consolidated text has it, or .oj-table, as the Official Journal's) of three columns or
   more: EUR-Lex's column widths (6 %, 3 %, 91 % of 640 px in NIS 2's Annex I) would leave its first columns a few letters wide; its columns take the widths their
   words need instead, words are not broken inside (the phone's overflow-wrap: anywhere), and a table wider than the
   column scrolls. On a phone it is laid out at least 36em wide, so that its last column (NIS 2's "Type of entity")
   is not squeezed to a word a line beside the narrow ones */
.as-page #docHtml table:is([border="1"], .oj-table):has(> col:nth-of-type(3), > colgroup > col:nth-of-type(3)) > col,
.as-page #docHtml table:is([border="1"], .oj-table):has(> col:nth-of-type(3), > colgroup > col:nth-of-type(3)) > colgroup > col { width: auto; }
.as-page #docHtml table:is([border="1"], .oj-table):has(> col:nth-of-type(3), > colgroup > col:nth-of-type(3)) > tbody > tr > td {
  white-space: normal; width: auto; overflow-wrap: break-word; }
@media (max-width: 767px) {
  .as-page #docHtml table:is([border="1"], .oj-table):has(> col:nth-of-type(3), > colgroup > col:nth-of-type(3)) > tbody { display: table; width: max(100%, 36em); }
}
/* on a phone the act's points (a list's items: the Official Journal's tables of two cells, a consolidated text's grid
   lists, li) are set ragged right, not justified: in a narrow column justified points left wide gaps between words
   (the CRA's /en/annex/3 at 360 px, round 3, 2026-11-19); running paragraphs stay justified */
@media (max-width: 760px) {
  .as-page #docHtml td,
  .as-page #docHtml td p,
  .as-page #docHtml li,
  .as-page #docHtml li p,
  .as-page #docHtml .grid-list-column-2,
  .as-page #docHtml .grid-list-column-2 p { text-align: left; }
}
/* the contents and "Read the text" scroll to a part of the text (its own id): clear of the top edge, briefly tinted */
.as-text [id^="art_"], .as-text [id^="rct_"], .as-text [id^="anx_"], .as-text-title { scroll-margin-top: 1rem; }
.as-text [id^="art_"]:target, .as-text [id^="rct_"]:target, .as-text [id^="anx_"]:target { animation: as-target 4s ease-out; }
@keyframes as-target { from, 40% { background: var(--as-blue-soft); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .as-text :target { animation: none; } }

/* ---- part pages ---- */
.as-prevnext { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1rem; padding-bottom: .5rem; font-size: .95rem; }
.as-prevnext a { text-decoration: none; }
.as-prevnext-bottom { border-top: 1px solid var(--as-rule); margin-top: 2rem; padding-top: 1rem; }
.as-part-title { margin-top: 1rem; }
.as-box { background: var(--as-bg-soft); border: 1px solid var(--as-rule); border-radius: 10px; padding: .9rem 1.1rem; margin: 1rem 0; }
.as-box > :last-child { margin-bottom: 0; }
.as-in-short .as-h2 { margin-top: 0; font-size: 1.1rem; }
.as-part-text #docHtml, .as-page #docHtml.as-part-doc { max-width: none; margin: 0; padding: .5rem 0 0 !important; font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; }
.as-part-text .eli-container { margin: 0; }
/* the page's own h1 names the part and the label over the text says what it is: the law's own heading (number and
   title lines) is not repeated, in every text shape (the OJ's and the provisional text's p.oj-ti-art/p.oj-sti-art, a
   consolidated text's p.ti-art/p.sti-art and p.title-article-norm/p.stitle-article-norm; an annex's p.oj-doc-ti,
   p.title-annex-1 and the p.title-annex-2 right after it). Not even for screen readers (owner 2026-11-16): the region is labelled already, a hidden heading
   would be a second announcement of the same words. An article's (i) sits beside the label instead (part.html's slot,
   the reader bundle). A recital's number "(12)" is the text's own first cell, not a heading: it stays. */
.as-article-page .as-part-text :is(.oj-ti-art, .oj-sti-art, .ti-art, .sti-art, .title-article-norm, .stitle-article-norm),
.as-annex-page .as-part-text :is(.oj-doc-ti, .title-annex-1, .title-annex-1 + .title-annex-2) { display: none; }
.as-section { margin-top: 1.5rem; }
.as-list { margin: 0; padding-left: 1.2rem; }
.as-list li { margin: .3rem 0; }
.as-columns { columns: 2 16rem; }
.as-terms { list-style: none; margin: 0; padding: 0; }
.as-terms > li { border-top: 1px solid var(--as-rule); padding: .35rem 0; }
.as-terms summary { cursor: pointer; }
.as-terms details .as-def-text, .as-terms details .as-def-where { margin: .4rem 0 .2rem 1.1rem; font-size: .95rem; }
.as-def-text p { margin: .2rem 0; }
.as-gate-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.as-gate-list a { display: inline-block; padding: .4rem .9rem; border: 1px solid var(--as-rule); border-radius: 999px; text-decoration: none; font-size: .95rem; }
.as-gate-list a:hover { border-color: var(--as-blue); background: var(--as-blue-soft); }
.as-graphic { margin: 1.25rem 0; }
/* one border per picture (owner 2026-11-15): the SVG draws no frame of its own; the box around it is the border, the
   picture's own 20 of white the padding (at a glance the link's box, .as-picture-image, is the border) */
.as-graphic-svg { max-width: 40rem; border: 1px solid var(--as-rule); border-radius: 10px; background: #fff; }
.as-graphic-svg svg { display: block; width: 100%; height: auto; }
.as-graphic figcaption, .as-caption { font-size: .95rem; color: var(--as-muted); margin-top: .4rem; }
/* the link to a picture's own page where its caption, repeating the "In short" above, is not shown (part.html) */
.as-graphic-more { font-size: .95rem; margin: .4rem 0 0; }
.as-draft { display: inline-block; vertical-align: middle; font-family: var(--as-sans); font-size: .72rem; font-weight: 700; letter-spacing: .03em; color: var(--as-draft); background: var(--as-draft-bg); border: 1px dashed var(--as-draft); border-radius: 4px; padding: .05rem .4rem; }

/* ---- definitions, status, information pages ---- */
.as-term-index ul { display: flex; flex-wrap: wrap; gap: .3rem .9rem; list-style: none; margin: 0 0 1.5rem; padding: 0; font-size: .95rem; }
.as-defs { margin: 0; }
.as-def { border-top: 1px solid var(--as-rule); padding: .9rem 0; scroll-margin-top: 1rem; }
.as-def:target { background: var(--as-blue-soft); }
.as-def dt { font-family: var(--as-serif); font-weight: 600; font-size: 1.15rem; color: var(--as-navy); }
.as-def dd { margin: .3rem 0 0; }
.as-def dd p { margin: 0 0 .25rem; }
.as-def dd .as-def-text ul.def-points { margin: .35rem 0 .5rem .25rem; }
.as-def-where { font-size: .9rem; color: var(--as-muted); margin: 0 0 .75rem; }
.as-steps { list-style: none; margin: 0; padding: 0; }
.as-steps li { border-left: 3px solid var(--as-rule); padding: .1rem 0 .9rem 1rem; position: relative; }
.as-steps li::before { content: ""; position: absolute; left: -7px; top: .45rem; width: 11px; height: 11px; border-radius: 50%; background: var(--as-blue); }
.as-steps time { font-size: .9rem; color: var(--as-muted); }
.as-steps p { margin: 0; }
.as-step-title { font-weight: 600; color: var(--as-navy); }
.as-step-source { font-size: .85rem; color: var(--as-muted); }
.as-counts { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.as-counts a { display: block; padding: .6rem 1rem; border: 1px solid var(--as-rule); border-radius: 10px; text-decoration: none; color: var(--as-text) !important; }
.as-counts strong { font-family: var(--as-serif); font-size: 1.4rem; color: var(--as-navy); margin-right: .2rem; }
.as-quotes > div { margin-bottom: 1rem; }
.as-quotes dt { font-weight: 600; color: var(--as-navy); }
.as-quotes dd { margin: 0; }
.as-table-wrap { overflow-x: auto; }
.as-table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.as-table th, .as-table td { text-align: left; padding: .35rem .6rem; border-bottom: 1px solid var(--as-rule); vertical-align: top; }
.as-table th { color: var(--as-navy); border-bottom-width: 2px; }
.as-address { font-style: normal; margin-top: .75rem; }
.as-act-name { margin: 0 0 .4rem; }

/* the reader's bottom bar on phones (lex.css pads the body 56px): the footer's last line always scrolls clear of it */
html.eureka-phone body.as-page { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
.as-foot .as-disclaimer { margin: .9rem 0 0; }

/* ---- the act in pictures ---- */
.as-page-body.as-wide { max-width: 72rem; }
.as-picture-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 900px) { .as-picture-grid { grid-template-columns: 1fr 1fr; gap: 2rem 2.25rem; } }
.as-picture { scroll-margin-top: 1rem; }
/* the overview: one line (summary) that opens to its pictures (owner 2026-11-15); closed, "Overview:" and the
   pictures small in boxes of one size that fill the line with equal gaps (one column each, however many pictures;
   each picture whole and centred in its box), open, "Overview: 5 pictures" (the thumbnails would only repeat the
   pictures below) */
.as-teaser { margin: .75rem 0 0; border: 1px solid var(--as-rule); border-radius: 10px; background: var(--as-bg-soft); }
.as-teaser > summary { display: flex; align-items: center; gap: .6rem 1rem; padding: .6rem 1rem; cursor: pointer; list-style: none; border-radius: 10px; }
.as-teaser > summary::-webkit-details-marker { display: none; }
.as-teaser > summary:hover { background: var(--as-blue-soft); }
.as-teaser-label { flex: none; font-family: var(--as-serif); font-weight: 600; font-size: 1.2rem; color: var(--as-navy); line-height: 1.2; }
.as-teaser-h { display: inline; margin: 0; font-size: inherit; }
.as-teaser-n { color: var(--as-blue); }
.as-teaser:not([open]) .as-teaser-n { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.as-teaser-thumbs { flex: 1; min-width: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1rem; }
.as-teaser-thumbs img { display: block; width: 100%; height: 84px; object-fit: contain; object-position: center; box-sizing: border-box; padding: 4px; background: #fff; border: 1px solid var(--as-rule); border-radius: 6px; }
.as-teaser > summary:hover .as-teaser-thumbs img { border-color: #cdd6f6; }
.as-teaser[open] .as-teaser-thumbs { display: none; }
.as-teaser-chev { flex: none; margin-left: auto; width: .55rem; height: .55rem; margin-right: .2rem; margin-bottom: .25rem; border: solid var(--as-blue); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s; }
.as-teaser[open] > summary .as-teaser-chev { transform: rotate(-135deg); margin-bottom: -.25rem; }
.as-teaser[open] > summary { border-bottom: 1px solid var(--as-rule); border-radius: 10px 10px 0 0; }
/* narrower: "Overview:" and the chevron on one line, the thumbnails below across the whole width, still boxes of one
   size */
@media (max-width: 760px) {
  .as-teaser > summary { flex-wrap: wrap; padding: .55rem .75rem .65rem; }
  .as-teaser-thumbs { order: 3; flex: 1 0 100%; gap: .4rem; }
  .as-teaser-thumbs img { height: 44px; padding: 2px; border-radius: 4px; }
}
.as-teaser > .as-picture-grid { padding: 1rem; }
.as-picture-image { display: block; border: 1px solid var(--as-rule); border-radius: 10px; background: #fff; }
.as-picture-image:hover { border-color: var(--as-blue); }
.as-picture-image svg { display: block; width: 100%; height: auto; }
.as-picture .as-h3 { margin: .6rem 0 .2rem; }
.as-picture .as-h3 a { color: var(--as-navy); text-decoration: none; }
.as-picture .as-caption { margin: 0; }
.as-picture .as-picture-articles { margin: .6rem 0 0; }
/* two pictures a line (owner 2026-11-15): the line's two items share their rows (subgrid), so the pictures' boxes,
   titles, captions and article chips line up; a shorter picture is centred in its box, never stretched or cut */
@media (min-width: 900px) {
  @supports (grid-template-rows: subgrid) {
    .as-picture-grid { grid-auto-rows: auto; }
    .as-picture { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
    .as-picture > .as-picture-image { grid-row: 1; display: flex; align-items: center; justify-content: center; }
    .as-picture > .as-h3 { grid-row: 2; }
    .as-picture > .as-caption { grid-row: 3; }
    .as-picture > .as-picture-articles { grid-row: 4; align-self: end; }
  }
}
.as-graphic-large .as-graphic-svg { max-width: none; }
/* a picture's own page on a phone: the picture at a readable size, panned sideways */
@media (max-width: 600px) {
  .as-graphic-large .as-graphic-svg { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .as-graphic-large .as-graphic-svg svg { width: 560px; max-width: none; }
}
.as-graphic-text { margin: .5rem 0 0; }

/* ---- an editorial text with structure (actsite_text, PLAYBOOK.md 7.7): paragraphs and lists, no walls of text ---- */
.as-blocks > p { margin: 0 0 .6rem; }
.as-blocks > :last-child { margin-bottom: 0; }
.as-blocks.as-graphic-text { margin-top: .75rem; }
.as-text-list { margin: .35rem 0 .7rem; padding-left: 1.3rem; }
.as-text-list > li { margin: .3rem 0; padding-left: .1rem; }
/* the act's own marks, "(a)", "(b)": a hanging mark, the item's lines aligned after it */
.as-text-list.as-marked { list-style: none; padding-left: 2.2rem; }
.as-marked > li { text-indent: -2.2rem; }
.as-item-mark { display: inline-block; min-width: 1.95rem; text-indent: 0; color: var(--as-muted); }
.as-in-short .as-blocks, .as-faq .as-blocks { margin: 1rem 0; }
.as-box > .as-blocks:last-child { margin-bottom: 0; }
/* the next step's text in blocks keeps the gap a single paragraph had before "When:" (.as-next p) */
.as-next > .as-blocks { margin: 0 0 .6rem; }
.as-key-facts dd .as-blocks > p { margin-bottom: .45rem; }
.as-key-facts dd .as-text-list { margin: .25rem 0 .45rem; }
.as-points .as-blocks > p { margin-bottom: .35rem; }
.as-points .as-text-list { margin: .2rem 0 .4rem; }

/* ---- key facts, sources, FAQ, topics ---- */
.as-sources { margin: .2rem 0 0; font-size: .9rem; color: var(--as-muted); }
.as-key-facts { max-width: var(--as-width); margin: 1.25rem auto 0; padding: 0 1rem; box-sizing: border-box; }
.as-key-facts .as-h2 { margin-top: .5rem; font-size: 1.15rem; }
.as-key-facts dl { margin: 0; border: 1px solid var(--as-rule); border-radius: 10px; background: var(--as-bg-soft); }
.as-key-facts dl > div { display: grid; grid-template-columns: 11rem 1fr; gap: .75rem; padding: .5rem .9rem; border-top: 1px solid var(--as-rule); }
.as-key-facts dl > div:first-child { border-top: 0; }
.as-key-facts dt { font-weight: 600; color: var(--as-navy); }
.as-key-facts dd { margin: 0; }
.as-key-facts .as-source { margin-top: .4rem; }
.as-part-of { margin: -.25rem 0 1rem; color: var(--as-muted); }
/* "Open in the Reader" under a part's heading (owner 2026-11-15): the same place in Eureka's reader, a new tab */
.as-part-reader { margin: -.25rem 0 1rem; font-size: .95rem; }
.as-part-reader a::after { content: " \2197" / ""; }
.as-faq { border-top: 1px solid var(--as-rule); margin-top: 1.25rem; scroll-margin-top: 1rem; }
.as-faq .as-h2 { margin-top: 1rem; font-size: 1.2rem; }
.as-faq:target { background: var(--as-blue-soft); }
.as-topic-list { list-style: none; margin: 0; padding: 0; }
.as-topic-list li { border-top: 1px solid var(--as-rule); padding: .75rem 0; }
.as-topic-list > li > a { font-family: var(--as-serif); font-weight: 600; font-size: 1.15rem; text-decoration: none; }
.as-topic-list p { margin: .25rem 0 0; }
.as-crumb { margin: 0 0 .25rem; font-size: .9rem; }
.as-part-where { margin: 1rem 0 0; color: var(--as-muted); }
.as-part-where + .as-part-title { margin-top: .25rem; }
.as-points li { margin: .45rem 0; }
.as-steps-before li::before { background: var(--as-muted); }

/* ---- phones ---- */
@media (max-width: 600px) {
  .as-head-row { padding: .6rem 1rem .2rem; gap: .35rem .5rem; flex-wrap: nowrap; }
  .as-brand img { height: 18px; }
  .as-name { font-size: .95rem; padding-left: .5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .as-name-full:has(+ .as-name-short) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .as-name-short { display: inline; }
  .as-chip { font-size: .62rem; padding: .05rem .4rem; flex: none; }
  .as-langs { flex: none; }
  .as-menu ul { gap: 0 .9rem; }
  .as-menu a { padding: .3rem 0 .4rem; font-size: .92rem; white-space: nowrap; }
  .as-toc a { flex-direction: column; gap: 0; }
  .as-toc-n { min-width: 0; }
  .as-key-facts dl > div { grid-template-columns: 1fr; gap: .1rem; }
  .as-graphic-svg svg { max-width: 100%; }
}

/* The act's text not (yet) in the page's language: the note above the English text, and the mark under a quotation
   of the act shown in English on a page in another language (PLAYBOOK.md 16.5) */
.as-text-missing { margin: 0 0 1rem; padding: .6rem .8rem; border-left: 3px solid var(--as-blue, #2A4FD0); background: #EEF1FC; font-size: .95rem; }
.as-quote-lang { margin: -.4rem 0 .8rem; color: #475467; font-size: .85rem; }

/* ---- places of the act as reference chips (owner 2026-11-15: "badges, not plain links"; _ref.html, _refs.html):
   a rounded chip in the site's tint, the number in navy, an article's heading after it where there is room; a
   real link with a clear hover and focus; a row of them wraps. Not used for a place inside running prose. ---- */
.as-refs { list-style: none; margin: .45rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.as-refs > li { margin: 0; min-width: 0; max-width: 100%; }
.as-page a.as-ref, .as-ref { display: inline-flex; align-items: center; min-height: 1.9rem; box-sizing: border-box;
  padding: .2rem .75rem; border: 1px solid #cdd6f6; border-radius: 1rem; background: var(--as-blue-soft);
  color: var(--as-navy); font-size: .88rem; font-weight: 600; line-height: 1.3; text-decoration: none;
  transition: background-color .12s, border-color .12s; }
.as-ref-h { font-weight: 400; color: var(--as-muted); min-width: 0; }
.as-ref-dot { white-space: pre; }
.as-page a.as-ref:hover { background: #dfe5fb; border-color: var(--as-blue); color: var(--as-navy); }
.as-page a.as-ref:hover .as-ref-h { color: var(--as-text); }
.as-page a.as-ref:focus-visible { outline: 2px solid var(--as-blue); outline-offset: 2px; border-color: var(--as-blue); border-radius: 1rem; }
/* a place that is no part of the act's text (the memorandum, the cover page): plain words in the row, no chip */
.as-ref-plain { background: none; border-color: transparent; padding-left: .25rem; padding-right: .25rem; font-weight: 400; color: var(--as-muted); }
.as-refs-large { margin-top: .9rem; }
.as-refs-large .as-ref { font-size: .95rem; min-height: 2.2rem; padding: .3rem .9rem; }
.as-see { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .5rem; margin: .5rem 0 .75rem; }
.as-see-label { font-size: .9rem; color: var(--as-muted); }
.as-see .as-refs { margin: 0; }
.as-key-facts dd .as-refs { margin-top: .35rem; }
.as-points .as-refs { margin-top: .3rem; }
/* "Where the text says it" on a picture's own page: a card per place, its chip and the act's words there (every
   fact's quote, whole up to about 600 characters, views_actsite.quote_cut); two a row on desktop, one on phones */
.as-ref-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: .75rem; }
.as-ref-card { margin: 0; padding: .75rem .9rem .85rem; border: 1px solid var(--as-rule); border-left: 3px solid var(--as-law-rule); border-radius: 0 6px 6px 0; background: #fff; min-width: 0; }
.as-ref-quote { margin: .5rem 0 0; font-family: Georgia, "Times New Roman", serif; font-size: .95rem; line-height: 1.5; color: var(--as-text); }
/* the quotation marks of the quote's own language ("auto": „…“ in German, « … » in French) */
.as-ref-quote { quotes: auto; } .as-ref-quote::before { content: open-quote; } .as-ref-quote::after { content: close-quote; }
/* a card holds every fact's words for its place (several quotes: a light rule between them); cards of a row are as high as the tallest */
.as-ref-quote + .as-ref-quote { margin-top: .6rem; padding-top: .6rem; border-top: 1px dotted var(--as-rule); }
.as-ref-cards + .as-quote-lang { margin-top: .5rem; }
/* "English wording" under one quote of a card, when the card's other quotes are in the page's language (16.15) */
.as-ref-quote + .as-quote-lang { margin: .25rem 0 0; }
/* a language note (Site.notes, PLAYBOOK.md 16.16): Eureka's own words about the act's text in this language, under a
   summary, a picture, an answer or a topic; a labelled aside, never inside the act's text */
.as-lang-note { margin: .9rem 0 0; padding: .65rem .85rem .7rem; border-left: 3px solid var(--as-blue); background: var(--as-blue-soft); border-radius: 0 6px 6px 0; font-size: .95rem; }
.as-lang-note-label { margin: 0 0 .3rem; font-weight: 600; color: var(--as-navy); font-size: .9rem; }
.as-lang-note > :last-child, .as-lang-note .as-blocks > :last-child { margin-bottom: 0; }
.as-lang-note .as-blocks p { margin: 0 0 .45rem; }
@media (max-width: 600px) {
  .as-refs { gap: .5rem; }
  .as-page a.as-ref, .as-ref { min-height: 2.5rem; padding: .35rem .85rem; font-size: .9rem; }
  /* the heading under the number, not after a dot at the start of a line */
  .as-page a.as-ref:has(.as-ref-h) { flex-direction: column; align-items: flex-start; justify-content: center; }
  .as-page .as-ref-plain { min-height: 0; padding: .2rem .25rem; }
  .as-ref-dot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}


/* ---- the law's text and Eureka's text, always visibly distinct (owner 2026-11-16; PLAYBOOK.md 5.14) ----
   The law: a white sheet with a navy rule on its left (a thin rule round it on a part's page), its own serif face,
   under a small plain label naming what it is and which text ("The text of Article 6 · consolidated version of 4 May
   2016"); quotations of it (blockquotes, the "Where the text says it" cards, recitals' first words, definitions)
   carry the same navy rule and face. Eureka's own words: the soft grey panel, rounded, the sans-serif face, with a
   small muted label saying whose words they are ("In short · Eureka's summary"). Never a scroll box, never folded. */
.as-law-label { margin: 0; font: 600 .85rem/1.4 var(--as-sans); color: var(--as-navy); letter-spacing: .01em; }
.as-law-status, .as-who { font: 400 .85rem/1.4 var(--as-sans); color: var(--as-muted); letter-spacing: 0; }
.as-law-sep, .as-who-sep { font: 400 .85rem/1.4 var(--as-sans); color: var(--as-muted); }
.as-law-label .as-draft, .as-who + .as-draft, .as-text-title .as-draft { margin-left: .3rem; }
/* a part's page: the sheet */
.as-part-text.as-law { margin: 1.75rem 0 1.5rem; padding: .7rem 1.25rem .9rem; background: #fff;
  border: 1px solid var(--as-rule); border-left: 4px solid var(--as-law-rule); border-radius: 0 6px 6px 0; }
.as-part-text.as-law > .as-law-label { padding-bottom: .55rem; border-bottom: 1px solid var(--as-rule); }
.as-part-text.as-law .as-text-missing { margin-top: .75rem; }
/* the front page: the whole text under a navy rule across its top, its heading the label */
.as-text.as-law { border-top: 4px solid var(--as-law-rule); }
.as-text.as-law .as-text-title .as-law-status, .as-text.as-law .as-text-title .as-law-sep { font-size: .95rem; }
.as-text.as-law .as-text-title .as-law-status { white-space: normal; }
/* quotations of the law inside the Guide's pages */
.as-law-excerpts { list-style: none; padding: .1rem 0 .1rem .9rem; border-left: 3px solid var(--as-law-rule); }
.as-law-excerpts > li { margin: 0 0 .55rem; }
.as-law-excerpts > li:last-child { margin-bottom: 0; }
.as-law-excerpts .as-muted { font-family: var(--as-law-face); color: var(--as-text); }
.as-def-text { font-family: var(--as-law-face); padding-left: .8rem; border-left: 3px solid var(--as-law-rule); }
.as-terms details .as-def-text { padding-left: .8rem; }
/* Eureka's own blocks: the panel (In short and the pictures on a part's page; the key facts on the front page) */
.as-guide { margin: 1rem 0 1.5rem; padding: .9rem 1.1rem 1rem; background: var(--as-bg-soft); border: 1px solid var(--as-rule); border-radius: 12px; }
.as-guide > :last-child { margin-bottom: 0; }
.as-guide .as-box { background: none; border: 0; border-radius: 0; padding: 0; margin: 0 0 1rem; }
.as-guide .as-in-short .as-h2 { margin-bottom: .4rem; }
.as-guide .as-graphic { margin: 1rem 0; }
.as-guide .as-graphic:first-child, .as-guide > .as-who-line + .as-graphic { margin-top: 0; }
.as-who-line { margin: -.4rem 0 1rem; }
.as-guide > .as-who-line { margin: 0 0 .6rem; }
@media (max-width: 600px) {
  .as-part-text.as-law { margin-left: -.25rem; margin-right: -.25rem; padding: .6rem .8rem .8rem; }
  .as-guide { margin-left: -.25rem; margin-right: -.25rem; padding: .8rem .8rem .9rem; }
}
@media print {
  .as-part-text.as-law { border: 0; border-left: 2px solid #000; border-radius: 0; padding: 0 0 0 .8rem; }
  .as-part-text.as-law > .as-law-label, .as-law-label { color: #000; }
  .as-text.as-law { border-top: 2px solid #000; }
  .as-law-excerpts, .as-def-text, .as-ref-card, blockquote { border-left-color: #000; }
  .as-guide { background: none; border: 1px solid #999; }
  .as-key-facts dl { background: none; }
}
