/* Digital KBS research poster — mirrors KBS-poster26 / baposter layout */

:root {
  --dark-blue: #2f5d8a;
  --light-blue: #b9d6f2;
  --page-bg: #1a2744;
  --box-bg: #b9d6f2;
  --ink: #111827;
  --header-ink: #ffffff;
  --gap: 0.4rem;
  --radius: 12px;
  --border: 2.5px solid #0a0a0a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.kbs-poster-page {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  background-color: var(--page-bg);
  background-image: url("https://loganjones.org/images/kbs-poster/diatoms_bg.png");
  background-size: min(520px, 55vw);
  background-repeat: repeat;
  line-height: 1.35;
}

.kbs-skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.kbs-skip:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 0.75rem;
  background: #fff;
  color: #000;
  z-index: 100;
}

.kbs-chrome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 1rem;
  background: rgba(10, 16, 28, 0.72);
  color: #e8eef6;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.9rem;
}

.kbs-chrome a {
  color: #cfe3f7;
  text-decoration: none;
}

.kbs-chrome a:hover,
.kbs-chrome a:focus-visible {
  text-decoration: underline;
}

.kbs-chrome__home {
  font-weight: 700;
  color: #b9d6f2;
  order: -1;
  margin-right: auto;
}

.kbs-chrome__home:hover,
.kbs-chrome__home:focus-visible {
  color: #fff;
}

.section-jump {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.85rem;
  background: rgba(18, 28, 48, 0.94);
  border-bottom: 1px solid rgba(201, 214, 232, 0.22);
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.86rem;
  backdrop-filter: blur(8px);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.section-jump.is-scrolled-away {
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
}

.section-jump__home {
  flex: 0 0 auto;
  font-weight: 700;
  color: #142033 !important;
  background: #b9d6f2 !important;
  border: 1px solid rgba(185, 214, 242, 0.95) !important;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  text-decoration: none;
  white-space: nowrap;
}

.section-jump__home:hover,
.section-jump__home:focus-visible {
  background: #d7e8f8 !important;
  color: #0a1220 !important;
}

.section-jump__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  min-width: 0;
}

.section-jump__links a {
  color: #d7e5f5;
  text-decoration: none;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.section-jump__links a:hover,
.section-jump__links a:focus-visible {
  color: #fff;
  border-color: rgba(185, 214, 242, 0.55);
  background: rgba(185, 214, 242, 0.12);
}

/* Keep section titles visible under the sticky jump bar */
.poster-box__header,
.model-panel,
.model-head h3,
.poster-panel,
#poster {
  scroll-margin-top: 5.5rem;
}

