@font-face { font-family: "EBG"; src: url("fonts/ebg-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "EBG"; src: url("fonts/ebg-Italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "EBG"; src: url("fonts/ebg-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --navy: #192648;
  --navy-2: #24345c;
  --cream: #f8f3e4;
  --gold: #b69869;
  --gold-ink: #8a6b3a;
  --bg: #fbf8f2;
  --bg-2: #f3eee2;
  --card: #ffffff;
  --ink: #1d2333;
  --muted: #6b6f7b;
  --line: #e4dccb;
  --hl: rgba(182, 152, 105, .28);
  --shadow: 0 1px 2px rgba(25, 38, 72, .08), 0 6px 24px rgba(25, 38, 72, .10);
  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text: "EBG", "EB Garamond", Garamond, Georgia, serif;
  --brand: Didot, "Bodoni 72", "Bodoni MT", "EBG", serif;
  --size: 20px;
  color-scheme: light;
}
:root[data-theme="sepia"] {
  --bg: #f4ead6; --bg-2: #ebdfc6; --card: #fbf4e6; --ink: #3a2e20; --muted: #7a6a55; --line: #ddcfb3;
  --hl: rgba(160, 120, 60, .28);
}
:root[data-theme="night"] {
  --bg: #10172a; --bg-2: #18213a; --card: #1b2540; --ink: #e8e2d1; --muted: #9ba1b0; --line: #2b3656;
  --gold: #cdb07f; --gold-ink: #d9bd8c; --hl: rgba(205, 176, 127, .26); --navy: #e8e2d1; --navy-2: #c9c3b3;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #10172a; --bg-2: #18213a; --card: #1b2540; --ink: #e8e2d1; --muted: #9ba1b0; --line: #2b3656;
    --gold: #cdb07f; --gold-ink: #d9bd8c; --hl: rgba(205, 176, 127, .26); --navy: #e8e2d1; --navy-2: #c9c3b3;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--ui); font-size: 16px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.hide { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* ------------------------------------------------------------ chrome */
header.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line); }
.top .in { max-width: 1120px; margin: 0 auto; height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .badge { width: 28px; height: 28px; border-radius: 6px; background: #192648; color: #e9d9b5; display: grid; place-items: center;
  font-family: var(--brand); font-size: 18px; line-height: 1; box-shadow: inset 0 0 0 1.5px #b69869; }
.brand .word { font-family: var(--brand); letter-spacing: .22em; font-size: 15px; text-transform: uppercase; color: var(--navy); }
.brand .word small { display: block; font-family: var(--ui); letter-spacing: .12em; font-size: 9.5px; color: var(--muted); margin-top: 1px; }
.top nav { margin-left: auto; display: flex; gap: 4px; }
.top nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 14.5px; color: var(--muted); }
.top nav a.on { color: var(--ink); background: var(--bg-2); }
.tabs { display: none; }
@media (max-width: 720px) {
  .top nav { display: none; }
  .tabs { display: flex; position: fixed; z-index: 30; bottom: 0; left: 0; right: 0; background: var(--card);
    border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabs a { flex: 1; text-align: center; padding: 8px 0 7px; font-size: 11px; text-decoration: none; color: var(--muted); }
  .tabs a svg { display: block; margin: 0 auto 2px; width: 24px; height: 24px; }
  .tabs a.on { color: var(--ink); }
  .tabs a.on svg { color: var(--gold-ink); }
}
main.page { max-width: 1120px; margin: 0 auto; padding: 20px 16px 64px; }
/* phones: room under the last button for the tab bar and the home strip (after the rule above, or it loses) */
@media (max-width: 720px) { main.page { padding-bottom: calc(110px + env(safe-area-inset-bottom)); } }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

h1, h2, h3 { font-weight: 600; margin: 0; }
.h-sec { display: flex; align-items: baseline; justify-content: space-between; margin: 34px 0 14px; }
.h-sec h2 { font-family: var(--text); font-size: 24px; font-weight: 600; letter-spacing: .01em; }
.h-sec .sub { color: var(--muted); font-size: 14px; }
.muted { color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px;
  font-weight: 600; font-size: 15.5px; text-decoration: none; white-space: nowrap; }
.btn.primary { background: #192648; color: #f8f3e4; }
:root[data-theme="night"] .btn.primary { background: var(--gold); color: #10172a; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .btn.primary { background: var(--gold); color: #10172a; } }
.btn.ghost { box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--gold); }
.btn.small { height: 36px; padding: 0 14px; font-size: 14px; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12.5px;
  font-weight: 600; letter-spacing: .02em; background: var(--bg-2); color: var(--muted); }
.chip.free { background: rgba(182, 152, 105, .18); color: var(--gold-ink); }

/* ------------------------------------------------------------ library */
.welcome { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: #192648; color: #f8f3e4; border-radius: 18px; padding: 22px 24px; margin-top: 6px; }
.welcome h1 { font-family: var(--text); font-weight: 400; font-size: 27px; line-height: 1.15; }
.welcome p { margin: 6px 0 0; color: #cfc6b0; font-size: 15px; }
.welcome .btn { background: #b69869; color: #192648; }
.resume { display: flex; gap: 16px; align-items: center; background: var(--card); border-radius: 18px; padding: 14px; box-shadow: var(--shadow);
  text-decoration: none; margin-top: 6px; }
.resume img { width: 74px; border-radius: 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.resume .t { font-family: var(--text); font-size: 21px; line-height: 1.15; }
.resume .c { color: var(--muted); font-size: 14px; margin-top: 3px; }
.resume .bar { height: 4px; background: var(--bg-2); border-radius: 4px; margin-top: 10px; overflow: hidden; }
.resume .bar i { display: block; height: 100%; background: var(--gold); }
.resume .go { margin-left: auto; }
.row { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 10px; margin: 0 -16px;
  scrollbar-width: none; }
.row::-webkit-scrollbar { display: none; }
.row .card { width: 150px; flex: none; scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 22px 18px; }
@media (max-width: 520px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; } }
.card { text-decoration: none; display: block; position: relative; }
.card .cv { position: relative; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 6px 18px rgba(25, 38, 72, .16);
  background: var(--bg-2); transition: transform .18s ease, box-shadow .18s ease; }
.card:hover .cv { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 12px 28px rgba(25, 38, 72, .22); }
.card .cv img { width: 100%; height: auto; }
.card .flag { position: absolute; left: 8px; top: 8px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 4px; letter-spacing: .02em; }
.card .flag.free { background: #b69869; color: #192648; }
.card .flag.lock { background: rgba(16, 23, 42, .78); color: #f8f3e4; }
.card .flag.soon { background: rgba(248, 243, 228, .92); color: #192648; }
.card .flag svg { width: 12px; height: 12px; }
.card .ti { font-family: var(--text); font-size: 17px; line-height: 1.2; margin-top: 9px; }
.card .au { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* ------------------------------------------------------------ book page */
.bookhead { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; margin-top: 8px; }
.bookhead .cv { border-radius: 6px; overflow: hidden; box-shadow: 0 2px 4px rgba(0, 0, 0, .15), 0 18px 40px rgba(25, 38, 72, .25); }
.bookhead h1 { font-family: var(--text); font-weight: 400; font-size: 40px; line-height: 1.05; margin-top: 4px; }
.bookhead .st { font-family: var(--text); font-style: italic; font-size: 20px; color: var(--muted); margin-top: 6px; }
.bookhead .by { margin-top: 12px; font-size: 15px; }
.bookhead .acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.bookhead .note { margin-top: 14px; color: var(--muted); font-size: 14px; max-width: 34em; }
@media (max-width: 640px) {
  .bookhead { grid-template-columns: 1fr; gap: 18px; text-align: center; }
  .bookhead .cv { width: 56%; margin: 0 auto; }
  .bookhead h1 { font-size: 34px; }
  .bookhead .acts { justify-content: center; }
  .bookhead .note { margin-left: auto; margin-right: auto; }
}
.toc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.toc a { display: grid; grid-template-columns: 44px 1fr auto; align-items: baseline; gap: 8px; padding: 13px 4px; border-bottom: 1px solid var(--line);
  text-decoration: none; }
.toc a:hover { background: var(--bg-2); }
.toc .n { font-family: var(--text); color: var(--gold-ink); font-size: 16px; letter-spacing: .06em; }
.toc .la { font-family: var(--text); font-size: 19px; }
.toc .en { display: block; color: var(--muted); font-size: 13.5px; margin-top: 1px; }
.toc .done { color: var(--gold-ink); font-size: 13px; }
.toc a.cur { background: var(--bg-2); }
.about { color: var(--muted); font-size: 14px; max-width: 46em; }
.about p { margin: 0 0 8px; }

/* ------------------------------------------------------------ reader */
.rtop { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .25s ease; border-bottom: 1px solid transparent; }
.rtop.scrolled { border-bottom-color: var(--line); }
.rtop.away { transform: translateY(-100%); }
.rtop .in { max-width: 860px; margin: 0 auto; height: 52px; display: flex; align-items: center; gap: 6px; padding: 0 8px; }
.rtop .mid { flex: 1; text-align: center; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 999px; color: var(--ink); }
.ib:hover { background: var(--bg-2); }
.ib.en-t { width: auto; padding: 0 11px; height: 32px; margin: 0 4px; font: 600 12px/1 var(--ui); letter-spacing: .08em; border: 1px solid var(--line); color: var(--muted); }
.ib.en-t.on { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.prog { position: fixed; z-index: 21; top: 0; left: 0; height: 2px; background: var(--gold); width: 0; transition: width .2s linear; }

.reader { max-width: 36em; margin: 0 auto; padding: 8px 22px 120px; font-family: var(--text); font-size: var(--size); line-height: 1.62;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; font-kerning: normal; font-variant-numeric: oldstyle-nums;
  hyphens: none; }
.opener { text-align: center; padding: 34px 0 18px; }
.opener .num { font-size: .8em; letter-spacing: .3em; color: var(--gold-ink); }
.opener h1 { font-weight: 400; font-size: 1.55em; line-height: 1.2; margin: 6px 0 4px; letter-spacing: .01em; }
.opener .en { font-style: italic; color: var(--muted); font-size: .86em; }
.opener .orn { display: block; margin: 16px auto 0; width: 92px; height: 10px; color: var(--gold); }
.gram { font-style: italic; color: var(--muted); font-size: .78em; line-height: 1.45; text-align: center; margin: 14px auto 6px; max-width: 28em; }
.gram i { font-style: normal; }
.reader p { margin: 0 0 .85em; text-align: left; }
.reader p.cont { text-indent: 1.4em; }
.sn { display: inline-block; min-width: 1.7em; height: 1.45em; padding: 0 .38em; margin-right: .35em; border-radius: .73em;
  font-family: var(--ui); font-size: .6em; font-weight: 700; line-height: 1.45em; text-align: center; vertical-align: .22em;
  color: var(--gold-ink); background: rgba(182, 152, 105, .16); cursor: pointer; font-variant-numeric: lining-nums; }
.sn:hover { background: rgba(182, 152, 105, .32); }
.w { cursor: pointer; border-radius: 3px; transition: background .12s; }
.w:hover { background: var(--hl); }
.w.on { background: var(--hl); box-shadow: 0 0 0 2px var(--hl); }
.w.saved { text-decoration: underline dotted var(--gold); text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
.reader .it { font-style: italic; }
figure { margin: 1.3em auto 1.5em; text-align: center; }
figure img { margin: 0 auto; border-radius: 3px; max-height: 70vh; width: auto; mix-blend-mode: multiply; }
:root[data-theme="night"] figure img { mix-blend-mode: normal; filter: brightness(.82) sepia(.12); border-radius: 4px; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] figure img { mix-blend-mode: normal; filter: brightness(.82) sepia(.12); border-radius: 4px; } }
figure.side { max-width: 58%; }
figcaption { font-style: italic; font-size: .78em; color: var(--muted); margin-top: .5em; line-height: 1.35; }
.coins { display: flex; gap: 18px; justify-content: center; align-items: flex-end; flex-wrap: wrap; }
.coins figure { margin: .8em 0 1.2em; max-width: 44%; }
.end { text-align: center; font-style: italic; margin: 1.6em 0 .6em; }
.end .sc { font-style: normal; letter-spacing: .14em; font-size: .8em; text-transform: uppercase; }
.next { margin: 2.4em 0 0; display: block; text-decoration: none; text-align: center; padding: 22px 18px; border-radius: 16px; background: var(--card);
  box-shadow: var(--shadow); font-family: var(--ui); }
.next .k { color: var(--muted); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.next .t { font-family: var(--text); font-size: 24px; margin-top: 4px; }
.next .e { color: var(--muted); font-style: italic; font-family: var(--text); }
.finis { text-align: center; font-family: var(--text); letter-spacing: .4em; color: var(--gold-ink); margin: 2em 0 1em; }
.buy { display: flex; gap: 14px; align-items: center; margin-top: 18px; padding: 14px; border-radius: 16px; background: var(--card);
  box-shadow: var(--shadow); text-decoration: none; font-family: var(--ui); }
.buy img { width: 54px; border-radius: 3px; }
.buy .k { font-size: 13px; color: var(--muted); }
.buy .t { font-weight: 600; }
.buy .ico { margin-left: auto; color: var(--muted); }
.loading { text-align: center; color: var(--muted); padding: 80px 0; font-family: var(--ui); }

/* ------------------------------------------------------------ sheets */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(10, 14, 26, .32); opacity: 0; pointer-events: none; transition: opacity .2s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; max-height: 78vh; background: var(--card); border-radius: 18px 18px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .2); transform: translateY(105%); transition: transform .26s cubic-bezier(.2, .8, .2, 1);
  display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom); }
.sheet.open { transform: none; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 8px auto 0; flex: none; }
.sheet .sh { display: flex; align-items: center; gap: 8px; padding: 8px 10px 6px 20px; flex: none; }
.sheet .sh h3 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; flex: 1; }
.sheet .sb { overflow-y: auto; padding: 4px 20px 22px; overscroll-behavior: contain; -webkit-user-select: none; user-select: none; }
@media (min-width: 900px) {
  .sheet.side { left: auto; top: 0; bottom: 0; right: 0; width: 400px; max-height: none; border-radius: 0; transform: translateX(105%);
    box-shadow: -10px 0 40px rgba(0, 0, 0, .14); border-left: 1px solid var(--line); }
  .sheet.side.open { transform: none; }
  .sheet.side .grab { display: none; }
  .scrim.light { background: transparent; }
  .sheet:not(.side) { left: 50%; right: auto; width: 560px; margin-left: -280px; }
}
.wd { font-family: var(--text); font-size: 34px; line-height: 1.1; }
.wd .enc { color: var(--muted); font-size: .6em; }
.rd { padding: 14px 0 4px; border-top: 1px solid var(--line); margin-top: 14px; }
.rd:first-of-type { border-top: 0; margin-top: 4px; }
.rd .lm { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rd .lm b { font-family: var(--text); font-size: 22px; font-weight: 600; }
.rd .lm .pos { color: var(--muted); font-size: 13.5px; font-style: italic; }
.rd .voc { font-family: var(--text); font-size: 18.5px; line-height: 1.4; margin-top: 6px; }
.rd .voc b { font-weight: 600; }
.rd .dic { font-family: var(--text); font-size: 18px; line-height: 1.4; margin-top: 6px; }
.rd .ls { font-family: var(--text); font-size: 15.5px; line-height: 1.45; color: var(--muted); margin-top: 6px; }
.rd .src { font-family: var(--ui); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.rd .pp { margin: 8px 0 0; padding: 0; list-style: none; }
.rd .pp li { font-size: 14.5px; padding: 3px 0 3px 14px; position: relative; }
.rd .pp li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.ctx { background: var(--bg-2); border-radius: 12px; padding: 10px 14px; margin-top: 14px; }
.ctx .k { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ctx .e { font-family: var(--text); font-size: 18px; margin-top: 3px; line-height: 1.35; }
.ctx .e i { color: var(--muted); }
.more { color: var(--gold-ink); font-size: 14px; font-weight: 600; margin-top: 12px; }
.wacts { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.wacts .sm { display: none; }
/* phones: the word's actions in one row of small tiles, so the page stays in view */
@media (max-width: 720px) {
  .wd { font-size: 28px; }
  .rd { padding-top: 10px; margin-top: 10px; }
  .wacts { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin-top: 12px; }
  .wacts .btn.small { flex-direction: column; height: auto; padding: 7px 2px 6px; gap: 3px; font-size: 11.5px; line-height: 1.1; border-radius: 12px; }
  .wacts .btn.small .ico { width: 19px; height: 19px; }
  .wacts .btn.ghost { box-shadow: none; background: var(--bg-2); }
  .wacts .lg { display: none; }
  .wacts .sm { display: inline; }
  .sheet .sb { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
}
.nogloss { color: var(--muted); font-family: var(--text); font-size: 18px; margin-top: 8px; }

/* Sonnenschein's notes */
.bm { font-family: var(--text); font-size: 18px; line-height: 1.45; }
.bm p { margin: 0 0 8px; }
.bm .gl { columns: 2 12em; column-gap: 22px; margin: 4px 0 12px; }
.bm .gl .e { break-inside: avoid; padding-left: .9em; text-indent: -.9em; margin-bottom: 3px; }
.bm .gl .e .en { font-style: italic; color: var(--muted); }
.bm .gl .e .en .r { font-style: normal; }
.bm .gl .e.note { font-size: .9em; }
.bm .gl .e.hit { background: var(--hl); border-radius: 4px; }
.bm .fns { font-size: .85em; color: var(--muted); }
.bm .fns p { padding-left: 1em; text-indent: -1em; }
.bm .bracket { text-align: center; font-size: .9em; color: var(--muted); margin-bottom: 10px; }
.bm .ex { padding-left: 2em; text-indent: -1em; }
.bm .ex2 { padding-left: 3.2em; text-indent: -1em; }
.bm .li { padding-left: 1.6em; text-indent: -1.6em; }
.bm .li .n { display: inline-block; width: 1.6em; text-indent: 0; }
.bm .hang { padding-left: 1.2em; text-indent: -1.2em; }
.bm .small { font-size: .88em; }
.bm .rule { width: 80px; border-top: 1px solid var(--line); margin: 10px auto; }
.bm .head, .bm .head2, .bm .head3 { text-align: center; margin: 12px 0 6px; font-weight: 600; }
.bm .head2, .bm .head3 { font-weight: 400; font-variant-caps: all-small-caps; letter-spacing: .08em; }
.bm .verse { margin: 4px 0 10px 2em; font-style: italic; }
.bm .plist { columns: 2; column-gap: 20px; }
.bm .sc { font-variant-caps: all-small-caps; letter-spacing: .04em; }
.bm sup.fm { font-size: .7em; }
.bm table.g { border-collapse: collapse; margin: 8px auto 14px; font-size: .92em; }
.bm table.g caption { padding-bottom: 6px; }
.bm table.g caption .c1 { font-weight: 600; }
.bm table.g caption .c2, .bm table.g caption .c3 { font-variant-caps: all-small-caps; letter-spacing: .06em; color: var(--muted); }
.bm table.g td { padding: 2px 8px; vertical-align: top; }
.bm table.g td:first-child { padding-left: 0; }
.bm table.g.ruled { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bm table.g tr.h td, .bm table.g tr.hh td { font-style: italic; color: var(--muted); text-align: center; border-bottom: 1px solid var(--line); }
.bm table.g tr.br td { border-top: 1px solid var(--line); }
.tablewrap { overflow-x: auto; }

/* settings */
.set { padding: 12px 0; border-bottom: 1px solid var(--line); }
.set:last-child { border-bottom: 0; }
.set .k { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.seg { display: flex; background: var(--bg-2); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { flex: 1; height: 40px; border-radius: 9px; font-size: 15px; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); font-weight: 600; }
.swatches { display: flex; gap: 12px; }
.swatches button { flex: 1; height: 56px; border-radius: 12px; font-size: 14px; box-shadow: inset 0 0 0 1.5px var(--line); }
.swatches button.on { box-shadow: inset 0 0 0 2.5px var(--gold); font-weight: 600; }
.swatches .paper { background: #fbf8f2; color: #1d2333; }
.swatches .sepia { background: #f4ead6; color: #3a2e20; }
.swatches .night { background: #10172a; color: #e8e2d1; }
.swatches .auto { background: linear-gradient(135deg, #fbf8f2 50%, #10172a 50%); color: #8a6b3a; }
.list { list-style: none; margin: 0; padding: 0; }
.list a, .list button { display: flex; width: 100%; text-align: left; align-items: center; gap: 12px; padding: 12px 2px;
  border-bottom: 1px solid var(--line); text-decoration: none; }
.list .ico { color: var(--muted); }

/* vocabulary */
.search { width: 100%; height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
  padding: 0 14px; font: 16px var(--ui); }
.search:focus { outline: none; border-color: var(--gold); }
.vocab { font-family: var(--text); font-size: 19px; line-height: 1.4; columns: 2 18em; column-gap: 40px; margin-top: 18px;
  -webkit-user-select: none; user-select: none; }
.vocab .v { break-inside: avoid; padding-left: 1em; text-indent: -1em; margin-bottom: 4px; }
.vocab .v b { font-weight: 600; }
.vocab .letter { column-span: all; text-align: center; letter-spacing: .3em; color: var(--gold-ink); margin: 18px 0 8px; }
.vintro { color: var(--muted); font-size: 14.5px; max-width: 46em; }

/* words */
.wl { list-style: none; margin: 0; padding: 0; }
.wl li { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.wl .l { font-family: var(--text); font-size: 21px; min-width: 7em; }
.wl .g { font-family: var(--text); font-size: 17px; color: var(--muted); flex: 1; }
.wl .x { color: var(--muted); }
.wl .x:hover { color: var(--ink); }
.cardrev { max-width: 460px; margin: 30px auto 0; text-align: center; }
.flash { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 40px 24px; min-height: 260px; display: flex;
  flex-direction: column; align-items: center; justify-content: center; }
.flash .l { font-family: var(--text); font-size: 42px; line-height: 1.1; }
.flash .f { color: var(--muted); font-size: 14px; margin-top: 8px; }
.flash .g { font-family: var(--text); font-size: 21px; margin-top: 20px; line-height: 1.4; }
.revacts { display: flex; gap: 12px; margin-top: 20px; }
.revacts .btn { flex: 1; }

/* forms */
.panel { max-width: 440px; margin: 24px auto; background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 28px 24px; }
.panel h1 { font-family: var(--text); font-weight: 400; font-size: 30px; text-align: center; }
.panel .lead { text-align: center; color: var(--muted); margin: 6px 0 20px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input { width: 100%; height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink);
  padding: 0 14px; font: 16px var(--ui); }
.field input:focus { outline: none; border-color: var(--gold); }
.formerr { color: #b3412f; font-size: 14px; min-height: 20px; margin: 4px 0 8px; }
:root[data-theme="night"] .formerr { color: #f08b78; }
.switch { text-align: center; margin-top: 16px; font-size: 14.5px; color: var(--muted); }
.switch button { color: var(--gold-ink); font-weight: 600; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.plan { border-radius: 16px; padding: 16px; box-shadow: inset 0 0 0 1.5px var(--line); text-align: left; }
.plan.on { box-shadow: inset 0 0 0 2.5px var(--gold); }
.plan .p { font-family: var(--text); font-size: 28px; margin-top: 4px; }
.plan .p small { font-family: var(--ui); font-size: 13px; color: var(--muted); }
.plan .s { font-size: 12.5px; color: var(--gold-ink); font-weight: 600; margin-top: 2px; min-height: 16px; }
.testnote { font-size: 13px; color: var(--muted); text-align: center; margin-top: 12px; }
.acct { max-width: 560px; margin: 10px auto; }
.acct .box { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px; }
.acct .box h2 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.acct .big { font-family: var(--text); font-size: 24px; }
.perks { margin: 14px 0 0; padding: 0; list-style: none; }
.perks li { padding: 5px 0 5px 26px; position: relative; font-size: 15px; }
.perks li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 10px; height: 6px; border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.toast { position: fixed; z-index: 60; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: #192648; color: #f8f3e4;
  padding: 10px 18px; border-radius: 999px; font-size: 14.5px; opacity: 0; pointer-events: none; transition: all .25s; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.empty { text-align: center; color: var(--muted); padding: 50px 10px; }
.empty .btn { margin-top: 16px; }

@media print {
  body * { display: none !important; }
  body::after { content: "Printing is not available for books in the Contubernales Reader."; display: block; padding: 40px; font: 16px sans-serif; }
}
.smc { font-variant-caps: all-small-caps; letter-spacing: .08em; }
.opener h1.smc { font-size: 1.7em; }
.part { text-align: center; font-size: .8em; letter-spacing: .3em; color: var(--gold-ink); margin: 1.4em 0 .7em; }
.reader p.verse { font-style: italic; margin: 0 0 0 1.6em; }
.reader p.verse + p:not(.verse) { margin-top: .85em; }
.card .stt { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--gold-ink); font-weight: 600; margin-top: 4px; }
.card .stt svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (min-width: 900px) {
  .reader, .rtop .in { transition: margin .26s cubic-bezier(.2, .8, .2, 1); }
  body.withside .reader { margin-left: max(0px, calc((100vw - 400px - 36em) / 2)); margin-right: 400px; }
  body.withside .rtop .in { margin-right: 400px; }
}
.coins figure img { max-height: 210px; }

/* ------------------------------------------------------------ v2: library, verse, scansion, facing text, study, games */
.streak { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--gold-ink); font-size: 14px; margin-left: 6px; }
.streak svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
@media (max-width: 720px) { .streak { margin-left: auto; } }
.lib-search { margin: 26px 0 0; }
.kind-h { font-family: var(--brand); text-transform: uppercase; letter-spacing: .24em; font-size: 14px; color: var(--navy); margin: 44px 0 -10px;
  padding-top: 18px; border-top: 1px solid var(--line); }
.kind-h span { display: block; font-family: var(--ui); text-transform: none; letter-spacing: 0; color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.row .card { width: 140px; }
@media (min-width: 900px) { .row .card { width: 158px; } }
#libhits { margin-top: 22px; }
.card .stt svg.lk, .toc .lk { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.goal { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 13.5px; color: var(--muted); }
.goal .ring { width: 30px; height: 30px; transform: rotate(-90deg); }
.goal .ring circle { fill: none; stroke-width: 4; }
.goal .ring .bg { stroke: var(--bg-2); }
.goal .ring .fg { stroke: var(--gold); stroke-linecap: round; }
.facts { color: var(--muted); font-size: 13.5px; margin-top: 8px; }
.toc a.front .la { font-style: italic; }
/* verse */
.verse { margin: .4em 0 1.2em; }
.ln { position: relative; padding-left: 2.6em; line-height: 1.5; margin: 0; }
.ln.ind { padding-left: 4.2em; }
.ln .lnum { position: absolute; left: 0; top: .2em; width: 2em; text-align: right; font-family: var(--ui); font-size: .55em; color: var(--muted);
  font-variant-numeric: tabular-nums; }
.ln .lnum.sn { left: -.2em; min-width: 0; height: auto; padding: 0 .35em; line-height: 1.6; color: var(--gold-ink); }
.stz { height: .9em; }
.scan { font-family: var(--ui); font-size: .58em; letter-spacing: .02em; color: var(--muted); margin: -.1em 0 .45em; line-height: 1.5; white-space: normal; }
.scan .sy { position: relative; padding: 0 .05em; }
.scan .sy::before { position: absolute; left: 0; right: 0; top: -.85em; text-align: center; font-size: 1em; line-height: 1; color: var(--gold-ink); }
.scan .sy.L::before { content: "–"; }
.scan .sy.S::before { content: "⏑"; }
.scan .sy.X::before { content: "×"; }
.scan .sy.L { color: var(--ink); font-weight: 600; }
.scan .ft, .scan .cz { color: var(--gold); margin: 0 .3em; }
.scan .feet { margin-left: .9em; letter-spacing: .14em; color: var(--gold-ink); font-weight: 600; }
.scan { padding-top: .7em; }
h2.hd, h3.hd { font-weight: 400; text-align: center; margin: 1.6em 0 .7em; font-size: 1.05em; letter-spacing: .04em; }
h2.hd { font-size: 1.2em; }
.hd .met { display: block; font-family: var(--ui); font-size: .55em; color: var(--muted); letter-spacing: .06em; margin-top: 2px; font-style: normal; }
.speaker { font-variant-caps: all-small-caps; letter-spacing: .1em; color: var(--gold-ink); margin: 1em 0 .1em; font-size: .9em; }
.sn.plain { cursor: default; background: none; color: var(--muted); }
.reader p.other, .prose { font-size: .9em; }
.prose { margin: 0 0 1em; font-family: var(--text); }
.prose p { margin: 0 0 .8em; }
.reader .prose p.gram { font-style: italic; color: var(--muted); font-size: .9em; text-align: center; }
.paywall { text-align: center; margin: 2.6em 0 0; padding: 26px 20px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); font-family: var(--ui); }
.paywall.top { margin-top: 30px; }
.paywall .k { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.paywall .t { font-family: var(--text); font-size: 26px; margin: 6px 0; }
.paywall p { color: var(--muted); max-width: 30em; margin: 6px auto 16px; font-size: 15px; }
.reader.copyable { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
/* facing text */
.reader.has-pairs { max-width: 64em; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.2em; margin: 0 0 .9em; }
.pair .who { grid-column: 1 / -1; font-variant-caps: all-small-caps; letter-spacing: .1em; color: var(--gold-ink); font-size: .9em; margin-top: .4em; }
.pair .who span { color: var(--muted); margin-left: .6em; }
.pair .pa, .pair .pb { min-width: 0; }
.pair.verse .pa, .pair.verse .pb { white-space: pre-line; }
.pair .pn { font-family: var(--ui); font-size: .6em; color: var(--gold-ink); margin-right: .4em; vertical-align: .2em; }
.pair.mode-a { grid-template-columns: 1fr; } .pair.mode-a .pb { display: none; }
.pair.mode-b { grid-template-columns: 1fr; } .pair.mode-b .pa { display: none; }
.pair [lang="zh"] { font-family: "PingFang SC", "Hiragino Sans GB", "Songti SC", "Noto Serif CJK SC", serif; letter-spacing: .05em; }
@media (max-width: 760px) {
  .pair.mode-both { grid-template-columns: 1fr; }
  .pair.mode-both .pb { font-size: .86em; color: var(--muted); margin: .25em 0 .3em; padding-left: .9em; border-left: 2px solid var(--line); }
}
.big { font-family: var(--text); font-weight: 400; font-size: 28px; color: var(--ink); }
/* study */
.hub .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 8px 0 6px; }
@media (max-width: 640px) { .hub .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; min-height: 78px; }
.stat b { font-family: var(--text); font-size: 30px; font-weight: 400; line-height: 1; }
.stat span { color: var(--muted); font-size: 13px; margin-top: 4px; }
.cover-h { display: grid; grid-template-columns: 150px 1fr; gap: 26px; align-items: center; margin: 18px 0 8px; }
.cover-h h1 { font-family: var(--text); font-weight: 400; font-size: 30px; line-height: 1.15; }
.cover-h .acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.meter { position: relative; width: 150px; height: 150px; }
.meter svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.meter circle { fill: none; stroke-width: 10; }
.meter .bg { stroke: var(--bg-2); } .meter .fg { stroke: var(--gold); stroke-linecap: round; }
.meter div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.meter b { font-family: var(--text); font-size: 34px; font-weight: 400; } .meter span { font-size: 12px; color: var(--muted); }
@media (max-width: 640px) { .cover-h { grid-template-columns: 1fr; text-align: center; justify-items: center; } .cover-h .acts { justify-content: center; } .cover-h h1 { font-size: 25px; } }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.game { display: flex; flex-direction: column; gap: 3px; text-decoration: none; background: var(--card); border-radius: 16px; box-shadow: var(--shadow);
  padding: 16px; position: relative; transition: transform .15s; }
.game:hover { transform: translateY(-2px); }
.game .gi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(182, 152, 105, .16); color: var(--gold-ink); margin-bottom: 8px; }
.game .gt { font-weight: 700; font-size: 16px; }
.game .gd { color: var(--muted); font-size: 13.5px; }
.game .gb { position: absolute; top: 14px; right: 14px; font-size: 12px; color: var(--gold-ink); font-weight: 700; }
.freq { list-style: none; margin: 0; padding: 0; columns: 2 300px; column-gap: 30px; }
.freq li { display: grid; grid-template-columns: 2.4em 1fr auto; gap: 2px 10px; padding: 7px 4px; border-bottom: 1px solid var(--line); break-inside: avoid; cursor: pointer; }
.freq li .r { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; grid-row: span 2; padding-top: 4px; }
.freq li .l { font-family: var(--text); font-size: 19px; }
.freq li .c { color: var(--muted); font-size: 12px; grid-column: 3; grid-row: 1; }
.freq li .g { grid-column: 2 / 4; color: var(--muted); font-size: 13.5px; }
.freq li.known .l { color: var(--gold-ink); }
.freq li.known .l::after { content: " ✓"; font-size: 14px; }
.freq li.learning .l::after { content: " ·"; color: var(--gold); }
/* play */
.gbar { position: sticky; top: 52px; height: 4px; background: var(--bg-2); z-index: 19; }
.gbar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .1s linear; }
.gscore { min-width: 42px; text-align: right; font-weight: 700; color: var(--gold-ink); padding-right: 10px; font-variant-numeric: tabular-nums; }
.play { max-width: 620px; margin: 0 auto; padding: 26px 16px 80px; -webkit-user-select: none; user-select: none; }
.q { text-align: center; }
.qp { font-family: var(--text); font-size: 40px; line-height: 1.15; margin: 20px 0 6px; }
.qp .sent { font-size: 23px; line-height: 1.5; text-align: left; }
.qs { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.combo { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--gold-ink); background: rgba(182, 152, 105, .16); padding: 4px 12px; border-radius: 999px; }
.opts { display: grid; gap: 10px; margin-top: 18px; }
.opt { background: var(--card); border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line); padding: 15px 18px; font-size: 16.5px; text-align: left; transition: box-shadow .12s, background .12s; }
.opt:hover:not([disabled]) { box-shadow: inset 0 0 0 1.5px var(--gold); }
.opt.right { background: rgba(70, 140, 90, .16); box-shadow: inset 0 0 0 2px #4b8a5d; }
.opt.wrong { background: rgba(180, 70, 50, .14); box-shadow: inset 0 0 0 2px #b4513a; }
.blank { display: inline-block; min-width: 3em; border-bottom: 2px solid var(--gold); color: var(--gold-ink); text-align: center; }
.blank.ok { color: #3f7a50; } .blank.no { color: #b4513a; }
.done { text-align: center; padding-top: 30px; }
.done .big { font-size: 40px; }
.done .sum { color: var(--muted); margin: 8px 0 18px; }
.pills { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.pills span { background: var(--bg-2); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; }
.pills .gold { background: var(--gold); color: #192648; }
.mword { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 3px; margin: 26px 0; font-family: var(--text); font-size: 40px; }
.mword .vow { min-width: 44px; height: 60px; border-radius: 10px; box-shadow: inset 0 0 0 1.5px var(--line); font-family: var(--text); font-size: 40px; }
.mword .vow.on { box-shadow: inset 0 0 0 2px var(--gold); color: var(--gold-ink); }
.mword .con { display: inline-flex; align-items: center; padding: 0 1px; }
.mres { min-height: 28px; margin-top: 14px; font-size: 16px; }
.mres .ok { color: #3f7a50; font-weight: 700; } .mres .no { color: #b4513a; }
.srcline { font-family: var(--text); font-size: 21px; margin: 8px 0 18px; }
.sylls { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 2px; }
.sylls .sp { width: 12px; }
.syl { position: relative; padding: 14px 6px 8px; min-width: 34px; border-radius: 9px; box-shadow: inset 0 0 0 1.5px var(--line); font-family: var(--text); font-size: 20px; }
.syl::before { position: absolute; top: 1px; left: 0; right: 0; text-align: center; color: var(--gold-ink); font-size: 15px; }
.syl.L::before { content: "–"; } .syl.S::before { content: "⏑"; }
.syl.ok { box-shadow: inset 0 0 0 2px #4b8a5d; } .syl.no { box-shadow: inset 0 0 0 2px #b4513a; }
.scanq .mres .scan { font-size: 15px; margin-top: 16px; }
.empty .big { margin-bottom: 8px; }
.rd .dic.sub { font-size: 16px; color: var(--muted); margin-top: 4px; }
.rd .dial { font-size: 12.5px; color: var(--muted); margin-top: 6px; letter-spacing: .02em; }
.wd:lang(grc), .rd [lang="grc"] { font-family: var(--text); }

/* pictures in the text: never wider than their own pixels allow, smaller than the column, full size on a tap */
figure { margin: 1.1em auto 1.3em; }
figure img { width: auto; height: auto; max-width: min(100%, 260px); max-height: 28vh; cursor: zoom-in; }
figure.side { max-width: 32%; }
figure.side img { max-width: 100%; max-height: 24vh; }
.coins figure img { max-height: 120px; }
.reader.has-pairs figure img { max-width: min(100%, 260px); }
@media (max-width: 640px) { figure img { max-width: 56%; max-height: 28vh; } figure.side { max-width: 52%; } }
.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(10, 12, 20, .92); display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 86vh; width: auto; height: auto; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.lightbox .cap { color: #e8e2d1; font-family: var(--text); font-style: italic; margin-top: 12px; text-align: center; max-width: 40em; }

/* facing texts: word links */
.pair .w.nx { cursor: pointer; border-radius: 3px; }
.pair .w.nx:hover { background: var(--hl); }
.w.al { background: rgba(182, 152, 105, .42); box-shadow: 0 0 0 2px rgba(182, 152, 105, .42); border-radius: 3px; }
.w.hov { background: rgba(182, 152, 105, .26); border-radius: 3px; }
.ctx.facing { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(182, 152, 105, .45); }

/* placement and the word list */
.placement { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 20px 22px; margin: 16px 0 6px; }
.placement h2 { font-family: var(--text); font-weight: 400; font-size: 24px; }
.placement .acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.linkish { color: var(--gold-ink); font-weight: 600; margin-left: 4px; }
.seg.mini { display: inline-flex; padding: 3px; border-radius: 10px; }
.seg.mini button { height: 30px; padding: 0 12px; font-size: 13px; flex: none; }
.freq li .own { font-family: var(--ui); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-ink);
  background: rgba(182, 152, 105, .16); border-radius: 999px; padding: 1px 7px; margin-left: 8px; vertical-align: 3px; }
.levelq { max-width: 760px; margin: 10px auto; text-align: center; }
.levelq h1 { font-family: var(--text); font-weight: 400; font-size: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 22px 0; }
.chip-w { font-family: var(--text); font-size: 20px; padding: 8px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); background: var(--card); }
.chip-w.on { box-shadow: inset 0 0 0 2px var(--gold); background: rgba(182, 152, 105, .16); color: var(--gold-ink); }
.rd .note { font-size: 12.5px; color: var(--muted); font-style: italic; margin-top: 4px; }
.opt.idk { color: var(--muted); text-align: center; box-shadow: none; background: transparent; }

/* reading path, coverage, search, marks */
.card .fitc { position: relative; margin-top: 6px; height: 16px; font-size: 11.5px; color: var(--muted); }
.card .fitc i { position: absolute; left: 0; bottom: 0; height: 3px; border-radius: 2px; background: var(--gold); }
.card .fitc::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px; background: var(--bg-2); }
.card .fitc span { position: relative; top: -3px; }
.pathq { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--card);
  border-radius: 18px; box-shadow: var(--shadow); padding: 18px 22px; margin-top: 22px; }
.pathq h2 { font-family: var(--text); font-weight: 400; font-size: 22px; }
.pathq p { margin: 4px 0 0; }
.chk { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); margin: 10px 0 4px; }
.hits, .marks { list-style: none; margin: 8px 0 0; padding: 0; }
.hits li a, .marks li a { display: flex; flex-direction: column; gap: 2px; padding: 10px 2px; border-bottom: 1px solid var(--line); text-decoration: none; }
.marks li { display: flex; align-items: flex-start; gap: 8px; }
.marks li a { flex: 1; flex-direction: row; gap: 10px; }
.marks .mk svg { width: 16px; height: 16px; fill: none; stroke: var(--gold-ink); stroke-width: 1.8; margin-top: 4px; }
.hits .w8, .marks .w8 { font-size: 12px; color: var(--muted); display: block; }
.hits .q, .marks .q { font-family: var(--text); font-size: 17px; display: block; }
.hits .q b { color: var(--gold-ink); }
.marks .nt { display: block; font-size: 14px; color: var(--ink); margin: 3px 0; padding-left: 8px; border-left: 2px solid var(--gold); }
.marks .x { padding: 10px 4px; color: var(--muted); }
.w.hlt { background: rgba(214, 178, 90, .22); }
.w.hlt.has-note { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.w.found { background: rgba(182, 152, 105, .55); border-radius: 3px; transition: background 2s; }
#w-notebox textarea { width: 100%; margin-top: 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink);
  font: 15px var(--ui); padding: 10px; resize: vertical; }
#w-notebox .btn { margin-top: 8px; }
.ctx.mynote { box-shadow: inset 3px 0 0 var(--gold); }

/* translations under a passage */
.trn { margin: -.3em 0 1em; font-family: var(--ui); }
.trb { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--gold-ink); font-weight: 600; padding: 3px 10px 3px 8px;
  border-radius: 999px; background: rgba(182, 152, 105, .12); }
.trb svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.trn .trt { display: block; margin-top: 8px; font-family: var(--text); font-size: .86em; line-height: 1.5; color: var(--muted);
  padding: 8px 0 4px 14px; border-left: 2px solid var(--gold); -webkit-user-select: none; user-select: none; }
.trn.open .trt { display: block; }
.trn.open .trb span::after { content: " ▴"; }
/* grammar in the word panel */
.gt { color: inherit; border-bottom: 1px dotted var(--gold); padding: 0; font: inherit; cursor: help; }
.gx, .cxbox { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); font-family: var(--text); font-size: 16.5px; line-height: 1.45; }
.gx .k, .cxbox .k { font-family: var(--ui); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.cxbox .e { font-size: 19px; }
.gx p, .cxdef p { margin: 0 0 6px; }
.gx hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }
.gex { margin: 4px 0 6px; padding-left: 12px; border-left: 2px solid var(--line); font-size: 15.5px; }
.gsee { margin-top: 6px; font-family: var(--ui); font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
button.gl { font: inherit; font-size: 12.5px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: inherit; cursor: pointer; }
button.gl:hover { border-color: var(--gold); }
.w.cxh { box-shadow: inset 0 -2px 0 var(--gold); }
.bm .cm { margin: 0 0 8px; }
.rd .pp1 { font-size: 15px; margin-top: 8px; padding-left: 14px; position: relative; }
.rd .pp1::before { content: ""; position: absolute; left: 2px; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.rd .pp.alt { margin-top: 2px; }
.rd .pp.alt li { font-size: 13.5px; color: var(--muted); }
.rd .pp.alt li::before { display: none; }

/* the beginner's course */
.kicker { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); font-weight: 700; }
.course-h { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 10px 0 18px; }
.course-h h1 { font-family: var(--text); font-weight: 400; font-size: 36px; margin: 4px 0; }
.course-h p { max-width: 36em; }
.cprog { text-align: center; } .cprog b { display: block; font-family: var(--text); font-size: 42px; font-weight: 400; } .cprog span { color: var(--muted); font-size: 13px; }
.lessons { list-style: none; margin: 0; padding: 0; }
.lessons a { display: grid; grid-template-columns: 40px 1fr 24px; gap: 12px; align-items: center; padding: 14px 6px; border-bottom: 1px solid var(--line); text-decoration: none; }
.lessons .ln { font-family: var(--text); font-size: 20px; color: var(--gold-ink); text-align: center; }
.lessons .lt { display: block; font-weight: 600; } .lessons .lg { display: block; color: var(--muted); font-size: 14px; }
.lessons li.done .ck { color: var(--gold-ink); font-weight: 700; }
.lesson-h { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 10px; }
.lesson-h h1 { font-family: var(--text); font-weight: 400; font-size: 30px; margin: 2px 0; }
.steps { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 16px; }
.steps span { font-size: 12.5px; padding: 4px 12px; border-radius: 999px; background: var(--bg-2); color: var(--muted); }
.steps span.on { background: var(--gold); color: #192648; font-weight: 700; } .steps span.done { color: var(--gold-ink); }
.lbox { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 18px 20px; }
.lbox .src { font-size: 12.5px; color: var(--muted); font-style: italic; margin-top: 10px; }
.lwords { list-style: none; margin: 8px 0 0; padding: 0; columns: 2 220px; }
.lwords li { break-inside: avoid; padding: 8px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.lwords .l { font-family: var(--text); font-size: 21px; display: block; } .lwords .g { color: var(--muted); font-size: 14px; }
.lwords li.known .l { color: var(--gold-ink); } .lwords li.known .l::after { content: " ✓"; font-size: 14px; }
.lq { padding: 12px 0; border-bottom: 1px solid var(--line); } .lq:last-child { border-bottom: 0; }
.lq .qt { font-family: var(--text); font-size: 19px; margin-bottom: 8px; }
.lq .qo { display: flex; flex-wrap: wrap; gap: 8px; } .opt.sm { padding: 8px 14px; font-size: 15px; }
.lq .qs2 { font-size: 12px; color: var(--muted); margin-top: 6px; }
.coursecard { display: block; text-decoration: none; background: #192648; color: #f8f3e4; border-radius: 18px; padding: 18px 22px; margin: 6px 0 18px; }
.coursecard b { display: block; font-family: var(--text); font-weight: 400; font-size: 24px; margin: 2px 0; } .coursecard span:last-child { color: #cfc6b0; font-size: 14.5px; }
.welcome .acts2 { display: flex; gap: 10px; flex-wrap: wrap; } .btn.ghost.light { color: #f8f3e4; box-shadow: inset 0 0 0 1.5px rgba(248, 243, 228, .4); }
.lq.match .mrow { display: grid; grid-template-columns: minmax(110px, 30%) 1fr; gap: 10px; align-items: center; padding: 6px 0; }
.lq.match .ml { font-family: var(--text); font-size: 19px; }
.lbox.bm p.ex { padding-left: 1.2em; text-indent: 0; } .lbox.bm p.ex i { color: var(--muted); }
.lbox.bm table { border-collapse: collapse; margin: 8px 0 12px; } .lbox.bm td { padding: 2px 10px 2px 0; }
@media (max-width: 560px) { .lq.match .mrow { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- picture cards (a painting per card, as on Laurel) */
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 8px; }
.pcard { position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--card);
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.pcard:hover { border-color: var(--gold); transform: translateY(-2px); }
.pcard img, .pcard.noimg::before { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--bg-2); }
.pcard img { transition: transform .5s ease; filter: saturate(.92); }
.pcard:hover img { transform: scale(1.035); }
.pcard.noimg::before { content: "❦"; display: grid; place-items: center; font-size: 34px; color: var(--gold);
  background: radial-gradient(120% 90% at 30% 20%, rgba(205, 176, 127, .18), transparent 60%), var(--bg-2); }
.pcard b { display: block; padding: 12px 15px 0; font: 500 19px/1.2 var(--text); letter-spacing: .005em; }
.pcard b i { font-style: normal; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 999px;
  border: 1px solid var(--gold); color: var(--gold); font: 600 12px/1 var(--ui); vertical-align: 3px; }
.pcard > span { display: block; padding: 4px 15px 15px; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.pcard em { position: absolute; top: 10px; right: 10px; font: 600 11.5px/1 var(--ui); font-style: normal; letter-spacing: .04em; padding: 6px 9px;
  border-radius: 999px; background: rgba(14, 20, 38, .78); color: #f1e6cc; backdrop-filter: blur(4px); }
.pcard.here { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.pcard.here em { background: var(--gold); color: #141b31; }
.pcards.path { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.pcards.path b { font-size: 17px; }
.pcards.path > a > span { font-size: 12.5px; }
.pathsec { margin: 4px 0 26px; }
.pathsec .sub a, .h-sec .sub a { color: var(--gold-ink); }
@media (max-width: 900px) {
  .pcards.path { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .pcards.path::-webkit-scrollbar { display: none; }
  .pcards.path .pcard { flex: 0 0 62%; scroll-snap-align: start; }
}
@media (max-width: 520px) { .pcards { grid-template-columns: 1fr 1fr; gap: 10px; } .pcard b { font-size: 16.5px; padding: 10px 12px 0; } .pcard > span { padding: 3px 12px 12px; font-size: 12.5px; } }

/* wide banner with the painting behind the words */
.pbanner { position: relative; display: block; overflow: hidden; border-radius: 18px; margin: 6px 0 26px; min-height: 190px; text-decoration: none;
  color: #f6efdd; background: #18233f; border: 1px solid var(--line); }
.pbanner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
a.pbanner:hover img { transform: scale(1.02); }
.pbanner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 17, 33, .92) 0%, rgba(12, 17, 33, .7) 45%, rgba(12, 17, 33, .1) 100%); }
.pbanner .tx { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 26px 28px; max-width: 560px; }
.pbanner .kicker { font: 600 11.5px/1 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: #d9bd8c; }
.pbanner b { font: 400 30px/1.15 var(--text); }
.pbanner .tx > span:not(.kicker):not(.btn) { font-size: 15px; color: rgba(246, 239, 221, .82); }
.pbanner .btn { margin-top: 8px; }
.pbanner.flat { min-height: 170px; }
.pbanner.noimg { background: radial-gradient(120% 120% at 85% 10%, rgba(205, 176, 127, .22), transparent 55%), #18233f; }
@media (max-width: 520px) { .pbanner .tx { padding: 20px; } .pbanner b { font-size: 25px; } .pbanner::after { background: linear-gradient(0deg, rgba(12, 17, 33, .94) 10%, rgba(12, 17, 33, .45) 100%); } }
.seg.lvls { display: inline-flex; margin: 0 0 18px; }
.seg.lvls a { min-width: 40px; text-align: center; text-decoration: none; }

/* bottom bar on phones: drawn icons, a gold rule over the current tab, the reader's initial for Account */
@media (max-width: 720px) {
  .tabs { background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(10px); }
  .tabs a { position: relative; padding: 9px 0 8px; color: var(--muted); transition: color .2s; }
  .tabs a svg { width: 25px; height: 25px; stroke-width: 1.45; margin-bottom: 3px; }
  .tabs a .tl { display: block; font: 500 10.5px/1 var(--ui); letter-spacing: .05em; }
  .tabs a.on { color: var(--gold-ink); }
  .tabs a.on::before { content: ""; position: absolute; top: 0; left: 50%; width: 30px; height: 2px; margin-left: -15px; border-radius: 0 0 2px 2px; background: var(--gold); }
  .tabs .mono { display: grid; place-items: center; width: 25px; height: 25px; margin: 0 auto 3px; border-radius: 999px; border: 1.4px solid currentColor;
    font: 500 14px/1 var(--text); }
}

.linkish.fast { align-self: center; font-size: 13.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.fastline { text-align: center; font-size: 13.5px; margin: -6px 0 24px; }
.fastline a { color: var(--muted); }
@media (max-width: 520px) { .pathsec .h-sec { flex-direction: column; align-items: flex-start; gap: 2px; } }
@media (max-width: 520px) { .h-sec:has(.seg) { flex-direction: column; align-items: flex-start; gap: 8px; } }

/* English under each passage only while EN is on */
.reader .trn { display: none; }
.reader.en .trn { display: block; }
.trn .ew.on { background: var(--hl); border-radius: 3px; box-shadow: 0 0 0 2px var(--hl); color: var(--ink); }
.trn .ew { cursor: pointer; border-radius: 3px; }
.trn .ew:hover { color: var(--ink); }
.w.enhit { background: var(--hl); border-radius: 3px; box-shadow: 0 0 0 2px var(--hl); }

/* pages of a long chapter */
.pghead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 26px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line); font: 500 13px/1.3 var(--ui); color: var(--muted); }
.pghead span { text-align: right; }
.pgprev { display: inline-flex; align-items: center; gap: 4px; font: 600 13px/1 var(--ui); color: var(--gold-ink); padding: 6px 10px 6px 4px; border-radius: 999px; }
.pgprev:hover { background: var(--bg-2); }
.pgprev svg, .pgnext svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.pgnext { position: relative; display: block; width: 100%; text-align: left; margin: 34px 0 10px; padding: 18px 52px 18px 20px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink); cursor: pointer; transition: border-color .2s; }
.pgnext:hover { border-color: var(--gold); }
.pgnext .k { display: block; font: 600 11.5px/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 8px; }
.pgnext .t { display: block; font-family: var(--text); font-size: 18px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pgnext > svg { position: absolute; right: 18px; top: 50%; margin-top: -9px; width: 18px; height: 18px; color: var(--gold-ink); }
.pgchips { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.pgchips .k { flex-basis: 100%; font: 600 11.5px/1 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.pgchips button { min-width: 38px; height: 34px; border-radius: 10px; border: 1px solid var(--line); font: 600 13px/1 var(--ui); color: var(--ink); background: transparent; }
.pgchips button.on { background: var(--gold); border-color: var(--gold); color: #141b31; }

/* what should I read? */
.nxprompt { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: -8px 0 26px; padding: 16px 20px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .2s; }
.nxprompt:hover { border-color: var(--gold); }
.nxprompt b { display: block; font: 500 20px/1.2 var(--text); }
.nxprompt > span > span { display: block; font-size: 14px; color: var(--muted); margin-top: 3px; }
.nxprompt > svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--gold-ink); stroke-width: 2; }
.nxq { max-width: 640px; margin-top: 18px; }
.nxprog { display: flex; gap: 5px; margin-bottom: 26px; }
.nxprog span { height: 3px; flex: 1; background: var(--line); border-radius: 2px; }
.nxprog span.done { background: var(--gold-ink); } .nxprog span.now { background: var(--gold); }
.nxq h2 { font: 400 28px/1.2 var(--text); margin: 0 0 20px; }
.nxq h2 .muted { font: 400 14px var(--ui); margin-left: 8px; }
.nxopts { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }
.nxopts button { text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.nxopts button:hover { border-color: var(--gold); }
.nxopts button.on { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 16%, var(--card)); }
.nxopts button b { display: block; font: 400 18px/1.25 var(--text); }
.nxopts button span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.nxopts.multi { display: grid; grid-template-columns: 1fr 1fr; }
.nxdone { max-width: 780px; margin-top: 18px; }
.nxdone h1 { font: 400 32px/1.15 var(--text); margin: 0 0 4px; }
.nxcard { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.nxcard.first { border-top: 0; }
.nxcv img { width: 120px; border-radius: 6px; box-shadow: var(--shadow); display: block; }
.nxcard h2 { font: 400 24px/1.2 var(--text); margin: 0 0 2px; } .nxcard h2 a { color: inherit; text-decoration: none; }
.nxwhy { margin: 10px 0 14px; padding: 8px 12px 8px 28px; border-left: 3px solid var(--gold); background: color-mix(in srgb, var(--gold) 9%, transparent); font-size: 14.5px; }
.nxwhy li { margin: 2px 0; }
@media (max-width: 520px) { .nxopts.multi { grid-template-columns: 1fr; } .nxcard { grid-template-columns: 84px 1fr; gap: 14px; } .nxcv img { width: 84px; } }

/* a saved word: plainly saved, gold star filled, never faded */
.btn.saved { background: transparent; color: var(--gold-ink); border: 1.5px solid var(--gold); cursor: default; opacity: 1; }
.btn.saved .ico { fill: var(--gold); stroke: var(--gold); }
.btn .ico { width: 18px; height: 18px; }

/* the reader's own marks: a pen after a noted word; remove or edit from the word panel */
.w.has-note::after { content: "✎"; font-size: .55em; vertical-align: .9em; margin-left: 1px; color: var(--gold-ink); }
.mynote .mnacts { display: flex; gap: 16px; margin-top: 6px; font-size: 13.5px; }
.mynote .e.q { font-style: italic; color: var(--muted); }
.mnedit { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.mnedit textarea { width: 100%; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); padding: 8px 10px; font: inherit; }
.welcome .btn.ghost.light, .welcome .btn.ghost.light:hover { background: transparent; color: #f1e6cc; box-shadow: inset 0 0 0 1.5px rgba(241, 230, 204, .45); }
.welcome .btn.ghost.light:hover { box-shadow: inset 0 0 0 1.5px var(--gold); }

/* scansion on the line: a mark over each syllable's vowel, a fine rule where a foot begins */
.ln.sc { line-height: 1.95; }
.ln.sc .nu { text-indent: 0; }
.ln.sc .lt { white-space: normal; }
.ln.sc .w { white-space: nowrap; }
.ln.sc .nu { position: relative; display: inline-block; line-height: 1; }
.ln.sc .nu::before { position: absolute; left: 50%; transform: translateX(-50%); top: -.62em; font: 400 .6em/1 var(--ui); color: var(--gold-ink); pointer-events: none; }
.ln.sc .nu.L::before { content: "–"; font-weight: 700; }
.ln.sc .nu.S::before { content: "⏑"; top: -.72em; }
.ln.sc .nu.X::before { content: "×"; font-size: .48em; top: -.85em; }
.ln.sc .nu.fs::after, .ln.sc .nu.fz::after { content: ""; position: absolute; left: -.18em; top: -.42em; height: .3em; border-left: 1px solid var(--gold); opacity: .35; }
.ln.sc .nu.fz::after { opacity: .9; }
.ln.sc .el { color: var(--muted); opacity: .55; }
.ln.sc .feet { display: inline-block; margin-left: .7em; font: 600 .48em/1 var(--ui); letter-spacing: .16em; color: var(--gold-ink); vertical-align: .25em; opacity: .7; }
/* captions sit centred under their pictures */
figure { text-align: center; }
figure figcaption { text-align: center; margin-left: auto; margin-right: auto; max-width: 34em; }
.pcard { text-align: center; }
.pcard b, .pcard > span { padding-left: 12px; padding-right: 12px; }
@media (max-width: 600px) { .ln.sc .lt { font-size: .9em; } .ln.sc .feet { display: none; } }

/* scansion games: the line reads as Latin; each syllable is underlined and takes the mark chosen above */
.scanq .srcline { display: none; }
.scmode { margin: 4px auto 18px; display: inline-flex; }
.scmode button { min-width: 96px; font-size: 15px; }
.sylls { display: block; text-align: center; font-family: var(--text); font-size: 25px; line-height: 2.5; gap: 0; }
.sylls .xw { display: inline-block; white-space: nowrap; margin: 0 .3em; gap: 0; }
.sylls .sp { display: inline-block; width: .55em; }
.syl { display: inline-block; position: relative; padding: 0 .04em; margin: 0 .03em; min-width: 0; border-radius: 0; box-shadow: none;
  background: none; font: inherit; line-height: 1.15; color: var(--ink); border-bottom: 2px solid var(--line); cursor: pointer; }
.syl:hover { border-bottom-color: var(--gold); }
.syl::before { position: absolute; left: 0; right: 0; top: -.75em; text-align: center; font: 600 .62em/1 var(--ui); color: var(--gold-ink); }
.syl.ok { box-shadow: none; border-bottom-color: #4b8a5d; } .syl.ok::before { color: #4b8a5d; }
.syl.no { box-shadow: none; border-bottom-color: #b4513a; } .syl.no::before { color: #b4513a; }
.syl.given { opacity: .6; background: none; border-bottom-color: transparent; }
.scfeet { margin-top: 8px; font: 600 13px var(--ui); letter-spacing: .14em; color: var(--gold-ink); }
.sylls .syl { padding: 0; margin: 0 2px 0 0; }
.sylls .syl.given { background: none; border-bottom-color: transparent; }

/* wide picture cards: the picture on the left, the words beside it (one across, or two side by side) */
.pwides { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 8px; }
.pwides.one { grid-template-columns: 1fr; }
.pwide { position: relative; display: grid; grid-template-columns: minmax(140px, 38%) 1fr; grid-template-rows: auto 1fr; column-gap: 18px; align-items: start;
  min-height: 132px; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  transition: border-color .2s, transform .2s; }
.pwides.one .pwide { grid-template-columns: minmax(160px, 26%) 1fr; }
.pwide:hover { border-color: var(--gold); transform: translateY(-2px); }
.pwide img { grid-row: 1 / span 2; width: 100%; height: 100%; min-height: 132px; object-fit: cover; display: block; }
.pwide b { padding-top: 22px; padding-right: 16px; font: 500 21px/1.2 var(--text); }
.pwide > span { padding: 6px 16px 18px 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.pwide em { position: absolute; top: 10px; right: 10px; font: 600 11.5px/1 var(--ui); font-style: normal; padding: 6px 9px; border-radius: 999px; background: var(--gold); color: #141b31; }
.pwide.noimg { grid-template-columns: 1fr; padding-left: 18px; }
@media (max-width: 700px) { .pwides { grid-template-columns: 1fr; } .pwide, .pwides.one .pwide { grid-template-columns: 120px 1fr; min-height: 104px; } .pwide img { min-height: 104px; } .pwide b { font-size: 18px; padding-top: 14px; } }
.pwide { height: 168px; min-height: 0; } .pwides.one .pwide { height: 138px; }
.pwide img { min-height: 0; height: 100%; }
@media (max-width: 700px) { .pwide, .pwides.one .pwide { height: 112px; } }
/* wide cards: the painting fills the card, the words sit over its left side */
.pwide { display: flex; flex-direction: column; justify-content: flex-end; padding: 0; color: #f6efdd; background: #18233f; }
.pwide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pwide:hover img { transform: scale(1.02); }
.pwide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 17, 33, .9) 0%, rgba(12, 17, 33, .55) 50%, rgba(12, 17, 33, .05) 100%); }
.pwide b, .pwide > span { position: relative; z-index: 1; max-width: 70%; color: inherit; }
.pwide b { padding: 0 22px 2px; font-size: 23px; }
.pwide > span { padding: 0 22px 18px; color: rgba(246, 239, 221, .85); }
.pwide em { z-index: 2; }
.pwide.noimg { padding-left: 0; }
@media (max-width: 700px) { .pwide b, .pwide > span { max-width: 90%; } .pwide b { font-size: 19px; padding: 0 16px 2px; } .pwide > span { padding: 0 16px 14px; font-size: 13px; } }
/* a short row fills its width rather than leaving a gap */
.pcards:not(.path) { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.soonf { display: inline-flex; gap: 8px; align-items: center; }
.soonf input { height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 0 14px; font: inherit; min-width: 200px; }
.soonok { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-ink); font-weight: 600; font-size: 14px; }
.soonok svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; }

/* signed-out welcome: a slim navy band, so the library shows beneath it */
.welcome.hello { padding: 14px 20px; gap: 10px 16px; border-radius: 14px; }
.welcome.hello h1 { color: #f8f3e4; font-size: 21px; }
.welcome.hello p { font-size: 13.5px; margin-top: 3px; }
.welcome.hello .btn { height: 36px; padding: 0 14px; font-size: 14px; }
@media (max-width: 520px) { .welcome.hello { padding: 12px 14px; } .welcome.hello h1 { font-size: 18px; }
  .welcome.hello .acts2 { width: 100%; flex-wrap: nowrap; gap: 8px; } .welcome.hello .acts2 .btn { flex: 1; height: 34px; padding: 0 8px; font-size: 13px; } }

/* plans and prices */
.pricing { max-width: 980px; margin: 10px auto; }
.pricing h1 { font: 400 34px/1.15 var(--text); text-align: center; }
.pricing .lead { text-align: center; color: var(--muted); margin: 6px 0 24px; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.tier { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.tier.top { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.tier .k { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); font-weight: 700; }
.tier .p { font: 400 34px/1.1 var(--text); margin: 8px 0 2px; }
.tier .p small { font: 14px var(--ui); color: var(--muted); }
.tier .perks { flex: 1; margin-bottom: 16px; }
.tier .perks li { font-size: 14.5px; }
.tier .pick { margin-top: 10px; align-self: flex-start; }
.tier .here { text-align: center; color: var(--gold-ink); font-weight: 600; font-size: 14px; padding: 12px 0 2px; }
@media (max-width: 760px) { .tiers { grid-template-columns: 1fr; } }

/* the end of a chapter clears the phone's own toolbar */
.reader { padding-bottom: calc(160px + env(safe-area-inset-bottom)); }
/* a closed sheet is gone, not parked under the fold where a moving toolbar can show its edge */
.sheet { visibility: hidden; box-shadow: none; transition: transform .26s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .26s; }
.sheet.open { visibility: visible; box-shadow: 0 -10px 40px rgba(0, 0, 0, .2); transition: transform .26s cubic-bezier(.2, .8, .2, 1), visibility 0s; }

/* no visible scroll bars anywhere: the page and its panels still scroll */
html, body, .sheet .sb, .tablewrap, * { scrollbar-width: none; }
::-webkit-scrollbar { display: none; width: 0; height: 0; }
@media (min-width: 900px) { .sheet.side.open { box-shadow: -10px 0 40px rgba(0, 0, 0, .14); } }

/* flashcards: a bar for the round, and the answer said plainly on the card */
.fprog { height: 4px; border-radius: 2px; background: var(--bg-2); overflow: hidden; margin-bottom: 8px; }
.fprog i { display: block; height: 100%; background: var(--gold); transition: width .3s; }
.fcount { margin-bottom: 12px; font-size: 13.5px; }
.fagain { color: #b4513a; font-weight: 600; }
.flash { position: relative; transition: box-shadow .2s, background .2s; }
.flash.open .g { animation: frise .25s ease both; }
@keyframes frise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.flash.right, .flash.known { box-shadow: inset 0 0 0 2.5px #4b8a5d, var(--shadow); background: color-mix(in srgb, #4b8a5d 7%, var(--card)); }
/* a word still being learned: a quiet gold, not a red mark; meeting a word is not a mistake */
.flash.wrong { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--gold) 55%, transparent), var(--shadow); background: color-mix(in srgb, var(--gold) 6%, var(--card)); }
.fres { min-height: 0; margin-top: 16px; font-size: 15px; font-weight: 600; display: flex; gap: 6px; align-items: flex-start; justify-content: center; text-align: left; }
.fres:empty { display: none; }
.flash.right .fres, .flash.known .fres { color: #3f7a50; }
.flash.wrong .fres { color: var(--gold-ink); font-weight: 500; }
.fres .ico { width: 18px; height: 18px; stroke-width: 2.4; }
.fhint { text-align: center; font-size: 13.5px; margin-top: 12px; min-height: 18px; }
.revacts .btn .ico { width: 18px; height: 18px; }

/* facing texts, redesigned: a language switch under the top bar; two even columns with a rule between them on wide
   screens; on a phone each passage, then its facing text in a soft panel named by its language */
.pbar { display: flex; justify-content: center; padding: 0 8px 8px; }
.pbar[hidden] { display: none; }
.pbar .seg.mini { display: inline-flex; }
.pbar .seg.mini button { height: 32px; padding: 0 14px; font-size: 13.5px; }
.rtop.away .pbar { visibility: hidden; }
.reader.has-pairs { max-width: 70em; }
.pair.mode-both { grid-template-columns: 1fr 1fr; gap: 0; margin: 0 0 1.1em; }
.pair.mode-both .pa { padding-right: 1.6em; }
.pair.mode-both .pb { padding-left: 1.6em; border-left: 1px solid var(--line); }
.pair.mode-a, .pair.mode-b { max-width: 36em; margin-left: auto; margin-right: auto; }
.reader.has-pairs .opener, .reader.has-pairs > figure, .reader.has-pairs > h2.hd, .reader.has-pairs > h3.hd { max-width: 36em; margin-left: auto; margin-right: auto; }
@media (max-width: 760px) {
  .pair.mode-both { grid-template-columns: 1fr; margin: 0 0 1.3em; }
  .pair.mode-both .pa { padding-right: 0; }
  .pair.mode-both .pb { border-left: 0; padding: .55em .85em .6em; margin: .45em 0 0; font-size: .88em; color: var(--ink);
    background: var(--bg-2); border-radius: 12px; }
  .pair.mode-both .pb::before { content: attr(data-l); display: block; font: 600 10.5px/1 var(--ui); letter-spacing: .1em;
    text-transform: uppercase; color: var(--gold-ink); margin-bottom: 5px; }
}

/* the monthly drawing */
.drawing { max-width: 640px; margin: 10px auto; }
.drawing h1 { font: 400 34px/1.15 var(--text); margin: 4px 0 6px; }
.drawing h2 { font: 600 22px/1.2 var(--text); margin: 28px 0 10px; }
.drawing .lead { color: var(--muted); font-size: 16px; margin: 0 0 18px; }
.drawing .box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.dstat { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.dstat > div { flex: 1; min-width: 200px; } .dstat b { display: block; font-size: 16px; } .dstat span { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.dstat > .ico { width: 26px; height: 26px; color: var(--gold-ink); stroke-width: 2.2; }
.dwin { margin-top: 12px; border-color: var(--gold) !important; }
.dlist { list-style: none; margin: 0; padding: 0; } .dlist li { display: flex; justify-content: space-between; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.dlist li span { color: var(--muted); }
.drules { padding-left: 1.2em; color: var(--ink); font-size: 14.5px; line-height: 1.55; } .drules li { margin-bottom: 8px; }
.tier .perks a, .dlink { color: inherit; } .dlink { display: block; text-decoration: none; } .dlink > div { display: flex; align-items: center; gap: 6px; }
.dlink .ico { width: 16px; height: 16px; color: var(--gold-ink); }

/* a line number that opens notes: a round pill with the number in its middle, level with the line of verse */
.ln .lnum.sn { left: -.35em; width: auto; min-width: 2.1em; height: 1.9em; padding: 0 .45em; line-height: 1.9em; text-align: center;
  border-radius: 999px; vertical-align: baseline; top: .42em; }
.ln.sc .lnum.sn { top: .95em; }
/* facing verse: short lines, so the two columns sit at a reading width rather than across the whole screen */
.pair.verse.mode-both { max-width: 46em; margin-left: auto; margin-right: auto; }
@media (min-width: 761px) { .pair.verse.mode-both .pb { padding-left: 2.4em; } .pair.verse.mode-both .pa { padding-right: 2.4em; } }
/* a bookmarked page: the ribbon filled in gold */
#b-mark.on { color: var(--gold-ink); }
#b-mark.on .ico { fill: var(--gold); stroke: var(--gold-ink); }
/* EN where a text has no English: shown, but struck through */
.ib.en-t.none { position: relative; opacity: .55; }
.ib.en-t.none::after { content: ""; position: absolute; left: 7px; right: 7px; top: 50%; border-top: 1.5px solid currentColor; transform: rotate(-24deg); }
.stat b small { font-size: .55em; color: var(--muted); }
a.stat { text-decoration: none; color: inherit; }

/* Account: a title with a help button; the help form */
.acct-h { display: flex; align-items: center; justify-content: space-between; margin: 4px 2px 14px; }
.acct-h h1 { font: 400 30px/1.1 var(--text); }
.helpq { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 5px; border-radius: 999px; border: 1.5px solid var(--line);
  font: 600 14px/1 var(--ui); color: var(--ink); }
.helpq:hover { border-color: var(--gold); }
.helpq { font-size: 0; } .helpq::before { content: "?"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px;
  background: var(--gold); color: #141b31; font: 700 14px/1 var(--ui); } .helpq > span { font-size: 14px; }
.helpf select, .helpf textarea { width: 100%; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink);
  padding: 10px 12px; font: 16px var(--ui); }
.helpf select { height: 48px; }
.helpf textarea { resize: vertical; min-height: 110px; }

/* sign-up honeypot: there for robots, out of sight and reach for people */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* the analytics question: a slim bar above the tab bar, once */
.gabar { position: fixed; z-index: 50; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); max-width: 640px; margin: 0 auto;
  display: flex; gap: 10px 14px; align-items: center; flex-wrap: wrap; padding: 10px 14px; border-radius: 14px; background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13.5px; line-height: 1.4; color: var(--ink); }
.gabar a { color: var(--gold-ink); }
.gabtn { display: flex; gap: 8px; margin-left: auto; }
.gabtn button { height: 32px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); font: 600 13px var(--ui); }
.gabtn button.yes { background: #192648; color: #f8f3e4; border-color: #192648; }
@media (min-width: 721px) { .gabar { bottom: 16px; } }

/* a passage reached from a "read this passage" link glows for about two and a half seconds */
@keyframes arrive { 0%, 55% { background: rgba(182, 152, 105, .26); box-shadow: 0 0 0 8px rgba(182, 152, 105, .26); } 100% { background: transparent; box-shadow: 0 0 0 8px transparent; } }
.reader .arrive { animation: arrive 2.8s ease-out; border-radius: 4px; }
.setnote { font-size: 13.5px; line-height: 1.45; margin: -4px 0 12px; }

/* phones: the book's two main buttons side by side */
@media (max-width: 640px) { .bookhead .acts { gap: 8px; } .bookhead .acts .btn { padding: 0 16px; font-size: 15px; } }
/* member books: the longer "Included with membership" label wraps tidily, the lock on its first line */
.card .stt { align-items: flex-start; line-height: 1.3; }
.card .stt svg { flex: none; margin-top: .2em; }
@media (max-width: 640px) { .card .stt { font-size: 12.5px; } }
