/* jury.mn law library: the Jury AI design system (Midnight navy). The build
 * hashes this file and rewrites the font and licence paths below. Each font
 * file is one subset covering Latin and Cyrillic, so there is no unicode-range. */

/* Licence: fonts/OFL-Geologica-77818624.txt */
@font-face {
  font-family: 'Geologica';
  src: url(fonts/geologica-bc3fade9.woff2) format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Licence: fonts/OFL-Literata-87429636.txt */
@font-face {
  font-family: 'Literata';
  src: url(fonts/literata-8c707993.woff2) format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
/* Licence: fonts/OFL-Literata-87429636.txt */
@font-face {
  font-family: 'Literata';
  src: url(fonts/literata-italic-8c6ade6b.woff2) format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
/* Licence: fonts/OFL-JetBrainsMono-b2fe5e89.txt */
@font-face {
  font-family: 'JetBrains Mono';
  src: url(fonts/jetbrains-mono-a694dd2b.woff2) format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* Light by default; the dark values follow the system scheme. The theme-color
 * metas in pages.mjs repeat --bg. */
:root {
  color-scheme: light dark;
  --font-ui: 'Geologica', system-ui, 'Segoe UI', Roboto, sans-serif;
  --font-read: 'Literata', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 24px);
  --bg: #f3f5fa;
  --surface: #fff;
  --surface-raised: #fff;
  --surface-hover: #edf1f8;
  --surface-selected: #e3eafb;
  --surface-sunken: #f1f4f9;
  --ink: #16284b;
  --ink-secondary: #3a4b6e;
  --ink-muted: #56668a;
  --ink-disabled: #a3adc2;
  --line: #e0e5ef;
  --line-strong: #77859f;
  --cobalt: #3156db;
  --cobalt-subtle: #e8eeff;
  --primary: #3156db;
  --primary-hover: #2445bb;
  --on-primary: #fff;
  --focus: #2445bb;
  --selection: #cddaff;
  --success: #11573f;
  --success-subtle: #e8f6ef;
  --success-line: #b9e1cf;
  --warning: #835810;
  --warning-subtle: #fdf4e1;
  --warning-line: #ecd6a2;
  --danger: #bf2535;
  --danger-subtle: #fdedef;
  --danger-line: #f2c2c8;
  --shadow-sm: 0 1px 2px #16284b14;
  --shadow-md: 0 12px 32px #16284b1f, 0 0 0 1px #16284b0f;
  --shadow-lift: 0 10px 30px #16284b14;
  --shadow-composer: 0 0 0 1px #d5dcea, 0 10px 30px #16284b14;
  --shadow-composer-focus: 0 0 0 1px #3156db, 0 0 0 4px #3156db1f, 0 10px 30px #16284b14;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070d1a;
    --surface: #0c1426;
    --surface-raised: #121c33;
    --surface-hover: #19243f;
    --surface-selected: #1f2e55;
    --surface-sunken: #08101f;
    --ink: #e8edf7;
    --ink-secondary: #b6c0d6;
    --ink-muted: #8f9cb8;
    --ink-disabled: #55627f;
    --line: #1c2843;
    --line-strong: #61739b;
    --cobalt: #86a1ff;
    --cobalt-subtle: #18264d;
    --primary: #8aa4ff;
    --primary-hover: #a5b9ff;
    --on-primary: #0a1430;
    --focus: #b6c6ff;
    --selection: #2b3f78;
    --success: #86ecc4;
    --success-subtle: #0d2c26;
    --success-line: #1e5c4b;
    --warning: #f3c66e;
    --warning-subtle: #30250d;
    --warning-line: #6a5121;
    --danger: #ff9496;
    --danger-subtle: #38151d;
    --danger-line: #6f2c39;
    --shadow-sm: 0 1px 2px #00000066;
    --shadow-md: 0 12px 32px #0000008c, 0 0 0 1px #ffffff0d;
    --shadow-lift: 0 16px 40px #00000066;
    --shadow-composer: 0 0 0 1px #2c3b63, 0 16px 40px #00000066;
    --shadow-composer-focus: 0 0 0 1px #8aa4ff, 0 0 0 4px #8aa4ff2e, 0 16px 40px #00000066;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
/* Components set display; "rendered hidden" must still mean hidden. */
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--ink);
  font: 400 15px/22px var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection {
  background: var(--selection);
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
a {
  color: var(--cobalt);
  text-underline-offset: 3px;
}
input,
button {
  font: inherit;
}
input::placeholder {
  color: var(--ink-muted);
  opacity: 1;
}
mark {
  padding: 0 1px;
  border-radius: 3px;
  background: var(--cobalt-subtle);
  color: var(--ink);
}

.sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--surface-raised);
  color: var(--ink);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-md);
}
.skip:focus {
  left: 16px;
}
.i {
  display: block;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Rings and dots draw in currentColor; the needle inherits fill. */
.mark {
  display: block;
  flex: none;
  color: var(--cobalt);
  fill: var(--ink);
}
.num {
  font-family: var(--font-mono);
  font-weight: 500;
}
.overline {
  margin: 0;
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.wrap {
  max-width: 1128px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.hero {
  padding-top: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(32px, 5vw, 48px);
}
.band {
  padding-block: clamp(32px, 5vw, 48px);
  border-top: 1px solid var(--line);
}

h1 {
  margin: 20px 0 0;
  font-family: var(--font-read);
  font-size: clamp(36px, 6vw, 52px);
  line-height: 1.08;
  font-weight: 560;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
h2 {
  margin: 0;
  font-size: 26px;
  line-height: 32px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.display {
  font-family: var(--font-read);
  font-size: clamp(28px, 5vw, 36px);
  line-height: 1.17;
  font-weight: 560;
  letter-spacing: -0.015em;
}
.lead {
  margin: 16px 0 0;
  max-width: 600px;
  font-size: 17px;
  line-height: 28px;
  color: var(--ink-secondary);
  text-wrap: pretty;
}
.sub {
  margin: 6px 0 0;
  max-width: 720px;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-muted);
}

/* Hover changes fill, never layout. */
.row,
.button,
.sets a,
.letters a,
.cite,
.chip,
.pager a,
header.site nav a,
.search input,
.search .clear {
  transition:
    background-color 140ms ease-out,
    border-color 140ms ease-out,
    color 140ms ease-out;
}
.crumbs a:hover,
.meta a:hover,
.card h2 a:hover,
.more a:hover,
footer.site nav a:hover {
  text-decoration: underline;
}

header.site,
footer.site {
  background: var(--bg);
}
header.site {
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  min-height: 64px;
  padding-block: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-size: 20px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}
header.site nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
header.site nav a:not(.button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  text-decoration: none;
}
header.site nav a[aria-current] {
  background: var(--surface-selected);
}
header.site nav a:not(.button, [aria-current]):hover {
  background: var(--surface-hover);
}
header.site .button {
  font-size: 14px;
  line-height: 20px;
}

.button {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin: 0;
  padding: 0 14px 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button:hover {
  background: var(--surface-hover);
}
.button.primary {
  border-color: transparent;
  background: var(--primary);
  color: var(--on-primary);
}
.button.primary:hover {
  background: var(--primary-hover);
}

.crumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-muted);
}
.crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.crumbs li + li::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  margin: 0 3px 0 1px;
  border: solid var(--ink-disabled);
  border-width: 1.5px 1.5px 0 0;
  transform: rotate(45deg);
}
.crumbs a {
  color: var(--ink-muted);
  text-decoration: none;
}
.crumbs [aria-current] {
  color: var(--ink-secondary);
}

/* Library home */
.split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 32px 48px;
}
.split .intro {
  flex: 1 1 520px;
  min-width: 0;
  max-width: 640px;
}
.split h1 {
  font-size: clamp(40px, 6vw, 52px);
}
.search {
  position: relative;
  margin: 28px 0 0;
}
.search > .i {
  position: absolute;
  left: 18px;
  top: 20px;
  color: var(--ink-muted);
  pointer-events: none;
}
.search input {
  display: block;
  width: 100%;
  height: 60px;
  margin: 0;
  padding: 0 60px 0 50px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface-raised);
  color: var(--ink);
  font-size: 17px;
  line-height: 24px;
  box-shadow: var(--shadow-lift);
  -webkit-appearance: none;
  appearance: none;
}
.search input::-webkit-search-decoration,
.search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}
.search input:hover {
  border-color: var(--ink-muted);
}
.search input:focus {
  border-color: var(--primary);
}
.search .clear {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
}
.search .clear:hover {
  background: var(--surface-hover);
  color: var(--ink);
}
.meta {
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-muted);
}
.meta .num {
  font-size: 13px;
  color: var(--ink-secondary);
}
.meta a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-sm);
}
.split .card {
  flex: 0 1 392px;
}
.card h2 {
  margin: 8px 0 0;
  font-size: 20px;
  line-height: 26px;
  letter-spacing: -0.01em;
}
.card h2 a {
  color: var(--ink);
  text-decoration: none;
}
.card .meta {
  margin: 6px 0 0;
  gap: 2px 12px;
  font-size: 13px;
  line-height: 18px;
}
.card .button {
  margin: 20px 0 0;
}
.quote {
  margin: 20px 0 0;
  padding: 0 0 0 16px;
  border-left: 2px solid var(--cobalt);
}
.quote blockquote {
  margin: 0;
}
.quote blockquote p {
  margin: 0;
  font-family: var(--font-read);
  font-size: 17px;
  line-height: 29px;
  font-style: italic;
}
.quote figcaption {
  margin: 8px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-muted);
}
.cite {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--cobalt-subtle);
  color: var(--cobalt);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  text-decoration: none;
}
.cite:hover {
  background: var(--surface-selected);
}