.back-top {
  position: fixed;
  left: 1rem;
  right: auto;
  bottom: 1rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.1rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1.5px solid rgba(185, 214, 242, 0.9);
  background: #2f5d8a;
  color: #e8f1fb;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-top:hover,
.back-top:focus-visible {
  color: #142033;
  background: #b9d6f2;
  border-color: #b9d6f2;
}

.kbs-wip {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border: 1px solid rgba(255, 220, 150, 0.65);
  border-radius: 999px;
  background: rgba(180, 120, 20, 0.35);
  color: #ffe6a8;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.poster-shell {
  width: min(1080px, calc(100% - 1.5rem));
  max-width: 1080px;
  margin: 0.85rem auto 2.5rem;
}

.poster-board {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

/* ---- Title banner ---- */
.poster-banner {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(80px, 0.75fr) minmax(0, 2.5fr) minmax(140px, 1.15fr);
  align-items: center;
  gap: 0.45rem 0.55rem;
  padding: 0.5rem 0.75rem 0.55rem;
  background: linear-gradient(180deg, var(--dark-blue) 0%, var(--light-blue) 100%);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: none;
}

.poster-banner__logos-left,
.poster-banner__logos-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.poster-banner__logos-right {
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0;
}

.poster-banner__logos-left img,
.poster-banner__logos-right img {
  width: 100%;
  height: auto;
  max-height: 92px;
  object-fit: contain;
}

.poster-banner__logos-left img {
  max-height: 130px;
}

.poster-banner__logos-right .logo-lab {
  max-height: 148px;
  max-width: 200px;
  width: auto;
  height: auto;
}

.poster-banner__title {
  text-align: center;
  margin: 0;
  min-width: 0;
  container-type: inline-size;
}

.poster-banner__title h1 {
  margin: 0;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(0.95rem, 2.2vw, 2.05rem);
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: #000;
  white-space: normal;
}

.poster-banner__authors {
  margin: 0.55rem 0 0;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(0.92rem, 1.55vw, 1.2rem);
  color: #000;
}

.poster-banner__meta {
  margin: 0.28rem 0 0;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: clamp(0.82rem, 1.3vw, 1.05rem);
  color: #000;
}

.poster-banner__authors a,
.poster-banner__meta a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.poster-banner__authors a:hover,
.poster-banner__authors a:focus-visible,
.poster-banner__meta a:hover,
.poster-banner__meta a:focus-visible {
  text-decoration-thickness: 2px;
}

.poster-banner__logos-left a,
.poster-banner__logos-right a {
  display: block;
  line-height: 0;
}

.poster-banner__logos-left a:focus-visible,
.poster-banner__logos-right a:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}

/* ---- Vertical scroll through poster sections ---- */
.poster-grid {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-top: 0.35rem;
  align-items: stretch;
}

.poster-main,
.poster-side,
.poster-main__lower {
  display: contents;
}

.area-bg { order: 1; }
.area-methods { order: 2; }
.area-results { order: 3; }
.area-diversity { order: 4; }
.area-discussion { order: 5; flex: none; }
.area-ack { order: 6; }

.poster-box {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: auto;
  background: var(--box-bg);
  border: var(--border);
  border-radius: var(--radius);
  overflow: visible;
  box-shadow: 0 10px 28px rgba(8, 16, 32, 0.18);
}

.poster-main__lower .poster-box {
  min-height: 0;
}

.poster-box__header {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.55rem 0.9rem;
  background: var(--dark-blue);
  color: var(--header-ink);
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  text-align: center;
  letter-spacing: 0.01em;
}

.poster-box__body {
  flex: 1 1 auto;
  overflow: visible;
  padding: 1rem 1.15rem 1.2rem;
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  line-height: 1.55;
}

.poster-box__body p {
  margin: 0 0 0.85em;
  max-width: 62rem;
}

.poster-box__body p:last-child {
  margin-bottom: 0;
}

.area-bg {
  min-height: 0;
  height: auto;
}

.area-bg .poster-box__body {
  flex: 0 0 auto;
}

.area-bg .poster-box__body p {
  font-size: 1.05em;
  line-height: 1.6;
}

.area-discussion {
  flex: none;
}

.area-discussion .poster-box__body {
  justify-content: flex-start;
}

.discussion-list {
  justify-content: flex-start;
}

/* Shared figures — support the text, don't dominate */
.full-col-fig {
  margin: 0.35rem auto 0.15rem;
  width: min(100%, 34rem);
}

.full-col-fig img {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
  border-radius: 4px;
}

.area-diversity .poster-box__body {
  padding: 0.75rem 0.85rem 1rem;
}

.area-diversity .full-col-fig {
  margin: 0;
  width: 100%;
  max-width: none;
}

.area-diversity .full-col-fig img {
  width: 100%;
  height: auto;
}

.fig-cap {
  margin: 0.5rem 0 0;
  font-size: 0.92em;
  line-height: 1.45;
  color: #1a2a3d;
}

.fig-cap strong {
  font-family: "Source Sans 3", system-ui, sans-serif;
}

/* Methods: readable copy beside compact figures */
.methods-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.method-row {
  display: grid;
  grid-template-columns: minmax(0, 13.5rem) minmax(0, 1fr);
  gap: 1rem 1.25rem;
  align-items: start;
}

.method-row--evolve {
  grid-template-columns: minmax(0, 1fr) minmax(0, 15rem);
}

.method-row__fig {
  margin: 0;
  min-width: 0;
  max-width: 15rem;
  justify-self: start;
}

.method-row__fig img {
  display: block;
  width: 100%;
  max-height: 11.5rem;
  height: auto;
  object-fit: contain;
  background: transparent;
  border-radius: 4px;
}

.method-row--evolve .method-row__fig img {
  max-height: 14rem;
}

.method-row__fig .fig-cap {
  margin-top: 0.4rem;
  font-size: 0.88em;
  line-height: 1.4;
}

.method-row__text {
  min-width: 0;
}

.method-row__text h3,
.method-block h3 {
  margin: 0 0 0.35rem;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.95em;
  color: #1f3f5f;
}

.method-row__text p,
.method-block > p {
  margin: 0;
  font-size: 0.9em;
  line-height: 1.45;
}

.method-block {
  text-align: center;
  margin-top: 0.35rem;
}

.method-block--left {
  text-align: left;
}

.method-block__head-c {
  text-align: center;
}

.method-block > p {
  margin: 0 auto 0.55rem;
  max-width: 42rem;
}

.method-block--left > p {
  margin: 0 0 0.55rem;
  max-width: none;
}

.method-block .full-col-fig {
  margin-top: 0.25rem;
  text-align: left;
}

.method-block--model .full-col-fig {
  width: min(100%, 28rem);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.method-block--model .full-col-fig .fig-cap {
  text-align: left;
}

/* Discussion */
.area-discussion {
  display: flex;
  flex-direction: column;
}

.area-discussion .poster-box__body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1rem;
  flex: 1 1 auto;
  min-height: 0;
  padding: 1rem 1.15rem 1.25rem;
}

.discussion-list {
  margin: 0;
  padding-left: 1.25rem;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.85rem;
}

.discussion-list li {
  margin: 0;
  line-height: 1.5;
}

.area-discussion .poster-box__body > p {
  margin: 0;
  font-size: 1.02em;
  line-height: 1.55;
  max-width: 48rem;
}

/* Acknowledgments */
.area-ack .poster-box__body {
  padding: 1rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.85rem;
}

.ack-funding,
.ack-thanks {
  margin: 0;
  font-size: 1.05em;
  line-height: 1.5;
}

.ack-footer-row {
  display: grid;
  grid-template-columns: 0.32fr 0.68fr;
  gap: 0.55rem;
  align-items: center;
  margin-top: 0.15rem;
  justify-content: space-between;
}

.ack-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.ack-stack a {
  display: block;
  line-height: 0;
  width: 100%;
}

.ack-stack a:focus-visible {
  outline: 2px solid #163a5f;
  outline-offset: 3px;
}

.ack-stack > img,
.ack-stack a img {
  width: 100%;
  max-width: 100%;
  height: auto;
}

.ack-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin-top: 0;
}

