.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.6fr) minmax(260px, 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.15rem, 2.5vw, 1.65rem);
  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;
}

.trend-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 28px;
  border-left: 3px solid var(--ink);
  background:
    linear-gradient(rgba(247, 201, 72, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 201, 72, 0.05) 1px, transparent 1px),
    #201927;
  background-size: 18px 18px;
}

.pixel-curve {
  display: flex;
  height: 116px;
  align-items: flex-end;
  gap: 5px;
  margin-bottom: 28px;
  padding: 0 6px 12px;
  border-bottom: 3px solid #5b4b38;
}

.pixel-curve i {
  display: block;
  width: 13%;
  border: 0;
  background: var(--gold);
  box-shadow: 3px 3px 0 var(--shadow);
}

.pixel-curve i:nth-child(1) { height: 68%; }
.pixel-curve i:nth-child(2) { height: 40%; }
.pixel-curve i:nth-child(3) { height: 25%; background: var(--green); }
.pixel-curve i:nth-child(4) { height: 31%; }
.pixel-curve i:nth-child(5) { height: 45%; }
.pixel-curve i:nth-child(6) { height: 61%; }
.pixel-curve i:nth-child(7) { height: 78%; }

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

.trend-card > span {
  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;
}

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

.section-heading h2,
.wide-heading h2,
.evidence-panel h2,
.factors-section h2,
.caution-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,
.wide-heading > p:last-child,
.evidence-panel p:not(.section-kicker),
.method-grid p,
.factor-grid p,
.caution-panel p:not(.section-kicker),
.faq-list p,
.sources-section span {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.prose p + p,
.evidence-panel p + p,
.caution-panel p + p {
  margin-top: 18px;
}

.chart-section {
  padding: 30px 18px 68px;
}

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

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

.age-table-wrap {
  margin-top: 32px;
  overflow-x: auto;
  border: 2px solid var(--line);
  background: var(--panel);
}

.age-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  text-align: left;
}

.age-table th,
.age-table td {
  padding: 20px;
  border-right: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  vertical-align: top;
}

.age-table tr > *:last-child {
  border-right: 0;
}

.age-table tbody tr:last-child > * {
  border-bottom: 0;
}

.age-table thead th {
  background: #171220;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
}

.age-table thead th:first-child {
  width: 15%;
}

.age-table thead th:nth-child(2) {
  width: 40%;
}

.age-table tbody th {
  color: var(--green);
  font-size: 1.35rem;
  white-space: nowrap;
}

.age-table td {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.age-table tbody tr:hover {
  background: rgba(247, 201, 72, 0.035);
}

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

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

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

.evidence-mark {
  display: grid;
  gap: 10px;
  min-height: 190px;
  align-content: center;
  padding: 24px;
  border: 2px solid var(--line);
  background: #15111e;
}

.evidence-mark span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.evidence-mark strong {
  color: var(--orange);
  font-size: 1.15rem;
  line-height: 1.3;
}

.evidence-mark strong:last-child {
  color: var(--green);
}

.evidence-mark i {
  height: 2px;
  margin: 8px 0;
  background: var(--line);
}

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

.method-grid li {
  padding: 22px;
  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: 22px 0 12px;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.35;
}

.factors-section {
  padding: 24px 18px 68px;
}

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

.factor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 32px;
}

.factor-grid article {
  position: relative;
  padding: 26px 26px 26px 74px;
  border: 2px solid var(--line);
  background: var(--panel);
}

.factor-grid article > span {
  position: absolute;
  top: 27px;
  left: 24px;
  color: var(--gold);
  font-weight: 900;
}

.factor-grid h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.caution-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.45fr;
  gap: 68px;
  padding: 32px;
  border: 2px solid #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: 900px) {
  .method-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 820px) {
  .answer-card,
  .intro-section,
  .evidence-panel,
  .factors-section .section-heading,
  .caution-panel {
    grid-template-columns: 1fr;
  }

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

  .pixel-curve {
    max-width: 420px;
  }

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

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

  .intro-section,
  .factors-section .section-heading,
  .caution-panel {
    gap: 28px;
  }

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

@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,
  .trend-card {
    padding: 26px 20px;
  }

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

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

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

  .evidence-panel,
  .caution-panel {
    gap: 24px;
    padding: 22px 18px;
  }

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

  .method-grid li,
  .factor-grid article {
    padding: 24px 20px;
  }

  .factor-grid article {
    padding-left: 68px;
  }

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

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

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
