/* NISearch service pages: preferences (incl. engines and cookies), engine stats, info articles.
   Colours only through --nis-* tokens (tokens.css). Buttons, selects and the on/off switch come from base.css. */

.prefs-page,
.stats-page,
.info-wrap {
  max-width: 1040px;
  margin-inline: auto;
  padding-inline: var(--nis-space-4);
}

.prefs-page *,
.stats-page *,
.info-wrap * {
  box-sizing: border-box;
}

/* ---------- preferences: header ---------- */

.prefs-head {
  margin-bottom: var(--nis-space-6);
}

.prefs-head h1 {
  margin-bottom: var(--nis-space-2);
  font-size: var(--nis-font-2xl);
  line-height: 1.25;
}

.prefs-lead {
  margin: 0;
  color: var(--nis-text-muted);
  font-size: var(--nis-font-sm);
  line-height: 1.5;
}

.prefs-lead-small {
  margin: 0 0 var(--nis-space-4);
}

.prefs-notice {
  margin-bottom: var(--nis-space-5);
  padding: var(--nis-space-3) var(--nis-space-4);
  border-radius: var(--nis-radius-lg);
  background: var(--nis-accent-subtle);
  color: var(--nis-text);
  font-size: var(--nis-font-sm);
}

.prefs-notice p {
  margin: 0 0 var(--nis-space-2);
}

.prefs-notice ul {
  margin: 0;
  padding-left: var(--nis-space-5);
}

/* ---------- preferences: tabs ----------
   Radios are visually hidden, not display:none, so the tabs stay keyboard reachable.
   Main tabs: radios -> tab list -> panels, switched by ~ selectors (6 fixed tabs).
   Engine categories: radio + label + section triplets, switched by + and + + selectors. */

.prefs-tabs,
.prefs-subtabs {
  position: relative;
}

.prefs-tabs > input[type="radio"],
.prefs-subtabs > input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  border: 0;
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
}

/* mobile: horizontally scrollable tab strip */
.prefs-tablist {
  display: flex;
  gap: var(--nis-space-1);
  margin-bottom: var(--nis-space-4);
  padding-bottom: var(--nis-space-1);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.prefs-tablist::-webkit-scrollbar {
  display: none;
}

.prefs-tablist > label {
  flex: 0 0 auto;
  padding: var(--nis-space-2) var(--nis-space-3);
  border-radius: var(--nis-radius-md);
  color: var(--nis-text-muted);
  font-size: var(--nis-font-md);
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background-color var(--nis-motion-fast) var(--nis-motion-easing),
              color var(--nis-motion-fast) var(--nis-motion-easing);
}

@media (hover: hover) {
  .prefs-tablist > label:hover {
    background-color: var(--nis-surface-hover);
    color: var(--nis-text);
  }
}

#tab-general:checked ~ .prefs-tablist > label[for="tab-general"],
#tab-ui:checked ~ .prefs-tablist > label[for="tab-ui"],
#tab-privacy:checked ~ .prefs-tablist > label[for="tab-privacy"],
#tab-engines:checked ~ .prefs-tablist > label[for="tab-engines"],
#tab-query:checked ~ .prefs-tablist > label[for="tab-query"],
#tab-cookies:checked ~ .prefs-tablist > label[for="tab-cookies"] {
  background-color: var(--nis-accent-subtle);
  color: var(--nis-accent-text);
}

#tab-general:focus-visible ~ .prefs-tablist > label[for="tab-general"],
#tab-ui:focus-visible ~ .prefs-tablist > label[for="tab-ui"],
#tab-privacy:focus-visible ~ .prefs-tablist > label[for="tab-privacy"],
#tab-engines:focus-visible ~ .prefs-tablist > label[for="tab-engines"],
#tab-query:focus-visible ~ .prefs-tablist > label[for="tab-query"],
#tab-cookies:focus-visible ~ .prefs-tablist > label[for="tab-cookies"] {
  box-shadow: inset 0 0 0 2px var(--nis-focus);
}

.prefs-panels > .prefs-panel {
  display: none;
  min-width: 0;
}

