@import url("./foundation.css");
.eb-split {
  display: grid;
  grid-template-columns: 31% 1fr;
}
.eb-split aside {
  padding: 24px;
  background: color-mix(in srgb, var(--f-panel), var(--f-rule) 23%);
  border-right: 1px solid var(--f-rule);
}
.eb-split aside > button {
  width: 100%;
  text-align: left;
  margin-top: 7px;
}
.eb-doc {
  padding: clamp(18px, 4vw, 50px);
}
.eb-doc h2,
.eb-paragraph blockquote,
.eb-brief {
  font-family: Georgia, serif;
}
.eb-paragraph {
  border-top: 1px solid var(--f-rule);
  padding: 14px 0;
}
.eb-paragraph blockquote {
  font-size: clamp(1.15rem, 1.9vw, 1.7rem);
  line-height: 1.35;
  margin: 4px 0 12px;
}
.eb-graph {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--f-rule);
  align-items: center;
}
.eb-graph > b {
  font:
    1.4rem Georgia,
    serif;
  background: var(--f-panel);
  padding: 18px;
}
.eb-edge {
  font: 0.9rem monospace;
}
.eb-brief {
  padding: 18px;
  border: 1px solid var(--f-rule);
  font-size: 1.1rem;
}
.eb-app .fa-box + .fa-box {
  margin-top: 15px;
}
@media (max-width: 660px) {
  .eb-split,
  .eb-graph {
    grid-template-columns: 1fr;
  }
  .eb-split aside {
    padding: 14px;
  }
  .eb-split aside > button {
    width: auto;
  }
}
.eb-split aside {
  background: var(--fx-sidebar, var(--f-paper));
}
.eb-split aside > button {
  font-size: 0.85rem;
  min-height: 32px;
  margin-top: 3px;
}
.eb-retained {
  border-top: 1px solid var(--f-rule);
  padding: 10px 0;
}
.eb-retained strong {
  font-size: 0.85rem;
  color: var(--f-sub);
}
.eb-retained p {
  font:
    1.02rem/1.5 Georgia,
    serif;
}
.eb-split {
  grid-template-columns: minmax(190px, 25%) minmax(0, 1fr);
}
.eb-split aside:not(.eb-slip) {
  background: var(--fx-sidebar, var(--f-paper));
}
.eb-doc {
  padding: clamp(16px, 2.6vw, 30px);
  background: #d2c8b3;
  background-image: repeating-linear-gradient(
    96deg,
    transparent 0 10px,
    #bfb29826 11px 12px
  );
  min-width: 0;
}
.eb-folio {
  position: relative;
  background: #faf3dd;
  color: #322f26;
  border: 1px solid #bbac90;
  padding: clamp(15px, 2.8vw, 32px);
  box-shadow:
    3px 3px 0 #e0d6bd,
    4px 4px 0 #bcae92;
}
.eb-folio > .fa-kicker {
  color: #625a47;
  font-size: 0.75rem;
}
.eb-folio h2 {
  font:
    600 clamp(1.65rem, 3vw, 2.7rem)/1.03 Georgia,
    serif;
}
.eb-paragraph {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 6px 12px;
  padding: 12px 0;
  border-color: #baa98c;
}
.eb-paragraph > small {
  grid-column: 1/-1;
  font:
    700 0.73rem ui-monospace,
    monospace;
  color: #765237;
}
.eb-paragraph blockquote {
  grid-column: 1/-1;
  font:
    1.13rem/1.4 Georgia,
    serif;
  margin: 0;
}
.eb-paragraph[data-selected="true"] blockquote {
  text-decoration: underline;
  text-decoration-color: #d2ad4e;
  text-underline-offset: 5px;
}
.eb-app .eb-paragraph > button {
  justify-self: start;
  grid-column: 1/-1;
  min-height: 28px;
  font-size: 0.78rem;
  background: #f1e7c8;
  color: #493c2c;
  border-color: #b3a383;
}
.eb-app .eb-paragraph > button[aria-pressed="true"] {
  background: #eadb9d;
  color: #352d25;
}
.eb-split .eb-slip {
  position: relative;
  grid-column: 1/-1;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 12px;
  border: 0;
  border-inline-start: 3px solid #a56e41;
  background: #efe5c5;
  color: #41372b;
  margin: 0.25rem 0 0;
  padding: 8px 10px;
}
.eb-slip code,
.eb-slip strong {
  font:
    0.75rem ui-monospace,
    monospace;
}
.eb-slip strong {
  font-weight: 700;
}
.eb-slip p {
  flex: 1 0 100%;
  margin: 0;
  font:
    0.85rem/1.35 Georgia,
    serif;
}
.eb-doc > form {
  color: #352e23;
}
:root[data-theme="dark"] .eb-doc {
  background-color: #39342c;
}
:root[data-theme="dark"] .eb-doc > form {
  color: #f4eee2;
}
@media (max-width: 660px) {
  .eb-split {
    grid-template-columns: 1fr;
  }
  .eb-split > aside {
    order: 2;
  }
  .eb-doc {
    order: 1;
  }
  .eb-doc > form {
    gap: 0.4rem;
  }
}
.eb-figure {
  margin: 12px 0 15px;
  padding: 10px 12px;
  background: #ede5ca;
  border: 1px solid #b6aa85;
  border-left: 3px solid #9c7349;
}
.eb-figure figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.eb-figure figcaption strong {
  font:
    600 1.03rem Georgia,
    serif;
}
.eb-figure figcaption small {
  font:
    0.72rem ui-monospace,
    monospace;
}
.eb-tally {
  display: grid;
  grid-template-columns: minmax(75px, 1fr) minmax(70px, 2fr) auto;
  align-items: center;
  gap: 6px;
  border-block-start: 1px solid #c9bc99;
  padding: 4px 0;
  font:
    0.75rem ui-monospace,
    monospace;
}
.eb-tally svg {
  width: 100%;
  max-height: 19px;
  stroke: #6c4a34;
  stroke-width: 2;
}
.eb-app .eb-figure button {
  min-height: 26px;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: #4d402d;
  text-decoration: underline;
  font:
    0.75rem ui-monospace,
    monospace;
}
