/* Edition themes: each edition's palette, interface tokens, and typefaces live here. */
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-color: rgba(222, 239, 233, 0.82);
  background-image:
    linear-gradient(128deg, rgba(49, 88, 99, 0.12), transparent 52%),
    linear-gradient(312deg, rgba(169, 124, 53, 0.09), transparent 48%),
    repeating-linear-gradient(45deg, transparent 0 34px, rgba(49, 88, 99, 0.025) 34px 35px);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}
body.is-krv-edition::before {
  opacity: 1;
  background-color: #e8f1f4;
  background-image: linear-gradient(128deg, #bed8ea, #e8f1f4 58%, #c3d3e5);
}
body.is-krv-edition {
  --switcher-border: rgba(49, 88, 99, 0.3);
  --switcher-bg: linear-gradient(145deg, rgba(250, 255, 251, 0.88), rgba(222, 239, 233, 0.82));
  --switcher-shadow: 0 2px 0 rgba(49, 88, 99, 0.18);
  --switcher-ink: var(--deep-teal);
  --switcher-rule: var(--deep-teal);
  --switcher-active-bg: linear-gradient(120deg, rgba(241, 250, 245, 0.96), rgba(255, 255, 255, 0.84));
  --switcher-check: var(--deep-teal);
}
body.is-kjv-edition {
  --verse-font-size-adjustment: -2px;
}
body.is-diodati-edition {
  --switcher-border: rgba(148, 83, 107, 0.3);
  --switcher-bg: linear-gradient(145deg, rgba(255, 250, 252, 0.94), rgba(243, 218, 227, 0.88));
  --switcher-shadow: 0 2px 0 rgba(148, 83, 107, 0.2);
  --switcher-ink: #854d61;
  --switcher-rule: #a05f74;
  --switcher-active-bg: linear-gradient(120deg, rgba(248, 237, 241, 0.98), rgba(255, 250, 252, 0.9));
  --switcher-check: #674251;
  --book-current-sheen-edge: rgba(255, 255, 255, 0.56);
  --book-current-fill: linear-gradient(112deg, #efcdd8 0%, #fff8fb 28%, #e8b8c6 48%, #f8e9ee 68%, #efcdd8 100%);
  --book-current-border: linear-gradient(135deg, #9b536b, var(--brass-soft), #674251);
  --book-current-shadow: rgba(103, 66, 81, 0.22);
  --book-current-ring: rgba(255, 255, 255, 0.5);
  --book-current-ink: #40353e;
  --book-current-index: #945d70;
  --canvas: #f8edf1;
  --paper: #fff9fa;
  --line: #ead6dd;
  --blue: #dcebee;
  --blue-strong: #9dc8cc;
  --lavender: #e5dfef;
  --yellow: #f5ecd4;
  --pink: #f3cada;
  --green: #dce8d6;
  --coral: #a94f66;
  --deep-teal: #674251;
  --navy-ink: #40353e;
  --brass: #946a43;
  --brass-soft: #dcc18f;
  --brass-shadow: #b89a69;
  --chapter-blue: #91c6c6;
  --chapter-lavender: #c7b5d8;
  --chapter-pink: #e9a1b5;
  --chapter-green: #d7ce9e;
  --focus: #a05f74;
  --focus-border: #c38c9e;
  --focus-ring: rgba(174, 100, 124, 0.18);
  --grain: rgba(115, 74, 89, 0.06);
  --serif: var(--serif-italian);
}
body.is-diodati-edition::before {
  opacity: 1;
  background-color: #f8edf1;
  background-image:
    linear-gradient(128deg, rgba(169, 79, 102, 0.14), transparent 54%),
    linear-gradient(312deg, rgba(148, 106, 67, 0.12), transparent 48%),
    repeating-linear-gradient(45deg, transparent 0 34px, rgba(103, 66, 81, 0.025) 34px 35px);
}
body.is-luther1912-edition {
  --switcher-border: rgba(163, 91, 69, 0.3);
  --switcher-bg: linear-gradient(145deg, rgba(255, 253, 245, 0.94), rgba(255, 239, 202, 0.88));
  --switcher-shadow: 0 2px 0 rgba(163, 91, 69, 0.18);
  --switcher-ink: #9b5147;
  --switcher-rule: #b9534b;
  --switcher-active-bg: linear-gradient(120deg, rgba(255, 248, 223, 0.98), rgba(255, 253, 246, 0.9));
  --switcher-check: #654840;
  --book-current-sheen-edge: rgba(255, 255, 255, 0.58);
  --book-current-fill: linear-gradient(112deg, #f8e6ab 0%, #fffaf0 28%, #f5d7c6 48%, #fff4d8 68%, #f8e6ab 100%);
  --book-current-border: linear-gradient(135deg, #ad5b4b, var(--brass-soft), #81533e);
  --book-current-shadow: rgba(129, 83, 62, 0.22);
  --book-current-ring: rgba(255, 255, 255, 0.52);
  --book-current-ink: #413631;
  --book-current-index: #96594d;
  --canvas: #fff8df;
  --paper: #fffdf6;
  --line: #eadfc1;
  --blue: #dcebed;
  --blue-strong: #9dc5c8;
  --lavender: #e6dfeb;
  --yellow: #fff1bd;
  --pink: #f4d3c7;
  --green: #e0e8d1;
  --coral: #b9534b;
  --deep-teal: #654840;
  --navy-ink: #413631;
  --brass: #9b6841;
  --brass-soft: #ddc18d;
  --brass-shadow: #b69a68;
  --chapter-blue: #8dbfc5;
  --chapter-lavender: #c8b7d3;
  --chapter-pink: #e8a88f;
  --chapter-green: #d9cf9d;
  --focus: #a5534a;
  --focus-border: #c28174;
  --focus-ring: rgba(185, 83, 75, 0.17);
  --grain: rgba(103, 72, 53, 0.06);
}
body.is-luther1912-edition::before {
  opacity: 1;
  background-color: #fff5d3;
  background-image:
    linear-gradient(132deg, rgba(255, 239, 185, 0.82), transparent 55%),
    linear-gradient(312deg, rgba(185, 83, 75, 0.15), transparent 54%),
    repeating-linear-gradient(45deg, transparent 0 34px, rgba(103, 72, 53, 0.025) 34px 35px);
}
body.is-japbungo-edition {
  --canvas: #edf5eb;
  --serif: var(--serif-japanese);
  --sans: var(--sans-japanese);
}
body.is-martin1744-edition {
  --canvas: #f5edf2;
  --serif: var(--serif-french);
  --paper: #fffdfd;
  --line: #e7dce5;
  --blue: #dce8f8;
  --blue-strong: #a9c5e8;
  --lavender: #e6e2f1;
  --yellow: #fff3d5;
  --pink: #f5d6e2;
  --green: #e2eee2;
  --coral: #bd5d70;
  --deep-teal: #405d75;
  --navy-ink: #30455f;
  --brass: #a47d76;
  --brass-soft: #d9b8bc;
  --brass-shadow: #c59da5;
  --chapter-blue: #9ebce3;
  --chapter-lavender: #d9cbe8;
  --chapter-pink: #e9afc5;
  --chapter-green: #c9decf;
  --focus: #a95672;
  --focus-border: #ca8199;
  --focus-ring: rgba(169, 86, 114, 0.16);
  --grain: rgba(81, 79, 111, 0.055);
}
body.is-martin1744-edition::before {
  opacity: 1;
  background-color: #fff;
  background-image: linear-gradient(135deg, #dce8f8 0%, #fff 50%, #f5d6e2 100%);
}
body.is-rv1865-edition {
  --canvas: #edf3e8;
  --paper: #fffdf6;
  --line: #dce4d4;
  --blue: #d9e8e4;
  --blue-strong: #a7c0a3;
  --lavender: #e4e6d7;
  --yellow: #f2e7c7;
  --pink: #eed8d0;
  --green: #d5e5ce;
  --coral: #a75f48;
  --deep-teal: #4f6448;
  --navy-ink: #3b4a3b;
  --brass: #9d7839;
  --brass-soft: #d9c07f;
  --brass-shadow: #b99a5c;
  --chapter-blue: #a9c8b3;
  --chapter-lavender: #d8ddc8;
  --chapter-pink: #e8c8b8;
  --chapter-green: #d5e2c6;
  --focus: #667b55;
  --focus-border: #9aaa79;
  --focus-ring: rgba(102, 123, 85, 0.18);
  --grain: rgba(85, 92, 65, 0.06);
  --serif: var(--serif-spanish);
}
body.is-rv1865-edition::before {
  opacity: 1;
  background-color: #edf3e8;
  background-image:
    linear-gradient(132deg, rgba(174, 197, 159, 0.74), transparent 52%),
    linear-gradient(312deg, rgba(218, 191, 124, 0.46), transparent 51%),
    linear-gradient(28deg, rgba(238, 216, 208, 0.32), transparent 40%);
}

body:is(.is-krv-edition, .is-diodati-edition, .is-luther1912-edition) .edition-switcher {
  border-color: var(--switcher-border);
  background: var(--switcher-bg);
  box-shadow: var(--switcher-shadow);
}
body:is(.is-krv-edition, .is-diodati-edition, .is-luther1912-edition) .edition-switcher label,
body:is(.is-krv-edition, .is-diodati-edition, .is-luther1912-edition) .edition-select-caret,
body:is(.is-krv-edition, .is-diodati-edition, .is-luther1912-edition) .edition-trigger-code,
body:is(.is-krv-edition, .is-diodati-edition, .is-luther1912-edition) .edition-offline-action,
body:is(.is-krv-edition, .is-diodati-edition, .is-luther1912-edition) .edition-option-mark {
  color: var(--switcher-ink);
}
body:is(.is-krv-edition, .is-diodati-edition, .is-luther1912-edition) .edition-switcher label::before {
  background: linear-gradient(90deg, var(--switcher-rule), transparent);
}
body:is(.is-krv-edition, .is-diodati-edition, .is-luther1912-edition) .edition-trigger,
body:is(.is-krv-edition, .is-diodati-edition, .is-luther1912-edition) .edition-options {
  border-color: var(--switcher-border);
}
body:is(.is-krv-edition, .is-diodati-edition, .is-luther1912-edition) .edition-trigger,
body:is(.is-krv-edition, .is-diodati-edition, .is-luther1912-edition) .edition-option.is-selected {
  background: var(--switcher-active-bg);
}
body:is(.is-krv-edition, .is-diodati-edition, .is-luther1912-edition) .edition-option.is-selected .edition-option-check {
  color: var(--switcher-check);
}
body:is(.is-diodati-edition, .is-luther1912-edition) .book-row.is-current {
  --sheen-edge: var(--book-current-sheen-edge);
  --sheen-core: rgba(255, 255, 255, 0.96);
  background:
    var(--book-current-fill) padding-box,
    var(--book-current-border) border-box;
  box-shadow:
    0 2px 0 var(--book-current-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 0 0 1px var(--book-current-ring);
  color: var(--book-current-ink);
}
body:is(.is-diodati-edition, .is-luther1912-edition) .book-row.is-current .book-index {
  color: var(--book-current-index);
}
body.is-krv-edition .edition-trigger-label,
body.is-krv-edition .edition-option-description,
body.is-krv-edition .edition-attribution,
body.is-krv-edition .book-name,
body.is-krv-edition .chapter-select,
body.is-krv-edition .chapter-menu-heading h2,
body.is-krv-edition .chapter-option,
body.is-krv-edition .chapter-options-count {
  font-family: var(--serif-korean-ui);
}