#tab-general:checked ~ .prefs-panels > #tab-content-general,
#tab-ui:checked ~ .prefs-panels > #tab-content-ui,
#tab-privacy:checked ~ .prefs-panels > #tab-content-privacy,
#tab-engines:checked ~ .prefs-panels > #tab-content-engines,
#tab-query:checked ~ .prefs-panels > #tab-content-query,
#tab-cookies:checked ~ .prefs-panels > #tab-content-cookies {
  display: block;
}

.prefs-panel-title {
  margin-bottom: var(--nis-space-3);
  font-size: var(--nis-font-xl);
  line-height: 1.3;
}

/* desktop: vertical tab list on the left, panels on the right */
@media (min-width: 900px) {
  .prefs-tabs {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    column-gap: var(--nis-space-8);
    align-items: start;
  }

  .prefs-tablist {
    grid-column: 1;
    grid-row: 1;
    position: sticky;
    top: var(--nis-space-4);
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .prefs-tablist > label {
    padding: 10px var(--nis-space-3);
    font-size: var(--nis-font-md);
  }

  .prefs-panels {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }
}

/* ---------- preferences: cards and rows ---------- */

.prefs-card {
  overflow: visible;
  border-radius: var(--nis-radius-lg);
  background: var(--nis-surface-raised);
  box-shadow: var(--nis-shadow-card);
}

.prefs-card > .prefs-table-wrap {
  border-radius: var(--nis-radius-lg);
}

.pref {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: var(--nis-space-2);
  align-items: center;
  padding: var(--nis-space-3) var(--nis-space-4);
}

.pref + .pref {
  border-top: 1px solid var(--nis-border);
}

.pref-text {
  min-width: 0;
}

.pref-title {
  color: var(--nis-text);
  font-size: var(--nis-font-md);
  font-weight: 500;
  line-height: 1.4;
}

.pref-desc {
  margin-top: 2px;
  color: var(--nis-text-muted);
  font-size: var(--nis-font-sm);
  line-height: 1.45;
}

.pref-desc a {
  color: var(--nis-link);
}

.pref-control {
  min-width: 0;
  max-width: 100%;
  justify-self: start;
}

.pref-control select {
  width: 100%;
  min-width: 0;
}

.pref-control .prefs-text-input {
  width: 100%;
}

.pref.pref-wide {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
  .pref {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 260px);
    column-gap: var(--nis-space-6);
    row-gap: 0;
    padding: var(--nis-space-3) var(--nis-space-5);
  }

  .pref-control {
    justify-self: end;
  }

  .pref-control select {
    width: auto;
    min-width: 200px;
  }

  .pref.pref-wide {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--nis-space-3);
  }

  .pref.pref-wide .pref-control {
    justify-self: stretch;
  }
}

.prefs-text-input {
  min-height: 36px;
  padding: 0 var(--nis-space-3);
  border: 1px solid var(--nis-border-strong);
  border-radius: var(--nis-radius-md);
  background: var(--nis-surface);
  color: var(--nis-text);
  font-size: var(--nis-font-md);
}

.prefs-text-input::placeholder {
  color: var(--nis-text-subtle);
}

/* ---------- preferences: nested engine category tabs ---------- */

.prefs-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 0 var(--nis-space-3);
  border-bottom: 1px solid var(--nis-border);
  border-radius: var(--nis-radius-lg) var(--nis-radius-lg) 0 0;
  background: var(--nis-surface-raised);
  box-shadow: var(--nis-shadow-card);
}

.prefs-subtabs > label {
  order: 1;
  margin-bottom: -1px;
  padding: 12px var(--nis-space-2);
  border-bottom: 2px solid transparent;
  color: var(--nis-text-muted);
  font-size: var(--nis-font-sm);
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  user-select: none;
  transition: color var(--nis-motion-fast) var(--nis-motion-easing),
              border-color var(--nis-motion-fast) var(--nis-motion-easing);
}

@media (hover: hover) {
  .prefs-subtabs > label:hover {
    color: var(--nis-text);
  }
}