.ack-qr-link {
  display: block;
  line-height: 0;
  border: 2px solid #000;
  background: #fff;
  padding: 0.18rem;
}

.ack-qr-link img {
  display: block;
  width: 84px;
  height: 84px;
}

.ack-qr-caption {
  margin: 0;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.72em;
  text-align: center;
  line-height: 1.2;
}

.ack-qr-caption a {
  color: #163a5f;
  font-weight: 700;
}

.ack-qr-url {
  display: inline-block;
  margin-top: 0.1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: #163a5f;
}

.refs-title {
  margin: 0 0 0.45rem;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 1em;
}

.ref-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.82em;
}

.ref-list li {
  margin-bottom: 0.55em;
}

.ref-list a {
  color: #163a5f;
  word-break: break-word;
}

.ref-list--full {
  font-size: 0.95em;
  line-height: 1.4;
}

/* Supplemental materials below poster — collapsed by default */
.poster-materials {
  margin: 1.75rem auto 0;
  max-width: 52rem;
  font-family: "Source Sans 3", system-ui, sans-serif;
}

.poster-panel {
  margin: 0 0 0.7rem;
  background: var(--box-bg);
  border: var(--border);
  border-radius: 10px;
  color: var(--ink);
}

.poster-panel summary {
  cursor: pointer;
  padding: 0.8rem 1rem;
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
  background: var(--dark-blue);
  color: var(--header-ink);
  border-radius: 8px 8px 0 0;
}

.poster-panel:not([open]) summary {
  border-radius: 8px;
}

.poster-panel summary::-webkit-details-marker {
  display: none;
}

.poster-panel summary::before {
  content: "▸ ";
  display: inline-block;
  transition: transform 0.15s ease;
}

.poster-panel[open] summary::before {
  transform: rotate(90deg);
}

.poster-panel__body {
  padding: 1rem 1.1rem 1.15rem;
  border-top: none;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--box-bg);
}

.poster-panel__lede {
  margin: 0 0 0.65rem;
}

.poster-panel__actions {
  margin: 0.85rem 0 0;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.9rem;
}

.poster-panel__actions a,
.poster-panel__body a {
  color: #163a5f;
}

.poster-materials__quiet {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.85;
}

.poster-materials__quiet a {
  color: #c9d6e8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 960px) {
  .poster-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .poster-banner__title h1 {
    white-space: normal;
    font-size: clamp(1.15rem, 5.2vw, 1.7rem);
    letter-spacing: normal;
  }

  .poster-banner__logos-left,
  .poster-banner__logos-right {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .poster-banner__logos-left img,
  .poster-banner__logos-right img {
    max-height: 64px;
    width: auto;
    max-width: 140px;
  }

  .poster-banner__logos-left img {
    max-height: 78px;
    max-width: 200px;
  }

  .method-row,
  .method-row--evolve {
    grid-template-columns: 1fr;
  }

  .method-row__text {
    order: -1;
  }

  .method-row__fig {
    max-width: 16rem;
    justify-self: center;
  }

  .ack-footer-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .poster-shell {
    width: calc(100% - 0.75rem);
  }
}

@media print {
  .kbs-chrome {
    display: none;
  }

  body.kbs-poster-page {
    background: var(--page-bg);
  }

  .poster-shell {
    width: 100%;
    margin: 0;
  }

  .poster-box {
    break-inside: avoid;
  }
}


/* ---- Interactive Results (scoped; do not alter poster board layout) ---- */
.area-results {
  overflow: visible;
}

.area-results .poster-box__body {
  overflow: visible;
}

.results-interactive {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}

.results-compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-items: stretch;
  margin: 0;
  width: 100%;
}

