/* The Supreme Court IP compilation on the blog (content/blog/html, front matter `style: scj`):
   ink on paper, one sandstone-red accent, no gold and no gradients. The page is one outline
   (Part > heading > findings) with search first; scj.js adds the reading tools. Everything is
   scoped under .scj. Light and dark follow the device. */

main.scj {
  --paper: #faf9f6;
  --paper-2: #f2f0eb;
  --card: #ffffff;
  --ink: #17181c;
  --ink-2: #2f3138;
  --mut: #62656d;
  --line: #e5e2dc;
  --line-2: #cfcac1;
  --acc: #8f3b2b;
  --acc-2: #b8694f;
  --acc-3: #e7c7bb;
  --acc-soft: #f6ede9;
  --on-acc: #ffffff;
  --band: #17181c;
  --on-band: #f4f2ee;
  --on-band-dim: #b9b7b1;
  --mark: #f3d2c4;
  --mark-ink: #17181c;
  --yes: #8a2d1f;
  --no: #1d6a3e;
  --no-bg: #e1f0e5;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 10px 24px -20px rgba(0, 0, 0, 0.35);
  --pop: 0 18px 50px -18px rgba(0, 0, 0, 0.45);
  --gut: 16px;
  --col: 760px;
  --side: 220px;
  --gap: 48px;
  --top: 61px;
  --stick: 130px;
  --sid: 3.6rem;
  display: block;
  color-scheme: light;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 0 0 100vmax var(--paper);
  clip-path: inset(0 -100vmax);
  font: 400 17px/1.65 var(--body);
  overflow-wrap: break-word;
  padding-bottom: 56px;
}
@media (prefers-color-scheme: dark) {
  main.scj {
    --paper: #121316;
    --paper-2: #18191d;
    --card: #1c1e22;
    --ink: #ecebe7;
    --ink-2: #d4d2cc;
    --mut: #a2a39f;
    --line: #2b2d32;
    --line-2: #3a3d43;
    --acc: #e09a85;
    --acc-2: #c97a63;
    --acc-3: #e9b7a7;
    --acc-soft: rgba(224, 154, 133, 0.12);
    --on-acc: #17181c;
    --band: #0d0e10;
    --mark: rgba(224, 154, 133, 0.38);
    --mark-ink: #ffffff;
    --yes: #f2a48f;
    --no: #8fd6a9;
    --no-bg: rgba(143, 214, 169, 0.12);
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.25), 0 12px 26px -18px rgba(0, 0, 0, 0.8);
    --pop: 0 18px 50px -14px rgba(0, 0, 0, 0.9);
    color-scheme: dark;
  }
}
.scj a {
  color: var(--acc);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
}
.scj a:hover {
  text-decoration-color: currentColor;
}
.scj :focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
  border-radius: 4px;
}
.scj h1,
.scj h2,
.scj h3 {
  font-family: var(--display);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.scj h2 {
  font-weight: 500;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  line-height: 1.15;
  margin: 0 0 0.4em;
}
.scj b {
  font-weight: 650;
}
.scj summary {
  cursor: pointer;
  list-style: none;
}
.scj summary::-webkit-details-marker {
  display: none;
}
.scj .hide,
.scj [hidden] {
  display: none !important;
}
.scj .hint {
  color: var(--mut);
  font-size: 0.95rem;
  max-width: 46em;
}
.scj mark {
  background: var(--mark);
  color: var(--mark-ink);
  border-radius: 2px;
  padding: 0 1px;
}
.scj .vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.scj-clip {
  position: fixed;
  top: 0;
  left: 0;
  opacity: 0;
}
.scj button {
  font: inherit;
  color: inherit;
}
/* a plain round-cornered button, used by the tools, the cards and the index */
.scj :is(.fbtn, .fp button, .on button, .act button, .all, .rh button, .rmore, .jdec button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 14px;
  font: 600 0.86rem/1.2 var(--body);
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  cursor: pointer;
}
.scj :is(.fbtn, .fp button, .on button, .act button, .all, .rh button, .rmore, .jdec button):hover {
  border-color: var(--acc);
}
.scj [aria-pressed='true']:is(button) {
  color: var(--on-acc);
  background: var(--acc);
  border-color: var(--acc);
}

/* ── the opening: breadcrumb, title, byline, one sentence, the numbers, the picture ─────── */
.scj .hd {
  padding: 14px var(--gut) 22px;
  color: var(--on-band);
  background: var(--band);
  box-shadow: 0 0 0 100vmax var(--band);
  clip-path: inset(0 -100vmax);
}
.scj .crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0 6px;
  margin: 0 auto 10px;
  padding: 0;
  max-width: 1180px;
  list-style: none;
  font: 500 0.8rem/1.6 var(--body);
  color: var(--on-band-dim);
}
.scj .crumbs li + li::before {
  content: '›';
  content: '›' / '';
  margin-right: 6px;
  color: var(--on-band-dim);
}
.scj .crumbs a {
  color: var(--on-band);
}
.scj .hero {
  display: grid;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}
