/* mdigest.app — evidence-appraisal register.
   Palette encodes the mechanism: pass 1 (indigo) and pass 2 (plum) are two
   independent reads; where they converge the page turns teal; unresolved
   material is amber and never ships. */

:root {
  --paper:        #F3F5F2;
  --paper-raised: #FFFFFF;
  --paper-sunk:   #E7EBE6;
  --ink:          #101E29;
  --ink-2:        #47596A;
  --ink-3:        #7E8D99;
  --rule:         #D3DBD4;
  --rule-strong:  #B4C0B6;

  --pass1:        #2F4AA8;
  --pass1-wash:   #EAEDF8;
  --pass2:        #7A2E6B;
  --pass2-wash:   #F6EAF3;
  --agree:        #0E6B5C;
  --agree-wash:   #E2F0EC;
  --held:         #8A6A1F;
  --held-wash:    #F6EFDC;
  --alarm:        #9B2C2C;

  --display: "Spectral", Georgia, "Times New Roman", serif;
  --body:    "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --measure: 66ch;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --stack: clamp(3.5rem, 9vw, 7rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:        #0D1620;
    --paper-raised: #142230;
    --paper-sunk:   #0A121A;
    --ink:          #E8EDE9;
    --ink-2:        #A3B3BF;
    --ink-3:        #74858F;
    --rule:         #24333F;
    --rule-strong:  #364856;

    --pass1:        #8FA4E8;
    --pass1-wash:   #18223D;
    --pass2:        #D79BC8;
    --pass2-wash:   #2D1A28;
    --agree:        #5FC9B2;
    --agree-wash:   #0F2A26;
    --held:         #D7B961;
    --held-wash:    #2A2412;
    --alarm:        #E88A8A;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  font-synthesis-weight: none;
}

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -0.012em; }
h1 { font-size: clamp(2.25rem, 6.2vw, 4.1rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.16rem; font-family: var(--body); font-weight: 600; letter-spacing: 0; }
p  { margin: 0 0 1em; max-width: var(--measure); }
a  { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }

:focus-visible {
  outline: 2px solid var(--pass1);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { width: 100%; max-width: 74rem; margin-inline: auto; padding-inline: var(--gutter); }

/* ── Eyebrow / label: the utility voice of the page ───────────────── */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 1rem;
  display: block;
}

/* ── Top bar ──────────────────────────────────────────────────────── */
.topbar {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky; top: 0; z-index: 20;
}
.topbar__inner {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 3.5rem; flex-wrap: wrap;
}
.mark {
  font-family: var(--display);
  font-size: 1.22rem; font-weight: 600; letter-spacing: -0.02em;
  text-decoration: none; color: var(--ink);
  display: inline-flex; align-items: baseline; gap: 0.1em;
}
.mark::after {
  content: ".app";
  font-family: var(--mono); font-size: 0.62em; font-weight: 400;
  color: var(--ink-3); letter-spacing: 0;
}
.topbar__tag {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.07em;
  color: var(--ink-2); text-transform: uppercase;
  padding-left: 1.25rem; border-left: 1px solid var(--rule);
}
.topbar__spacer { margin-left: auto; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(3rem, 8vw, 6rem) 0; }
.hero__lede {
  font-size: clamp(1.05rem, 1.9vw, 1.25rem);
  color: var(--ink-2);
  max-width: 54ch;
  margin-top: 1.5rem;
}
.hero h1 .quiet { color: var(--ink-2); }

/* ── SIGNATURE: the double-read panel ─────────────────────────────── */
.doubleread {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border: 1px solid var(--rule);
  background: var(--paper-raised);
  display: grid;
  grid-template-columns: 1fr minmax(11rem, 0.62fr) 1fr;
}
.doubleread__col { padding: 1.35rem 1.4rem; min-width: 0; }
.doubleread__col--1 { border-right: 1px solid var(--rule); }
.doubleread__col--2 { border-left: 1px solid var(--rule); }
.doubleread__who {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.11em;
  text-transform: uppercase; margin-bottom: 0.85rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.doubleread__col--1 .doubleread__who { color: var(--pass1); }
.doubleread__col--2 .doubleread__who { color: var(--pass2); }
.doubleread__who::before {
  content: ""; width: 0.55rem; height: 0.55rem; flex: none;
  background: currentColor;
}
.doubleread__col--2 .doubleread__who::before { border-radius: 50%; }
.doubleread dl { margin: 0; font-size: 0.855rem; }
.doubleread dt {
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3); margin-top: 0.75rem;
}
.doubleread dt:first-child { margin-top: 0; }
.doubleread dd { margin: 0.2rem 0 0; color: var(--ink-2); line-height: 1.5; }

.doubleread__seal {
  background: var(--agree-wash);
  border: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 1.35rem 1rem; gap: 0.55rem;
}
.doubleread__verdict {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--agree);
}
.doubleread__tier {
  font-family: var(--display); font-size: 2.3rem; line-height: 1;
  color: var(--agree); font-weight: 600;
}
.doubleread__tier small { font-size: 0.42em; font-family: var(--mono); font-weight: 400; letter-spacing: 0.08em; display: block; margin-top: 0.4rem; }
.doubleread__note { font-size: 0.75rem; color: var(--ink-2); max-width: 22ch; line-height: 1.45; }