ol.laws,
.cited ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
ol.laws > li {
  border-bottom: 1px solid var(--line);
}
.row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 24px;
  min-height: 44px;
  margin: 0 -12px;
  padding: 12px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}
.row:hover {
  background: var(--surface-hover);
}
.row .name {
  flex: 1 1 360px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.badge {
  display: inline-block;
  margin-left: 8px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  color: var(--ink-muted);
  vertical-align: 1px;
}
.badge.num {
  font-weight: 600;
}
.figures {
  flex: none;
  display: flex;
  gap: 16px;
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-muted);
}
.figures .date {
  width: 84px;
}
.figures .arts {
  width: 72px;
  text-align: right;
}
.figures .arts .num {
  color: var(--ink-secondary);
}
p.more {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-muted);
}
p.more a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  text-decoration: none;
}

#results .band {
  padding-top: clamp(24px, 4vw, 40px);
}
#results h2:not(.display) {
  font-size: 20px;
  line-height: 26px;
  letter-spacing: -0.01em;
}
#results .sub {
  margin-top: 4px;
}
#results ol.laws {
  margin-top: 16px;
}
#results .none {
  max-width: 560px;
}
.none p {
  margin: 12px 0 0;
  color: var(--ink-secondary);
}
.none .button {
  margin-top: 20px;
}

