/* The same roles and colours as ransom.grayfox.uk, so the two sites read as one family.
   Dark, as the tracker is by default. The tracker's light theme is a switch remembered in the
   browser; this site stores nothing there, so it has no switch. */
:root {
  color-scheme: dark;
  --bg: #121211;
  --surface: #1a1a19;
  --surface-2: #242423;
  --line: #383835;
  --text: #ffffff;
  --text-2: #c3c2b7;
  --muted: #8f8e85;
  --link: #6da7ec;
  --accent: #6da7ec;
  --blue: #6da7ec;
  --red: #e66767;
  --warn-bg: #3a2020;
  --warn-text: #f0a3a3;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.55 ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.wrap {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}
a {
  color: var(--link);
  text-decoration: none;
  text-underline-offset: 2px;
}
a:hover {
  text-decoration: underline;
}
:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}
.skip {
  position: absolute;
  left: -999rem;
}
.skip:focus {
  left: 1rem;
  top: 0.5rem;
  background: var(--surface);
  padding: 0.25rem 0.5rem;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.muted {
  color: var(--muted);
}
.nowrap {
  white-space: nowrap;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}
.brand {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}
.brand:hover {
  text-decoration: none;
}
.brand span {
  font-weight: 400;
  color: var(--text-2);
}
.site-header ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-header nav a {
  color: var(--text-2);
}
.site-header nav a[aria-current] {
  color: var(--text);
  font-weight: 500;
}

main.wrap {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}
h1 {
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}
h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}
h3 {
  font-weight: 600;
  font-size: 1rem;
  margin: 0.15rem 0 0.35rem;
  line-height: 1.35;
}
main > h2 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
p {
  margin: 0 0 0.6rem;
  max-width: 52rem;
  overflow-wrap: anywhere;
}
/* Section titles as on the tracker's cards. */
.section-head h2 {
  font-size: 0.8rem;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.intro p {
  max-width: 44rem;
  color: var(--text-2);
}
main > section {
  margin-top: 2.25rem;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.25rem 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.4rem;
  margin-bottom: 0.6rem;
}

.meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}
.publisher {
  font-weight: 600;
  color: var(--text);
}
.bulletin,
.kev-latest li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.9rem 1rem 0.6rem;
  margin: 0.75rem 0;
}
.bulletin h2 {
  font-size: 1.05rem;
  margin: 0.15rem 0 0.35rem;
  line-height: 1.35;
}
.bulletin p,
.kev-latest p {
  max-width: 46rem;
}
.bluf {
  font-weight: 600;
}
.label {
  font-weight: 600;
}
.origin {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}
.kev-latest {
  list-style: none;
  margin: 0;
  padding: 0;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0.5rem 0;
  padding: 0;
  font-size: 0.85rem;
}
.chips a {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 0.4rem;
  text-decoration: none;
  white-space: nowrap;
}
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 0.3rem;
  margin-left: 0.35rem;
  vertical-align: 1px;
}
.tag.warn {
  background: var(--warn-bg);
  color: var(--warn-text);
  border-color: transparent;
}
td .tag {
  margin-left: 0;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0;
}
.filters a,
.switch button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
  font: inherit;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
}
.filters a,
.switch button {
  background: var(--surface-2);
  border-radius: 6px;
}
.filters a:hover,
.switch button:hover {
  border-color: var(--muted);
  text-decoration: none;
}
.filters a[aria-current],
.switch button[aria-pressed='true'] {
  border-color: var(--accent);
  color: var(--accent);
}
.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  margin: 1rem 0;
}
.controls[hidden] {
  display: none;
}
.switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.controls label {
  flex: 1 1 16rem;
}
.controls input {
  width: 100%;
  font: inherit;
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid var(--line);
  overflow-wrap: break-word;
}
th {
  white-space: nowrap;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
tbody tr:hover {
  background: var(--surface-2);
}
.due {
  display: block;
  font-size: 0.8rem;
  color: var(--blue);
}
.due.overdue {
  color: var(--red);
}
td .due:not(.overdue):is(.tag + .due) {
  color: var(--muted);
}
button.link {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--link);
  cursor: pointer;
}
button.link:hover {
  text-decoration: underline;
}
tr.details td {
  background: var(--surface);
  padding: 0.75rem;
}
tr.details p {
  max-width: 48rem;
}
.refs {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.85rem;
}
.notes {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 48rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--muted);
  padding: 1.25rem 0 2rem;
}
.site-footer p {
  max-width: 48rem;
}

