:root { color-scheme: light; --ink: #2D3142; --muted: #4F5D75; --bg: #fff; --line: #d4d7dd; --control: #707887; --accent: #EF8354; --link: #A8461C; --tint: #FDEEE6; --bar: #2D3142; --bar-ink: #fff; }
:root[data-contrast="c1"] { --ink: #000; --muted: #000; --bg: #fff; --line: #000; --control: #000; --link: #000; --tint: #fff; --bar: #000; --bar-ink: #fff; }
:root[data-contrast="c2"] { --ink: #fff; --muted: #fff; --bg: #000; --line: #fff; --control: #fff; --link: #fff; --tint: #000; --bar: #000; --bar-ink: #fff; }
:root[data-contrast="c3"] { --ink: #ffe500; --muted: #ffe500; --bg: #000; --line: #ffe500; --control: #ffe500; --link: #ffe500; --tint: #000; --bar: #000; --bar-ink: #ffe500; }
:root[data-contrast="c4"] { --ink: #000; --muted: #000; --bg: #ffe500; --line: #000; --control: #000; --link: #000; --tint: #ffe500; --bar: #000; --bar-ink: #ffe500; }
:root[data-size="large"] { font-size: 112.5%; }
:root[data-size="largest"] { font-size: 125%; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 1rem/1.6 system-ui, -apple-system, sans-serif; overflow-wrap: anywhere; }
body[data-spacing="true"] { line-height: 1.9; letter-spacing: .12em; word-spacing: .16em; }
body[data-spacing="true"] p { margin-bottom: 2em; }
a { display: inline-block; min-width: 2.75rem; min-height: 2.75rem; color: var(--link); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .15em; }
button, input, select { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--control); border-radius: .4rem; padding: .5em .7em; max-width: 100%; min-width: 0; }
button, input, select, summary { min-width: 2.75rem; min-height: 2.75rem; }
button, summary { cursor: pointer; }
button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); font-weight: 700; }
button:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
.wrap { max-width: 74rem; margin: auto; padding: 1rem; }
.skip { position: absolute; top: -10rem; }
.skip:focus { top: .5rem; left: .5rem; padding: .5rem; background: var(--bg); z-index: 10; }
[hidden] { display: none !important; }
.notice { background: var(--tint); color: var(--link); font-size: .85rem; }
.notice .wrap { padding-block: .4rem; }
.bar { background: var(--bar); color: var(--bar-ink); font-size: .875rem; }
.bar-inner, .links { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; }
.bar-inner { justify-content: space-between; padding-block: .5rem; }
.bar a { color: var(--bar-ink); }
.bar button { background: var(--bar); color: var(--bar-ink); border-color: currentColor; }
.bar :focus-visible { outline-color: var(--bar-ink); }
.panel { border-bottom: 1px solid var(--line); }
.panel fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.panel legend { font-weight: 700; margin-bottom: .5rem; }
.panel button { margin: .2rem; }
.masthead { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; padding-block: 1.5rem; }
header { border-bottom: 1px solid var(--line); }
img { max-width: 100%; height: auto; }
.bipmark { width: 5.5rem; flex-shrink: 0; background: #fff; border-radius: .3rem; padding: .3rem; line-height: 0; }
.entity { display: flex; gap: 1rem; align-items: center; color: var(--ink); text-decoration: none; flex: 1 1 25rem; min-width: 0; }
.entity img { width: 3.5rem; flex-shrink: 0; background: #fff; }
.entity small { display: block; color: var(--link); text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; font-weight: 700; margin-bottom: .25rem; }
.entity b { display: block; font-size: 1.05rem; line-height: 1.35; }
.header-search { flex: 1 1 16rem; }
.header-search label { display: block; font-size: .8rem; margin-bottom: .3rem; }
.search-row { display: flex; gap: .4rem; }
.search-row input { width: 100%; }
.search-row button { color: var(--bg); background: var(--ink); border-color: var(--ink); font-weight: 700; }
.layout { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: 2rem; padding-block: 1.75rem 3rem; }
.side ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; margin: 0 0 .8rem; color: var(--muted); }
.side a { display: block; color: var(--muted); padding: .5rem .75rem; font-size: .875rem; line-height: 1.4; text-decoration: none; border-left: 3px solid transparent; margin-left: -2px; }
.side a:hover, .side a[aria-current] { background: var(--tint); color: var(--ink); }
.side a[aria-current] { border-color: var(--link); font-weight: 700; text-decoration: underline; }
main { min-width: 0; }
.crumbs { font-size: .8rem; color: var(--muted); margin-bottom: 1rem; }
h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 1rem; font-weight: 650; }
h2 { font-size: 1.25rem; line-height: 1.35; margin: 1.75rem 0 .8rem; }
h3 { font-size: 1.1rem; }
h4 { font-size: 1rem; }
.doc { border: 1px solid var(--line); border-radius: .6rem; padding: clamp(1rem, 3vw, 2rem); }
.doc > :first-child { margin-top: 0; }
p, ul, ol { margin: 0 0 1rem; }
.tag { display: inline-block; border: 1px solid var(--control); border-radius: 2rem; padding: .15em .7em; color: var(--muted); font-size: .75rem; }
.facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: .6rem 1.2rem; margin: 0; }
.facts dt { color: var(--muted); font-size: .875rem; }
.facts dd { margin: 0; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; padding-block: 2rem; }
footer h2 { margin: 0 0 1rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .07em; }
footer ul { list-style: none; padding: 0; }
footer li { margin-bottom: .5rem; }
.menu-toggle { display: none; }
.search-row button { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 55rem) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .entity { flex-basis: 70%; }
  .js .menu-toggle { display: block; }
  .js .side:not(.open) { display: none; }
}
@media (max-width: 25rem) { .facts { grid-template-columns: minmax(0, 1fr); } .facts dd { margin-bottom: .75rem; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media (forced-colors: active) { button { border: 1px solid ButtonText; } :focus-visible { outline: 3px solid Highlight; } }
.metry { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: .25rem; }
.versions li, .change-list li { padding-block: .7rem; border-bottom: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; margin-block: 1rem; }
.filters label { display: grid; gap: .3rem; max-width: 100%; }
.filters select { max-width: 22rem; width: 100%; }
.diff del { text-decoration: line-through; }
.diff ins { text-decoration: underline; font-weight: 700; }
.attachment { padding: 1rem; border: 1px solid var(--line); border-radius: .4rem; margin-bottom: 1rem; }
.tools { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.5rem; }
#search-results { padding-left: 1.3rem; }
#search-results li { border-bottom: 1px solid var(--line); padding-block: 1rem; }
@media print {
  :root { --ink: #000; --muted: #000; --bg: #fff; --link: #000; --line: #777; font-size: 100%; }
  body { color: #000; background: #fff; }
  header, footer, .side, .crumbs, .skip, .tools, .versions, .tag, #a11y { display: none !important; }
  .layout { display: block; padding: 0; }
  .doc { border: 0; padding: 0; }
  h1, h2, h3, dt { break-after: avoid; }
  .metry { display: block; }
  @page { size: A4; margin: 18mm; }
}