.cited ol {
  margin-top: 24px;
  columns: 2 420px;
  column-gap: 48px;
}
.cited li {
  break-inside: avoid;
  border-top: 1px solid var(--line);
}
.cited .row {
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px;
}
.cited .row .name {
  flex: 1 1 auto;
}
.cited .title {
  display: block;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
}
.cited .line {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-muted);
}
.cited .count {
  flex: none;
  text-align: right;
}
.cited .count > span {
  display: block;
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-muted);
}
.cited .count > .num {
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  color: var(--ink-secondary);
}

ol.guides {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
ol.guides > li {
  border-top: 1px solid var(--line);
}
ol.guides .row {
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px;
  padding-block: 14px;
}
ol.guides .row .name {
  flex: 1 1 auto;
}
ol.guides .title {
  display: block;
  font-size: 17px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
ol.guides .line {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-muted);
}
ol.guides .row > .i {
  color: var(--ink-muted);
}

.all .head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
}
.all .head > div:first-child {
  flex: 1 1 360px;
  min-width: 0;
}
.sets {
  flex: 0 1 auto;
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-sunken);
}
.sets a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--ink-secondary);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  text-decoration: none;
}
.sets .num {
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-muted);
}
.sets a[aria-current],
.letters a[aria-current] {
  background: var(--surface-selected);
  color: var(--ink);
}
.sets a:not([aria-current]):hover,
.letters a:not([aria-current]):hover {
  background: var(--surface-hover);
  color: var(--ink);
}
.letters {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 24px 0 0;
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
/* The padding keeps focus rings inside the scroller's clip. */
.letters .scroll {
  position: relative;
  display: flex;
  gap: 4px;
  margin: 0 -4px;
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.letters .scroll::-webkit-scrollbar {
  display: none;
}
.letters a {
  flex: 1 0 38px;
  min-width: 38px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--ink-secondary);
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: none;
}
.letter {
  margin: 32px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px 40px;
  scroll-margin-top: 77px;
}
.letter .key {
  flex: 0 0 128px;
}
.letter h3 {
  margin: 0;
  font-size: 56px;
  line-height: 56px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.letter .key p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-muted);
}
.letter .key .num {
  color: var(--ink-secondary);
}
.letter ol.laws {
  flex: 999 1 560px;
  min-width: 0;
}
/* Focus moving back up a set stops below the sticky letter bar. */
.set ol.laws .row,
.set > .next {
  scroll-margin-top: 72px;
}
.set > .next {
  display: flex;
  margin: 24px 0 0 auto;
  padding: 0 12px 0 14px;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}
