/* ПотребНав UI system: foundations, navigation, discovery, reading, utilities. */
:root {
  --green: #163d36;
  --gold: #b59760;
  --paper: #f7f6f2;
  --ink: #202d29;
  --muted: #56645c;
  --line: #d5ddd3;
  --sage: #e6ede6;
  --radius: 8px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
button { cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); font-weight: 650; line-height: 1.18; letter-spacing: -.035em; overflow-wrap: break-word; }
h1 { font-size: clamp(36px, 4vw, 56px); max-width: 1000px; margin-bottom: 20px; }
h2 { font-size: 32px; margin-bottom: 20px; }
h3 { font-size: 22px; letter-spacing: -.02em; line-height: 1.35; }
p { color: var(--muted); }
.wrap { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }
.icon { width: 24px; height: 24px; flex-shrink: 0; vertical-align: middle; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 48px; padding: 12px 20px; border: 1px solid var(--green); border-radius: var(--radius); background: var(--green); color: #fff; font-size: 15px; font-weight: 600; line-height: 1.45; text-align: center; }
.button .icon { width: 20px; height: 20px; }
.button:hover { background: #24574b; }
.button.secondary { background: transparent; color: var(--green); }
.button.secondary:hover { background: var(--sage); }
.button.light { color: #fff; border-color: #a3b8ab; }
.button.light:hover { color: var(--green); background: #fff; }
.inline-link { display: inline-flex; align-items: center; gap: 10px; color: var(--green); font-size: 15px; font-weight: 600; }
.inline-link .icon { width: 18px; height: 18px; }
.inline-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.eyebrow { display: block; color: var(--green); font-size: 12px; font-weight: 650; line-height: 1.5; letter-spacing: .07em; margin-bottom: 16px; }
.tag { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; margin-bottom: 10px; }
.small { font-size: 14px !important; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip { position: absolute; top: -100px; left: 20px; background: #fff; padding: 12px; z-index: 30; }
.skip:focus { top: 12px; }
/* Navigation */
.header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { position: relative; min-height: 96px; display: flex; align-items: center; gap: 28px; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 25px; font-weight: 700; line-height: 1.15; letter-spacing: -.8px; flex-shrink: 0; }
.brand small { display: block; font-size: 11px; font-weight: 400; letter-spacing: .25px; margin-top: 6px; }
.brand-symbol { display: grid; place-items: center; width: 44px; height: 46px; background: var(--green); color: #d9c494; border-radius: 8px; }
.brand-symbol .icon { width: 32px; height: 32px; }
.site-navigation { margin-left: auto; }
.site-navigation>summary { display: none; }
.header nav { display: flex; gap: 24px; font-size: 14px; font-weight: 500; }
.header nav a { display: flex; align-items: center; min-height: 48px; border-bottom: 2px solid transparent; }
.header nav a:hover, .header nav a.active { border-color: var(--green); }
.header-search { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); flex-shrink: 0; }
.header-search:hover { background: var(--sage); }
/* Homepage */
.hero { border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; padding-block: 56px; }
.hero h1 { font-size: clamp(40px, 4.1vw, 60px); line-height: 1.08; margin-bottom: 24px; }
.hero-lead { font-size: 18px; max-width: 510px; line-height: 1.65; margin-bottom: 28px; }
.hero-art { min-width: 0; }
.route-illustration { display: block; width: 100%; height: auto; }
.art-caption { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; font-size: 13px; color: var(--green); }
.art-caption .icon { width: 20px; height: 20px; }
.search-form { display: flex; align-items: center; background: #fff; border: 1px solid #a7b7a9; border-radius: var(--radius); padding: 6px; gap: 12px; max-width: 650px; }
.search-form>.icon { width: 20px; height: 20px; margin-left: 10px; color: var(--muted); }
.search-form input { min-width: 0; flex: 1; width: 100%; border: 0; background: transparent; padding: 10px 0; font-size: 16px; color: var(--ink); }
.search-form input::placeholder { color: var(--muted); opacity: 1; }
.search-form button { display: grid; place-items: center; border: 0; background: var(--green); color: #fff; border-radius: 5px; width: 44px; height: 44px; flex-shrink: 0; }
.quick-links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; margin-top: 12px; }
.quick-links span { color: var(--muted); }
.quick-links a { text-decoration: underline; text-underline-offset: 4px; }
.section { padding-block: 64px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading .eyebrow { margin-bottom: 10px; }
.section-heading h2, .section-heading p { margin-bottom: 0; }
.section-heading p { max-width: 320px; font-size: 15px; }
.cards { display: grid; gap: 20px; }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { min-width: 0; display: flex; flex-direction: column; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.card:has(a:hover), a.card:hover { border-color: #839d89; }
.card-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 20px; color: var(--green); background: var(--sage); border-radius: var(--radius); }
.card h2, .card h3 { font-size: 22px; margin-bottom: 12px; letter-spacing: -.025em; line-height: 1.3; }
.card h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.card p { font-size: 15px; line-height: 1.65; margin-bottom: 24px; }
.card-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; width: 100%; color: var(--green); font-size: 14px; font-weight: 600; min-height: 44px; }
.card-link .icon { width: 20px; height: 20px; }
.service-section { background: var(--sage); padding-block: 56px; }
.service-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: center; }
.service-grid>div>p { max-width: 410px; }
.service-card { display: flex; gap: 20px; align-items: start; background: var(--paper); padding: 28px; border: 1px solid #c4d2c3; border-radius: var(--radius); margin-bottom: 16px; }
.service-card>.icon { color: var(--green); }
.service-card>.icon:last-child { width: 20px; margin-left: auto; }
.service-card h3 { font-size: 20px; margin-bottom: 10px; }
.service-card p { font-size: 15px; margin-bottom: 0; }
.path-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 40px; }
.path-item { padding: 12px 0 24px; border-bottom: 2px solid var(--line); }
.path-item>.icon { width: 32px; height: 32px; color: var(--green); margin-bottom: 20px; }
.path-item h3 { margin-bottom: 12px; }
.path-item p { font-size: 16px; margin-bottom: 0; }
.editorial { padding-top: 0; }
.article-card { border-top: 2px solid var(--line); padding-top: 24px; }
.article-card h3 { font-size: 23px; }
.article-card p { font-size: 16px; }
.law-banner { display: flex; align-items: center; gap: 28px; background: var(--green); color: #fff; padding: 32px; border-radius: var(--radius); margin-bottom: 64px; }
.law-banner>.icon { width: 40px; height: 40px; color: #d9c494; }
.law-banner h2 { font-size: 27px; margin-bottom: 10px; color: #fff; }
.law-banner .eyebrow { color: #dae6d8; margin-bottom: 10px; }
.law-banner p { color: #dae6d8; font-size: 15px; margin: 0; }
.law-banner a:focus-visible { outline-color: #fff; }
.law-banner .button { margin-left: auto; flex-shrink: 0; }
/* Catalogues and discovery */
.page { padding-top: 28px; padding-bottom: 72px; }
.breadcrumbs { font-size: 14px; line-height: 1.7; color: var(--muted); margin-bottom: 24px; overflow-wrap: anywhere; }
.breadcrumbs a:hover { text-decoration: underline; }
.page>.eyebrow { margin-top: 24px; }
.page>h2 { margin-top: 40px; }
.lead { font-size: 19px; line-height: 1.6; max-width: 780px; margin-bottom: 24px; }
.narrow { max-width: 780px; }
.catalogue>h1 { font-size: clamp(34px, 3.5vw, 48px); }
.catalogue>.lead { font-size: 18px; }
.catalog-filters { border-block: 1px solid var(--line); margin: 24px 0 16px; }
.catalog-filters>summary { cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 14px 0; font-size: 15px; font-weight: 600; list-style: none; }
.catalog-filters>summary::-webkit-details-marker { display: none; }
.catalog-filters>summary::after { content: '+'; margin-left: auto; font-size: 24px; line-height: 1; }
.catalog-filters[open]>summary::after { content: '−'; }
.catalog-filters>summary>.icon { width: 18px; }
.catalog-filters>summary>span { margin-left: 12px; color: var(--muted); font-size: 14px; font-weight: 400; }
.catalog-filters form { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; align-items: end; gap: 16px; padding: 8px 0 24px; }
.catalog-filters label { min-width: 0; font-size: 14px; }
.catalog-filters select, .decision select { display: block; width: 100%; min-width: 0; border: 1px solid #a7b7a9; border-radius: var(--radius); padding: 11px; color: var(--ink); background: #fff; font-size: 16px; margin-top: 8px; }
.filter-reset { grid-column: 1/-1; justify-self: start; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.catalogue-results { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); margin: 20px 0; }
.catalogue-results a { display: inline-flex; align-items: center; gap: 8px; color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.catalogue-results .icon { width: 18px; }
.document-list { gap: 0; }
.document-list .card { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; column-gap: 24px; row-gap: 8px; align-items: start; padding: 24px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.document-list .card-icon { grid-column: 1; grid-row: 1/3; margin: 0; }
.document-list .card-copy { grid-column: 2; grid-row: 1/3; }
.document-list h2 { font-size: 21px; }
.document-list p { margin: 0; max-width: 720px; }
.document-list .tag { margin-bottom: 6px; }
.document-list .card-link { grid-column: 3; grid-row: 2; padding: 0; align-self: start; }
.document-type { grid-column: 3; grid-row: 1; font-size: 13px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; border: 1px solid #a7b7a9; border-radius: var(--radius); padding: 10px 14px; min-height: 44px; font-size: 14px; line-height: 1.4; color: var(--green); }
.chip:hover, .chip.selected { background: var(--green); border-color: var(--green); color: #fff; }
.view-switch { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--sage); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 24px; }
.view-switch a { display: flex; gap: 9px; align-items: center; padding: 11px 16px; min-height: 44px; font-size: 14px; border-radius: 5px; }
.view-switch a.selected { background: var(--green); color: #fff; }
.view-switch .icon { width: 20px; height: 20px; }
.directory-heading { display: grid; grid-template-columns: 1fr 150px; gap: 40px; align-items: center; margin-top: 24px; }
.directory-heading h1 { font-size: clamp(34px, 3.5vw, 48px); }
.topic-jump>summary { display: none; }
.directory-heading>.icon { width: 110px; height: 110px; stroke-width: .7; color: var(--green); }
.law-search { display: block; max-width: 740px; font-size: 15px; margin: 20px 0 12px; }
.law-search input { display: block; width: 100%; padding: 14px 16px; margin-top: 8px; border: 1px solid #a7b7a9; border-radius: var(--radius); background: #fff; color: var(--ink); font-size: 16px; }
.filter-status { font-size: 14px; margin: 12px 0 20px; }
.topic-navigation { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.topic-navigation a { font-size: 14px; min-height: 36px; padding-block: 6px; text-decoration: underline; text-underline-offset: 4px; }
.law-chapter { margin-block: 32px; }
.law-chapter h2 { font-size: 26px; }
.explanation-row, .law-row { display: grid; grid-template-columns: 110px minmax(0,1fr) 24px; gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); }
.explanation-row:hover h3, .law-row:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.law-number, .law-row>span { font-size: 14px; color: var(--muted); padding-top: 3px; }
.explanation-row h3 { font-size: 20px; margin: 0 0 8px; }
.explanation-row p, .human-law-row p { font-size: 15px; line-height: 1.6; margin-bottom: 0; max-width: 800px; }
.law-row { font-size: 17px; }
.law-row strong { font-weight: 600; }
.human-law-row strong { font-size: 20px; }
.human-law-row small { display: block; font-size: 13px; color: var(--muted); margin-top: 8px; }
.results { max-width: 960px; margin-top: 24px; }
.related-card { display: flex; align-items: start; gap: 20px; padding: 24px 0; border-top: 1px solid var(--line); }
.related-card>.icon { color: var(--green); margin-top: 3px; }
.related-card>.icon:last-child { margin-left: auto; width: 20px; }
.related-card h2, .related-card h3 { font-size: 21px; line-height: 1.4; margin: 0; }
.related-card p { font-size: 16px; margin: 10px 0 0; }
.related-card:hover h2, .related-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
/* Reading */
.content-title { font-size: clamp(32px, 3.4vw, 48px); max-width: 1040px; }
.meta { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin: 16px 0 24px; flex-wrap: wrap; }
.meta .icon { width: 17px; height: 17px; }
.reading-layout { display: grid; grid-template-columns: 235px minmax(0,740px); gap: 56px; border-top: 1px solid var(--line); padding-top: 28px; }
.reading-main { min-width: 0; }
.toc { font-size: 14px; align-self: start; position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; scrollbar-width: thin; padding-right: 8px; }
.responsive-disclosure>summary { cursor: pointer; color: var(--green); font-size: 15px; font-weight: 600; padding: 10px 0; min-height: 44px; }
.disclosure-body { padding-top: 12px; }
.toc strong { display: block; font-size: 14px; margin: 20px 0 12px; }
.toc a { display: block; color: var(--muted); margin-bottom: 12px; line-height: 1.5; padding-block: 3px; }
.toc a:hover { color: var(--green); text-decoration: underline; }
.prose { font-size: 18px; line-height: 1.75; overflow-wrap: break-word; }
.prose p { color: var(--ink); margin-bottom: 20px; }
.prose h2 { font-size: 28px; margin: 36px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 22px; margin: 28px 0 14px; }
.prose a, .notice a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 25px; }
.prose li { margin-block: 8px; }
.prose table { table-layout: fixed; overflow-wrap: anywhere; width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; margin: 24px 0; }
.prose th, .prose td { padding: 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: var(--sage); font-weight: 600; }
.prose td:first-child { width: 37%; }
.prose blockquote { border-left: 3px solid var(--gold); margin: 24px 0; padding-left: 24px; }
.legal-basis { background: var(--sage); padding: 28px; margin: 40px 0; border-radius: var(--radius); }
.legal-basis>.icon { color: var(--green); margin-bottom: 16px; }
.legal-basis h2 { font-size: 26px; }
.law-help { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin: 16px 0; }
.law-help-title { display: flex; align-items: start; gap: 12px; color: var(--green); }
.law-help-title .icon { width: 22px; height: 22px; }
.law-help-title strong { font-size: 18px; line-height: 1.4; }
.law-help p { font-size: 16px; line-height: 1.65; margin: 14px 0; }
.law-help .inline-link { background: transparent; border: 0; padding: 10px 0; cursor: pointer; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.law-help .law-source { display: block; font-size: 14px; text-decoration: underline; color: var(--muted); margin-top: 12px; }
.legal-text { font-size: 18px; padding-left: 24px; }
.legal-text p { position: relative; }
.anchor { position: absolute; left: -25px; color: var(--green) !important; text-decoration: none !important; }
.anchor .icon { width: 16px; height: 16px; }
.notice, .article-answer { background: var(--sage); border-left: 3px solid var(--gold); padding: 24px; font-size: 16px; margin: 24px 0; border-radius: 0 var(--radius) var(--radius) 0; }
.notice p:last-child { margin-bottom: 0; }
.notice h2 { font-size: 24px; }
.download-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin: 20px 0 28px; }
.download-panel p { font-size: 14px; margin: 0; max-width: 420px; }
.article-answer>p { font-size: 20px; color: var(--green); }
.article-reading, .editorial-note { font-size: 14px; color: var(--muted); }
.law-explanation-heading { padding-bottom: 24px; }
.law-explanation-title h1 { font-size: clamp(34px, 3.5vw, 50px); margin: 0; max-width: 1050px; }
.law-explanation-summary { max-width: 100%; padding: 20px 24px; background: var(--sage); border-left: 3px solid var(--gold); margin-bottom: 0; }
.law-explanation-summary .eyebrow { margin-bottom: 8px; }
.law-explanation-summary p { margin: 0; font-size: 18px; color: var(--ink); }
.law-explanation-layout { display: grid; grid-template-columns: minmax(0,740px) minmax(0,300px); gap: 64px; align-items: start; border-top: 1px solid var(--line); padding-top: 28px; }
.law-explanation-copy { min-width: 0; }
.law-explanation-aside { display: grid; gap: 24px; min-width: 0; }
.law-aside-card { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.law-aside-card h2 { font-size: 22px; margin-bottom: 12px; }
.law-aside-card p { font-size: 15px; margin-bottom: 0; }
.law-aside-card .button, .law-aside-card .inline-link { margin-top: 16px; }
.law-aside-card .button { width: 100%; font-size: 14px; padding-inline: 12px; }
.law-aside-links a { display: flex; align-items: start; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
.law-aside-links a:hover { text-decoration: underline; }
.law-aside-links .icon { width: 20px; height: 20px; color: var(--green); }
/* Dialog and cookies */
.dialog-open { overflow: hidden; }
#law-dialog { border: 1px solid var(--line); border-radius: 12px; padding: 0; width: min(680px, calc(100% - 32px)); max-height: 90dvh; background: var(--paper); color: var(--ink); box-shadow: 0 18px 100px #071d1640; }
#law-dialog::backdrop { background: #0b241dbb; }
.dialog-toolbar { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 24px; z-index: 1; font-size: 14px; font-weight: 600; }
.dialog-toolbar button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--green); }
.dialog-actions { padding: 16px 28px 0; }
#law-dialog-content { padding: 24px 28px 32px; }
#law-dialog-content h2 { font-size: 30px; }
#law-dialog-content .lead { font-size: 18px; }
.dialog-hint { font-size: 15px; }
.cookie-banner { position: fixed; z-index: 10; bottom: 20px; left: 50%; transform: translateX(-50%); width: min(1080px,calc(100% - 32px)); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; box-shadow: 0 6px 40px #0c241b20; display: flex; align-items: center; gap: 24px; }
.cookie-banner strong { font-size: 16px; }
.cookie-banner p { font-size: 14px; margin: 8px 0 0; max-width: 550px; }
.cookie-banner a { text-decoration: underline; }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-actions .button { font-size: 14px; }
/* Footer and editor */
footer { border-top: 1px solid var(--line); padding-top: 48px; }
.footer-top { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 64px; padding-bottom: 32px; }
.footer-top p { font-size: 15px; margin-top: 20px; }
.footer-top>div>strong { display: block; font-size: 15px; margin-bottom: 16px; }
.footer-top>div>a:not(.brand), .text-button { display: block; font-size: 14px; color: var(--muted); margin-bottom: 10px; padding-block: 3px; }
.footer-top a:hover, .text-button:hover { text-decoration: underline; }
.text-button { border: 0; background: transparent; padding-inline: 0; text-align: left; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-block: 20px; font-size: 13px; color: var(--muted); }
.admin-form label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 20px; }
.admin-form input, .admin-form textarea, .admin-form select { display: block; width: 100%; padding: 12px; margin-top: 8px; border: 1px solid #a7b7a9; border-radius: var(--radius); background: #fff; color: var(--ink); }
.admin-form textarea { min-height: 130px; font-family: monospace; font-size: 14px; }
.admin-form select[multiple] { min-height: 140px; }
.admin-form .body-editor { min-height: 480px; }
.admin-grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 40px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 32px; }
.admin-table td, .admin-table th { text-align: left; border-bottom: 1px solid var(--line); padding: 12px; overflow-wrap: anywhere; }
.admin-table a { text-decoration: underline; }
.errors { background: #f8e4df; color: #812e23; padding: 20px; margin-bottom: 24px; }
.success { background: var(--sage); padding: 20px; margin-bottom: 24px; }
.admin-bar { display: flex; gap: 20px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.admin-bar h1 { font-size: 36px; margin: 0; }
.admin-bar form { margin: 0; }
.form-actions { display: flex; gap: 16px; flex-wrap: wrap; }
/* Responsive layouts follow available content width, not a shrunken desktop. */
@media (min-width: 901px) { .site-navigation:not([open])>nav { display: flex; } }
@media (max-width: 1100px) {
  .header-inner { gap: 20px; }
  .header nav { gap: 16px; }
  .brand { font-size: 23px; }
  .hero-grid { gap: 36px; }
  .service-grid { gap: 40px; }
  .reading-layout { grid-template-columns: 210px minmax(0,1fr); gap: 36px; }
  .law-explanation-layout { grid-template-columns: minmax(0,1fr) 280px; gap: 36px; }
  .cookie-banner { align-items: start; }
  .cookie-actions { flex-direction: column; }
}
@media (max-width: 900px) {
  .wrap { width: calc(100% - 48px); }
  .header-inner { min-height: 80px; gap: 12px; flex-wrap: wrap; padding-block: 16px; }
  .site-navigation { order: 3; width: 100%; margin: 0; }
  .site-navigation>summary { display: flex; align-items: center; gap: 8px; width: fit-content; position: absolute; top: 18px; right: 56px; cursor: pointer; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; list-style: none; }
  .site-navigation>summary::-webkit-details-marker { display: none; }
  .site-navigation>summary .icon { width: 20px; height: 20px; }
  .site-navigation[open]>summary { background: var(--sage); }
  .site-navigation:not([open]) { height: 0; }
  .site-navigation nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
  .site-navigation nav a { font-size: 16px; min-height: 48px; }
  .header-search { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; padding-block: 40px; gap: 32px; }
  .hero-copy { max-width: 690px; }
  .hero h1 { font-size: clamp(40px, 6vw, 54px); }
  .hero-art { display: none; }
  .three { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .service-grid { grid-template-columns: 1fr; gap: 28px; }
  .service-grid>div>p { max-width: 620px; }
  .law-banner { flex-wrap: wrap; }
  .law-banner .button { margin-left: 68px; }
  .law-explanation-layout { grid-template-columns: 1fr; gap: 40px; }
  .law-explanation-aside { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-grid { grid-template-columns: 1fr; }
  .footer-top { gap: 32px; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 40px); }
  h1 { font-size: 34px; }
  h2 { font-size: 28px; }
  .brand { font-size: 22px; gap: 9px; }
  .brand small { font-size: 10px; }
  .brand-symbol { width: 38px; height: 42px; }
  .brand-symbol .icon { width: 29px; height: 29px; }
  .site-navigation>summary { right: 52px; padding-inline: 9px; }
  .site-navigation>summary span { display: none; }
  .header-inner { min-height: 76px; gap: 0; padding-block: 16px 4px; }
  .site-navigation nav { grid-template-columns: 1fr; padding-bottom: 8px; }
  .hero-grid { padding-block: 32px; }
  .hero h1 { font-size: clamp(36px, 8.8vw, 46px); line-height: 1.12; }
  .hero-lead { font-size: 17px; margin-bottom: 24px; }
  .desktop-break { display: none; }
  .search-form { gap: 8px; }
  .search-form>.icon { display: none; }
  .search-form input { padding-left: 8px; }
  .quick-links { font-size: 13px; gap: 6px 14px; }
  .section { padding-block: 40px; }
  .section-heading { align-items: start; flex-direction: column; gap: 16px; margin-bottom: 24px; }
  .section-heading h2 { font-size: 28px; }
  .three { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .card-icon { margin-bottom: 16px; }
  .card h2, .card h3 { font-size: 21px; }
  .service-section { padding-block: 40px; }
  .service-card { padding: 20px; gap: 16px; }
  .service-card h3 { font-size: 19px; }
  .service-card>.icon:last-child { display: none; }
  .path-grid { grid-template-columns: 1fr; gap: 20px; }
  .path-item { display: grid; grid-template-columns: 32px 1fr; column-gap: 20px; padding-bottom: 20px; }
  .path-item>.icon { grid-row: 1/3; }
  .path-item h3 { font-size: 21px; }
  .path-item p { grid-column: 2; }
  .editorial { padding-top: 0; }
  .law-banner { padding: 24px; gap: 20px; margin-bottom: 40px; }
  .law-banner>.icon { display: none; }
  .law-banner h2 { font-size: 25px; }
  .law-banner .button { margin-left: 0; }
  .page { padding-top: 20px; padding-bottom: 48px; }
  .breadcrumbs { font-size: 13px; margin-bottom: 20px; }
  .page>.eyebrow { margin-top: 20px; }
  .eyebrow { margin-bottom: 12px; }
  .lead, .catalogue>.lead { font-size: 17px; line-height: 1.6; margin-bottom: 20px; }
  .catalogue>h1 { font-size: 32px; }
  .catalog-filters { margin-top: 20px; }
  .catalog-filters>summary { flex-wrap: wrap; gap: 8px; }
  .catalog-filters>summary>span { display: none; }
  .catalog-filters form { grid-template-columns: 1fr; gap: 16px; }
  .catalog-filters .button { justify-self: start; }
  .catalogue-results { margin-block: 16px; }
  .document-list .card { grid-template-columns: 36px minmax(0,1fr); gap: 8px 16px; }
  .document-list .card-icon { width: 36px; height: 40px; grid-row: 1; }
  .document-list .card-copy { grid-column: 2; grid-row: 1; }
  .document-list h2 { font-size: 20px; }
  .document-list .card-link { grid-column: 2; grid-row: 3; justify-content: start; }
  .document-type { grid-column: 2; grid-row: 2; }
  .directory-heading { display: block; margin-top: 20px; }
  .directory-heading>.icon { display: none; }
  .directory-heading h1 { font-size: 34px; }
  .topic-jump>summary { display: list-item; }
  .topic-navigation { gap: 4px 18px; padding-bottom: 16px; }
  .law-chapter { margin-block: 28px; }
  .law-chapter h2 { font-size: 24px; }
  .explanation-row, .law-row { grid-template-columns: minmax(0,1fr) 20px; gap: 8px 12px; padding: 20px 0; }
  .law-number, .law-row>span { grid-column: 1/-1; padding-top: 0; }
  .explanation-row h3, .human-law-row strong { font-size: 19px; }
  .explanation-row p { font-size: 15px; }
  .law-row { font-size: 16px; }
  .view-switch { display: flex; }
  .view-switch a { padding-inline: 10px; flex: 1; justify-content: center; }
  .content-title { font-size: 32px; margin-bottom: 16px; }
  .meta { font-size: 14px; margin-bottom: 20px; }
  .reading-layout { grid-template-columns: 1fr; gap: 20px; padding-top: 12px; }
  .toc { position: static; max-height: none; padding: 0; border-bottom: 1px solid var(--line); }
  .toc .disclosure-body { padding-bottom: 12px; }
  .prose { font-size: 17px; line-height: 1.75; }
  .prose h2 { font-size: 25px; margin-top: 28px; }
  .prose h3 { font-size: 21px; }
  .prose table { font-size: 15px; }
  .prose th, .prose td { padding: 12px; }
  /* A labelled stacked representation keeps comparison text readable on phones. */
  .prose table.responsive-table, .prose table.responsive-table tbody, .prose table.responsive-table tr, .prose table.responsive-table td { display: block; }
  .responsive-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .prose .responsive-table tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .prose .responsive-table td { width: 100%; border: 0; padding: 8px 0; }
  .responsive-table td::before { content: attr(data-label); display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
  .legal-basis { padding: 20px; margin-block: 32px; }
  .legal-basis h2 { font-size: 24px; }
  .law-help { padding: 20px; }
  .law-help-title strong { font-size: 17px; }
  .law-help-title>.icon { display: none; }
  .legal-text { font-size: 17px; padding-left: 20px; }
  .anchor { left: -22px; }
  .related-card { gap: 12px; }
  .related-card h2, .related-card h3 { font-size: 19px; }
  .related-card p { font-size: 15px; }
  .related-card>.icon:first-child { display: none; }
  .notice { padding: 20px; font-size: 15px; }
  .law-explanation-title h1 { font-size: 32px; }
  .law-explanation-heading { padding-bottom: 20px; }
  .law-explanation-summary { padding: 20px; margin-bottom: 24px; }
  .law-explanation-summary p { font-size: 17px; }
  .law-explanation-layout { padding-top: 24px; }
  .law-explanation-aside { grid-template-columns: 1fr; }
  .dialog-toolbar { padding: 12px 20px; }
  .dialog-actions { padding-inline: 20px; }
  #law-dialog-content { padding: 20px; }
  #law-dialog-content h2 { font-size: 26px; }
  #law-dialog-content .lead { font-size: 17px; }
  .cookie-banner { display: block; bottom: 12px; padding: 20px; max-height: 70dvh; overflow-y: auto; }
  .cookie-actions { margin-top: 16px; flex-direction: row; flex-wrap: wrap; }
  .cookie-actions .button { flex: 1 1 200px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  footer { padding-top: 32px; }
  .footer-top p { margin-bottom: 0; }
  .footer-bottom { flex-wrap: wrap; gap: 8px; }
  .admin-bar { flex-wrap: wrap; }
  .admin-bar h1 { font-size: 30px; }
  .admin-table { font-size: 13px; }
  .admin-table td, .admin-table th { padding: 8px 4px; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 32px); }
  .brand { font-size: 20px; }
  .brand small { font-size: 9px; letter-spacing: 0; }
  .brand-symbol { width: 32px; height: 38px; }
  .brand-symbol .icon { width: 26px; height: 26px; }
  .header-search { width: 40px; }
  .site-navigation>summary { right: 48px; width: 40px; }
  .hero h1 { font-size: 34px; }
  .card { padding: 20px; }
  .view-switch a { font-size: 13px; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