/* Narrow screens: each table row becomes a labelled block. */
@media (max-width: 760px) {
  table thead {
    position: absolute;
    left: -999rem;
  }
  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }
  tr {
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 0;
  }
  td {
    border: 0;
    padding: 0.1rem 0;
    white-space: normal;
  }
  td[data-label]::before {
    content: attr(data-label) ': ';
    font-size: 0.78rem;
    color: var(--muted);
  }
  td[data-label='Details']::before {
    content: none;
  }
  .due {
    display: inline;
    margin-left: 0.4rem;
  }
  tr.details {
    padding: 0;
  }
}

/* Admin */
.admin-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 0.75rem 1rem;
  margin: 0.75rem 0;
}
.admin-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}
.admin-form label .muted {
  font-weight: 400;
}
.admin-form input,
.admin-form select {
  display: block;
  width: 100%;
  margin-top: 0.2rem;
  font: inherit;
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: flex-start;
}
.admin-form .admin-actions {
  grid-column: 1 / -1;
}
.admin-actions button {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
.admin-actions button[type='submit'] {
  border-color: var(--accent);
  color: var(--accent);
}
.error {
  color: var(--red);
  font-weight: 600;
}

/* Overview: bulletins and vulnerabilities side by side on a wide screen. */
@media (min-width: 1000px) {
  .columns {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 0 2rem;
    align-items: start;
  }
}
.columns > section {
  margin-top: 2rem;
}
.bulletin p,
.kev-latest p {
  color: var(--text-2);
}
.bulletin .bluf {
  color: var(--text);
}
.mono,
.chips a,
td.nowrap:first-child a,
.kev-latest .meta a {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
}

/* The wizard frame shared by the AI risk assessment and the information security risk assessment */
.card-heading {
  font-size: 1rem;
  margin: 0.15rem 0 0.35rem;
}
.btn {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  font: inherit;
  cursor: pointer;
}
.btn:hover {
  border-color: var(--muted);
}
.btn.primary {
  border-color: var(--accent);
  color: var(--accent);
}
.aira-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem 2rem;
}
.aira-lead {
  color: var(--text-2);
  max-width: 46rem;
}
.aira-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.aira-steps ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}
.aira-steps button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}
.aira-steps button:hover {
  border-color: var(--muted);
}
.aira-steps button[aria-current] {
  border-color: var(--accent);
  color: var(--accent);
}
.aira-steps button.inactive {
  color: var(--muted);
  border-style: dashed;
}
.aira-step-number {
  font-weight: 600;
}
.aira-body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.25rem 1.25rem;
}
.aira-body h2 {
  font-size: 1.25rem;
  margin: 0.6rem 0 0.2rem;
}
.aira-body h2:focus {
  outline: none;
}
.aira-body h3 {
  margin-top: 1.5rem;
}
.aira-count {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}
.aira-body progress {
  display: block;
  width: 100%;
  height: 0.4rem;
  accent-color: var(--accent);
}
.aira-body fieldset {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.1rem 0 0;
  padding: 0.8rem 0 0;
  min-width: 0;
}
.aira-body legend {
  font-weight: 600;
  padding: 0 0.5rem 0 0;
  max-width: 100%;
}
.aira-help {
  color: var(--text-2);
  font-size: 0.92rem;
  max-width: 52rem;
  margin: 0.2rem 0 0.5rem;
}
.aira-check {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  align-items: start;
  padding: 0.3rem 0;
  max-width: 56rem;
}
.aira-check input {
  margin: 0.25rem 0 0;
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
}
.aira-check .aira-help {
  grid-column: 2;
}
.aira-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.75rem 1rem;
  margin: 0.75rem 0;
}
.aira-field {
  min-width: 0;
}
.aira-field.wide {
  grid-column: 1 / -1;
}
.aira-field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
}
.aira-field input,
.aira-field select,
.aira-field textarea {
  display: block;
  width: 100%;
  margin-top: 0.2rem;
  font: inherit;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
}
.aira-field textarea {
  resize: vertical;
}
.aira-row .aira-grid {
  grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr);
}
.aira-result {
  border: 1px solid var(--line);
  border-left: 4px solid var(--muted);
  border-radius: 6px;
  background: var(--surface-2);
  padding: 0.75rem 1rem 0.4rem;
  margin: 1.25rem 0 0.5rem;
}
.aira-result.minimal {
  border-left-color: #3fb37a;
}
.aira-result.limited {
  border-left-color: #d9a020;
}
.aira-result.high,
.aira-result.unacceptable {
  border-left-color: var(--red);
}
.aira-result-title {
  font-size: 1rem;
}
.aira-result ul {
  margin: 0 0 0.5rem;
  padding-left: 1.2rem;
  color: var(--text-2);
}
.aira-warning {
  color: var(--warn-text);
  background: var(--warn-bg);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  margin-top: 0.5rem;
}
.aira-inactive {
  color: var(--text-2);
  margin-top: 0.75rem;
}
.aira-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}
.aira-disclaimer {
  margin-top: 1rem;
  font-size: 0.86rem;
}
.aira-export {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1.5rem;
  margin: 0.75rem 0;
}
.aira-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
/* The preview is the document: dark text on paper, whatever the site's theme. */
.aira-preview {
  background: #fcfcfb;
  color: #0b0b0b;
  border-radius: 4px;
  padding: 1.5rem;
  font-size: 0.92rem;
}
.aira-preview .muted {
  color: #52514e;
  font-size: 0.85rem;
}
.aira-preview-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}
.aira-preview-subtitle {
  font-size: 1.1rem;
  color: #52514e;
}
.aira-preview h4 {
  font-size: 1.1rem;
  margin: 1.4rem 0 0.2rem;
}
.aira-preview h5 {
  font-size: 0.95rem;
  margin: 0.8rem 0 0.2rem;
}
.aira-preview .aira-warning {
  color: #a32322;
  background: #f9e3e2;
}
.aira-table {
  margin: 0.4rem 0 0.9rem;
}
.aira-table th,
.aira-table td {
  border: 1px solid #b9b8b0;
  padding: 0.35rem 0.5rem;
  color: #0b0b0b;
  white-space: normal;
}
.aira-table th {
  background: #e7e6e1;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.85rem;
  font-weight: 600;
}
.aira-table tbody tr:hover {
  background: none;
}
@media (max-width: 760px) {
  .aira-row .aira-grid {
    grid-template-columns: 1fr;
  }
  .aira-preview {
    padding: 0.75rem;
  }
  .aira-table td[data-label]::before {
    color: #52514e;
    font-weight: 600;
  }
  .aira-table tr {
    border-bottom: 1px solid #b9b8b0;
  }
  .aira-table td {
    border: 0;
  }
}