/* load sequence: the two reads arrive, then the verdict seals */
.doubleread__col, .doubleread__seal { animation: rise 620ms cubic-bezier(.2,.7,.3,1) backwards; }
.doubleread__col--1 { animation-delay: 120ms; }
.doubleread__col--2 { animation-delay: 240ms; }
.doubleread__seal  { animation-delay: 520ms; }
@keyframes rise { from { opacity: 0; transform: translateY(0.6rem); } to { opacity: 1; transform: none; } }

@media (max-width: 47rem) {
  .doubleread { grid-template-columns: 1fr; }
  .doubleread__col--1 { border-right: 0; border-bottom: 1px solid var(--rule); }
  .doubleread__col--2 { border-left: 0; border-top: 1px solid var(--rule); }
  .doubleread__seal { order: 3; }
}

.doubleread__caption {
  font-size: 0.78rem; color: var(--ink-3); margin: 0.8rem 0 0; max-width: 62ch;
  font-family: var(--mono); line-height: 1.55;
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.row { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }
.btn {
  font-family: var(--body); font-size: 0.93rem; font-weight: 550;
  padding: 0.72rem 1.35rem; border: 1px solid var(--ink); border-radius: 2px;
  background: var(--ink); color: var(--paper); cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.6rem;
  transition: transform 140ms ease, background 140ms ease, color 140ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--quiet { background: transparent; border-color: transparent; color: var(--ink-2); padding-inline: 0.4rem; }
.btn--quiet:hover { color: var(--ink); text-decoration: underline; }
.btn--danger { background: transparent; color: var(--alarm); border-color: var(--alarm); }

.note-inline { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-3); letter-spacing: 0.04em; }

/* ── Sections ─────────────────────────────────────────────────────── */
.section { padding-block: clamp(2.25rem, 5vw, 3.5rem) 0; border-top: 1px solid var(--rule); margin-top: var(--stack); }
.section--flush { margin-top: 0; }
.section__head { margin-bottom: 2.5rem; }
.section__head p { color: var(--ink-2); }

/* ── Pipeline rail: a real sequence, so it is numbered ────────────── */
.rail { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.rail li {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 1.25rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.rail li:last-child { border-bottom: 1px solid var(--rule); }
.rail__n {
  font-family: var(--mono); font-size: 0.72rem; color: var(--ink-3);
  letter-spacing: 0.08em; padding-top: 0.2rem;
}
.rail__name { font-weight: 600; font-size: 0.97rem; }
.rail__name code { font-family: var(--mono); font-size: 0.88em; color: var(--pass1); font-weight: 500; }
.rail__what { color: var(--ink-2); font-size: 0.9rem; margin: 0.25rem 0 0; max-width: 58ch; }
.rail li[data-state="gate"] .rail__n { color: var(--held); }
.rail li[data-state="gate"] { background: linear-gradient(90deg, var(--held-wash), transparent 62%); }

/* ── Pledge grid ──────────────────────────────────────────────────── */
.pledge { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.pledge > div { background: var(--paper); padding: 1.6rem 1.5rem; }
.pledge h3 { margin-bottom: 0.5rem; }
.pledge p { font-size: 0.89rem; color: var(--ink-2); margin: 0; }

/* ── Disclaimer: verbatim, non-negotiable ─────────────────────────── */
.disclaimer {
  border: 1px solid var(--held);
  background: var(--held-wash);
  padding: 1.15rem 1.35rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--ink);
  max-width: 62ch;
}
.disclaimer strong { display: block; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--held); margin-bottom: 0.5rem; font-weight: 600; }

/* ── Forms / preference center ────────────────────────────────────── */
.panel {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.panel + .panel { margin-top: 1.25rem; }
.panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.panel__head h2 { font-size: 1.35rem; }
.panel__hint { color: var(--ink-2); font-size: 0.88rem; margin: 0.4rem 0 1.25rem; }

.field { margin-bottom: 1.5rem; }
.field > label, .field__legend {
  display: block; font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 0.6rem; padding: 0;
}
fieldset.field { border: 0; margin-inline: 0; padding: 0; }

input[type="text"], input[type="email"], input[type="number"], select, textarea {
  font-family: var(--body); font-size: 0.95rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule-strong);
  border-radius: 2px; padding: 0.62rem 0.75rem; width: 100%; max-width: 32rem;
}
textarea { min-height: 5.5rem; resize: vertical; }
select { max-width: 24rem; }

.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--rule-strong); border-radius: 2px;
  padding: 0.42rem 0.72rem; font-size: 0.87rem; cursor: pointer;
  background: var(--paper); transition: border-color 120ms ease, background 120ms ease;
}
.choice:hover { border-color: var(--ink-3); }
.choice input { accent-color: var(--pass1); margin: 0; }
.choice:has(input:checked) { border-color: var(--pass1); background: var(--pass1-wash); color: var(--pass1); font-weight: 550; }
.choice:has(input:focus-visible) { outline: 2px solid var(--pass1); outline-offset: 2px; }

