/* Leavory — Articles: the hub and the article page. Builds on
   css/styles.css and css/pages.css. */

/* ---------- Shared bits ---------- */
.acat {
  color: var(--text);
  font-weight: 500;
}
.acard__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  font: 500 11.5px/1.3 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.acard__meta .acat::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  background-color: var(--red);
  vertical-align: 1px;
}
/* An author without a photo: their initials. */
.avatar {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    linear-gradient(rgb(var(--white-rgb) / 0.16), rgb(var(--white-rgb) / 0.06)),
    var(--ink);
  box-shadow: inset 0 0 0 1px rgb(var(--white-rgb) / 0.14);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.avatar--lg {
  width: 40px;
  height: 40px;
  font-size: 14px;
}
.avatar--xl {
  width: 72px;
  height: 72px;
  font-size: 22px;
}
/* An author photo takes the same circle. */
img.avatar {
  object-fit: cover;
}
.byline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
}
.byline > span:not(.avatar) {
  display: grid;
  gap: 2px;
}
.byline__name {
  font-weight: 600;
}
.byline time,
.byline__role {
  font-size: 12.5px;
  color: var(--text-3);
}
.badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 5px;
  background-color: rgb(var(--red-rgb) / 0.16);
  box-shadow: inset 0 0 0 1px rgb(var(--red-rgb) / 0.5);
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  vertical-align: 1px;
}

