/* ReSurge Academy shared components. Views use these and must not restyle them. */

/* ---------- icon ---------- */
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 24px; height: 24px; }
.icon--xl { width: 32px; height: 32px; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
@keyframes ja-spin { to { transform: rotate(360deg); } }
.icon--spin { animation: ja-spin 0.9s linear infinite; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--r-3);
  font-size: var(--fs-16); font-weight: var(--fw-semi); line-height: 1.2; text-align: center; text-decoration: none;
  border: 1.5px solid transparent; color: var(--ink); background: transparent; cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { translate: 0 1px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; translate: none; }
.btn[aria-busy="true"] { cursor: progress; }

.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover:not(:disabled) { background: var(--brand-hover); color: var(--on-brand); }
.btn--primary:active:not(:disabled) { background: var(--brand-active); }

.btn--secondary { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn--secondary:hover:not(:disabled) { background: var(--bg-tint); color: var(--ink); }

.btn--quiet { color: var(--brand-ink); }
.btn--quiet:hover:not(:disabled) { background: var(--bg-tint-2); color: var(--brand-ink); }

.btn--danger { background: var(--danger); color: var(--on-danger); }
.btn--danger:hover:not(:disabled) { background: var(--danger); filter: brightness(0.92); color: var(--on-danger); }
.btn--danger-quiet { color: var(--danger); }
.btn--danger-quiet:hover:not(:disabled) { background: var(--danger-tint); color: var(--danger); }

.btn--on-deep { border-color: var(--deep-line); color: var(--on-deep); }
.btn--on-deep:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); color: var(--on-deep); }
.btn--on-deep.btn--primary { background: #FFFFFF; border-color: #FFFFFF; color: #A82C26; }
.btn--on-deep.btn--primary:hover:not(:disabled) { background: #EDE2D1; color: #A82C26; }

.btn--sm { min-height: 36px; font-size: var(--fs-14); padding: 0 12px; }
.btn--block { display: flex; width: 100%; }
.btn--icon { width: 44px; padding: 0; }
.btn--icon.btn--sm { width: 36px; }

/* ---------- fields ---------- */
.field { display: block; }
.field + .field, .field + .field-row, .field-row + .field, .field-row + .field-row { margin-top: var(--sp-4); }
.field__label { display: block; margin-bottom: 6px; font-size: var(--fs-14); font-weight: var(--fw-semi); color: var(--ink); }
.field__control { position: relative; }
.field__input {
  display: block; width: 100%; min-height: 44px; padding: 10px 12px;
  font-size: var(--fs-16); line-height: 1.4; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--r-3);
  transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
  appearance: none; -webkit-appearance: none;
}
.field__input::placeholder { color: var(--ink-3); opacity: 1; }
.field__input:hover:not(:disabled) { border-color: var(--ink-3); }
.field__input:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.field__input:disabled, .field__input[readonly] { background: var(--bg-tint); color: var(--ink-2); cursor: not-allowed; }
.field__input--area { min-height: 120px; resize: vertical; }
.field__hint { margin-top: 6px; font-size: var(--fs-13); color: var(--ink-3); }
.field__error { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; font-size: var(--fs-13); color: var(--danger); }
.field__error .icon { width: 16px; height: 16px; margin-top: 1px; }
.field.is-invalid .field__input { border-color: var(--danger); }
.field__affix {
  position: absolute; top: 0; right: 0; width: 44px; height: 100%;
  display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-3); color: var(--ink-2);
}
.field__affix:hover { color: var(--ink); background: var(--bg-tint); }
.field__control:has(.field__affix) .field__input { padding-right: 48px; }
.field-row { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
@media (min-width: 480px) { .field-row { grid-template-columns: 1fr 1fr; } }

.select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A8BA5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}

.checkbox { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 10px 0; font-size: var(--fs-14); line-height: 1.4; cursor: pointer; }
.checkbox input { width: 20px; height: 20px; margin: 0; flex: none; }

.switch {
  position: relative; flex: none; width: 40px; height: 24px; padding: 0; border-radius: var(--r-2);
  background: var(--line-strong); transition: background-color var(--dur-2) var(--ease-out);
}
.switch::before {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: var(--r-1);
  background: #FFFFFF; transition: translate var(--dur-2) var(--ease-out);
}
.switch[aria-checked="true"] { background: var(--brand); }
.switch[aria-checked="true"]::before { translate: 16px 0; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 44px; }