/* GRC: the information security risk assessment. It shares the wizard's frame above. */
.isra-intro {
  max-width: 52rem;
  margin: 0.5rem 0;
}
.isra-fold {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  padding: 0.5rem 0.85rem;
  margin: 0.6rem 0;
}
.isra-fold > summary {
  cursor: pointer;
  font-weight: 600;
}
.isra-fold[open] > summary {
  margin-bottom: 0.4rem;
}
.isra-tips,
.isra-scenario {
  margin: 0.3rem 0;
  padding-left: 1.2rem;
  color: var(--text-2);
  max-width: 54rem;
}
.isra-options dt {
  font-weight: 600;
  margin-top: 0.4rem;
}
.isra-options dd {
  margin: 0;
  color: var(--text-2);
}
.isra-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
}
.isra-inline legend {
  float: left;
  width: 100%;
}
.isra-measure {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1.4fr) minmax(9rem, 1fr) auto;
  gap: 0.5rem 0.75rem;
  align-items: end;
  margin: 0.5rem 0;
}
@media (max-width: 760px) {
  .isra-measure {
    grid-template-columns: 1fr 1fr;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--line);
  }
  .isra-measure > :first-child {
    grid-column: 1 / -1;
  }
  .isra-measure > .btn {
    justify-self: start;
  }
}
.isra-above {
  color: var(--warn-text);
  font-size: 0.92rem;
  margin: 0.2rem 0 0.5rem;
}
.isra-scales {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 0.5rem 1.5rem;
}
.isra-scale caption,
.isra-matrix caption {
  text-align: left;
  font-weight: 600;
  padding-bottom: 0.3rem;
}
.isra-matrix caption {
  font-size: 1rem;
  padding-top: 0.75rem;
}
.isra-scale th,
.isra-scale td {
  white-space: normal;
  vertical-align: top;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
}
.isra-scale th {
  width: 9rem;
  color: var(--text);
}
.isra-thresholds {
  grid-template-columns: repeat(3, minmax(0, 10rem));
}
/* The four risk levels, lowest first: on the dark page, and on paper in the preview. */
.lvl-0 {
  --lvl: var(--surface-2);
  --lvl-text: var(--text-2);
}
.lvl-1 {
  --lvl: #1f5a3c;
  --lvl-text: #ffffff;
}
.lvl-2 {
  --lvl: #6b5510;
  --lvl-text: #ffffff;
}
.lvl-3 {
  --lvl: #8a4612;
  --lvl-text: #ffffff;
}
.lvl-4 {
  --lvl: #8c2424;
  --lvl-text: #ffffff;
}
.aira-preview .lvl-1 {
  --lvl: #cfe8cf;
}
.aira-preview .lvl-2 {
  --lvl: #fff1b8;
}
.aira-preview .lvl-3 {
  --lvl: #ffd3a1;
}
.aira-preview .lvl-4 {
  --lvl: #f5b5b5;
}
.aira-preview [class^='lvl-'] {
  --lvl-text: #0b0b0b;
}
.isra-level {
  display: inline-block;
  background: var(--lvl);
  color: var(--lvl-text);
  border-radius: 4px;
  padding: 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}
