/* Research pages share the green cover, ruled paper and margin notes of the site. */
.study-nav { background: #f5f0df; border-bottom: 1px solid var(--line); }
.study-nav .model-wrap { display: flex; gap: 10px 28px; flex-wrap: wrap; padding-block: 13px; }
.study-nav a { font-size: .94rem; font-weight: 650; }
.study-nav a:hover, .study-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.study { padding-block: clamp(38px, 6vw, 72px); border-bottom: 1px solid var(--line); scroll-margin-top: 16px; }
.study h2 { font: 700 clamp(33px,4vw,54px)/1.04 var(--display); letter-spacing: -.04em; margin: 0 0 18px; }
.study h3 { font: 700 1.55rem/1.2 var(--display); margin: 18px 0 5px; }
.study p { margin: 0 0 1em; max-width: 70ch; }
.study .split { display: grid; grid-template-columns: minmax(0,.84fr) minmax(0,1.16fr); gap: clamp(24px,5vw,64px); align-items: start; }
.study a, .study-link { text-decoration: underline; text-underline-offset: 3px; }
.study details { padding-block: 12px; border-bottom: 1px solid var(--line); }
.study summary { cursor: pointer; font-weight: 650; }
.study summary:hover { color: var(--orange); }
.study details[open] summary { margin-bottom: 13px; }
.statline { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-block: 0; margin-inline: auto; padding-block: 23px; border-bottom: 1px solid var(--line); }
.statline div { padding-inline: clamp(12px,3vw,34px); border-left: 1px solid var(--line); }
.statline div:first-child { padding-left: 0; border: 0; }
.statline dt { font: 700 clamp(32px,4.4vw,60px)/1.1 var(--display); letter-spacing: -.045em; color: #34503a; }
.statline dd { margin: 3px 0 0; font-size: .93rem; }
.plot { background: #263d30; color: #fffbef; padding: clamp(20px,3.2vw,36px); border-radius: 5px 12px 4px 8px; margin: 0; }
.plot figcaption { font: 700 clamp(24px,3vw,34px)/1.15 var(--display); }
.plot .plot-note { font-size: .87rem; color: #dae1cd; margin-top: 5px; }
.plot-group { margin-top: 22px; }
.plot-group h3 { font: 650 .9rem/1.3 var(--sans); color: #e7eddd; margin: 0 0 6px; }
.plot-row { display: grid; grid-template-columns: 65px 1fr auto; align-items: center; gap: 10px; margin-block: 5px; font-size: .89rem; }
.track { height: 9px; background: #71826e55; border-radius: 6px; }
.track i { display: block; background: #f5c56e; width: var(--value); height: 100%; border-radius: inherit; }
.plot-row + .plot-row .track i { background: #abbda7; }
.plot-row b, .study-table td { font-variant-numeric: tabular-nums; }
.study-table { border-collapse: collapse; width: 100%; font-size: .96rem; line-height: 1.45; }
.study-table th, .study-table td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: 10px 10px 10px 0; }
.study-table thead th { color: #45583d; border-bottom: 2px solid #91a082; }
.study-table tbody th { font-weight: 550; }
.specimen { border: 1px solid #c2b593; border-top: 4px solid #a56339; background: #faf1db; padding: clamp(18px,3vw,32px); border-radius: 2px 8px 4px 2px; }
.specimen blockquote { font: 400 clamp(24px,2.8vw,33px)/1.28 var(--display); margin: 16px 0 20px; }
.specimen code { overflow-wrap:anywhere; }
.study pre { background: #edf0df; padding: 16px; font-size: .87rem; border-left: 3px solid #74865e; white-space: pre-wrap; overflow-wrap: anywhere; }
.study .method { font-size: .9rem; color: var(--muted); margin: 12px 0 0; }
@media (max-width: 730px) {
  .study .split { grid-template-columns: 1fr; gap: 18px; }
  .statline { padding-block: 18px; }
  .statline dd, .study-table { font-size: .83rem; }
  .statline div { padding-inline: 8px; }
  .study-nav .model-wrap { gap: 7px 16px; }
}
/* Quack TTS: sample players and the wider comparison chart. */
.samples { display: grid; gap: 14px; margin-block: 8px 18px; }
.sample { border: 1px solid #c2b593; border-left: 4px solid #a56339; background: #faf1db; padding: 14px clamp(14px,2.4vw,24px); border-radius: 2px 8px 4px 2px; }
.sample blockquote { font: 400 clamp(21px,2.4vw,28px)/1.3 var(--display); margin: 0 0 10px; }
.plot.wide .plot-row { grid-template-columns: minmax(90px, 132px) 1fr auto; }
.plot.wide .plot-row .track i { background: #abbda7; }
.plot.wide .plot-row.quack .track i { background: #f5c56e; }
.plot.wide .plot-row.quack span:first-child { font-weight: 700; color: #f5c56e; }
.study code { font: .9em var(--mono); }

.benchmark-details {
  --accent: #496143;
  --tint: #e7eddc;
}
#comparison-details { --accent: #854326; --tint: #f4e6d3; }
.benchmark-body {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(215px, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
.benchmark-table { overflow-x: auto; border-top: 3px solid var(--accent); }
.benchmark-table .study-table th,
.benchmark-table .study-table td { padding: .65rem .8rem; vertical-align: middle; }
.benchmark-table .study-table thead th { background: var(--tint); color: var(--accent); border-bottom: 1px solid var(--line); }
.benchmark-table th:not(:first-child), .benchmark-table td { text-align: right; }
.benchmark-table td { white-space: nowrap; }
.benchmark-table tr.own-voice { background: #faefdf; }
.benchmark-table tr.own-voice th { color: var(--accent); font-weight: 700; }
.benchmark-notes { padding: 18px 22px; background: var(--tint); border-left: 3px solid var(--accent); }
.benchmark-notes h3 { margin: 0 0 .6rem; color: var(--accent); }
.benchmark-notes p { line-height: 1.55; margin: 0; }
.benchmark-notes p + p { margin-top: .8rem; }
@media (max-width: 860px) {
  .benchmark-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 540px) {
  .benchmark-table .study-table th, .benchmark-table .study-table td { padding: .6rem .45rem; }
}