.results-compare__media {
  margin: 0;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.results-compare__media img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(70vh, 36rem);
  height: auto;
  object-fit: contain;
  object-position: top center;
  border-radius: 4px;
  background: transparent;
}

.results-lede {
  margin: 0;
  text-align: left;
  font-size: 1.05em;
  line-height: 1.55;
  max-width: none;
}

.explore-help {
  margin: 0.15rem 0 0.35rem;
  padding: 0.85rem 1rem 0.95rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1.5px solid rgba(10, 10, 10, 0.35);
  border-radius: 8px;
}

.explore-help__lede {
  margin: 0 0 0.55rem;
  line-height: 1.45;
}

.explore-help h3 {
  margin: 0 0 0.45rem;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 1.12em;
  color: #1f3f5f;
}

.explore-help ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.4rem;
}

.explore-help li {
  line-height: 1.45;
}

.area-results .poster-box__body {
  padding: 1rem 1.05rem 1.15rem;
}

.model-panel {
  margin: 0;
  padding: 0.65rem 0.7rem 0.75rem;
  background: rgba(255, 255, 255, 0.45);
  border: 1.5px solid rgba(10, 10, 10, 0.45);
  border-radius: 8px;
}

.model-head {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.model-head h3 {
  margin: 0;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--ink);
}

.toggles,
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  align-items: center;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.82rem;
  color: var(--ink);
}

.toggles label,
.controls label {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
}

.controls select {
  min-width: 3.75rem;
  padding: 0.12rem 0.28rem;
  border: 1px solid #0a0a0a;
  border-radius: 3px;
  background: #fff;
  font: inherit;
}

.slider-wrap {
  flex: 1 1 10rem;
}

.slider-wrap input {
  width: min(22rem, 100%);
  vertical-align: middle;
}

.status {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.74rem;
}

.stack {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(160px, 0.72fr);
  gap: 0.4rem;
  align-items: stretch;
  min-height: min(78vh, 46rem);
}

.results-interactive .plot {
  min-height: 130px;
  border: 1px solid rgba(10, 10, 10, 0.4);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.88);
}

.bif-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  min-height: 0;
}

.bif.plot {
  min-height: clamp(28rem, 72vh, 46rem);
  max-height: none;
  flex: 1 1 auto;
  background: #b9d6f2;
}

.stab-cbar {
  padding: 0 0.2rem 0.05rem 2rem;
  font-size: 0.7rem;
  color: var(--ink);
}

.stab-cbar-bar {
  height: 9px;
  border-radius: 1px;
  background: linear-gradient(90deg, rgb(1, 26, 61), rgb(222, 237, 252));
  border: 1px solid rgba(20, 32, 51, 0.25);
}

.stab-cbar-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 0.08rem;
  font-size: 0.66rem;
}

.stab-cbar-label {
  text-align: center;
  font-size: 0.7rem;
}

.side {
  display: grid;
  grid-template-rows: 1fr 1fr 1fr auto;
  gap: 0.3rem;
  min-width: 0;
}

.side .plot {
  min-height: clamp(7.5rem, 22vh, 14rem);
}

.legend {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.55rem;
  color: var(--ink);
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.swatch {
  width: 0.8rem;
  height: 0.22rem;
  background: currentColor;
}

@media (max-width: 960px) {
  .results-compare {
    grid-template-columns: 1fr;
  }

  .results-compare__media img {
    max-height: min(65vh, 28rem);
    width: 100%;
  }

  .stack {
    grid-template-columns: minmax(0, 1.05fr) minmax(7.5rem, 0.7fr);
    gap: 0.3rem;
    min-height: 0;
  }

  .bif.plot {
    min-height: 300px;
    max-height: min(52vh, 24rem);
  }

  .side .plot {
    min-height: 92px;
  }

  .stab-cbar {
    padding-left: 1.2rem;
    font-size: 0.62rem;
  }
}

@media (max-width: 420px) {
  .stack {
    grid-template-columns: minmax(0, 1fr) minmax(6.5rem, 0.78fr);
    gap: 0.25rem;
  }

  .bif.plot {
    min-height: 280px;
    max-height: min(48vh, 22rem);
  }

  .side .plot {
    min-height: 84px;
  }

  .side {
    gap: 0.22rem;
  }
}
