/* Topic-page additions on top of site.css (the site prototype's own stylesheet).
   Only what the topic page needs and the site lacks; everything reuses site tokens. */

/* Tabs are links here (the site uses buttons in a single-page app). */
a.tab{display:flex;align-items:center;text-decoration:none}

/* Two columns: the site's .step without its diagnostic trace column, which would
   imply a sequence these reports don't support. Same breakpoint behaviour as .step:
   the reference column drops below the work column. */
.step.topic{grid-template-columns:minmax(0,1fr) 340px}
@media (max-width:1180px){.step.topic{grid-template-columns:minmax(0,1fr)}}

/* Evidence rows reuse .edge layout, but they are not buttons. */
.next-list .edge.claim{cursor:default}
.next-list .edge.claim:hover{background:none}
.edge.claim .rel{white-space:nowrap}
.edge.claim .links{display:flex;flex-wrap:wrap;gap:var(--s1) var(--s3);margin-top:var(--s1)}
.edge.claim .links a{font:500 var(--t-xs)/1.5 var(--f-mono);color:var(--hose)}
.edge.claim .links a:hover{color:var(--ink)}
.edge.claim .note{display:block;font-size:var(--t-s);color:var(--hose);margin-top:2px}
.edge.claim .byline,.src .src-by{display:block;font:400 var(--t-xs)/1.5 var(--f-mono);color:var(--hose);margin-top:2px}
.edge.claim b.none{font-weight:500;color:var(--hose)}

/* Expandable quotations: site .lbl for the control, site .proto for the verbatim text. */
.quotes{margin-top:var(--s2)}
.quotes summary{cursor:pointer;display:inline-flex;gap:6px;align-items:center}
.quotes summary:hover{color:var(--ink)}
.quotes summary::-webkit-details-marker{display:none}
.quotes summary::before{content:"+";font:600 var(--t-s)/1 var(--f-mono);width:1ch}
.quotes[open] summary::before{content:"−"}
.quotes .proto{white-space:pre-wrap;overflow-wrap:anywhere;margin:var(--s2) 0 0}
.quotes .cap{margin-top:var(--s1)}

/* The site writes this override inline on its end-of-branch notes; same values. */
.ask > h2 + .endnote{border-top:0;padding-top:0;margin-top:var(--s3)}
.scope.gaps{margin-top:0}
.scope div{grid-template-columns:150px 1fr}
.scope b{font-weight:600}
.src .src-lines{font-size:var(--t-s);color:var(--hose);margin-top:var(--s1)}
.src .src-lines span{display:block}
.src .open{font:500 var(--t-xs)/1.6 var(--f-mono);color:var(--hose)}
.topic-loading,.topic-error{padding:var(--s6) var(--s5)}
.topic-error pre{white-space:pre-wrap;font:var(--t-s)/1.5 var(--f-mono);margin-top:var(--s3)}

@media (max-width:860px){
  .scope div{grid-template-columns:1fr;gap:2px}
  .edge.claim .rel{white-space:normal}
}

/* Topic index: the site's .head + table pattern (Index/Sources views). */
.head .display{margin-top:8px}
.head .lede.flush{margin-top:0}
table.topics td.go{text-align:right;white-space:nowrap}
a.back{text-decoration:none}
a.back:hover{text-decoration:underline}
