@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&family=Libre+Caslon+Display&family=Libre+Caslon+Text:ital,wght@0,400;0,700;1,400&display=swap");

.bc-theme {
  --bc-paper: #f7f1e7;
  --bc-paper-soft: #fbf7ef;
  --bc-paper-deep: #efe5d3;
  --bc-surface: rgba(255, 252, 246, 0.74);
  --bc-surface-strong: rgba(255, 252, 246, 0.92);
  --bc-ink: #231a16;
  --bc-ink-soft: #5a4d44;
  --bc-ink-faint: #8f7e71;
  --bc-line: rgba(84, 58, 35, 0.18);
  --bc-line-strong: rgba(84, 58, 35, 0.28);
  --bc-accent: #7b2a20;
  --bc-accent-soft: #a7654f;
  --bc-metal: #b18a46;
  --bc-illumination-letter: #7b2a20;
  --bc-shadow: 0 20px 50px rgba(51, 28, 12, 0.08);
  --bc-shadow-soft: 0 12px 28px rgba(51, 28, 12, 0.06);
  --bc-junction-finial: rgba(84, 58, 35, 0.34);
  --bc-broadside-inset:
    linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(253, 249, 241, 0.24)),
    linear-gradient(180deg, rgba(177, 138, 70, 0.08), transparent 42%);
  --bc-broadside-inset-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    inset 0 -1px 0 rgba(84, 58, 35, 0.04);
  --bc-broadside-band:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(251, 245, 234, 0.36)),
    linear-gradient(180deg, rgba(177, 138, 70, 0.06), transparent 46%);
  --bc-broadside-band-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    inset 0 -1px 0 rgba(84, 58, 35, 0.05);
  --bc-utility-surface: rgba(255, 255, 255, 0.34);
  --bc-utility-border: rgba(84, 58, 35, 0.11);
  --bc-signal-frame-surface:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(253, 249, 241, 0.28)),
    linear-gradient(180deg, rgba(177, 138, 70, 0.1), transparent 42%);
  --bc-signal-frame-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 -1px 0 rgba(84, 58, 35, 0.06);
  --bc-radius: 24px;
  --bc-radius-pill: 999px;
  --bc-container: min(1180px, calc(100vw - 2rem));
  --bc-font-display: "Libre Caslon Display", "Book Antiqua", Georgia, serif;
  --bc-font-text: "Libre Caslon Text", "Iowan Old Style", Georgia, serif;
  --bc-font-detail: "Cormorant Garamond", Georgia, serif;
  color: var(--bc-ink);
  background:
    radial-gradient(circle at top left, rgba(177, 138, 70, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(123, 42, 32, 0.06), transparent 26%),
    linear-gradient(180deg, #fcfaf4 0%, var(--bc-paper) 56%, #f4ecdf 100%);
  font-family: var(--bc-font-text);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  color-scheme: light;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga" 1, "onum" 1;
}

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

.bc-theme body,
body.bc-theme {
  margin: 0;
}

body.bc-theme::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(101, 73, 48, 0.024) 0,
      rgba(101, 73, 48, 0.024) 1px,
      transparent 1px,
      transparent 7px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(101, 73, 48, 0.014) 0,
      rgba(101, 73, 48, 0.014) 1px,
      transparent 1px,
      transparent 11px
    );
  opacity: 0.32;
  pointer-events: none;
}