.scj h1 {
  margin: 0;
  font-weight: 450;
  font-size: clamp(1.6rem, 1.15rem + 2.2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--on-band);
}
.scj h1 .yrs {
  font-style: italic;
  color: var(--acc-3);
  white-space: nowrap;
}
.scj .hd .blog-byline {
  margin: 10px 0 2px;
  font-size: 0.9rem;
  color: var(--on-band);
}
.scj .hd .blog-byline a {
  color: var(--on-band);
}
.scj .hd .blog-apps {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--on-band-dim);
  max-width: 40em;
}
.scj .hd .blog-apps a {
  color: var(--acc-3);
}
.scj .lede {
  margin: 12px 0 4px;
  max-width: 36em;
  font: 400 clamp(1.02rem, 0.97rem + 0.3vw, 1.2rem) / 1.5 var(--display);
  color: var(--on-band);
}
.scj .stats {
  margin: 0;
  font: 500 0.82rem/1.5 var(--body);
  color: var(--on-band-dim);
  font-variant-numeric: tabular-nums;
}
.scj .plate {
  margin: 0;
}
.scj .plate img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: var(--band);
}
@media (min-width: 760px) {
  .scj .hd {
    padding: 18px 24px 30px;
  }
  .scj .hero {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
  }
}
@media (max-width: 759px) {
  /* on a phone the picture comes after the words and stays a thin strip, so the search box is on
     the first screen */
  .scj .plate img {
    aspect-ratio: 16 / 6;
    object-fit: cover;
    object-position: 50% 8%;
    border-radius: 4px;
  }
}

/* ── the layout: one reading column; on a desktop the Parts sit in a sidebar beside it ───── */
.scj .lay {
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 var(--gut);
}
@media (min-width: 1024px) {
  .scj .lay {
    box-sizing: content-box;
    padding: 0 24px 0 calc(var(--side) + var(--gap));
  }
}