.set > .next b {
  font-weight: 600;
}

.cta .band {
  padding-block: clamp(40px, 6vw, 64px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px 48px;
}
.cta .pitch {
  flex: 1 1 380px;
  min-width: 0;
}
.cta .overline {
  margin-top: 20px;
}
.cta .display {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 36px);
}
.cta .pitch > p:last-child {
  margin: 12px 0 0;
  color: var(--ink-secondary);
}
.cta .ask {
  flex: 1 1 440px;
  min-width: 0;
}
.composer {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 20px;
  border-radius: 24px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-composer);
  transition: box-shadow 160ms ease-out;
}
.composer:focus-within {
  box-shadow: var(--shadow-composer-focus);
}
.composer input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  line-height: 24px;
}
.composer input:focus-visible {
  outline: none;
}
.composer button {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  cursor: pointer;
  transition: background-color 140ms ease-out;
}
.composer button:hover {
  background: var(--primary-hover);
}
.cta .caption {
  padding: 0 4px;
}
.caption {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-muted);
}

footer.site {
  flex: 1 0 auto;
  border-top: 1px solid var(--line);
}
footer.site .wrap {
  padding-block: 32px;
}
footer.site .brand {
  gap: 8px;
  font-size: 16px;
  line-height: 20px;
}
footer.site .note {
  margin: 8px 0 0;
  max-width: 720px;
  font-size: 14px;
  line-height: 22px;
  color: var(--ink-muted);
}
footer.site nav {
  margin: 20px 0 0;
  padding: 8px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 20px;
  font-size: 14px;
  line-height: 20px;
}
footer.site nav > * {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-muted);
}
footer.site nav a {
  color: var(--ink-secondary);
  text-decoration: none;
}