.prefs-subtabs > input:checked + label {
  border-bottom-color: var(--nis-accent);
  color: var(--nis-accent-text);
}

.prefs-subtabs > input:focus-visible + label {
  box-shadow: inset 0 0 0 2px var(--nis-focus);
}

.prefs-subtabs > section {
  order: 2;
  flex: 0 0 100%;
  display: none;
  min-width: 0;
  padding: var(--nis-space-4) var(--nis-space-3) var(--nis-space-4);
}

.prefs-subtabs > input:checked + label + section {
  display: block;
}

.prefs-subtabs .prefs-note {
  margin: 0 0 var(--nis-space-3);
  color: var(--nis-text-muted);
  font-size: var(--nis-font-sm);
}

.prefs-subtabs .prefs-note a {
  color: var(--nis-link);
}

.prefs-engines-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--nis-space-2);
  margin-bottom: var(--nis-space-3);
}

/* ---------- tables (engines, answerers, cookies) ---------- */

.prefs-table-wrap {
  max-height: min(70vh, 640px);
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: var(--nis-radius-md);
}

.prefs-engines,
.prefs-answerers,
.prefs-cookies-table,
.cookies {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--nis-font-sm);
}

.prefs-engines {
  min-width: 720px;
}

.prefs-answerers {
  min-width: 620px;
}

.prefs-engines th,
.prefs-engines td,
.prefs-answerers th,
.prefs-answerers td {
  padding: 9px var(--nis-space-2);
  border-bottom: 1px solid var(--nis-border);
  text-align: left;
  vertical-align: middle;
}

.prefs-engines td,
.prefs-answerers td {
  position: relative;
}

.prefs-engines thead th,
.prefs-answerers thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding-top: var(--nis-space-2);
  padding-bottom: var(--nis-space-2);
  border-bottom: 1px solid var(--nis-border-strong);
  background: var(--nis-surface-raised);
  color: var(--nis-text-muted);
  font-size: var(--nis-font-xs);
  font-weight: 600;
  white-space: nowrap;
}

.prefs-engines tbody tr,
.prefs-answerers tbody tr {
  transition: background-color var(--nis-motion-fast) var(--nis-motion-easing);
}

@media (hover: hover) {
  .prefs-engines tbody tr:not(.pref-group):hover,
  .prefs-answerers tbody tr:not(.pref-group):hover {
    background-color: var(--nis-surface-hover);
  }
}

.prefs-engines tr.pref-group th,
.prefs-answerers tr.pref-group th {
  position: static;
  padding-top: 6px;
  padding-bottom: 6px;
  background: var(--nis-surface-sunken);
  color: var(--nis-text-muted);
  font-size: var(--nis-font-xs);
  font-weight: 600;
}

.prefs-engines .checkbox-col,
.prefs-answerers .checkbox-col {
  width: 64px;
  padding-left: var(--nis-space-3);
}

.prefs-engines .name {
  min-width: 200px;
  font-weight: 500;
}

.prefs-engines th.name label {
  cursor: pointer;
}

.prefs-engines .shortcut {
  white-space: nowrap;
}

