.guide-page {
  color: var(--text);
  background: var(--bg);
}
.guide-page :is(h1, h2, h3) {
  color: var(--text);
  font-family: var(--sans);
  font-style: normal;
  font-weight: 680;
  letter-spacing: -.035em;
}
.guide-prose a,
.guide-crumb a {
  text-underline-offset: .22em;
}
.guides-wrap {
  padding-block: clamp(2rem, 4vw, 4rem) clamp(4rem, 8vw, 7rem);
}
.guide-hub-head,
.guide-article-head {
  padding-block: .5rem clamp(2.1rem, 4vw, 3.8rem);
  border-bottom: 1px solid var(--line);
}
.guide-hub-head h1,
.guide-article-head h1 {
  margin: 0;
  max-width: 19ch;
  font-size: clamp(2.65rem, 5.6vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -.048em;
  text-wrap: balance;
}
.guide-hub-head p,
.guide-article-head p {
  margin-block-start: 1.15rem;
  max-width: 57ch;
  color: var(--muted);
  font-size: clamp(1.075rem, 1.6vw, 1.4rem);
  line-height: 1.5;
}
.guide-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14.5rem, .55fr);
  gap: clamp(1.5rem, 6vw, 5rem);
  align-items: center;
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.guide-teaser-copy small {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
}
.guide-teaser-copy h2,
.guide-bottom h2 {
  margin-block: .28em;
  font-size: clamp(1.75rem, 3.1vw, 2.55rem);
  line-height: 1.08;
}
.guide-teaser:hover h2,
.guide-teaser:focus-visible h2 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .12em;
}
.guide-teaser-copy p,
.guide-bottom p {
  max-width: 55ch;
  color: var(--muted);
  font-size: 1.03rem;
}
.guide-sample {
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: .25rem .5rem;
  padding: 1.5rem clamp(1rem, 3.3vw, 2.8rem);
  min-height: 8.9rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
}
.guide-sample span,
.guide-sample small {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.3;
}
.guide-pair {
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: .6rem .8rem;
}
.guide-pair b {
  font-family: var(--mono);
  font-weight: 550;
  font-size: clamp(.8rem, 1.1vw, 1.05rem);
}
.guide-cold {
  background: var(--panel);
  color: var(--text);
}
.guide-cold b {
  font-family: var(--sans);
  font-size: 2.15rem;
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: 1;
}
.guide-cold b small {
  font-family: var(--sans);
  font-weight: 550;
  letter-spacing: 0;
}
.guide-cold i {
  width: 86%;
  height: .36rem;
  margin-block: .32rem;
  background: var(--accent);
  border-radius: 2px;
}
.guide-sound {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .4rem .8rem;
  background: var(--panel);
}
.guide-sound div {
  border-block-start: 1px solid var(--line);
  padding-block-start: .32rem;
}
.guide-sound b {
  display: block;
  font: 500 2rem/1.08 var(--sans);
}
.guide-sound > small { grid-column: 1/-1; }
.guide-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: clamp(2rem, 5vw, 4.5rem) 0;
}
.guide-outline { flex: 0 0 auto; }
.guide-crumb {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-block: 0 1.7rem;
  color: var(--muted);
  font-size: .88rem;
}
.guide-columns {
  display: grid;
  grid-template-columns: minmax(0, 47.5rem) minmax(12rem, 16rem);
  gap: clamp(2.5rem, 7vw, 7rem);
  justify-content: space-between;
  align-items: start;
  padding-block-start: clamp(2rem, 4vw, 3.75rem);
}
.guide-prose { min-width: 0; }
.guide-prose > h2,
.guide-prose > section > h2 {
  margin-block: 2.35rem .8rem;
  font-size: clamp(1.65rem, 2.55vw, 2.25rem);
  line-height: 1.12;
  text-wrap: balance;
}
.guide-prose > h2:first-child,
.guide-prose > section:first-child > h2 { margin-top: 0; }
.guide-prose p {
  max-width: 70ch;
  margin-block: .85rem;
  font-size: 1.04rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.guide-aside {
  border-block-start: 2px solid var(--accent);
  padding-block: 1.1rem;
}
.guide-aside h2,
.guide-sources h3,
.guide-callout h3 {
  font-size: 1.38rem;
  letter-spacing: -.025em;
  line-height: 1.2;
}
.guide-aside ul,
.guide-sources ul {
  list-style: none;
  padding: 0;
  margin-block: .6rem 1.25rem;
}
.guide-aside li { border-block-end: 1px solid var(--line); }
.guide-aside li a {
  display: block;
  padding-block: .65rem;
  font-size: .94rem;
  text-decoration: none;
}
.guide-aside li a:hover { text-decoration: underline; }
.guide-figure {
  margin-block: 1.5rem 2rem;
  padding: clamp(1rem, 3vw, 2.1rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.guide-figure figcaption {
  margin-block-start: 1rem;
  color: var(--muted);
  font-size: .87rem;
  line-height: 1.5;
}
.guide-code-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.guide-code-table th,
.guide-code-table td {
  padding: .55rem .55rem .55rem 0;
  border-bottom: 1px solid var(--line);
  text-align: start;
  vertical-align: baseline;
}
.guide-code-table thead th { font-size: .84rem; font-weight: 550; }
.guide-code-table code {
  font: .92rem/1.3 var(--mono);
  overflow-wrap: anywhere;
}
.guide-cold-pair + .guide-cold-pair {
  margin-block-start: 1rem;
  padding-block-start: 1.25rem;
  border-top: 1px solid var(--line);
}
.guide-cold-pair h3 { font-size: 1.55rem; }
.guide-cold-pair p.guide-small-model,
.guide-cold-pair p:last-child { margin: .2rem 0 .5rem; font-size: .9rem; }
.guide-chart-row { margin-block: .65rem; }
.guide-chart-row > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .3rem;
  font-size: .9rem;
}
.guide-track {
  background: var(--panel-raised);
  height: .55rem;
  margin-block: .25rem;
  overflow: hidden;
  border-radius: 2px;
}
.guide-track > i {
  display: block;
  width: var(--bar);
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
}
.guide-track > .sample-benchmark { background: #b5c0c8; }
.guide-sound-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.6rem, 2.5vw, 2rem);
}
.guide-sound-strip > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .3rem;
  border-top: 1px solid var(--line);
  padding-top: .65rem;
}
.guide-sound-strip small { width: 100%; }
.guide-sound-strip strong { font: 500 clamp(2rem, 4vw, 3.4rem)/1 var(--sans); }
.guide-sound-strip span { color: var(--muted); font-size: .8rem; }
.guide-callout {
  border-left: 3px solid var(--accent);
  padding: .75rem 1.25rem;
  margin-block: 1.75rem;
  background: var(--panel);
}
.guide-callout p { margin: .25rem 0; }
.guide-sources {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.guide-sources li { margin-block: .45rem; font-size: .94rem; }
.guide-method section { scroll-margin-block-start: 1.1rem; }
.guide-method #buyer-metrics h3 {
  margin-block: 1.65rem .5rem;
  font-size: clamp(1.25rem, 2.3vw, 1.55rem);
  line-height: 1.2;
}
.buyer-equations {
  margin: 1rem 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 3px;
  padding: .1rem 1rem;
}
.buyer-equations > div {
  margin: 0;
  padding: .75rem 0;
  border-bottom: 1px solid var(--line);
}
.buyer-equations > div:last-child { border-bottom: 0; }
.buyer-equations dt { font-weight: 650; }
.buyer-equations dd { margin: .2rem 0 0; color: var(--muted); }
.buyer-example { width: 100%; border-collapse: collapse; table-layout: fixed; }
.buyer-example :is(th, td) {
  border-bottom: 1px solid var(--line);
  padding: .55rem .4rem;
  text-align: start;
  vertical-align: top;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.buyer-example th:first-child { width: 44%; padding-inline-start: 0; }
.buyer-example th[scope="row"] { font-weight: 500; color: var(--muted); }
.benchmark-method summary { cursor: pointer; font-weight: 600; padding-block: .7rem; }
@media (max-width: 500px) {
  .buyer-example { font-size: .84rem; }
  .buyer-example :is(th, td) { padding-inline: .24rem; }
  .buyer-example th:first-child { width: 40%; }
}
.value-weights, .value-example ul { list-style: none; margin: 1rem 0; padding: 0; }
.value-weights li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: .8rem;
  padding-block: .6rem;
  border-bottom: 1px solid var(--line);
}
.value-weights li > b { color: var(--accent); font-variant-numeric: tabular-nums; }
.value-example {
  margin-block: 1.4rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 4px;
}
.value-example h3 { margin: 0; }
.value-example li {
  display: grid;
  grid-template-columns: minmax(6rem, .65fr) minmax(0, 1fr) auto;
  align-items: baseline;
  gap: .35rem .8rem;
  padding-block: .45rem;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.value-example li span:nth-child(2), .value-example small { color: var(--muted); font-size: .88rem; }
.value-example .value-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .6rem;
  max-width: none;
  margin: 0;
}
.value-total strong { font-size: 1.5rem; }
@media (max-width: 500px) {
  .value-example li { grid-template-columns: minmax(0, 1fr) auto; gap: 0 .5rem; }
  .value-example li span:nth-child(2) { grid-row: 2; grid-column: 1 / -1; }
}
.guide-equations { margin-block: 1.25rem 2rem; }
.guide-equation {
  padding-block: 1.1rem;
  border-block-start: 1px solid var(--line);
}
.guide-equation:last-child { border-bottom: 1px solid var(--line); }
.guide-equation > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.guide-equation h3 { font-size: 1.45rem; line-height: 1.25; }
.guide-equation small { color: var(--muted); white-space: nowrap; }
.guide-equation code {
  display: block;
  margin-block: .6rem;
  padding: .55rem .75rem;
  border-left: 2px solid var(--line);
  color: var(--text);
  background: var(--panel);
  font: .94rem/1.6 var(--mono);
  overflow-wrap: anywhere;
}
.guide-equation p { margin-block: .3rem 0; font-size: 1rem; }
.guide-scroll {
  max-width: 100%;
  margin-block: 1.3rem;
  overflow-x: auto;
}
.guide-discrepancies {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
}
.guide-discrepancies th,
.guide-discrepancies td {
  padding: .55rem .5rem;
  border-bottom: 1px solid var(--line);
  text-align: start;
}
.guide-discrepancies thead { background: var(--panel); }
.guide-discrepancies th:first-child { white-space: nowrap; }
.guide-discrepancies td:nth-last-child(-n+2),
.guide-discrepancies thead th:nth-last-child(-n+2) { text-align: end; }
@media (max-width: 740px) {
  .guide-columns { grid-template-columns: minmax(0, 1fr); }
  .guide-aside { max-width: 34rem; }
  .guide-teaser { gap: 1.2rem; grid-template-columns: minmax(0, 1fr) minmax(11rem, .72fr); }
  .guide-sample { padding: 1rem; }
  .guide-bottom { align-items: start; flex-direction: column; gap: 1rem; }
}
@media (max-width: 540px) {
  .guide-teaser { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .guide-sample { min-height: 0; }
  .guide-pair { grid-template-columns: auto auto; justify-content: start; gap: .45rem 1rem; }
  .guide-cold { grid-template-columns: auto 1fr; align-items: baseline; gap: .25rem 1rem; }
  .guide-cold i { grid-column: 1/-1; }
  .guide-cold span:last-child { grid-column: 1/-1; }
  .guide-sound { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guide-sound b { font-size: 1.6rem; }
  .guide-code-table { font-size: .82rem; }
  .guide-code-table th, .guide-code-table td { padding-inline-end: .3rem; }
  .guide-code-table code { font-size: .8rem; }
  .guide-equation > div { align-items: start; flex-direction: column; gap: .2rem; }
}

@media print {
  .guide-page {
    --bg: white;
    --panel: white;
    --panel-raised: #eee;
    --line: #aaa;
    --text: #111;
    --muted: #333;
    --accent: #333;
    color-scheme: light;
    background: white;
    color: #111;
  }
  .guide-page main a { color: #111; }
  .guides-wrap { width: 100%; padding: 0; }
  .guide-crumb, .guide-aside, .guide-outline, .guide-page .skip-link { display: none; }
  .guide-columns { display: block; padding-top: 12pt; }
  .guide-hub-head, .guide-article-head { padding: 0 0 8pt; }
  .guide-hub-head h1, .guide-article-head h1 { max-width: none; font-size: 27pt; }
  .guide-hub-head p, .guide-article-head p, .guide-prose p { max-width: none; font-size: 10pt; line-height: 1.42; }
  .guide-prose h2, .guide-prose > section > h2 { font-size: 17pt; }
  .guide-figure, .guide-callout { padding: 7pt; border: 1px solid var(--line); }
  .guide-equation code { font-size: 9pt; padding: 3pt 6pt; }
  .guide-figure, .guide-equation, .guide-sources li, .guide-callout, .guide-discrepancies tr { break-inside: avoid; }
  .guide-prose :is(h2, h3) { break-after: avoid; }
  .guide-track { background: #eee; }
  .guide-track > i, .guide-cold i { background: #444; }
  .guide-track > .sample-benchmark { background: #999; }
  .guide-track, .guide-cold i { print-color-adjust: exact; }
}

.field-library .guide-hub-head { border: 0; padding-bottom: 1.45rem; }
.field-library .guide-hub-head h1 { max-width: 24ch; }
.field-library .guide-hub-head p { max-width: 66ch; }
.library-jumps { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; padding: .85rem 0; margin: .3rem 0 1.65rem; border-block: 1px solid var(--line); }
.library-jumps a { font-weight: 600; text-underline-offset: .22em; }
.library-feature { display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; gap: clamp(1.15rem,4.5vw,4.3rem); background: var(--panel); color: var(--text); text-decoration: none; }
.library-feature img { width: 100%; height: clamp(230px,25vw,340px); object-fit: cover; }
.library-feature > div { padding: 1.6rem clamp(1.1rem,3vw,2.5rem) 1.6rem 0; }
.library-feature h2 { font-size: clamp(1.85rem,3.2vw,3.25rem); line-height: 1.09; max-width: 21ch; text-wrap: balance; }
.library-feature p { margin: .85rem 0 1.15rem; max-width: 43ch; color: var(--muted); line-height: 1.58; }
.library-read { color: var(--accent); text-decoration: underline; text-underline-offset: .22em; font-weight: 630; }
.field-credit { display: block; color: var(--muted); font-size: .78rem; line-height: 1.5; margin-top: .35rem; }
.field-credit a { color: inherit; text-underline-offset: .18em; }
.library-section { margin-top: clamp(2rem,5vw,4.5rem); }
.library-section > h2 { font-size: clamp(1.65rem,2.8vw,2.35rem); padding-bottom: .8rem; border-bottom: 2px solid var(--line); line-height: 1.1; scroll-margin-top: 1rem; }
.library-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: clamp(1.2rem,3.7vw,3.8rem); }
.library-entry { display: grid; grid-template-columns: clamp(6rem,9.2vw,8.7rem) minmax(0,1fr); align-items: start; gap: 1rem; padding-block: 1.15rem; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.library-entry img { width: 100%; height: auto; aspect-ratio: 1.42; object-fit: cover; background: #252c31; }
.library-entry.graphic img { object-fit: contain; }
.library-entry h3 { font-size: clamp(1.1rem,1.65vw,1.36rem); line-height: 1.2; }
.library-entry p { margin: .4rem 0 0; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.library-entry:hover h3, .library-entry:focus-visible h3, .library-feature:hover h2 { text-decoration: underline; text-decoration-thickness: .065em; text-underline-offset: .13em; }
.field-article .guide-article-head h1 { font-size: clamp(2.15rem,4.8vw,3.75rem); max-width: 27ch; }
.field-article .guide-article-head { padding-bottom: clamp(1.45rem,3vw,2.45rem); }
.field-article .guide-article-head p { max-width: 63ch; }
.guide-byline { margin-top: .85rem; font-size: .9rem; color: var(--muted); }
.field-article .guide-crumb { flex-wrap: wrap; }
.field-illustration { margin: 1.35rem 0 1.8rem; }
.field-illustration > a { display: block; background: #242a30; }
.field-illustration img { display: block; width: 100%; height: auto; max-height: 25rem; object-fit: contain; }
.field-illustration.graphic img { max-height: none; }
.field-illustration figcaption, .field-example figcaption { color: var(--muted); font-size: .92rem; line-height: 1.5; margin-top: .6rem; }
.filter-examples { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.filter-examples .field-illustration { margin: .3rem 0 1rem; }
.field-example { margin-block: 1.7rem 2rem; padding: clamp(.75rem,2vw,1.35rem); background: var(--panel); border-top: 2px solid var(--accent); }
.field-example table { width: 100%; border-collapse: collapse; text-align: left; font-size: .96rem; line-height: 1.5; }
.field-example caption { text-align: left; color: var(--text); font-size: 1.25rem; font-weight: 680; line-height: 1.25; padding-bottom: .6rem; }
.field-example th, .field-example td { padding: .55rem .65rem .55rem 0; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.field-example thead th { color: var(--muted); }
.field-example th[scope="row"] { width: 45%; font-weight: 600; }
.field-article .guide-sources h2 { margin: 0; font-size: 1.3rem; }
@media (max-width:850px) {
  .library-grid { grid-template-columns: minmax(0,1fr); }
  .library-entry { grid-template-columns: minmax(6.4rem,19%) minmax(0,1fr); }
}
@media (max-width:620px) {
  .library-feature { grid-template-columns: 1fr; gap: 0; }
  .library-feature img { height: auto; aspect-ratio: 1.95; }
  .library-feature > div { padding: 1rem; }
  .library-feature h2 { max-width: 30ch; }
  .library-jumps { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
  .library-entry { grid-template-columns: minmax(4.65rem,24%) minmax(0,1fr); gap: .7rem; }
  .library-entry p { font-size: .9rem; }
  .filter-examples { grid-template-columns: 1fr; }
  .field-illustration img { max-height: 20rem; }
}
@media print {
  .library-jumps, .library-read, .field-credit a { display: none; }
  .library-section, .library-entry, .field-illustration, .field-example { break-inside: avoid; }
  .field-illustration img { max-height: 14rem; }
  .field-illustration.graphic img { max-height: 14rem; }
}