/* Law and article pages */
.eyebrow {
  margin: 24px 0 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-muted);
}
.eyebrow + h1 {
  margin-top: 8px;
}
.hero > .overline {
  margin-top: 24px;
}
.overline + h1 {
  margin-top: 10px;
  max-width: 880px;
}
.hero > .lead {
  max-width: 680px;
}
h1.article {
  font: 600 17px/24px var(--font-ui);
  letter-spacing: 0;
}
h1 .law {
  display: block;
  width: fit-content;
  letter-spacing: -0.01em;
  text-decoration: none;
}
h1 .law:hover {
  text-decoration: underline;
}
h1 .caption {
  display: block;
  margin: 4px 0 0;
  padding: 0;
  font-family: var(--font-read);
  font-size: clamp(36px, 6vw, 52px);
  line-height: 1.08;
  font-weight: 560;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 .heading {
  display: block;
  margin: 12px 0 0;
  font-size: 26px;
  line-height: 32px;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.actions {
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.facts {
  margin: 32px 0 0;
  padding: 16px 0;
  border-block: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: 16px 24px;
}
.facts div {
  min-width: 0;
}
.facts .wide {
  grid-column: 1 / -1;
}
.facts dt {
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-muted);
}
.facts dd {
  margin: 6px 0 0;
  min-height: 24px;
  line-height: 24px;
  overflow-wrap: anywhere;
}
.facts dd.num {
  font-size: 14px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 8px 0 6px;
  border: 1px solid var(--success-line);
  border-radius: 6px;
  background: var(--success-subtle);
  color: var(--success);
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  vertical-align: top;
}
.notice {
  margin: 16px 0 0;
  max-width: 880px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-sunken);
  color: var(--ink-secondary);
  font-size: 14px;
  line-height: 20px;
}
.notice + .notice {
  margin-top: 8px;
}
.notice.newer {
  display: flex;
  gap: 10px;
  border-color: var(--warning-line);
  background: var(--warning-subtle);
  color: var(--warning);
}
.notice.newer a {
  color: inherit;
}

.cols {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px 56px;
  padding-bottom: clamp(40px, 5vw, 64px);
}
.cols .main {
  flex: 999 1 560px;
  min-width: 0;
  max-width: 720px;
}
.cols .aside {
  flex: 1 1 280px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.main > * + * {
  margin-top: 48px;
}
.main > .pager {
  margin-top: 40px;
}
.main .head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
}
.main h2 + .text {
  margin-top: 16px;
}
.practice,
.citing {
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.practice h2,
.citing h2 {
  font-size: 20px;
  line-height: 26px;
  letter-spacing: -0.01em;
}
.main h3 {
  margin: 24px 0 0;
}

/* Provisions: the reading face, a clause number column, and links in place. */
.text {
  color: var(--ink);
}
.p {
  margin: 12px 0 0;
  font-family: var(--font-read);
  font-size: 17px;
  line-height: 29px;
  overflow-wrap: anywhere;
}
.text > .p:first-child {
  margin-top: 0;
}
.p.d2 {
  padding-left: 16px;
}
.p.d3 {
  padding-left: 32px;
}
.p.d4 {
  padding-left: 48px;
}
.p.dash {
  margin-top: 6px;
  padding-left: 16px;
  text-indent: -16px;
}
.p .note,
.p.note {
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-muted);
}
.p a {
  text-decoration-thickness: 1px;
}
/* The number floats as a column; the text beside it wraps on its own edge. */
.p > .loc {
  float: left;
  min-width: 28px;
  margin-right: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
}
.p > .loc:hover {
  color: var(--cobalt);
}
.p > .loc + span {
  display: flow-root;
}

.contents > .head {
  justify-content: flex-start;
  gap: 12px;
}
.contents > .head > .num {
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-muted);
}
.chapter {
  margin: 24px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
}
.chapter h3 {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
}
.chapter .label,
.chapter-nav .label {
  display: block;
  margin: 0 0 2px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--ink-muted);
}
.count {
  flex: none;
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-muted);
}
.count .num {
  color: var(--ink-secondary);
}
.chapter h4 {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--ink-secondary);
}
ol.chips,
ol.toc,
ol.list,
ol.refs,
ol.decisions,
ul.own {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
ol.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
ol.chips li {
  display: flex;
}
.chip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-secondary);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  text-decoration: none;
}
.chip:not([aria-current]):hover {
  border-color: var(--line-strong);
  background: var(--surface-hover);
  color: var(--ink);
}
.chip[aria-current] {
  border-color: var(--line-strong);
  background: var(--surface-selected);
  color: var(--ink);
  font-weight: 600;
}
.toc .row {
  gap: 2px 16px;
  padding-block: 10px;
}
.toc .row .num {
  flex: 0 0 128px;
  font-size: 13px;
  color: var(--ink-muted);
}
.toc .row .name {
  flex-basis: 240px;
}
.opening h3 {
  font-family: var(--font-read);
  font-size: 21px;
  line-height: 30px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.opening h3 a,
.source a {
  color: var(--ink);
  text-decoration: none;
}
.opening h3 a:hover,
.source a:hover,
.continue a:hover,
.chapter-nav .go:hover {
  text-decoration: underline;
}
.opening h3 + * {
  margin-top: 8px;
}
.continue {
  margin: 24px 0 0;
}
.continue a,
.chapter-nav .go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
  text-decoration: none;
}