.isra-matrix-wrap {
  margin: 0.75rem 0;
  max-width: 46rem;
}
.isra-matrix {
  table-layout: fixed;
  width: 100%;
  border-collapse: separate;
  border-spacing: 3px;
}
.isra-matrix th,
.isra-matrix td {
  border: 0;
  border-radius: 4px;
  padding: 0.3rem 0.35rem;
  white-space: normal;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.82rem;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.isra-matrix th {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
}
.isra-matrix tbody th {
  width: 24%;
  text-align: left;
  vertical-align: middle;
}
.isra-matrix tbody td {
  background: var(--lvl);
  color: var(--lvl-text);
  height: 3.6rem;
}
.isra-matrix tbody tr:hover,
.isra-scale tbody tr:hover {
  background: none;
}
.isra-corner {
  color: var(--muted);
  font-size: 0.75rem;
}
.isra-product {
  float: right;
  font-size: 0.72rem;
  opacity: 0.75;
  margin-left: 0.25rem;
}
.isra-chip {
  display: inline-block;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 3px;
  padding: 0 0.3rem;
  margin: 0 0.2rem 0.2rem 0;
  font-weight: 600;
  font-size: 0.78rem;
  white-space: nowrap;
}
.isra-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  list-style: none;
  margin: 0.3rem 0 0;
  padding: 0;
}
.isra-legend li {
  background: var(--lvl);
  color: var(--lvl-text);
  border-radius: 4px;
  padding: 0.1rem 0.5rem;
  font-size: 0.82rem;
}
.aira-preview .isra-matrix th {
  background: #e7e6e1;
  color: #0b0b0b;
}
.aira-preview .isra-chip {
  background: rgba(255, 255, 255, 0.7);
}
.aira-preview .isra-corner {
  color: #52514e;
}
@media (max-width: 760px) {
  /* These two stay tables on a phone: a matrix is only a matrix as a grid. */
  .isra-matrix,
  .isra-scale {
    display: table;
  }
  .isra-matrix tbody,
  .isra-matrix tfoot,
  .isra-scale tbody {
    display: table-row-group;
  }
  .isra-matrix tr,
  .isra-scale tr {
    display: table-row;
    width: auto;
    padding: 0;
    border: 0;
  }
  .isra-matrix th,
  .isra-matrix td,
  .isra-scale th,
  .isra-scale td {
    display: table-cell;
    width: auto;
  }
  .isra-scale th {
    width: 6.5rem;
  }
  .isra-matrix tbody th {
    width: 2.2rem;
    text-align: center;
  }
  .isra-matrix .isra-name,
  .isra-matrix .isra-corner {
    font-size: 0;
  }
  .isra-matrix th,
  .isra-matrix td {
    padding: 0.25rem 0.2rem;
  }
  .isra-chip {
    font-size: 0.7rem;
    padding: 0 0.15rem;
  }
  .isra-thresholds {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* GRC: the Statement of Applicability. It shares the wizard's frame and the folds above. */
.soa-control {
  position: relative;
}
.soa-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--text-2);
}
.soa-label {
  font-weight: 600;
  font-size: 0.92rem;
  margin: 0.4rem 0 0.1rem;
}
.soa-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.4rem 0;
}
.soa-choice span {
  position: relative;
}
.soa-choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.soa-choice label {
  display: inline-block;
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 6px;
  padding: 0.25rem 0.8rem;
  cursor: pointer;
}
.soa-choice input:checked + label {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.soa-choice input:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.soa-reasons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1.25rem;
}
.soa-reasons .soa-label {
  margin: 0;
}
.soa-hint {
  border-left: 3px solid #d9a020;
  background: var(--surface-2);
  border-radius: 0 6px 6px 0;
  padding: 0.5rem 0.75rem;
  margin: 0.5rem 0;
  max-width: 52rem;
}
.soa-hint p {
  margin: 0 0 0.35rem;
}
.soa-badge {
  display: inline-block;
  border-radius: 4px;
  padding: 0 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  background: var(--surface-2);
  color: var(--text-2);
}
.soa-badge.soa-implemented {
  background: #1f5a3c;
  color: #ffffff;
}
.soa-badge.soa-partial,
.soa-badge.soa-planned {
  background: #6b5510;
  color: #ffffff;
}
.soa-badge.soa-not {
  background: #8a4612;
  color: #ffffff;
}
.soa-badge.soa-yes {
  background: #2b4a70;
  color: #ffffff;
}
.soa-badge.soa-no {
  background: #4a4a47;
  color: #ffffff;
}
.soa-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin: 0.75rem 0 0.25rem;
}
.soa-progress p {
  margin: 0.2rem 0 0.6rem;
}
.soa-question {
  padding: 0.3rem 0 0.5rem;
  border-bottom: 1px solid var(--line);
  max-width: 56rem;
}
.soa-question:last-child {
  border-bottom: 0;
}
.soa-overview {
  max-width: 46rem;
  margin: 0.5rem 0;
}
.soa-overview th,
.soa-overview td {
  text-transform: none;
  letter-spacing: 0;
  white-space: normal;
}
.soa-overview tbody th {
  text-align: left;
  color: var(--text);
}
.soa-overview tbody tr:last-child {
  font-weight: 600;
}
@media (max-width: 760px) {
  .soa-overview tbody th {
    display: block;
    padding-top: 0.5rem;
  }
}

