/* =========================================================
   SHAHD ACADEMY — module runner UI
   Split shell: chapter list on the left, chapter body on the right.
   Lab chapters split again into brief + live environment.
   ========================================================= */

.ac-shell {
  display: grid;
  grid-template-columns: 288px 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  min-height: 640px;
}

/* ---------- sidebar ---------- */
.ac-side {
  background: var(--paper-2);
  border-inline-end: 1px solid var(--line);
  padding: 26px 0 20px;
}
.ac-side-head {
  padding: 0 24px 20px;
  border-bottom: 1px solid var(--line);
}
.ac-side-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.24rem;
  line-height: 1.2;
  margin: 6px 0 16px;
  color: var(--ink);
}
.ac-kicker {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0;
}
.ac-progress {
  height: 5px;
  background: var(--sage-2);
  border-radius: 3px;
  overflow: hidden;
}
.ac-progress-bar {
  height: 100%;
  width: 0;
  background: var(--brand);
  border-radius: 3px;
  transition: width 0.5s var(--ease);
}
.ac-progress-t {
  font-size: 0.74rem;
  color: var(--smoke);
  margin: 8px 0 0;
}

.ac-toc {
  list-style: none;
  margin: 0;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ac-toc-i {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: none;
  background: none;
  border-radius: 9px;
  cursor: pointer;
  text-align: start;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink-2);
  transition: background 0.25s var(--ease);
}
.ac-toc-i:hover:not(:disabled) {
  background: var(--sage-tint);
}
.ac-toc-i.on {
  background: var(--sage-tint);
  color: var(--ink);
  font-weight: 600;
}
.ac-toc-i:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.ac-toc-n {
  width: 22px;
  height: 22px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sage-2);
  color: var(--brand-deep);
  font-size: 0.7rem;
}
.ac-toc-i.done .ac-toc-n {
  background: var(--brand);
  color: var(--paper);
}
.ac-toc-t {
  flex: 1;
  min-width: 0;
}
.ac-toc-tag {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 2px 7px;
}

/* ---------- chapter body ---------- */
.ac-main {
  padding: 40px 44px 48px;
  min-width: 0;
}
.ac-chapter h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 8px 0 26px;
  color: var(--ink);
  text-wrap: balance;
}
.ac-body {
  font-size: 1rem;
  line-height: 1.72;
}
.ac-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.2em 0;
}
.ac-body th,
.ac-body td {
  text-align: start;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
}
.ac-body th {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--smoke);
}

/* ---------- questions ---------- */
.ac-qs {
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.ac-qs-h {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--smoke);
  margin: 0 0 20px;
}
.ac-q {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
  margin-bottom: 14px;
  transition: border-color 0.3s var(--ease);
}
.ac-q.right {
  border-color: var(--brand-soft);
  background: var(--sage-tint);
}
.ac-q-t {
  font-size: 0.98rem;
  color: var(--ink);
  margin: 0 0 14px;
  font-weight: 500;
}
.ac-opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ac-opt {
  text-align: start;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink-2);
  transition: 0.22s var(--ease);
}
.ac-opt:hover:not(:disabled) {
  border-color: var(--brand-soft);
  background: var(--white);
}
.ac-opt.picked {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--paper);
}
.ac-opt.wrong {
  border-color: #c0705f;
  color: #a2503f;
}
.ac-opt:disabled {
  cursor: default;
  opacity: 0.75;
}
.ac-fill {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.ac-in {
  flex: 1;
  min-width: 200px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-family: var(--sans);
  font-size: 0.9rem;
  background: var(--white);
  color: var(--ink);
}
.ac-in:focus {
  outline: 2px solid var(--brand-soft);
  outline-offset: 1px;
}
.ac-submit {
  padding: 11px 22px;
  font-size: 0.82rem;
}
.ac-hint-b {
  background: none;
  border: none;
  color: var(--brand);
  font-family: var(--sans);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 10px 0 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ac-hint {
  font-size: 0.85rem;
  color: var(--smoke);
  margin: 8px 0 0;
  padding-inline-start: 12px;
  border-inline-start: 2px solid var(--sage);
}
.ac-fb {
  font-size: 0.87rem;
  margin: 14px 0 0;
  padding: 11px 14px;
  border-radius: 8px;
  line-height: 1.5;
}
.ac-fb.ok {
  background: var(--sage-2);
  color: var(--ink);
}
.ac-fb.no {
  background: #f6e6e1;
  color: #8d4634;
}
.ac-next {
  margin-top: 26px;
}
.ac-flag {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.86rem;
  background: var(--ink);
  color: var(--sage-2);
  padding: 13px 17px;
  border-radius: 9px;
  margin: 0 0 18px;
  word-break: break-all;
}

/* ---------- lab ---------- */
.ac-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 26px;
  align-items: start;
}
/* lesson chapters: reading on the left, questions parked on the right so the
   learner never scrolls between the explanation and the thing being asked */
.ac-chapter .ac-split {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
}
.ac-chapter.ac-lab .ac-split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
}
.ac-read {
  min-width: 0;
}
.ac-aside {
  min-width: 0;
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-inline-end: 4px;
}
.ac-aside .ac-qs {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.ac-aside::-webkit-scrollbar {
  width: 6px;
}
.ac-aside::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 3px;
}
.ac-brief {
  min-width: 0;
}
.ac-env {
  min-width: 0;
  position: sticky;
  top: 96px;
}
.ac-dash {
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  background: var(--white);
}
.ac-dash-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 17px;
  background: var(--ink);
  color: var(--paper);
}
.ac-dash-acct {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
}
.ac-dash-per {
  font-size: 0.74rem;
  opacity: 0.72;
}
.ac-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.ac-tab {
  padding: 12px 19px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--smoke);
  border-bottom: 2px solid transparent;
}
.ac-tab.on {
  color: var(--ink);
  border-bottom-color: var(--brand);
  background: var(--white);
}
.ac-pane {
  overflow-x: auto;
}
.ac-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
  font-variant-numeric: tabular-nums;
  min-width: 460px;
}
.ac-table th,
.ac-table td {
  text-align: start;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}
