/* ChemOne Compliance: an old law dictionary rebuilt for the web.
   Cream paper, black ink, deep maroon headwords, one serif family (Source Serif 4) throughout. */

:root {
  --paper: #f3ead8;
  --paper-hi: #fbf6ea;
  --paper-lo: #e9dcc0;
  --ink: #17110d;
  --ink-2: #463b31;
  --ink-3: #6f6153;
  --maroon: #6e1423;
  --maroon-2: #8f2233;
  --maroon-dk: #4a0c17;
  --gilt: #8a6428;
  --rule: #c9b690;
  --rule-dk: #9f8b63;
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --wrap: 1240px;
  --gut: 16px;
}
@media (min-width: 720px) { :root { --gut: 32px; } }
@media (min-width: 1100px) { :root { --gut: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--paper) url("/assets/paper.svg");
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  font-optical-sizing: auto;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (min-width: 720px) { body { font-size: 18px; } }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--maroon); outline-offset: 3px; }
::selection { background: var(--maroon); color: var(--paper-hi); }
h1, h2, h3 { font-weight: 650; line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--maroon); color: var(--paper); padding: 8px 12px; z-index: 10; }

.sc { font-variant-caps: all-small-caps; letter-spacing: .06em; font-weight: 600; }
.num { font-variant-numeric: lining-nums; }

/* Cross-reference: small caps, maroon, dotted underline, like "see KVK" in a printed dictionary */
.xref {
  color: var(--maroon);
  text-decoration: none;
  font-variant-caps: all-small-caps;
  letter-spacing: .05em;
  font-weight: 600;
  border-bottom: 1px dotted currentColor;
}
.xref:hover { color: var(--maroon-dk); border-bottom-style: solid; }
/* Usage label: italic abbreviation, like "n." or "law." */
.lbl { font-style: italic; color: var(--gilt); text-decoration: none; font-weight: 500; white-space: nowrap; }
a.lbl:hover { text-decoration: underline; }

/* ---------- Running head ---------- */
.runhead { border-bottom: 1px solid var(--rule); font-size: 12px; color: var(--ink-3); }
.runhead__in { display: flex; justify-content: space-between; gap: 12px; padding-top: 7px; padding-bottom: 6px; }
.runhead__in > span:first-child, .runhead__in > span:last-child {
  font-weight: 700; font-style: italic; color: var(--ink); font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 30%;
}
.runhead__mid { font-variant-caps: all-small-caps; letter-spacing: .12em; text-align: center; font-size: 13px; }
@media (max-width: 719px) { .runhead__mid { display: none; } .runhead__in > span:first-child, .runhead__in > span:last-child { max-width: 48%; } }