/* GRC: the NIS 2 self-assessment. It shares the frame, the folds and the statement's choices. */
/* The limits of the assessment: always in view, stated plainly, without alarm colours. */
.nis2-limits {
  border: 1px solid var(--line);
  border-left: 3px solid var(--text-2);
  border-radius: 0 6px 6px 0;
  background: var(--surface);
  padding: 0.6rem 0.9rem;
  margin: 0.75rem 0 0.25rem;
  max-width: 62rem;
}
.nis2-limits-title {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
  margin: 0 0 0.3rem;
}
.nis2-limits ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-2);
  font-size: 0.92rem;
}
.nis2-stacked {
  flex-direction: column;
  align-items: flex-start;
}
.nis2-stacked label {
  text-align: left;
}
.nis2-ref {
  font-size: 0.82rem;
  font-weight: 400;
  margin: 0 0 0.3rem;
}
.nis2-areas {
  max-width: 52rem;
  margin: 0.5rem 0;
}
.nis2-areas th,
.nis2-areas td {
  text-transform: none;
  letter-spacing: 0;
  white-space: normal;
}
.nis2-areas tbody th {
  text-align: left;
  color: var(--text);
  font-weight: 400;
}
.nis2-areas progress {
  width: 7rem;
  height: 0.5rem;
  vertical-align: middle;
  accent-color: var(--accent);
}
.nis2-level-1 progress {
  accent-color: var(--red);
}
.nis2-level-2 progress {
  accent-color: #d9a020;
}
.nis2-level-3 progress {
  accent-color: #3fb37a;
}
.aira-result progress {
  display: block;
  width: 100%;
  max-width: 30rem;
  height: 0.5rem;
  margin: 0.2rem 0 0.6rem;
  accent-color: var(--accent);
}
.nis2-plan {
  grid-template-columns: minmax(0, 3fr) minmax(0, 1.4fr) minmax(9rem, 1fr);
}
@media (max-width: 760px) {
  .nis2-areas tbody th {
    display: block;
    padding-top: 0.5rem;
    font-weight: 600;
  }
  .nis2-plan {
    grid-template-columns: 1fr 1fr;
  }
}

