.detail-page {
  background: var(--bg);
}

.detail-layout {
  max-width: min(52rem, var(--max-width));
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.detail-back:hover {
  text-decoration: underline;
}

.detail-article h1 {
  margin: 0 0 0.65rem;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent-strong);
  line-height: 1.25;
}

.detail-summary {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
}

.detail-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.detail-section h2 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  font-weight: 650;
  color: var(--accent-strong);
}

.detail-section p {
  margin: 0;
  line-height: 1.55;
}

.detail-section p + p {
  margin-top: 0.75rem;
}

.detail-section ul,
.detail-section ol {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  line-height: 1.5;
}

.detail-subsection {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.detail-subsection h3 {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--text);
}

.detail-callout {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.detail-callout p {
  margin: 0;
}

.detail-examples {
  margin-top: 0.65rem;
  font-size: 0.92rem;
}

.detail-examples li {
  margin-bottom: 0.35rem;
}

.detail-terms {
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.35rem 0.75rem;
}

.detail-terms dt {
  font-weight: 650;
  color: var(--accent-strong);
  margin: 0;
}

.detail-terms dd {
  margin: 0 0 0.5rem;
  line-height: 1.45;
  color: var(--text);
}

.detail-diagram {
  margin: 1rem 0 0;
  padding: 0.75rem;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 0;
  overflow-x: auto;
}

.detail-diagram svg {
  display: block;
  width: 100%;
  max-width: 36rem;
  min-height: 9rem;
  height: auto;
  margin: 0 auto;
}

.detail-diagram--focus svg {
  min-height: 13rem;
  max-width: 28rem;
}

.detail-diagram figcaption {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
  text-align: center;
}

.detail-hub {
  margin-top: 1.5rem;
}

.detail-hub-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 650;
  color: var(--muted);
}

.detail-hub-list {
  display: grid;
  gap: 0.65rem;
}

.detail-card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.2rem 0.75rem;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid #e0e0e0;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  box-shadow: none !important;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.detail-card:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.detail-card-label {
  grid-column: 1;
  font-weight: 650;
  color: var(--accent-strong);
}

.detail-card-teaser {
  grid-column: 1;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}

.detail-card-arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.view-step .hero-lead,
.view-step .hero-accel,
.view-step .hero-explain {
  display: none !important;
}

.view-step .hero-conversions {
  display: none !important;
}

.view-step .hero-tw-caption + .hero-tw-caption {
  display: none;
}

.view-step .presentation-hint {
  display: none;
}

.view-step .step-cursor-strip {
  margin-bottom: 0.75rem;
}

.tip-link {
  display: inline-flex;
  align-items: center;
  margin-left: 0.25rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.tip-link:hover {
  text-decoration: underline;
}