/* ---------- segmented control ---------- */
.seg { display: inline-flex; gap: 2px; padding: 4px; background: var(--bg-tint); border-radius: var(--r-3); max-width: 100%; }
.seg--scroll { overflow-x: auto; scrollbar-width: none; }
.seg--scroll::-webkit-scrollbar { display: none; }
.seg--block { display: flex; }
.seg--block .seg__opt { flex: 1; }
.seg__opt {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none;
  min-height: 36px; padding: 0 14px; border-radius: var(--r-2);
  font-size: var(--fs-14); font-weight: var(--fw-semi); color: var(--ink-2); white-space: nowrap;
  transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.seg__opt:hover { color: var(--ink); }
.seg__opt[aria-selected="true"], .seg__opt[aria-checked="true"], .seg__opt.is-selected { background: var(--surface); box-shadow: var(--sh-1); color: var(--ink); }

/* ---------- chip, tag, badge, avatar ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: var(--r-2);
  font-size: var(--fs-13); font-weight: var(--fw-semi); line-height: 1; white-space: nowrap;
  background: var(--bg-tint-2); color: var(--ink-2);
}
.chip .icon { width: 14px; height: 14px; }
.chip--ok { background: var(--ok-tint); color: var(--ok); }
.chip--warn { background: var(--warn-tint); color: var(--warn); }
.chip--danger { background: var(--danger-tint); color: var(--danger); }
.chip--brand { background: var(--bg-tint-2); color: var(--brand-ink); }
.chip--locked { background: transparent; color: var(--ink-3); }
button.chip { min-height: 32px; padding: 0 12px; cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out); }
button.chip:hover { background: var(--bg-tint); color: var(--ink); }
button.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

.tag {
  display: inline-block; padding: 2px 6px; border-radius: var(--r-2); border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: var(--fs-12); font-weight: var(--fw-medium); color: var(--ink-2); line-height: 1.4;
}

.badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: var(--r-2); background: var(--brand); color: var(--on-brand);
  font-family: var(--font-mono); font-size: 11px; font-weight: var(--fw-semi); line-height: 1;
}

.avatar {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: none;
  border-radius: var(--r-round); background: var(--bg-tint-2); color: var(--brand-ink); font-weight: var(--fw-semi); font-size: var(--fs-16);
}

/* ---------- banner ---------- */
.banner {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-radius: var(--r-4);
  background: var(--bg-tint); border: 1px solid var(--line); color: var(--ink); font-size: var(--fs-14); line-height: 1.45;
}
.banner > .icon { margin-top: 1px; color: var(--brand-ink); }
.banner__body { flex: 1; }
.banner .btn { align-self: center; flex: none; }
.banner--ok { background: var(--ok-tint); }
.banner--ok > .icon { color: var(--ok); }
.banner--warn { background: var(--warn-tint); }
.banner--warn > .icon { color: var(--warn); }
.banner--danger { background: var(--danger-tint); }
.banner--danger > .icon { color: var(--danger); }

/* ---------- reading pieces ---------- */
.statline { font-size: var(--fs-17); line-height: 1.5; color: var(--ink-2); }
.statline .num { color: var(--ink); font-weight: var(--fw-semi); }
@media (min-width: 1024px) { .statline { font-size: var(--fs-20); } }

.quote {
  position: relative; max-width: 40ch; padding-top: 14px; margin: 0;
  font-size: var(--fs-20); font-weight: var(--fw-semi); line-height: 1.35; color: var(--ink);
}
.quote::before { content: ""; position: absolute; top: 0; left: 0; width: 24px; height: 2px; background: var(--brand); }

.page-head { display: grid; gap: var(--sp-2); margin-bottom: var(--sp-8); }
.page-head h1 { grid-column: 1; }
.page-head__lede { color: var(--ink-2); max-width: 60ch; font-size: var(--fs-17); }
.page-head__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin-top: var(--sp-2); }
@media (min-width: 768px) {
  .page-head { grid-template-columns: 1fr auto; align-items: end; column-gap: var(--sp-6); }
  .page-head__lede { grid-column: 1; }
  .page-head__actions { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; justify-content: flex-end; }
}

.crumb {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px;
  font-size: var(--fs-14); font-weight: var(--fw-semi); color: var(--ink-2); text-decoration: none;
}
.crumb:hover { color: var(--ink); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0; }