/* ---------- Masthead ---------- */
.mast { border-bottom: 3px double var(--ink); }
.mast__in { display: flex; flex-direction: column; gap: 12px; padding-top: 18px; padding-bottom: 0; }
.mast__top { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.mast__aside { display: none; margin: 0; font-size: 15px; color: var(--ink-3); }
.mast__aside a { text-decoration: none; color: var(--ink-2); border-bottom: 1px dotted var(--rule-dk); }
.mast__aside a:hover { color: var(--maroon); }
.mast__aside > span { margin: 0 12px; color: var(--rule-dk); }
@media (min-width: 900px) { .mast__aside { display: block; } }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 44px; height: 44px; flex: none; }
.brand__txt { display: flex; flex-direction: column; }
.brand__name { font-size: 25px; font-weight: 700; letter-spacing: -.01em; line-height: 1.05; font-variation-settings: "opsz" 48; }
.brand__name em { color: var(--maroon); font-weight: 600; }
.brand__sub { white-space: nowrap; font-size: 12.5px; font-style: italic; color: var(--ink-3); margin-top: 3px; }
.mast__nav { margin: 0 calc(var(--gut) * -1); border-top: 1px solid var(--rule); }
.mast__nav ul { list-style: none; margin: 0; padding: 0 var(--gut); display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.mast__nav ul::-webkit-scrollbar { display: none; }
.mast__nav a {
  display: block; padding: 10px 12px 11px; text-decoration: none; white-space: nowrap;
  font-variant-caps: all-small-caps; letter-spacing: .07em; font-weight: 600; font-size: 16px; color: var(--ink-2);
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.mast__nav li:first-child a { padding-left: 0; }
.mast__nav .num { color: var(--maroon); font-variant-caps: normal; letter-spacing: 0; font-size: 12px; margin-right: 6px; font-style: italic; }
.mast__nav a:hover { color: var(--maroon); }
.mast__nav a[aria-current] { color: var(--maroon); border-bottom-color: var(--maroon); }
.mast__about a { font-style: italic; }
@media (min-width: 1100px) {
  .mast__in { padding-top: 26px; gap: 18px; }
  .brand { padding-bottom: 0; }
  .brand img { width: 52px; height: 52px; }
  .brand__name { font-size: 30px; }
  .brand__sub { font-size: 14px; }
  .mast__nav { margin: 0; }
  .mast__nav ul { padding: 0; justify-content: space-between; }
  .mast__nav a { padding: 11px 0 12px; font-size: 16px; }
}

/* ---------- Thumb index on the page edge (desktop) ---------- */
.thumbs { display: none; }
@media (min-width: 1400px) {
  .thumbs { display: flex; flex-direction: column; position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 5; gap: 2px; }
  .thumb {
    width: 34px; height: 104px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 8px; gap: 6px;
    background: var(--maroon); color: var(--paper-hi); text-decoration: none; transition: width .15s ease;
    box-shadow: inset 1px 0 0 rgba(0,0,0,.25);
  }
  .thumb:nth-child(even) { background: var(--maroon-2); }
  .thumb b { font-size: 12px; font-style: italic; line-height: 1; }
  .thumb span { writing-mode: vertical-rl; white-space: nowrap; font-size: 11px; line-height: 1; letter-spacing: .1em; font-variant-caps: all-small-caps; font-weight: 600; opacity: .85; }
  .thumb:hover, .thumb.is-on { width: 48px; background: var(--ink); }
}

/* ---------- Section headings ---------- */
.sechead { font-size: 27px; font-weight: 650; display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; font-variation-settings: "opsz" 40; }
.sechead__n { color: var(--maroon); font-style: italic; font-weight: 500; font-size: .85em; min-width: 1.4em; }
@media (min-width: 720px) { .sechead { font-size: 32px; } }

/* ---------- Hero: A–Z jump bar over term of the day ---------- */
.hero { padding: 26px 0 44px; border-bottom: 1px solid var(--rule); }
.hero__kicker { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 14px; font-size: 14px; color: var(--ink-3); font-variant-caps: all-small-caps; letter-spacing: .1em; font-weight: 600; }
.hero__kicker { column-gap: 16px; }
@media (min-width: 720px) { .hero__kicker { column-gap: 0; } .hero__kicker span + span::before { content: "·"; margin: 0 10px; color: var(--rule-dk); } }
.hero__kicker span:first-child { color: var(--maroon); }

.az {
  display: grid; grid-template-columns: repeat(9, 1fr);
  border-top: 3px solid var(--maroon); border-left: 1px solid var(--rule-dk);
  background: var(--paper-hi);
}
.az__k {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 54px; padding: 6px 0 5px; text-decoration: none;
  border-right: 1px solid var(--rule-dk); border-bottom: 1px solid var(--rule-dk);
  position: relative;
}
.az__k b { font-size: 22px; font-weight: 700; color: var(--maroon); line-height: 1; font-variation-settings: "opsz" 40; }
.az__k i { font-style: normal; font-size: 11px; color: var(--ink-3); margin-top: 4px; font-variant-numeric: lining-nums tabular-nums; }
a.az__k:hover { background: var(--maroon); }
a.az__k:hover b, a.az__k:hover i { color: var(--paper-hi); }
.az__k.is-off { background: var(--paper-lo); }
.az__k.is-off b { color: #b3a283; font-weight: 400; }
.az__k.is-off i { color: #b3a283; }
.az__k:first-child b { font-size: 15px; }
@media (min-width: 720px) { .az { grid-template-columns: repeat(14, 1fr); } }
@media (min-width: 1100px) {
  .az { grid-template-columns: repeat(27, 1fr); }
  .az__k { min-height: 78px; }
  .az__k b { font-size: 30px; }
  a.az__k::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: 0; height: 3px; background: var(--maroon); transform: translateX(-50%); }
}

.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; margin-top: 34px; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; margin-top: 46px; align-items: start; } }
.hero h1 { font-size: 38px; font-weight: 650; letter-spacing: -.018em; line-height: 1.05; font-variation-settings: "opsz" 60; text-wrap: balance; }
@media (min-width: 720px) { .hero h1 { font-size: 56px; } }
@media (min-width: 1300px) { .hero h1 { font-size: 64px; } }
.lede { font-size: 19px; line-height: 1.55; color: var(--ink-2); margin-top: 20px; max-width: 36em; }
@media (min-width: 720px) { .lede { font-size: 21px; } }
.hero__often { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 17px; line-height: 2; }
.hero__often > .sc { color: var(--ink-3); margin-right: 12px; display: block; }
@media (min-width: 720px) { .hero__often > .sc { display: inline; } }
.hero__often .xref { white-space: nowrap; }
.hero__often .sep { color: var(--rule-dk); margin: 0 3px; }

.tod { position: relative; background: var(--paper-hi); border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 5px; margin: 6px; }
.tod__bar { display: flex; justify-content: space-between; align-items: center; background: var(--maroon); color: var(--paper-hi); padding: 7px 18px 8px; font-size: 16px; }
.tod__bar time { font-size: 13px; font-style: italic; opacity: .85; font-variant-numeric: lining-nums; }
.tod__body { position: relative; padding: 22px 20px 20px; overflow: hidden; }
@media (min-width: 720px) { .tod__body { padding: 28px 34px 26px; } }
.tod__drop {
  position: absolute; right: -10px; top: -46px; font-size: 260px; line-height: 1; font-weight: 800; color: var(--maroon);
  opacity: .06; pointer-events: none; font-variation-settings: "opsz" 60;
}
.tod__hw { font-size: 40px; font-weight: 750; color: var(--maroon); letter-spacing: -.015em; line-height: 1; margin: 0; font-variation-settings: "opsz" 60; }
@media (min-width: 720px) { .tod__hw { font-size: 50px; } }
.tod__pron { margin: 10px 0 16px; color: var(--ink-2); font-size: 16px; }
.tod__pron em { color: var(--gilt); margin: 0 4px; }
.tod__pron .nl { font-variant-caps: all-small-caps; letter-spacing: .05em; }
.tod__pron .nl i { font-variant-caps: normal; letter-spacing: 0; }
.senses { list-style: none; counter-reset: sense; margin: 0 0 16px; padding: 0; }
.senses li { counter-increment: sense; position: relative; padding-left: 30px; margin-bottom: 10px; font-size: 17px; line-height: 1.55; }
.senses li::before { content: counter(sense); position: absolute; left: 0; top: 0; font-weight: 800; color: var(--maroon); font-size: 17px; }
.tod__see, .tod__src { font-size: 15.5px; margin: 0; padding-top: 10px; border-top: 1px solid var(--rule); }
.tod__see { margin-top: 4px; }
.tod__see .sc, .tod__src .sc { color: var(--ink-3); margin-right: 8px; }
.tod__src { margin-top: 10px; font-style: italic; color: var(--ink-2); }
.tod__src .sc { font-style: normal; }

/* ---------- Anatomy strip ---------- */
.anatomy { background: var(--paper-lo); border-bottom: 1px solid var(--rule); padding: 30px 0; }
.anatomy .sechead { font-size: 22px; margin-bottom: 16px; }
.anatomy__steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 16px; }
.anatomy__steps li { counter-increment: step; position: relative; padding-left: 44px; font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.anatomy__steps li::before {
  content: counter(step); position: absolute; left: 0; top: 1px; width: 30px; height: 30px; display: grid; place-items: center;
  background: var(--maroon); color: var(--paper-hi); font-weight: 700; font-size: 15px;
}
.anatomy__steps b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 3px; }
.anatomy__steps li > span { display: block; }
@media (min-width: 720px) { .anatomy__steps { grid-template-columns: repeat(2, 1fr); gap: 20px 36px; } }
@media (min-width: 1100px) {
  .anatomy__in { display: grid; grid-template-columns: 230px 1fr; gap: 40px; align-items: start; }
  .anatomy .sechead { margin: 2px 0 0; }
  .anatomy__steps { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Headword index: the dictionary page ---------- */
.index { padding: 54px 0 30px; }
.index__head { display: grid; gap: 4px; margin-bottom: 26px; padding-bottom: 20px; border-bottom: 3px double var(--ink); }
.index__head p { color: var(--ink-2); max-width: 44em; margin: 0; }
@media (min-width: 1000px) { .index__head { grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; } .index__head .sechead { margin: 0; } }
.dict { column-gap: 44px; column-rule: 1px solid var(--rule); }
@media (min-width: 720px) { .dict { column-count: 2; } }
@media (min-width: 1100px) { .dict { column-count: 3; } }
.dict__letter { break-inside: auto; margin-bottom: 18px; scroll-margin-top: 20px; }
.dict__L {
  font-size: 44px; font-weight: 800; color: var(--maroon); line-height: 1; margin: 6px 0 12px;
  padding-bottom: 6px; border-bottom: 1px solid var(--maroon); break-after: avoid; font-variation-settings: "opsz" 60;
}
.dict dl { margin: 0; }
.term { break-inside: avoid; padding-left: 1.1em; text-indent: -1.1em; margin-bottom: 12px; font-size: 15.5px; line-height: 1.5; scroll-margin-top: 20px; hyphens: auto; }
.term dt, .term dd { display: inline; margin: 0; }
.term__hw { font-weight: 750; color: var(--maroon); font-size: 17px; }
.term__nl { font-style: italic; color: var(--ink-2); }
.term__pos { color: var(--gilt); }
.term dd .lbl { margin-left: 2px; }
.term__see { color: var(--ink-3); }
.term__seeonly i { color: var(--ink-3); margin-right: 4px; }
.term__full { color: var(--ink); font-style: italic; text-decoration-color: var(--rule-dk); text-underline-offset: 2px; }
.term__full:hover { color: var(--maroon); }
.term:target { background: var(--paper-hi); box-shadow: -6px 0 0 var(--paper-hi), 6px 0 0 var(--paper-hi), inset 3px 0 0 var(--maroon); }

/* ---------- Contents (sections) ---------- */
.contents { padding: 50px 0 40px; border-top: 1px solid var(--rule); background: var(--paper-hi); }
.contents__in { display: grid; gap: 22px; }
.contents__side p { color: var(--ink-2); margin: 0; }
@media (min-width: 1000px) { .contents__in { grid-template-columns: 300px 1fr; gap: 60px; } .contents__side { position: sticky; top: 24px; align-self: start; } }
.contents__list { list-style: none; margin: 0; padding: 0; border-top: 3px double var(--ink); }
.crow { display: grid; grid-template-columns: 56px 34px minmax(0,1fr); gap: 14px; padding: 16px 0; text-decoration: none; border-bottom: 1px solid var(--rule); align-items: start; }
@media (min-width: 720px) { .crow { grid-template-columns: 84px 46px minmax(0,1fr); gap: 20px; } }
.crow__swatch { display: block; aspect-ratio: 1; background: var(--maroon) url("/assets/marble.svg") center / cover; border: 1px solid var(--ink); outline: 1px solid var(--rule-dk); outline-offset: 2px; margin: 3px; overflow: hidden; }
.crow__swatch img { width: 100%; height: 100%; object-fit: cover; }
.crow__num { font-size: 22px; font-style: italic; color: var(--maroon); font-weight: 500; padding-top: 2px; text-align: right; }
@media (min-width: 720px) { .crow__num { font-size: 28px; } }
.crow__main { display: flex; flex-direction: column; gap: 4px; }
.crow__line { display: flex; align-items: baseline; gap: 8px; }
.crow__name { font-size: 20px; font-weight: 650; line-height: 1.2; }
@media (min-width: 720px) { .crow__name { font-size: 23px; } }
.crow__lead { flex: 1; border-bottom: 2px dotted var(--rule-dk); transform: translateY(-5px); min-width: 16px; }
.crow__count { font-size: 14px; color: var(--ink-3); font-style: italic; white-space: nowrap; font-variant-numeric: lining-nums; }
.crow__desc { font-size: 15.5px; color: var(--ink-2); line-height: 1.5; max-width: 42em; }
.crow:hover .crow__name { color: var(--maroon); }

/* ---------- Entry lists (dictionary columns) ---------- */
.recent { padding: 54px 0 60px; border-top: 3px double var(--ink); }
.cols { column-gap: 44px; column-rule: 1px solid var(--rule); }
@media (min-width: 800px) { .cols { column-count: 2; } }
.entry { break-inside: avoid; padding: 2px 0 18px; margin-bottom: 18px; border-bottom: 1px solid var(--rule); }
.entry__hw { font-size: 20px; font-weight: 700; line-height: 1.22; margin-bottom: 6px; }
.entry__hw a { color: var(--maroon); text-decoration: none; }
.entry__hw a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry__def { font-size: 16px; line-height: 1.55; margin: 0 0 6px; color: var(--ink); }
.entry__meta { margin: 0; font-size: 13.5px; color: var(--ink-3); font-variant-numeric: lining-nums; }
.entry__meta .xref { font-size: 15px; }

/* ---------- Category page ---------- */
.crumbs { font-size: 14px; color: var(--ink-3); padding: 16px 0 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs a { color: var(--ink-2); text-decoration-color: var(--rule-dk); text-underline-offset: 2px; }
.crumbs a:hover { color: var(--maroon); }
.crumbs > span[aria-current] { font-style: italic; }
.chead { border-bottom: 3px double var(--ink); padding-bottom: 34px; }
.chead__grid { display: grid; gap: 24px; padding-top: 4px; }
.chead__num { font-size: 88px; line-height: .9; font-style: italic; font-weight: 300; color: var(--maroon); margin: 22px 0 8px; font-variation-settings: "opsz" 60; }
.chead h1 { font-size: 40px; letter-spacing: -.015em; font-variation-settings: "opsz" 60; }
@media (min-width: 720px) { .chead h1 { font-size: 58px; } .chead__num { font-size: 130px; } }
.chead__meta { font-size: 15px; color: var(--ink-3); margin: 18px 0 0; }
.endpaper { position: relative; background: var(--maroon) url("/assets/marble.svg") center / cover; border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 5px; margin: 6px; aspect-ratio: 16 / 5; overflow: hidden; }
.endpaper img { width: 100%; height: 100%; object-fit: cover; }
.endpaper::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(251,246,234,.55); pointer-events: none; }
@media (min-width: 1000px) {
  .chead__grid { grid-template-columns: minmax(0,1.4fr) minmax(0,.7fr); gap: 64px; align-items: end; padding-top: 30px; }
  .endpaper { aspect-ratio: 1 / 1; }
}
.az--mini { display: inline-flex; flex-wrap: wrap; margin: 28px 0 8px; border-left: 1px solid var(--rule-dk); border-top: 0; background: transparent; }
.az--mini .az__k { background: var(--paper-hi); border-top: 3px solid var(--maroon) !important; }
.az--mini .az__k { width: 52px; min-height: 56px; border-top: 1px solid var(--rule-dk); }
.az--mini .az__k b { font-size: 22px; }
.cdict__letter { display: grid; gap: 4px; padding: 26px 0 8px; border-bottom: 1px solid var(--rule); scroll-margin-top: 16px; }
.cdict__letter .dict__L { font-size: 64px; border-bottom: 0; margin: 0; }
@media (min-width: 900px) { .cdict__letter { grid-template-columns: 110px 1fr; gap: 30px; } .cdict__letter .dict__L { font-size: 84px; } }
.cols--tight .entry:last-child { border-bottom: 0; }
.empty { padding: 40px 0; max-width: 40em; }
.othersec { padding: 56px 0 60px; }
.toc { list-style: none; margin: 0; padding: 0; border-top: 3px double var(--ink); column-gap: 48px; }
@media (min-width: 800px) { .toc { column-count: 2; } }
.toc__row { break-inside: avoid; border-bottom: 1px solid var(--rule); }
.toc__row a { display: flex; align-items: baseline; gap: 10px; padding: 11px 0; text-decoration: none; }
.toc__num { width: 42px; flex: none; color: var(--maroon); font-style: italic; font-size: 18px; }
.toc__name { font-weight: 600; font-size: 18px; }
.toc__lead { flex: 1; border-bottom: 2px dotted var(--rule-dk); transform: translateY(-4px); min-width: 12px; }
.toc__count { color: var(--ink-3); font-size: 15px; font-variant-numeric: lining-nums tabular-nums; }
.toc__row a:hover .toc__name, .toc__row.is-current .toc__name { color: var(--maroon); }
.toc__row.is-current { background: var(--paper-hi); box-shadow: inset 3px 0 0 var(--maroon); }
.toc__row.is-current .toc__num { padding-left: 12px; }

/* ---------- Article (encyclopedia entry) ---------- */
.art { padding: 12px 0 20px; }
.art__grid { display: grid; gap: 28px; }
.art__head { border-bottom: 3px double var(--ink); padding: 18px 0 24px; }
.art__sec { font-size: 15px; margin: 0 0 14px; }
.art__sec a:not(.lbl) { color: var(--ink-2); font-variant-caps: all-small-caps; letter-spacing: .07em; font-weight: 600; text-decoration: none; }
.art__sec a:not(.lbl):hover { color: var(--maroon); }
.art__sec .lbl { margin-right: 6px; }
.art h1 { font-size: 36px; color: var(--maroon); letter-spacing: -.017em; line-height: 1.07; font-weight: 700; font-variation-settings: "opsz" 60; text-wrap: balance; max-width: 22em; }
@media (min-width: 720px) { .art h1 { font-size: 52px; } }
.art__meta { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 16px 0 0; font-size: 15px; color: var(--ink-3); font-variant-numeric: lining-nums; }
.art__meta span + span::before { content: "·"; margin: 0 10px; color: var(--rule-dk); }

.card { background: var(--paper-hi); border: 1px solid var(--ink); font-size: 15px; align-self: start; }
.card__band { height: 70px; background: var(--maroon) url("/assets/marble.svg") center / cover; border-bottom: 1px solid var(--ink); overflow: hidden; }
.card__band img { width: 100%; height: 100%; object-fit: cover; }
.card__dl { margin: 0; padding: 12px 18px 4px; }
.card__dl div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--rule); }
.card__dl div:last-child { border-bottom: 0; }
.card__dl dt { font-variant-caps: all-small-caps; letter-spacing: .07em; color: var(--ink-3); font-weight: 600; }
.card__dl dd { margin: 0; line-height: 1.4; }
.card__dl dd a { color: var(--maroon); text-decoration: none; }
.card__h { margin: 0; padding: 10px 18px 6px; border-top: 3px double var(--ink); font-variant-caps: all-small-caps; letter-spacing: .08em; font-weight: 700; color: var(--maroon); }
.card__see { list-style: none; margin: 0; padding: 0 18px 14px; }
.card__see li { padding: 6px 0; border-bottom: 1px dotted var(--rule-dk); line-height: 1.35; }
.card__see li:last-child { border-bottom: 0; }
.card__see .xref { border-bottom: 0; font-size: 16px; }