/* ---------- Hub ---------- */
/* No page banner: the list starts right under the fixed header. */
.ahub {
  padding: calc(68px + clamp(32px, 4vw, 56px)) 0 var(--section);
  border-bottom: 1px solid var(--line);
}
/* The newest article, large. */
.afeat {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px clamp(32px, 4vw, 56px);
  align-items: center;
  margin-top: clamp(32px, 4vw, 48px);
  padding-bottom: clamp(40px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}
.afeat[hidden] {
  display: none;
}
.afeat__media {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.afeat__media img,
.acard__cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.afeat:hover .afeat__media img,
.acard:hover .acard__cover {
  transform: scale(1.025);
}
.afeat__new {
  padding: 3px 7px;
  border-radius: 5px;
  background-color: var(--red);
  color: var(--white);
}
.afeat__title {
  margin-top: 18px;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 540;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.afeat__excerpt {
  margin-top: 16px;
  font-size: 17px;
  color: var(--text-2);
}
.afeat .byline {
  margin-top: 28px;
}
.afeat .byline time {
  margin-left: auto;
}

.ahub__status {
  margin: 0;
  font: 500 11.5px/1.3 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.ahub__status:empty {
  display: none;
}

/* The grid of cards: three across, a card per slot. */
.agrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 28px;
  margin-top: clamp(32px, 4vw, 48px);
}
.agrid > li[hidden] {
  display: none;
}
/* With no category chosen, the featured article is not repeated below. */
.agrid > li:has(> [data-featured]):not(.is-shown) {
  display: none;
}
.acard {
  display: grid;
  align-content: start;
}
.acard__link {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.acard__body {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.acard__title {
  font-size: 20px;
  font-weight: 540;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.acard__title a,
.afeat__title a {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size 0.4s var(--ease);
}
.acard:hover .acard__title a,
.afeat:hover .afeat__title a,
.acard__title a:focus-visible,
.afeat__title a:focus-visible {
  background-size: 100% 1px;
}
.acard__excerpt {
  font-size: 15px;
  color: var(--text-2);
}
.acard .byline {
  margin-top: 4px;
}
.aempty {
  margin-top: 48px;
  font-size: 17px;
  color: var(--text-2);
}
.aempty a {
  margin-left: 6px;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Hub: head, search, topics, latest list ---------- */
.ahub__head {
  max-width: 54rem;
}
.ahub__title {
  margin-top: 18px;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 540;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.ahub__title span {
  color: var(--text-3);
}
.asearch {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: clamp(28px, 3.5vw, 40px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: linear-gradient(
    135deg,
    rgb(var(--white-rgb) / 0.07),
    rgb(var(--white-rgb) / 0.02)
  );
  box-shadow: inset 0 1px 0 rgb(var(--white-rgb) / 0.1);
  transition: border-color 0.2s var(--ease);
}
.asearch:focus-within {
  border-color: rgb(var(--white-rgb) / 0.4);
}
.asearch__icon {
  position: absolute;
  left: 20px;
  color: var(--text-3);
  pointer-events: none;
}
.asearch__input {
  flex: 1;
  min-width: 0;
  height: 64px;
  padding: 0 56px 0 54px;
  border: 0;
  background: none;
  font: 400 18px/1 var(--sans);
  color: var(--text);
  outline: none;
}
.asearch__input::placeholder {
  color: var(--text-3);
}
.asearch__input::-webkit-search-cancel-button {
  filter: invert(1) opacity(0.5);
}
.asearch__key {
  position: absolute;
  right: 18px;
  padding: 3px 8px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  font: 500 12px/1 var(--mono);
  color: var(--text-3);
}
.asearch:focus-within .asearch__key {
  display: none;
}
.asec__title {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 540;
  letter-spacing: -0.03em;
}
.atopics {
  margin-top: clamp(40px, 4vw, 56px);
}
.atopics__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.atopic {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  column-gap: 12px;
  align-items: center;
  height: 100%;
  padding: 20px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: linear-gradient(
    180deg,
    rgb(var(--white-rgb) / 0.035),
    rgb(var(--white-rgb) / 0.01)
  );
  color: var(--text);
  text-decoration: none;
  transition:
    border-color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}
.atopic:hover {
  border-color: rgb(var(--white-rgb) / 0.32);
}
.atopic[aria-current="true"] {
  border-color: var(--red);
  background-color: rgb(var(--red-rgb) / 0.1);
}
.atopic__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgb(var(--red-rgb) / 0.35);
  border-radius: var(--radius);
  background: rgb(var(--red-rgb) / 0.1);
  color: var(--red-type);
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}
.atopic:hover .atopic__icon {
  border-color: rgb(var(--red-rgb) / 0.6);
  background-color: rgb(var(--red-rgb) / 0.18);
}
.atopic[aria-current="true"] .atopic__icon {
  border-color: var(--red);
  background-color: var(--red);
  color: var(--white);
}
.atopic__name {
  font-size: 17px;
  font-weight: 540;
  letter-spacing: -0.02em;
}
.atopic__desc,
.atopic__count {
  grid-column: 1 / -1;
}
.atopic__desc {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-2);
}
.atopic__count {
  align-self: end;
  padding-top: 16px;
  font: 500 11.5px/1.3 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.atopic[aria-current="true"] .atopic__count {
  color: var(--text);
}

.alatest {
  /* Only the list gets a narrower reading column, centred in the page. */
  max-width: 1120px;
  margin: clamp(56px, 7vw, 88px) auto 0;
}
.ahub.is-searching .atopics {
  display: none;
}
.ahub.is-searching .alatest {
  margin-top: 32px;
}
.asec__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-2);
}
.asec__clear {
  margin-left: auto;
  font-size: 14px;
  color: var(--text-2);
}
.asec__clear[hidden] {
  display: none;
}
.alatest .afeat {
  margin-top: 32px;
}
.alist > li {
  border-bottom: 1px solid var(--line);
}
.alist > li[hidden] {
  display: none;
}
/* The newest article leads as the feature; in the list it shows only inside a search or a topic. */
.alist > li[data-featured]:not(.is-shown) {
  display: none;
}
.arow {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 240px;
  gap: 28px;
  align-items: start;
  padding: 28px 0;
}
.arow__date {
  padding-top: 3px;
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.04em;
  color: var(--text-3);
}
.arow__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.atag {
  padding: 3px 8px;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  font: 500 11px/1.3 var(--mono);
  letter-spacing: 0.04em;
  color: var(--text-2);
}
.arow__time {
  font: 500 11px/1.3 var(--mono);
  letter-spacing: 0.04em;
  color: var(--text-3);
}
.arow__title {
  margin-top: 12px;
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 540;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.arow__title a {
  color: inherit;
  text-decoration: none;
}
.arow:hover .arow__title a,
.arow__title a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.arow__excerpt {
  margin-top: 8px;
  max-width: 44rem;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
  text-wrap: pretty;
}
.arow__media {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.arow__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.arow:hover .arow__media img {
  transform: scale(1.03);
}
.amore {
  margin-top: 32px;
  text-align: center;
}
.amore button[hidden] {
  display: none;
}
@media (max-width: 1100px) {
  .atopics__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .arow {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .arow__media {
    order: -1;
  }
  .asearch__input {
    height: 56px;
    font-size: 16px;
  }
}
@media (max-width: 480px) {
  .atopics__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Article ---------- */
.post {
  padding-top: 68px;
}
/* The header, the cover and the reading layout share one column, so the
   title, the picture and the text all start on the same edge. */
.post__head {
  max-width: calc(220px + 68ch + clamp(40px, 6vw, 96px));
  padding-top: clamp(48px, 6vw, 88px);
}
.crumbs {
  display: flex;
  gap: 10px;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.crumbs a {
  color: var(--text-2);
  transition: color 0.2s;
}
.crumbs a:hover {
  color: var(--text);
}
.post__title {
  margin-top: 24px;
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 540;
  line-height: 1.03;
  letter-spacing: -0.04em;
  text-wrap: balance;
  max-width: 18em;
}
.post__excerpt {
  max-width: 44rem;
  margin-top: 22px;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.45;
  color: var(--text-2);
}
.post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.post__facts {
  display: flex;
  gap: 16px;
  font: 400 12.5px/1 var(--mono);
  color: var(--text-3);
}
/* The cover spans the reading layout below it: contents list and text. */
.post__cover {
  max-width: calc(220px + 68ch + clamp(40px, 6vw, 96px));
  margin-top: clamp(40px, 5vw, 64px);
}
.post__cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.post__cover figcaption,
.prose figcaption {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--text-3);
}

.post__layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 68ch);
  justify-content: center;
  gap: clamp(40px, 6vw, 96px);
  margin-top: clamp(48px, 6vw, 80px);
}
.post__aside {
  position: relative;
}
.post__sticky {
  position: sticky;
  top: 108px;
}
.toc .mono,
.share .mono {
  font-size: 11px;
}
.toc ol {
  display: grid;
  gap: 2px;
  margin-top: 12px;
  border-left: 1px solid var(--line-2);
}
.toc a {
  display: block;
  margin-left: -1px;
  padding: 6px 0 6px 14px;
  border-left: 1px solid transparent;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--text-3);
  transition:
    color 0.2s,
    border-color 0.2s;
}
.toc a:hover {
  color: var(--text);
}
.toc a.is-on {
  border-left-color: var(--red);
  color: var(--text);
}
.toc:not(:has(li)) {
  display: none;
}
/* pages.css has a .share of its own (the short bar in product tables); the
   article's share block takes none of its size or fill. */
.post .share {
  width: auto;
  min-width: 0;
  height: auto;
  margin-top: 32px;
  border-radius: 0;
  background: none;
}
.share__row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.share__btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: none;
  color: var(--text-2);
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.share__btn:hover {
  border-color: rgb(var(--white-rgb) / 0.3);
  color: var(--text);
}
.share__done {
  display: none;
}
.share__copy.is-copied {
  border-color: transparent;
  background-color: var(--white);
  color: var(--ink);
}
.share__copy.is-copied .share__icon {
  display: none;
}
.share__copy.is-copied .share__done {
  display: block;
}
.share__x {
  font-size: 15px;
  font-weight: 600;
}
.share__status {
  min-height: 1.4em;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--text-2);
}

/* Reading type: everything the editor can produce. */
.prose {
  font-size: 18px;
  line-height: 1.7;
  color: rgb(var(--white-rgb) / 0.82);
}
.prose > * + * {
  margin-top: 1.1em;
}
.prose h2 {
  margin-top: 2.2em;
  font-size: clamp(26px, 2.4vw, 32px);
  font-weight: 540;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  scroll-margin-top: 108px;
}
.prose h3 {
  margin-top: 1.8em;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text);
}
.prose h2 + *,
.prose h3 + * {
  margin-top: 0.6em;
}
.prose a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgb(var(--red-rgb) / 0.9);
  text-underline-offset: 3px;
}
.prose strong {
  color: var(--text);
  font-weight: 600;
}
.prose ul,
.prose ol {
  display: grid;
  gap: 0.5em;
  padding-left: 1.4em;
}
.prose ul {
  list-style: none;
  padding-left: 1.2em;
}
.prose ul li {
  position: relative;
}
.prose ul li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: -1.1em;
  width: 6px;
  height: 6px;
  background-color: var(--red);
}
.prose ol {
  list-style: decimal;
}
.prose ol li::marker {
  font: 500 0.85em var(--mono);
  color: var(--text-3);
}
.prose blockquote {
  margin: 1.8em 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--red);
}
.prose blockquote p {
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 540;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text);
}
.prose pre {
  margin-block: 1.6em;
  padding: 18px 20px;
  overflow-x: auto;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background-color: rgb(var(--white-rgb) / 0.03);
  font: 400 13.5px/1.65 var(--mono);
  color: var(--text-2);
}
.prose pre code {
  padding: 0;
  background: none;
  font: inherit;
}
.prose figure {
  margin-block: 2em;
}
.prose figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.prose__table {
  overflow-x: auto;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
}
.prose th {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-2);
  font: 500 11px/1.3 var(--mono);
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  color: var(--text-3);
}
.prose td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.prose tr:last-child td {
  border-bottom: 0;
}
/* The first column is the row's label: short ones stay on one line by
   themselves; long ones wrap instead of pushing the table off the page. */