.actionbar {
  position: sticky; bottom: 0; z-index: var(--z-action);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding: 12px 16px; padding-bottom: calc(12px + env(safe-area-inset-bottom));
  background: var(--surface-raised); border-top: 1px solid var(--line); box-shadow: var(--sh-2);
}
.actionbar__text { font-size: var(--fs-14); color: var(--ink-2); }
.actionbar__buttons { display: flex; align-items: center; gap: var(--sp-2); margin-left: auto; }

/* ---------- popover, menu ---------- */
.popover {
  position: fixed; z-index: var(--z-pop); min-width: 12rem; max-width: calc(100vw - 16px);
  padding: 8px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--r-4); box-shadow: var(--sh-3);
  opacity: 0; translate: 0 6px;
  transition: opacity var(--dur-3) var(--ease-out), translate var(--dur-3) var(--ease-out);
}
.popover.is-open { opacity: 1; translate: 0 0; }
.popover--wide { width: 380px; }

.menu { display: flex; flex-direction: column; gap: 2px; }
.menu__item {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px;
  border-radius: var(--r-3); font-size: var(--fs-16); color: var(--ink); text-decoration: none; text-align: left;
}
.menu__item:hover, .menu__item:focus-visible { background: var(--bg-tint); color: var(--ink); }
.menu__item .icon { color: var(--ink-2); }
.menu__item--danger, .menu__item--danger .icon { color: var(--danger); }

/* ---------- sheet ---------- */
.sheet-scrim { position: fixed; inset: 0; z-index: var(--z-sheet); background: var(--scrim); opacity: 0; transition: opacity var(--dur-3) var(--ease-out); }
.sheet-scrim.is-open { opacity: 1; }
.sheet {
  position: fixed; z-index: calc(var(--z-sheet) + 1); left: 0; right: 0; bottom: 0; max-height: 92dvh;
  display: flex; flex-direction: column;
  background: var(--surface-raised); border-radius: var(--r-5) var(--r-5) 0 0; box-shadow: var(--sh-3);
  padding-bottom: env(safe-area-inset-bottom);
  translate: 0 100%; transition: translate var(--dur-3) var(--ease-out);
}
.sheet.is-open { translate: 0 0; }
.sheet--full { top: 0; max-height: none; border-radius: 0; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-4) var(--sp-4) var(--sp-2) var(--sp-5); }
.sheet__head h2 { font-size: var(--fs-20); }
.sheet__body { padding: var(--sp-2) var(--sp-5) var(--sp-6); overflow-y: auto; flex: 1; }
@media (min-width: 768px) {
  .sheet { left: auto; top: 0; width: 420px; max-height: none; border-radius: 0; translate: 100% 0; }
  .sheet.is-open { translate: 0 0; }
}

/* ---------- dialog ---------- */
.dialog {
  width: calc(100% - 32px); max-width: 480px; padding: 24px; border: 0; border-radius: var(--r-5);
  background: var(--surface-raised); color: var(--ink); box-shadow: var(--sh-3);
}
.dialog::backdrop { background: var(--scrim); }
.dialog h2 { font-size: var(--fs-20); margin-bottom: var(--sp-3); }
.dialog__body { color: var(--ink-2); font-size: var(--fs-16); line-height: 1.5; }
.dialog__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--sp-2); margin-top: var(--sp-6); }

/* ---------- toast ---------- */
#toasts {
  position: fixed; z-index: var(--z-toast); left: 0; right: 0;
  bottom: calc(var(--sp-4) + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); pointer-events: none; padding: 0 var(--sp-4);
}
body:not([data-chrome="focus"]):not([data-chrome="bare"]) #toasts { bottom: calc(var(--tabbar-h) + var(--sp-4) + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { body #toasts { bottom: var(--sp-6) !important; } }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: min(32rem, 100%);
  padding: 12px 16px; border-radius: var(--r-4);
  background: var(--surface-raised); border: 1px solid var(--line); box-shadow: var(--sh-3); color: var(--ink); font-size: var(--fs-14); line-height: 1.4;
  opacity: 0; translate: 0 8px; transition: opacity var(--dur-3) var(--ease-out), translate var(--dur-3) var(--ease-out);
}
.toast.is-open { opacity: 1; translate: 0 0; }
.toast .icon { color: var(--brand-ink); }
.toast--ok .icon { color: var(--ok); }
.toast--error .icon { color: var(--danger); }
.toast__text { flex: 1; }
.toast .btn { min-height: 36px; padding: 0 10px; font-size: var(--fs-14); }