.art__main { min-width: 0; }
@media (max-width: 1099px) { .card { order: 3; } }
@media (min-width: 1100px) {
  .art__grid { grid-template-columns: minmax(0, 1fr) 300px; column-gap: 64px; }
  .art__head { grid-column: 1 / -1; }
  .card { grid-column: 2; grid-row: 2; position: sticky; top: 24px; }
  .art__main { grid-column: 1; grid-row: 2; max-width: 740px; }
}

.def__n {
  display: inline-grid; place-items: center; width: 26px; height: 26px; background: var(--maroon); color: var(--paper-hi);
  font-size: 14px; font-weight: 700; font-style: normal; font-variant-caps: normal; letter-spacing: 0; margin-right: 10px; vertical-align: 2px;
}
.def { background: var(--paper-hi); border-top: 3px solid var(--maroon); border-bottom: 1px solid var(--ink); padding: 18px 20px 6px; margin-bottom: 34px; }
@media (min-width: 720px) { .def { padding: 22px 28px 8px; } }
.def__h, .ctxlabel, .usage__h {
  font-size: 15px; font-variant-caps: all-small-caps; letter-spacing: .1em; font-weight: 700; color: var(--maroon); margin: 0 0 12px; line-height: 1.3;
}
.def__h .def__n, .ctxlabel .def__n, .usage__h .def__n { font-size: 13px; }
.def p { font-size: 19px; line-height: 1.55; }
@media (min-width: 720px) { .def p { font-size: 20.5px; } }
.ctxlabel { padding-bottom: 10px; border-bottom: 1px solid var(--rule); margin-bottom: 22px; }