.prefs-engines .num,
.prefs-engines .center,
.prefs-engines .metric {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.prefs-engines .num,
.prefs-engines .center {
  text-align: right;
}

.prefs-engines .center {
  text-align: center;
}

.prefs-engines .metric {
  min-width: 128px;
}

.prefs-engines thead .num,
.prefs-engines thead .center {
  text-align: right;
}

.prefs-engines thead .center {
  text-align: center;
}

.prefs-engines .danger,
.prefs-engines td.danger,
.engine-stats .danger {
  color: var(--nis-danger);
}

.prefs-engines td.warning {
  color: var(--nis-warning);
}

.prefs-engines td.success {
  color: var(--nis-success);
}

.prefs-engines .column-reliability a {
  color: inherit;
}

.bang {
  font-family: var(--nis-font-mono);
  font-size: var(--nis-font-xs);
  color: var(--nis-text-muted);
  white-space: nowrap;
}

.prefs-answerers td:nth-child(2),
.prefs-answerers td:nth-child(3) {
  font-weight: 500;
}

/* engine response time: value + stacked bar (median, p80, p95) */

.engine-time-value {
  display: block;
  color: var(--nis-text);
  font-variant-numeric: tabular-nums;
}

.stacked-bar-chart {
  display: flex;
  width: 112px;
  height: 6px;
  margin-top: 4px;
  overflow: hidden;
  border-radius: var(--nis-radius-full);
  background: var(--nis-surface-sunken);
}

.stacked-bar-chart > span {
  flex: none;
  height: 100%;
}

.stacked-bar-chart-median {
  background: var(--nis-accent);
}

.stacked-bar-chart-rate80 {
  background: var(--nis-accent);
  opacity: 0.5;
}

.stacked-bar-chart-rate95 {
  background: var(--nis-accent);
  opacity: 0.22;
}

/* hover/focus tooltips (engine descriptions, timings, errors) */

.engine-tooltip {
  display: none;
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  left: 0;
  width: max-content;
  min-width: 200px;
  max-width: 360px;
  padding: var(--nis-space-3);
  border-radius: var(--nis-radius-md);
  background: var(--nis-surface-raised);
  box-shadow: var(--nis-shadow-popover);
  color: var(--nis-text);
  font-size: var(--nis-font-sm);
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
}

.engine-tooltip p {
  margin: 0 0 var(--nis-space-1);
}

.engine-tooltip p:last-child {
  margin-bottom: 0;
}

.engine-tooltip a {
  color: var(--nis-link);
  word-break: break-all;
}

.engine-tooltip .right {
  color: var(--nis-text-muted);
}

.engine-tooltip table {
  width: 100%;
  border-collapse: collapse;
}

.engine-tooltip table th,
.engine-tooltip table td {
  padding: 2px var(--nis-space-2);
  border: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.engine-tooltip table th:first-child {
  text-align: left;
}

.prefs-engines td .engine-tooltip,
.prefs-engines th .engine-tooltip,
.engine-stats td .engine-tooltip {
  right: 0;
  left: auto;
}

.prefs-engines th.name .engine-tooltip {
  right: auto;
  left: 0;
}

.prefs-engines th.name .engine-tooltip .engine-description {
  margin-top: var(--nis-space-1);
  color: var(--nis-text-muted);
}

@media (hover: hover) {
  .prefs-engines th.name:hover > .engine-tooltip,
  .prefs-engines td:hover > .engine-tooltip,
  .engine-stats td:hover > .engine-tooltip,
  .engine-tooltip:hover {
    display: block;
  }
}

.prefs-engines th.name:focus-within > .engine-tooltip,
.prefs-engines td:focus-within > .engine-tooltip,
.engine-stats td:focus-within > .engine-tooltip {
  display: block;
}

/* ---------- preferences: cookies tab ---------- */

.prefs-cookies {
  padding: var(--nis-space-5);
}

.prefs-cookies .prefs-lead {
  margin-bottom: var(--nis-space-4);
}

.prefs-cookies .prefs-cookies-table th,
.prefs-cookies .prefs-cookies-table td {
  padding: 8px var(--nis-space-2);
  border-bottom: 1px solid var(--nis-border);
  text-align: left;
  vertical-align: top;
}

.prefs-cookies .prefs-cookies-table th {
  color: var(--nis-text-muted);
  font-size: var(--nis-font-xs);
  font-weight: 600;
}

.prefs-cookies .prefs-cookies-table td {
  font-family: var(--nis-font-mono);
  font-size: var(--nis-font-xs);
  word-break: break-all;
}

.prefs-cookies .prefs-cookies-table td:first-child {
  width: 14rem;
  word-break: keep-all;
}

.prefs-subhead {
  margin: var(--nis-space-5) 0 var(--nis-space-2);
  color: var(--nis-text);
  font-size: var(--nis-font-md);
  font-weight: 600;
}

.prefs-cookies .selectable_url {
  padding: var(--nis-space-2) var(--nis-space-3);
  border: 1px solid var(--nis-border);
  border-radius: var(--nis-radius-md);
  background: var(--nis-surface-sunken);
  overflow: hidden;
}

.prefs-cookies .selectable_url pre {
  margin: 0;
  color: var(--nis-text);
  font-family: var(--nis-font-mono);
  font-size: var(--nis-font-xs);
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
  user-select: all;
}

.prefs-cookies .prefs-note {
  margin: var(--nis-space-2) 0 0;
  color: var(--nis-text-muted);
  font-size: var(--nis-font-sm);
}

#copy-hash-container {
  display: flex;
  align-items: center;
  gap: var(--nis-space-2);
}

#copy-hash-container .selectable_url {
  flex: 1 1 auto;
  min-width: 0;
}

