﻿:root { color-scheme: light; font-family: system-ui, sans-serif; background: #e8f3f0; color: #15362f; }
body { margin: 0; }
main { max-width: 76rem; margin: auto; padding: clamp(1rem, 4vw, 2.5rem); }
a { color: #115e51; }
h1 { margin: .55em 0 .65em; }
h2 { margin-top: 0; }
.practice-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; margin-top: 1rem; }
[hidden] { display: none !important; }
.practice-panel { min-width: 0; background: #fff; border: 1px solid #c5ded7; border-radius: .9rem; padding: clamp(1rem, 3vw, 1.6rem); }
#passage { line-height: 1.7; }
#passage p { scroll-margin: 1rem; border-inline-start: 3px solid transparent; padding-inline-start: .65rem; }
#passage p.evidence { border-color: #147363; background: #eef8f5; }
mark { background: #ffe294; color: inherit; border-radius: .15rem; }
fieldset { border: 0; border-bottom: 1px solid #dbeae6; padding: .65rem 0 1rem; margin: 0 0 1rem; }
legend { font-weight: 600; padding: 0; }
label { display: inline-flex; gap: .3rem; margin-right: .7rem; align-items: center; min-height: 2rem; }
button { font: inherit; color: inherit; border: 1px solid #82afa3; border-radius: .45rem; background: #fff; padding: .55rem .75rem; cursor: pointer; }
button.primary { background: #115e51; border-color: #115e51; color: #fff; }
button[aria-pressed="true"] { background: #c7ece0; }
.review-item { margin-bottom: .9rem; }
.review-item p { margin: .4rem 0; }
@media (max-width: 740px) { .practice-layout { grid-template-columns: 1fr; } }
#sets { display: flex; flex-wrap: wrap; gap: .5rem; }
#questions input[type="text"] { width: 8rem; max-width: 100%; font: inherit; padding: .3rem .45rem; border: 1px solid #82afa3; border-radius: .35rem; }
#sets label { display: grid; flex: 1 1 15rem; min-width: 0; margin: 0; }
#sets select, #questions select { font: inherit; max-width: 100%; padding: .35rem; }
.practice-question { margin-block: .7rem; }
.practice-choices { display: block; margin-block: .4rem .9rem; }
.practice-choices label { display: flex; margin: .2rem 0; align-items: baseline; }
#practice-audio { width: 100%; margin-block: .5rem 1rem; }
#transcript-panel #passage { max-height: 60vh; overflow: auto; }
#passage p.playing { outline: 2px solid #82afa3; border-radius: .25rem; }
#transcript-note { color: #5a6b65; font-size: .9rem; }
.practice-diagram { position: relative; max-width: 42rem; }
.practice-diagram img { width: 100%; }
.diagram-answer { position: absolute; background: #fff; padding: .15rem; border-radius: .3rem; }
.diagram-answer select { max-width: 5rem !important; }
.review-note { border-inline-start: 3px solid #b87d15; padding: .5rem .7rem; background: #fff7e6; }
.practice-question img { display: block; max-width: 100%; margin-block: .75rem; }

/* Reading question layouts */
#questions .practice-table-scroll {
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid #b9cec7;
  border-radius: 8px;
}
#questions .practice-table-scroll table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  background: white;
}
#questions .practice-table-scroll :is(th, td) {
  padding: .65rem .75rem;
  vertical-align: top;
  text-align: start;
  border: 1px solid #c8d9d4;
}
#questions .practice-table-scroll th {
  background: #e6f2ee;
  color: #123b32;
  font-weight: 700;
}
#questions .practice-table-scroll tbody tr:nth-child(even) td { background: #f6faf9; }
#questions input.practice-inline-answer[type="text"] {
  margin: .1rem .15rem;
}
#questions .practice-option-bank {
  border: 1px solid #b9cec7;
  border-radius: 8px;
  background: #f6faf9;
  padding: .8rem 1rem;
  margin-block: .85rem;
  line-height: 1.85;
}
#questions .practice-option-bank > :first-child {
  font-weight: 700;
  color: #123b32;
}
#questions .practice-heading-matches p {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem .65rem;
  padding: .55rem .2rem;
  margin: 0;
  border-bottom: 1px solid #dce9e5;
}
.study-tools #questions select.practice-inline-select {
  width: auto;
  min-width: 5rem;
  max-width: 100%;
  padding: .2rem .4rem;
}
#questions .practice-generated-bank ul {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1rem;
  list-style: none;
  padding: 0;
  margin: .25rem 0 0;
}
