/* The Bible text is set in Source Serif, the face of the 2026 edition; chapter initials use EB Garamond
   ExtraBold. Both are under the SIL Open Font License (assets/fonts/OFL.txt). */
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/SourceSerif4-Regular.ttf") format("truetype"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/SourceSerif4-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/SourceSerif4-Italic.ttf") format("truetype"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 600; font-display: swap; src: url("../fonts/SourceSerif4-SemiBoldItalic.ttf") format("truetype"); }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 800; font-display: block; src: url("../fonts/EBGaramond-ExtraBold.ttf") format("truetype"); }

/* Thomson Bible — shared look (taken from the iPhone app's Theme.swift).
   Colours are built from the three source colours: black, white and the blue measured from
   the PDF (#0076BA). The background family follows the reader's black ↔ blue slider; prefs.js
   writes the current values into the --bg / --page / --surface / --raised variables. */

:root {
  --blue: rgb(0, 118, 186);            /* words of God and of Christ, exactly as printed */
  --blue-hc: rgb(64, 158, 214);        /* same hue, lifted for dark surfaces */
  --midnight: rgb(6, 22, 36);
  --deep-blue: rgb(6, 62, 102);
  --brand: var(--blue);                /* buttons, switches, selections, progress: a colour theme's own */
  --brand-lift: var(--blue-hc);
  --words-blue: var(--blue);           /* the words of God and of Christ: blue in every colour theme */
  /* The highlighter (the same colors as the app, measured there on every theme). */
  --hl-yellow: rgba(255, 219, 77, .5); --hl-green: rgba(132, 214, 140, .42); --hl-pink: rgba(250, 150, 185, .36);
  --hl-orange: rgba(255, 176, 96, .44); --hl-purple: rgba(178, 156, 245, .34);
  --marked-blue: rgb(0, 100, 168);     /* the blue words on a highlight: a shade further from its color */
  --paper-top: rgb(244, 248, 253);
  --paper-bottom: rgb(206, 225, 243);

  --serif: Georgia, Gelasio, "Times New Roman", serif;
  --scripture: "Source Serif 4", Georgia, "Times New Roman", serif;
  --greek: "Times New Roman", "Noto Serif", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, system-ui, sans-serif;

  --spring: cubic-bezier(.22, 1.2, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --glow: 1;
  --fs: 19px;                          /* reading text size and line spacing (set by the reader's settings) */
  --ls: 1;
  color-scheme: dark;

  /* dark (default tint) */
  --bg: rgb(9, 14, 20);
  --page: rgb(11, 18, 26);
  --surface: rgb(20, 31, 43);
  --raised: rgb(29, 43, 58);
  --ink: #fff;
  --ink-2: rgba(255, 255, 255, .62);
  --ink-3: rgba(255, 255, 255, .36);
  --accent: rgb(64, 158, 214);
  --stroke: rgba(255, 255, 255, .08);
  --shadow: rgba(0, 0, 0, .35);
  --on-ink: #000;                      /* text on an ink-filled control */
  --art-ink: #fff;                     /* text on artwork */
  --art-top: var(--midnight);
  --art-bottom: #000;
  --selection: rgba(0, 118, 186, .32);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: rgb(236, 243, 250);
  --page: #fff;
  --surface: #fff;
  --raised: rgb(236, 241, 247);
  --ink: #000;
  --ink-2: rgba(0, 0, 0, .55);
  --ink-3: rgba(0, 0, 0, .3);
  --accent: rgb(0, 118, 186);
  --stroke: rgba(0, 0, 0, .06);
  --shadow: rgba(0, 40, 70, .10);
  --on-ink: #fff;
  --art-ink: var(--deep-blue);
  --art-top: var(--paper-top);
  --art-bottom: var(--paper-bottom);
  --selection: rgba(0, 118, 186, .16);
}

*, *::before, *::after { box-sizing: border-box; }
/* Feels like an app on a phone: the page never slides sideways (nothing can stick out past the
   screen edge), taps don't flash or zoom (pinch zoom still works), and buttons and pictures don't
   get selected or pop up a menu when held. */
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  overflow-x: hidden; overscroll-behavior-x: none; touch-action: manipulation;
}
body {
  margin: 0;
  position: relative; width: 100%; overflow-x: clip; overscroll-behavior-x: none;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
img, svg, canvas { display: block; }
button, a, label, nav, [role="button"], [role="tab"], [role="switch"], img, svg, canvas {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
img { -webkit-user-drag: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 12px; }
::selection { background: var(--selection); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.glyph { flex: none; }

/* ---------- Background: deep blue-black with a barely-there blue light that slowly drifts ---------- */
.app-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); pointer-events: none; }
.app-bg i {
  position: absolute; border-radius: 50%; will-change: transform;
  background: radial-gradient(closest-side, rgba(var(--glow-rgb, 0, 118, 186), var(--a)), rgba(var(--glow-rgb, 0, 118, 186), 0));
}
.app-bg i:nth-child(1) { --a: calc(.2 * var(--glow) + .3 * var(--wash-k, 0)); width: 220vmax; height: 220vmax; left: -25vmax; top: -112vmax; animation: drift1 54s ease-in-out infinite alternate; }
.app-bg i:nth-child(2) { --a: calc(.1 * var(--glow) + .14 * var(--wash-k, 0)); width: 180vmax; height: 180vmax; left: -95vmax; top: -45vmax; animation: drift2 66s ease-in-out infinite alternate; }
.app-bg i:nth-child(3) { --a: calc(.08 * var(--glow) + .1 * var(--wash-k, 0)); width: 200vmax; height: 200vmax; left: -10vmax; top: 30vh; }
:root[data-theme="light"] .app-bg i:nth-child(1) { --a: calc(.16 * var(--glow)); }
:root[data-theme="light"] .app-bg i:nth-child(2) { --a: calc(.08 * var(--glow)); }
:root[data-theme="light"] .app-bg i:nth-child(3) { --a: calc(.07 * var(--glow)); }
@keyframes drift1 { from { transform: translate(8vmax, -2vmax); } to { transform: translate(-8vmax, 3vmax); } }
@keyframes drift2 { from { transform: translate(-6vmax, 4vmax); } to { transform: translate(7vmax, -4vmax); } }

/* Pure Black (Settings › Appearance; theme-boot.js sets the colours): a solid black page. The hairlines
   stand out a little more, and the words of God and of Christ use the same blue lifted for dark
   backgrounds, so they read clearly on black. */
:root[data-black] { --stroke: rgba(255, 255, 255, .13); }
:root[data-black] .app-bg i { display: none; }
:root[data-black] .w-blue { color: var(--blue-hc); }
:root[data-black] .sheet { background: rgb(16, 16, 18); }

/* Colour themes (theme-boot.js sets the colours): one even colour, nothing behind the words, and the
   words of God and of Christ blue as always, lifted on the dark sides so they read clearly. */
:root[data-themed] .app-bg i { display: none; }
:root[data-themed][data-theme="dark"] { --words-blue: var(--blue-hc); }
:root[data-themed] .w-blue { color: var(--words-blue); }

/* ---------- Logo mark (Calvin's CTB monogram: silver on dark, pewter on light) ---------- */
.logo-mark { height: calc(var(--s, 46px) * .78); width: calc(var(--s, 46px) * .78 * 936 / 647); flex: none; position: relative; }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo-mark .light { display: none; }
:root[data-theme="light"] .logo-mark .dark { display: none; }
:root[data-theme="light"] .logo-mark .light { display: block; }

/* ---------- Text styles ---------- */
.eyebrow { font: 700 11.5px/1.2 var(--sans); letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent); }
.display { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; }