/* ---------- skeleton, empty, loader ---------- */
.skeleton {
  display: block; background: var(--bg-tint-2); border-radius: var(--r-2); position: relative; overflow: hidden;
}
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--bg-tint), transparent);
  translate: -100% 0; animation: ja-shimmer 1.6s ease-in-out infinite;
}
@keyframes ja-shimmer { to { translate: 100% 0; } }
.skeleton--line { height: 14px; width: 100%; margin: 8px 0; }
.skeleton--title { height: 32px; width: 60%; margin: 8px 0 16px; }
.skeleton--row { height: 64px; width: 100%; margin: 8px 0; border-radius: var(--r-3); }
.skeleton--block { height: 160px; width: 100%; margin: 12px 0; border-radius: var(--r-4); }

.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 44ch; margin: var(--sp-8) auto; text-align: center; }
.empty > .icon { width: 32px; height: 32px; color: var(--ink-3); }
.empty p { color: var(--ink-2); }
.empty .btn { margin-top: var(--sp-2); }

.loader { display: inline-flex; align-items: center; gap: 6px; }
.loader__node { width: 8px; height: 8px; border-radius: var(--r-round); border: 1.5px solid var(--strand-on); background: transparent; animation: ja-node 1.2s infinite; }
.loader__node:nth-child(2) { animation-delay: 0.2s; }
.loader__node:nth-child(3) { animation-delay: 0.4s; }
@keyframes ja-node { 0%, 60%, 100% { background: transparent; } 20%, 40% { background: var(--strand-on); } }
.loader--on-deep .loader__node { border-color: var(--deep-accent); }
@media (prefers-reduced-motion: reduce) { .loader__node { background: var(--strand-on); } }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-4); max-width: 100%; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.table th { background: var(--bg-tint); padding: 10px 12px; vertical-align: bottom; }
.table td { padding: 10px 12px; vertical-align: top; border-top: 1px solid var(--line); }
.table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--bg-tint) 50%, transparent); }
.table td:first-child { font-weight: var(--fw-semi); }
@media (max-width: 767px) {
  .table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack td { display: block; width: 100%; }
  .table--stack tr { padding: 8px 0; border-top: 1px solid var(--line); }
  .table--stack tr:first-child { border-top: 0; }
  .table--stack td { border: 0; padding: 4px 12px; background: transparent !important; }
  .table--stack td::before { content: attr(data-label); display: block; font-size: var(--fs-13); font-weight: var(--fw-medium); color: var(--ink-3); }
}

/* ---------- prose ---------- */
.prose { font-size: var(--fs-17); line-height: var(--lh-prose); max-width: var(--measure); }
.prose p { margin-bottom: 16px; }
.prose p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 16px; }
.prose li + li { margin-top: 6px; }
.prose strong { font-weight: var(--fw-semi); }
.prose code { font-family: var(--font-mono); font-size: 0.92em; background: var(--bg-tint); border-radius: var(--r-1); padding: 0.1em 0.35em; }
.prose a { text-decoration: underline; }
.prose h3, .prose h4 { margin: 24px 0 8px; }
.prose .table-wrap { margin: 16px 0; }