.tagrow { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 0.8rem; }
.tag {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--mono); font-size: 0.78rem;
  background: var(--pass2-wash); color: var(--pass2);
  border: 1px solid var(--pass2); border-radius: 2px; padding: 0.24rem 0.3rem 0.24rem 0.55rem;
}
.tag button { border: 0; background: none; color: inherit; cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 0.15rem; }

.counter { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-3); }
.counter[data-over="true"] { color: var(--alarm); }

.savebar {
  position: sticky; bottom: 0; z-index: 10;
  background: var(--paper); border-top: 1px solid var(--rule);
  padding: 0.9rem 0; margin-top: 1.75rem;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}

/* ── Status messages ──────────────────────────────────────────────── */
.status { font-size: 0.87rem; padding: 0.7rem 0.9rem; border: 1px solid var(--rule); border-radius: 2px; margin-bottom: 1rem; }
.status[hidden] { display: none; }
.status--ok   { border-color: var(--agree); background: var(--agree-wash); color: var(--agree); }
.status--err  { border-color: var(--alarm); background: color-mix(in srgb, var(--alarm) 8%, transparent); color: var(--alarm); }
.status--work { border-color: var(--rule-strong); color: var(--ink-2); }
.status code { font-family: var(--mono); font-size: 0.88em; }

/* ── Auth card ────────────────────────────────────────────────────── */
.authcard { max-width: 27rem; }
.authcard .btn { width: 100%; justify-content: center; }
.authcard .divider {
  display: flex; align-items: center; gap: 0.9rem; margin: 1.15rem 0;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3);
}
.authcard .divider::before, .authcard .divider::after { content: ""; height: 1px; background: var(--rule); flex: 1; }