/* ---------- Surfaces ---------- */
.card {
  background: var(--surface); border-radius: 22px;
  box-shadow: inset 0 0 0 .75px var(--stroke), 0 6px 14px var(--shadow);
}

/* ---------- Buttons (CapsuleButtonStyle, IconButton, PressableStyle) ---------- */
.pressable { transition: transform .32s var(--spring), opacity .2s ease, filter .2s ease; }
.pressable:active { transform: scale(.96); opacity: .88; transition-duration: .08s; }
@media (prefers-reduced-motion: reduce) { .pressable:active { transform: none; } }

.capsule {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border-radius: 999px; white-space: nowrap;
  font: 600 16px/1 var(--sans); position: relative; isolation: isolate;
}
.capsule::after {               /* the app's top-lit hairline */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  padding: 1px; background: linear-gradient(rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.capsule.ink { background: var(--ink); color: var(--on-ink); box-shadow: 0 4px 10px var(--shadow); }
.capsule.on-dark { background: #fff; color: #000; box-shadow: 0 5px 12px rgba(0, 0, 0, .3); }
.capsule.accent { background: linear-gradient(var(--brand-lift), var(--brand)); color: #fff; box-shadow: 0 6px 14px rgba(0, 118, 186, .45); }
.capsule.plain { background: var(--raised); color: var(--ink); box-shadow: inset 0 0 0 1px var(--stroke); }
.capsule.plain::after { display: none; }
.capsule.glass { background: color-mix(in srgb, var(--art-ink) 12%, transparent); color: var(--art-ink); box-shadow: inset 0 0 0 .75px color-mix(in srgb, var(--art-ink) 25%, transparent); }
.capsule.glass::after { display: none; }
.capsule:hover { filter: brightness(1.04); }

.icon-btn {
  width: var(--s, 44px); height: var(--s, 44px); border-radius: 50%; flex: none;
  display: grid; place-items: center; color: var(--ink);
  background: var(--surface); box-shadow: inset 0 0 0 .75px var(--stroke), 0 3px 8px var(--shadow);
}
.icon-btn.clear { background: none; box-shadow: none; }

/* ---------- Segmented pills ---------- */
.pills {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; position: relative;
  border-radius: 999px; background: var(--surface);
  box-shadow: inset 0 0 0 .75px var(--stroke), 0 4px 10px var(--shadow);
}
.pills.wordy { grid-auto-columns: auto; }
.pills .thumb {
  position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--ink);
  box-shadow: 0 2px 6px var(--shadow); transition: transform .38s var(--spring), width .38s var(--spring);
}
.pills button {
  position: relative; z-index: 1; min-height: 40px; padding: 0 12px; border-radius: 999px;
  font: 600 14.5px/1 var(--sans); color: var(--ink-2); transition: color .25s ease; white-space: nowrap;
}
.pills button[aria-pressed="true"] { color: var(--bg); }
:root[data-theme="light"] .pills button[aria-pressed="true"] { color: #fff; }

/* ---------- Switch (BlueToggleStyle) ---------- */
.switch-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; min-height: 54px; }
.switch-row .text { flex: 1; min-width: 0; }
.switch-row .title { font: 400 17px/1.25 var(--sans); }
.switch-row .sub { font: 400 13px/1.3 var(--sans); color: var(--ink-2); margin-top: 2px; }
.switch {
  width: 50px; height: 30px; border-radius: 999px; flex: none; position: relative;
  background: var(--raised); box-shadow: inset 0 0 0 .75px var(--stroke); transition: background .25s ease;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .35s var(--spring);
}
[aria-checked="true"] .switch { background: var(--brand); }
[aria-checked="true"] .switch::after { transform: translateX(20px); }

.glyph-badge { width: 32px; height: 32px; border-radius: 10px; background: var(--raised); display: grid; place-items: center; flex: none; color: var(--ink); }

/* ---------- Bottom panels (the app's own sheets; a centred card on wide screens) ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .45); opacity: 0;
  transition: opacity .3s ease; -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px);
}
:root[data-theme="light"] .scrim { background: rgba(0, 20, 40, .22); }
.scrim.open { opacity: 1; }
.sheet {
  position: fixed; z-index: 81; left: 0; right: 0; bottom: 0; max-height: min(88dvh, 860px);
  display: flex; flex-direction: column;
  background: var(--page); color: var(--ink);
  border-radius: 32px 32px 0 0; box-shadow: inset 0 .75px 0 var(--stroke), 0 -10px 40px rgba(0, 0, 0, .35);
  transform: translateY(105%); transition: transform .5s var(--ease-out);
  padding-bottom: calc(env(safe-area-inset-bottom) + var(--badge-lift, 0px));
}
.sheet.open { transform: none; }
.sheet .grabber { width: 36px; height: 5px; border-radius: 3px; background: var(--ink-3); margin: 8px auto 0; flex: none; }
.sheet .sheet-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px 12px; flex: none; }
.sheet .sheet-head h2 { flex: 1; margin: 0; font: 700 26px/1.15 var(--serif); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Panels scroll up and down only: they never slide sideways (on phones a wide line let the Greek
   panel be dragged left and right). */
.sheet .sheet-body { overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; touch-action: pan-y; padding: 4px 20px 24px; -webkit-overflow-scrolling: touch; }
.sheet .sheet-body { overflow-wrap: anywhere; }
.sheet .close { --s: 40px; background: var(--raised); }
@media (min-width: 760px) {
  .sheet {
    left: 50%; right: auto; bottom: auto; top: 50%; width: min(560px, calc(100vw - 48px)); max-height: min(82vh, 820px);
    border-radius: 28px; transform: translate(-50%, -46%) scale(.96); opacity: 0;
    transition: transform .42s var(--ease-out), opacity .25s ease;
    box-shadow: inset 0 0 0 .75px var(--stroke), 0 30px 80px rgba(0, 0, 0, .45);
  }
  .sheet.open { transform: translate(-50%, -50%); opacity: 1; }
  .sheet .grabber { display: none; }
  .sheet .sheet-head { padding-top: 22px; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom) + var(--badge-lift, 0px)); z-index: 120;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--on-ink);
  font: 600 14px/1 var(--sans); box-shadow: 0 8px 24px var(--shadow); transition: transform .4s var(--spring), opacity .25s ease;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Scripture text (runs as printed: blue words, bold quotations) ---------- */
.w-blue { color: var(--blue); }
.w-it { font-style: italic; }   /* a Psalm's title in the New Charles Thomson Bible */
:root[data-theme="dark"] .hc .w-blue { color: var(--blue-hc); }
.underline-blue .w-blue { text-decoration: underline dotted rgba(0, 118, 186, .7); text-underline-offset: .18em; }
.w-bold { font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .app-bg i { animation: none !important; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Sliders ---------- */
.slider { position: relative; height: 40px; flex: 1; min-width: 0; touch-action: none; cursor: pointer; --f: 0; }
.slider .track, .slider .fill { position: absolute; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px; }
.slider .track { left: 0; right: 0; background: var(--raised); }
.slider .fill { left: 0; width: max(6px, calc(var(--f) * 100%)); background: var(--brand); }
.slider .knob {
  position: absolute; top: 50%; width: 30px; height: 30px; margin-top: -15px; left: calc(var(--f) * (100% - 30px));
  border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center;
  font: 700 11px/1 var(--rounded); box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
.slider.tint .track { height: 12px; margin-top: -6px; border-radius: 6px; background: linear-gradient(90deg, rgb(5, 5, 6), rgb(12, 22, 32) 50%, rgb(36, 104, 172)); box-shadow: inset 0 0 0 .75px var(--stroke); }
/* Light mode: the slider goes from white to blue, as the background does. */
:root[data-theme="light"] .slider.tint .track { background: linear-gradient(90deg, rgb(250, 250, 251), rgb(228, 238, 250) 50%, rgb(150, 195, 238)); }
.slider.tint .fill { display: none; }
.slider.tint .knob { width: 28px; height: 28px; margin-top: -14px; left: calc(var(--f) * (100% - 28px)); background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }

/* ---------- Printed page text (PagedReader: Source Serif, justified, never hyphenated) ---------- */
.page-text {
  font-family: var(--scripture); font-size: var(--fs); line-height: calc(1.14 + .36 * var(--ls));
  text-align: justify; hyphens: manual; -webkit-hyphens: manual; overflow-wrap: break-word; color: var(--ink);
}
.page-text .opener { text-align: center; break-inside: avoid; clear: both; }
.page-text .ob { font: 600 max(11px, calc(var(--fs) * .62))/1.3 var(--scripture); letter-spacing: calc(var(--fs) * .18); color: var(--accent); text-transform: uppercase; margin: 0 0 calc(var(--fs) * .2); text-indent: calc(var(--fs) * .18); }
.page-text .on { font: 400 calc(var(--fs) * 3.1)/1.12 var(--scripture); margin: 0 0 calc(var(--fs) * .9); color: var(--ink); }
.page-text .rule { width: 60px; height: 1px; background: var(--stroke); margin: calc(var(--fs) * -.4) auto calc(var(--fs) * 1.2); }
.page-text .v { margin: 0 0 calc(var(--fs) * .5); }
.page-text .vt { border-radius: 4px; transition: background-color .25s ease; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.page-text .v.sel .vt { background: var(--selection); }
.page-text .v.flash .vt { background: color-mix(in srgb, var(--brand) 20%, transparent); }
.page-text .vn { font-size: .6em; color: var(--accent); position: relative; top: -.53em; line-height: 0; }
.page-text .mark { font: 700 .62em/0 var(--sans); color: var(--accent); position: relative; top: -.48em; }
.page-text .v.omitted .vt { color: var(--ink-2); }
.page-text.no-numbers .vn { display: none; }
/* An idiom: a small speech bubble (the Idiom button's sign) raised after its last word (press and hold
   the verse, then Idiom). It stays on the line of that word. */
.page-text .idm-last { white-space: nowrap; }
.page-text .idm-last::after {
  content: ''; display: inline-block; width: .42em; height: .36em; margin: 0 .11em 0 .09em; vertical-align: .3em;
  background: color-mix(in srgb, var(--ink) 42%, transparent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 42 36'%3E%3Crect width='42' height='26.6' rx='10'/%3E%3Cpath d='M12.6 20.6 6.7 36 25.2 20.6z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 42 36'%3E%3Crect width='42' height='26.6' rx='10'/%3E%3Cpath d='M12.6 20.6 6.7 36 25.2 20.6z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.page-text.no-idioms .idm-last::after { display: none; }
/* Calvin's notes: a small blue letter where the print has a footnote number. */
.page-text .nl { font: 600 .6em/0 var(--scripture); color: var(--accent); position: relative; top: -.62em; margin-left: .03em; }
/* A chapter's first verse: the decorated initial, three lines tall, with the text around it, and the
   rest of the first word in small capitals. */
.page-text .initial {
  float: left; display: block;
  --line: calc(var(--fs) * (1.14 + .36 * var(--ls)));
  width: calc(var(--line) * 2 + var(--fs) * .66); height: calc(var(--line) * 2 + var(--fs) * .66);
  margin: calc((var(--line) - var(--fs)) / 2 + var(--fs) * .1) calc(var(--fs) * .45) 0 0;
}
.page-text .sc { font-size: .8em; letter-spacing: .06em; }
.page-text .init-off { display: none; }
.page-text.no-initials .init-on { display: none; }
.page-text.no-initials .init-off { display: inline; }

/* On artwork in light mode, the white button turns ink (the app's CapsuleButtonStyle). */
:root[data-theme="light"] .capsule.on-dark { background: #000; color: #fff; box-shadow: 0 4px 10px var(--shadow); }

/* ---------- Ways to give (support.js) ---------- */
.give-card {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; padding: 22px;
  display: flex; flex-direction: column; gap: 10px; color: var(--art-ink);
  background: linear-gradient(to bottom left, var(--art-top), var(--art-bottom));
  box-shadow: inset 0 0 0 .75px var(--stroke), 0 8px 16px var(--shadow);
}
.give-light { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; filter: blur(2.5px); }
.give-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); }
:root[data-theme="light"] .give-shade { background: linear-gradient(transparent, rgba(255, 255, 255, .55)); }
.give-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.give-eyebrow { margin: 0 0 8px; font: 700 11.5px/1.2 var(--sans); letter-spacing: 1.8px; text-transform: uppercase; color: color-mix(in srgb, var(--art-ink) 80%, transparent); }
.give-goal {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px;
  font: 600 13px/1 var(--sans); font-variant-numeric: tabular-nums;
  background: color-mix(in srgb, var(--art-ink) 14%, transparent); box-shadow: inset 0 0 0 .75px color-mix(in srgb, var(--art-ink) 22%, transparent);
}
.give-bible { width: 108px; aspect-ratio: 1; flex: none; margin: -8px -4px 0 0; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .4)); }
:root[data-theme="light"] .give-bible { filter: drop-shadow(0 8px 14px rgba(0, 40, 70, .14)); }
.give-title { margin: 0; font: 400 27px/1.15 var(--serif); }
.give-text { margin: 0; font-size: 15px; line-height: 1.45; color: color-mix(in srgb, var(--art-ink) 78%, transparent); }
.give-btn { margin-top: 8px; width: 100%; }
.give-card.large { padding: clamp(24px, 3.4vw, 38px); min-height: 440px; }
.give-card.large .give-top { flex: 1; }
.give-card.large .give-bible { width: clamp(130px, 15vw, 190px); }
.give-card.large .give-title { font-size: clamp(30px, 3.6vw, 44px); }
.give-card.large .give-text { font-size: 17px; max-width: 520px; }
.give-card.large .give-btn { width: auto; align-self: flex-start; padding: 0 26px; }
@media (max-width: 600px) { .give-card.large .give-btn { width: 100%; } .give-card.large { min-height: 0; } }

.coffee-card { padding: 18px; border-radius: 26px; display: flex; flex-direction: column; gap: 14px; }
.coffee-row { display: flex; gap: 14px; align-items: flex-start; }
.coffee-row .glyph-badge { width: 44px; height: 44px; border-radius: 13px; }
.coffee-row > div { min-width: 0; }
.coffee-row .eyebrow { margin: 2px 0 0; white-space: normal; }
.coffee-row h3 { margin: 4px 0; font: 700 20px/1.2 var(--serif); }
.coffee-text { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.coffee-btn { width: 100%; min-height: 48px; }
/* A long label on a narrow screen, or with large text: it wraps inside the button, in even lines with the
   icon beside the words, instead of running off it. */
.coffee-btn { display: block; white-space: normal; text-wrap: balance; text-align: center; line-height: 1.3; padding: 14px 16px; }
.coffee-btn .glyph { display: inline-block; vertical-align: -3px; margin-right: 8px; }
.give-panel { display: flex; flex-direction: column; gap: 14px; padding-bottom: 4px; }
.give-panel .note { margin: 2px 0 0; text-align: center; font-size: 12.5px; color: var(--ink-3); }

/* ---------- The installed web app (opened from the Home screen) ---------- */
.app-launch { display: none; }
@media (display-mode: standalone) {
  html, body { overscroll-behavior-y: none; }      /* no browser pull-to-refresh */
  .app-launch { display: grid; place-items: center; position: fixed; inset: 0; z-index: 200; background: var(--bg); transition: opacity .5s ease; }
  .app-launch.gone { opacity: 0; pointer-events: none; }
}

/* ---------- "Add to Home screen" (platform.js) ---------- */
.install-panel .sheet-head { padding-top: 12px; padding-bottom: 6px; }
.install-panel .sheet-head h2 { font-size: 20px; }
.install-panel .close { --s: 36px; }
@media (min-width: 760px) { .install-panel { width: min(400px, calc(100vw - 48px)); } .install-panel .sheet-head { padding-top: 16px; } }
.install-panel .sheet-body { padding-bottom: 18px; }
.install-box { display: grid; gap: 10px; }
.install-app { display: flex; gap: 11px; align-items: center; }
.install-app img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.install-app p { margin: 0; font-size: 13.5px; line-height: 1.35; color: var(--ink-2); }
.install-app strong { font-weight: 600; color: var(--ink); }
.install-go { width: 100%; }
.install-note { margin: 0 0 -2px; font-size: 12.5px; line-height: 1.35; color: var(--ink-2); }
.install-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.install-chip { min-height: 34px; padding: 0 12px; border-radius: 999px; background: var(--raised); color: var(--ink-2); font: 600 12.5px/1 var(--sans); transition: background .25s ease, color .25s ease; }
.install-chip.on { background: var(--ink); color: var(--bg); }
.install-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.install-steps li { display: flex; gap: 9px; align-items: flex-start; animation: step-in .55s var(--ease-out) both; animation-delay: calc(var(--i) * .07s); }
@keyframes step-in { from { opacity: 0; transform: translateY(8px); } }
.install-n { width: 21px; height: 21px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--raised); font: 700 11.5px/1 var(--sans); }
.install-steps p { margin: 1px 0 0; font-size: 14px; line-height: 1.35; }
.install-steps b { font-weight: 600; }
.menu-key { display: inline-grid; place-items: center; min-width: 25px; height: 25px; padding: 0 5px; margin: 0 1px; border-radius: 7px; vertical-align: -5px; background: var(--raised); box-shadow: inset 0 0 0 .75px var(--stroke); font: 700 15px/1 var(--sans); }

/* the little bar that floats up on a phone */
.offer-bar {
  position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: 460px; margin: 0 auto;
  display: flex; align-items: center; border-radius: 22px; background: var(--surface);
  box-shadow: inset 0 0 0 .75px var(--stroke), 0 14px 34px rgba(0, 0, 0, .4);
  transform: translateY(calc(100% + 30px)); opacity: 0; transition: transform .7s var(--ease-out), opacity .4s ease;
}
.offer-bar.show { transform: none; opacity: 1; }
.offer-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 9px; text-align: left; }
.offer-main img { width: 44px; height: 44px; border-radius: 11px; flex: none; }
.offer-text { min-width: 0; }
.offer-text strong { display: block; font: 600 15px/1.25 var(--sans); }
.offer-text span { display: block; margin-top: 1px; font-size: 13px; line-height: 1.25; color: var(--ink-2); }
.offer-close { width: 44px; height: 44px; margin-right: 5px; flex: none; display: grid; place-items: center; color: var(--ink-2); }

/* A highlight is a marker's stroke: through the body of the letters, the tall ones rising out of it, with
   rounded ends, on each line. It's drawn behind the words and takes up no room, so nothing moves. */
:root[data-theme="dark"] {
  --hl-yellow: rgba(240, 200, 70, .22); --hl-green: rgba(90, 190, 125, .24); --hl-pink: rgba(235, 115, 160, .24);
  --hl-orange: rgba(240, 140, 70, .24); --hl-purple: rgba(150, 125, 240, .26);
  --marked-blue: rgb(120, 196, 242);
}
.hl { --c: var(--hl-yellow); --top: .47em; --tall: .78em; --end: .2em;
  padding: 0 .1em; margin: 0 -.1em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background:
    radial-gradient(farthest-side at 100% 50%, var(--c) 96%, transparent) 0 var(--top) / var(--end) var(--tall) no-repeat,
    radial-gradient(farthest-side at 0 50%, var(--c) 96%, transparent) 100% var(--top) / var(--end) var(--tall) no-repeat,
    linear-gradient(var(--c), var(--c)) var(--end) var(--top) / calc(100% - var(--end) * 2) var(--tall) no-repeat;
}
.hl-green { --c: var(--hl-green); } .hl-pink { --c: var(--hl-pink); }
.hl-orange { --c: var(--hl-orange); } .hl-purple { --c: var(--hl-purple); }
:root .hl .w-blue { color: var(--marked-blue); }
.lead { display: inline; }

/* Thomson ↔ New Charles Thomson Bible (translation.js), as on the app's Bible tab. */
.tr-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 18px;
  background: var(--surface); box-shadow: inset 0 0 0 .75px var(--stroke), 0 6px 18px var(--shadow, rgba(0,0,0,.12)); }
.tr-switch button { min-height: 52px; border-radius: 14px; color: var(--ink-2); display: grid; place-content: center; gap: 2px;
  font: inherit; text-align: center; cursor: pointer; background: transparent; }
.tr-switch button strong { font: 700 15.5px/1.15 var(--sans); }
.tr-switch button span { font: 500 11.5px/1.2 var(--sans); opacity: .9; }
.tr-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.tr-switch.compact { border-radius: 24px; }
.tr-switch.compact button { min-height: 40px; border-radius: 20px; }

/* The NCTB's Hebrew Names switch (hebrewnames.js), under the translation switch and in the Listen side's
   text panel: one card that says plainly which names are being read, with the site's own switch. */
.hn-toggle { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px 14px 18px; border-radius: 18px;
  text-align: left; color: var(--ink); font: inherit; cursor: pointer;
  background: var(--surface); box-shadow: inset 0 0 0 .75px var(--stroke), 0 6px 18px var(--shadow, rgba(0,0,0,.12));
  transition: background .3s ease; }
.hn-toggle[aria-checked="true"] { background: color-mix(in srgb, var(--brand) 13%, var(--surface)); }
.hn-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hn-title { font: 700 18px/1.15 var(--serif); letter-spacing: -.005em; }
.hn-names { font: 500 13.5px/1.3 var(--sans); color: var(--ink-2); text-wrap: pretty; }
.hn-toggle[aria-checked="true"] .hn-names { color: var(--ink); }
.hn-end { display: flex; align-items: center; gap: 10px; flex: none; }
.hn-state { min-width: 2.3em; text-align: right; font: 600 11.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.hn-toggle[aria-checked="true"] .hn-state { color: var(--brand-lift); }
:root[data-theme="light"] .hn-toggle[aria-checked="true"] .hn-state { color: var(--brand); }

/* ---------- Download for Windows: the slideshow (winsetup.js) ---------- */
@media (min-width: 760px) { .sheet.win-guide { width: min(680px, calc(100vw - 48px)); } }
.wg { display: flex; flex-direction: column; gap: 16px; }
.wg-stage {
  position: relative; height: 300px; border-radius: 18px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 20% 10%, #3b78c4 0%, #1d4d8f 45%, #0d2a55 100%);
  box-shadow: inset 0 0 0 .75px rgba(255, 255, 255, .12);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif; color: #1b1b1b; -webkit-user-select: none; user-select: none;
}
@media (max-width: 520px) { .wg-stage { height: 250px; } }
.wg-copy { display: flex; flex-direction: column; gap: 8px; }
.wg-title { margin: 0; font: 700 21px/1.25 var(--serif); }
.wg-text p { margin: 0 0 8px; font: 400 15px/1.5 var(--sans); color: var(--ink-2); }
.wg-why { font: 400 14px/1.5 var(--sans); color: var(--ink-2); }
.wg-why summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.wg-why p { margin: 8px 0 0; }
.wg-dots-nav { display: flex; justify-content: center; gap: 8px; }
.wg-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); padding: 0; transition: width .3s var(--ease-out), background .3s ease; }
.wg-dot.on { width: 22px; border-radius: 4px; background: var(--ink); }
.wg-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wg-nav .capsule { height: 46px; }
.wg-nav .capsule:disabled { opacity: .4; }
.wg-extra { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: 13.5px; }
.wg-extra .text-link { font-size: 13.5px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

/* the pointer */
.wg-cursor { position: absolute; left: 0; top: 0; z-index: 20; width: 22px; height: 22px; margin: -3px 0 0 -5px; pointer-events: none;
  transition: transform .75s cubic-bezier(.45, 0, .2, 1); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.wg-cursor svg { display: block; transition: transform .12s ease; transform-origin: 5px 3px; }
.wg-cursor.press svg { transform: scale(.82); }
.wg-cursor::after { content: ""; position: absolute; left: -9px; top: -11px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .55); transform: scale(0); opacity: 0; }
.wg-cursor.press::after { animation: wg-ripple .5s ease-out; }
@keyframes wg-ripple { from { transform: scale(.2); opacity: .9; } to { transform: scale(1.4); opacity: 0; } }

/* a browser window */
.wg-browser { position: absolute; left: 6%; right: 6%; top: 9%; bottom: -8%; border-radius: 10px; background: #f6f7f9; box-shadow: 0 18px 40px rgba(0, 0, 0, .4); overflow: hidden; }
.wg-chrome { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; background: #e9ebef; font-size: 12px; color: #333; }
.wg-tab { padding: 6px 12px; border-radius: 8px 8px 0 0; background: #f6f7f9; align-self: flex-end; font-size: 11.5px; }
.wg-addr { flex: 1; height: 24px; display: flex; align-items: center; padding: 0 12px; border-radius: 12px; background: #fff; color: #555; font-size: 11.5px; }
.wg-dl { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; color: #0b57d0; background: rgba(11, 87, 208, .1); }
.wg-page { padding: 20px 26px; display: flex; flex-direction: column; gap: 10px; }
.wg-page-line { height: 10px; width: 46%; border-radius: 5px; background: #dfe3e8; }
.wg-page-line.short { width: 30%; }
.wg-page-block { height: 70px; width: 60%; border-radius: 10px; background: #e7eaee; }
.wg-flyout { position: absolute; right: 14px; top: 44px; width: min(330px, 78%); padding: 10px; border-radius: 10px; background: #fff; box-shadow: 0 10px 26px rgba(0, 0, 0, .22); }
.wg-flyout.wg-drop { opacity: 0; transform: translateY(-10px); transition: opacity .35s ease, transform .35s ease; }
.wg-flyout.wg-drop.in { opacity: 1; transform: none; }
.wg-fly-head { font-size: 12px; font-weight: 600; color: #222; margin: 0 0 8px 4px; }
.wg-file { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; background: #f3f4f6; }
.wg-exe { width: 30px; height: 30px; border-radius: 7px; overflow: hidden; flex: none; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.wg-exe img { width: 100%; height: 100%; display: block; }
.wg-file-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.wg-file-t strong { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wg-small { font-size: 11px; line-height: 1.35; color: #555; }
.wg-warn { color: #8a5a00; }
.wg-file.ok .wg-warn, .wg-file.ok .wg-link { color: #0b57d0; font-weight: 600; }
.wg-progress { display: block; height: 4px; border-radius: 2px; background: #dde1e6; overflow: hidden; margin-top: 2px; }
.wg-progress i { display: block; height: 100%; width: 0; background: #0b57d0; border-radius: 2px; transition: width 1.3s ease; }
.wg-dots { font-size: 16px; padding: 2px 8px; border-radius: 6px; color: #333; background: #fff; box-shadow: 0 0 0 1px #d9dce1; }
.wg-menu { position: absolute; right: 6px; top: 40px; z-index: 3; display: flex; flex-direction: column; min-width: 170px; padding: 6px; border-radius: 8px; background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .22); font-size: 12px; opacity: 0; transform: translateY(-4px); transition: opacity .2s ease, transform .2s ease; pointer-events: none; }
.wg-menu.in { opacity: 1; transform: none; }
.wg-menu span { padding: 7px 10px; border-radius: 5px; }
.wg-menu .wg-keep { background: #eef3fd; font-weight: 600; }
.wg-link { color: #0b57d0; font-size: 11.5px; cursor: default; }
.wg-dialog { position: absolute; left: 50%; top: 52%; z-index: 4; width: min(360px, 82%); translate: -50% -50%; display: flex; flex-direction: column; gap: 8px; padding: 16px;
  border-radius: 10px; background: #fff; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); font-size: 12.5px; opacity: 0; transform: scale(.96); transition: opacity .25s ease, transform .25s ease; }
.wg-dialog.in { opacity: 1; transform: none; }
.wg-dialog > strong { font-size: 13.5px; line-height: 1.3; }
.wg-more { display: none; align-items: center; justify-content: space-between; gap: 10px; }
.wg-dialog.more .wg-more { display: flex; }
.wg-actions { display: flex; justify-content: flex-end; gap: 8px; }
.wg-btn { display: inline-flex; align-items: center; height: 28px; padding: 0 14px; border-radius: 6px; background: #f0f1f3; box-shadow: inset 0 0 0 1px #d6d9de; font-size: 12px; font-weight: 600; }
.wg-btn.primary { background: #0b57d0; color: #fff; box-shadow: none; }

/* the blue SmartScreen box */
.wg-desktop { position: absolute; inset: 0; }
.wg-ss { position: absolute; left: 50%; top: 50%; width: min(440px, 88%); translate: -50% -50%; display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 16px;
  background: #0d63b5; color: #fff; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); transition: opacity .35s ease, transform .35s ease; }
.wg-ss.gone { opacity: 0; transform: scale(.94); }
.wg-ss-title { font-size: 21px; font-weight: 300; line-height: 1.2; }
.wg-ss-text { font-size: 12px; line-height: 1.45; opacity: .95; }
.wg-ss-link { align-self: flex-start; font-size: 12px; text-decoration: underline; text-underline-offset: 2px; }
.wg-ss-details { display: none; flex-direction: column; gap: 2px; font-size: 11.5px; opacity: .92; }
.wg-ss.more .wg-ss-details { display: flex; }
.wg-ss-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.wg-ss-btn { display: inline-flex; align-items: center; height: 30px; padding: 0 16px; font-size: 12px; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.wg-ss-btn.run { display: none; }
.wg-ss.more .wg-ss-btn.run { display: inline-flex; }

/* the installer, then the app */
.wg-installer { position: absolute; left: 50%; top: 50%; width: min(380px, 84%); height: 250px; translate: -50% -50%; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 22px 18px; border-radius: 10px; color: #fff; text-align: center;
  background: radial-gradient(120% 90% at 85% -5%, rgba(0, 118, 186, .32), transparent 70%), #090e14; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); transition: opacity .3s, transform .3s; }
.wg-installer.gone { opacity: 0; transform: scale(.94); }
.wg-inst-logo { width: 46px; }
.wg-inst-title { font: 700 18px/1.2 Georgia, serif; }
.wg-inst-body { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 86%; min-height: 44px; }
.wg-inst-body .wg-small { color: rgba(255, 255, 255, .72); }
.wg-installer .wg-progress { display: none; width: 100%; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .12); }
.wg-installer .wg-progress i { background: linear-gradient(90deg, #0076ba, #409ed6); border-radius: 3px; }
.wg-installer.working .wg-progress { display: block; }
.wg-inst-actions { margin-top: auto; }
.wg-pill { display: none; padding: 9px 22px; border-radius: 999px; background: #fff; color: #090e14; font-weight: 600; font-size: 13px; }
.wg-installer:not(.working):not(.done) .wg-pill:first-child { display: inline-block; }
.wg-installer.done .wg-pill:last-child { display: inline-block; }
.wg-app { position: absolute; left: 7%; right: 7%; top: 10%; bottom: 10%; display: flex; gap: 10px; padding: 10px; border-radius: 10px; background: #0b121a;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5); opacity: 0; transform: scale(.96); transition: opacity .45s ease .1s, transform .45s ease .1s; }
.wg-app.in { opacity: 1; transform: none; }
.wg-app-side { width: 26%; display: flex; flex-direction: column; gap: 6px; padding: 10px 8px; border-radius: 12px; background: #142130; color: rgba(255, 255, 255, .8); font-size: 11px; font-weight: 600; }
.wg-app-side img { width: 34px; margin: 0 0 6px 4px; }
.wg-app-side span { padding: 6px 8px; border-radius: 8px; }
.wg-app-side span.on { background: #fff; color: #0b121a; }
.wg-app-main { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 8px; }
.wg-app-eyebrow { font: 700 18px/1 Georgia, serif; color: #fff; }
.wg-app-card { height: 44%; border-radius: 12px; background: linear-gradient(110deg, #20456e, #0f2742); }
.wg-app-row { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wg-app-row i { border-radius: 12px; background: #142130; }

/* the Edge warning, step by step: a close-up, a pulsing ring on what to click, and a numbered caption */
.wg-zoomframe .wg-browser, .wg-zoomframe .wg-ss { transition: transform .65s cubic-bezier(.45, 0, .2, 1), opacity .3s ease; }
.wg-ring { position: absolute; left: 0; top: 0; z-index: 19; border-radius: 999px; translate: -50% -50%; pointer-events: none; opacity: 0;
  border: 2.5px solid #f6c945; transition: opacity .2s ease; }
.wg-ring.on { opacity: 1; animation: wg-pulse 1.1s ease-out infinite; }
@keyframes wg-pulse { 0% { box-shadow: 0 0 0 0 rgba(246, 201, 69, .6); } 100% { box-shadow: 0 0 0 16px rgba(246, 201, 69, 0); } }
.wg-caption { position: absolute; left: 14px; top: 12px; z-index: 21; display: flex; align-items: center; gap: 9px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(9, 14, 20, .88); color: #fff; font: 600 13.5px/1.2 "Segoe UI", system-ui, sans-serif; box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
  opacity: 0; transform: translateY(-8px); transition: opacity .3s ease, transform .3s cubic-bezier(.2, .8, .2, 1); }
.wg-caption.show { opacity: 1; transform: none; }
.wg-caption b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #f6c945; color: #1b1b1b; font-size: 12.5px; }
.wg-file-warn { align-items: flex-start; }
.wg-shield { color: #8a5a00; flex: none; padding-top: 2px; }
.wg-warn2 { font-size: 11.5px; line-height: 1.35; color: #1b1b1b; }
.wg-file.ok .wg-warn2 { color: #0b57d0; font-weight: 600; }
.wg-icon-btn { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 6px; color: #333; }
.wg-dots2 { font-size: 16px; background: #fff; box-shadow: 0 0 0 1px #d9dce1; }
.wg-split { position: relative; display: inline-flex; height: 28px; border-radius: 6px; background: #0b57d0; color: #fff; font-size: 12px; font-weight: 600; }
.wg-split-main { display: flex; align-items: center; padding: 0 12px; }
.wg-split-arrow { display: grid; place-items: center; width: 26px; border-left: 1px solid rgba(255, 255, 255, .35); }
.wg-split-menu { position: absolute; right: 0; top: 33px; z-index: 5; min-width: 128px; padding: 5px; border-radius: 8px; background: #fff; color: #1b1b1b; font-weight: 400;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .22); opacity: 0; transform: translateY(-4px); transition: opacity .2s ease, transform .2s ease; }
.wg-split.open .wg-split-menu { opacity: 1; transform: none; }
.wg-split-item { display: block; padding: 7px 10px; border-radius: 5px; background: #eef3fd; }