#copy-hash-container .btn {
  flex: none;
}

/* ---------- sticky action bar ---------- */

.prefs-actions {
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--nis-space-3);
  margin-top: var(--nis-space-6);
  padding: var(--nis-space-3) var(--nis-space-4);
  padding-bottom: calc(var(--nis-space-3) + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--nis-border);
  border-radius: var(--nis-radius-lg) var(--nis-radius-lg) 0 0;
  background: var(--nis-surface-raised);
  box-shadow: var(--nis-shadow-card);
}

.prefs-actions-end {
  display: flex;
  gap: var(--nis-space-2);
  margin-inline-start: auto;
}

/* ---------- engine statistics ---------- */

.stats-page h1 {
  margin-bottom: var(--nis-space-5);
  font-size: var(--nis-font-2xl);
  line-height: 1.25;
}

.stats-engine-name {
  color: var(--nis-text-muted);
  font-weight: 400;
}

.stats-empty {
  color: var(--nis-text-muted);
}

.stats-table-wrap {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border-radius: var(--nis-radius-lg);
  background: var(--nis-surface-raised);
  box-shadow: var(--nis-shadow-card);
}

.engine-stats {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--nis-font-sm);
}

.engine-stats th,
.engine-stats td {
  padding: 10px var(--nis-space-3);
  border-bottom: 1px solid var(--nis-border);
  text-align: left;
  vertical-align: middle;
}

.engine-stats td {
  position: relative;
}

.engine-stats tbody tr:last-child td {
  border-bottom: 0;
}

.engine-stats thead th {
  padding-top: var(--nis-space-3);
  padding-bottom: var(--nis-space-2);
  border-bottom: 1px solid var(--nis-border-strong);
  color: var(--nis-text-muted);
  font-size: var(--nis-font-xs);
  font-weight: 600;
  white-space: nowrap;
}

.engine-stats thead th a {
  color: inherit;
}

@media (hover: hover) {
  .engine-stats tbody tr:hover {
    background-color: var(--nis-surface-hover);
  }

  .engine-stats thead th a:hover {
    color: var(--nis-text);
    text-decoration: underline;
  }
}

.engine-stats .engine-name a {
  color: var(--nis-text);
  font-weight: 500;
}

