/* noko: parts every layout shares, using whichever colour variables the
   layout has: the QR card, the keyboard shortcuts dialog and the colour
   theme button.

   The QR card: the node account's QR code at the bottom right, after
   X's "Scan to get the app" card (measured from it: 178 × 204 px, 24 px
   padding, 16 px corners, #141414 on a 1 px #373737 border, a grey caption,
   1.08× from the corner on hover). Shared by every layout; the light
   palette files set the --qr-card-* colours. Wide screens only. */
.qr-card {
  position: fixed;
  /* Bottom right; bottom left on a right-to-left page, where the columns
     swap and the right one is the text. */
  inset-inline-end: 24px;
  bottom: 24px;
  z-index: 50;
  box-sizing: border-box;
  width: 178px;
  padding: 20px 24px 24px;
  text-align: center;
  color: var(--qr-card-ink, #ffffff);
  background: var(--qr-card-bg, #141414);
  border: 1px solid var(--qr-card-line, #373737);
  border-radius: 16px;
  transform-origin: bottom right;
  /* app.js sets --qr-lift (up to 110 px) as the page's bottom scrolls into
     view, so the card rides up clear of the text there and back down with
     the scroll; the short ease only smooths each step. */
  translate: 0 calc(-1 * var(--qr-lift, 0px));
  transition:
    transform 0.2s ease,
    translate 0.12s ease-out;
}

.qr-card:hover {
  transform: scale(1.08);
}

.qr-card__caption {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--qr-card-caption, #9b9b9b);
}

.qr-card .qr-code {
  display: block;
  width: 130px;
  height: 130px;
}

@media (max-width: 999px), print {
  .qr-card {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qr-card {
    transition: none;
  }
}

/* The keyboard shortcuts dialog ("?"), after explorer.banano.trade's: the
   action on the left, its keys on the right. app.js builds it. */
.shortcuts {
  width: min(440px, calc(100vw - 32px));
  padding: 0;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line, var(--panel-line));
  border-radius: var(--radius, 14px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.shortcuts::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.shortcuts__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line, var(--panel-line));
}

.shortcuts__title {
  margin: 0;
  font-size: 17px;
  color: var(--heading, var(--text));
}

.shortcuts__close {
  width: 32px;
  height: 32px;
  font: inherit;
  font-size: 18px;
  line-height: 1;
  color: var(--text);
  background: none;
  border: 1px solid var(--line, var(--panel-line));
  border-radius: 8px;
  cursor: pointer;
}

.shortcuts__list {
  margin: 0;
  padding: 8px 20px;
}

.shortcuts__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line, var(--panel-line));
}

.shortcuts__row:first-child {
  border-top: 0;
}

.shortcuts__row dd {
  margin: 0;
}

.shortcuts kbd {
  display: inline-block;
  min-width: 24px;
  padding: 2px 6px;
  font: 12px/1.4 var(--font-mono, ui-monospace, monospace);
  text-align: center;
  color: var(--text);
  background: var(--code, var(--panel-bg, transparent));
  border: 1px solid var(--line, var(--panel-line));
  border-bottom-width: 2px;
  border-radius: 6px;
}

.shortcuts__note {
  margin: 0;
  padding: 4px 20px 16px;
  font-size: 13px;
  color: var(--muted, var(--label, var(--text)));
}

/* The donate dialog ("d"): the address as a QR code, then in full. */
.donate {
  padding: 20px 20px 4px;
  text-align: center;
}

.donate .qr-code {
  display: block;
  width: 200px;
  height: 200px;
  margin: 0 auto 16px;
  color: var(--text);
}

.donate__address {
  display: block;
  font: 13px/1.5 var(--font-mono, ui-monospace, monospace);
  word-break: break-all;
}

.shortcuts__actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 20px 20px;
}

.shortcuts__button {
  padding: 8px 14px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: none;
  border: 1px solid var(--line, var(--panel-line));
  border-radius: 8px;
  cursor: pointer;
}

.shortcuts__button--primary {
  font-weight: 600;
  border-color: var(--text);
}

/* The footer's "?" that opens it. */
.footer__help {
  width: 24px; /* WCAG 2.5.8's minimum target */
  height: 24px;
  padding: 0;
  font: inherit;
  font-size: 12px;
  line-height: 22px;
  color: inherit;
  background: none;
  border: 1px solid currentColor;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.8;
}

