@import url("./research-ui.css");

.ac-nodegrid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 15px;
  margin-bottom: 19px;
}
.ac-space {
  background: var(--rx-card);
  color: var(--rx-deep);
  padding: 23px;
}
.ac-space small {
  font-family: monospace;
}
.ac-space h2 {
  margin: 7px 0 15px;
}
.ac-meter {
  height: 20px;
  background: var(--rx-soft);
  border: 1px solid var(--rx-rule);
}
.ac-meter i {
  height: 100%;
  display: block;
  background: var(--rx-accent);
}
.ac-space p {
  margin-top: 6px;
}

@media (max-width: 700px) {
  .ac-nodegrid {
    grid-template-columns: 1fr;
  }
}

.ac-space {
  border: 1px solid var(--rx-rule);
  border-radius: 5px;
}
.ac-meter {
  height: 10px;
  border-radius: 8px;
  overflow: hidden;
}
.ac-library {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.82fr);
  gap: clamp(13px, 3vw, 36px);
  align-items: start;
}
.ac-stacks {
  background: #e7e5d7;
  color: #26362b;
  border: 1px solid #9ca796;
  padding: clamp(16px, 2.9vw, 31px);
}
.ac-stacks header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
}
.ac-stacks header small,
.ac-slip > small,
.ac-shelf button small,
.ac-shelf button span {
  font:
    600 11px/1.2 ui-monospace,
    monospace;
  letter-spacing: 0.04em;
}
.ac-stacks h1 {
  font:
    500 clamp(29px, 4.1vw, 51px)/1 Georgia,
    serif;
  letter-spacing: -0.065em;
}
.ac-stacks header span {
  font-size: 12px;
}
.ac-shelf {
  display: flex;
  align-items: end;
  min-height: 195px;
  gap: 4px;
  border-bottom: 9px solid #78684d;
  box-shadow: 0 3px 0 #484336;
  overflow-x: auto;
  padding: 13px 4px 0;
}
.ac-shelf button {
  position: relative;
  flex: 0 0 76px;
  width: 76px;
  min-height: var(--shelf-height);
  padding: 8px 6px;
  border: 1px solid #694b36;
  border-radius: 3px 3px 0 0;
  background: #9c4d35;
  color: #fff3d9;
  display: grid;
  text-align: center;
  align-content: space-between;
  justify-items: center;
  box-shadow: inset 4px 0 #ffffff26;
}
.ac-shelf button:nth-child(3n + 2) {
  background: #345554;
  color: #f3f3dc;
  border-color: #2e4b47;
}
.ac-shelf button:nth-child(3n + 3) {
  background: #8b713d;
  color: white;
  border-color: #856633;
}
.ac-shelf button[aria-pressed="true"] {
  box-shadow:
    inset 0 0 0 2px #eed898,
    inset 5px 0 #bac3ac;
  transform: translateY(-3px);
}
.ac-shelf button b {
  font:
    600 17px/1 Georgia,
    serif;
}
.ac-shelf button span {
  border-top: 1px solid currentColor;
  padding-top: 3px;
}
.ac-slip {
  border: 1px solid #aaac92;
  border-top: 5px solid #495e4b;
  background: #faf6df;
  color: #2b3327;
  padding: 12px 16px;
  margin-top: 15px;
}
.ac-slip h2 {
  font:
    600 22px/1.15 Georgia,
    serif;
  margin: 3px 0;
}
.ac-slip p {
  font-size: 13px;
}
.ac-cards {
  padding: 18px 10px;
}
.ac-cards h2 {
  font:
    500 26px/1.2 Georgia,
    serif;
}
.ac-cards .rx-list {
  display: grid;
  gap: 5px;
}
.ac-cards .rx-list li {
  border: 1px solid var(--rx-rule);
  border-inline-start: 5px double var(--rx-rule);
  padding: 8px 12px;
  background: var(--rx-card);
}
.ac-cards > p {
  margin-top: 10px;
  color: var(--rx-muted);
  font-size: 13px;
}
@media (max-width: 700px) {
  .ac-library {
    grid-template-columns: 1fr;
  }
  .ac-shelf {
    min-height: 175px;
  }
}
.ac-shelf button {
  width: 70px;
  flex-basis: 70px;
}
.ac-shelf button b {
  font-size: 15px;
  line-height: 1.03;
  overflow-wrap: normal;
  hyphens: auto;
}
@media (min-width: 701px) {
  .ac-shelf button {
    flex: 1 1 0;
    min-width: 64px;
    max-width: 100px;
  }
}
[data-theme="dark"] .ac-stacks {
  background: #303d34;
  color: #e5e5cd;
  border-color: #606d5c;
}
[data-theme="dark"] .ac-slip {
  background: #444b3b;
  color: #f6f1d7;
  border-color: #68745c;
  border-top-color: #bec9a7;
}