.prose td:first-child {
  min-width: 7rem;
  max-width: 45%;
  color: var(--text);
  font-weight: 600;
  text-wrap: balance;
}
.callout {
  margin-block: 1.8em;
  padding: 18px 22px;
  border-radius: var(--radius);
  background-color: rgb(var(--red-rgb) / 0.1);
  box-shadow: inset 2px 0 0 var(--red);
  font-size: 16.5px;
}

/* Author, after the article. */
.post__foot {
  margin-top: clamp(56px, 7vw, 96px);
}
.author {
  display: flex;
  gap: 24px;
  max-width: calc(220px + 68ch + clamp(40px, 6vw, 96px));
  margin-inline: auto;
  padding: 32px 0;
  border-block: 1px solid var(--line-2);
}
.author__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 20px;
  font-weight: 600;
}
.author__role {
  margin-top: 2px;
  font-size: 14px;
  color: var(--text-3);
}
.author__bio {
  max-width: 40rem;
  margin-top: 12px;
  font-size: 15.5px;
  color: var(--text-2);
}
.author .more {
  margin-top: 14px;
}

.related {
  padding: var(--section) 0;
  border-bottom: 1px solid var(--line);
}
.related__title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 540;
  letter-spacing: -0.035em;
}

/* ---------- Breakpoints ---------- */
@media (max-width: 1100px) {
  .agrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .post__layout {
    grid-template-columns: minmax(0, 68ch);
  }
  /* The contents list folds away; sharing moves under the title. */
  .post__aside {
    order: 2;
  }
  .toc {
    display: none;
  }
  .post__sticky {
    position: static;
  }
  .share {
    margin-top: 0;
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 860px) {
  .afeat {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .agrid {
    grid-template-columns: minmax(0, 1fr);
  }
  .prose {
    font-size: 17px;
  }
  .author {
    flex-direction: column;
    gap: 16px;
  }
}

/* Charts in an article (```chart blocks, scripts/articles/chart.mjs). Roles
   follow the brand: critical is the red, the rest white at falling opacity;
   medium is dashed as a line so the series read apart without colour. */
.achart {
  --c-critical: var(--red);
  --c-high: rgb(var(--white-rgb) / 0.85);
  --c-medium: rgb(var(--white-rgb) / 0.55);
  --c-low: rgb(var(--white-rgb) / 0.3);
  margin-top: 1.6em;
  padding: 20px 20px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: rgb(var(--white-rgb) / 0.02);
}
.prose .achart__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}
.achart__unit,
.achart__source {
  font: 400 12px/1.4 var(--mono);
  color: var(--text-3);
}
.prose .achart__source {
  margin-top: 10px;
}
.prose .achart__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text-2);
}
.achart__legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.achart__key {
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--c-high);
}
.achart__key--critical {
  background: var(--c-critical);
}
.achart__key--medium {
  background: repeating-linear-gradient(
    90deg,
    var(--c-medium) 0 5px,
    transparent 5px 8px
  );
}
.achart__key--low {
  background: var(--c-low);
}
.achart__plot {
  overflow-x: auto;
}
.achart__svg {
  display: block;
  width: 100%;
  min-width: 480px;
  height: auto;
  overflow: visible;
}
.achart__grid {
  stroke: rgb(var(--white-rgb) / 0.08);
  stroke-width: 1;
}
.achart__axis {
  fill: var(--text-3);
  font: 400 11px var(--sans);
}
.achart__value {
  fill: var(--text);
  font: 600 12px var(--sans);
}
.achart__bar--critical {
  fill: var(--c-critical);
}
.achart__bar--high {
  fill: var(--c-high);
}
.achart__bar--medium {
  fill: var(--c-medium);
}
.achart__bar--low {
  fill: var(--c-low);
}
.achart__line {
  fill: none;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke: var(--c-high);
}
.achart__line--critical {
  stroke: var(--c-critical);
}
.achart__line--medium {
  stroke: var(--c-medium);
  stroke-dasharray: 5 4;
}
.achart__line--low {
  stroke: var(--c-low);
}
.achart__dot {
  fill: var(--c-high);
}
.achart__dot--critical {
  fill: var(--c-critical);
}
.achart__dot--medium {
  fill: var(--c-medium);
}
.achart__dot--low {
  fill: var(--c-low);
}
.achart__end {
  fill: var(--text-2);
  font: 400 12px var(--sans);
}
.achart__end-v {
  fill: var(--text);
  font-weight: 600;
}
.prose .achart__rows {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.prose .achart__rows li {
  display: grid;
  grid-template-columns: minmax(96px, 30%) 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0;
  font-size: 14px;
}
.prose .achart__rows li::before {
  content: none;
}
.achart__track {
  height: 10px;
  border-radius: 5px;
  background: rgb(var(--white-rgb) / 0.08);
  overflow: hidden;
}
.achart__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--c-high);
}
.achart__fill--critical {
  background: var(--c-critical);
}
.achart__fill--medium {
  background: var(--c-medium);
}
.achart__fill--low {
  background: var(--c-low);
}

/* Credit and licence of a picture that isn't ours, under its caption. */
.post__cover .credit {
  display: block;
  margin-top: 4px;
  font: 400 11.5px/1.4 var(--mono);
  color: var(--text-3);
}
.post__cover .credit a {
  color: var(--text-2);
  text-decoration: underline;
  text-decoration-color: rgb(var(--white-rgb) / 0.3);
  text-underline-offset: 2px;
}