/* Body copy from the writer: plain semantic HTML */
.body { counter-reset: para; font-size: 18px; line-height: 1.68; hyphens: auto; }
@media (min-width: 720px) { .body { font-size: 19px; } }
.body > p:first-child::first-letter {
  float: left; font-size: 4.1em; line-height: .82; font-weight: 700; color: var(--maroon); margin: 6px 10px 0 0; font-variation-settings: "opsz" 60;
}
.body h2 {
  font-size: 25px; margin: 46px 0 14px; padding-top: 16px; border-top: 1px solid var(--rule); line-height: 1.2; letter-spacing: -.008em;
  counter-increment: para; font-variation-settings: "opsz" 40;
}
.body h2::before { content: "§ " counter(para); display: block; font-size: 14px; color: var(--maroon); font-style: italic; font-weight: 500; letter-spacing: .02em; margin-bottom: 6px; }
@media (min-width: 720px) { .body h2 { font-size: 29px; } }
.body h3 { font-size: 20px; font-style: italic; font-weight: 600; margin: 30px 0 8px; color: var(--ink); }
.body h4 { font-size: 16px; font-variant-caps: all-small-caps; letter-spacing: .08em; margin: 24px 0 6px; }
.body p { margin: 0 0 1.05em; }
.body a { color: var(--maroon); text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(110,20,35,.45); }
.body a:hover { text-decoration-color: var(--maroon); }
.body strong { font-weight: 700; }
.body ul, .body ol { margin: 0 0 1.3em; padding: 0; list-style: none; }
.body li { position: relative; padding-left: 30px; margin-bottom: .5em; }
.body ul > li::before { content: ""; position: absolute; left: 6px; top: .72em; width: 12px; height: 1px; background: var(--maroon); }
.body ul > li::after { content: ""; position: absolute; left: 16px; top: calc(.72em - 2px); width: 5px; height: 5px; background: var(--maroon); transform: rotate(45deg); }
.body ol { counter-reset: li; }
.body ol > li { counter-increment: li; }
.body ol > li::before { content: counter(li) "."; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--maroon); font-variant-numeric: lining-nums; }
.body blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--maroon); font-style: italic; font-size: 1.08em; color: var(--ink-2);
}
.body blockquote p:last-child { margin-bottom: 0; }
.body table {
  width: 100%; border-collapse: collapse; margin: 1.6em 0 2em; font-size: 15.5px; line-height: 1.45;
  font-variant-numeric: lining-nums tabular-nums; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  background: var(--paper-hi);
}
.body caption { caption-side: top; text-align: left; font-style: italic; color: var(--ink-3); padding-bottom: 8px; font-size: 14.5px; }
.body th { text-align: left; font-variant-caps: all-small-caps; letter-spacing: .06em; font-weight: 700; color: var(--maroon); padding: 10px 12px; border-bottom: 1px solid var(--ink); vertical-align: bottom; }
.body td { padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.body tr:last-child td { border-bottom: 0; }
.body td:first-child { font-weight: 600; }
@media (max-width: 719px) {
  .body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 14.5px; }
  .body th, .body td { min-width: 130px; padding: 8px 10px; }
}
.body hr { border: 0; height: 24px; background: url("/assets/fleuron.svg") center / 120px 24px no-repeat; margin: 2em 0; }
.body code { font-size: .9em; background: var(--paper-lo); padding: 1px 4px; }

