/* The summary diagram of the threat, function and solution map (scripts/build-ring-summary.js, plan row GW-115 stage B). Additions
   to trust-pages.css and the house chrome; the house colour tokens only, so light and dark themes both hold; no inline style (the
   public-surface CSP). Meaning is never colour alone: shapes, printed status words, dashed outlines, and a number on every line. */
.rs-version { margin-top: .7rem; font-size: var(--t-s, .92rem); color: var(--ink-soft); }
.rs-full-link a { font-weight: 600; }
.rs-count { font-weight: 400; color: var(--ink-soft); }

/* The drawing scales to the column at every width; on a phone the words below are the reading. */
.rs-figure { margin: 0; }
.rs-svg { display: block; width: 100%; height: auto; max-width: 100%; font-family: inherit; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-raise); }
.rs-narrow-note { display: none; margin: 0 0 .8rem; font-size: .95rem; color: var(--ink); max-width: 66ch; }
@media (max-width: 760px) { .rs-narrow-note { display: block; } }
.rs-band-head { font-size: 15px; font-weight: 700; fill: var(--ink); }
.rs-label { font-size: 14.5px; font-weight: 600; fill: var(--ink); }
.rs-note, .rs-status { font-size: 12.5px; fill: var(--ink-soft); }
.rs-status { font-style: italic; font-weight: 600; fill: var(--ink); }
.rs-credit { font-size: 12.5px; fill: var(--ink-soft); }
.rs-shape { stroke-width: 1.6; }
.rs-dashed { stroke-dasharray: 8 4; stroke-width: 2.2; }
.rs-b-family .rs-shape { fill: var(--c-connect-soft); stroke: var(--c-connect); }
.rs-b-need .rs-shape { fill: var(--c-decide-soft); stroke: var(--c-decide); }
.rs-b-layer .rs-shape { fill: var(--c-work-soft); stroke: var(--c-work); }
.rs-b-gap .rs-shape { fill: var(--bg-raise); stroke: var(--ink-soft); }
.rs-open .rs-shape { fill: var(--bg-raise); }
.rs-box:focus-visible .rs-shape, .rs-box:hover .rs-shape { stroke-width: 3.4; }
.rs-box:focus { outline: none; }
.rs-box:focus-visible .rs-label { text-decoration: underline; }
.rs-line { fill: none; stroke: var(--ink-soft); opacity: .7; }
.rs-w1 { stroke-width: 2; }
.rs-w2 { stroke-width: 3.5; }
.rs-w3 { stroke-width: 5; }
.rs-w4 { stroke-width: 6.5; }
.rs-w5 { stroke-width: 8; }
.rs-w6 { stroke-width: 9.5; }
.rs-weight-bg { fill: var(--bg-raise); stroke: var(--ink-soft); stroke-width: 1.2; }
.rs-weight { font-size: 12.5px; font-weight: 700; fill: var(--ink); }

/* The legend, with small drawn keys beside the words (the words carry the meaning). */
.rs-legend { margin-top: .7rem; font-size: .92rem; color: var(--ink); }
.rs-legend-row { margin: .3rem 0; max-width: 80ch; line-height: 1.6; }
.rs-key { display: inline-block; width: 1.4em; height: .9em; vertical-align: -.1em; border: 1.6px solid var(--ink-soft); }
.rs-key-family { background: var(--c-connect-soft); border-color: var(--c-connect); clip-path: polygon(20% 0, 80% 0, 100% 30%, 100% 70%, 80% 100%, 20% 100%, 0 70%, 0 30%); }
.rs-key-need { background: var(--c-decide-soft); border-color: var(--c-decide); border-radius: 1em; }
.rs-key-layer { background: var(--c-work-soft); border-color: var(--c-work); border-radius: 3px; }
.rs-key-open { border-style: dashed; border-width: 2px; }
.rs-print-only { display: none; }

/* The diagram in words. */
.rs-bands { list-style: none; padding: 0; margin: 0; }
.rs-band > h3 { margin: 2rem 0 .8rem; font-size: var(--t-xl, 1.3rem); color: var(--ink); }
.rs-items { list-style: none; padding: 0; margin: 0; }
.rs-item { margin: 0 0 1rem; padding: .9rem 1rem; border: 1px solid var(--line); border-left-width: 4px; border-radius: 6px; background: var(--bg-raise); max-width: 80ch; }
.rs-item:target { border-color: var(--c-know); box-shadow: 0 0 0 2px var(--c-know); }
.rs-item p { margin: 0 0 .45rem; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }
.rs-item-title { margin: 0 0 .35rem; font-size: 1.05rem; color: var(--ink); }
.rs-badges { display: flex; flex-wrap: wrap; gap: .3rem .4rem; }
.rs-badge { display: inline-block; padding: .05em .5em; border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; color: var(--ink); }
.rs-badge-kind { font-weight: 600; }
.rs-badge-open { border-style: dashed; border-width: 2px; }

/* The poster: the diagram, its legend, the date and the live address on one A4 landscape page. No site chrome, no outline. */
@media print {
  @page { size: A4 landscape; margin: 9mm; }
  header.site, footer.site-foot, .skip-link, .apex-about-page, nav, .overlay, .mesh { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  main > section { display: none !important; }
  main > section.hero, main > section#diagram { display: block !important; padding: 0 !important; margin: 0 !important; min-height: 0 !important; background: none !important; }
  .hero .sub, .band-head, .rs-narrow-note, .rs-full-link { display: none !important; }
  .hero h1 { font-size: 15pt; margin: 0 0 .1em; color: #000 !important; }
  .rs-version { font-size: 9pt; margin: 0 0 .3em; color: #000 !important; }
  .wrap { max-width: none !important; padding: 0 !important; }
  .rs-svg { width: 100% !important; max-height: 142mm; border: 0 !important; background: none !important; }
  .rs-legend { font-size: 8pt; color: #000 !important; margin-top: .2em; }
  .rs-legend-row { margin: .05em 0; max-width: none; line-height: 1.35; }
  .rs-print-only { display: block !important; font-size: 8pt; margin-top: .2em; color: #000 !important; }
  a { color: #000 !important; text-decoration: none !important; }
}