/* ── Footer ───────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--rule); margin-top: clamp(3rem, 7vw, 5rem); padding-block: 2.5rem 3.5rem; }
.foot__grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.foot p { font-size: 0.82rem; color: var(--ink-3); margin: 0 0 0.4rem; }
.foot a { color: var(--ink-2); }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--paper); padding: 0.7rem 1rem; z-index: 50;
}
.skip:focus { left: var(--gutter); top: 0.5rem; }

[hidden] { display: none !important; }

@media (max-width: 42rem) {
  .topbar__tag { display: none; }
}

/* ── Picker: 251 options, so search and grouping do the work ──────── */
.picker { background: var(--paper); border-radius: 2px; }

.picker__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.7rem 0.75rem; border-bottom: 1px solid var(--rule); }
.picker__chips:empty { display: none; }
.picker__chips .hint { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-3); align-self: center; }
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; line-height: 1.3;
  background: var(--pass1-wash); color: var(--pass1);
  border: 1px solid var(--pass1); border-radius: 2px;
  padding: 0.22rem 0.28rem 0.22rem 0.5rem;
}
.chip[data-kind="practice"] { background: var(--pass2-wash); color: var(--pass2); border-color: var(--pass2); }
.chip button { border: 0; background: none; color: inherit; cursor: pointer; font-size: 0.95rem; line-height: 1; padding: 0 0.15rem; }

.picker__searchrow { display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--rule); }
.picker__searchrow input {
  border: 0; background: none; padding: 0.25rem 0; max-width: none; flex: 1; font-size: 0.93rem;
}
.picker__searchrow input:focus { outline: none; }
.picker__searchrow:focus-within { box-shadow: inset 2px 0 0 var(--pass1); }

.picker__groups { max-height: 32rem; overflow-y: auto; }

.pgroup { border-bottom: 1px solid var(--rule); }
.pgroup:last-child { border-bottom: 0; }
.pgroup__head {
  width: 100%; display: flex; align-items: baseline; gap: 0.6rem;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: 0.7rem 0.75rem; font-family: inherit; color: var(--ink);
}
.pgroup__head:hover { background: var(--paper-sunk); }
.pgroup + .pgroup { margin-top: 0.15rem; }
.pgroup__caret { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-3); width: 0.8rem; flex: none; }
.pgroup__label { font-weight: 600; font-size: 0.88rem; }
.pgroup__meta { font-family: var(--mono); font-size: 0.68rem; color: var(--ink-3); margin-left: auto; letter-spacing: 0.04em; }
.pgroup__meta[data-selected="true"] { color: var(--pass1); }
.pgroup__hint { padding: 0 0.75rem 0.7rem 2.15rem; font-size: 0.79rem; color: var(--ink-2); margin: -0.35rem 0 0; max-width: 60ch; }
.pgroup__body {
  padding: 0.35rem 0.75rem 1.25rem 2.15rem;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 0.45rem 0.6rem;
}

.opt {
  display: flex; align-items: center; gap: 0.55rem; min-width: 0;
  border: 1px solid transparent; border-radius: 3px;
  padding: 0.42rem 0.55rem; font-size: 0.86rem; cursor: pointer;
  background: var(--paper-raised); transition: border-color 110ms ease, background 110ms ease;
}
.opt:hover { background: var(--paper-sunk); }
.opt input { accent-color: var(--pass1); margin: 0; }
.opt:has(input:checked) { border-color: var(--pass1); background: var(--pass1-wash); color: var(--pass1); font-weight: 550; }
.opt:has(input:focus-visible) { outline: 2px solid var(--pass1); outline-offset: 2px; }
.opt__label { min-width: 0; overflow-wrap: anywhere; }
.opt__parent { font-family: var(--mono); font-size: 0.63rem; color: var(--ink-3); margin-left: auto; white-space: nowrap; padding-left: 0.4rem; }
.opt:has(input:checked) .opt__parent { color: inherit; opacity: 0.75; }

.livedot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--agree); display: inline-block; flex: none; }
.picker__legend { display: flex; align-items: baseline; gap: 0.5rem; margin-top: 0.7rem; }
.picker__legend .livedot { align-self: center; }
.picker__empty { padding: 1.5rem 0.75rem; margin: 0; font-size: 0.86rem; color: var(--ink-2); }