/* ── the reading tools: search, filters, how to use, and the Parts ─────────────────────── */
.scj .tools {
  position: sticky;
  top: var(--top);
  z-index: 15;
  margin: 0 calc(-1 * var(--gut));
  padding: 10px var(--gut) 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.scj .srow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
}
.scj .sbox {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}
.scj #scj-q {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px 10px 40px;
  font: 400 1rem/1.3 var(--body);
  color: var(--ink);
  background: var(--card)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23b8694f' stroke-width='1.8'%3E%3Ccircle cx='7.5' cy='7.5' r='5.5'/%3E%3Cpath d='M12 12l4.5 4.5' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat 14px center;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  -webkit-appearance: none;
  appearance: none;
}
.scj #scj-q::-webkit-search-cancel-button {
  display: none;
}
.scj #scj-q::placeholder {
  color: var(--mut);
  opacity: 1;
}
.scj .sbox:has(.sx:not([hidden])) #scj-q {
  padding-right: 44px;
}
.scj #scj-q:focus-visible {
  outline-offset: 1px;
  border-color: var(--acc);
}
.scj .sx {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--mut);
  background: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.scj .fbtn {
  flex: none;
}
.scj .fbtn::before {
  content: '';
  width: 16px;
  height: 12px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='12'%3E%3Cpath d='M0 1h16M3 6h10M6 11h4' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E")
    no-repeat center;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='12'%3E%3Cpath d='M0 1h16M3 6h10M6 11h4' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E")
    no-repeat center;
}
.scj .badge {
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  box-sizing: border-box;
  font: 700 0.72rem/20px var(--body);
  color: var(--on-acc);
  background: var(--acc);
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.scj .how {
  flex: none;
}
.scj .how > summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  font: 600 0.86rem/1.2 var(--body);
  color: var(--acc);
  text-decoration: underline dotted;
  text-underline-offset: 4px;
  white-space: nowrap;
}
.scj .how-b {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  right: var(--gut);
  box-sizing: border-box;
  width: min(560px, calc(100vw - 2 * var(--gut)));
  max-height: min(70vh, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 18px 6px;
  font-size: 0.94rem;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  box-shadow: var(--pop);
}
.scj .how-b p {
  margin: 0 0 8px;
  color: var(--ink-2);
}
.scj .how-b ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.scj .how-b li {
  padding: 8px 0;
  border-top: 1px dashed var(--line);
}
/* the Parts: a strip of pills under the search box, a sidebar on a desktop */
.scj .pnav ol {
  display: flex;
  gap: 6px;
  margin: 0 calc(-1 * var(--gut));
  padding: 0 var(--gut) 8px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.scj .pnav ol::-webkit-scrollbar {
  display: none;
}
.scj .pnav li {
  flex: none;
}
.scj .pnav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  box-sizing: border-box;
  padding: 4px 14px;
  font: 500 0.84rem/1.2 var(--body);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 999px;
}
.scj .pnav .r {
  font: 600 0.92rem/1 var(--display);
  color: var(--acc);
}
.scj .pnav a[aria-current] {
  color: var(--on-acc);
  background: var(--acc);
  border-color: var(--acc);
}
.scj .pnav a[aria-current] .r {
  color: inherit;
}
@media (min-width: 1024px) {
  .scj .tools {
    margin: 0;
    padding-inline: 0;
  }
  .scj .how-b {
    right: 0;
  }
  .scj .pnav {
    position: absolute;
    top: 10px;
    right: calc(100% + var(--gap));
    width: var(--side);
    max-height: calc(100vh - var(--top) - 24px);
    overflow-y: auto;
    scrollbar-width: thin;
  }
  .scj .pnav ol {
    display: block;
    margin: 0;
    padding: 0;
  }
  .scj .pnav li.x:first-of-type,
  .scj .pnav li:not(.x) + li.x {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }
  .scj .pnav a {
    display: flex;
    width: 100%;
    min-height: 38px;
    padding: 6px 10px;
    white-space: normal;
    background: none;
    border: 0;
    border-left: 2px solid transparent;
    border-radius: 0 6px 6px 0;
  }
  .scj .pnav a:hover {
    background: var(--paper-2);
  }
  .scj .pnav .r {
    flex: 0 0 2.4em;
  }
  .scj .pnav a[aria-current] {
    color: var(--ink);
    background: var(--acc-soft);
    border-left-color: var(--acc);
  }
  .scj .pnav a[aria-current] .r {
    color: var(--acc);
  }
}
/* without JavaScript there is nothing to search with; the Parts and How to use still work */
.scj:not(.js) .sbox,
.scj:not(.js) .fbtn {
  display: none;
}
.scj:not(.js) .srow {
  justify-content: flex-end;
}

/* the filters: a bottom sheet on a phone, a popover elsewhere */
.scj .fp {
  box-sizing: border-box;
  width: min(400px, calc(100vw - 2 * var(--gut)));
  max-height: min(78vh, 640px);
  padding: 0;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: var(--pop);
}
.scj .fp[open] {
  display: flex;
  flex-direction: column;
}
.scj .fp:not(:modal) {
  position: absolute;
  z-index: 30;
  inset: calc(100% + 4px) var(--gut) auto auto;
  margin: 0;
}
@media (min-width: 1024px) {
  .scj .fp:not(:modal) {
    right: 0;
  }
}
.scj .fp:modal {
  position: fixed;
  inset: auto 0 0 0;
  width: 100%;
  max-width: none;
  max-height: 86vh;
  margin: 0;
  border-width: 1px 0 0;
  border-radius: 16px 16px 0 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.scj .fp::backdrop {
  background: rgba(10, 11, 13, 0.5);
}
.scj .fp-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 0 18px;
}
.scj .fp-h h2 {
  margin: 0;
  font-size: 1.25rem;
}
.scj .fp .fp-x {
  width: 44px;
  padding: 0;
  border: 0;
  background: none;
}
.scj .fp-b {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 18px 10px;
}
.scj .fp fieldset {
  margin: 0;
  padding: 8px 0 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
}
.scj .fp legend {
  padding: 0 0 6px;
  font: 650 0.7rem/1.3 var(--body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mut);
}
.scj .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.scj .fp .chips button {
  padding: 6px 12px;
  font-weight: 500;
}
.scj .tg {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.scj .tg input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--acc);
}
.scj .fp-f {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 18px 14px;
  border-top: 1px solid var(--line);
}
.scj .fp .fp-done {
  margin-left: auto;
  color: var(--on-acc);
  background: var(--acc);
  border-color: var(--acc);
}
/* the filters in use, each one tap to remove */
.scj .on {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px 0 0;
}
.scj .on button {
  min-height: 36px;
  padding: 4px 8px 4px 12px;
  font-weight: 500;
  font-size: 0.82rem;
  background: var(--acc-soft);
  border-color: var(--acc-3);
}
.scj .on button span {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  font-size: 0.72rem;
  color: var(--acc);
}
.scj .on .on-all {
  background: none;
  border-color: transparent;
  color: var(--acc);
  text-decoration: underline;
}
@media (pointer: coarse) {
  .scj .on button {
    min-height: 44px;
  }
}