.footer__help:hover,
.footer__help:focus-visible {
  opacity: 1;
}

/* /accessibility: the statement, in whichever layout's colours. It has no
   navbar, so classic's room for one goes. */
body:has(> .statement) {
  padding-top: 0;
}

.statement {
  box-sizing: border-box;
  max-width: 72ch;
  margin: 0 auto;
  padding: 32px 16px 24px;
  line-height: 1.6;
  color: var(--text);
}

.statement h1,
.statement h2 {
  color: var(--heading, var(--text));
  line-height: 1.25;
}

.statement__title {
  margin: 16px 0 8px;
  font-size: 1.8em;
}

.statement h2 {
  margin: 32px 0 8px;
  font-size: 1.2em;
}

.statement p,
.statement li {
  font-size: 1rem;
}

.statement ul {
  padding-inline-start: 1.25em;
}

.statement .footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 40px;
  padding: 16px 0 0;
  border-top: 1px solid var(--line, var(--panel-line));
}

.statement li + li {
  margin-top: 8px;
}

.statement a {
  color: inherit;
  text-decoration: underline;
}

.statement__back {
  font-size: 0.9em;
}

/* The operator's notes: planned maintenance, known issues. */
.node-notes,
.statement .node-notes {
  margin: 12px 0;
  padding: 0;
  list-style: none;
}

.node-notes__item {
  margin: 6px 0;
  padding: 8px 12px;
  border: 1px solid var(--line, var(--panel-line));
  border-inline-start: 3px solid var(--text);
  overflow-wrap: anywhere;
}

.node-notes__time {
  display: block;
  color: var(--muted, var(--text));
  font-size: 0.875em;
  font-variant-numeric: tabular-nums;
}

/* The log: the statement's page, wider, with a line per event. */
.log {
  max-width: 110ch;
}

.log__lead,
.log__since {
  margin: 0 0 8px;
}

.log__since {
  color: var(--muted, var(--text));
  font-size: 0.875em;
}

.log__notice {
  margin: 16px 0 0;
  padding: 8px 12px;
  border: 1px solid var(--text);
  border-radius: var(--radius, 8px);
}

.log__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 8px;
}

.log__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.log__filters[hidden] {
  display: none;
}

.log__sev {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.log__btn,
.log__input {
  min-height: 36px;
  box-sizing: border-box;
  padding: 4px 10px;
  border: 1px solid var(--line, var(--panel-line));
  border-radius: var(--radius, 8px);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.875em;
}

/* Drawn here: the browser's own box stays light on a dark page, under the
   page's light text. The arrow is two gradients (the CSP allows no data:). */
select.log__input {
  appearance: none;
  padding-inline-end: 28px;
  background-color: var(--bg, Canvas);
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 15px center, right 10px center;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

[dir="rtl"] select.log__input {
  background-position: left 10px center, left 15px center;
}

/* Black on a dark page otherwise: the browser's own list. */
.log__input option {
  background: var(--bg, Canvas);
  color: var(--text, CanvasText);
}

.log__btn {
  cursor: pointer;
}

.log__btn[aria-pressed="true"] {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg, Canvas);
}

.log__search {
  flex: 1 1 12em;
  min-width: 0;
}

.log__input::placeholder {
  color: var(--muted, var(--text));
  opacity: 1;
}

.log__downloads {
  display: flex;
  gap: 12px;
  margin: 0;
}

.log__count {
  margin: 0 0 8px;
  color: var(--muted, var(--text));
  font-size: 0.875em;
}

.log__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line, var(--panel-line));
}

.statement .log__row {
  display: grid;
  grid-template-columns: max-content 4.5em minmax(0, 1fr);
  gap: 2px 12px;
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--line, var(--panel-line));
  font-size: 0.9375em;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.statement .log__row[hidden] {
  display: none;
}

.log__time {
  color: var(--muted, var(--text));
  font-variant-numeric: tabular-nums;
}

/* The word says the severity; the underline is only there to scan by. */
.log__tag {
  font-weight: 700;
  white-space: nowrap;
}