/* ---------- the rung ---------- */
.rung { display: inline-block; vertical-align: middle; overflow: visible; flex: none; }
.rung__bond { stroke-width: 2; stroke-linecap: round; fill: none; }
.rung__read, .rung__proved { stroke-width: 1.5; }
.rung--lg { width: 160px; height: 62px; }
.rung--open .rung__read { fill: none; stroke: var(--strand-on); }
.rung--open .rung__proved { fill: none; stroke: var(--strand-off); }
.rung--open .rung__bond { stroke: var(--strand-off); stroke-dasharray: 2 2; }
.rung--due .rung__read { fill: var(--strand-on); stroke: var(--strand-on); }
.rung--due .rung__proved { fill: none; stroke: var(--strand-on); }
.rung--due .rung__bond { stroke: var(--strand-on); }
.rung--passed .rung__read, .rung--passed .rung__proved { fill: var(--strand-on); stroke: var(--strand-on); }
.rung--passed .rung__bond { stroke: var(--strand-on); }
.rung--locked .rung__read, .rung--locked .rung__proved { fill: none; stroke: var(--strand-locked); }
.rung--locked .rung__bond { display: none; }
.rung--failed .rung__read { fill: var(--strand-on); stroke: var(--strand-on); }
.rung--failed .rung__proved { fill: none; stroke: var(--strand-on); }
.rung--failed .rung__bond { stroke: var(--strand-on); stroke-dasharray: 3 3; }
.rung--on-deep.rung--open .rung__read, .rung--on-deep.rung--due .rung__proved, .rung--on-deep.rung--failed .rung__proved { stroke: var(--deep-accent); }
.rung--on-deep.rung--open .rung__proved, .rung--on-deep.rung--open .rung__bond { stroke: var(--deep-line); }
.rung--on-deep.rung--due .rung__read, .rung--on-deep.rung--passed .rung__read, .rung--on-deep.rung--passed .rung__proved, .rung--on-deep.rung--failed .rung__read { fill: var(--deep-accent); stroke: var(--deep-accent); }
.rung--on-deep.rung--due .rung__bond, .rung--on-deep.rung--passed .rung__bond, .rung--on-deep.rung--failed .rung__bond { stroke: var(--deep-accent); }
.rung--on-deep.rung--locked .rung__read, .rung--on-deep.rung--locked .rung__proved { stroke: var(--deep-line); }
.rung__read, .rung__proved { transition: fill var(--dur-2) var(--ease-out), stroke var(--dur-2) var(--ease-out); }

@keyframes ja-bond-draw { from { stroke-dashoffset: var(--len, 12); } to { stroke-dashoffset: 0; } }
@keyframes ja-node-fill { from { fill-opacity: 0; } to { fill-opacity: 1; } }
.rung.is-pairing .rung__bond { --len: 12; stroke-dasharray: 12; animation: ja-bond-draw var(--dur-4) var(--ease-out) both; }
.rung.is-pairing .rung__proved { animation: ja-node-fill var(--dur-4) var(--ease-out) both; }

/* ---------- segment bar ---------- */
.segbar { display: flex; align-items: center; gap: 3px; width: 100%; }
.segbar__seg { flex: 1 1 0; min-width: 6px; height: 6px; border-radius: var(--r-1); background: var(--mark-empty); position: relative; }
.segbar__seg--passed, .segbar__seg--on { background: var(--mark-fill); }
.segbar__seg--due { background: linear-gradient(90deg, var(--mark-fill) 50%, var(--mark-soft) 50%); }
.segbar__seg--open, .segbar__seg--current { background: var(--mark-soft); box-shadow: inset 0 0 0 1.5px var(--strand-on); }
.segbar__seg--locked, .segbar__seg--off { background: var(--mark-empty); }
.segbar__seg--gap { flex: 0 0 8px; min-width: 8px; background: transparent; }

/* ---------- ladder illustration ---------- */
.art-ladder { width: 100%; height: auto; overflow: visible; }
.art-ladder text { font-family: var(--font-sans); font-size: 13px; font-weight: 500; fill: var(--ink-2); }
.art-ladder--on-deep text { fill: var(--on-deep-2); }
.art-ladder .art-ladder__strand { stroke: var(--line-strong); stroke-width: 1.5; fill: none; }
.art-ladder--on-deep .art-ladder__strand { stroke: var(--deep-line); }
.art-ladder .art-ladder__strand--on { stroke: var(--strand-on); }
.art-ladder--on-deep .art-ladder__strand--on { stroke: var(--deep-accent); }

.art-ladder { --al-on: var(--strand-on); --al-off: var(--strand-off); --al-lock: var(--strand-locked); }
.art-ladder--on-deep { --al-on: var(--deep-accent); --al-off: var(--deep-line); --al-lock: var(--deep-line); }
.art-ladder__node { fill: none; stroke-width: 1.5; }
.art-ladder__node--on { fill: var(--al-on); stroke: var(--al-on); }
.art-ladder__node--ring { stroke: var(--al-on); }
.art-ladder__node--off { stroke: var(--al-off); }
.art-ladder__node--locked { stroke: var(--al-lock); }
.art-ladder__bond { stroke: var(--al-on); stroke-width: 2; stroke-linecap: round; fill: none; }
.art-ladder__bond--off { stroke: var(--al-off); stroke-dasharray: 2 2; }
.art-ladder__bond.is-drawing { --len: 16; stroke-dasharray: 16; animation: ja-bond-draw var(--dur-4) var(--ease-out) both; }
.art-ladder .art-ladder__text--locked { opacity: 0.6; }