.usage, .related, .cite { margin-top: 48px; padding-top: 18px; border-top: 3px double var(--ink); }
.qa { list-style: none; margin: 0; padding: 0; counter-reset: q; }
.qa li { counter-increment: q; position: relative; padding: 14px 0 12px 44px; border-bottom: 1px solid var(--rule); }
.qa li::before { content: "Q" counter(q); position: absolute; left: 0; top: 16px; font-size: 14px; font-style: italic; font-weight: 600; color: var(--gilt); }
.qa h3 { font-size: 19px; font-weight: 700; margin: 0 0 6px; line-height: 1.3; }
.qa p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.related .entry__hw { font-size: 18px; }
.cite p { font-size: 16px; color: var(--ink-2); }
.cite__box { background: var(--paper-hi); border-left: 3px solid var(--maroon); padding: 12px 16px; font-style: italic; overflow-wrap: anywhere; }
.cite__box .sc { font-style: normal; color: var(--maroon); margin-right: 8px; }

/* ---------- About & 404 ---------- */
.preface { max-width: 760px; padding: 10px 0 20px; }
.preface h1 { font-size: 40px; letter-spacing: -.015em; font-variation-settings: "opsz" 60; }
@media (min-width: 720px) { .preface h1 { font-size: 56px; } }
.preface .chead__num { font-size: 72px; margin: 26px 0 34px; }
@media (min-width: 720px) { .preface .chead__num { font-size: 96px; } }
.preface__orn { margin: 28px 0 30px; }
.preface .body > p:first-child::first-letter { font-size: 3.6em; }
.nf { max-width: 720px; padding: 60px 0 20px; }
.nf__hw { font-size: 26px; color: var(--maroon); font-weight: 700; margin: 0 0 6px; }
.nf__hw em { color: var(--gilt); font-weight: 400; font-size: 20px; }
.nf h1 { font-size: 36px; margin-bottom: 20px; }
@media (min-width: 720px) { .nf h1 { font-size: 50px; } }