.log__tag--warn,
.log__tag--err {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.log__repeat {
  color: var(--muted, var(--text));
  font-size: 0.875em;
}

.log__empty {
  margin-top: 20px;
}

@media (max-width: 560px) {
  .statement .log__row {
    grid-template-columns: 4.5em minmax(0, 1fr);
  }

  .log__time {
    grid-column: 1 / -1;
  }
}

.statement kbd {
  padding: 0 4px;
  font: 0.9em var(--font-mono, ui-monospace, monospace);
  border: 1px solid var(--line, var(--panel-line));
  border-radius: 4px;
}

/* The colour theme button (macros.html theme_toggle), in the layouts that
   have one (each places and colours it: .brand__theme, .navbar__theme).
   The icon shown is the current choice, set on <html data-theme> by the
   head script. :where() keeps the base at no specificity, so the layout's
   rules win though this file is linked after them. */
:where(.theme-toggle) {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.25rem 0.5rem; font: inherit; line-height: 1;
  background: none; border: 0; border-radius: 8px; cursor: pointer;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle__icon { display: none; }
[data-theme="system"] .theme-toggle__icon--system,
[data-theme="light"] .theme-toggle__icon--light,
[data-theme="dark"] .theme-toggle__icon--dark { display: block; }

/* The language switcher (every layout's footer): each language by its
   own name, apart from the next. */
:where(.langs) {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0 0.9em;
}

/* The languages: one menu in the footer, opening upward from the page's end.
   Real links, so it works without a script (app.js only adds closing it from
   outside). Each a 24 px target (WCAG 2.2 target size). */
.langs__menu {
  position: relative;
  display: inline-block;
}

/* On a row of its own: from the end of a full row, the list would run off the
   page's edge. */
.footer .langs,
.footer li:has(> .langs) {
  flex: 0 0 100%;
}

.langs__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 24px;
  list-style: none;
  cursor: pointer;
}

.langs__toggle::-webkit-details-marker {
  display: none;
}

.langs__icon,
.langs__chevron {
  flex: none;
}

.langs__menu[open] .langs__chevron {
  transform: rotate(180deg);
}

.langs__list {
  position: absolute;
  z-index: 30;
  inset-block-end: calc(100% + 6px);
  inset-inline-start: 0;
  box-sizing: border-box;
  width: max-content;
  min-width: 11em;
  max-width: calc(100vw - 32px);
  max-height: min(60vh, 420px);
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
  border: 1px solid var(--line, var(--panel-line));
  border-radius: var(--radius, 8px);
  background: var(--bg, Canvas);
  color: var(--text, CanvasText);
}

.langs__list li {
  margin: 0;
}

/* The search at the top of a list of languages: stays in view as the list
   scrolls, over it. 16 px, because iPhones zoom the page into anything smaller. */
.lang-search {
  position: sticky;
  z-index: 1;
  inset-block-start: -6px;
  margin: -6px -6px 4px;
  padding: 6px;
  background: var(--bg, Canvas);
}

.lang-search__input {
  box-sizing: border-box;
  width: 100%;
  min-height: 32px;
  padding: 4px 8px;
  border: 1px solid var(--line, var(--panel-line));
  border-radius: var(--radius, 8px);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 16px;
}

.lang-search__none {
  padding: 3px 8px;
  line-height: 24px;
}

.langs__link {
  display: block;
  min-height: 24px;
  padding: 3px 8px;
  line-height: 24px;
  color: inherit;
}

.langs__link[aria-current="true"] {
  font-weight: 700;
}

/* What the node's network is, above the questions. */
.about {
  margin: 0 0 24px;
}

.about__text {
  margin: 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.about__heading {
  margin: 16px 0 6px;
  color: var(--muted, var(--text));
  font-size: 0.8125em;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about__link {
  display: inline-block;
  min-height: 24px;
  padding: 2px 10px;
  border: 1px solid var(--line, var(--panel-line));
  border-radius: var(--radius, 8px);
  line-height: 24px;
  color: var(--text);
}

.panel--about .about__text {
  margin-top: 12px;
}

/* Right-to-left pages (Arabic): the layout mirrors, but what reads left to
   right stays so: drawings (an SVG's text-anchor follows the direction),
   code, the JSON and the addresses, each its own run within the line.
   The carousels slide on a left-to-right track, each slide mirrored. */
:where([dir="rtl"]) :is(svg, pre, code, kbd, #curl, #acct, .api__command,
  .api__lines, .confirm__scale,
  .account__address, .donate__address, .facts__value--address,
  .footer__link--address, .kv__address, .media__address,
  .report__value--address) {
  direction: ltr;
  unicode-bidi: isolate;
}
:where([dir="rtl"]) [data-carousel-track] {
  direction: ltr;
}
:where([dir="rtl"]) .carousel__slide {
  direction: rtl;
}
:where([dir="rtl"]) .qr-card {
  transform-origin: bottom left;
}

/* Joined letters (Arabic, Devanagari, Bengali): spacing them apart (the
   terminal's labels and headline) breaks the words. */
:where([data-joined]) * {
  letter-spacing: normal !important;
}

/* Georgian has no everyday capitals: "uppercase" would turn its letters
   into Mtavruli, which Georgian text doesn't use and many fonts lack. */
:where(:lang(ka)) * {
  text-transform: none !important;
}

/* ── Several nodes ───────────────────────────────────────────────────────
   The overview (/) and the switcher on each node's page, in whichever
   layout's colours. Classic has no navbar on the overview, so its room for
   one goes. */
body:has(> .overview) {
  padding-top: 0;
}

.overview {
  box-sizing: border-box;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 16px 24px;
  color: var(--text);
}

.overview__title {
  margin: 0 0 8px;
  color: var(--heading, var(--text));
  font-size: 1.8em;
  line-height: 1.25;
}

.overview__welcome {
  margin: 0 0 24px;
  color: var(--muted, var(--text));
}

.overview__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.overview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* The layout toggle: a list icon while the nodes are a grid, a grid icon
   while they're a list (aria-pressed says which). Only where the list has
   rows to show (the media query below); on a narrower screen both are cards. */
.overview__view {
  display: none;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius, 8px);
  background: transparent;
  color: var(--heading, var(--text));
  cursor: pointer;
}

.overview__view[hidden] {
  display: none;
}

.overview__view:hover {
  background: var(--surface, rgba(127, 127, 127, 0.12));
}

.overview__view[aria-pressed="false"] .overview__view-icon--grid,
.overview__view[aria-pressed="true"] .overview__view-icon--list {
  display: none;
}

/* The list: a row per node (name and currency, state, headline, figures,
   details), on a wide screen only. A narrower one keeps the cards, whatever
   was chosen on a wide one. */
@media (min-width: 900px) {
  .overview__view {
    display: inline-flex;
  }

  .overview__grid--list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .overview__grid--list .node-card {
    display: grid;
    gap: 4px;
    padding: 10px 16px;
    /* The name as wide as it needs (up to a point); the headline takes
       what's left. */
    grid-template-columns: minmax(8rem, max-content) auto minmax(10rem, 1fr) auto auto;
    grid-template-areas:
      "name status headline figures details"
      "currency status headline figures details";
    align-items: center;
    column-gap: 20px;
  }

  .overview__grid--list .node-card__name { grid-area: name; }
  .overview__grid--list .node-card__currency { grid-area: currency; }
  .overview__grid--list .node-card__status { grid-area: status; }
  .overview__grid--list .node-card__headline { grid-area: headline; }
  .overview__grid--list .node-card__name {
    max-width: 18rem;
  }

  .overview__grid--list .node-card__details {
    grid-area: details;
    margin: 0;
    white-space: nowrap;
  }

  .overview__grid--list .node-card__figures {
    grid-area: figures;
    display: flex;
    flex-wrap: wrap;
    gap: 2px 16px;
    margin: 0;
  }

  .overview__grid--list .node-card__figures div {
    display: flex;
    gap: 6px;
  }
}

.node-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius, 8px);
  /* The layout's own ground: the terminal's screen, whose colours its
     state pills are made for (not the page around it). */
  background: var(--bg, transparent);
  overflow-wrap: anywhere;
}