.pager {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 12px;
}
.pager a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
}
.pager a:hover {
  background: var(--surface-hover);
}
.pager .next {
  align-items: flex-end;
  text-align: right;
}
.pager .dir {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-muted);
}
.pager .name {
  margin: 2px 0 0;
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
}

.practice .sub {
  margin-top: 4px;
}
.practice strong {
  font-weight: 600;
  color: var(--ink-secondary);
}
.stats {
  margin: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--line);
}
.stats div {
  flex: 1 1 140px;
  padding: 14px 16px;
  background: var(--surface);
}
.stats dt {
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-muted);
}
.stats dd {
  margin: 4px 0 0;
  font-size: 22px;
  line-height: 26px;
  color: var(--ink-secondary);
}
.stats .total dd {
  font-weight: 600;
  color: var(--ink);
}
.practice h3 {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--ink-secondary);
}
ol.decisions {
  margin-top: 8px;
}
.decisions li {
  border-bottom: 1px solid var(--line);
}
.decisions .row {
  display: block;
}
.court {
  display: block;
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
}
.court .i,
.source .i {
  display: inline-block;
  margin-left: 4px;
  vertical-align: -1px;
  color: var(--ink-muted);
}
.decisions .line {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-muted);
}
.practice .actions {
  margin-top: 16px;
}

.citing .sub {
  margin-top: 4px;
}
ol.refs {
  margin-top: 16px;
}
.refs > li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.source {
  margin: 0;
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.tag {
  display: inline-block;
  margin-left: 8px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-sunken);
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
  white-space: nowrap;
}
.cites {
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.cites .caption,
.refs .caption {
  margin: 0;
  line-height: 24px;
}
.cites .cite {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
}
.cite.word {
  font-family: var(--font-ui);
}
ul.own {
  margin-top: 6px;
}
.own .row {
  margin: 0 -8px;
  padding: 12px 8px;
  font-size: 14px;
  line-height: 20px;
}
details.more {
  margin: 16px 0 0;
}
/* Open, the rest of the list continues the first six and the button follows it. */
details.more[open] {
  margin: 0;
  display: flex;
  flex-direction: column-reverse;
}
details.more[open] summary {
  margin-top: 16px;
}
details.more ol.refs {
  margin-top: 0;
}
details.more summary {
  padding: 0 16px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  list-style: none;
}
details summary::-webkit-details-marker {
  display: none;
}
details.more .open,
details.more[open] .closed {
  display: none;
}
details.more[open] .open {
  display: inline;
}

.aside .card {
  padding: 20px;
}
.aside .card h2 {
  margin: 0;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0;
}
.aside .card .sub {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 16px;
}
.list li {
  border-top: 1px solid var(--line);
}
.list .row {
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 -8px;
  padding: 10px 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}
.list .row .name {
  flex: 1 1 auto;
}
.list .line {
  display: block;
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  color: var(--ink-muted);
}
.list .count {
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
}
.list .count .num {
  font-size: 13px;
  font-weight: 600;
}
.list .row > .i {
  color: var(--ink-muted);
}
.list.dates li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
}
.list.dates time {
  font-size: 13px;
  line-height: 18px;
}
details.older summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  border-top: 1px solid var(--line);
  color: var(--cobalt);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}
details.older summary::after {
  content: '';
  width: 6px;
  height: 6px;
  margin: 0 0 3px 10px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
details.older[open] summary::after {
  margin-bottom: -3px;
  transform: rotate(-135deg);
}
details.older ol.list {
  margin: 0;
}
.list.notes li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  padding: 12px 0;
}
.list.notes time {
  font-size: 13px;
  line-height: 18px;
}
.list.notes .badge {
  margin: 0;
}
.list.notes .caption {
  flex: 1 0 100%;
  margin: 0;
  padding: 0;
}
.aside .refs > li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.aside ol.refs {
  margin-top: 4px;
}
.chapter-nav h2 + .part {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-secondary);
}
.chapter-nav ol.chips {
  margin-top: 14px;
}
.chapter-nav .go {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 20px;
}

