/* The dashboard uses the homepage's editorial greens, rule weights and serif headings. */
.risk-dashboard .risk-hero { padding-block:clamp(1.9rem,3.7vw,3.55rem); }
.risk-dashboard .risk-hero-actions {
  display:flex; flex-wrap:wrap; gap:.2rem 1.4rem; margin-top:1.3rem;
}
.risk-dashboard .risk-hero-actions a {
  display:inline-flex; align-items:center; min-height:2.75rem; padding:.35rem 0;
  border-top:1px solid #618a7e; color:#fff; font-size:.94rem; font-weight:700; text-decoration:none;
}
.risk-dashboard .risk-hero-actions a:hover { color:#bde4cf; text-decoration:underline; }
.risk-dashboard .matrix-brief { border-top-color:#bde4cf; padding:clamp(.95rem,1.65vw,1.65rem); }
.risk-dashboard .matrix-brief-figures dd { color:#bde4cf; }
.risk-dashboard .risk-page-guide { padding-block:clamp(1.8rem,3.4vw,3.1rem) clamp(1.5rem,2.9vw,2.8rem); }
.risk-dashboard .guide-opening {
  display:grid; grid-template-columns:minmax(14rem,.83fr) minmax(0,1.36fr); align-items:start;
  gap:1rem clamp(1.5rem,6vw,5rem); margin:0 0 clamp(1.25rem,2.3vw,2rem);
}
.risk-dashboard .guide-opening h2 {
  max-width:19ch; margin:0; font-size:clamp(1.9rem,3.1vw,3rem); line-height:1.08;
}
.risk-dashboard .guide-opening p { max-width:72ch; margin:0; color:var(--muted); font-size:1.02rem; }
.risk-dashboard .guide-routes ul {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 clamp(1.2rem,3vw,3.2rem);
  margin:0; padding:0; list-style:none; border-block-start:2px solid var(--green);
}
.risk-dashboard .guide-routes li {
  margin:0; padding:.65rem .15rem .95rem; border-block-end:1px solid var(--line); list-style:none;
}
.risk-dashboard .guide-routes h3 {margin:0; font-size:clamp(1.15rem,1.55vw,1.45rem); line-height:1.25}
.risk-dashboard .guide-routes h3 a {
  display:inline-flex; align-items:center; min-height:2.75rem; color:var(--green);
  text-decoration:underline; text-decoration-color:#86a997; text-decoration-thickness:1px; text-underline-offset:.2em;
}
.risk-dashboard .guide-routes h3 a:hover {color:var(--ink); text-decoration-color:currentColor}
.risk-dashboard .guide-routes h3 a:focus-visible {outline:2px solid var(--green); outline-offset:2px}
.risk-dashboard .guide-routes p {margin:0; max-width:62ch; color:var(--muted); line-height:1.45}
.risk-dashboard .snapshot-contents a, .risk-dashboard .risk-guide-footer a {
  display:inline-flex; align-items:center; min-height:2.35rem;
  color:var(--green); font-size:.93rem; font-weight:700; line-height:1.35;
  text-decoration:underline; text-decoration-color:#86a997; text-underline-offset:.22em;
}
.risk-dashboard .snapshot-contents a:hover, .risk-dashboard .risk-guide-footer a:hover {
  color:var(--ink); text-decoration-color:currentColor;
}
.risk-dashboard .risk-shell > .risk-section { padding-block:clamp(2rem,3.5vw,3.5rem); }
.risk-dashboard :is(#register-matrix,#audit-signals,#central-monthly) { border-top:2px solid var(--green); }
.risk-dashboard #matrix-status {
  box-sizing:border-box; width:100%; max-width:none; white-space:nowrap; overflow-x:auto; scrollbar-width:thin;
  margin:1rem 0 .25rem; background:var(--risk-tint); border-left-color:var(--green); color:var(--ink);
}
.risk-dashboard #matrix-filters {
  margin-bottom:1.15rem; padding:.85rem 0 1.1rem; border-bottom:1px solid var(--line);
}
.risk-dashboard #matrix-status:focus-visible { outline:2px solid var(--green); outline-offset:2px; }
.matrix-primary-filters {
  grid-column:1/-1; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.25fr) minmax(0,1.12fr) repeat(3,minmax(0,1fr));
  align-items:end; gap:.85rem 1rem;
}
.risk-dashboard #matrix-filters > :is(.matrix-more,.matrix-reset) { grid-row:2; }
@media (max-width:68rem) {
  .matrix-primary-filters { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:49rem) {
  .matrix-primary-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:34rem) {
  .matrix-primary-filters { grid-template-columns:1fr; gap:.65rem; }
}
.risk-dashboard .signal-tabs button[aria-selected="true"] { background:var(--risk-tint); }
.risk-dashboard .signal-tabs button { padding-inline:.55rem; }
.risk-dashboard .matrix-archive-intro { border-top-color:var(--green); background:var(--risk-tint); }
.risk-dashboard .snapshot-contents {
  display:flex; align-items:baseline; flex-wrap:wrap; gap:.25rem 1.4rem;
  padding:1.05rem 0; margin:.8rem 0; border-block:1px solid var(--line);
}
.risk-dashboard .snapshot-contents ul, .risk-dashboard .risk-guide-footer div {
  display:flex; flex-wrap:wrap; gap:0 1.2rem; padding:0; margin:0; list-style:none;
}
.risk-dashboard .snapshot-contents li { list-style:none; }
.risk-dashboard .risk-guide-footer {
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:.3rem 1.5rem;
  padding:1rem 0 clamp(1.5rem,3vw,3rem); border-top:2px solid var(--green);
}
@media(max-width:40rem) {
  .risk-dashboard .guide-routes ul {grid-template-columns:minmax(0,1fr)}
  .risk-dashboard .guide-routes li {padding:.35rem 0 .7rem}
}
@media(max-width:35rem) {
  .risk-dashboard .risk-hero-actions { margin-top:.85rem; }
}
@media print {
  .risk-dashboard .guide-routes, .risk-dashboard .risk-hero-actions,
  .risk-dashboard .risk-guide-footer, .risk-dashboard .snapshot-contents { display:none; }
  .risk-dashboard .matrix-brief-figures dd { color:#103833; }
}
.risk-dashboard .risk-shell > section[tabindex="-1"]:focus-visible { outline:none; }
.risk-dashboard .risk-shell > section[tabindex="-1"]:focus-visible > :is(header,.guide-opening,.matrix-heading,.assure-panel) h2:first-of-type {
  text-decoration:underline; text-decoration-thickness:2px; text-decoration-color:var(--green); text-underline-offset:.17em;
}
