.topic-page {
  background: radial-gradient(ellipse 800px 440px at 75% 0%, #3a526027, transparent 80%), var(--bg);
}
.topic-shell {
  /* Match the content edges of the Silicon-Based Clock detail page. */
  width: min(1160px, calc(100% - 56px));
  margin-inline: auto;
}
.topic-hero {
  padding-block: clamp(20px, 3vw, 36px) 24px;
}
.topic-hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.15;
  text-wrap: balance;
}
.topic-hero h2 {
  margin-block: 16px 6px;
  color: var(--gold);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 500;
  line-height: 1.5;
}
.topic-hero .st-copy { max-width: 66ch; font-size: 15px; line-height: 1.8; }
.topic-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(12px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
}
.topic-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  color: var(--body);
  font-size: 14px;
}
.topic-nav a:hover { color: var(--gold); }
.topic-section {
  display: grid;
  grid-template-columns: minmax(140px, .28fr) minmax(0, 1fr);
  gap: 24px;
  padding-block: clamp(26px, 4vw, 42px);
  border-bottom: 1px solid var(--line);
}
.topic-section > h2 {
  font-size: clamp(21px, 2.5vw, 27px);
  font-weight: 550;
  line-height: 1.3;
}
.topic-list {
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff03;
}
.topic-card { padding: 16px clamp(14px, 2.5vw, 24px); }
.topic-card + .topic-card { border-top: 1px solid var(--line); }
.topic-card h3 {
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 550;
  line-height: 1.45;
}
.topic-card p {
  color: var(--body);
  font-size: 14px;
  line-height: 1.65;
}
.topic-card .topic-status {
  margin-top: 8px;
  color: var(--gold);
  font-size: 12px;
}
.topic-card .topic-source {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}
.topic-video { scroll-margin-top: 12px; }
.topic-video summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}
.topic-video summary::-webkit-details-marker { display: none; }
.topic-video summary:focus-visible { outline: 1px solid var(--ice); outline-offset: 5px; }
.topic-video-heading { display: grid; gap: 4px; min-width: 0; }
.topic-video-title { font-size: 16px; font-weight: 550; line-height: 1.45; }
.topic-video-source { color: var(--muted); font-size: 12px; line-height: 1.6; }
.topic-video-chevron {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.topic-video[open] .topic-video-chevron { transform: rotate(180deg); }
.topic-player {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid #ffffff1c;
  border-radius: 10px;
  background: #08090c;
}
.topic-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1106 / 720;
  background: #000;
}
.topic-player-controls {
  display: flex;
  align-items: center;
  gap: clamp(3px, 1vw, 10px);
  padding: 3px clamp(4px, 1.2vw, 12px);
  border-top: 1px solid #ffffff12;
  background: #13151a;
}
.topic-player-controls button {
  display: grid;
  flex: 0 0 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: #e2e5ec;
  background: transparent;
  outline-offset: -3px;
}
.topic-player-controls button:hover { background: #ffffff12; }
.topic-player-controls [data-play] { color: var(--gold); }
.topic-player-controls button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.topic-player-controls [data-play] [data-idle] { fill: currentColor; }
.topic-player-controls button [data-active],
.topic-player-controls button[data-is-active] [data-idle] { display: none; }
.topic-player-controls button[data-is-active] [data-active] { display: inline; }
.topic-player-controls input {
  appearance: none;
  flex: 1 1 0;
  min-width: 0;
  height: 44px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.topic-player-controls input::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--gold) var(--played, 0%), #ffffff30 var(--played, 0%));
}
.topic-player-controls input::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--gold) var(--played, 0%), #ffffff30 var(--played, 0%));
}
.topic-player-controls input::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4px;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
}
.topic-player-controls input::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
}
.topic-player-time {
  color: var(--body);
  font-size: 12px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.topic-card .topic-player-error { padding: 8px 12px; }
.topic-player:fullscreen,
.topic-player[data-expanded] {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #000;
}
.topic-player[data-expanded] {
  position: fixed;
  inset: 0;
  z-index: 40;
}
html.topic-player-expanded { overflow: hidden; }
.topic-player:fullscreen video,
.topic-player[data-expanded] video {
  min-height: 0;
  margin-top: 0;
  flex: 1;
  object-fit: contain;
}
.topic-article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  outline-offset: -4px;
  transition: background-color .2s;
}
.topic-article:hover { background: #c6ab7710; }
.topic-article .icon { width: 20px; height: 20px; color: var(--gold); }
@media (max-width: 820px) {
  .topic-shell { width: calc(100% - 48px); }
}
@media (max-width: 720px) {
  .topic-section { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 360px) {
  .topic-player-controls { flex-wrap: wrap; }
  .topic-player-controls input { order: -1; flex-basis: 100%; height: 32px; }
  .topic-player-time { flex: 1; }
}
