.topic-page {
  --topic-ink: #234e41;
  --topic-paper: #ebefe2;
  --topic-rule: #bdcab4;
  padding-bottom: clamp(38px, 6vw, 82px);
  max-width: 1120px;
}
.topic-page[data-audience="customer"], .topic-shelf[data-audience="customer"] {
  --topic-ink: #723d34;
  --topic-paper: #f7ece1;
  --topic-rule: #d9c2ac;
}
.topic-page h1, .topic-page h2, .topic-page h3 {
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
.topic-page h1 {
  font-size: clamp(2.1rem, 4.4vw, 4.15rem);
  letter-spacing: -.038em;
  line-height: 1.17;
}
.topic-page h2 { font-size: clamp(1.22rem, 2.3vw, 1.85rem); line-height: 1.35; }
.topic-page a { text-underline-offset: .21em; }
.topic-lead, .topic-shelf {
  border: 1px solid var(--topic-rule);
  border-radius: 20px;
  background: var(--topic-paper);
}
.topic-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(185px, .72fr);
  align-items: center;
  gap: clamp(24px, 4vw, 68px);
  padding: clamp(22px, 4vw, 52px);
  color: var(--topic-ink);
}
.topic-intro, .topic-index-head p {
  max-width: 47em;
  color: var(--ink);
  font-size: clamp(1rem, 1.6vw, 1.24rem);
  line-height: 1.7;
  margin-top: 16px;
}
.topic-index-head {
  max-width: 790px;
  padding-block: clamp(18px, 3vw, 36px) clamp(26px, 4vw, 47px);
}
.topic-index-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.topic-shelf { overflow: hidden; }
.topic-shelf > header { display: grid; grid-template-columns: 1fr 23%; gap: 12px; align-items: center; padding: clamp(18px, 3vw, 33px); }
.topic-shelf > header p { margin-top: 7px; color: var(--muted); line-height: 1.6; }
.topic-shelf > header h2 a { color: var(--topic-ink); text-decoration: none; }
.topic-shelf > header h2 a:hover { text-decoration: underline; }
.topic-shelf > header img { height: auto; width: 100%; max-width: 104px; justify-self: center; }
.topic-list, .topic-contents ul, .topic-results { list-style: none; }
.topic-list { border-bottom: 1px solid var(--line); }
.topic-list li { border-top: 1px solid var(--line); }
.topic-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 2px;
  min-height: 48px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 690;
  line-height: 1.5;
}
.topic-list li a:hover, .topic-list li a:focus-visible { color: var(--topic-ink); background: var(--topic-paper); }
.topic-list li a:hover span:first-child, .topic-list li a:focus-visible span:first-child { text-decoration: underline; }
.topic-shelf .topic-list { background: var(--card); padding-inline: clamp(18px, 2.8vw, 32px); border-top: 1px solid var(--topic-rule); border-bottom: 0; }
.topic-shelf .topic-list li:first-child { border-top: 0; }
.group-lead { margin-bottom: 24px; }
.group-art { width: min(100%, 170px); height: auto; justify-self: center; }
.topic-section-name { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; font-weight: 720; }
.topic-section-name span { color: var(--muted); font-size: .85rem; font-weight: 550; }
.topic-contents {
  padding-left: clamp(15px, 2vw, 30px);
  border-left: 1px solid var(--topic-rule);
}
.topic-contents h2 { font-size: .88rem; font-weight: 660; color: var(--topic-ink); }
.topic-contents ul { margin-top: 6px; }
.topic-contents a {
  display: block;
  padding-block: 6px;
  color: var(--topic-ink);
  font-weight: 750;
  font-style: italic;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.topic-evidence { margin-top: clamp(32px, 5vw, 62px); }
.topic-evidence > header { display: grid; grid-template-columns: minmax(125px, .75fr) minmax(0, 1.6fr); gap: 24px; align-items: baseline; margin-bottom: 15px; }
.topic-evidence > header p { color: var(--muted); line-height: 1.7; }
.topic-results { border-block: 1px solid var(--topic-rule); }
.topic-result { scroll-margin-top: 26px; }
.topic-result + .topic-result { border-top: 1px solid var(--line); }
.topic-result:target { background: var(--topic-paper); }
.topic-result article {
  display: grid;
  grid-template-columns: minmax(125px, .75fr) minmax(0, 1.6fr);
  gap: 24px;
  padding: clamp(20px, 3vw, 32px) 2px;
}
.topic-result:target article { padding-inline: 12px; }
.topic-result header p { color: var(--muted); font-size: .83rem; font-weight: 580; margin-bottom: 5px; }
.topic-result h3 { font-size: clamp(1.15rem, 1.9vw, 1.55rem); line-height: 1.38; }
.topic-finding > p { font-size: 1.03rem; line-height: 1.7; }
.topic-case-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 15px; margin-top: 12px; }
.topic-source { color: var(--topic-ink); font-size: .9rem; font-weight: 670; padding-block: 6px; }
.topic-case-actions .outline-action { font-size: .87rem; min-height: 40px; padding: 6px 13px; }
.topic-next { display: flex; gap: 14px; padding: 20px clamp(16px,2.7vw,30px); background: var(--topic-paper); border-left: 3px solid var(--topic-rule); margin-top: 28px; }
.topic-next img { flex: none; width: 44px; height: 44px; }
.topic-next h2 { font-size: 1.02rem; color: var(--topic-ink); }
.topic-next p { margin-top: 4px; line-height: 1.7; }
.topic-further { margin-top: clamp(28px, 4vw, 46px); }
.topic-further h2 { margin-bottom: 10px; }
.topic-return { margin-top: 28px; }
@media (min-width: 950px) {
  .group-lead + .topic-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 38px; }
  .group-lead + .topic-list li a { padding-block: 20px; }
}
@media (max-width: 700px) {
  .topic-index-groups { grid-template-columns: 1fr; }
  .detail-lead { grid-template-columns: 1fr; gap: 15px; }
  .topic-contents { padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--topic-rule); }
  .topic-contents ul { display: flex; flex-wrap: wrap; column-gap: 14px; }
  .topic-contents a { font-size: .88rem; }
  .group-lead { grid-template-columns: minmax(0, 1fr) minmax(65px, 18%); gap: 9px; }
  .topic-evidence > header { grid-template-columns: 1fr; gap: 5px; }
  .topic-result article { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 420px) {
  .topic-lead, .topic-shelf { border-radius: 14px; }
  .group-lead { grid-template-columns: 1fr; }
  .group-art { display: none; }
  .topic-page h1 { font-size: 2rem; }
  .topic-intro { margin-top: 11px; }
  .topic-next { gap: 10px; }
  .topic-next img { width: 34px; height: 34px; }
}
.topic-list-brands { display: block; margin-top: 4px; color: var(--muted); font-size: .85rem; font-weight: 700; font-style: italic; }

.topic-ai-example { scroll-margin-top: 94px; margin-top: 32px; border: 1px solid var(--topic-rule); background: var(--topic-paper); padding: clamp(18px,3.3vw,34px); overflow-wrap: anywhere; }
.topic-ai-example h2 { font-size: clamp(1.22rem,2.2vw,1.7rem); color: var(--topic-ink); }
.topic-ai-example dl { margin-block: 16px; display: grid; gap: 14px; }
.topic-ai-example dt { font-weight: 700; color: var(--topic-ink); }
.topic-ai-example dd { margin: 3px 0 0; line-height: 1.65; }
.topic-ai-example .ai-context { line-height: 1.65; }
.topic-ai-example .scope-actions { margin-top: 15px; }

.topic-reputation {
  margin-block: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--topic-rule);
}
.topic-reputation p {
  margin-top: 6px;
}