.node-card p {
  margin: 0;
}

.node-card__name {
  margin: 0;
  font-size: 1.25em;
  line-height: 1.25;
}

.node-card__name a {
  color: var(--heading, var(--text));
}

.node-card__currency {
  color: var(--muted, var(--text));
  font-size: 0.875em;
}

.node-card__headline {
  line-height: 1.4;
}

.node-card__figures {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 12px;
  margin: 4px 0 0;
  font-size: 0.875em;
}

.node-card__figures div {
  display: contents;
}

.node-card__figures dt {
  color: var(--muted, var(--text));
}

.node-card__figures dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.node-card__details {
  margin-top: auto;
  align-self: flex-start;
  min-height: 24px;
  line-height: 24px;
  color: var(--text);
}

/* Classic has no pill: a dot in the state's colour, the state in words. */
.node-card__state::before {
  content: "";
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  margin-inline-end: 0.4em;
  border-radius: 50%;
  background: currentColor;
}

.node-card__state--good::before { background: #3fb950; }
.node-card__state--warn::before { background: #d29922; }
.node-card__state--bad::before { background: #f85149; }

/* The node bar, among several nodes: this node (or the overview) opening
   a menu of every node, and the languages on the other side. Each layout's
   own colours; the terminal draws its dots as glyphs (terminal.css). */
.nodebar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}

.nodebar__menu {
  position: relative;
  min-width: 0;
}

.nodebar__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 36px;
  padding: 4px 10px;
  border-radius: var(--radius, 8px);
  color: var(--heading, var(--text));
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.nodebar__trigger::-webkit-details-marker {
  display: none;
}

.nodebar__trigger:hover,
.nodebar__menu[open] > .nodebar__trigger {
  background: var(--surface, rgba(127, 127, 127, 0.12));
}

.nodebar__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nodebar__icon,
.nodebar__chevron {
  flex: none;
}

.nodebar__chevron {
  opacity: 0.75;
  transition: transform 0.15s;
}

.nodebar__menu[open] .nodebar__chevron {
  transform: rotate(180deg);
}

.nodebar__panel {
  position: absolute;
  inset-block-start: calc(100% + 6px);
  inset-inline-start: 0;
  width: max-content;
  min-width: 280px;
  max-width: calc(100vw - 32px);
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius, 8px);
  /* Opaque: a layout's raised surface may be a tint over its ground. */
  background: linear-gradient(var(--surface-raised, transparent), var(--surface-raised, transparent)), var(--bg);
  box-shadow: var(--shadow, 0 10px 30px rgba(0, 0, 0, 0.3));
}

.nodebar__menu--end .nodebar__panel {
  inset-inline-start: auto;
  inset-inline-end: 0;
  min-width: 220px;
  max-height: min(60vh, 480px);
  overflow-y: auto;
}

.nodebar__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nodebar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: calc(var(--radius, 8px) - 2px);
  color: var(--text, var(--heading));
  text-decoration: none;
}