.engine-stats .engine-score,
.engine-stats .engine-result-count,
.engine-stats .engine-reliability {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.engine-stats .engine-score > span {
  color: var(--nis-text);
}

.engine-stats .engine-result-count,
.engine-stats .response-time {
  width: 200px;
}

.engine-stats .bar-chart-value {
  color: var(--nis-text);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.engine-stats .bar-chart-graph {
  display: flex;
  height: 6px;
  margin-top: 4px;
  overflow: hidden;
  border-radius: var(--nis-radius-full);
  background: var(--nis-surface-sunken);
}

.engine-stats .engine-result-count .bar-chart-graph {
  justify-content: flex-end;
}

.engine-stats .bar-chart-bar,
.engine-stats .bar-chart-serie1,
.engine-stats .bar-chart-serie2 {
  flex: none;
  height: 100%;
  background: var(--nis-accent);
}

.engine-stats .bar-chart-serie2 {
  opacity: 0.45;
}

.engine-stats .engine-reliability {
  color: var(--nis-text);
}

.engine-errors {
  margin-top: var(--nis-space-8);
}

.engine-errors h2 {
  margin-bottom: var(--nis-space-3);
  font-size: var(--nis-font-xl);
}

table.engine-error {
  width: 100%;
  margin-bottom: var(--nis-space-4);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: var(--nis-radius-lg);
  background: var(--nis-surface-raised);
  box-shadow: var(--nis-shadow-card);
  font-size: var(--nis-font-sm);
}

table.engine-error th,
table.engine-error td {
  padding: 8px var(--nis-space-3);
  border-top: 1px solid var(--nis-border);
  text-align: left;
  vertical-align: top;
  word-break: break-word;
}

table.engine-error tr:first-child th,
table.engine-error tr:first-child td {
  border-top: 0;
}

table.engine-error th {
  width: 120px;
  color: var(--nis-text-muted);
  font-weight: 500;
}

table.engine-error .engine-error-type {
  color: var(--nis-danger);
}

.log_parameters {
  display: inline-block;
  margin-right: var(--nis-space-1);
  padding: 0 var(--nis-space-1);
  border-radius: var(--nis-radius-xs);
  background: var(--nis-surface-sunken);
  font-family: var(--nis-font-mono);
  font-size: var(--nis-font-xs);
}

/* ---------- info pages ---------- */

.info-wrap {
  max-width: 720px;
}

.info-nav {
  margin-bottom: var(--nis-space-6);
}

.info-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--nis-space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-nav-list a {
  display: inline-block;
  padding: 6px var(--nis-space-3);
  border-radius: var(--nis-radius-full);
  color: var(--nis-text-muted);
  font-size: var(--nis-font-sm);
  font-weight: 500;
  line-height: 1.3;
  transition: background-color var(--nis-motion-fast) var(--nis-motion-easing),
              color var(--nis-motion-fast) var(--nis-motion-easing);
}

@media (hover: hover) {
  .info-nav-list a:hover {
    background-color: var(--nis-surface-hover);
    color: var(--nis-text);
    text-decoration: none;
  }
}

.info-nav-list a.active {
  background: var(--nis-accent-subtle);
  color: var(--nis-accent-text);
}

.info-page {
  color: var(--nis-text);
  font-size: var(--nis-font-md);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.info-page h1 {
  margin-bottom: var(--nis-space-5);
  font-size: var(--nis-font-3xl);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.info-page h2 {
  margin: var(--nis-space-8) 0 var(--nis-space-3);
  font-size: var(--nis-font-xl);
  line-height: 1.3;
}

.info-page h3 {
  margin: var(--nis-space-6) 0 var(--nis-space-2);
  font-size: var(--nis-font-lg);
  line-height: 1.35;
}

.info-page h4 {
  margin: var(--nis-space-5) 0 var(--nis-space-2);
  font-size: var(--nis-font-md);
}

.info-page p,
.info-page ul,
.info-page ol,
.info-page pre,
.info-page table,
.info-page blockquote {
  margin: 0 0 var(--nis-space-4);
}

.info-page ul,
.info-page ol {
  padding-left: var(--nis-space-6);
}

.info-page li + li {
  margin-top: var(--nis-space-1);
}

.info-page a {
  color: var(--nis-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.info-page a:visited {
  color: var(--nis-link-visited);
}

@media (hover: hover) {
  .info-page a:hover {
    text-decoration-thickness: 2px;
  }
}

.info-page code {
  padding: 1px var(--nis-space-1);
  border-radius: var(--nis-radius-xs);
  background: var(--nis-surface-sunken);
  font-family: var(--nis-font-mono);
  font-size: 0.9em;
}

.info-page pre {
  padding: var(--nis-space-3) var(--nis-space-4);
  border-radius: var(--nis-radius-md);
  background: var(--nis-surface-sunken);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  font-family: var(--nis-font-mono);
  font-size: var(--nis-font-sm);
  line-height: 1.5;
}

.info-page pre code {
  padding: 0;
  background: none;
  font-size: inherit;
}

.info-page blockquote {
  padding-left: var(--nis-space-4);
  border-left: 3px solid var(--nis-accent);
  color: var(--nis-text-muted);
}

.info-page table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: var(--nis-font-sm);
}

.info-page th,
.info-page td {
  padding: 6px var(--nis-space-3);
  border: 1px solid var(--nis-border);
  text-align: left;
}

.info-page img {
  max-width: 100%;
  height: auto;
}

/* ---------- widths of the stacked / single bars: .bar0 ... .bar100 ---------- */
.bar0 { width: 0%; }
.bar1 { width: 1%; }
.bar2 { width: 2%; }
.bar3 { width: 3%; }
.bar4 { width: 4%; }
.bar5 { width: 5%; }
.bar6 { width: 6%; }
.bar7 { width: 7%; }
.bar8 { width: 8%; }
.bar9 { width: 9%; }
.bar10 { width: 10%; }
.bar11 { width: 11%; }
.bar12 { width: 12%; }
.bar13 { width: 13%; }
.bar14 { width: 14%; }
.bar15 { width: 15%; }
.bar16 { width: 16%; }
.bar17 { width: 17%; }
.bar18 { width: 18%; }
.bar19 { width: 19%; }
.bar20 { width: 20%; }
.bar21 { width: 21%; }
.bar22 { width: 22%; }
.bar23 { width: 23%; }
.bar24 { width: 24%; }
.bar25 { width: 25%; }
.bar26 { width: 26%; }
.bar27 { width: 27%; }
.bar28 { width: 28%; }
.bar29 { width: 29%; }
.bar30 { width: 30%; }
.bar31 { width: 31%; }
.bar32 { width: 32%; }
.bar33 { width: 33%; }
.bar34 { width: 34%; }
.bar35 { width: 35%; }
.bar36 { width: 36%; }
.bar37 { width: 37%; }
.bar38 { width: 38%; }
.bar39 { width: 39%; }
.bar40 { width: 40%; }
.bar41 { width: 41%; }
.bar42 { width: 42%; }
.bar43 { width: 43%; }
.bar44 { width: 44%; }
.bar45 { width: 45%; }
.bar46 { width: 46%; }
.bar47 { width: 47%; }
.bar48 { width: 48%; }
.bar49 { width: 49%; }
.bar50 { width: 50%; }
.bar51 { width: 51%; }
.bar52 { width: 52%; }
.bar53 { width: 53%; }
.bar54 { width: 54%; }
.bar55 { width: 55%; }
.bar56 { width: 56%; }
.bar57 { width: 57%; }
.bar58 { width: 58%; }
.bar59 { width: 59%; }
.bar60 { width: 60%; }
.bar61 { width: 61%; }
.bar62 { width: 62%; }
.bar63 { width: 63%; }
.bar64 { width: 64%; }
.bar65 { width: 65%; }
.bar66 { width: 66%; }
.bar67 { width: 67%; }
.bar68 { width: 68%; }
.bar69 { width: 69%; }
.bar70 { width: 70%; }
.bar71 { width: 71%; }
.bar72 { width: 72%; }
.bar73 { width: 73%; }
.bar74 { width: 74%; }
.bar75 { width: 75%; }
.bar76 { width: 76%; }
.bar77 { width: 77%; }
.bar78 { width: 78%; }
.bar79 { width: 79%; }
.bar80 { width: 80%; }
.bar81 { width: 81%; }
.bar82 { width: 82%; }
.bar83 { width: 83%; }
.bar84 { width: 84%; }
.bar85 { width: 85%; }
.bar86 { width: 86%; }
.bar87 { width: 87%; }
.bar88 { width: 88%; }
.bar89 { width: 89%; }
.bar90 { width: 90%; }
.bar91 { width: 91%; }
.bar92 { width: 92%; }
.bar93 { width: 93%; }
.bar94 { width: 94%; }
.bar95 { width: 95%; }
.bar96 { width: 96%; }
.bar97 { width: 97%; }
.bar98 { width: 98%; }
.bar99 { width: 99%; }
.bar100 { width: 100%; }