.ac-table th {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--smoke);
  background: var(--paper-2);
  position: sticky;
  top: 0;
}
.ac-table th.s {
  cursor: pointer;
  user-select: none;
}
.ac-table th.s:hover {
  color: var(--brand);
}
.ac-table td.zero {
  color: #a2503f;
  font-weight: 700;
}
.ac-table tr.blocked {
  opacity: 0.42;
  text-decoration: line-through;
}
.ac-bl {
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  padding: 2px 6px;
  border-radius: 100px;
  text-decoration: none;
  display: inline-block;
  vertical-align: middle;
}
.ac-match {
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 2px 8px;
  color: var(--ink-2);
}
.ac-match.broad {
  background: #f6e6e1;
  border-color: #e3c4b9;
  color: #8d4634;
}
.ac-match.phrase {
  background: var(--sage-tint);
}

.ac-neg {
  padding: 17px;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}
.ac-neg-h {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--smoke);
  margin: 0 0 11px;
}
.ac-neg-add {
  display: flex;
  gap: 8px;
}
.ac-neg-add input {
  flex: 1;
  min-width: 0;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 0.85rem;
  background: var(--white);
  color: var(--ink);
}
.ac-neg-add .btn {
  padding: 9px 17px;
  font-size: 0.78rem;
}
.ac-neg-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.ac-neg-list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 100px;
  padding: 5px 8px 5px 13px;
  font-size: 0.78rem;
}
.ac-neg-list button {
  background: none;
  border: none;
  color: var(--sage);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 3px;
}
.ac-neg-out {
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.ac-neg-win {
  font-size: 0.88rem;
  color: var(--ink);
  margin: 0;
}
.ac-neg-win strong {
  color: var(--brand-deep);
  font-size: 1.05rem;
}
.ac-neg-warn {
  font-size: 0.79rem;
  color: #8d4634;
  margin: 8px 0 0;
  line-height: 1.45;
}

/* ---------- exam ---------- */
.ac-exam-note {
  font-size: 0.92rem;
  color: var(--ink-2);
  margin: 0 0 8px;
}
.ac-result {
  margin-top: 22px;
  padding: 24px 26px;
  border-radius: 13px;
  border: 1px solid var(--line);
}
.ac-result.pass {
  background: var(--sage-tint);
  border-color: var(--brand-soft);
}
.ac-result.fail {
  background: #f9efec;
  border-color: #e3c4b9;
}
.ac-score {
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--ink);
  margin: 0 0 6px;
}
.ac-result p:last-child {
  margin: 0;
  font-size: 0.93rem;
  color: var(--ink-2);
}

