/* Full-width chapter backgrounds separate topics around a single reading column. */
.reading-flow {
  width: 100%;
  max-width: none;
  margin: 56px 0 0;
}
.reader-section {
  margin: 0;
  padding: 36px max(40px, calc((100% - 960px) / 2));
}
.reader-section:nth-child(even) {
  background: #eae5ee;
}
.reader-section:nth-child(odd) {
  background: #faf8f2;
}
.reader-heading {
  border: 0;
  padding: 0;
  margin-bottom: 20px;
}
.reader-heading h2 {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.25;
}
.reader-heading p {
  font-size: 16px;
  max-width: 66ch;
}
.reading-panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.reader-section h2 {
  font-size: 30px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -1px;
}
.reader-section .reader-note {
  font-size: 14px;
}
.accuracy-panel > p {
  max-width: 66ch;
  margin-bottom: 24px;
}
.plot-pair {
  max-width: 680px;
  padding: 16px;
  background: #fff;
  gap: 16px;
  margin: 16px auto;
}
.plot-pair figure {
  border: 0;
  padding: 0;
  border-radius: 0;
}
.plot-pair figcaption {
  border: 0;
  padding: 0;
  margin-top: 8px;
}
.explanation-box {
  max-width: 680px;
  margin: 0 auto;
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  padding: 0;
}
.explanation-box p {
  max-width: 72ch;
  font-size: 14px;
}
.distribution-figure {
  padding: 24px;
  background: #fff;
}
.distribution-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.baseline-result {
  background: #e5edbd;
  padding: 20px 24px;
}
.baseline-result p {
  max-width: 68ch;
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}
.section-reference {
  margin-top: 16px;
  font-size: 14px;
}
.transfer-section .reader-table {
  background: #fff;
  margin-top: 0;
}
.transfer-section table caption {
  background: #e6dfea;
  color: var(--ink);
  padding: 14px 16px;
}
.transfer-section thead {
  background: var(--plum);
  color: var(--white);
}
.transfer-section .reader-table th,
.transfer-section .reader-table td {
  padding: 14px 16px;
}
.transfer-section td:last-child {
  font-weight: 600;
  color: #7e3d66;
}
.transfer-section .reader-table thead th:last-child {
  color: var(--white);
}
.transfer-panel > p {
  font-size: 16px;
  max-width: 68ch;
}
.finding-summary {
  background: #e5edbd;
  border: 0;
  border-radius: 0;
  padding: 20px 24px;
}
[aria-labelledby="training-title"] .reader-table {
  padding: 0;
  background: #fff;
  margin: 0;
}
[aria-labelledby="training-title"] .reader-table caption {
  padding: 12px 16px;
}
.training-panel thead {
  background: var(--plum);
  color: var(--white);
}
.training-panel .reader-table td,
.training-panel .reader-table th {
  padding: 12px 16px;
}
.training-accuracy {
  font-weight: 600;
}
.training-panel .curation-explanation {
  margin-top: 16px;
  margin-bottom: 0;
}
.reading-panel.fps-panel {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  padding: 20px;
  margin: 24px 0 0;
  background: #faf8f2;
}
.fps-summary p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.fps-summary a {
  font-size: 14px;
}
.fps-panel .reader-table {
  margin: 0;
}
.fps-panel .reader-table table {
  font-size: 14px;
}
.fps-panel .reader-table th,
.fps-panel .reader-table td {
  padding: 10px;
}
.fps-panel .reader-table caption {
  padding-bottom: 10px;
}
.removal-pair {
  background: #e6dfea;
  padding: 20px;
}
.removal-pair figure {
  background: #fff;
}
.reading-panel .removal-pair figcaption {
  padding: 10px 12px;
  font-weight: 500;
}
/* Direct clip choices, one shared media stage and a distinct prediction console. */
.example-panel {
  background: #e6dfea;
  padding: 20px;
}
.video-choices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}
.video-choices button {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-bottom: 3px solid transparent;
  background: #f4f1e9;
  color: var(--ink);
  text-align: left;
  padding: 8px;
  min-height: 64px;
  font-size: 14px;
  line-height: 1.4;
}
.video-choices button img {
  width: 64px;
  height: 40px;
  object-fit: cover;
  flex: none;
}
.video-choices button[aria-pressed="true"] {
  border-color: var(--plum);
  background: var(--white);
}
.video-choices button:hover {
  background: var(--white);
}
.focused-example {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}
.focused-example .video-side {
  background: #171219;
  display: flex;
  align-items: center;
}
.prediction-console {
  padding: 16px 18px;
  background: var(--plum);
  color: var(--white);
  border-left: 3px solid var(--citron);
}
.prediction-console .prediction-table {
  color: var(--white);
  font-size: 14px;
}
.prediction-console caption {
  font-size: 16px;
  text-align: left;
  padding: 0 0 14px;
  color: var(--white);
}
.prediction-console caption > span {
  display: block;
}
.prediction-console .ground-truth-label {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 400;
  color: #d9e874;
}
.prediction-console th,
.prediction-console td {
  border-color: #62516b;
  padding: 12px 4px;
}
.prediction-console thead th {
  color: #c9becd;
  font-size: 12px;
}
.prediction-console tbody th {
  font-weight: 400;
}
.prediction-console .provider-logo {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: middle;
}
.prediction-console .prediction-exact td:last-child {
  color: #d9e874;
}
.prediction-console .prediction-error td:last-child {
  color: #efac85;
}
.example-source {
  font-size: 14px !important;
  color: var(--muted);
  margin: 16px 0 0 !important;
}
.published-examples {
  border-top: 1px solid #c1b4c9;
  margin-top: 16px;
}
.published-examples summary {
  font-size: 14px;
}
.published-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.published-choices button {
  font-size: 14px;
  min-height: 44px;
  color: var(--ink);
  background: var(--white);
  padding: 8px 12px;
  border: 1px solid #b5a5bf;
}
.published-choices button[aria-pressed="true"] {
  background: var(--plum);
  color: var(--white);
}
/* Citation stays expanded and copyable. */
.bibtex-panel {
  background: var(--white);
  border: 1px solid #b8a8c2;
  margin-top: 24px;
}
.bibtex-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #e6dfea;
}
.bibtex-heading h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}
.bibtex-heading button {
  font-size: 14px;
  min-height: 40px;
  border: 1px solid var(--plum);
  color: var(--ink);
  background: var(--white);
  padding: 6px 14px;
}
.bibtex-panel pre {
  padding: 20px;
  font-size: 14px;
}
#bibtex-status {
  margin: 0;
  padding: 0 20px 12px;
  font-size: 14px;
}
.footer-resources {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: 14px;
}
@media (max-width: 1000px) {
  .video-choices button {
    flex-direction: column;
    align-items: flex-start;
  }
  .video-choices button img {
    width: 100%;
    height: 70px;
  }
  .focused-example {
    grid-template-columns: 1fr;
  }
  .prediction-console {
    border-left: 0;
    border-top: 3px solid var(--citron);
  }
}
@media (max-width: 540px) {
  .reader-section {
    padding: 32px 16px;
  }
  .reader-heading {
    padding-left: 0;
  }
  .reader-section h2 {
    font-size: 26px;
    letter-spacing: -0.6px;
  }
  .plot-pair,
  .distribution-figure {
    padding: 16px;
  }
  .plot-pair {
    gap: 20px;
    max-width: 320px;
  }
  .baseline-result,
  .finding-summary,
  .explanation-box {
    padding: 16px;
  }
  .explanation-box {
    padding: 0;
  }
  .example-panel {
    padding: 12px;
  }
  .video-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .video-choices button {
    flex-direction: row;
    align-items: center;
    font-size: 13px;
  }
  .video-choices button img {
    width: 52px;
    height: 40px;
  }
  .prediction-console {
    padding: 16px 12px;
  }
  .prediction-console .prediction-table {
    font-size: 14px;
  }
  .transfer-section .reader-table th,
  .transfer-section .reader-table td {
    padding: 12px 10px;
  }
  .footer-resources {
    gap: 16px;
    margin-left: 0;
  }
  .site-footer {
    flex-wrap: wrap;
  }
  .bibtex-heading {
    padding: 12px 16px;
  }
  .bibtex-panel pre {
    padding: 16px;
    font-size: 13px;
  }
}
@media (max-width: 700px) {
  .reading-panel.fps-panel {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }
  .fps-summary p {
    margin-bottom: 8px;
  }
  .training-panel .reader-table th,
  .training-panel .reader-table td {
    padding: 10px 8px;
  }
}