/* GRC: the board report. It shares the frame, the folds, the choices and the level colours. */
.board-number {
  font-variant-numeric: tabular-nums;
}
.board-echo {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
}
.board-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem 0.75rem;
  align-items: end;
  margin: 0.5rem 0;
  max-width: 56rem;
}
.board-three,
.board-four {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem 0.75rem;
  align-items: end;
  max-width: 46rem;
  margin: 0.3rem 0 0.6rem;
}
.board-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.board-figures {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 0.2rem 1rem;
  margin: 0 0 0.5rem;
  max-width: 46rem;
}
.board-figures dt {
  color: var(--text-2);
}
.board-figures dd {
  margin: 0;
}
.board-chart {
  margin: 1rem 0;
  max-width: 52rem;
}
.board-chart figcaption {
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.board-bar {
  margin: 0 0 0.6rem;
}
.board-bar p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.6rem;
  align-items: baseline;
  margin: 0 0 0.15rem;
  font-size: 0.92rem;
}
.board-bar p span:first-child {
  flex: 1 1 14rem;
}
.board-bar svg {
  display: block;
  width: 100%;
  height: 1rem;
  background: var(--surface-2);
  border-radius: 3px;
}
.board-fill {
  fill: var(--lvl);
}
.board-mark {
  stroke: currentColor;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
/* The thresholds are told apart by their line, the significant amount by its colour. */
.board-mark-limit {
  stroke-dasharray: 2 3;
}
.board-mark-appetite {
  stroke-dasharray: 6 3;
}
.board-mark-target {
  stroke: var(--accent);
}
.aira-preview .board-mark-target {
  stroke: #1d4f91;
}
.board-mark-significant {
  stroke: var(--accent);
  stroke-dasharray: 1 2;
}
.board-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.25rem;
  list-style: none;
  margin: 0.5rem 0 0.25rem;
  padding: 0;
  font-size: 0.86rem;
}
.board-legend svg {
  width: 0.8rem;
  height: 1rem;
  vertical-align: middle;
}
.board-status {
  display: inline-block;
  border-radius: 4px;
  padding: 0 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--text-2);
}
.board-green {
  background: #1f5a3c;
  color: #ffffff;
}
.board-amber {
  background: #6b5510;
  color: #ffffff;
}
.board-red {
  background: #8c2424;
  color: #ffffff;
}
.aira-preview .lvl-0 {
  --lvl: #e7e6e1;
}
.aira-preview .board-bar svg {
  background: #efeeea;
}
@media (max-width: 760px) {
  .board-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .board-figures {
    grid-template-columns: 1fr;
  }
  .board-figures dd {
    margin-bottom: 0.3rem;
  }
}

/* GRC: the NIS 2 incident report. The warning about sensitivity is the first thing on the page. */
.nir-sensitive {
  border: 1px solid #6b5510;
  border-left: 4px solid #d9a020;
  border-radius: 0 6px 6px 0;
  background: #26210f;
  padding: 0.6rem 0.9rem;
  margin: 0.75rem 0 0.5rem;
  max-width: 62rem;
}
.nir-sensitive .nis2-limits-title {
  color: #f0c95c;
}
.nir-sensitive ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.92rem;
}
.nir-deadlines {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 0.5rem 0.9rem;
  margin: 0.5rem 0;
  max-width: 62rem;
}
.nir-deadlines ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nir-deadlines li {
  padding: 0.1rem 0;
}
.nir-deadlines p {
  margin: 0;
}
.nir-overdue {
  color: var(--warn-text);
}
.nir-sentLate {
  color: #f0c95c;
}
.nir-sent {
  color: #7fd1a3;
}
.nir-entry {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(0, 3fr) auto;
  gap: 0.5rem 0.75rem;
  align-items: end;
  margin: 0.5rem 0;
}
@media (max-width: 760px) {
  .nir-entry {
    grid-template-columns: 1fr;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--line);
  }
  .nir-entry > .btn {
    justify-self: start;
  }
}