.nodebar__item:hover,
.nodebar__item:focus-visible,
.nodebar__item[aria-current] {
  background: var(--surface, rgba(127, 127, 127, 0.14));
}

.nodebar__item[aria-current] {
  font-weight: 600;
}

.nodebar__item-name {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.nodebar__meta,
.nodebar__code {
  font-size: 0.8125rem;
  white-space: nowrap;
}

.nodebar__meta {
  color: var(--muted, var(--label, var(--heading)));
}

.nodebar__overview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  margin-block-start: 6px;
  border-top: 1px solid var(--line);
  color: var(--heading, var(--text));
  font-weight: 600;
  text-decoration: none;
}

.nodebar__overview:hover,
.nodebar__overview:focus-visible {
  text-decoration: underline;
}

.nodebar__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted, currentColor);
}

/* Each state its own shape as well as colour (a monochrome layout, or
   colour-blind eyes, still tell them apart): a disc, a triangle, a ring. */
.nodebar__dot--good { background: var(--good, #3fb950); }
.nodebar__dot--warn {
  border-radius: 0;
  background: var(--warn, #d29922);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  width: 10px;
  height: 9px;
}
.nodebar__dot--bad {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--bad, #f85149);
  width: 9px;
  height: 9px;
}

/* Text for screen readers only, in every layout. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* The card's arrow points the way the text reads. */
[dir="rtl"] .node-card__arrow {
  display: inline-block;
  transform: scaleX(-1);
}
