.guide-shell {
  width: min(1060px, calc(100% - 32px));
}

.topic-label {
  color: var(--gold);
  font-weight: 800;
}

.answer-card {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.7fr);
  border: 3px solid var(--ink);
  background: var(--panel);
  box-shadow: 10px 10px 0 var(--shadow);
}

.answer-copy {
  padding: clamp(28px, 5vw, 58px);
}

.answer-copy h1 {
  max-width: 720px;
  font-size: clamp(2.8rem, 7.5vw, 5.8rem);
  line-height: 0.92;
}

.direct-answer {
  max-width: 720px;
  margin: 30px 0 0;
  color: var(--green);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 800;
  line-height: 1.4;
}

.answer-caveat {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.score-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 28px;
  border-left: 3px solid var(--ink);
  background:
    linear-gradient(rgba(83, 221, 131, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 221, 131, 0.05) 1px, transparent 1px),
    #15291f;
  background-size: 18px 18px;
}

.score-number {
  color: var(--green);
  font-size: clamp(4.8rem, 11vw, 8.2rem);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.1em;
  text-shadow: 5px 5px 0 #0b160f;
}

.score-unit {
  margin: 10px 0 32px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.score-card strong {
  padding-top: 18px;
  border-top: 2px solid #315640;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
}

.score-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.jump-nav {
  display: flex;
  gap: 10px 24px;
  align-items: center;
  padding: 28px 18px;
  border-bottom: 2px solid var(--line);
}

.jump-nav > span {
  margin-right: auto;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.jump-nav a,
.text-link {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.4;
  text-decoration-color: var(--gold);
  text-underline-offset: 5px;
}

.jump-nav a:hover,
.jump-nav a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--gold);
  outline: 0;
}

.guide-section {
  padding: 76px 18px 58px;
}

.split-section {
  display: grid;
  grid-template-columns: 0.8fr 1.45fr;
  gap: 68px;
}

.section-heading h2,
.device-panel h2,
.info-panel h2,
.faq-section h2,
.related-section h2,
.more-guides h2,
.sources-section h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.prose p,
.device-panel p:not(.section-kicker),
.wide-heading > p:last-child,
.method-grid p,
.info-panel p,
.faq-list p,
.sources-section span {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.prose p + p,
.info-panel > p:not(.section-kicker) + p {
  margin-top: 18px;
}

.device-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) 1.2fr;
  gap: 40px;
  align-items: center;
  padding: 32px;
  border: 2px solid var(--line);
  background: var(--panel);
}

.device-panel h2 {
  margin-bottom: 18px;
}

.device-visual {
  display: grid;
  grid-template-columns: 1fr 20px 1fr 20px 1fr;
  align-items: center;
  min-height: 138px;
  padding: 24px 18px;
  border: 2px solid var(--line);
  background: #15111e;
}

.device-visual span {
  display: grid;
  min-height: 62px;
  place-items: center;
  border: 2px solid var(--ink);
  color: var(--gold);
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-align: center;
}

.device-visual i {
  height: 2px;
  background: var(--gold);
}

.wide-heading {
  max-width: 800px;
}

.wide-heading > p:last-child {
  margin-top: 18px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.method-grid li {
  padding: 24px;
  border: 2px solid var(--line);
  background: var(--panel);
}

.method-grid li > span {
  color: var(--gold);
  font-weight: 900;
}

.method-grid h3 {
  min-height: 48px;
  margin: 24px 0 12px;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.35;
}

.example-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 18px;
  border: 2px solid var(--line);
  background: #171220;
}

.example-strip > div {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-right: 2px solid var(--line);
}

.example-strip > div:last-child {
  border-right: 0;
}

.example-strip span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.example-strip strong {
  color: var(--ink);
  font-size: 1.25rem;
}

.example-strip .baseline {
  background: #15291f;
}

.example-strip .baseline strong {
  color: var(--green);
}

.example-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.two-column-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.info-panel {
  padding: 30px;
  border: 2px solid var(--line);
  background: var(--panel);
}