/* Guides */
.hero > h1 + .meta {
  margin-top: 20px;
}
.meta.reviewed {
  align-items: center;
  line-height: 24px;
}
.reviewed > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.reviewed .who {
  color: var(--ink);
}
.answer h2 {
  margin: 0;
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}
.answer .summary {
  margin: 12px 0 0;
  font-family: var(--font-read);
  font-size: 17px;
  line-height: 29px;
}
.answer .actions {
  margin-top: 20px;
}

/* A guide's Markdown body: sections, steps, quoted provisions, review notes. */
.prose > :first-child {
  margin-top: 0;
}
.prose > p,
.prose li {
  margin: 12px 0 0;
  color: var(--ink-secondary);
}
.prose strong {
  font-weight: 600;
  color: var(--ink);
}
.prose h2 {
  margin: 48px 0 0;
  scroll-margin-top: 24px;
}
.prose h3 {
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
}
.prose ul {
  margin: 12px 0 0;
  padding-left: 20px;
}
.prose ul > li {
  margin-top: 8px;
}
/* Numbered lists are steps: a round number beside each. */
.prose ol {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  counter-reset: step;
}
.prose ol > li {
  position: relative;
  min-height: 28px;
  margin-top: 20px;
  padding-left: 44px;
  counter-increment: step;
}
.prose ol > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -3px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-sunken);
  font: 600 13px/18px var(--font-mono);
  color: var(--ink-secondary);
}
.prose > blockquote {
  margin: 16px 0 0;
  padding: 0 0 0 16px;
  border-left: 2px solid var(--line-strong);
}
.prose > blockquote p {
  margin: 0;
}
.prose .cite {
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.provision {
  margin: 20px 0 0;
}
.provision .label {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--ink-muted);
}
.provision blockquote {
  margin: 0;
  padding: 0 0 0 16px;
  border-left: 2px solid var(--cobalt);
}
.provision .p {
  font-style: italic;
}
.provision .p:first-child {
  margin-top: 0;
}
.provision figcaption {
  margin: 8px 0 0 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-muted);
}
.provision figcaption .cite {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
}
.unresolved {
  padding: 0 4px;
  border-radius: 4px;
  background: var(--danger-subtle);
  color: var(--danger);
}
.law + .law {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}
.law + .law > a {
  margin-top: 6px;
}
.law > a {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
  text-decoration: none;
}
.law > a:hover {
  text-decoration: underline;
}
.law .caption {
  margin-top: 0;
}
.law .caption > span {
  white-space: nowrap;
}
.law ol.chips {
  margin-top: 14px;
}
dl.checked {
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.checked dt {
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-muted);
}
.checked dd {
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 20px;
}
.checked .num {
  font-size: 13px;
}
.topics {
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: 40px 56px;
}
.topic {
  min-width: 0;
}
.topic ol.guides {
  margin-top: 8px;
}
.rules {
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 24px 40px;
}
.rules h3 {
  margin: 0;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
}
.rules p {
  margin: 6px 0 0;
  color: var(--ink-secondary);
}

@media (min-width: 720px) {
  .letter .key {
    position: sticky;
    top: 77px;
  }
}

/* Long cards stay reachable: the aside scrolls inside the viewport. The
 * padding keeps card shadows and focus rings inside its clip. */
@media (min-width: 960px) {
  .cols .aside {
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    margin: -4px;
    padding: 4px;
    overflow-y: auto;
    scrollbar-width: thin;
  }
}

/* Forced colours drop shadows and backgrounds: the composer keeps its edge and
 * focus ring, and the current link stays marked. */
@media (forced-colors: active) {
  .composer {
    border: 1px solid CanvasText;
  }
  .composer:focus-within {
    outline: 2px solid Highlight;
    outline-offset: 2px;
  }
  header.site nav a[aria-current],
  .sets a[aria-current],
  .letters a[aria-current] {
    border: 1px solid Highlight;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