/* ── the outline: Part > heading > findings ────────────────────────────────────────────── */
.scj #scj-parts,
.scj .part,
.scj .sec,
.scj .c,
.scj .j,
.scj .results,
.scj .mc,
.scj .marks,
.scj .jidx,
.scj .about {
  scroll-margin-top: var(--stick);
}
.scj #scj-parts {
  padding-top: 14px;
}
.scj .part {
  border-bottom: 1px solid var(--line-2);
}
.scj .part:not([open]) {
  content-visibility: auto;
  contain-intrinsic-size: auto 92px;
}
.scj .part > summary {
  position: relative;
  display: block;
  padding: 16px 44px 14px 0;
  border-radius: 4px;
}
.scj .ph {
  margin: 0;
  font-size: clamp(1.18rem, 1.05rem + 0.6vw, 1.5rem);
  line-height: 1.25;
  color: var(--ink);
}
.scj .ph .pn {
  display: block;
  margin-bottom: 3px;
  font: 650 0.72rem/1.3 var(--body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--acc);
}
.scj .part > summary:hover .ph {
  color: var(--acc);
}
.scj .part > summary .cnt {
  display: block;
  margin-top: 4px;
}
.scj .cnt {
  font: 500 0.8rem/1.4 var(--body);
  color: var(--mut);
  font-variant-numeric: tabular-nums;
}
.scj .part > summary::after,
.scj .sec > summary::after,
.scj .j > summary::after,
.scj .cd > summary::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 1.5px solid var(--acc);
  border-bottom: 1.5px solid var(--acc);
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.scj details[open] > summary::after {
  transform: translateY(3px) rotate(225deg);
}
.scj .part[open] > summary {
  border-bottom: 1px solid var(--line);
}
.scj .pb {
  padding: 0 0 18px;
}
.scj .sec + .sec {
  border-top: 1px solid var(--line);
}
.scj .sec:not([open]) {
  content-visibility: auto;
  contain-intrinsic-size: auto 84px;
}
.scj .sec > summary {
  position: relative;
  padding: 14px 40px 12px 0;
  border-radius: 4px;
}
.scj .sec > summary:hover h3 {
  color: var(--acc);
}
.scj .sec h3 {
  display: grid;
  grid-template-columns: var(--sid) minmax(0, 1fr);
  margin: 0;
  font-weight: 450;
  font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.14rem);
  line-height: 1.4;
  color: var(--ink);
}
.scj .sid {
  font: 650 0.8rem/1.5 var(--body);
  color: var(--acc);
  font-variant-numeric: tabular-nums;
  padding-top: 0.15em;
}
.scj .sec .meta {
  display: block;
  margin: 4px 0 0 var(--sid);
  font: 500 0.78rem/1.4 var(--body);
  color: var(--mut);
  font-variant-numeric: tabular-nums;
}
.scj .sec .vis {
  color: var(--acc);
  font-weight: 650;
}
.scj .sb {
  padding: 0 0 18px var(--sid);
}
.scj .note {
  /* the site has its own .note (a sticky note): none of it applies here */
  width: auto;
  margin: 2px 0 10px;
  padding: 10px 14px;
  font: inherit;
  font-size: 0.94rem;
  border: 0;
  box-shadow: none;
  cursor: auto;
  animation: none;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--paper-2);
  border-radius: 6px;
}
.scj .nl {
  margin-right: 4px;
  font: 650 0.7rem/1 var(--body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acc);
}
.scj .all {
  margin: 0 0 6px;
  min-height: 40px;
  font-size: 0.82rem;
}
@media (pointer: coarse) {
  .scj .all {
    min-height: 44px;
  }
}