@media (max-width: 1080px) {
  .ac-split,
  .ac-chapter .ac-split,
  .ac-chapter.ac-lab .ac-split {
    grid-template-columns: 1fr;
  }
  .ac-env {
    position: static;
    order: -1;
  }
  .ac-aside {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .ac-aside .ac-qs {
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 860px) {
  .ac-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .ac-side {
    border-inline-end: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
  }
  .ac-toc {
    flex-direction: row;
    overflow-x: auto;
    padding: 12px;
  }
  .ac-toc li {
    flex: none;
  }
  .ac-toc-t {
    display: none;
  }
  .ac-toc-i {
    padding: 9px 11px;
  }
  .ac-main {
    padding: 28px 22px 36px;
  }
}

/* =========================================================
   ROOM TO BREATHE — overrides the cramped first pass.
   One wide column, larger type, full-bleed screenshots.
   ========================================================= */
.ac-main {
  padding: 56px 60px 72px;
}
.ac-chapter {
  max-width: 840px;
  margin-inline: auto;
}
.ac-chapter h1 {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  margin: 14px 0 38px;
  line-height: 1.06;
}
.ac-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

/* body copy: bigger and looser */
.ac-body {
  font-size: 1.18rem;
  line-height: 1.82;
  color: var(--ink-2);
}
.ac-body > * + * {
  margin-top: 1.35em;
}
.ac-body h2 {
  font-size: 1.7rem;
  margin-top: 2.2em;
}
.ac-body h3 {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brand);
  margin-top: 2em;
}
.ac-body blockquote {
  margin: 1.9em 0;
  padding: 20px 26px;
  border-inline-start: 3px solid var(--brand);
  background: var(--sage-tint);
  border-radius: 0 10px 10px 0;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--ink);
}
.ac-body ul,
.ac-body ol {
  padding-inline-start: 1.4em;
  display: flex;
  flex-direction: column;
  gap: 0.75em;
}
.ac-body hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.6em 0;
}

/* screenshots: full width of the column, and allowed to break out wider */
.shot-fig {
  margin: 2.6em 0;
  padding: 0;
}
.shot-fig picture {
  display: block;
}
.shot-fig img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(43, 33, 28, 0.1);
}
.shot-fig figcaption {
  font-family: var(--sans);
  font-size: 0.86rem;
  color: var(--smoke);
  margin-top: 14px;
  text-align: center;
}
@media (min-width: 1180px) {
  .shot-fig {
    width: calc(100% + 150px);
    margin-inline: -75px;
  }
}
.post-fig {
  margin: 2.6em 0;
}
.post-fig-art {
  padding: 32px 28px;
  border-radius: 14px;
}

/* questions: a clear block, not a cramped rail */
.ac-qs {
  margin-top: 60px;
  padding-top: 44px;
  border-top: 2px solid var(--line);
}
.ac-qs-h {
  font-size: 0.76rem;
  letter-spacing: 0.15em;
  margin-bottom: 26px;
}
.ac-q {
  padding: 28px 30px;
  border-radius: 14px;
  margin-bottom: 18px;
}
.ac-q-t {
  font-size: 1.08rem;
  line-height: 1.5;
  margin-bottom: 18px;
}
.ac-opt {
  padding: 14px 18px;
  font-size: 0.98rem;
  border-radius: 10px;
}
.ac-in {
  padding: 14px 18px;
  font-size: 0.98rem;
}
.ac-fb {
  font-size: 0.94rem;
  padding: 14px 17px;
  margin-top: 18px;
}
.ac-next {
  margin-top: 34px;
}
.ac-next .btn {
  padding: 15px 32px;
  font-size: 0.9rem;
}

/* live environment banner */
.ac-live {
  margin: 0 0 40px;
}
.ac-live-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 24px 28px;
  background: var(--ink);
  border-radius: 14px;
}
.ac-live-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #5fd39a;
  flex: none;
  box-shadow: 0 0 0 4px rgba(95, 211, 154, 0.22);
}
.ac-live-copy {
  flex: 1;
  min-width: 220px;
}
.ac-live-h {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--paper);
  margin: 0;
}
.ac-live-n {
  font-size: 0.85rem;
  color: #b9b0a7;
  margin: 5px 0 0;
  line-height: 1.5;
}
.ac-live-row .btn {
  flex: none;
}
.ac-lab .ac-qs {
  margin-top: 44px;
}