/* GRC: supplier management. One supplier at a time is chosen at the top of the steps about it. */
.supplier-pick {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.5rem 0.6rem;
  margin: 0.75rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.supplier-pick .aira-field {
  flex: 1 1 18rem;
  max-width: 34rem;
}
.supplier-standing {
  margin: 0 0 0.3rem 0.4rem;
}

.section-head.spaced {
  margin-top: 1.75rem;
}

/* Overview: news in two columns on a wide screen. */
@media (min-width: 1000px) {
  .news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1.25rem;
    align-items: start;
  }
}

/* ---- business impact analysis ---- */
.bia-resource {
  border-top: 1px solid var(--line);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
}
.bia-resource-head {
  margin: 0 0 0.5rem;
}

/* ---- threat model ---- */
.tm-diagram-wrap {
  margin: 1rem 0;
  overflow-x: auto;
}
.tm-diagram {
  display: block;
  max-width: 100%;
  height: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.tm-zone {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.2;
  stroke-dasharray: 6 4;
}
.tm-zone-label {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.tm-node {
  fill: var(--surface-2);
  stroke: var(--text-2);
  stroke-width: 1.2;
}
.tm-node.tm-store {
  stroke: none;
}
.tm-store-line {
  stroke: var(--text-2);
  stroke-width: 2;
}
.tm-node-label {
  fill: var(--text);
  font-size: 11px;
}
.tm-edge {
  fill: none;
  stroke: var(--text-2);
  stroke-width: 1.3;
}
.tm-edge.tm-cross {
  stroke: var(--red);
  stroke-width: 1.6;
  stroke-dasharray: 5 3;
}
.tm-arrow {
  fill: var(--text-2);
}
.tm-arrow.tm-cross {
  fill: var(--red);
}
.tm-edge-patch {
  fill: var(--bg);
  stroke: var(--line);
  stroke-width: 0.8;
}
.tm-edge-label {
  fill: var(--text);
  font-size: 10px;
  font-weight: 600;
}
.tm-edge-label.tm-cross {
  fill: var(--red);
}
.aira-preview .tm-diagram {
  background: #ffffff;
  border-color: #c9c8c0;
}
.aira-preview .tm-node {
  fill: #f4f4f0;
  stroke: #333331;
}
.aira-preview .tm-node.tm-store {
  stroke: none;
}
.aira-preview .tm-store-line,
.aira-preview .tm-edge:not(.tm-cross) {
  stroke: #333331;
}
.aira-preview .tm-arrow:not(.tm-cross) {
  fill: #333331;
}
.aira-preview .tm-node-label,
.aira-preview .tm-edge-label:not(.tm-cross) {
  fill: #0a0a0a;
}
.aira-preview .tm-zone {
  stroke: #73726c;
}
.aira-preview .tm-zone-label {
  fill: #52514e;
}
.aira-preview .tm-edge-patch {
  fill: #ffffff;
  stroke: #c9c8c0;
}
.tm-ask {
  margin: 0.25rem 0 0.5rem;
  color: var(--text);
  font-weight: 600;
}
.tm-zone-row {
  display: flex;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 0.5rem;
}
.tm-zone-row .aira-field {
  flex: 1;
}
.tm-matrix td {
  text-align: center;
}
.tm-matrix .tm-na {
  color: var(--muted);
}
.tm-matrix .tm-open {
  color: #d9a020;
}
.tm-matrix .tm-level-3,
.tm-matrix .tm-level-0 {
  color: var(--warn-text);
  font-weight: 600;
}
.tm-matrix .tm-level-2 {
  color: #e0b050;
}
@media (max-width: 760px) {
  .tm-matrix td {
    text-align: left;
  }
}

/* A fieldset is otherwise as wide as its widest content wants to be, which pushes a phone page sideways. */
.aira-body fieldset {
  min-width: 0;
}