/* one finding: the key statements are open cards; the others are rows that open on a tap */
.scj .c {
  position: relative;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.scj .c[data-l='1'] {
  margin: 10px 0;
  padding: 14px 16px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--acc-2);
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.scj .c[data-l='1'] + .c:not([data-l='1']) {
  border-top: 0;
}
.scj .c:target {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
}
.scj .ch {
  font-size: 0.86rem;
  line-height: 1.7;
}
.scj .cn {
  font: italic 600 1rem/1.4 var(--display);
}
.scj .c:not([data-l='1']) .cn {
  color: var(--ink);
  text-decoration: none;
}
.scj .cy {
  color: var(--mut);
  font-variant-numeric: tabular-nums;
}
.scj .b {
  display: inline-block;
  margin: 1px 4px 1px 0;
  padding: 2px 8px;
  font: 600 0.66rem/1.3 var(--body);
  letter-spacing: 0.03em;
  color: var(--mut);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  vertical-align: 0.1em;
}
.scj .b-lead {
  color: var(--acc);
  background: var(--acc-soft);
  border-color: var(--acc-3);
}
.scj .b-pf {
  color: #29498a;
  background: #eaf0fc;
  border-color: #c9d7f2;
}
.scj .b-op {
  color: #57398a;
  background: #f2edfa;
  border-color: #dccff0;
}
.scj .b-ad {
  color: #25603a;
  background: #eaf5ee;
  border-color: #c6e3cf;
}
.scj .b-nonip,
.scj .b-un {
  color: #8a2f1f;
  background: #fbece8;
  border-color: #efcdc4;
}
@media (prefers-color-scheme: dark) {
  .scj .b-pf {
    color: #b8cdf6;
    background: rgba(120, 160, 240, 0.12);
    border-color: rgba(120, 160, 240, 0.3);
  }
  .scj .b-op {
    color: #d6c4f5;
    background: rgba(170, 140, 230, 0.12);
    border-color: rgba(170, 140, 230, 0.3);
  }
  .scj .b-ad {
    color: #a9dfbb;
    background: rgba(120, 200, 150, 0.1);
    border-color: rgba(120, 200, 150, 0.28);
  }
  .scj .b-nonip,
  .scj .b-un {
    color: #f3b4a6;
    background: rgba(240, 150, 130, 0.1);
    border-color: rgba(240, 150, 130, 0.28);
  }
}
/* a closed row keeps to its case line, kind and In brief; the long "Adopting" note waits */
.scj .c:has(> .cd:not([open])) .b-ad {
  display: none;
}
.scj .cd > summary {
  position: relative;
  display: block;
  margin: 4px 0 0;
  padding: 0 32px 0 0;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--ink-2);
  border-radius: 4px;
}
.scj .cd > summary::after {
  right: 8px;
  top: 0.75em;
  margin-top: -4px;
}
.scj .cd:not([open]) > summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.scj .cd:not([open]) > summary::after {
  position: absolute;
}
.scj .pt > span:first-child {
  margin-right: 4px;
  font: 650 0.7rem/1 var(--body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acc);
}
.scj .c:not([data-l='1']) .ch {
  cursor: pointer;
}
.scj .q {
  position: relative;
  margin: 10px 0;
  padding: 2px 0 2px 26px;
  font: 400 clamp(1.05rem, 1rem + 0.25vw, 1.16rem) / 1.62 var(--display);
  color: var(--ink);
  hanging-punctuation: first;
}
.scj .q::before {
  content: '\201C';
  content: '\201C' / '';
  position: absolute;
  left: -2px;
  top: -6px;
  font: 500 2.8rem/1 var(--display);
  color: var(--acc-2);
}
.scj .cf {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 14px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 0.8rem;
  color: var(--mut);
  font-variant-numeric: tabular-nums;
}
.scj .cite b {
  color: var(--acc);
}
.scj .act {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.scj .act .cp {
  color: var(--on-acc);
  background: var(--acc);
  border-color: var(--acc);
}
.scj .act .lk {
  width: 44px;
  padding: 0;
}
.scj .act .lk svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.scj .act button.ok {
  color: var(--no);
  background: var(--no-bg);
  border-color: currentColor;
}
.scj .ap {
  margin: 0.4em 0 0;
  font-size: 0.8rem;
  color: var(--yes);
}

/* ── search results: a flat list, grouped by heading ─────────────────────────────────── */
.scj .results {
  padding-top: 14px;
}
.scj .rh {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-2);
}
.scj .rc {
  margin: 0;
  font: 600 0.95rem/1.4 var(--body);
  color: var(--ink);
}
.scj .rj {
  padding: 12px 0 4px;
}
.scj .rj h2,
.scj .rg h3 {
  margin: 0 0 6px;
  font: 650 0.72rem/1.3 var(--body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mut);
}
.scj .rj ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.scj .rj li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.scj .rj a {
  font: italic 600 1rem/1.4 var(--display);
}
.scj .rg {
  padding-top: 18px;
}
.scj .rg h3 {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  font: 450 1.06rem/1.4 var(--display);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.scj .rg .c {
  margin: 8px 0;
  padding: 14px 16px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.scj .rg .c .cn {
  color: var(--acc);
}
.scj .rg .b-ad {
  display: inline-block;
}
.scj .rmore {
  margin: 14px 0 0;
  width: 100%;
}

/* ── most relied-on, marks compared ───────────────────────────────────────────────────── */
.scj .mc,
.scj .marks,
.scj .jidx,
.scj .about {
  padding-top: 56px;
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}
.scj .mc ol {
  counter-reset: mc;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}
.scj .mc li {
  counter-increment: mc;
  position: relative;
  padding: 10px 0 10px 2.6em;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.scj .mc li::before {
  content: counter(mc);
  position: absolute;
  left: 0;
  top: 6px;
  width: 1.8em;
  text-align: right;
  font: italic 400 1.4rem/1.2 var(--display);
  color: var(--acc-2);
}
.scj .mc li a {
  font: italic 600 1rem/1.4 var(--display);
}
.scj .mc li .cnt {
  display: block;
}
.scj .tw {
  margin-top: 14px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.scj table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.scj th,
.scj td {
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.scj th {
  font: 650 0.68rem/1.3 var(--body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mut);
  background: var(--paper-2);
}
.scj tbody tr:last-child td {
  border-bottom: 0;
}
.scj td:first-child,
.scj td:nth-child(2) {
  font-family: var(--display);
  font-size: 0.98rem;
}
.scj td.fd {
  font-weight: 650;
  min-width: 8em;
}
.scj .marks td:last-child {
  min-width: 12em;
}
.scj .fd-y {
  color: var(--yes);
}
.scj .fd-n {
  color: var(--no);
}
.scj .fd-0 {
  color: var(--mut);
}
.scj td.fd::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 0.05em;
}
@media (max-width: 639px) {
  /* each pair of marks becomes a small card: Mark A v Mark B, goods, finding, judgment */
  .scj .tw {
    overflow: visible;
    border: 0;
    background: none;
    box-shadow: none;
  }
  .scj .marks thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .scj .marks tbody,
  .scj .marks tr,
  .scj .marks td {
    display: block;
  }
  .scj .marks tr {
    margin: 0 0 10px;
    padding: 12px 14px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: var(--shadow);
  }
  .scj .marks td {
    min-width: 0 !important;
    padding: 2px 0;
    border: 0;
  }
  .scj .marks td:first-child,
  .scj .marks td:nth-child(2) {
    display: inline;
    font-size: 1.05rem;
    font-weight: 600;
  }
  .scj .marks td:nth-child(2)::before {
    content: ' v ';
    content: ' v ' / ' versus ';
    font-weight: 400;
    font-style: italic;
    color: var(--mut);
  }
  .scj .marks td:nth-child(3) {
    margin-top: 6px;
    color: var(--mut);
  }
  .scj .marks td.fd,
  .scj .marks td:nth-child(5) {
    display: inline-block;
    margin-top: 4px;
  }
  .scj .marks td:nth-child(5) {
    margin-left: 6px;
    font-size: 0.8rem;
    color: var(--mut);
  }
  .scj .marks td:nth-child(5)::before {
    content: '(';
  }
  .scj .marks td:nth-child(5)::after {
    content: ')';
  }
  .scj .marks td:nth-child(3)::before,
  .scj .marks td:last-child::before {
    content: attr(data-c) ': ';
    font: 650 0.64rem/1.4 var(--body);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mut);
  }
  .scj .marks td:last-child {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed var(--line);
  }
}

/* ── the index of judgments: a ledger, oldest first ───────────────────────────────────── */
.scj .jtools {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}
.scj .jtools input {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  font: 400 1rem/1.3 var(--body);
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 10px;
}
.scj .jdec {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.scj .jdec::-webkit-scrollbar {
  display: none;
}
.scj .jdec button {
  flex: none;
  padding: 6px 12px;
  font-weight: 500;
}
.scj .jn {
  margin: 0;
  font-size: 0.85rem;
  color: var(--mut);
}
.scj .j {
  border-top: 1px solid var(--line);
  content-visibility: auto;
  contain-intrinsic-size: auto 72px;
}
.scj .j:last-of-type {
  border-bottom: 1px solid var(--line);
}
.scj .j > summary {
  position: relative;
  display: grid;
  grid-template-columns: 6em minmax(0, 1fr);
  column-gap: 12px;
  align-items: baseline;
  padding: 12px 40px 12px 0;
  border-radius: 4px;
}
.scj .j > summary:hover .jt {
  color: var(--acc);
}
.scj .j > summary > :not(.jd) {
  grid-column: 2;
}
.scj .jd {
  grid-row: 1 / span 3;
  font: 650 0.8rem/1.5 var(--body);
  color: var(--acc);
  font-variant-numeric: tabular-nums;
}
.scj .jt {
  font: italic 500 1.04rem/1.4 var(--display);
}
.scj .j > summary .b {
  justify-self: start;
  margin-top: 4px;
}
.scj .j > summary .cnt {
  margin-top: 2px;
}
.scj .j[open] > summary {
  background: var(--paper-2);
}
.scj .jb {
  margin: 0 0 18px calc(6em + 12px);
  padding: 4px 0 4px 16px;
  border-left: 2px solid var(--acc-2);
}
.scj .jm {
  margin: 0.3em 0;
  font-size: 0.85rem;
  color: var(--mut);
}
.scj .js,
.scj .jo,
.scj .cb {
  margin: 0.6em 0;
  font-size: 0.95rem;
}
.scj .jo q {
  font-family: var(--display);
  font-size: 1.04rem;
  font-style: italic;
}
.scj .jf {
  margin: 0.6em 0 0;
  padding-left: 1.2em;
  font-size: 0.9rem;
}
.scj .jf li {
  margin: 0.3em 0;
}
.scj .jf a {
  font-weight: 700;
  margin-right: 4px;
}

/* ── about: the colophon ──────────────────────────────────────────────────────────────── */
.scj .about > p,
.scj .about li {
  font-size: 0.98rem;
}
.scj .about h3 {
  margin: 26px 0 8px;
  font-weight: 500;
  font-size: 1.28rem;
}
.scj .about ol {
  counter-reset: ab;
  list-style: none;
  margin: 0;
  padding: 0;
}
.scj .about li {
  counter-increment: ab;
  position: relative;
  margin: 0;
  padding: 8px 0 8px 2.6em;
  border-top: 1px dashed var(--line);
}
.scj .about li::before {
  content: counter(ab, lower-roman) '.';
  position: absolute;
  left: 0;
  top: 7px;
  width: 2em;
  text-align: right;
  font: italic 400 1.05rem/1.5 var(--display);
  color: var(--acc);
}
.scj .faq {
  border-top: 1px solid var(--line);
}
.scj .faq:last-of-type {
  border-bottom: 1px solid var(--line);
}
.scj .faq summary {
  position: relative;
  display: block;
  min-height: 44px;
  box-sizing: border-box;
  padding: 11px 36px 11px 0;
  font: 500 1.06rem/1.4 var(--display);
}
.scj .faq summary::after {
  content: '+';
  content: '+' / '';
  position: absolute;
  right: 8px;
  top: 7px;
  font: 300 1.5rem/1.2 var(--display);
  color: var(--acc);
}
.scj .faq[open] summary::after {
  content: '\2013';
  content: '\2013' / '';
}
.scj .faq p {
  margin: 0 0 14px;
  color: var(--ink-2);
}
.scj .disc {
  margin-top: 26px;
  padding-top: 14px;
  font-size: 0.85rem;
  color: var(--mut);
  border-top: 1px solid var(--line-2);
}

/* the newsletter box and the Older / Newer cards after the article, on the dark page */
.digest-after {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px 80px;
}
.digest-after .blog-next a {
  color: #15171c;
}
.digest-after .blog-next .fine {
  color: #4a5160;
}

/* ── phones ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 759px) {
  .blog-body:has(#scj) .doc-header {
    position: static;
  }
  main.scj {
    --top: 0px;
  }
}
@media (max-width: 639px) {
  main.scj {
    font-size: 16px;
    --sid: 2.9rem;
  }
  .scj .how > summary {
    font-size: 0.8rem;
    padding: 0;
  }
  .scj .fbtn {
    padding-inline: 12px;
  }
  .scj .sb {
    padding-left: 0;
  }
  .scj .c[data-l='1'] {
    padding: 12px 12px 10px;
  }
  .scj .q {
    padding-left: 22px;
  }
  .scj .q::before {
    font-size: 2.4rem;
    left: -4px;
  }
  .scj .j > summary {
    grid-template-columns: minmax(0, 1fr);
  }
  .scj .j > summary > :not(.jd) {
    grid-column: 1;
  }
  .scj .jd {
    grid-row: auto;
  }
  .scj .jb {
    margin-left: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scj *,
  .scj *::before,
  .scj *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  main.scj {
    box-shadow: none;
    background: #fff;
  }
  .scj .tools,
  .scj .on,
  .scj .results,
  .scj .act,
  .scj .all,
  .scj .jtools {
    display: none !important;
  }
  .scj .hd {
    color: #000;
    background: none;
    box-shadow: none;
  }
  .scj h1 {
    color: #000;
  }
  .scj .lay {
    padding-left: 0;
  }
  .scj details > * {
    display: block;
  }
  .scj :is(.part, .sec, .c, .j, .mc, .marks, .jidx, .about) {
    content-visibility: visible;
  }
}
