.driving-panel {
  color: #d2e7d8;
  font: 1rem / 1.6 system-ui, sans-serif;
}

.driving-panel :is(h1, h2, h3, legend, summary) {
  color: #f5fbf5;
}

.driving-panel h2 {
  margin: 0 0 0.75rem;
  font: 400 clamp(1.45rem, 4vw, 2rem) / 1.2 Georgia, serif;
}

.driving-panel h3 {
  margin: 1.25rem 0 0.35rem;
  font: 400 1.2rem / 1.35 Georgia, serif;
}

.driving-panel :is(p, ul, ol) + :is(p, ul, ol) {
  margin-top: 0.75rem;
}

.driving-entries {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.driving-entries li,
.driving-chapter,
.exam-review li {
  padding-block: 1.25rem;
  border-top: 1px solid #d7efdd40;
}

.driving-entries h2 {
  margin-bottom: 0.35rem;
}

.driving-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.driving-panel .driving-contents {
  margin-block: 1.75rem;
}

.driving-contents ol {
  margin: 0;
}

.driving-panel :is(ol, ul):not(.driving-entries) {
  padding-inline-start: 1.45rem;
}

.driving-chapter {
  scroll-margin-block-start: 1rem;
}

.driving-chapter details {
  margin-top: 1rem;
}

.driving-chapter summary {
  width: fit-content;
  cursor: pointer;
  color: #efffd5;
}

.driving-chapter details p {
  margin-top: 0.5rem;
}

.driving-chapter details + p {
  margin-top: 1rem;
}

#exam-setup,
#exam-retry {
  margin-top: 1.25rem;
}

.exam-panel fieldset {
  min-inline-size: 0;
  margin: 1.25rem 0;
  padding: 0;
  border: 0;
}

.exam-panel legend {
  padding: 0;
  margin-bottom: 0.65rem;
  font: 400 1.2rem / 1.4 Georgia, serif;
}

.exam-panel label {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  box-sizing: border-box;
  min-height: 2.75rem;
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid #d7efdd40;
  cursor: pointer;
}

.exam-panel label:has(input:checked) {
  background: #d7efdd17;
}

.exam-panel input {
  flex: none;
  margin: 0;
  accent-color: #efffd5;
}

.exam-panel button {
  min-height: 2.75rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid #d7efdd80;
  border-radius: 0.4rem;
  background: #efffd5;
  color: #16372e;
  font: inherit;
  cursor: pointer;
}

.exam-panel button:hover:enabled {
  background: #f5fbf5;
}

.exam-panel button:disabled {
  opacity: 0.55;
  cursor: default;
}

.exam-panel .exam-skip {
  background: transparent;
  color: #efffd5;
}

.exam-panel .exam-skip:hover:enabled {
  background: #d7efdd17;
}

.driving-panel :is(summary, button, input):focus-visible,
.exam-panel :is(h2, legend):focus-visible {
  outline: 2px solid #efffd5;
  outline-offset: 4px;
}

.exam-meta,
.exam-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  align-items: baseline;
}

.exam-meta {
  justify-content: space-between;
  margin-block: 1.25rem 0.65rem;
}

.exam-meta h2 {
  margin: 0;
}

#exam-clock {
  font-variant-numeric: tabular-nums;
}

.exam-review {
  margin-top: 1.75rem;
}

.driving-panel .exam-review ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.exam-panel #exam-result h2 {
  margin-top: 1.5rem;
}

.exam-sign {
  display: grid;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  margin: 0.5rem 0 1rem;
  box-sizing: border-box;
  font: 700 1.4rem / 1 system-ui, sans-serif;
}

.exam-sign.stop {
  clip-path: polygon(29% 0, 71% 0, 100% 29%, 100% 71%, 71% 100%, 29% 100%, 0 71%, 0 29%);
  background: #b7222a;
  color: #fff;
}

.exam-sign.yield {
  height: 3.8rem;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: #b7222a;
}

.exam-sign.yield::before {
  width: 70%;
  height: 67%;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: #fff;
  content: "";
  transform: translateY(-0.1rem);
}

.exam-sign.speed,
.exam-sign.no-entry {
  border-radius: 50%;
  background: #b7222a;
}

.exam-sign.speed {
  border: 0.45rem solid #b7222a;
  background: #fff;
  color: #1b1b1b;
}

.exam-sign.no-entry::before {
  width: 75%;
  height: 20%;
  background: #fff;
  content: "";
}