/* ---------- Colophon ---------- */
.colophon { border-top: 3px double var(--ink); background: var(--paper-lo); padding: 44px 0 20px; font-size: 15.5px; color: var(--ink-2); }
.colophon__grid { display: grid; gap: 30px; }
@media (min-width: 900px) { .colophon__grid { grid-template-columns: 1.3fr 1fr .8fr; gap: 56px; } }
.colophon__brand { font-size: 23px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.colophon__brand em { color: var(--maroon); font-weight: 600; }
.colophon__h { font-variant-caps: all-small-caps; letter-spacing: .1em; font-weight: 700; color: var(--maroon); margin-bottom: 8px; }
.colophon ul { list-style: none; margin: 0 0 12px; padding: 0; }
.colophon li { padding: 3px 0; }
.colophon a { text-decoration: none; }
.colophon a:hover { color: var(--maroon); text-decoration: underline; }
.colophon .num { color: var(--maroon); font-style: italic; display: inline-block; min-width: 2.2em; }
.colophon__small { font-size: 13.5px; font-style: italic; color: var(--ink-3); }
.colophon__end { display: flex; justify-content: center; padding-top: 26px; margin-top: 24px; border-top: 1px solid var(--rule); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print {
  .runhead, .mast__nav, .thumbs, .colophon, .othersec, .card { display: none; }
  body { background: #fff; }
}