mark { background: var(--held-wash); color: inherit; font-weight: 600; padding: 0 0.1em; }

@media (max-width: 34rem) {
  .pgroup__body, .pgroup__hint { padding-left: 0.75rem; }
}

/* 33 practice settings: keep them compact so they do not outweigh the picker. */
#practiceSettings .choice { font-size: 0.82rem; padding: 0.3rem 0.55rem; }

/* Stacked single-choice rows where each option needs a sentence of its own. */
.choices--stack { flex-direction: column; align-items: stretch; }
.choices--stack .choice { align-items: flex-start; padding: 0.6rem 0.75rem; flex-wrap: wrap; }
.choice__hint { color: var(--ink-2); font-size: 0.79rem; font-weight: 400; margin-left: 0.15rem; }
.choice:has(input:checked) .choice__hint { color: inherit; opacity: 0.8; }
.choices--stack .choice__hint { flex-basis: 100%; margin: 0.25rem 0 0 1.45rem; }

/* Practice settings grouped so 33 options read as five short lists. */
.settinggroup + .settinggroup { margin-top: 1.1rem; }
.settinggroup__label {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 0.45rem;
}
#practiceSettings .choice { font-size: 0.82rem; padding: 0.3rem 0.55rem; }


/* ── Sub-sections: residencies by division, fellowships by parent ─── */
.psub { border-top: 1px solid var(--rule); }
.pgroup__hint + .psub { border-top: 0; }
.psub__head {
  width: 100%; display: flex; align-items: baseline; gap: 0.6rem;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: 0.65rem 0.75rem 0.6rem 2.15rem; font-family: inherit; color: var(--ink-2);
}
.psub__head:hover { background: var(--paper-sunk); color: var(--ink); }
.psub__head .pgroup__label {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.psub__head .pgroup__caret { margin-left: -1.4rem; width: 0.8rem; }

/* On a phone the inner scroller traps the finger and hides the last options;
   let the page scroll instead. */
@media (max-width: 48rem) {
  .picker__groups { max-height: none; overflow: visible; }
  .pgroup__body { padding-left: 0.75rem; grid-template-columns: 1fr; }
  .psub__head { padding-left: 1.6rem; }
  .psub__head .pgroup__caret { margin-left: -1.1rem; }
  .pgroup__hint { padding-left: 0.75rem; }
  .opt__parent { margin-left: auto; }
}


/* Each input is its own card now, so the picker no longer needs a frame of
   its own — a recessed ground and a single rule carry the hierarchy. */
.picker__searchrow { background: var(--paper-raised); border-radius: 2px 2px 0 0; }
.picker__groups { border-top: 1px solid var(--rule); }
.panel + .panel { margin-top: 1.1rem; }
.panel__head + .field { margin-top: 0.25rem; }

.picker__legend { margin-top: 0.85rem; margin-bottom: 0; align-items: flex-start; }
.picker__legend .livedot { margin-top: 0.42rem; }

/* Third level: residency divisions and fellowship parents. Indented and
   lighter than a subsection so the hierarchy reads without extra frames. */
.pleaf + .pleaf { margin-top: 0.05rem; }
.pleaf__head {
  width: 100%; display: flex; align-items: baseline; gap: 0.55rem;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: 0.45rem 0.75rem 0.4rem 3.3rem; font-family: inherit; color: var(--ink-3);
}
.pleaf__head:hover { background: var(--paper-sunk); color: var(--ink-2); }
.pleaf__head .pgroup__label {
  font-family: var(--body); font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0; text-transform: none; color: inherit;
}
.pleaf__head .pgroup__caret { margin-left: -1.35rem; width: 0.8rem; }
.pleaf .pgroup__body { padding-left: 3.3rem; }

/* Subsection headers gain weight now that a level sits beneath them. */
.psub__head .pgroup__label { color: var(--ink); }

@media (max-width: 48rem) {
  .pleaf__head { padding-left: 2.2rem; }
  .pleaf__head .pgroup__caret { margin-left: -1.1rem; }
  .pleaf .pgroup__body { padding-left: 1rem; }
}