html[data-mode="dark"] body.bc-theme,
body.bc-theme[data-mode="dark"] {
  --bc-paper: #07111d;
  --bc-paper-soft: #f5e7cb;
  --bc-paper-deep: #03070d;
  --bc-surface: rgba(11, 21, 35, 0.82);
  --bc-surface-strong: rgba(8, 16, 29, 0.95);
  --bc-ink: #f2e8d6;
  --bc-ink-soft: #d2c3a8;
  --bc-ink-faint: #9f8d71;
  --bc-line: rgba(197, 156, 96, 0.13);
  --bc-line-strong: rgba(197, 156, 96, 0.24);
  --bc-accent: #bf8a57;
  --bc-accent-soft: #8a633d;
  --bc-metal: #d8ab6e;
  --bc-illumination-letter: #f5e7cb;
  --bc-shadow: 0 28px 76px rgba(1, 5, 12, 0.52);
  --bc-shadow-soft: 0 18px 40px rgba(1, 5, 12, 0.36);
  --bc-junction-finial: rgba(197, 156, 96, 0.42);
  --bc-broadside-inset:
    radial-gradient(circle at top left, rgba(246, 214, 150, 0.06), transparent 26%),
    linear-gradient(180deg, rgba(17, 29, 45, 0.9), rgba(8, 16, 29, 0.78));
  --bc-broadside-inset-shadow:
    inset 0 1px 0 rgba(255, 245, 221, 0.05),
    inset 0 -1px 0 rgba(0, 0, 0, 0.24);
  --bc-broadside-band:
    linear-gradient(180deg, rgba(246, 214, 150, 0.04), rgba(246, 214, 150, 0)),
    linear-gradient(90deg, rgba(85, 113, 156, 0.08), transparent 48%),
    linear-gradient(180deg, rgba(12, 22, 35, 0.74), rgba(7, 13, 21, 0.56));
  --bc-broadside-band-shadow:
    inset 0 1px 0 rgba(255, 245, 221, 0.05),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
  --bc-night-shell-border: rgba(197, 156, 96, 0.12);
  --bc-night-shell-surface:
    radial-gradient(circle at 16% 0, rgba(247, 214, 150, 0.08), transparent 24%),
    radial-gradient(circle at top right, rgba(105, 133, 180, 0.14), transparent 34%),
    linear-gradient(
      145deg,
      rgba(11, 21, 35, 0.97) 0%,
      rgba(7, 14, 24, 0.985) 58%,
      rgba(4, 8, 14, 0.995) 100%
    );
  --bc-night-shell-shadow:
    0 24px 60px rgba(1, 5, 12, 0.32),
    inset 0 1px 0 rgba(248, 227, 188, 0.035),
    inset 0 -1px 0 rgba(1, 5, 12, 0.42);
  --bc-night-shell-ornament: rgba(216, 171, 110, 0.76);
  --bc-night-shell-ornament-opacity: 0.46;
  --bc-night-panel-surface:
    radial-gradient(circle at 18% 0, rgba(247, 214, 150, 0.1), transparent 24%),
    radial-gradient(circle at top right, rgba(105, 133, 180, 0.14), transparent 30%),
    linear-gradient(160deg, rgba(14, 25, 40, 0.98), rgba(6, 12, 20, 0.99));
  --bc-night-panel-shadow:
    0 16px 36px rgba(1, 5, 12, 0.22),
    inset 0 1px 0 rgba(248, 227, 188, 0.03),
    inset 0 -1px 0 rgba(1, 5, 12, 0.28);
  --bc-night-deep-surface:
    radial-gradient(circle at 18% 0, rgba(247, 214, 150, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(105, 133, 180, 0.18), transparent 30%),
    linear-gradient(160deg, rgba(14, 25, 40, 0.98), rgba(6, 12, 20, 0.99));
  --bc-utility-surface: rgba(8, 15, 24, 0.42);
  --bc-utility-border: rgba(197, 156, 96, 0.12);
  --bc-signal-frame-surface: var(--bc-night-shell-surface);
  --bc-signal-frame-shadow: var(--bc-night-shell-shadow);
  background:
    radial-gradient(circle at 18% 10%, rgba(246, 212, 150, 0.14), transparent 18%),
    radial-gradient(circle at 82% 12%, rgba(103, 129, 179, 0.16), transparent 28%),
    radial-gradient(circle at 50% -8%, rgba(192, 137, 70, 0.11), transparent 30%),
    linear-gradient(180deg, #0d1828 0%, #07101b 44%, #03070d 100%);
  color-scheme: dark;
}

html[data-mode="dark"] body.bc-theme::before,
body.bc-theme[data-mode="dark"]::before {
  background:
    radial-gradient(circle at 18% 0, rgba(248, 227, 188, 0.09), transparent 18%),
    radial-gradient(circle at 82% 0, rgba(135, 160, 203, 0.06), transparent 20%),
    repeating-linear-gradient(
      180deg,
      rgba(248, 227, 188, 0.014) 0,
      rgba(248, 227, 188, 0.014) 1px,
      transparent 1px,
      transparent 7px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(248, 227, 188, 0.006) 0,
      rgba(248, 227, 188, 0.006) 1px,
      transparent 1px,
      transparent 11px
    ),
    linear-gradient(180deg, rgba(1, 5, 12, 0.04), rgba(1, 5, 12, 0.28));
  opacity: 0.52;
}

.bc-theme a {
  color: inherit;
  text-decoration-color: rgba(123, 42, 32, 0.45);
  text-underline-offset: 0.16em;
}

.bc-theme button,
.bc-theme input,
.bc-theme textarea,
.bc-theme select {
  font: inherit;
}

.bc-theme img,
.bc-theme svg {
  display: block;
  max-width: 100%;
}

.bc-theme :focus-visible {
  outline: 3px solid rgba(123, 42, 32, 0.32);
  outline-offset: 2px;
}

.bc-page {
  width: var(--bc-container);
  margin: 0 auto;
  padding: clamp(1rem, 2vw, 1.5rem);
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.75rem);
}

.bc-topbar {
  position: sticky;
  top: 0.75rem;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
}

.bc-control-bank {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.bc-mode-panel {
  padding: 0.35rem 0.4rem 0.35rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius-pill);
  background: rgba(255, 252, 246, 0.74);
  box-shadow: var(--bc-shadow-soft);
  backdrop-filter: blur(14px);
}

.bc-mode-panel__label {
  color: var(--bc-ink-faint);
  font-family: var(--bc-font-detail);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bc-mode-toggle {
  position: relative;
  min-width: 12rem;
  min-height: 2.85rem;
  padding: 0.24rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  border: 1px solid var(--bc-line-strong);
  border-radius: var(--bc-radius-pill);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 239, 227, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.bc-mode-toggle__option {
  position: relative;
  z-index: 1;
  padding-inline: 0.4rem;
  text-align: center;
  color: var(--bc-ink-faint);
  font-family: var(--bc-font-detail);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bc-mode-toggle__thumb {
  position: absolute;
  top: 0.24rem;
  bottom: 0.24rem;
  left: 0.24rem;
  width: calc(50% - 0.24rem);
  border-radius: var(--bc-radius-pill);
  background: linear-gradient(180deg, #803227, #632319);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 240, 0.22),
    0 8px 18px rgba(51, 28, 12, 0.16);
  transition:
    transform 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

html[data-mode="light"] body.bc-theme [data-bc-toggle="mode"] .bc-mode-toggle__option--light,
body.bc-theme[data-mode="light"] [data-bc-toggle="mode"] .bc-mode-toggle__option--light {
  color: var(--bc-paper-soft);
}

html[data-mode="dark"] body.bc-theme [data-bc-toggle="mode"] .bc-mode-toggle__thumb,
body.bc-theme[data-mode="dark"] [data-bc-toggle="mode"] .bc-mode-toggle__thumb {
  transform: translateX(100%);
  background: linear-gradient(180deg, #e4bc7d, #a86d37);
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 221, 0.5),
    0 10px 20px rgba(2, 8, 17, 0.3);
}

html[data-mode="dark"] body.bc-theme [data-bc-toggle="mode"] .bc-mode-toggle__option--dark,
body.bc-theme[data-mode="dark"] [data-bc-toggle="mode"] .bc-mode-toggle__option--dark {
  color: #1a120f;
}

html[data-structure="cabinet"] body.bc-theme .bc-mode-toggle--structure .bc-mode-toggle__option--cabinet,
body.bc-theme[data-structure="cabinet"] .bc-mode-toggle--structure .bc-mode-toggle__option--cabinet {
  color: var(--bc-paper-soft);
}

html[data-structure="broadside"] body.bc-theme .bc-mode-toggle--structure .bc-mode-toggle__thumb,
body.bc-theme[data-structure="broadside"] .bc-mode-toggle--structure .bc-mode-toggle__thumb {
  transform: translateX(100%);
  background: linear-gradient(180deg, #3d2433, #24141c);
}

html[data-structure="broadside"] body.bc-theme .bc-mode-toggle--structure .bc-mode-toggle__option--broadside,
body.bc-theme[data-structure="broadside"] .bc-mode-toggle--structure .bc-mode-toggle__option--broadside {
  color: var(--bc-paper-soft);
}

html[data-night="plum"] body.bc-theme .bc-mode-toggle--night .bc-mode-toggle__option--plum,
body.bc-theme[data-night="plum"] .bc-mode-toggle--night .bc-mode-toggle__option--plum {
  color: var(--bc-paper-soft);
}

.bc-mode-toggle--night .bc-mode-toggle__thumb {
  background: linear-gradient(180deg, #74415f, #47273a);
  box-shadow:
    inset 0 1px 0 rgba(255, 241, 232, 0.22),
    0 8px 18px rgba(51, 28, 12, 0.16);
}

html[data-night="lantern"] body.bc-theme .bc-mode-toggle--night .bc-mode-toggle__thumb,
body.bc-theme[data-night="lantern"] .bc-mode-toggle--night .bc-mode-toggle__thumb {
  transform: translateX(100%);
  background: linear-gradient(180deg, #e4bc7d, #a86d37);
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 221, 0.5),
    0 10px 20px rgba(2, 8, 17, 0.3);
}

html[data-night="lantern"] body.bc-theme .bc-mode-toggle--night .bc-mode-toggle__option--lantern,
body.bc-theme[data-night="lantern"] .bc-mode-toggle--night .bc-mode-toggle__option--lantern {
  color: var(--bc-paper-soft);
}

.bc-shell,
.bc-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(253, 249, 241, 0.9)),
    linear-gradient(180deg, rgba(177, 138, 70, 0.06), transparent 36%);
  box-shadow: var(--bc-shadow);
}

.bc-shell {
  padding: clamp(1.25rem, 2vw, 2rem);
}

.bc-shell::before,
.bc-card::before {
  content: "";
  position: absolute;
  bottom: 0.9rem;
  left: 50%;
  width: 7rem;
  height: 1rem;
  transform: translateX(-50%);
  background: var(--bc-accent-soft);
  opacity: 0.72;
  -webkit-mask: url("../assets/finial.svg") center / contain no-repeat;
  mask: url("../assets/finial.svg") center / contain no-repeat;
}

.bc-card {
  padding: 1.35rem;
  display: grid;
  gap: 0.6rem;
}

.bc-card--deep {
  background:
    linear-gradient(180deg, rgba(247, 241, 231, 0.96), rgba(255, 252, 246, 0.94)),
    linear-gradient(120deg, rgba(177, 138, 70, 0.1), transparent 40%);
}

.bc-card--quote {
  align-content: start;
}

.bc-card blockquote {
  margin: 0;
  font-family: var(--bc-font-detail);
  font-size: clamp(1.35rem, 2.1vw, 1.7rem);
  line-height: 1.16;
}

.bc-hero {
  padding-top: clamp(2.8rem, 7vw, 4.5rem);
  display: grid;
  gap: 1.25rem;
}

.bc-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 0.9fr);
  gap: clamp(1rem, 2vw, 2rem);
  align-items: end;
}

.bc-hero-copy,
.bc-hero-notes {
  display: grid;
  gap: 1rem;
}

.bc-hero-copy {
  padding-left: clamp(0.25rem, 0.9vw, 0.7rem);
}

.bc-display,
.bc-title,
.bc-card h3 {
  margin: 0;
  font-weight: 400;
  color: var(--bc-ink);
}

.bc-display {
  font-family: var(--bc-font-display);
  font-size: clamp(3.2rem, 8.7vw, 6.35rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.bc-title {
  font-family: var(--bc-font-display);
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.bc-subtitle {
  margin: 0;
  max-width: 42rem;
  color: var(--bc-ink-soft);
  font-family: var(--bc-font-detail);
  font-size: clamp(1rem, 1.9vw, 1.18rem);
  line-height: 1.2;
}

.bc-card h3 {
  font-family: var(--bc-font-display);
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  line-height: 1;
}

.bc-dek,
.bc-note,
.bc-card p,
.bc-rule-list,
.bc-ledger,
.bc-form,
.bc-details p,
.bc-chapter-caption {
  color: var(--bc-ink-soft);
}

.bc-dek {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1.1rem, 2vw, 1.34rem);
}

.bc-note,
.bc-small {
  margin: 0;
  font-size: 0.98rem;
}

.bc-kicker,
.bc-card-kicker,
.bc-field-label,
.bc-chip,
.bc-sc {
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bc-kicker,
.bc-card-kicker {
  margin: 0;
  color: var(--bc-accent);
  font-family: var(--bc-font-detail);
  font-size: 0.9rem;
  font-weight: 600;
}

.bc-chip-row,
.bc-action-row,
.bc-icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.bc-periodic::after {
  content: ".";
  margin-left: 0.02em;
  letter-spacing: normal;
}

.bc-meander {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.36rem;
  color: var(--bc-accent);
}

.bc-meander::before,
.bc-meander::after {
  content: "";
  width: clamp(3.5rem, 8vw, 6.5rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0.28;
}

.bc-meander__stamp {
  width: 1.05rem;
  height: 0.45rem;
  background: currentColor;
  opacity: 0.84;
  -webkit-mask: url("../assets/stamp.svg") center / contain no-repeat;
  mask: url("../assets/stamp.svg") center / contain no-repeat;
}

.bc-meander--compact {
  justify-content: flex-start;
}

.bc-meander--compact::before,
.bc-meander--compact::after {
  width: 2.5rem;
}

.bc-chip {
  min-height: 2.75rem;
  padding: 0.72rem 1rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius-pill);
  background: rgba(255, 252, 246, 0.72);
  color: var(--bc-ink-soft);
  font-family: var(--bc-font-detail);
  font-size: 0.8rem;
}

.bc-btn {
  position: relative;
  min-height: 2.9rem;
  padding: 0.72rem 1.2rem 0.72rem 2.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bc-line-strong);
  border-radius: var(--bc-radius-pill);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 239, 227, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    var(--bc-shadow-soft);
  color: var(--bc-ink);
  cursor: pointer;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.bc-btn::before {
  content: "";
  position: absolute;
  left: 0.92rem;
  width: 1.06rem;
  height: 1.06rem;
  background: var(--bc-accent);
  opacity: 0.9;
  -webkit-mask: url("../assets/rosette.svg") center / contain no-repeat;
  mask: url("../assets/rosette.svg") center / contain no-repeat;
}

.bc-btn::after {
  content: "";
  position: absolute;
  inset: 0.34rem;
  border: 1px solid rgba(84, 58, 35, 0.08);
  border-radius: inherit;
  pointer-events: none;
}

.bc-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(84, 58, 35, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 16px 34px rgba(51, 28, 12, 0.1);
}

.bc-btn:active {
  transform: translateY(0);
}

.bc-btn--primary {
  color: var(--bc-paper-soft);
  background:
    linear-gradient(180deg, #7f3025, #622319);
  border-color: rgba(44, 19, 15, 0.55);
}

.bc-btn--primary::before {
  background: rgba(255, 248, 240, 0.92);
}

html[data-mode="dark"] body.bc-theme a,
body.bc-theme[data-mode="dark"] a {
  text-decoration-color: rgba(211, 178, 122, 0.42);
}

html[data-mode="dark"] body.bc-theme :focus-visible,
body.bc-theme[data-mode="dark"] :focus-visible {
  outline-color: rgba(211, 178, 122, 0.4);
}

html[data-mode="dark"] body.bc-theme .bc-mode-panel,
body.bc-theme[data-mode="dark"] .bc-mode-panel {
  background: rgba(7, 14, 24, 0.82);
  border-color: rgba(197, 156, 96, 0.13);
  box-shadow:
    0 16px 34px rgba(1, 5, 12, 0.28),
    inset 0 1px 0 rgba(248, 227, 188, 0.03);
}

html[data-mode="dark"] body.bc-theme .bc-mode-toggle,
body.bc-theme[data-mode="dark"] .bc-mode-toggle {
  background:
    linear-gradient(180deg, rgba(12, 23, 38, 0.96), rgba(6, 13, 22, 0.97));
  border-color: rgba(197, 156, 96, 0.19);
  box-shadow:
    inset 0 1px 0 rgba(248, 227, 188, 0.03),
    inset 0 -1px 0 rgba(1, 5, 12, 0.42);
}

html[data-mode="dark"] body.bc-theme .bc-shell,
html[data-mode="dark"] body.bc-theme .bc-card,
body.bc-theme[data-mode="dark"] .bc-shell,
body.bc-theme[data-mode="dark"] .bc-card {
  border-color: var(--bc-night-shell-border);
  border-radius: 18px;
  background: var(--bc-night-shell-surface);
  box-shadow: var(--bc-night-shell-shadow);
}

html[data-mode="dark"] body.bc-theme .bc-shell::before,
html[data-mode="dark"] body.bc-theme .bc-card::before,
body.bc-theme[data-mode="dark"] .bc-shell::before,
body.bc-theme[data-mode="dark"] .bc-card::before {
  background: var(--bc-night-shell-ornament);
  opacity: var(--bc-night-shell-ornament-opacity);
}

html[data-mode="dark"] body.bc-theme .bc-woodcut-panel,
body.bc-theme[data-mode="dark"] .bc-woodcut-panel {
  background: var(--bc-night-panel-surface);
  box-shadow: var(--bc-night-panel-shadow);
}

html[data-mode="dark"] body.bc-theme .bc-utility-study,
html[data-mode="dark"] body.bc-theme .bc-divider-column-card,
body.bc-theme[data-mode="dark"] .bc-utility-study,
body.bc-theme[data-mode="dark"] .bc-divider-column-card {
  background: var(--bc-utility-surface);
  border-color: var(--bc-utility-border);
}

html[data-mode="dark"] body.bc-theme .bc-card--deep,
body.bc-theme[data-mode="dark"] .bc-card--deep {
  background: var(--bc-night-deep-surface);
}

html[data-mode="dark"] body.bc-theme .bc-kicker,
html[data-mode="dark"] body.bc-theme .bc-card-kicker,
html[data-mode="dark"] body.bc-theme .bc-roman,
html[data-mode="dark"] body.bc-theme .bc-toc-main em,
body.bc-theme[data-mode="dark"] .bc-kicker,
body.bc-theme[data-mode="dark"] .bc-card-kicker,
body.bc-theme[data-mode="dark"] .bc-roman,
body.bc-theme[data-mode="dark"] .bc-toc-main em {
  color: #d7aa71;
}

html[data-mode="dark"] body.bc-theme .bc-chip,
body.bc-theme[data-mode="dark"] .bc-chip {
  background: rgba(8, 16, 29, 0.76);
  border-color: rgba(197, 156, 96, 0.14);
  color: #c4b191;
  box-shadow: inset 0 1px 0 rgba(248, 227, 188, 0.02);
}

html[data-mode="dark"] body.bc-theme .bc-btn,
body.bc-theme[data-mode="dark"] .bc-btn {
  background:
    linear-gradient(180deg, rgba(12, 23, 38, 0.94), rgba(6, 12, 20, 0.98));
  border-color: rgba(197, 156, 96, 0.23);
  box-shadow:
    inset 0 1px 0 rgba(248, 227, 188, 0.04),
    inset 0 0 0 1px rgba(1, 5, 12, 0.24),
    0 12px 28px rgba(1, 5, 12, 0.24);
}

html[data-mode="dark"] body.bc-theme .bc-btn::after,
body.bc-theme[data-mode="dark"] .bc-btn::after {
  border-color: rgba(197, 156, 96, 0.08);
}

html[data-mode="dark"] body.bc-theme .bc-btn:hover,
body.bc-theme[data-mode="dark"] .bc-btn:hover {
  border-color: rgba(197, 156, 96, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(248, 227, 188, 0.05),
    inset 0 0 0 1px rgba(1, 5, 12, 0.28),
    0 18px 34px rgba(1, 5, 12, 0.34);
}

html[data-mode="dark"] body.bc-theme .bc-btn--primary,
body.bc-theme[data-mode="dark"] .bc-btn--primary {
  color: #16212e;
  background: linear-gradient(180deg, #e3be80, #af7440);
  border-color: rgba(117, 82, 40, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 243, 214, 0.5),
    0 18px 38px rgba(1, 5, 12, 0.34);
}

html[data-mode="dark"] body.bc-theme .bc-btn--primary::before,
body.bc-theme[data-mode="dark"] .bc-btn--primary::before {
  background: #132032;
}

.bc-section {
  display: grid;
  gap: 1rem;
}

.bc-section-head {
  display: grid;
  gap: 0.2rem;
}

.bc-grid {
  display: grid;
  gap: 1rem;
}

.bc-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bc-grid--feature {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.bc-toc-shell {
  padding-top: 2rem;
}

.bc-toc-shell::after {
  content: "";
  position: absolute;
  inset: auto 1.2rem 1rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(123, 42, 32, 0.16),
    transparent
  );
}

.bc-toc-list {
  position: relative;
  display: grid;
  gap: 0.85rem;
  padding-left: 3.8rem;
}

.bc-toc-frame {
  position: absolute;
  left: 1.05rem;
  top: 2.8rem;
  bottom: 1.8rem;
  width: 2rem;
  background: var(--bc-accent-soft);
  opacity: 0.85;
  -webkit-mask: url("../assets/brace_vertical_long_smooth.svg") center / 100% 100% no-repeat;
  mask: url("../assets/brace_vertical_long_smooth.svg") center / 100% 100% no-repeat;
}

.bc-toc-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(84, 58, 35, 0.11);
}

.bc-toc-main {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: baseline;
  color: var(--bc-ink);
  font-family: var(--bc-font-detail);
  font-size: clamp(1.18rem, 2vw, 1.5rem);
  line-height: 1.05;
}

.bc-toc-main em {
  font-style: italic;
  color: var(--bc-accent);
}

.bc-signal-grid {
  align-items: start;
}

.bc-signal-shell {
  padding-top: 1.8rem;
}

.bc-signal-stack {
  display: grid;
  gap: 1.25rem;
}

.bc-signal-stack > * + * {
  padding-top: 1.05rem;
  border-top: 1px solid rgba(84, 58, 35, 0.11);
}

.bc-chapter-example {
  display: grid;
  gap: 0.55rem;
}

.bc-chapter-heading {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.52rem;
  align-items: baseline;
  color: var(--bc-ink);
  font-family: var(--bc-font-display);
  font-size: clamp(1.9rem, 4vw, 2.95rem);
  font-weight: 400;
  line-height: 0.94;
}

.bc-chapter-lead {
  display: inline-block;
  font-family: var(--bc-font-text);
  font-style: italic;
  font-weight: 400;
  font-size: 0.66em;
  line-height: 1;
}

.bc-chapter-subject {
  display: inline-block;
  font-family: var(--bc-font-detail);
  font-size: 1em;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bc-chapter-caption {
  margin: 0;
  max-width: 33rem;
  font-size: 1rem;
}

.bc-chapter-comparison {
  display: grid;
  gap: 1rem;
}

.bc-chapter-heading--experimental {
  gap: 0.38rem;
}

.bc-chapter-lead--experimental,
.bc-chapter-subject--experimental {
  display: inline-flex;
  align-items: baseline;
}

.bc-chapter-lead--experimental {
  font-family: var(--bc-font-text);
  font-size: 0.54em;
  font-style: italic;
  font-weight: 400;
  gap: 0;
  line-height: 1;
}

.bc-chapter-subject--experimental {
  font-family: var(--bc-font-detail);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.bc-chapter-lead-initial,
.bc-chapter-lead-tail {
  font-family: inherit;
  font-style: inherit;
  font-weight: inherit;
  font-size: 1em;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

.bc-chapter-subject-initial,
.bc-chapter-subject-tail {
  font-family: inherit;
  font-style: inherit;
  font-weight: inherit;
  font-variant-caps: all-small-caps;
  line-height: 1;
  text-transform: lowercase;
}

.bc-chapter-subject-initial {
  font-size: 1.16em;
  letter-spacing: 0.08em;
}

.bc-chapter-subject-tail {
  font-size: 1em;
  letter-spacing: 0.1em;
}

.bc-figure-lockup {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.bc-paren-number {
  display: inline-flex;
  align-items: baseline;
  color: var(--bc-ink);
  font-family: var(--bc-font-detail);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}

.bc-paren-number::before,
.bc-paren-number::after {
  color: var(--bc-accent);
  letter-spacing: normal;
}

.bc-paren-number::before {
  content: "(";
  margin-right: 0.36rem;
}

.bc-paren-number::after {
  content: ")";
  margin-left: 0.28rem;
}

.bc-signal-note {
  align-content: start;
}

.bc-signal-usage {
  padding-top: 1.6rem;
}

.bc-signal-device {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.bc-signal-device--opener {
  max-width: 28rem;
}

.bc-crest {
  width: clamp(8rem, 22vw, 11rem);
  aspect-ratio: 1179 / 896;
  display: inline-block;
  background: var(--bc-accent);
  opacity: 0.86;
  -webkit-mask: url("../assets/crest_eagle.svg") center / contain no-repeat;
  mask: url("../assets/crest_eagle.svg") center / contain no-repeat;
}

.bc-section-closer {
  display: flex;
  justify-content: center;
  padding-top: 0.35rem;
}

.bc-section-head--lintered {
  gap: 0.45rem;
}

.bc-title-lintel {
  --bc-lintel-ratio: 2.8;
  --bc-lintel-mask-size: 110% auto;
  --bc-lintel-mask-position-x: 50%;
  --bc-lintel-mask-position-y: 45.5%;
  display: block;
  width: 100%;
  aspect-ratio: var(--bc-lintel-ratio);
  background: var(--bc-accent);
  opacity: 0.24;
  -webkit-mask-position: var(--bc-lintel-mask-position-x) var(--bc-lintel-mask-position-y);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: var(--bc-lintel-mask-size);
  mask-position: var(--bc-lintel-mask-position-x) var(--bc-lintel-mask-position-y);
  mask-repeat: no-repeat;
  mask-size: var(--bc-lintel-mask-size);
}

.bc-title-lintel--one {
  --bc-lintel-ratio: 2.6858;
  --bc-lintel-mask-size: 109.63% auto;
  --bc-lintel-mask-position-y: 45.59%;
  -webkit-mask-image: url("../assets/title_lintel_1.svg");
  mask-image: url("../assets/title_lintel_1.svg");
}

.bc-title-lintel--two {
  --bc-lintel-ratio: 3.9227;
  --bc-lintel-mask-size: 107.87% auto;
  --bc-lintel-mask-position-y: 43.57%;
  -webkit-mask-image: url("../assets/title_lintel_2.svg");
  mask-image: url("../assets/title_lintel_2.svg");
}

.bc-title-lintel--three {
  --bc-lintel-ratio: 2.8057;
  --bc-lintel-mask-size: 109.71% auto;
  --bc-lintel-mask-position-y: 45.53%;
  -webkit-mask-image: url("../assets/title_lintel_3.svg");
  mask-image: url("../assets/title_lintel_3.svg");
}

.bc-woodcut-shell {
  display: grid;
  gap: 1.45rem;
  padding-top: 1.75rem;
}

.bc-woodcut-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.bc-woodcut-grid--lower {
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
}

.bc-woodcut-panel {
  display: grid;
  gap: 0.7rem;
  align-content: start;
  padding: 1.1rem 1.15rem 1rem;
  border: 1px solid var(--bc-line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(253, 249, 241, 0.9)),
    linear-gradient(180deg, rgba(177, 138, 70, 0.06), transparent 36%);
  box-shadow: var(--bc-shadow-soft);
}

.bc-woodcut-panel h3,
.bc-lintel-title {
  margin: 0;
  font-family: var(--bc-font-display);
  font-size: clamp(1.45rem, 2.8vw, 2.15rem);
  font-weight: 400;
  line-height: 0.98;
}

.bc-woodcut-divider {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.18rem, 0.6vw, 0.38rem);
  color: var(--bc-accent);
}

.bc-woodcut-divider--vine {
  gap: clamp(0.03rem, 0.1vw, 0.08rem);
}

.bc-woodcut-divider--compact {
  justify-content: flex-start;
}

.bc-woodcut-divider--section {
  padding-block: 0.2rem;
}

.bc-woodcut-divider__motif {
  flex: 0 0 auto;
  width: clamp(2.35rem, 6vw, 3.65rem);
  aspect-ratio: 3 / 2;
  background: currentColor;
  opacity: 0.54;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}

.bc-woodcut-divider__motif--florate {
  aspect-ratio: 5.6305;
  -webkit-mask-position: 54.88% 43.62%;
  -webkit-mask-size: 122.08% auto;
  -webkit-mask-image: url("../assets/meander_florate_1.svg");
  mask-position: 54.88% 43.62%;
  mask-size: 122.08% auto;
  mask-image: url("../assets/meander_florate_1.svg");
}

.bc-woodcut-divider__motif--vine {
  -webkit-mask-position: 48.64% 50%;
  -webkit-mask-size: 145.27% auto;
  -webkit-mask-image: url("../assets/meander_vine.svg");
  mask-position: 48.64% 50%;
  mask-size: 145.27% auto;
  mask-image: url("../assets/meander_vine.svg");
}

.bc-florate-bridge {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.6vw, 1rem);
  color: var(--bc-accent);
}

.bc-florate-bridge--section {
  padding-block: 0.2rem;
}

.bc-florate-bridge__motif {
  --bc-florate-ratio: 5.6305;
  --bc-florate-mask-size: 122.08% auto;
  --bc-florate-mask-position-x: 54.88%;
  --bc-florate-mask-position-y: 43.62%;
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: var(--bc-florate-ratio);
  background: currentColor;
  opacity: 0.52;
  -webkit-mask-image: url("../assets/meander_florate_1.svg");
  -webkit-mask-position: var(--bc-florate-mask-position-x) var(--bc-florate-mask-position-y);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: var(--bc-florate-mask-size);
  mask-image: url("../assets/meander_florate_1.svg");
  mask-position: var(--bc-florate-mask-position-x) var(--bc-florate-mask-position-y);
  mask-repeat: no-repeat;
  mask-size: var(--bc-florate-mask-size);
}

.bc-florate-bridge__motif--mirror {
  transform: scaleX(-1);
}

.bc-florate-bridge__token {
  flex: 0 0 auto;
  color: currentColor;
  font-family: var(--bc-font-detail);
  font-size: clamp(1rem, 2vw, 1.24rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}

.bc-lintel-study {
  display: grid;
  gap: 0.95rem;
}

.bc-lintel-sample {
  display: grid;
  gap: 0.32rem;
}

.bc-lintel-sample + .bc-lintel-sample {
  padding-top: 0.85rem;
  border-top: 1px solid rgba(84, 58, 35, 0.11);
}

.bc-lintel-sample .bc-title-lintel {
  opacity: 0.3;
}

.bc-woodcut-panel--utility {
  gap: 0.95rem;
}

.bc-woodcut-panel--divider-study,
.bc-woodcut-panel--pendants {
  grid-column: 1 / -1;
}

.bc-divider-column-study {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1.1rem;
  align-items: stretch;
}

.bc-divider-column-card {
  display: grid;
  gap: 0.65rem;
  align-content: start;
  min-height: 18rem;
  padding: 1.2rem 1.15rem;
  border: 1px solid var(--bc-utility-border);
  border-radius: 16px;
  background: var(--bc-utility-surface);
}

.bc-divider-column-card h4 {
  margin: 0;
  font-family: var(--bc-font-display);
  font-size: clamp(1.3rem, 2.3vw, 1.7rem);
  font-weight: 400;
  line-height: 1;
}

.bc-utility-studies {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.bc-utility-study {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  padding: 0.9rem 0.95rem;
  border: 1px solid var(--bc-utility-border);
  border-radius: 14px;
  background: var(--bc-utility-surface);
}

.bc-clavo-list {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--bc-ink-soft);
}

.bc-vertical-divider {
  display: block;
  width: clamp(1rem, 2vw, 1.25rem);
  aspect-ratio: 1024 / 1536;
  background: var(--bc-accent);
  opacity: 0.62;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}

.bc-vertical-divider--tall {
  align-self: stretch;
  width: clamp(1.7rem, 3vw, 2.25rem);
  height: 100%;
}

.bc-vertical-divider--vines {
  -webkit-mask-image: url("../assets/vertical_divider_vines.svg");
  mask-image: url("../assets/vertical_divider_vines.svg");
}

.bc-clavo-list {
  display: grid;
  gap: 0.42rem;
  padding: 0;
  list-style: none;
}

.bc-clavo-list li {
  position: relative;
  padding-left: 1.25rem;
}

.bc-clavo-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.46em;
  width: 0.78rem;
  aspect-ratio: 1408 / 768;
  background: var(--bc-accent);
  opacity: 0.78;
  -webkit-mask: center / contain no-repeat url("../assets/bullet_clavo.svg");
  mask: center / contain no-repeat url("../assets/bullet_clavo.svg");
}

.bc-cartouche-sample {
  display: grid;
  justify-items: center;
}

.bc-cartouche {
  width: min(100%, 15rem);
  aspect-ratio: 1536 / 1024;
  display: grid;
  place-items: center;
  color: var(--bc-accent);
}

.bc-cartouche::before {
  content: "";
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  background: currentColor;
  opacity: 0.56;
  -webkit-mask: center / contain no-repeat url("../assets/cartouche_globe.svg");
  mask: center / contain no-repeat url("../assets/cartouche_globe.svg");
}

.bc-cartouche__label {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  padding-top: 0.1rem;
  font-family: var(--bc-font-detail);
  font-size: 1rem;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.bc-finial-study {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
}

.bc-finial-study__rule {
  width: min(100%, 11rem);
  height: 1px;
  background: rgba(84, 58, 35, 0.18);
}

.bc-finial-device {
  display: block;
  width: clamp(5rem, 12vw, 6.8rem);
  aspect-ratio: 1408 / 768;
  background: var(--bc-accent);
  opacity: 0.62;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}

.bc-finial-device--pinecone {
  -webkit-mask-image: url("../assets/finial_pinecone.svg");
  mask-image: url("../assets/finial_pinecone.svg");
}

.bc-illuminated-copy {
  --bc-illuminated-copy-size: 1rem;
  --bc-illuminated-copy-leading: 1.62;
  --bc-illumination-lines: 3;
  --bc-illumination-measure: calc(
    var(--bc-illuminated-copy-size) *
    var(--bc-illuminated-copy-leading) *
    var(--bc-illumination-lines)
  );
  --bc-illumination-block: calc(var(--bc-illumination-measure) - 0.08rem);
  margin: 0;
  display: flow-root;
  font-size: var(--bc-illuminated-copy-size);
  line-height: var(--bc-illuminated-copy-leading);
}

.bc-illuminated-copy + .bc-illuminated-copy {
  padding-top: 1rem;
  border-top: 1px solid rgba(84, 58, 35, 0.11);
}

.bc-illumination {
  position: relative;
  float: left;
  width: var(--bc-illumination-block);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  margin: 0.02rem 0.85rem 0 0;
}

.bc-illumination::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bc-accent);
  opacity: 0.88;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}

.bc-illumination--one::before {
  -webkit-mask-image: url("../assets/illumination_1.svg");
  mask-image: url("../assets/illumination_1.svg");
}

.bc-illumination--two::before {
  -webkit-mask-image: url("../assets/illumination_2.svg");
  mask-image: url("../assets/illumination_2.svg");
}

.bc-illumination__letter {
  position: relative;
  z-index: 1;
  color: var(--bc-illumination-letter);
  font-family: var(--bc-font-text);
  font-size: clamp(0.78rem, 1.5vw, 0.98rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1;
}

.bc-pendant-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1.35rem;
  align-items: end;
}

.bc-woodcut-panel--pendants {
  padding-inline: 2rem;
  padding-block: 1.35rem 1.55rem;
}

.bc-pendant {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.5rem;
  text-align: center;
}

.bc-pendant-note {
  margin: 0;
  max-width: 12rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--bc-ink-soft);
}

.bc-pendant-hanger {
  width: 1px;
  height: 1.2rem;
  background: var(--bc-line-strong);
}

.bc-pendant .bc-crest {
  width: clamp(7.4rem, 13vw, 10.8rem);
  opacity: 0.68;
}

.bc-crest--eagle {
  aspect-ratio: 1179 / 896;
  -webkit-mask-image: url("../assets/crest_eagle.svg");
  mask-image: url("../assets/crest_eagle.svg");
}

.bc-crest--reader {
  aspect-ratio: 1 / 1;
  -webkit-mask-image: url("../assets/crest_reader_woman.svg");
  mask-image: url("../assets/crest_reader_woman.svg");
}

.bc-crest--reader-original {
  aspect-ratio: 1098 / 976;
  -webkit-mask-image: url("../assets/crest_reader_woman_original.svg");
  mask-image: url("../assets/crest_reader_woman_original.svg");
}

.bc-crest--vine-flintlock {
  aspect-ratio: 1024 / 1536;
  -webkit-mask-image: url("../assets/crest_vine_flintlock.svg");
  mask-image: url("../assets/crest_vine_flintlock.svg");
}

.bc-crest--asclepius {
  aspect-ratio: 1005 / 836;
  -webkit-mask-image: url("../assets/crest_asclepius.svg");
  mask-image: url("../assets/crest_asclepius.svg");
}

.bc-brace-shell {
  padding-top: 1.7rem;
  display: grid;
  gap: 1.25rem;
}

.bc-brace-study {
  display: grid;
}

.bc-brace-row {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) repeat(2, minmax(0, 0.6fr));
  gap: 1rem;
  align-items: center;
  padding: 1.05rem 0;
  border-top: 1px solid rgba(84, 58, 35, 0.11);
}

.bc-brace-row:first-child {
  padding-top: 0.2rem;
  border-top: 0;
}

.bc-brace-meta {
  display: grid;
  gap: 0.28rem;
}

.bc-brace-panel {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.5rem;
  min-height: 100%;
  padding: 0.2rem 0.5rem;
}

.bc-brace-panel__label {
  color: var(--bc-ink-faint);
  font-family: var(--bc-font-detail);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bc-brace-swatch {
  display: inline-block;
  background: var(--bc-accent);
  opacity: 0.88;
}

.bc-brace-swatch--short {
  height: 3.8rem;
  aspect-ratio: 432 / 1024;
}

.bc-brace-swatch--medium {
  height: 4.8rem;
  aspect-ratio: 240 / 1024;
}

.bc-brace-swatch--long {
  height: 8.8rem;
  aspect-ratio: 368 / 2731;
}

.bc-brace-swatch--short.bc-brace-swatch--smooth {
  -webkit-mask: url("../assets/brace_vertical_short_smooth.svg") center / contain no-repeat;
  mask: url("../assets/brace_vertical_short_smooth.svg") center / contain no-repeat;
}

.bc-brace-swatch--short.bc-brace-swatch--rough {
  -webkit-mask: url("../assets/brace_vertical_short_rough.svg") center / contain no-repeat;
  mask: url("../assets/brace_vertical_short_rough.svg") center / contain no-repeat;
}

.bc-brace-swatch--medium.bc-brace-swatch--smooth {
  -webkit-mask: url("../assets/brace_vertical_medium_smooth.svg") center / contain no-repeat;
  mask: url("../assets/brace_vertical_medium_smooth.svg") center / contain no-repeat;
}

.bc-brace-swatch--medium.bc-brace-swatch--rough {
  -webkit-mask: url("../assets/brace_vertical_medium_rough.svg") center / contain no-repeat;
  mask: url("../assets/brace_vertical_medium_rough.svg") center / contain no-repeat;
}

.bc-brace-swatch--long.bc-brace-swatch--smooth {
  -webkit-mask: url("../assets/brace_vertical_long_smooth.svg") center / contain no-repeat;
  mask: url("../assets/brace_vertical_long_smooth.svg") center / contain no-repeat;
}

.bc-brace-swatch--long.bc-brace-swatch--rough {
  -webkit-mask: url("../assets/brace_vertical_long_rough.svg") center / contain no-repeat;
  mask: url("../assets/brace_vertical_long_rough.svg") center / contain no-repeat;
}

.bc-roman {
  margin-right: 0.2rem;
  color: var(--bc-accent);
  font-weight: 600;
}

.bc-toc-page {
  min-width: 2.5ch;
  color: var(--bc-ink-faint);
  font-family: var(--bc-font-detail);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.bc-icon-row {
  padding: 0.4rem 0 0.2rem;
}

.bc-icon {
  width: 3rem;
  aspect-ratio: 1;
  display: inline-block;
  background: var(--bc-accent);
  opacity: 0.92;
}

.bc-icon--finial {
  width: 3.8rem;
  aspect-ratio: 2.8;
  -webkit-mask: url("../assets/finial.svg") center / contain no-repeat;
  mask: url("../assets/finial.svg") center / contain no-repeat;
}

.bc-icon--rosette {
  -webkit-mask: url("../assets/rosette.svg") center / contain no-repeat;
  mask: url("../assets/rosette.svg") center / contain no-repeat;
}

.bc-icon--leaf {
  -webkit-mask: url("../assets/leaf.svg") center / contain no-repeat;
  mask: url("../assets/leaf.svg") center / contain no-repeat;
}

.bc-icon--spark {
  -webkit-mask: url("../assets/spark.svg") center / contain no-repeat;
  mask: url("../assets/spark.svg") center / contain no-repeat;
}

.bc-ledger {
  width: 100%;
  border-collapse: collapse;
}

.bc-ledger th,
.bc-ledger td {
  padding: 0.78rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid rgba(84, 58, 35, 0.11);
}

.bc-ledger th:first-child,
.bc-ledger td:first-child {
  padding-left: 0.95rem;
}

.bc-ledger th:last-child,
.bc-ledger td:last-child {
  padding-right: 0.95rem;
}

.bc-ledger th {
  color: var(--bc-accent);
  font-family: var(--bc-font-detail);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bc-ledger td {
  font-size: 0.98rem;
}

.bc-form {
  display: grid;
  gap: 1rem;
}

.bc-field {
  display: grid;
  gap: 0.45rem;
}

.bc-field-label {
  color: var(--bc-ink-faint);
  font-family: var(--bc-font-detail);
  font-size: 0.84rem;
}

.bc-field input,
.bc-field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.92rem 1rem;
  border: 1px solid var(--bc-line-strong);
  border-radius: 1rem;
  background: var(--bc-surface-strong);
  color: var(--bc-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  resize: vertical;
}

.bc-details {
  padding: 0.9rem 0 0;
  border-top: 1px solid rgba(84, 58, 35, 0.11);
}

.bc-details:first-of-type {
  border-top: 0;
  padding-top: 0.25rem;
}

.bc-details summary {
  cursor: pointer;
  color: var(--bc-ink);
  font-family: var(--bc-font-detail);
  font-size: 1.24rem;
  list-style: none;
}

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

.bc-details summary::before {
  content: "";
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  margin-right: 0.6rem;
  vertical-align: middle;
  background: var(--bc-accent);
  -webkit-mask: url("../assets/spark.svg") center / contain no-repeat;
  mask: url("../assets/spark.svg") center / contain no-repeat;
}

.bc-details p {
  margin: 0.75rem 0 0;
}

.bc-rule-list {
  margin: 0;
  padding-left: 1.4rem;
  display: grid;
  gap: 0.7rem;
}

.bc-rule-list + .bc-small {
  margin-top: 0.7rem;
}

.bc-rule-list li::marker {
  color: var(--bc-accent);
  font-family: var(--bc-font-detail);
}

html[data-mode="dark"] body.bc-theme .bc-toc-shell::after,
body.bc-theme[data-mode="dark"] .bc-toc-shell::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(197, 156, 96, 0.24),
    transparent
  );
}

html[data-mode="dark"] body.bc-theme .bc-toc-frame,
body.bc-theme[data-mode="dark"] .bc-toc-frame {
  background: rgba(216, 171, 110, 0.84);
}

html[data-mode="dark"] body.bc-theme .bc-toc-item,
body.bc-theme[data-mode="dark"] .bc-toc-item {
  border-bottom-color: rgba(197, 156, 96, 0.11);
}

html[data-mode="dark"] body.bc-theme .bc-toc-page,
body.bc-theme[data-mode="dark"] .bc-toc-page {
  color: #c5b291;
}

html[data-mode="dark"] body.bc-theme .bc-icon,
body.bc-theme[data-mode="dark"] .bc-icon,
html[data-mode="dark"] body.bc-theme .bc-details summary::before,
body.bc-theme[data-mode="dark"] .bc-details summary::before,
html[data-mode="dark"] body.bc-theme .bc-rule-list li::marker,
body.bc-theme[data-mode="dark"] .bc-rule-list li::marker,
html[data-mode="dark"] body.bc-theme .bc-crest,
body.bc-theme[data-mode="dark"] .bc-crest,
html[data-mode="dark"] body.bc-theme .bc-brace-swatch,
body.bc-theme[data-mode="dark"] .bc-brace-swatch {
  background: var(--bc-metal);
  color: var(--bc-metal);
}

html[data-mode="dark"] body.bc-theme .bc-meander,
body.bc-theme[data-mode="dark"] .bc-meander,
html[data-mode="dark"] body.bc-theme .bc-paren-number::before,
html[data-mode="dark"] body.bc-theme .bc-paren-number::after,
body.bc-theme[data-mode="dark"] .bc-paren-number::before,
body.bc-theme[data-mode="dark"] .bc-paren-number::after {
  color: var(--bc-metal);
}

html[data-mode="dark"] body.bc-theme .bc-ledger th,
body.bc-theme[data-mode="dark"] .bc-ledger th {
  color: #e3c18c;
  background: transparent;
  text-shadow: 0 1px 0 rgba(1, 5, 12, 0.42);
}

html[data-mode="dark"] body.bc-theme .bc-ledger th,
html[data-mode="dark"] body.bc-theme .bc-ledger td,
body.bc-theme[data-mode="dark"] .bc-ledger th,
body.bc-theme[data-mode="dark"] .bc-ledger td {
  border-bottom-color: rgba(197, 156, 96, 0.1);
}

html[data-mode="dark"] body.bc-theme .bc-ledger thead,
body.bc-theme[data-mode="dark"] .bc-ledger thead {
  background:
    linear-gradient(
      90deg,
      rgba(248, 227, 188, 0.02),
      rgba(197, 156, 96, 0.08) 24%,
      rgba(248, 227, 188, 0.02) 100%
    );
}

html[data-mode="dark"] body.bc-theme .bc-field input,
html[data-mode="dark"] body.bc-theme .bc-field textarea,
body.bc-theme[data-mode="dark"] .bc-field input,
body.bc-theme[data-mode="dark"] .bc-field textarea {
  border-color: rgba(197, 156, 96, 0.18);
  background: rgba(5, 11, 20, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(248, 227, 188, 0.03),
    inset 0 -1px 0 rgba(1, 5, 12, 0.24);
}

html[data-mode="dark"] body.bc-theme .bc-details,
body.bc-theme[data-mode="dark"] .bc-details {
  border-top-color: rgba(197, 156, 96, 0.09);
}

html[data-mode="dark"][data-night="plum"] body.bc-theme,
body.bc-theme[data-mode="dark"][data-night="plum"] {
  --bc-paper: #0b090d;
  --bc-paper-soft: #f4ead7;
  --bc-paper-deep: #040306;
  --bc-surface: rgba(19, 17, 24, 0.8);
  --bc-surface-strong: rgba(14, 12, 18, 0.94);
  --bc-ink: #f0e5d5;
  --bc-ink-soft: #cabaa7;
  --bc-ink-faint: #958576;
  --bc-line: rgba(209, 188, 156, 0.11);
  --bc-line-strong: rgba(209, 188, 156, 0.22);
  --bc-accent: #c28779;
  --bc-accent-soft: #87755d;
  --bc-metal: #d7bf91;
  --bc-illumination-letter: #f4ead7;
  --bc-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
  --bc-shadow-soft: 0 16px 36px rgba(0, 0, 0, 0.32);
  --bc-junction-finial: rgba(209, 188, 156, 0.4);
  --bc-broadside-inset:
    radial-gradient(circle at top left, rgba(194, 135, 121, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(28, 22, 31, 0.92), rgba(11, 9, 13, 0.82));
  --bc-broadside-inset-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28);
  --bc-broadside-band:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    radial-gradient(circle at top right, rgba(70, 73, 110, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(23, 19, 27, 0.74), rgba(10, 8, 12, 0.58));
  --bc-broadside-band-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
  --bc-night-shell-border: rgba(209, 188, 156, 0.11);
  --bc-night-shell-surface:
    radial-gradient(circle at top left, rgba(194, 135, 121, 0.08), transparent 24%),
    radial-gradient(circle at top right, rgba(70, 73, 110, 0.16), transparent 34%),
    linear-gradient(
      145deg,
      rgba(24, 20, 28, 0.97) 0%,
      rgba(12, 10, 14, 0.98) 58%,
      rgba(8, 7, 10, 0.99) 100%
    );
  --bc-night-shell-shadow:
    0 24px 60px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    inset 0 -1px 0 rgba(0, 0, 0, 0.42);
  --bc-night-shell-ornament: rgba(216, 196, 157, 0.72);
  --bc-night-shell-ornament-opacity: 0.42;
  --bc-night-panel-surface:
    radial-gradient(circle at 18% 0, rgba(194, 135, 121, 0.1), transparent 26%),
    radial-gradient(circle at top right, rgba(70, 73, 110, 0.16), transparent 30%),
    linear-gradient(160deg, rgba(28, 22, 31, 0.98), rgba(11, 9, 13, 0.99));
  --bc-night-panel-shadow:
    0 16px 36px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28);
  --bc-night-deep-surface:
    radial-gradient(circle at 18% 0, rgba(194, 135, 121, 0.12), transparent 26%),
    radial-gradient(circle at top right, rgba(70, 73, 110, 0.2), transparent 30%),
    linear-gradient(160deg, rgba(28, 22, 31, 0.98), rgba(11, 9, 13, 0.99));
  --bc-utility-surface: rgba(23, 17, 28, 0.5);
  --bc-utility-border: rgba(205, 161, 148, 0.12);
  --bc-signal-frame-surface: var(--bc-night-shell-surface);
  --bc-signal-frame-shadow: var(--bc-night-shell-shadow);
  background:
    radial-gradient(circle at top left, rgba(121, 49, 41, 0.18), transparent 24%),
    radial-gradient(circle at 88% 8%, rgba(58, 66, 110, 0.2), transparent 29%),
    radial-gradient(circle at 50% 100%, rgba(167, 132, 76, 0.06), transparent 34%),
    linear-gradient(180deg, #100e12 0%, #070609 44%, #040306 100%);
}

html[data-mode="dark"][data-night="plum"] body.bc-theme::before,
body.bc-theme[data-mode="dark"][data-night="plum"]::before {
  background:
    radial-gradient(circle at 50% 0, rgba(242, 227, 196, 0.07), transparent 18%),
    repeating-linear-gradient(
      180deg,
      rgba(242, 227, 196, 0.018) 0,
      rgba(242, 227, 196, 0.018) 1px,
      transparent 1px,
      transparent 7px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(242, 227, 196, 0.008) 0,
      rgba(242, 227, 196, 0.008) 1px,
      transparent 1px,
      transparent 11px
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.24));
  opacity: 0.48;
}

html[data-mode="dark"][data-night="plum"] body.bc-theme .bc-mode-panel,
body.bc-theme[data-mode="dark"][data-night="plum"] .bc-mode-panel {
  background: rgba(16, 14, 19, 0.78);
  border-color: rgba(209, 188, 156, 0.12);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

html[data-mode="dark"][data-night="plum"] body.bc-theme .bc-mode-toggle,
body.bc-theme[data-mode="dark"][data-night="plum"] .bc-mode-toggle {
  background:
    linear-gradient(180deg, rgba(23, 20, 27, 0.94), rgba(11, 9, 13, 0.96));
  border-color: rgba(209, 188, 156, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 -1px 0 rgba(0, 0, 0, 0.38);
}

html[data-mode="dark"][data-night="plum"] body.bc-theme .bc-kicker,
html[data-mode="dark"][data-night="plum"] body.bc-theme .bc-card-kicker,
html[data-mode="dark"][data-night="plum"] body.bc-theme .bc-roman,
html[data-mode="dark"][data-night="plum"] body.bc-theme .bc-toc-main em,
body.bc-theme[data-mode="dark"][data-night="plum"] .bc-kicker,
body.bc-theme[data-mode="dark"][data-night="plum"] .bc-card-kicker,
body.bc-theme[data-mode="dark"][data-night="plum"] .bc-roman,
body.bc-theme[data-mode="dark"][data-night="plum"] .bc-toc-main em {
  color: #c88f74;
}

html[data-mode="dark"][data-night="plum"] body.bc-theme .bc-chip,
body.bc-theme[data-mode="dark"][data-night="plum"] .bc-chip {
  background: rgba(17, 15, 20, 0.78);
  border-color: rgba(209, 188, 156, 0.13);
  color: #b9a489;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

html[data-mode="dark"][data-night="plum"] body.bc-theme .bc-btn,
body.bc-theme[data-mode="dark"][data-night="plum"] .bc-btn {
  background:
    linear-gradient(180deg, rgba(24, 20, 28, 0.92), rgba(11, 9, 13, 0.97));
  border-color: rgba(209, 188, 156, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 0 1px rgba(0, 0, 0, 0.24),
    0 12px 28px rgba(0, 0, 0, 0.22);
}

html[data-mode="dark"][data-night="plum"] body.bc-theme .bc-btn::after,
body.bc-theme[data-mode="dark"][data-night="plum"] .bc-btn::after {
  border-color: rgba(209, 188, 156, 0.08);
}

html[data-mode="dark"][data-night="plum"] body.bc-theme .bc-btn:hover,
body.bc-theme[data-mode="dark"][data-night="plum"] .bc-btn:hover {
  border-color: rgba(209, 188, 156, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 0 1px rgba(0, 0, 0, 0.28),
    0 18px 34px rgba(0, 0, 0, 0.32);
}

html[data-mode="dark"][data-night="plum"] body.bc-theme .bc-btn--primary,
body.bc-theme[data-mode="dark"][data-night="plum"] .bc-btn--primary {
  color: #19120f;
  background: linear-gradient(180deg, #d6c093, #a97d4d);
  border-color: rgba(108, 77, 40, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 249, 232, 0.44),
    0 18px 38px rgba(0, 0, 0, 0.34);
}

html[data-mode="dark"][data-night="plum"] body.bc-theme .bc-toc-shell::after,
body.bc-theme[data-mode="dark"][data-night="plum"] .bc-toc-shell::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(209, 188, 156, 0.24),
    transparent
  );
}

html[data-mode="dark"][data-night="plum"] body.bc-theme .bc-toc-frame,
body.bc-theme[data-mode="dark"][data-night="plum"] .bc-toc-frame {
  background: rgba(209, 188, 156, 0.82);
}

html[data-mode="dark"][data-night="plum"] body.bc-theme .bc-toc-item,
body.bc-theme[data-mode="dark"][data-night="plum"] .bc-toc-item {
  border-bottom-color: rgba(209, 188, 156, 0.1);
}

html[data-mode="dark"][data-night="plum"] body.bc-theme .bc-toc-page,
body.bc-theme[data-mode="dark"][data-night="plum"] .bc-toc-page {
  color: #baa78b;
}

html[data-mode="dark"][data-night="plum"] body.bc-theme .bc-ledger th,
body.bc-theme[data-mode="dark"][data-night="plum"] .bc-ledger th {
  color: #dac49f;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.42);
}

html[data-mode="dark"][data-night="plum"] body.bc-theme .bc-ledger th,
html[data-mode="dark"][data-night="plum"] body.bc-theme .bc-ledger td,
body.bc-theme[data-mode="dark"][data-night="plum"] .bc-ledger th,
body.bc-theme[data-mode="dark"][data-night="plum"] .bc-ledger td {
  border-bottom-color: rgba(209, 188, 156, 0.09);
}

html[data-mode="dark"][data-night="plum"] body.bc-theme .bc-ledger thead,
body.bc-theme[data-mode="dark"][data-night="plum"] .bc-ledger thead {
  background:
    linear-gradient(
      90deg,
      rgba(209, 188, 156, 0.02),
      rgba(209, 188, 156, 0.07) 26%,
      rgba(209, 188, 156, 0.02) 100%
    );
}

html[data-mode="dark"][data-night="plum"] body.bc-theme .bc-field input,
html[data-mode="dark"][data-night="plum"] body.bc-theme .bc-field textarea,
body.bc-theme[data-mode="dark"][data-night="plum"] .bc-field input,
body.bc-theme[data-mode="dark"][data-night="plum"] .bc-field textarea {
  border-color: rgba(209, 188, 156, 0.18);
  background: rgba(10, 9, 13, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 -1px 0 rgba(0, 0, 0, 0.24);
}

html[data-mode="dark"][data-night="plum"] body.bc-theme .bc-details,
body.bc-theme[data-mode="dark"][data-night="plum"] .bc-details {
  border-top-color: rgba(209, 188, 156, 0.09);
}

html[data-structure="broadside"] body.bc-theme,
body.bc-theme[data-structure="broadside"] {
  --bc-radius: 8px;
  --bc-radius-pill: 8px;
}

html[data-structure="broadside"] body.bc-theme .bc-page,
body.bc-theme[data-structure="broadside"] .bc-page {
  gap: clamp(1.2rem, 2.5vw, 2.1rem);
}

html[data-structure="broadside"] body.bc-theme .bc-section,
body.bc-theme[data-structure="broadside"] .bc-section {
  gap: 0.8rem;
}

html[data-structure="broadside"] body.bc-theme .bc-shell,
html[data-structure="broadside"] body.bc-theme .bc-card,
body.bc-theme[data-structure="broadside"] .bc-shell,
body.bc-theme[data-structure="broadside"] .bc-card {
  box-shadow: none;
}

html[data-structure="broadside"] body.bc-theme .bc-frame-band,
body.bc-theme[data-structure="broadside"] .bc-frame-band {
  position: relative;
  overflow: visible;
  border-top: 1px solid var(--bc-line-strong);
  border-right: 0;
  border-bottom: 1px solid var(--bc-line);
  border-left: 0;
  border-radius: 0;
  background: var(--bc-broadside-band);
  box-shadow: var(--bc-broadside-band-shadow);
}

html[data-structure="broadside"] body.bc-theme .bc-frame-band::before,
body.bc-theme[data-structure="broadside"] .bc-frame-band::before {
  top: -0.44rem;
  width: 5.4rem;
  height: 0.85rem;
  background: var(--bc-accent);
  opacity: 0.62;
}

html[data-structure="broadside"] body.bc-theme .bc-hero-shell,
html[data-structure="broadside"] body.bc-theme .bc-toc-shell,
html[data-structure="broadside"] body.bc-theme .bc-ledger-shell,
html[data-structure="broadside"] body.bc-theme .bc-form-shell,
html[data-structure="broadside"] body.bc-theme .bc-signal-shell,
html[data-structure="broadside"] body.bc-theme .bc-signal-usage,
html[data-structure="broadside"] body.bc-theme .bc-woodcut-shell,
html[data-structure="broadside"] body.bc-theme .bc-artifacts-shell,
html[data-structure="broadside"] body.bc-theme .bc-renewal-shell,
body.bc-theme[data-structure="broadside"] .bc-hero-shell,
body.bc-theme[data-structure="broadside"] .bc-toc-shell,
body.bc-theme[data-structure="broadside"] .bc-ledger-shell,
body.bc-theme[data-structure="broadside"] .bc-form-shell,
body.bc-theme[data-structure="broadside"] .bc-signal-shell,
body.bc-theme[data-structure="broadside"] .bc-signal-usage,
body.bc-theme[data-structure="broadside"] .bc-woodcut-shell,
body.bc-theme[data-structure="broadside"] .bc-brace-shell,
body.bc-theme[data-structure="broadside"] .bc-artifacts-shell,
body.bc-theme[data-structure="broadside"] .bc-renewal-shell {
  padding-right: 0;
  padding-left: 0;
}

html[data-structure="broadside"] body.bc-theme .bc-hero-shell,
body.bc-theme[data-structure="broadside"] .bc-hero-shell {
  padding-top: 1.4rem;
  padding-bottom: 0.9rem;
  padding-right: clamp(0.95rem, 1.9vw, 1.45rem);
  padding-left: clamp(0.95rem, 1.9vw, 1.45rem);
  background: var(--bc-broadside-inset);
  box-shadow: var(--bc-broadside-inset-shadow);
}

html[data-structure="broadside"] body.bc-theme .bc-hero-notes,
body.bc-theme[data-structure="broadside"] .bc-hero-notes {
  align-content: start;
  padding-left: 1.35rem;
  border-left: 1px solid var(--bc-line);
}

html[data-structure="broadside"] body.bc-theme .bc-chip-row,
body.bc-theme[data-structure="broadside"] .bc-chip-row {
  gap: 0.4rem 0.8rem;
}

html[data-structure="broadside"] body.bc-theme .bc-chip,
body.bc-theme[data-structure="broadside"] .bc-chip {
  min-height: auto;
  padding: 0.12rem 1rem 0.12rem 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  position: relative;
}

html[data-structure="broadside"] body.bc-theme .bc-chip::after,
body.bc-theme[data-structure="broadside"] .bc-chip::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.25rem;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 999px;
  background: var(--bc-line-strong);
  transform: translateY(-50%);
}

html[data-structure="broadside"] body.bc-theme .bc-chip:last-child::after,
body.bc-theme[data-structure="broadside"] .bc-chip:last-child::after {
  display: none;
}

html[data-structure="broadside"] body.bc-theme .bc-principles-grid,
html[data-structure="broadside"] body.bc-theme .bc-devices-grid,
html[data-structure="broadside"] body.bc-theme .bc-devices-strip,
html[data-structure="broadside"] body.bc-theme .bc-woodcut-grid,
body.bc-theme[data-structure="broadside"] .bc-principles-grid,
body.bc-theme[data-structure="broadside"] .bc-devices-grid,
body.bc-theme[data-structure="broadside"] .bc-devices-strip,
body.bc-theme[data-structure="broadside"] .bc-woodcut-grid {
  gap: 0;
  align-items: start;
}

.bc-junction-mark {
  display: none;
}

html[data-structure="broadside"] body.bc-theme .bc-joined-band,
body.bc-theme[data-structure="broadside"] .bc-joined-band {
  position: relative;
}

html[data-structure="broadside"] body.bc-theme .bc-junction-mark,
body.bc-theme[data-structure="broadside"] .bc-junction-mark {
  display: block;
  position: absolute;
  top: calc(-1.62rem - 2px);
  z-index: 4;
  width: 5.3rem;
  height: 4.48rem;
  background: var(--bc-junction-finial);
  transform: translateX(calc(-50% + 1px));
  pointer-events: none;
  -webkit-mask: url("../assets/junction_t_finial.svg") center / contain no-repeat;
  mask: url("../assets/junction_t_finial.svg") center / contain no-repeat;
}

html[data-structure="broadside"] body.bc-theme .bc-junction-mark--third-a,
body.bc-theme[data-structure="broadside"] .bc-junction-mark--third-a {
  left: calc(100% / 3);
}

html[data-structure="broadside"] body.bc-theme .bc-junction-mark--third-b,
body.bc-theme[data-structure="broadside"] .bc-junction-mark--third-b {
  left: calc((100% / 3) * 2);
}

html[data-structure="broadside"] body.bc-theme .bc-junction-mark--feature,
body.bc-theme[data-structure="broadside"] .bc-junction-mark--feature {
  left: 60%;
}

html[data-structure="broadside"] body.bc-theme .bc-principle,
html[data-structure="broadside"] body.bc-theme .bc-device-lead,
html[data-structure="broadside"] body.bc-theme .bc-device-index,
html[data-structure="broadside"] body.bc-theme .bc-device-note,
html[data-structure="broadside"] body.bc-theme .bc-woodcut-panel,
body.bc-theme[data-structure="broadside"] .bc-principle,
body.bc-theme[data-structure="broadside"] .bc-device-lead,
body.bc-theme[data-structure="broadside"] .bc-device-index,
body.bc-theme[data-structure="broadside"] .bc-device-note,
body.bc-theme[data-structure="broadside"] .bc-woodcut-panel {
  min-height: 100%;
  padding: 1.15rem 1.15rem 0.9rem;
  border: 0;
  border-radius: 0;
  background: var(--bc-broadside-inset);
  box-shadow: var(--bc-broadside-inset-shadow);
}

html[data-structure="broadside"] body.bc-theme .bc-principle::before,
html[data-structure="broadside"] body.bc-theme .bc-device-lead::before,
html[data-structure="broadside"] body.bc-theme .bc-device-index::before,
html[data-structure="broadside"] body.bc-theme .bc-device-note::before,
html[data-structure="broadside"] body.bc-theme .bc-woodcut-panel::before,
body.bc-theme[data-structure="broadside"] .bc-principle::before,
body.bc-theme[data-structure="broadside"] .bc-device-lead::before,
body.bc-theme[data-structure="broadside"] .bc-device-index::before,
body.bc-theme[data-structure="broadside"] .bc-device-note::before,
body.bc-theme[data-structure="broadside"] .bc-woodcut-panel::before {
  content: "";
  top: auto;
  bottom: 0;
  left: 50%;
  width: 9.2rem;
  height: 1.6rem;
  transform: translateX(-50%);
  opacity: 0.42;
}

html[data-structure="broadside"] body.bc-theme .bc-principle + .bc-principle,
html[data-structure="broadside"] body.bc-theme .bc-devices-grid > * + *,
html[data-structure="broadside"] body.bc-theme .bc-device-note + .bc-device-note,
html[data-structure="broadside"] body.bc-theme .bc-woodcut-grid > .bc-woodcut-panel + .bc-woodcut-panel,
body.bc-theme[data-structure="broadside"] .bc-principle + .bc-principle,
body.bc-theme[data-structure="broadside"] .bc-devices-grid > * + *,
body.bc-theme[data-structure="broadside"] .bc-device-note + .bc-device-note,
body.bc-theme[data-structure="broadside"] .bc-woodcut-grid > .bc-woodcut-panel + .bc-woodcut-panel {
  border-left: 1px solid var(--bc-line);
}

html[data-structure="broadside"] body.bc-theme .bc-device-index,
body.bc-theme[data-structure="broadside"] .bc-device-index {
  align-content: start;
}

html[data-structure="broadside"] body.bc-theme .bc-toc-shell,
body.bc-theme[data-structure="broadside"] .bc-toc-shell {
  padding-top: 1.55rem;
  padding-bottom: 0.4rem;
}

html[data-structure="broadside"] body.bc-theme .bc-woodcut-shell,
body.bc-theme[data-structure="broadside"] .bc-woodcut-shell {
  padding-top: 1.6rem;
  padding-bottom: 0.65rem;
}

html[data-structure="broadside"] body.bc-theme .bc-ledger-grid,
html[data-structure="broadside"] body.bc-theme .bc-form-grid,
body.bc-theme[data-structure="broadside"] .bc-ledger-grid,
body.bc-theme[data-structure="broadside"] .bc-form-grid {
  gap: 1.5rem;
  align-items: start;
}

html[data-structure="broadside"] body.bc-theme .bc-ledger-shell,
body.bc-theme[data-structure="broadside"] .bc-ledger-shell {
  padding-top: 1.35rem;
  padding-bottom: 0.55rem;
  padding-right: clamp(0.95rem, 1.9vw, 1.45rem);
  padding-left: clamp(0.95rem, 1.9vw, 1.45rem);
}

html[data-structure="broadside"] body.bc-theme .bc-signal-shell,
body.bc-theme[data-structure="broadside"] .bc-signal-shell {
  padding-top: 1.35rem;
  padding-bottom: 0.85rem;
  padding-right: clamp(0.95rem, 1.9vw, 1.45rem);
  padding-left: clamp(0.95rem, 1.9vw, 1.45rem);
}

html[data-structure="broadside"] body.bc-theme .bc-signal-usage,
body.bc-theme[data-structure="broadside"] .bc-signal-usage {
  padding-top: 1.35rem;
  padding-bottom: 0.75rem;
  padding-right: clamp(0.95rem, 1.9vw, 1.45rem);
  padding-left: clamp(0.95rem, 1.9vw, 1.45rem);
}

html[data-structure="broadside"] body.bc-theme .bc-brace-shell,
body.bc-theme[data-structure="broadside"] .bc-brace-shell {
  padding-top: 1.35rem;
  padding-bottom: 0.75rem;
  padding-right: clamp(0.95rem, 1.9vw, 1.45rem);
  padding-left: clamp(0.95rem, 1.9vw, 1.45rem);
}

html[data-structure="broadside"] body.bc-theme .bc-side-note,
body.bc-theme[data-structure="broadside"] .bc-side-note {
  padding: 0.2rem 0 0 1.3rem;
  border: 0;
  border-left: 1px solid var(--bc-line-strong);
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}

html[data-structure="broadside"] body.bc-theme .bc-side-note::before,
body.bc-theme[data-structure="broadside"] .bc-side-note::before {
  display: none;
}

html[data-structure="broadside"] body.bc-theme .bc-form-shell,
body.bc-theme[data-structure="broadside"] .bc-form-shell {
  padding-top: 1.35rem;
  padding-bottom: 0.75rem;
  padding-right: clamp(0.95rem, 1.9vw, 1.45rem);
  padding-left: clamp(0.95rem, 1.9vw, 1.45rem);
}

html[data-structure="broadside"] body.bc-theme .bc-artifacts-shell,
html[data-structure="broadside"] body.bc-theme .bc-renewal-shell,
body.bc-theme[data-structure="broadside"] .bc-artifacts-shell,
body.bc-theme[data-structure="broadside"] .bc-renewal-shell {
  padding-top: 1.35rem;
  padding-bottom: 0.7rem;
}

html[data-structure="broadside"] body.bc-theme .bc-field input,
html[data-structure="broadside"] body.bc-theme .bc-field textarea,
body.bc-theme[data-structure="broadside"] .bc-field input,
body.bc-theme[data-structure="broadside"] .bc-field textarea {
  border-radius: 0.35rem;
  box-shadow: none;
}

html[data-structure="broadside"] body.bc-theme .bc-btn,
body.bc-theme[data-structure="broadside"] .bc-btn {
  border-radius: 0.4rem;
  clip-path: polygon(0.7rem 0, 100% 0, 100% calc(100% - 0.7rem), calc(100% - 0.7rem) 100%, 0 100%, 0 0.7rem);
  box-shadow: none;
}

html[data-structure="broadside"] body.bc-theme .bc-btn::after,
body.bc-theme[data-structure="broadside"] .bc-btn::after {
  inset: 0.3rem;
  border-radius: 0;
  clip-path: polygon(0.48rem 0, 100% 0, 100% calc(100% - 0.48rem), calc(100% - 0.48rem) 100%, 0 100%, 0 0.48rem);
}

html[data-structure="broadside"] body.bc-theme .bc-btn:hover,
body.bc-theme[data-structure="broadside"] .bc-btn:hover {
  transform: translateY(0);
}

html[data-structure="broadside"] body.bc-theme .bc-rule-list,
body.bc-theme[data-structure="broadside"] .bc-rule-list {
  gap: 0.6rem;
}

html[data-structure="broadside"] body.bc-theme .bc-signal-device,
body.bc-theme[data-structure="broadside"] .bc-signal-device {
  padding: 0 0 0.15rem;
}

html[data-structure="broadside"] body.bc-theme .bc-brace-row,
body.bc-theme[data-structure="broadside"] .bc-brace-row {
  gap: 0;
}

html[data-structure="broadside"] body.bc-theme .bc-brace-panel,
body.bc-theme[data-structure="broadside"] .bc-brace-panel {
  border-left: 1px solid var(--bc-line);
}

html[data-structure="broadside"] body.bc-theme .bc-margin-note blockquote,
body.bc-theme[data-structure="broadside"] .bc-margin-note blockquote,
html[data-structure="broadside"] body.bc-theme .bc-disclosure-shell h3,
body.bc-theme[data-structure="broadside"] .bc-disclosure-shell h3 {
  max-width: 22rem;
}

html[data-mode="light"][data-structure="broadside"] body.bc-theme .bc-frame-band,
body.bc-theme[data-mode="light"][data-structure="broadside"] .bc-frame-band {
  background: var(--bc-broadside-band);
  box-shadow: var(--bc-broadside-band-shadow);
}

html[data-mode="dark"][data-structure="broadside"] body.bc-theme .bc-frame-band,
body.bc-theme[data-mode="dark"][data-structure="broadside"] .bc-frame-band {
  background: var(--bc-broadside-band);
  box-shadow: var(--bc-broadside-band-shadow);
}

html[data-mode="dark"][data-structure="broadside"] body.bc-theme .bc-chip::after,
body.bc-theme[data-mode="dark"][data-structure="broadside"] .bc-chip::after {
  background: rgba(197, 156, 96, 0.44);
}

html[data-mode="dark"][data-night="plum"][data-structure="broadside"] body.bc-theme .bc-frame-band,
body.bc-theme[data-mode="dark"][data-night="plum"][data-structure="broadside"] .bc-frame-band {
  background: var(--bc-broadside-band);
  box-shadow: var(--bc-broadside-band-shadow);
}

html[data-structure="broadside"] body.bc-theme .bc-signal-shell.bc-frame-band,
body.bc-theme[data-structure="broadside"] .bc-signal-shell.bc-frame-band {
  background: var(--bc-signal-frame-surface);
  box-shadow: var(--bc-signal-frame-shadow);
}

html[data-mode="light"][data-structure="broadside"] body.bc-theme .bc-hero-shell,
body.bc-theme[data-mode="light"][data-structure="broadside"] .bc-hero-shell,
html[data-mode="dark"][data-structure="broadside"] body.bc-theme .bc-hero-shell,
body.bc-theme[data-mode="dark"][data-structure="broadside"] .bc-hero-shell,
html[data-mode="dark"][data-night="plum"][data-structure="broadside"] body.bc-theme .bc-hero-shell,
body.bc-theme[data-mode="dark"][data-night="plum"][data-structure="broadside"] .bc-hero-shell {
  background: var(--bc-broadside-inset);
  box-shadow: var(--bc-broadside-inset-shadow);
}

html[data-mode="dark"][data-night="plum"][data-structure="broadside"] body.bc-theme .bc-chip::after,
body.bc-theme[data-mode="dark"][data-night="plum"][data-structure="broadside"] .bc-chip::after {
  background: rgba(209, 188, 156, 0.42);
}

.bc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .bc-hero-grid,
  .bc-grid--feature,
  .bc-grid--three,
  .bc-woodcut-grid,
  .bc-pendant-row {
    grid-template-columns: 1fr;
  }

  .bc-utility-studies,
  .bc-divider-column-study {
    grid-template-columns: 1fr;
  }

  .bc-display {
    font-size: clamp(2.7rem, 14vw, 4.7rem);
  }

  .bc-title {
    font-size: clamp(1.8rem, 9vw, 3rem);
  }

  .bc-figure-lockup {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .bc-brace-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bc-vertical-divider {
    justify-self: center;
    width: 0.95rem;
  }

  .bc-brace-meta {
    grid-column: 1 / -1;
  }

  .bc-toc-list {
    padding-left: 2.9rem;
  }

  .bc-toc-frame {
    left: 0.85rem;
    width: 1.6rem;
  }

  html[data-structure="broadside"] body.bc-theme .bc-hero-notes,
  body.bc-theme[data-structure="broadside"] .bc-hero-notes {
    padding-top: 1rem;
    padding-left: 0;
    border-top: 1px solid var(--bc-line);
    border-left: 0;
  }

  html[data-structure="broadside"] body.bc-theme .bc-principle + .bc-principle,
  html[data-structure="broadside"] body.bc-theme .bc-devices-grid > * + *,
  html[data-structure="broadside"] body.bc-theme .bc-device-note + .bc-device-note,
  html[data-structure="broadside"] body.bc-theme .bc-woodcut-grid > .bc-woodcut-panel + .bc-woodcut-panel,
  body.bc-theme[data-structure="broadside"] .bc-principle + .bc-principle,
  body.bc-theme[data-structure="broadside"] .bc-devices-grid > * + *,
  body.bc-theme[data-structure="broadside"] .bc-device-note + .bc-device-note,
  body.bc-theme[data-structure="broadside"] .bc-woodcut-grid > .bc-woodcut-panel + .bc-woodcut-panel {
    border-top: 1px solid var(--bc-line);
    border-left: 0;
  }

  html[data-structure="broadside"] body.bc-theme .bc-junction-mark,
  body.bc-theme[data-structure="broadside"] .bc-junction-mark {
    display: none;
  }

  html[data-structure="broadside"] body.bc-theme .bc-side-note,
  body.bc-theme[data-structure="broadside"] .bc-side-note {
    padding-top: 1rem;
    padding-left: 0;
    border-top: 1px solid var(--bc-line-strong);
    border-left: 0;
  }

  html[data-structure="broadside"] body.bc-theme .bc-side-note::before,
  body.bc-theme[data-structure="broadside"] .bc-side-note::before {
    top: -0.45rem;
    left: 0;
    width: 4.5rem;
    height: 0.85rem;
    background: var(--bc-accent);
    opacity: 0.32;
    -webkit-mask: url("../assets/finial.svg") center / contain no-repeat;
    mask: url("../assets/finial.svg") center / contain no-repeat;
  }

  html[data-structure="broadside"] body.bc-theme .bc-brace-panel,
  body.bc-theme[data-structure="broadside"] .bc-brace-panel {
    border-top: 1px solid var(--bc-line);
    border-left: 0;
  }

}

@media (max-width: 640px) {
  .bc-page {
    width: min(100vw - 1rem, 100%);
    padding-inline: 0.5rem;
  }

  .bc-topbar {
    top: 0.5rem;
  }

  .bc-mode-panel {
    flex: 1 1 100%;
    width: 100%;
    justify-content: space-between;
    gap: 0.65rem;
  }

  .bc-control-bank {
    width: 100%;
  }

  .bc-mode-toggle {
    min-width: 0;
    flex: 1;
  }

  .bc-shell,
  .bc-card {
    border-radius: 20px;
  }

  .bc-btn {
    width: 100%;
  }

  .bc-action-row {
    flex-direction: column;
  }

  .bc-toc-item {
    gap: 0.55rem;
    grid-template-columns: 1fr auto;
  }

  .bc-toc-main {
    font-size: 1.08rem;
  }

  .bc-meander::before,
  .bc-meander::after {
    width: 2.2rem;
  }

  .bc-chapter-heading {
    gap: 0.4rem;
    font-size: clamp(1.55rem, 8vw, 2.1rem);
  }

  .bc-woodcut-divider__motif {
    width: clamp(1.9rem, 10vw, 2.6rem);
  }

  .bc-illumination {
    width: 3.4rem;
    margin-right: 0.7rem;
  }

  .bc-chapter-subject {
    font-size: 1em;
    letter-spacing: 0.1em;
  }

  html[data-structure="broadside"] body.bc-theme .bc-frame-band,
  body.bc-theme[data-structure="broadside"] .bc-frame-band {
    padding-top: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bc-btn,
  .bc-mode-toggle__thumb {
    transition: none;
  }
}
