/*
 * LEGACY styles from before the Tabler redesign.
 * Pages not yet converted still use these classes. Remove rules as pages move to Tabler components,
 * and delete this file when nothing uses it any more.
 */
:root {
  --brand: #0e5a4a;        /* institutional green */
  --brand-dark: #093f34;
  --ink: #1d2b36;
  --muted: #5f6b73;
  --surface: #f2f4f3;
  --line: #dfe4e2;
  --attention: #b7791f;    /* action needed */
}
.panel { background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.btn-brand { background: var(--brand); color: #fff; border: 0; }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); color: #fff; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.na, .table td.na { color: #9aa4aa; }
.status { display: inline-block; white-space: nowrap; padding: .15rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.status-draft { background: #e9ecef; color: #495057; }
.status-submitted { background: #fff3db; color: #8a5a00; }
.status-approved { background: #dcf2e8; color: #0b5c3f; }
.status-returned { background: #fde2e1; color: #9b2c2c; }
code { color: var(--ink); background: #eef1f0; padding: .05rem .35rem; border-radius: 3px; }
.review-note { border-inline-start: 4px solid var(--attention); background: #fff8ec; }
a:focus-visible, button:focus-visible, .form-control:focus, .form-select:focus {
  outline: 3px solid #7fc4b3; outline-offset: 1px; box-shadow: none;
}

.figure dt { font-weight: 400; color: var(--muted); font-size: .9rem; }
  .figure dd { font-size: 1.7rem; font-weight: 700; margin: 0; }
  .cov-gap { background: #fde2e1; color: #9b2c2c; }
  .cov-weak { background: #fff3db; color: #8a5a00; }
  .cov-covered { background: #dcf2e8; color: #0b5c3f; }
  /* Framework tiles: one clickable box per level of the results framework */
  .framework { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); }
  .framework a { display: block; padding: 1rem 1.1rem; color: var(--ink); text-decoration: none;
             border-inline-start: 1px solid var(--line); }
  .framework a:first-child { border-inline-start: 0; }
  .framework a:hover, .framework a.current { background: #f3f8f6; }
  .framework a.current { box-shadow: inset 0 -3px 0 var(--brand); }
  .framework .label { color: var(--muted); font-size: .85rem; min-height: 2.4em; }
  .framework .value { font-size: 1.7rem; font-weight: 700; line-height: 1.2; }
  .framework .value.missing { font-size: 1rem; color: var(--attention); padding-top: .45rem; }
  .framework .level { font-size: .75rem; color: var(--muted); }
  .legend span { display: inline-block; padding: .1rem .6rem; border-radius: 4px; font-size: .85rem; }
  .bar { height: 8px; background: #e3e8e6; border-radius: 999px; overflow: hidden; min-width: 80px; }
  .bar span { display: block; height: 100%; background: var(--brand); }