.info-panel h2 {
  margin-bottom: 22px;
}

.info-panel .text-link {
  display: inline-block;
  margin-top: 22px;
}

.caution-panel {
  border-color: #6b4130;
  background: #241922;
}

.faq-section,
.related-section,
.more-guides,
.sources-section {
  padding: 72px 18px 0;
}

.faq-list {
  margin-top: 28px;
  border-top: 2px solid var(--line);
}

.faq-list details {
  border-bottom: 2px solid var(--line);
}

.faq-list summary {
  padding: 22px 44px 22px 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.4;
}

.faq-list details p {
  max-width: 850px;
  padding: 0 0 24px;
}

.related-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.related-links a {
  display: flex;
  min-height: 118px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 2px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
}

.related-links a:hover,
.related-links a:focus-visible {
  border-color: var(--gold);
  outline: 0;
}

.related-links small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 400;
}

.more-guides .guide-links {
  margin-top: 28px;
}

.sources-section {
  padding-bottom: 42px;
}

.sources-section ul {
  margin: 28px 0 0;
  padding: 0;
  border-top: 2px solid var(--line);
  list-style: none;
}

.sources-section li {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 30px;
  padding: 20px 0;
  border-bottom: 2px solid var(--line);
}

.sources-section a {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.5;
  text-decoration-color: var(--gold);
  text-underline-offset: 5px;
}

.sources-section a:hover,
.sources-section a:focus-visible {
  color: var(--gold);
  outline: 0;
}

.sources-section span {
  font-size: 0.88rem;
}

@media (max-width: 820px) {
  .answer-card,
  .device-panel,
  .split-section {
    grid-template-columns: 1fr;
  }

  .score-card {
    border-top: 3px solid var(--ink);
    border-left: 0;
  }

  .score-number {
    font-size: 5.6rem;
  }

  .score-unit {
    margin-bottom: 20px;
  }

  .jump-nav {
    flex-wrap: wrap;
  }

  .jump-nav > span {
    width: 100%;
  }

  .split-section {
    gap: 28px;
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .method-grid h3 {
    min-height: 0;
  }

  .related-links,
  .example-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .example-strip > div:nth-child(2) {
    border-right: 0;
  }

  .example-strip > div:nth-child(-n + 2) {
    border-bottom: 2px solid var(--line);
  }
}

@media (max-width: 620px) {
  .guide-shell {
    width: min(100% - 18px, 600px);
    padding-top: 10px;
  }

  .topic-label,
  .language-chip {
    display: none;
  }

  .answer-card {
    box-shadow: 6px 6px 0 var(--shadow);
  }

  .answer-copy,
  .score-card {
    padding: 26px 20px;
  }

  .answer-copy h1 {
    font-size: clamp(2.35rem, 13vw, 4rem);
  }

  .jump-nav a {
    width: calc(50% - 12px);
  }

  .guide-section {
    padding: 58px 8px 44px;
  }

  .device-panel {
    gap: 24px;
    padding: 22px 18px;
  }

  .device-visual {
    grid-template-columns: 1fr 12px 1fr 12px 1fr;
    min-height: 116px;
    padding: 16px 10px;
  }

  .device-visual span {
    min-height: 54px;
    font-size: 0.58rem;
  }

  .method-grid li,
  .info-panel {
    padding: 24px 20px;
  }

  .two-column-section {
    grid-template-columns: 1fr;
  }

  .faq-section,
  .related-section,
  .more-guides,
  .sources-section {
    padding: 58px 8px 0;
  }

  .related-links,
  .example-strip,
  .sources-section li {
    grid-template-columns: 1fr;
  }

  .example-strip > div,
  .example-strip > div:nth-child(2) {
    border-right: 0;
    border-bottom: 2px solid var(--line);
  }

  .example-strip > div:last-child {
    border-bottom: 0;
  }

  .related-links a {
    min-height: 92px;
  }

  .sources-section {
    padding-bottom: 28px;
  }

  .sources-section li {
    gap: 10px;
  }
}