/* sidebar: a little more room */
.ac-shell {
  grid-template-columns: 310px 1fr;
}
.ac-toc-i {
  padding: 13px 14px;
  font-size: 0.88rem;
}

@media (max-width: 1080px) {
  .ac-main {
    padding: 38px 30px 52px;
  }
  .ac-body {
    font-size: 1.08rem;
    line-height: 1.75;
  }
  .shot-fig {
    width: 100%;
    margin-inline: 0;
  }
}
@media (max-width: 860px) {
  .ac-shell {
    grid-template-columns: 1fr;
  }
  .ac-main {
    padding: 30px 20px 44px;
  }
  .ac-chapter h1 {
    font-size: clamp(1.7rem, 6vw, 2.1rem);
    margin-bottom: 26px;
  }
  .ac-q {
    padding: 22px 20px;
  }
  .ac-qs {
    margin-top: 44px;
    padding-top: 32px;
  }
}

/* ---------- UTM builder lab ---------- */
.ac-utm {
  background: var(--ink);
  border-radius: 16px;
  padding: 30px 32px;
  margin-bottom: 40px;
  color: var(--paper);
}
.ac-utm-h {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 22px;
}
.ac-utm-f {
  display: block;
  margin-bottom: 14px;
}
.ac-utm-f span {
  display: block;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  color: #b9b0a7;
  margin-bottom: 6px;
}
.ac-utm-f input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #46392f;
  border-radius: 9px;
  background: #3a2f27;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.95rem;
}
.ac-utm-f input:focus {
  outline: 2px solid var(--brand-soft);
  outline-offset: 1px;
  border-color: var(--brand-soft);
}
.ac-utm-lbl {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 24px 0 8px;
}
.ac-utm-out {
  display: block;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.6;
  background: #3a2f27;
  border: 1px solid #46392f;
  border-radius: 9px;
  padding: 14px 16px;
  color: #e8dcd2;
  word-break: break-all;
}
.ac-utm-verdict {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid #46392f;
}
.ac-utm-ch {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.1;
  color: #8fd9b6;
  margin: 0 0 8px;
}
.ac-utm-ch.bad {
  color: #e8a08f;
}
.ac-utm-why {
  font-size: 0.9rem;
  color: #c7bdb4;
  margin: 0;
  line-height: 1.55;
  max-width: 60ch;
}
.ac-utm-sm {
  font-size: 0.82rem;
  color: #9d9188;
  margin: 12px 0 0;
}
.ac-utm-sm code {
  background: #3a2f27;
  padding: 2px 7px;
  border-radius: 5px;
  color: #e8dcd2;
  font-size: 0.94em;
}
@media (max-width: 640px) {
  .ac-utm {
    padding: 22px 20px;
  }
  .ac-utm-ch {
    font-size: 1.6rem;
  }
}

/* ---------- skill path ---------- */
.path-outcome {
  background: var(--sage-tint);
  border: 1px solid var(--brand-soft);
  border-radius: 14px;
  padding: 26px 30px;
  margin-bottom: 44px;
  max-width: 760px;
}
.path-outcome-k {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 8px;
}
.path-outcome-t {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
}
.path-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: none;
}
.path-step {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 26px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.path-step:last-child {
  border-bottom: 1px solid var(--line);
}
.path-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.4rem;
  color: var(--brand);
  line-height: 1;
}
.path-body {
  min-width: 0;
  max-width: 660px;
}
.path-meta {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--smoke);
  margin: 0 0 10px;
}
.path-body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 12px;
}
.path-sum {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 20px;
}
@media (max-width: 700px) {
  .path-step {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 26px 0;
  }
  .path-num {
    font-size: 1.7rem;
  }
}

/* ---------- tables in lesson bodies ---------- */
.table-wrap {
  overflow-x: auto;
  margin: 1.9em 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
  min-width: 460px;
}
.table-wrap th,
.table-wrap td {
  text-align: start;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.table-wrap thead th {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--smoke);
  background: var(--paper-2);
  white-space: nowrap;
}
.table-wrap tbody tr:last-child td {
  border-bottom: none;
}
.table-wrap tbody tr:nth-child(even) {
  background: var(--paper-2);
}
.table-wrap td code {
  background: var(--sage-tint);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.9em;
}
/* svg diagrams must not clip their right edge */
.post-fig svg {
  min-width: 560px;
}
