/* pages/topic.css — /topic/<slug> (Glideslope V2). Loaded after pages/chart.css (shared chart widget). Tokens only. */
.gst { padding-top: var(--sp-5); }
.gst-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--sp-6); align-items: start; padding-bottom: var(--sp-5); margin-bottom: var(--sp-5); border-bottom: 1px solid var(--rule); }
.gst-hero--plain { grid-template-columns: minmax(0, 760px); }
.gst-kickers { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.gst-kickers .gs2-kicker { margin: 0; }
.gst-hero__title { font-size: clamp(2.2rem, 1.3rem + 3.2vw, 3.9rem); line-height: 1; letter-spacing: -.025em; margin: 2px 0 var(--sp-3); overflow-wrap: anywhere; }
.gst-hero__dek { font: 400 var(--fs-lg)/1.5 var(--font-serif); color: var(--ink-2); margin: 0 0 var(--sp-4); max-width: 56ch; }
.gst-hero__dek strong { font-weight: 650; }
.gst-search { max-width: 520px; margin-top: var(--sp-4); }
.gst-stats { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--rule-strong); }
.gst-stat { padding: 12px 14px 4px 0; min-width: 0; }
.gst-stat + .gst-stat { padding-left: 14px; border-left: 1px solid var(--rule); }
.gst-stat dt { font: 600 10.5px/1.2 var(--font-sans); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.gst-stat dd { margin: 6px 0 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gst-stat__v { font: 650 var(--fs-2xl)/1 var(--font-sans); letter-spacing: -.02em; color: var(--ink); }
.gst-stat__sub { font: 500 var(--fs-xs)/1.2 var(--font-sans); color: var(--muted); }
.gst-stat__bar { display: block !important; max-width: 200px; }
.gst-lead { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.gst-lead .gs2-frame { border-radius: var(--radius-lg); box-shadow: var(--shadow-1); }
.gst-lead__img { display: block; }
.gst-lead figcaption { font: 600 var(--fs-md)/1.35 var(--font-serif); color: var(--ink); }
.gst-lead figcaption .gs2-kicker { display: block; margin-bottom: 2px; }
.gst-lead figcaption a { color: var(--ink); text-decoration: none; }
.gst-lead figcaption a:hover { text-decoration: underline; }

.gst-chartcard__head { display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.gst-chartcard__title { font: 700 12px/1.2 var(--font-sans); letter-spacing: .09em; text-transform: uppercase; margin: 0; color: var(--ink); }
.gst-chart { position: relative; min-height: 300px; margin-top: 4px; }
.gst-table { margin-top: 8px; border-top: 1px solid var(--rule); padding-top: 8px; }
.gst-table summary { cursor: pointer; font: 600 var(--fs-xs)/1 var(--font-sans); color: var(--ink-2); min-height: 32px; display: inline-flex; align-items: center; }
.gst-table .gs2-table-wrap { margin-top: 8px; max-width: 520px; }
.gst-table th[scope=row] { font: 500 var(--fs-xs)/1.3 var(--font-sans); text-transform: none; letter-spacing: 0; color: var(--ink); background: none; position: static; }

.gst-body { margin-top: var(--sp-7); }
.gst-list .gs2-card--row { padding: var(--sp-4) 0; gap: var(--sp-4); }
.gst-list .gs2-card--row .gs2-frame { width: 168px; border-radius: var(--radius); }
.gst-list .gs2-card--row .gs2-card__title { font-size: var(--fs-lg); }
.gst-list .gs2-card__dek { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gst-more { margin-top: var(--sp-4); display: flex; justify-content: center; }
.gst-aside { display: flex; flex-direction: column; gap: var(--sp-5); position: sticky; top: var(--sp-4); }
.gst-box { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: var(--sp-4); }
.gst-box--quiet { background: var(--surface-2); border-color: transparent; }
.gst-box__title { display: flex; align-items: center; gap: 8px; font: 700 12px/1.2 var(--font-sans); letter-spacing: .09em; text-transform: uppercase; color: var(--ink); margin: 0 0 var(--sp-3); }
.gst-box__title svg { width: 16px; height: 16px; color: var(--muted); }
.gst-box .gs2-chip { font-size: var(--fs-xs); min-height: 30px; }
.gst-src { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.gst-src li { display: grid; grid-template-columns: minmax(0, 1fr) 70px 24px; gap: 8px; align-items: center; font: 500 var(--fs-sm)/1.2 var(--font-sans); color: var(--ink); }
.gst-src__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gst-src__bar { height: 6px; border-radius: 3px; background: var(--surface-2); position: relative; overflow: hidden; }
.gst-src__bar::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: var(--ink-2); border-radius: 3px; }
.gst-src__n { font-size: var(--fs-xs); color: var(--muted); text-align: right; }
.gst-chat summary { list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: pointer; min-height: 32px; }
.gst-chat summary::-webkit-details-marker { display: none; }
.gst-chat summary .gst-box__title { margin: 0; }
.gst-chat[open] summary > svg { transform: rotate(180deg); }
.gst-chat__frame { width: 100%; height: 460px; border: 0; margin-top: var(--sp-3); border-radius: var(--radius); background: var(--surface); }

@media (max-width: 960px) {
  .gst-hero { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
  .gst-lead { order: -1; }
  .gst-aside { position: static; }
}
@media (max-width: 640px) {
  .gst { padding-top: var(--sp-3); }
  .gst-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gst-stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .gst-stat:nth-child(n+3) { border-top: 1px solid var(--rule); margin-top: 6px; }
  .gst-stat__v { font-size: var(--fs-xl); }
  .gst-hero__dek { font-size: var(--fs-md); }
  .gst-list .gs2-card--row .gs2-frame { width: 96px; }
  .gst-list .gs2-card--row .gs2-card__title { font-size: var(--fs-md); }
  .gst-list .gs2-card__dek { display: none; }
  .gst-lead figcaption { font-size: var(--fs-sm); }
}
