#practice { background: var(--chapter-light); }
.guide-wrap {
  width: 100%;
  max-width: calc(81rem + 6 * var(--desktop-spacing));
  margin: 0 auto;
  color: #1a2635;
}
.guide-tabs,
.guide-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
}
.guide-tabs {
  border-bottom: 1px solid #dce2e8;
  margin-bottom: 1.7rem;
}
.guide-tabs button,
.guide-choices button,
.guide-retry {
  background: transparent;
  border: 0;
  color: #4c5f72;
  font:
    500 0.87rem/1.35 Inter,
    sans-serif;
  cursor: pointer;
}
.guide-tabs button {
  margin-bottom: -1px;
  padding: 0.65rem 0.18rem 0.75rem;
  border-bottom: 2px solid transparent;
}
.guide-tabs button + button {
  margin-left: clamp(0px, 1.25vw, 1.1rem);
}
.guide-tabs button[aria-selected="true"] {
  color: #253a66;
  border-bottom-color: #466da6;
}
.guide-heading {
  margin: 0 0 1.2rem;
  font:
    550 clamp(1.15rem, 2vw, 1.7rem) / 1.2 Inter,
    sans-serif;
  letter-spacing: -0.038em;
}
.guide-note,
.guide-bar-key {
  color: #516579;
  font:
    400 0.79rem/1.55 Inter,
    sans-serif;
}
.guide-note {
  margin: 0.7rem 0 0;
}
.guide-split {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 1fr);
  gap: clamp(1.5rem, 3vw, 3.75rem);
  align-items: start;
}
.guide-column,
.guide-split > *,
#guide-panel {
  min-width: 0;
}
.guide-choices {
  gap: 0.35rem;
  margin-bottom: 1.15rem;
}
.guide-choices button {
  border-radius: 1.2rem;
  padding: 0.38rem 0.78rem;
  font-size: 0.77rem;
}
.guide-choices button[aria-pressed="true"] {
  color: #264d7c;
  background: #e4edf6;
}
.guide-film {
  display: grid;
  grid-template-columns: repeat(var(--count), minmax(0, 1fr));
  gap: clamp(0.3rem, 0.8vw, 0.7rem);
}
#guide-panel figure {
  margin: 0;
}
.guide-film button {
  display: block;
  width: 100%;
  background: transparent;
  padding: 0;
  border: 0;
  cursor: zoom-in;
}
.guide-film img,
.guide-scope img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
}
.guide-film figcaption {
  padding-top: 0.45rem;
  font:
    500 0.8rem/1.35 Inter,
    sans-serif;
  text-align: center;
}
.guide-table-wrap {
  width: 100%;
  overflow-x: auto;
}
.guide-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font:
    400 0.81rem/1.4 Inter,
    sans-serif;
  font-variant-numeric: tabular-nums;
}
.guide-table-wrap caption,
.guide-plot figcaption {
  text-align: left;
  font:
    500 0.82rem/1.3 Inter,
    sans-serif;
  color: #374b62;
  padding: 0 0 0.7rem;
}
.guide-table-wrap :is(td, th) {
  text-align: right;
  padding: 0.55rem 0.48rem;
  border-bottom: 1px solid #dce4ea;
}
.guide-table-wrap :is(td, th):first-child {
  text-align: left;
}
.guide-table-wrap tbody th {
  font-weight: 450;
}
.guide-table-wrap thead th {
  font-weight: 550;
  color: #486078;
}
.guide-selected {
  background: #e9f0f6;
}
.guide-bar-row {
  margin: 0.8rem 0 1.15rem;
}
.guide-bar-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.84rem;
  padding-bottom: 0.35rem;
}
.guide-bar-heading strong {
  color: #3c5685;
}
.guide-bar {
  height: 1.05rem;
  display: flex;
  background: #dce5eb;
}
.guide-bar::after {
  content: "";
  width: var(--tail);
  background: #5376a8;
  margin-left: auto;
}
.guide-bar-key {
  display: flex;
  gap: 1.2rem;
}
.guide-bar-key span::before {
  content: "";
  display: inline-block;
  width: 0.68rem;
  height: 0.68rem;
  margin-right: 0.35rem;
  background: #dce5eb;
}
.guide-bar-key span + span::before {
  background: #5376a8;
}
.guide-plot svg {
  width: 100%;
  max-height: 15rem;
}
.guide-plot svg text {
  font:
    11px Inter,
    sans-serif;
  fill: #4c6379;
}
.guide-gridline {
  stroke: #dae2eb;
  stroke-width: 1;
}
.guide-line {
  fill: none;
  stroke: #c3d1df;
  stroke-width: 1.5;
}
.guide-line.current {
  stroke: #375e97;
  stroke-width: 3;
}
.guide-point {
  fill: #375e97;
}
.guide-lane {
  display: grid;
  grid-template-columns: minmax(3.4rem, 6rem) 1fr;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #dce4ea;
  font-size: 0.91rem;
}
.guide-lane strong {
  color: #3a5e91;
  font-size: 1.1rem;
}
.guide-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(0.45rem, 2vw, 1.4rem);
}
.guide-arrow {
  color: #879bad;
}
.guide-heat {
  max-width: 62rem;
}
.guide-heat td {
  background: rgb(75 124 183 / var(--shade, 0));
}
.guide-heat .guide-total th,
.guide-heat .guide-total td {
  font-weight: 650;
}
#guide-detail {
  max-width: min(90vw, 66rem);
  max-height: 92svh;
  border: 0;
  border-radius: 0.45rem;
  background: #f8fafb;
  padding: 1rem;
  color: #1a2635;
}
#guide-detail::backdrop {
  background: rgb(18 27 40 / 0.72);
}
#guide-detail header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.6rem;
  font-size: 0.83rem;
}
#guide-detail header button {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.5rem;
  cursor: pointer;
}
#guide-detail img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 76svh;
  object-fit: contain;
  margin: auto;
}
@media (max-width: 960px) {
  .guide-split {
    grid-template-columns: minmax(0, 1fr);
  }
  .guide-scope {
    max-width: 40rem;
  }
  .guide-film img {
    max-height: 27rem;
    object-fit: contain;
  }
}
@media (max-width: 560px) {
  .guide-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    gap: 0.8rem;
  }
  .guide-tabs button {
    flex-shrink: 0;
  }
  .guide-table-wrap :is(th, td) {
    padding: 0.45rem 0.25rem;
  }
  .guide-table-wrap table {
    font-size: 0.71rem;
  }
  .guide-note,
  .guide-film figcaption {
    font-size: 0.74rem;
  }
  .guide-choices button {
    padding-inline: 0.53rem;
  }
}
#guide-detail .guide-detail-frame { width: var(--guide-width,fit-content); max-width: 100%; margin: auto; }

#guide-detail .guide-detail-frame img { width:100%; height:100%; }
