.guide-hero {
  padding-block: clamp(2.2rem, 5.4vw, 4.65rem);
  color: #fff;
  background:
    radial-gradient(ellipse at 82% -75%, #3884ee 0%, transparent 70%),
    linear-gradient(115deg, var(--night) 12%, #14458e 70%, var(--primary));
}
.guide-hero h1 {
  max-width: 20ch;
  margin-top: .65rem;
  font-size: clamp(2.55rem, 6.55vw, 5rem);
  font-weight: 790;
  line-height: 1.07;
  letter-spacing: -.06em;
}
.guide-hero p {
  max-width: 54ch;
  margin-top: .95rem;
  color: #e1edff;
  font-size: clamp(1rem, 2vw, 1.18rem);
}
.guide-back {
  display: inline-flex;
  gap: .45rem;
  color: #dbebff;
  font-weight: 650;
  text-decoration: none;
}
.guide-back:hover { text-decoration: underline; text-underline-offset: .2em; }

.guide-layout {
  display: grid;
  grid-template-columns: minmax(11rem, 14rem) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.3rem, 3vw, 2.8rem);
  padding-block: clamp(1.5rem, 4.3vw, 3.5rem) clamp(3rem, 6vw, 5rem);
}
.guide-contents {
  position: sticky;
  top: 1rem;
  padding: 1.05rem;
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: #fff;
}
.guide-contents h2 {
  margin-bottom: .55rem;
  font-size: 1.05rem;
  font-weight: 740;
  letter-spacing: -.02em;
}
.guide-contents ul {
  display: grid;
  gap: .15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.guide-contents a {
  display: block;
  padding: .43rem .45rem;
  border-radius: .35rem;
  color: #215194;
  font-size: .92rem;
  font-weight: 635;
  text-decoration: none;
}
.guide-contents a:hover { background: #edf4ff; }
.guide-content { display: grid; gap: clamp(1rem, 2.4vw, 1.6rem); min-width: 0; }
.guide-section {
  min-width: 0;
  padding: clamp(1.1rem, 3.2vw, 2.35rem);
  border: 1px solid var(--line);
  border-radius: .95rem;
  background: #fff;
}
.guide-section:target { border-color: #87afe9; }
.guide-section h2 {
  margin-bottom: .9rem;
  color: #143569;
  font-size: clamp(1.48rem, 3.7vw, 2.18rem);
  line-height: 1.18;
}
.guide-section h3 {
  margin: 1.4rem 0 .55rem;
  font-size: clamp(1.09rem, 2.15vw, 1.35rem);
}
.guide-section p, .guide-section li, .guide-score-terms dd { color: var(--muted); }
.guide-section p, .guide-section li { max-width: 77ch; }
.guide-section p strong, .guide-section li strong { color: var(--ink); }
.guide-section ul, .guide-section ol { margin: 0 0 .95rem; padding-left: 1.35rem; }
.guide-section li { padding-left: .18rem; }
.guide-section li + li { margin-top: .55rem; }
.guide-section li::marker { color: var(--primary); font-weight: 750; }
.guide-section p + ul, .guide-section .text-link, .guide-next { margin-top: .85rem; }
.guide-section .guide-note {
  margin-top: 1rem;
  padding: .9rem 1rem;
  border-left: 3px solid #4985df;
  border-radius: .25rem .55rem .55rem .25rem;
  background: #edf4ff;
}
.guide-rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  margin-top: 1.35rem;
}
.guide-rule-grid article {
  padding: 1rem;
  border: 1px solid #d7e4f8;
  border-radius: .65rem;
  background: #f5f8fe;
}
.guide-rule-grid h3 { margin-top: 0; }

.guide-score-terms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .6rem;
}
.guide-score-terms > div {
  padding: .85rem;
  border: 1px solid #d7e4f8;
  border-radius: .6rem;
  background: #f5f8fe;
}
.guide-score-terms dt {
  margin-bottom: .35rem;
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 760;
}

.guide-table {
  margin-block: .8rem 1rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: .6rem;
}
.guide-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(.82rem, 1.8vw, .95rem);
  text-align: left;
}
.guide-table :is(th, td) { padding: .6rem .75rem; vertical-align: top; }
.guide-table :is(th, td):not(:first-child) { font-variant-numeric: tabular-nums; }
.guide-table caption {
  padding: .7rem .75rem;
  border-bottom: 1px solid var(--line);
  color: #193e76;
  font-weight: 700;
  text-align: left;
}
.guide-table thead { color: #173c76; background: #eef4ff; }
.guide-table tbody tr + tr { border-top: 1px solid #e7edf6; }
.guide-table tbody tr:nth-child(even) { background: #f9fbff; }
.guide-details {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: .62rem;
  background: #f7faff;
}
.guide-details summary {
  padding: .8rem .9rem;
  color: #1c529a;
  font-weight: 700;
  cursor: pointer;
}
.guide-details .guide-table { margin: 0 .65rem .65rem; background: #fff; }
.guide-details table { min-width: 24rem; }
.guide-next + .button { margin-top: 1rem; }

@media (max-width: 53rem) {
  .guide-layout { grid-template-columns: minmax(0, 1fr); }
  .guide-contents { position: static; }
  .guide-contents ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 40rem) {
  .guide-hero h1 { font-size: clamp(2.2rem, 9.4vw, 3.35rem); }
  .guide-rule-grid, .guide-score-terms { grid-template-columns: minmax(0, 1fr); }
  .guide-table :is(th, td) { padding: .53rem .55rem; }
}
