/* ==========================================================================
   The Amos Project v2 — additive styles on top of library.css
   Covers: PericopeInput, CoverageMap (book-rail + mosaic),
   AvailabilityGrid modal, SealBadge, ReferenceMediaStrip,
   reframed ModesBand (consumer + partner),
   new toolbar chips (editorial tier), Study Tools demotion.
   ========================================================================== */

/* ── Pericope reference input (hero) ────────────────────── */
.amos-ref-input {
  margin: 18px 40px 0;
  background: #fff;
  border: 1px solid rgba(6,31,39,.1);
  border-radius: 14px;
  padding: 14px 14px 14px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  box-shadow: 0 2px 0 rgba(6,31,39,.02), 0 16px 40px -24px rgba(6,31,39,.15);
  transition: border-color .15s, box-shadow .15s;
}
.amos-ref-input.focused {
  border-color: rgba(61,202,220,.6);
  box-shadow: 0 0 0 4px rgba(61,202,220,.12), 0 16px 44px -24px rgba(6,31,39,.22);
}
.amos-ref-input .ri-mode {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 10px 'Figtree'; letter-spacing: .14em; text-transform: uppercase;
  padding: 8px 10px; border-radius: 8px;
  background: rgba(6,31,39,.04); color: rgba(6,31,39,.6);
  min-width: 118px;
}
.amos-ref-input .ri-mode.reference { background: rgba(61,202,220,.14); color: #0a5a65; }
.amos-ref-input .ri-mode.search    { background: rgba(212,162,76,.18); color: #7a5a18; }
.amos-ref-input .ri-mode .dot {
  width: 7px; height: 7px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 0 2px rgba(255,255,255,.6) inset;
}
.amos-ref-input input {
  border: 0; outline: 0; background: transparent;
  font: 400 20px 'Roboto'; color: var(--tan-ink);
  letter-spacing: -.005em; padding: 8px 0; width: 100%;
}
.amos-ref-input input::placeholder { color: rgba(6,31,39,.55); }   /* was .38 (~2.6:1) — audit rank 21 */
.amos-ref-input .ri-kbd {
  font-family: ui-monospace, 'SF Mono', Menlo; font-size: 11px;
  color: rgba(6,31,39,.5); border: 1px solid rgba(6,31,39,.15);
  border-radius: 4px; padding: 3px 7px; background: #fff;
}
.amos-ref-input .ri-submit {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 12.5px 'Roboto'; color: #fff;
  background: var(--tan-ink);
  border: 0; border-radius: 8px; padding: 9px 14px; cursor: pointer;
}
.amos-ref-input .ri-submit:hover { background: #0c2a33; }

.amos-ref-hints {
  margin: 8px 44px 0;
  display: flex; gap: 10px; flex-wrap: wrap;
  font: 400 12px 'Roboto'; color: rgba(6,31,39,.55);
}
.amos-ref-hints b { font-weight: 600; color: rgba(6,31,39,.75); }
.amos-ref-hints .ex {
  font-family: ui-monospace, 'SF Mono', Menlo; font-size: 11.5px;
  padding: 1px 7px; background: rgba(6,31,39,.05); border-radius: 3px;
  color: rgba(6,31,39,.72); cursor: pointer;
}
.amos-ref-hints .ex:hover { background: rgba(61,202,220,.16); color: #0a5a65; }

/* ── Resolved pericope branch (3-action card) ──────────── */
.amos-ref-branch {
  margin: 12px 40px 0;
  background: linear-gradient(180deg, #fff 0%, #f7fbfc 100%);
  border: 1px solid rgba(61,202,220,.35);
  border-radius: 12px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 20px;
  align-items: center;
}
.amos-ref-branch .rb-left .rb-kicker {
  font: 600 10.5px 'Figtree'; letter-spacing: .18em;
  text-transform: uppercase; color: var(--tan-cyan-600);
}
.amos-ref-branch .rb-left h3 {
  font: 500 22px 'Roboto'; letter-spacing:-.01em; margin: 6px 0 2px;
}
.amos-ref-branch .rb-left .rb-sub {
  font: 400 13px 'Roboto'; color: rgba(6,31,39,.65); line-height: 1.5;
}
.amos-ref-branch .rb-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.amos-ref-branch .rb-action {
  background: #fff; border: 1px solid rgba(6,31,39,.14);
  border-radius: 10px; padding: 12px 14px;
  display: grid; grid-template-columns: auto 1fr; gap: 10px;
  min-width: 210px; max-width: 240px;
  cursor: pointer; text-align: left;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.amos-ref-branch .rb-action:hover {
  border-color: var(--tan-cyan);
  box-shadow: 0 6px 14px -6px rgba(61,202,220,.45);
  transform: translateY(-1px);
}
.amos-ref-branch .rb-action .rb-ico {
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center; background: rgba(61,202,220,.14);
  color: var(--tan-cyan-600);
}
.amos-ref-branch .rb-action.commission .rb-ico { background: rgba(212,162,76,.18); color: #8a5d12; }
.amos-ref-branch .rb-action.cross .rb-ico      { background: rgba(139,109,158,.18); color: #5e4772; }
.amos-ref-branch .rb-a-head {
  font: 600 13px 'Roboto'; color: var(--tan-ink); margin-bottom: 2px;
}
.amos-ref-branch .rb-a-sub {
  font: 400 11.5px 'Roboto'; color: rgba(6,31,39,.6); line-height: 1.4;
}

/* ── Coverage Map — wrapper + controls ─────────────────── */
.amos-cov {
  margin: 18px 40px 10px;
  background: #fff;
  border: 1px solid rgba(6,31,39,.1);
  border-radius: 12px;
  overflow: hidden;
}
.cov-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: end;
  padding: 18px 22px 14px;
  border-bottom: 1px solid rgba(6,31,39,.06);
}
/* On narrower viewports, stack so the title uses the full width */
@media (max-width: 1100px) {
  .cov-head {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .cov-head .ch-ctrl {
    flex-wrap: wrap;
  }
}
.cov-head h3 { text-wrap: pretty; }
.cov-head > div:first-child { min-width: 0; }
.cov-head .ch-kicker {
  font: 600 10.5px 'Figtree'; letter-spacing: .18em;
  text-transform: uppercase; color: var(--tan-cyan-600);
}
.cov-head h3 {
  font: 500 22px 'Roboto'; letter-spacing:-.01em;
  margin: 6px 0 4px;
}
.cov-head h3 em { font-style: normal; color: var(--tan-cyan-600); }
.cov-head .ch-sub {
  font: 400 13px 'Roboto'; color: rgba(6,31,39,.6); max-width: 620px; line-height: 1.5;
}
.cov-head .ch-ctrl {
  display: flex; align-items: center; gap: 10px;
}
.cov-head .ch-seg {
  display: inline-flex; border: 1px solid rgba(6,31,39,.14); border-radius: 8px; overflow: hidden;
}
.cov-head .ch-seg button {
  border: 0; background: #fff; padding: 7px 11px; cursor: pointer;
  font: 500 12px 'Roboto'; color: rgba(6,31,39,.7);
  display: inline-flex; align-items: center; gap: 6px;
}
.cov-head .ch-seg button.on { background: var(--tan-ink); color: #fff; }

.cov-head .ch-check {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 12.5px 'Roboto'; color: rgba(6,31,39,.7);
  padding: 6px 10px; border: 1px solid rgba(6,31,39,.14); border-radius: 8px;
  background: #fff; cursor: pointer;
}
.cov-head .ch-check.on { background: rgba(61,202,220,.14); color: #0a5a65; border-color: rgba(61,202,220,.45); }

/* Legend strip — map shows translation/analysis/seal tiers only */
.ch-lens-note {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 8px; padding: 4px 10px; border-radius: 999px;
  background: rgba(61,202,220,.10); color: var(--tan-cyan-700, #145F6B);
  font: 500 11.5px 'Roboto';
}
.ch-lens-note svg { opacity: .85; }

/* ── Reception Record — authoritative platform stats (two distinct tiers) ── */
.reception-record {
  margin: 18px 40px 0;
  background: #fff;
  border: 1px solid rgba(6,31,39,.1);
  border-radius: 14px;
  padding: 16px 20px 14px;
  box-shadow: 0 2px 0 rgba(6,31,39,.02), 0 16px 40px -28px rgba(6,31,39,.18);
}
.reception-record.in-about { margin: 0 0 20px; }
.rr-eyebrow {
  display: flex; align-items: baseline; gap: 10px;
  font: 600 10.5px 'Figtree'; letter-spacing: .16em; text-transform: uppercase;
  color: var(--tan-cyan-700, #145F6B);
}
.rr-asof { font: 500 10px 'Roboto'; letter-spacing: .03em; text-transform: none; color: rgba(6,31,39,.45); }
.rr-row { display: flex; flex-wrap: wrap; gap: 30px; margin: 12px 0 14px; }
.rr-stat .rr-n { font: 600 26px 'Roboto'; letter-spacing: -.01em; color: var(--tan-ink); line-height: 1; }
.rr-stat .rr-l { font: 500 11.5px 'Roboto'; color: rgba(6,31,39,.6); margin-top: 5px; }
.rr-callout {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(61,202,220,.08);
  border: 1px solid rgba(61,202,220,.30);
  border-radius: 10px; padding: 12px 14px;
}
.rr-callout-badge {
  flex: none; align-self: flex-start;
  font: 700 9.5px 'Figtree'; letter-spacing: .08em; text-transform: uppercase;
  color: #0a5a65; background: #fff; border: 1px solid rgba(61,202,220,.45);
  border-radius: 999px; padding: 5px 10px; white-space: nowrap;
}
.rr-callout-lead { font: 400 14.5px 'Roboto'; color: var(--tan-ink); line-height: 1.4; }
.rr-callout-lead strong { font-weight: 700; }
.rr-callout-sub { font: 400 12px 'Roboto'; color: rgba(6,31,39,.6); margin-top: 4px; line-height: 1.45; }
.rr-foot { margin-top: 11px; font: 400 11.5px 'Roboto'; color: rgba(6,31,39,.55); line-height: 1.5; }
.rr-foot .rr-pilot { font-weight: 600; color: #7a5a18; }
.rr-foot .rr-note { color: rgba(6,31,39,.45); font-style: italic; }
@media (max-width: 820px) {
  .reception-record { margin: 14px 16px 0; padding: 14px 16px; }
  .reception-record.in-about { margin: 0 0 16px; }
  .rr-row { gap: 18px 22px; }
  .rr-stat .rr-n { font-size: 22px; }
  .rr-callout { flex-direction: column; gap: 8px; }
}

.cov-legend {
  display: flex; gap: 16px; flex-wrap: wrap;
  padding: 10px 22px; border-bottom: 1px solid rgba(6,31,39,.06);
  font: 400 11.5px 'Roboto'; color: rgba(6,31,39,.55);
}
.cov-legend .lg { display:inline-flex; align-items:center; gap:6px; }
.cov-legend .lg .sw {
  width: 10px; height: 10px; border-radius: 2px;
  background: #e6e9ea; box-shadow: inset 0 0 0 1px rgba(6,31,39,.12);
}
.cov-legend .lg.c      .sw { background: #7fc7d2; box-shadow: none; }
.cov-legend .lg.b      .sw { background: #26828f; }
.cov-legend .lg.sealed .sw { background: #0a3f48; }

/* ── Coverage Map — Book-rail layout ───────────────────── */
.cov-rail {
  padding: 10px 10px 18px;
  overflow-y: auto;
  max-height: 560px;
}
.cov-rail-group {
  font: 600 10.5px 'Figtree'; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(6,31,39,.5); padding: 14px 12px 6px;
}
.cov-rail-row {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 14px;
  align-items: center;
  padding: 3px 12px;
  border-radius: 8px;
}
.cov-rail-row:hover { background: rgba(6,31,39,.02); }
.cov-rail-row .crr-book {
  position: sticky; left: 0;
  font: 500 13px 'Roboto'; color: var(--tan-ink);
  line-height: 1.15;
  display: flex; align-items: center;
}
.cov-rail-row .crr-book .abbr { font: 600 10px 'Figtree'; letter-spacing:.1em; color: rgba(6,31,39,.45); text-transform: uppercase; }
.cov-rail-row .crr-cells {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12px, 1fr));
  gap: 2px;
}
.cov-rail-row .crr-cells .peri { border-radius: 2px; }

/* ── Pericope cell (pin) ───────────────────────────────── */
.peri {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 3px;
  /* Empty = a clear light NEUTRAL (was a faint blue-ink alpha that read as
     identical to the light-blue 'translation' state at 7px). — audit rank 20 */
  background: #e6e9ea;
  border: 1px solid rgba(6,31,39,.10);
  cursor: pointer;
  transition: transform .1s, box-shadow .1s;
  /* button reset — pins are now real <button>s (audit rank 3) */
  padding: 0; display: block; appearance: none; -webkit-appearance: none; font: inherit;
}
.peri:hover {
  transform: scale(1.25);
  z-index: 2;
  box-shadow: 0 0 0 1.5px #fff, 0 4px 10px rgba(6,31,39,.2);
}
.peri:focus-visible {
  outline: 2px solid var(--tan-cyan-700, #145F6B);
  outline-offset: 1px; z-index: 3;
}
/* Availability tiers — distinct solids, no icons. Monotonic light→dark ladder
   with a clearly saturated 'translation' tint so all four states separate. */
.peri.state-c      { background: #7fc7d2; border-color: #5aacba; }   /* translation exists */
.peri.state-b      { background: #26828f; border-color: #1b6c77; }   /* analytical apparatus */
.peri.state-sealed { background: #0a3f48; border-color: #062a30; }   /* agency-reviewed */
.peri.featured {
  box-shadow: 0 0 0 1.5px var(--tan-cyan), 0 0 0 3px rgba(61,202,220,.25);
  z-index: 1;
}
/* In-progress / seal / media marks are not shown on the coverage map —
   they live in the pericope detail pop and the reader drawer. */
.peri .seal-mark,
.peri .media-mark { display: none; }
.peri.inprog {
  background: rgba(6,31,39,.07);
  border-color: rgba(6,31,39,.08);
  border-style: solid;
}
.peri.inprog::before,
.peri.inprog::after { content: none; }

/* ── Coverage Map — Mosaic layout (compact) ────────────── */
.cov-mosaic {
  padding: 8px 10px 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 4px;
  max-height: 640px;
  overflow-y: auto;
}
.cov-mosaic-book {
  border: 1px solid rgba(6,31,39,.06);
  border-radius: 3px;
  padding: 4px 5px 5px;
  background: #fff;
}
.cov-mosaic-book .cmb-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 3px;
  gap: 3px;
}
.cov-mosaic-book .cmb-head .name {
  font: 600 10px 'Roboto'; color: var(--tan-ink);
  letter-spacing: -.005em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cov-mosaic-book .cmb-head .count {
  font: 600 8.5px 'Figtree'; letter-spacing: .04em;
  color: rgba(6,31,39,.4);
  flex-shrink: 0;
}
.cov-mosaic-book .cmb-head .count b { color: #0f5a65; font-weight: 700; }
.cov-mosaic-book .cells {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7px, 1fr));
  gap: 1px;
}
/* Compact mosaic pin — flat, no markers, no hover-scale */
.cov-mosaic .peri { border-radius: 1px; border: 0; }
/* The mosaic strips borders for density, which erased the empty/translation
   distinction. Give the light 'translation' tint a hairline edge so it stays
   legible at 7px (and reads as a non-empty cell). — audit rank 20 */
.cov-mosaic .peri.state-c { box-shadow: inset 0 0 0 1px #4f9fad; }
.cov-mosaic .peri:hover { transform: none; box-shadow: 0 0 0 1.5px #fff, 0 0 0 3px var(--tan-cyan); }
.cov-mosaic .peri .seal-mark,
.cov-mosaic .peri .media-mark { display: none; }

/* Testament section headers inside mosaic */
.cov-mosaic-sec {
  grid-column: 1 / -1;
  font: 600 10px 'Figtree'; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(6,31,39,.42);
  margin: 6px 2px 0;
  border-bottom: 1px solid rgba(6,31,39,.06);
  padding-bottom: 3px;
}

/* ── Pericope hover-card ───────────────────────────────── */
.peri-pop {
  position: fixed;
  z-index: 100;
  background: #fff;
  border: 1px solid rgba(6,31,39,.14);
  border-radius: 10px;
  padding: 14px 14px 12px;
  width: 280px;
  box-shadow: 0 16px 40px rgba(6,31,39,.18);
  font: 400 12.5px 'Roboto';
}
.peri-pop .pp-ref { font: 500 17px 'Roboto'; color: var(--tan-ink); letter-spacing:-.005em; }
.peri-pop .pp-state {
  font: 600 10.5px 'Figtree'; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(6,31,39,.5); margin-top: 4px;
}
.peri-pop .pp-state b { color: #0a5a65; }
.peri-pop .pp-state.b b  { color: #0f5a65; }
.peri-pop .pp-state.c b  { color: #0a5a65; }
.peri-pop .pp-state.empty b { color: rgba(6,31,39,.5); }
.peri-pop .pp-seals { margin-top: 10px; display: flex; gap: 5px; flex-wrap: wrap; }
.peri-pop .pp-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}
.peri-pop .pp-media-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px 3px 7px;
  border: 1px solid rgba(184,68,58,.35);
  background: rgba(184,68,58,.08);
  color: #8a2d23;
  border-radius: 999px;
  font: 600 10px 'Figtree'; letter-spacing: .1em;
  text-transform: uppercase;
}
.peri-pop .pp-media-chip svg { color: #b8443a; }
.peri-pop .pp-actions {
  margin-top: 12px; display: flex; gap: 6px;
  padding-top: 10px; border-top: 1px solid rgba(6,31,39,.08);
}

/* ── Seal badges (monogram) ────────────────────────────── */
.seal {
  display: inline-flex; align-items: center; gap: 5px;
  font: 600 10.5px 'Figtree'; letter-spacing: .08em; text-transform: uppercase;
  background: #fff;
  border: 1px solid rgba(6,31,39,.14);
  color: rgba(6,31,39,.7);
  padding: 2px 6px 2px 3px;
  border-radius: 4px;
  line-height: 1;
}
.seal .mono {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px;
  font: 700 10px 'Figtree';
  background: var(--tan-ink); color: var(--tan-cyan);
  border-radius: 3px; letter-spacing: 0;
}
.seal.bib .mono { background: #fff; color: #1a4a7a; padding: 0; overflow: hidden; }
.seal .mono.mono-img { padding: 0; background: #fff; }
.seal .mono.mono-img img {
  width: 100%; height: 100%; object-fit: contain; display: block;
}
.seal.bec .mono { background: #8a1e27; color: #f4d3a8; }
.seal.ubs .mono { background: #1a3560; color: #ffffff; }
.seal.wyc .mono { background: #4d2a1e; color: #ffdfb3; }
.seal.abs .mono { background: #182a30; color: #d8a23a; }
.seal.ai  { border-style: dashed; color: #8b6d9e; }
.seal.ai .mono { background: #8b6d9e; color: #fff; }
.seal.reviewer { border-color: rgba(212,162,76,.5); color: #7a5a18; }
.seal.reviewer .mono { background: #b8862e; color: #fff; }

.seal.sm { font-size: 9.5px; padding: 1.5px 5px 1.5px 2px; }
.seal.sm .mono { width: 14px; height: 14px; font-size: 8.5px; }

/* Stack for multi-seal */
.seal-stack { display: inline-flex; gap: 3px; align-items: center; }

/* ── Availability Grid modal ───────────────────────────── */
.amos-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(6,31,39,.45);
  z-index: 150;
  display: grid; place-items: center;
  padding: 40px;
}
.amos-modal {
  background: #fff;
  border-radius: 14px;
  width: min(940px, 100%);
  max-height: calc(100vh - 80px);
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(6,31,39,.3);
}
.amos-modal-head {
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(6,31,39,.08);
  display: grid; grid-template-columns: 1fr auto; gap: 14px;
  align-items: start;
}
.amos-modal-head .mh-kicker {
  font: 600 10.5px 'Figtree'; letter-spacing: .18em;
  text-transform: uppercase; color: #8a5d12;
}
.amos-modal-head h3 {
  font: 500 22px 'Roboto'; letter-spacing:-.01em; margin: 4px 0 4px;
}
.amos-modal-head h3 em { font-style: normal; color: var(--tan-cyan-600); }
.amos-modal-head .mh-sub {
  font: 400 13px 'Roboto'; color: rgba(6,31,39,.6); line-height: 1.5; max-width: 600px;
}

.avail-body { padding: 0 0 10px; overflow: auto; }
.avail-table {
  width: 100%;
  border-collapse: separate; border-spacing: 0;
  font: 400 12.5px 'Roboto';
}
.avail-table thead th {
  position: sticky; top: 0; z-index: 1;
  background: #fff;
  font: 600 10.5px 'Figtree'; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(6,31,39,.55);
  text-align: left;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(6,31,39,.08);
}
.avail-table thead th.mode {
  text-align: center; width: 130px;
}
.avail-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(6,31,39,.05);
}
.avail-table tbody tr:hover { background: rgba(6,31,39,.015); }
.avail-table td.lang-cell {
  font: 500 13px 'Roboto'; color: var(--tan-ink);
}
.avail-table td.lang-cell .iso {
  font: 600 10.5px 'Figtree'; letter-spacing: .12em;
  color: rgba(6,31,39,.4); text-transform: uppercase; margin-right: 6px;
}
.avail-cell {
  display: grid; grid-template-rows: auto auto; gap: 2px;
  padding: 6px 10px; border-radius: 6px;
  min-width: 104px; text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .1s, border-color .15s;
}
.avail-cell:hover { transform: translateY(-1px); }
.avail-cell .top {
  font: 600 11px 'Figtree'; letter-spacing: .08em; text-transform: uppercase;
}
.avail-cell .bot {
  font: 400 10.5px 'Roboto'; color: rgba(6,31,39,.55);
}
.avail-cell.exists { background: rgba(15,90,101,.1); border-color: rgba(15,90,101,.25); }
.avail-cell.exists .top { color: #0a4f5a; }
.avail-cell.exists:hover { border-color: #0f5a65; }
.avail-cell.commission { background: rgba(212,162,76,.1); border-color: rgba(212,162,76,.3); }
.avail-cell.commission .top { color: #8a5d12; }
.avail-cell.commission:hover { border-color: #b8862e; }
.avail-cell.unavail { background: rgba(6,31,39,.025); }
.avail-cell.unavail .top { color: rgba(6,31,39,.35); }
.avail-cell.unavail { cursor: not-allowed; }
.avail-cell.unavail:hover { transform: none; }

.avail-foot {
  padding: 14px 24px;
  border-top: 1px solid rgba(6,31,39,.08);
  background: rgba(6,31,39,.02);
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px;
  font: 400 12px 'Roboto'; color: rgba(6,31,39,.6);
}
.avail-foot .af-legend { display: flex; gap: 14px; }
.avail-foot .af-legend .lg { display:inline-flex; align-items:center; gap:6px; }
.avail-foot .af-legend .sw { width:10px; height:10px; border-radius:3px; }
.avail-foot .af-legend .sw.e { background: rgba(15,90,101,.35); }
.avail-foot .af-legend .sw.c { background: rgba(212,162,76,.45); }
.avail-foot .af-legend .sw.u { background: rgba(6,31,39,.18); }

/* ── LUMO reference card (TANhub Multimedia pattern) ─────
   Shown in Read view for Gospels + Acts pericopes only.
   Small (max 260px), right-floated; opens modal player.
   ──────────────────────────────────────────────────────── */
.lumo-card {
  float: right;
  width: 240px;
  margin: 0 0 14px 18px;
  padding: 0;
}
.lumo-card-frame {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(6,31,39,.12);
  border-radius: 8px;
  overflow: hidden;
  background: #0a0906;
  cursor: pointer;
  text-align: left;
  transition: border-color .12s, transform .06s, box-shadow .15s;
}
.lumo-card-frame:hover {
  border-color: var(--tan-cyan, #3DCADC);
  box-shadow: 0 4px 14px rgba(6,31,39,.12);
}
.lumo-card-frame:active { transform: translateY(1px); }
.lumo-card-frame:focus-visible {
  outline: 2px solid var(--tan-cyan, #3DCADC);
  outline-offset: 2px;
}
.lumo-card-thumb {
  position: relative;
  width: 100%; aspect-ratio: 16 / 9;
  background: #0a0906;
}
.lumo-card-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 2;
}
.lumo-card-fallback {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 80% at 35% 55%, #7a3e1c 0%, #2a1308 70%, #0d0604 100%);
  z-index: 1;
}
.lumo-card-play {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: #0a2a2f;
  display: flex; align-items: center; justify-content: center;
  padding-left: 2px;
  box-shadow: 0 4px 10px rgba(0,0,0,.35);
  z-index: 3;
  transition: transform .14s, background .14s;
}
.lumo-card-frame:hover .lumo-card-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: #fff;
}

/* Bar under the image — inside the card border, per Figma */
.lumo-card-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 10px;
  background: #fff;
  border-top: 1px solid rgba(6,31,39,.08);
  gap: 8px;
}
.lumo-card-bar .lcb-left {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(6,31,39,.7);
}
.lumo-card-bar .lcb-time {
  font: 500 11.5px 'Roboto Mono', ui-monospace, monospace;
  color: rgba(6,31,39,.75);
  letter-spacing: -.003em;
}
.lumo-card-bar .lcb-lang {
  font: 500 11.5px 'Roboto';
  color: rgba(6,31,39,.7);
  letter-spacing: -.003em;
  max-width: 50%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Attribution line below the card (outside the frame) — per Figma */
.lumo-card-cap {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 2px 0;
  font: 500 11px 'Roboto';
  color: rgba(6,31,39,.58);
}
.lumo-card-cap .lumo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--tan-cyan, #3DCADC);
  flex: none;
}
.lumo-card-cap .lumo-cap-book {
  font-weight: 600; color: rgba(6,31,39,.75);
}
.lumo-card-cap .lumo-cap-sep { color: rgba(6,31,39,.3); }
.lumo-card-cap .lumo-cap-src { color: rgba(6,31,39,.55); }

/* Modal player (opened by clicking the card) */
.lumo-modal {
  position: fixed; inset: 0;
  background: rgba(6,10,14,.78);
  z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  animation: lumo-modal-in .16s ease-out both;
}
@keyframes lumo-modal-in { from { opacity: 0; } to { opacity: 1; } }
.lumo-modal-box {
  position: relative;
  width: min(900px, 100%);
  background: #0a0906;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,.5);
}
.lumo-modal-close {
  position: absolute; top: 10px; right: 10px;
  width: 34px; height: 34px;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font: 500 16px 'Roboto';
  cursor: pointer;
  z-index: 3;
  transition: background .12s;
}
.lumo-modal-close:hover { background: rgba(255,255,255,.22); }
.lumo-modal-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0a0906;
}
.lumo-modal-frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.lumo-modal-fallback {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 55% at 30% 55%, #6e3318 0%, #3a170a 55%, #0d0604 100%);
}
.lumo-modal-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 10px 16px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.75));
  color: rgba(255,255,255,.95);
}
.lumo-modal-bar .lmb-left { display: inline-flex; align-items: center; gap: 8px; }
.lumo-modal-bar .lmb-time,
.lumo-modal-bar .lmb-lang {
  font: 500 13px 'Roboto';
  letter-spacing: -.003em;
}
.lumo-modal-bar .lmb-time {
  font-family: 'Roboto Mono', ui-monospace, monospace;
}
.lumo-modal-cap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding: 12px 16px;
  background: #0f1115;
  color: rgba(255,255,255,.75);
  font: 500 12px 'Roboto';
}
.lumo-modal-cap b { color: #fff; font-weight: 600; }
.lumo-modal-cap .lpc-lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 7px;
  color: rgba(255,255,255,.92);
  cursor: pointer;
}
.lumo-modal-cap .lpc-lang-btn:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.28);
}

@media (max-width: 700px) {
  .lumo-card { float: none; width: 100%; max-width: 320px; margin: 0 auto 14px; }
}

/* ── Reframed Modes band (B/C/D + Mode A partner) ──────── */
.wmb-v2 { margin: 30px 40px 0; }
.wmb-v2 .wmb-head {
  display: grid; grid-template-columns: 1fr auto; gap: 14px;
  align-items: end; padding: 0 0 14px;
}
.wmb-v2 .wmb-kicker {
  font: 600 10.5px 'Figtree'; letter-spacing: .18em;
  text-transform: uppercase; color: var(--tan-cyan-600);
}
.wmb-v2 .wmb-title {
  font: 500 22px 'Roboto'; letter-spacing:-.01em; margin: 6px 0 0;
}
.wmb-v2 .wmb-title em { font-style: normal; color: var(--tan-cyan-600); }

.wmb-v2-consumer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.wmb-v2-consumer .wmb-card {
  background: #fff;
  border: 1px solid rgba(6,31,39,.1);
  border-radius: 10px;
  padding: 18px 18px 16px;
  cursor: pointer;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.wmb-v2-consumer .wmb-card:hover {
  border-color: var(--tan-cyan);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -6px rgba(61,202,220,.4);
}
.wmb-v2-consumer .wmb-letter {
  font: 300 40px 'Roboto Slab', Georgia, serif;
  color: var(--tan-cyan-600);
  line-height: 1; margin-bottom: 8px;
}
.wmb-v2-consumer .wmb-k {
  font: 600 10.5px 'Figtree'; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(6,31,39,.5);
}
.wmb-v2-consumer .wmb-n {
  font: 500 17px 'Roboto'; color: var(--tan-ink);
  margin: 2px 0 8px;
}
.wmb-v2-consumer .wmb-d {
  font: 400 13px 'Roboto'; color: rgba(6,31,39,.65);
  line-height: 1.5;
}
.wmb-v2-consumer .wmb-cta {
  margin-top: 12px;
  font: 600 12px 'Roboto'; color: var(--tan-cyan-600);
  display: inline-flex; gap: 4px; align-items: center;
}

/* Mode A partner band — visually distinct */
.wmb-v2-partner {
  margin-top: 14px;
  background: #fbf8f2;
  color: var(--tan-ink, #062A30);
  border: 1px solid rgba(6,31,39,.08);
  border-left: 3px solid rgba(138,93,18,.45);
  border-radius: 10px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
}
.wmb-v2-partner .pa-mark {
  width: 44px; height: 44px;
  border: 1px solid rgba(138,93,18,.35);
  border-radius: 8px;
  display: grid; place-items: center;
  font: 300 24px 'Roboto Slab', Georgia, serif;
  color: #8a5d12;
  background: rgba(212,162,76,.08);
}
.wmb-v2-partner .pa-copy .pa-kicker {
  font: 600 10px 'Figtree'; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(138,93,18,.85);
}
.wmb-v2-partner .pa-copy h4 {
  font: 500 17px 'Roboto'; letter-spacing:-.005em;
  margin: 3px 0 4px; color: var(--tan-ink, #062A30);
}
.wmb-v2-partner .pa-copy h4 em { font-style: normal; color: #8a5d12; }
.wmb-v2-partner .pa-copy p {
  font: 400 12.5px 'Roboto'; color: rgba(6,31,39,.65);
  line-height: 1.5; max-width: 640px; margin: 0;
}
.wmb-v2-partner .pa-agencies {
  display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap;
}
.wmb-v2-partner .pa-agencies .seal {
  background: rgba(6,31,39,.03);
  border-color: rgba(6,31,39,.1);
  color: rgba(6,31,39,.55);
}
.wmb-v2-partner .pa-cta button {
  background: transparent; color: var(--tan-ink, #062A30);
  border: 1px solid rgba(6,31,39,.2);
  border-radius: 8px; padding: 8px 14px;
  font: 600 12px 'Roboto'; cursor: pointer;
  display: inline-flex; gap: 6px; align-items: center;
}
.wmb-v2-partner .pa-cta button:hover {
  border-color: rgba(138,93,18,.55);
  background: rgba(212,162,76,.06);
}

/* ── Sidebar v2: demoted Study Tools subsection ────────── */
.amos-sec.specialized {
  font-size: 10px;
  color: rgba(6,31,39,.35);
  padding-top: 10px; margin-top: 4px;
  border-top: 1px dashed rgba(6,31,39,.08);
  margin-left: 20px; margin-right: 20px;
  padding-left: 0; padding-right: 0;
}
.amos-item.specialized {
  font-size: 12px;
  color: rgba(6,31,39,.6);
  padding-top: 4px; padding-bottom: 4px;
}
.amos-item.specialized svg { color: rgba(6,31,39,.4); }

/* Editorial tier toggle — small chip among the others */
.amos-chip.tier-toggle { background: rgba(139,109,158,.1); border-color: rgba(139,109,158,.25); color: #5e4772; }
.amos-chip.tier-toggle.on { background: #5e4772; color: #fff; border-color: #5e4772; }

/* Doc card seal row (v2) */
.amos-doc-seals { padding: 0 14px 10px; display: flex; gap: 5px; flex-wrap: wrap; }

/* Demote the tier chip on doc cards (v2) */
.amos-doc-cites .tier-meta {
  font-size: 10.5px;
  color: rgba(6,31,39,.45);
  font-weight: 400;
}

/* Reader drawer: seal row near witness header */
.reader-witness-seals {
  display: inline-flex; gap: 5px; margin-left: 8px;
  vertical-align: middle;
}

/* Small helper: responsive rail — let cells wrap on narrower screens */
@media (max-width: 1200px) {
  .wmb-v2-consumer { grid-template-columns: 1fr; }
  .amos-ref-branch { grid-template-columns: 1fr; }
  .amos-ref-branch .rb-actions { grid-column: 1; }
}


/* ──────────────────────────────────────────────────────────
   Topbar pills — language + user
   ────────────────────────────────────────────────────────── */
.amos-topbar-right { gap: 6px; align-items: center; }

/* Vertical divider between utilities and identity (language | avatar) */
.amos-topbar-right .topbar-sep {
  width: 1px;
  align-self: stretch;
  background: rgba(6,31,39,.1);
  margin: 8px 8px;
}
body.theme-scholar .amos-topbar-right .topbar-sep { background: rgba(255,255,255,.14); }

.amos-pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 10px;
  border-radius: 20px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--tan-ink);
  font: 600 12px 'Roboto';
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .12s, border-color .12s;
}
.amos-pill:hover { background: rgba(6,31,39,.06); }
.amos-pill .chev { color: rgba(6,31,39,.45); display:flex; }
.amos-pill.lang .code { text-transform: uppercase; font-weight: 700; font-size: 12px; }

.amos-pill.avatar {
  padding: 3px 8px 3px 3px;
  gap: 8px;
}
.amos-pill.avatar .av {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #2a8f9d 0%, #155e6a 100%);
  color: #fff; display:grid; place-items:center;
  font: 700 10.5px 'Roboto'; letter-spacing: .06em;
  flex-shrink: 0;
}
.amos-pill.signin {
  padding: 0 14px;
  background: var(--tan-ink);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0;
  font-size: 12.5px;
}
.amos-pill.signin:hover { background: #08262d; }

/* Theme — scholar */
body.theme-scholar .amos-pill { color: #e8e6df; }
body.theme-scholar .amos-pill:hover { background: rgba(255,255,255,.06); }
body.theme-scholar .amos-pill .chev { color: rgba(255,255,255,.5); }
body.theme-scholar .amos-pill.avatar .av { background: linear-gradient(135deg, #d4a24c 0%, #8a6828 100%); color: #1a1f26; }
body.theme-scholar .amos-pill.signin { background: #d4a24c; color: #1a1f26; }

/* ──────────────────────────────────────────────────────────
   Modal backdrop (shared)
   ────────────────────────────────────────────────────────── */
.amos-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(6,31,39,.45);
  display: grid; place-items: center;
  z-index: 1000;
  backdrop-filter: blur(2px);
  animation: wmmBackdropIn .15s ease-out;
}
@keyframes wmmBackdropIn { from { opacity: 0 } to { opacity: 1 } }

/* ──────────────────────────────────────────────────────────
   Language modal
   ────────────────────────────────────────────────────────── */
.amos-lang-modal {
  width: min(1000px, 94vw);
  max-height: 88vh;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(6,31,39,.3);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: wmmModalIn .18s cubic-bezier(.2,.8,.2,1);
}
@keyframes wmmModalIn {
  from { opacity: 0; transform: translateY(8px) scale(.99) }
  to   { opacity: 1; transform: none }
}
.wlm-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 28px 0;
}
.wlm-head h2 {
  font: 700 22px 'Roboto'; letter-spacing: -.01em;
  color: var(--tan-ink);
  margin: 0;
}
.wlm-close {
  width: 36px; height: 36px; border-radius: 6px;
  background: transparent; border: none;
  color: rgba(6,31,39,.55); cursor: pointer;
  display:grid; place-items:center;
}
.wlm-close:hover { background: rgba(6,31,39,.05); color: var(--tan-ink); }
.wlm-search {
  margin: 18px 28px 4px;
  padding: 12px 14px;
  background: #f2f4f5;
  border-radius: 8px;
  display: flex; align-items: center; gap: 10px;
  color: rgba(6,31,39,.45);
}
.wlm-search input {
  flex: 1; border: none; background: transparent; outline: none;
  font: 400 14px 'Roboto'; color: var(--tan-ink);
}
.wlm-search input::placeholder { color: rgba(6,31,39,.4); }
.wlm-body {
  padding: 12px 28px 28px;
  overflow-y: auto;
}
.wlm-sec-title {
  font: 700 15px 'Roboto';
  color: var(--tan-ink);
  margin: 18px 0 10px;
  letter-spacing: -.005em;
}
.wlm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 40px;
}
.amos-lang-card {
  position: relative;
  text-align: left;
  padding: 10px 40px 10px 6px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: background .1s;
}
.amos-lang-card:hover { background: rgba(6,31,39,.04); }
.amos-lang-card.on    { background: rgba(61,202,220,.1); }
.wl-native {
  font: 700 18px 'Roboto';
  color: var(--tan-ink);
  line-height: 1.15;
  letter-spacing: -.005em;
  margin-bottom: 2px;
}
.amos-lang-card.rtl .wl-native { direction: rtl; }
.wl-en {
  font: 400 13.5px 'Roboto';
  color: rgba(6,31,39,.75);
  line-height: 1.3;
}
.wl-country {
  font: 400 12px 'Roboto';
  color: rgba(6,31,39,.45);
  line-height: 1.3;
}
.wl-check {
  position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%);
  color: #0f5a65;
}
.wlm-empty {
  padding: 40px; text-align: center;
  color: rgba(6,31,39,.5);
  font: 400 14px 'Roboto';
}

/* ──────────────────────────────────────────────────────────
   User menu popover
   ────────────────────────────────────────────────────────── */
.amos-usermenu {
  position: absolute;
  top: calc(100% + 6px); right: 0;
  width: 260px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(6,31,39,.2), 0 0 0 1px rgba(6,31,39,.06);
  padding: 14px 0 6px;
  z-index: 200;
  animation: wmmMenuIn .12s ease-out;
}
@keyframes wmmMenuIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
.amos-usermenu-head {
  display: flex; gap: 10px; align-items: center;
  padding: 0 14px 12px;
  border-bottom: 1px solid rgba(6,31,39,.06);
}
.umh-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #2a8f9d 0%, #155e6a 100%);
  color: #fff; display:grid; place-items:center;
  font: 700 12px 'Roboto'; letter-spacing: .06em;
}
.umh-name { font: 600 13.5px 'Roboto'; color: var(--tan-ink); }
.umh-email { font: 400 11.5px 'Roboto'; color: rgba(6,31,39,.55); margin-top: 1px; }
.amos-usermenu-list { padding: 6px 6px; }
.amos-usermenu-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 8px 10px;
  background: transparent; border: none; cursor: pointer;
  text-align: left;
  border-radius: 5px;
  font: 500 13px 'Roboto'; color: var(--tan-ink);
}
.amos-usermenu-item:hover { background: rgba(6,31,39,.05); }
.amos-usermenu-item.danger { color: #b8443a; }
.amos-usermenu-item.danger:hover { background: rgba(184,68,58,.08); }
.umi-ico { color: rgba(6,31,39,.55); display:flex; }
.amos-usermenu-item.danger .umi-ico { color: #b8443a; }
.amos-usermenu-sep { height: 1px; background: rgba(6,31,39,.06); margin: 6px 0; }

/* Anchor wrapper for user pill */
.amos-userpill-wrap { position: relative; }

/* ──────────────────────────────────────────────────────────
   Sign-in modal
   ────────────────────────────────────────────────────────── */
.amos-signin-modal {
  position: relative;
  width: min(420px, 94vw);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(6,31,39,.3);
  padding: 36px 32px 28px;
  text-align: center;
  animation: wmmModalIn .18s cubic-bezier(.2,.8,.2,1);
}
.amos-signin-modal .wlm-close {
  position: absolute; top: 12px; right: 12px;
}
.si-brand-mark {
  width: 48px; height: 48px;
  background: var(--tan-ink);
  color: #fff;
  border-radius: 10px;
  display: grid; place-items: center;
  font: 700 16px 'Roboto'; letter-spacing: .08em;
  margin: 0 auto 18px;
}
.amos-signin-modal h2 {
  font: 700 20px 'Roboto'; letter-spacing: -.005em;
  color: var(--tan-ink);
  margin: 0 0 6px;
}
.si-sub {
  font: 400 13.5px 'Roboto'; color: rgba(6,31,39,.6);
  margin: 0 0 22px;
  line-height: 1.5;
}
.si-oauth {
  display: grid; gap: 8px;
  margin-bottom: 18px;
}
.si-oauth-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 11px 14px;
  border: 1px solid rgba(6,31,39,.14);
  background: #fff;
  border-radius: 8px;
  font: 500 13.5px 'Roboto'; color: var(--tan-ink);
  cursor: pointer;
}
.si-oauth-btn:hover { background: rgba(6,31,39,.03); border-color: rgba(6,31,39,.2); }
.si-oauth-ico { display: flex; align-items: center; }
.si-divider {
  position: relative; margin: 18px 0;
  text-align: center;
}
.si-divider::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%;
  height: 1px; background: rgba(6,31,39,.1);
}
.si-divider span {
  position: relative; background: #fff; padding: 0 12px;
  font: 400 11.5px 'Roboto'; color: rgba(6,31,39,.45);
  text-transform: uppercase; letter-spacing: .08em;
}
.si-label {
  display: block;
  font: 500 11.5px 'Roboto'; color: rgba(6,31,39,.6);
  text-align: left; margin-bottom: 6px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.si-email {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(6,31,39,.16);
  border-radius: 8px;
  font: 400 14px 'Roboto';
  color: var(--tan-ink);
  background: #fff;
  outline: none;
  margin-bottom: 12px;
  box-sizing: border-box;
}
.si-email:focus { border-color: var(--tan-cyan); box-shadow: 0 0 0 3px rgba(61,202,220,.2); }
.si-submit {
  width: 100%; padding: 12px;
  background: var(--tan-ink); color: #fff;
  border: none; border-radius: 8px;
  font: 600 13.5px 'Roboto';
  cursor: pointer;
}
.si-submit:hover:not(:disabled) { background: #08262d; }
.si-submit:disabled { opacity: .4; cursor: not-allowed; }
.si-foot {
  margin-top: 16px;
  font: 400 11.5px 'Roboto'; color: rgba(6,31,39,.5);
}

/* ──────────────────────────────────────────────────────────
   Book-level availability (pill on tiles / doc cards)
   ────────────────────────────────────────────────────────── */
.book-avail {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 7px;
  border-radius: 3px;
  font: 600 10px 'Figtree'; letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.book-avail.has     { background: rgba(38,130,143,.12); color: #0f5a65; }
.book-avail.partial { background: rgba(212,162,76,.15); color: #8a6828; }
.book-avail.missing { background: rgba(6,31,39,.06); color: rgba(6,31,39,.55); }
.book-avail .dot {
  width: 6px; height: 6px; border-radius: 50%;
  display: inline-block;
}
.book-avail.has .dot     { background: #26828f; }
.book-avail.partial .dot { background: #d4a24c; }
.book-avail.missing .dot { background: rgba(6,31,39,.35); }

/* Inside mosaic-book tile header */
.cov-mosaic-book .book-avail {
  font-size: 8.5px;
  padding: 1px 5px;
  text-transform: none;
  letter-spacing: 0;
}
.cov-mosaic-book .book-avail .dot { width: 5px; height: 5px; }


/* Book-level status dot in mosaic tile head */
.cov-mosaic-book .cmb-head .count { display:inline-flex; align-items:center; gap:6px; }
.book-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(6,31,39,.25);
}
.book-dot.has     { background: #26828f; }
.book-dot.partial { background: #d4a24c; }
.book-dot.missing { background: rgba(6,31,39,.25); }

.cov-mosaic-book.status-missing { opacity: .7; }
.cov-mosaic-book.status-missing:hover { opacity: 1; }
.cov-mosaic-book.status-missing .name { color: rgba(6,31,39,.55); }

.cmb-commission-book {
  margin-top: 6px;
  width: 100%;
  padding: 4px 6px;
  background: transparent;
  border: 1px dashed rgba(6,31,39,.2);
  border-radius: 3px;
  font: 500 10px 'Roboto';
  color: rgba(6,31,39,.55);
  cursor: pointer;
  letter-spacing: .02em;
  display: none;
}
.cov-mosaic-book.status-missing:hover .cmb-commission-book { display: block; }
.cmb-commission-book:hover {
  background: rgba(61,202,220,.08);
  border-color: rgba(61,202,220,.5);
  color: var(--tan-ink);
}

/* Scholar theme */
body.theme-scholar .book-dot.missing { background: rgba(255,255,255,.2); }
body.theme-scholar .cov-mosaic-book.status-missing .name { color: rgba(255,255,255,.4); }
body.theme-scholar .cmb-commission-book {
  border-color: rgba(255,255,255,.18);
  color: rgba(255,255,255,.5);
}
body.theme-scholar .cmb-commission-book:hover {
  background: rgba(212,162,76,.12);
  border-color: rgba(212,162,76,.6);
  color: #f0e6d0;
}


/* Grouped grid/list sections share rail-head styling */
.amos-grid-group, .amos-list-group {
  margin-bottom: 24px;
}
.amos-grid-group .amos-rail-head,
.amos-list-group .amos-rail-head {
  padding: 18px 24px 10px;
}
.amos-grid-group .amos-grid {
  padding: 0 24px 6px;
}
.amos-list-group .amos-list {
  margin: 0 24px;
}


/* ── Book availability badge (DocCardV2) ─────────────────── */
.amos-doc-v2-wrap { position: relative; }
.amos-avail-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 10px 'Figtree';
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 8px 5px 6px;
  border-radius: 6px;
  margin: 6px 0 0 14px;
  color: #062A30;
  white-space: nowrap;
}
.amos-avail-badge .sw {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block;
}
.amos-avail-badge.has      { background: rgba(38,130,143,.14); color: #0a3f48; }
.amos-avail-badge.has .sw  { background: #26828F; }
.amos-avail-badge.partial  { background: rgba(212,162,76,.18); color: #6b4c12; }
.amos-avail-badge.partial .sw { background: #d4a24c; }
.amos-avail-badge.missing  { background: rgba(184,68,58,.12); color: #7a2820; }
.amos-avail-badge.missing .sw { background: #b8443a; }

.amos-doc-actions {
  display: flex;
  gap: 8px;
  padding: 0 14px 12px;
  margin-top: 4px;
}
.amos-doc-actions .btn-commission-book {
  flex: 1;
  font: 500 11px 'Figtree';
  color: rgba(6,31,39,.72);
  background: transparent;
  border: 1px dashed rgba(6,31,39,.18);
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
  text-align: center;
}
.amos-doc-actions .btn-commission-book:hover {
  border-color: #3DCADC;
  color: #062A30;
  background: rgba(61,202,220,.06);
}

/* ── BookCommissionModal ─────────────────────────────────── */
.amos-modal.book-commission { max-width: 720px; }
.book-commission .bcm-scope {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(6,31,39,.06);
}
.book-commission .bcm-stat {
  padding: 10px 12px;
  background: rgba(6,31,39,.03);
  border-radius: 10px;
}
.book-commission .bcm-stat .n {
  font: 600 28px 'Roboto Slab'; color: #062A30; line-height: 1;
}
.book-commission .bcm-stat .l {
  font: 500 10px 'Figtree'; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(6,31,39,.5); margin-top: 6px;
}

.book-commission .bcm-row {
  padding: 14px 22px;
  border-bottom: 1px solid rgba(6,31,39,.06);
}
.book-commission .bcm-row-lbl {
  font: 600 10px 'Figtree'; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(6,31,39,.55);
  margin-bottom: 10px;
}
.book-commission .bcm-lang-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.book-commission .bcm-lang {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid rgba(6,31,39,.1);
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s;
  text-align: left;
}
.book-commission .bcm-lang:hover { border-color: rgba(6,31,39,.25); }
.book-commission .bcm-lang.on {
  border-color: #3DCADC;
  background: rgba(61,202,220,.08);
}
.book-commission .bcm-lang .c {
  font: 700 11px 'Figtree'; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(6,31,39,.5);
  min-width: 20px;
}
.book-commission .bcm-lang.on .c { color: #062A30; }
.book-commission .bcm-lang .n {
  font: 500 12px 'Figtree';
  color: #062A30;
  white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

.book-commission .bcm-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.book-commission .bcm-mode {
  padding: 12px 14px;
  background: #fff;
  border: 1px solid rgba(6,31,39,.1);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: all .15s;
}
.book-commission .bcm-mode:hover { border-color: rgba(6,31,39,.25); }
.book-commission .bcm-mode.on {
  border-color: #3DCADC;
  background: rgba(61,202,220,.08);
}
.book-commission .bcm-mode .t {
  font: 700 13px 'Figtree'; color: #062A30;
}
.book-commission .bcm-mode .d {
  font: 400 11px 'Figtree'; color: rgba(6,31,39,.6); margin-top: 3px;
}

.book-commission .bcm-panel {
  margin: 14px 22px 0;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(61,202,220,.06), rgba(61,202,220,.02));
  border: 1px solid rgba(61,202,220,.22);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 18px;
  align-items: center;
}
.book-commission .bcm-lead {
  display: flex; gap: 12px; align-items: center;
}
.book-commission .bcm-av {
  width: 44px; height: 44px; border-radius: 50%;
  background: #062A30; color: #fff;
  font: 700 15px 'Figtree'; letter-spacing: .04em;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.book-commission .bcm-lead .n {
  font: 600 14px 'Figtree'; color: #062A30;
}
.book-commission .bcm-lead .r {
  font: 500 11px 'Figtree'; color: rgba(6,31,39,.6); margin-top: 2px;
}
.book-commission .bcm-lead .c {
  font: 400 11px 'Figtree'; color: rgba(6,31,39,.45); margin-top: 4px;
}
.book-commission .bcm-quote {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
}
.book-commission .bcm-q-item {
  padding: 4px 0;
}
.book-commission .bcm-q-item .k {
  font: 500 9px 'Figtree'; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(6,31,39,.5);
}
.book-commission .bcm-q-item .v {
  font: 600 13px 'Figtree'; color: #062A30; margin-top: 1px;
}
.book-commission .bcm-q-item.price .v {
  font: 700 18px 'Roboto Slab'; color: #0a3f48;
}

.book-commission .avail-foot {
  padding: 14px 22px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px;
  font: 400 11px 'Figtree';
}
.book-commission .avail-foot .btn-primary {
  background: #062A30;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font: 600 13px 'Figtree';
  cursor: pointer;
  white-space: nowrap;
}
.book-commission .avail-foot .btn-primary:hover { background: #0a3f48; }

.amos-list-row .lang-pip.current {
  background: rgba(61,202,220,.18);
  border-color: rgba(61,202,220,.5);
  color: #062A30;
  font-weight: 600;
}
.amos-list-row .lang-pip.missing {
  background: rgba(184,68,58,.08);
  border: 1px dashed rgba(184,68,58,.4);
  color: #7a2820;
  font-weight: 600;
}

/* Coverage map — per-map language lens */
.cov-head { position: relative; }
.cov-lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(61,202,220,.14);
  color: #062A30;
  border: 1px solid rgba(61,202,220,.35);
  border-radius: 999px;
  padding: 3px 10px 3px 12px;
  font: 700 inherit 'Roboto Slab';
  font-size: .9em;
  cursor: pointer;
  margin-left: 4px;
  transition: background .15s, border-color .15s;
}
.cov-lang-btn:hover { background: rgba(61,202,220,.22); border-color: rgba(61,202,220,.55); }
.cov-lang-btn .cl-chev { opacity: .6; display: inline-flex; }

.cov-lang-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: #fff;
  border: 1px solid rgba(6,31,39,.1);
  border-radius: 12px;
  box-shadow: 0 18px 48px -12px rgba(6,31,39,.25), 0 2px 6px rgba(6,31,39,.06);
  padding: 14px;
  z-index: 20;
  min-width: 480px;
}
.cov-lang-menu .clm-hint {
  font: 600 10px 'Figtree';
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(6,31,39,.5);
  margin-bottom: 10px;
}
.cov-lang-menu .clm-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.cov-lang-menu .clm-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid rgba(6,31,39,.1);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: all .15s;
}
.cov-lang-menu .clm-item:hover { border-color: rgba(6,31,39,.25); }
.cov-lang-menu .clm-item.on {
  border-color: #3DCADC;
  background: rgba(61,202,220,.1);
}
.cov-lang-menu .clm-item .c {
  font: 700 11px 'Figtree'; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(6,31,39,.55); min-width: 22px;
}
.cov-lang-menu .clm-item.on .c { color: #062A30; }
.cov-lang-menu .clm-item .n {
  font: 500 12px 'Figtree';
  color: #062A30;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}


/* ── Biblica drawer — reuses .amos-drawer chrome ──────────── */
.amos-drawer.bib-mode { width: min(640px, 88vw); }

.bib-head-partner {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 11px 'Figtree'; letter-spacing: .04em;
  color: rgba(6,31,39,.65);
  padding: 4px 10px 4px 5px;
  background: rgba(24,63,103,.07);
  border: 1px solid rgba(24,63,103,.15);
  border-radius: 999px;
}
.bib-head-logo {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
}
.bib-head-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }

.bib-strip {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(24,63,103,.06);
  border: 1px solid rgba(24,63,103,.14);
  border-radius: 8px;
  margin-bottom: 18px;
}
.bib-strip-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #1a4a7a;
  box-shadow: 0 0 0 3px rgba(26,74,122,.15);
}
.bib-strip-t {
  font: 500 12px 'Figtree';
  color: rgba(6,31,39,.72);
  letter-spacing: .01em;
}

.bib-sub {
  font: 400 13.5px/1.6 'Roboto';
  color: rgba(6,31,39,.7);
  margin: 10px 0 0;
}

.bib-missing {
  margin-top: 14px;
  background: rgba(184,68,58,.06);
  border: 1px dashed rgba(184,68,58,.3);
  border-radius: 10px;
  padding: 16px 18px;
}
.bib-missing .bm-title {
  font: 600 13.5px 'Roboto';
  color: #7a2820;
  margin-bottom: 6px;
}
.bib-missing .bm-body {
  font: 400 13px/1.55 'Roboto';
  color: rgba(6,31,39,.75);
}

.bib-callout {
  background: rgba(24,63,103,.05);
  border-left: 3px solid rgba(24,63,103,.5);
  padding: 14px 16px;
  border-radius: 0 8px 8px 0;
  margin: 22px 0 0;
}
.bib-callout h6 {
  font: 600 10.5px 'Figtree';
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(6,31,39,.5);
  margin: 0 0 6px;
}
.bib-callout p {
  font: 400 13px/1.55 'Roboto';
  color: rgba(6,31,39,.72);
  margin: 0;
}

.bib-commission {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(6,31,39,.08);
}
.bib-commission-h {
  font: 600 10.5px 'Figtree';
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(6,31,39,.5);
  margin: 0 0 10px;
}
.bib-cta {
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  padding: 12px 14px 12px 16px;
  background: #fff;
  border: 1px solid rgba(6,31,39,.1);
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  margin-bottom: 8px;
  transition: border-color .15s, background .15s, transform .1s;
}
.bib-cta:hover {
  border-color: var(--tan-cyan, #3DCADC);
  background: rgba(61,202,220,.05);
}
.bib-cta:active { transform: translateY(1px); }
.bib-cta.primary {
  background: #062A30;
  border-color: #062A30;
  color: #fff;
}
.bib-cta.primary:hover {
  background: #0a3f48;
  border-color: var(--tan-cyan, #3DCADC);
}
.bib-cta.primary .cta-s { color: rgba(255,255,255,.7); }
.bib-cta.primary .cta-ar { color: var(--tan-cyan, #3DCADC); }

.bib-cta .cta-body { flex: 1; min-width: 0; }
.bib-cta .cta-t {
  font: 600 14px 'Roboto';
  color: inherit;
  letter-spacing: -.002em;
}
.bib-cta .cta-s {
  font: 400 12.5px 'Roboto';
  color: rgba(6,31,39,.55);
  margin-top: 2px;
}
.bib-cta .cta-ar {
  font: 400 20px 'Roboto';
  color: rgba(6,31,39,.35);
  flex-shrink: 0;
}


/* ══════════════════════════════════════════════════════════
   FOUR-PRODUCT DRAWER SURFACES
   Product switcher · review overlay · analytical spans ·
   annotated layer toggles · bottom action row
   ══════════════════════════════════════════════════════════ */

/* Product switcher rail — sits at the top of the Read tab */
.prod-rail {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: rgba(6,31,39,.03);
  border: 1px solid rgba(6,31,39,.08);
  border-radius: 10px;
  margin: 0 0 18px;
}
.prod-rail-label {
  font: 600 10px 'Figtree'; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(6,31,39,.5);
}
.prod-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.prod-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 12px 7px 7px;
  background: #fff;
  border: 1px solid rgba(6,31,39,.12);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  transition: border-color .12s, background .12s, transform .08s;
}
.prod-chip:hover { border-color: var(--tan-cyan, #3DCADC); }
.prod-chip.on {
  border-color: var(--tan-cyan-600, #26828f);
  background: rgba(61,202,220,.08);
  box-shadow: 0 0 0 3px rgba(61,202,220,.14);
}
.prod-chip.is-unavailable,
.prod-chip[disabled] {
  opacity: .5;
  cursor: not-allowed;
  background: repeating-linear-gradient(
    -45deg,
    rgba(6,31,39,.02) 0 6px,
    transparent 6px 12px
  ), #fff;
  border-style: dashed;
}
.prod-chip.is-unavailable:hover { border-color: rgba(6,31,39,.25); }
.prod-chip.is-unavailable .prod-chip-letter {
  background: rgba(6,31,39,.35);
}
.prod-chip.is-unavailable .prod-chip-sub {
  color: rgba(6,31,39,.45);
  font-style: italic;
}

.review-toggle.is-unavailable,
.review-toggle[disabled] {
  opacity: .45;
  cursor: not-allowed;
}
.prod-chip-letter {
  width: 24px; height: 24px; border-radius: 5px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--tan-cyan-600, #26828f);
  color: #fff;
  font: 700 12.5px 'Roboto Slab', Georgia, serif;
  letter-spacing: 0;
}
.prod-chip-body { display: flex; flex-direction: column; line-height: 1.15; }
.prod-chip-name { font: 600 13px 'Roboto'; color: #062A30; }
.prod-chip-sub  { font: 400 11px 'Roboto'; color: rgba(6,31,39,.55); }

/* Linguist Reviewed toggle — sits on the right of the product rail */
.review-toggle {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 12px 7px 8px;
  background: #fff;
  border: 1px dashed rgba(184,134,46,.55);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  transition: border-color .12s, background .12s;
}
.review-toggle:hover { border-color: #b8862e; }
.review-toggle.on {
  border-style: solid;
  border-color: #b8862e;
  background: rgba(184,134,46,.08);
  box-shadow: 0 0 0 3px rgba(184,134,46,.14);
}
.review-toggle .rt-box {
  width: 18px; height: 18px;
  border: 1px solid rgba(184,134,46,.6);
  border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff;
  color: #b8862e;
  font: 700 11px 'Roboto';
}
.review-toggle.on .rt-box { background: #b8862e; color: #fff; border-color: #b8862e; }
.review-toggle .rt-label {
  font: 600 12.5px 'Roboto'; color: #7a5a18; letter-spacing: -.003em;
  display: inline-flex; align-items: center; gap: 6px;
}
.review-toggle .rt-letter {
  display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 17px; border-radius: 4px;
  background: rgba(184,134,46,.18);
  color: #7a5a18;
  font: 700 10.5px 'Roboto Slab', Georgia, serif;
}

/* Per-product header strip (above the passage) */
.prod-header {
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px;
  padding: 10px 0 12px;
  border-bottom: 1px solid rgba(6,31,39,.08);
  margin-bottom: 14px;
}
.prod-header-left { display: flex; align-items: center; gap: 10px; }
.prod-header-letter {
  width: 30px; height: 30px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--tan-cyan-600, #26828f);
  color: #fff;
  font: 700 15px 'Roboto Slab', Georgia, serif;
}
.prod-header-name {
  font: 600 14px 'Roboto'; color: #062A30;
  letter-spacing: -.003em; line-height: 1;
}
.prod-header-lang {
  font: 500 11.5px 'Roboto'; color: rgba(6,31,39,.55);
  margin-top: 3px;
}
.prod-header-meta {
  font: 400 11.5px 'Roboto Mono', monospace;
  color: rgba(6,31,39,.48);
  letter-spacing: -.002em;
  text-align: right; max-width: 60%;
}

/* The compact view-switcher shown inside Reader's */
.reader-view-sw.compact { margin: 0 0 12px; }

/* Reader's passage — slightly warmer body than the rest */
.reader-passage.readers-passage .verse { line-height: 1.65; }

/* Analytical passage — hot lemmata + bracketed glosses */
.reader-passage.analytical-passage .verse { line-height: 1.7; }
.reader-passage.analytical-passage .w.hot {
  font-weight: 600;
  color: #7a2820;
  border-bottom: 1.5px dotted rgba(122,40,32,.5);
  cursor: pointer;
  padding: 0 1px;
}
.reader-passage.analytical-passage .w.hot:hover { background: rgba(122,40,32,.08); }
.reader-passage.analytical-passage .gloss-bracket {
  display: inline;
  font: 400 12px 'Roboto';
  color: rgba(6,31,39,.48);
  letter-spacing: -.002em;
  margin: 0 2px;
}

/* Observacions / Observaciones block (structural notes or reviewer notes) */
.obs-block {
  margin-top: 20px;
  padding: 14px 16px 14px 18px;
  background: rgba(24,63,103,.04);
  border-left: 3px solid rgba(24,63,103,.4);
  border-radius: 0 8px 8px 0;
}
.obs-block h6 {
  font: 600 10.5px 'Figtree'; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(6,31,39,.5);
  margin: 0 0 8px;
}
.obs-block p {
  font: 400 13.5px/1.6 'Roboto'; color: rgba(6,31,39,.78);
  margin: 0 0 6px;
}
.obs-block p:last-child { margin-bottom: 0; }

/* Reader's notes as collapsible details */
.prod-notes {
  margin-top: 16px;
  padding: 10px 14px;
  border: 1px dashed rgba(6,31,39,.15);
  border-radius: 8px;
}
.prod-notes summary {
  font: 600 12px 'Figtree'; letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(6,31,39,.6);
  cursor: pointer;
  padding: 2px 0;
}
.prod-notes p {
  font: 400 13px/1.55 'Roboto'; color: rgba(6,31,39,.7);
  margin: 10px 0 0;
}

/* Review header strip (shown when Linguist Reviewed is on) */
.review-strip {
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(184,134,46,.1), rgba(184,134,46,.04));
  border: 1px solid rgba(184,134,46,.35);
  border-radius: 8px;
  margin: 0 0 14px;
}
.review-strip .rs-top {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font: 500 13px 'Roboto'; color: #5e4813;
}
.review-strip .rs-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: #b8862e; color: #fff; font: 700 11px 'Roboto';
  margin-right: 2px;
}
.review-strip .rs-label { font-weight: 700; }
.review-strip .rs-dot { color: rgba(184,134,46,.5); }
.review-strip .rs-name { font-weight: 600; }
.review-strip .rs-aff { font-style: italic; color: #7a5a18; }
.review-strip .rs-date { color: rgba(94,72,19,.75); }
.review-strip .rs-scope {
  margin-top: 4px;
  font: 400 12.5px 'Roboto'; color: rgba(94,72,19,.75);
}

/* Annotated · layer toggle strip */
.layer-strip {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin: 20px 0 14px;
  padding: 10px;
  background: rgba(6,31,39,.03);
  border: 1px solid rgba(6,31,39,.08);
  border-radius: 10px;
}
.layer-chip {
  flex: 1 1 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid rgba(6,31,39,.12);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  transition: border-color .12s, background .12s;
}
.layer-chip:hover { border-color: var(--tan-cyan, #3DCADC); }
.layer-chip.on {
  border-color: var(--tan-cyan-600, #26828f);
  background: rgba(61,202,220,.06);
}
.layer-chip .lc-tick {
  font-size: 10px; line-height: 1;
  color: rgba(6,31,39,.35);
}
.layer-chip.on .lc-tick { color: var(--tan-cyan-600, #26828f); }
.layer-chip .lc-title {
  font: 600 13px 'Roboto'; color: #062A30;
  letter-spacing: -.003em;
}
.layer-chip .lc-count {
  font: 600 11px 'Roboto Mono', monospace;
  color: rgba(6,31,39,.5);
  background: rgba(6,31,39,.06);
  padding: 1px 6px; border-radius: 999px;
}
.layer-chip.on .lc-count { background: rgba(61,202,220,.22); color: #155e68; }

/* Layer content blocks (one per active layer) */
.layers-body { display: flex; flex-direction: column; gap: 14px; }
.layer-block {
  padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(6,31,39,.08);
  border-radius: 10px;
  border-left-width: 3px;
}
.layer-block.layer-lex  { border-left-color: #1a4a7a; }
.layer-block.layer-syn  { border-left-color: #5a6fa8; }
.layer-block.layer-rhet { border-left-color: #b8862e; }
.layer-block.layer-rec  { border-left-color: #7a2820; }
.layer-block-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.lb-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor; opacity: .7;
}
.layer-block.layer-lex  .lb-dot { color: #1a4a7a; }
.layer-block.layer-syn  .lb-dot { color: #5a6fa8; }
.layer-block.layer-rhet .lb-dot { color: #b8862e; }
.layer-block.layer-rec  .lb-dot { color: #7a2820; }
.lb-title {
  font: 600 10.5px 'Figtree'; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(6,31,39,.7);
}
.lb-sub {
  margin-left: auto;
  font: 500 11px 'Roboto Mono', monospace;
  color: rgba(6,31,39,.45);
}
.layer-note {
  padding: 10px 0;
  border-top: 1px dashed rgba(6,31,39,.08);
}
.layer-note:first-of-type { border-top: 0; padding-top: 0; }
.ln-anchor {
  font: 600 12.5px 'Roboto'; color: var(--tan-cyan-600, #26828f);
  letter-spacing: -.003em;
  margin-bottom: 3px;
}
.ln-body {
  font: 400 13px/1.55 'Roboto'; color: rgba(6,31,39,.78);
}

/* Action row — bottom of every artifact view */
.action-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(6,31,39,.08);
}
.action-row .ar-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: #062A30;
  color: #fff;
  border: 1px solid #062A30;
  border-radius: 8px;
  font: 600 13px 'Roboto';
  cursor: pointer;
  letter-spacing: -.003em;
  transition: background .12s, transform .08s;
}
.action-row .ar-primary:hover { background: #0a3f48; }
.action-row .ar-primary:active { transform: translateY(1px); }

.action-row .ar-secondary { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.action-row .ar-sec-btn {
  padding: 9px 12px;
  background: #fff;
  color: #062A30;
  border: 1px solid rgba(6,31,39,.18);
  border-radius: 8px;
  font: 500 12.5px 'Roboto';
  cursor: pointer;
  letter-spacing: -.002em;
  transition: border-color .12s, background .12s;
}
.action-row .ar-sec-btn:hover {
  border-color: var(--tan-cyan, #3DCADC);
  background: rgba(61,202,220,.06);
}

.action-row .ar-utils { display: flex; gap: 6px; margin-left: auto; }
.action-row .ar-util {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  color: rgba(6,31,39,.55);
  border: 1px solid rgba(6,31,39,.14);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .12s, color .12s;
}
.action-row .ar-util:hover {
  border-color: rgba(6,31,39,.35);
  color: #062A30;
}

/* Linguist Reviewed card — secondary CTA subordinate link */
.wmb-v2-partner .pa-cta {
  display: flex; flex-direction: column; gap: 6px; align-items: flex-end;
}
.wmb-v2-partner .pa-cta-sub {
  font: 400 11px 'Roboto'; letter-spacing: -.002em;
  color: rgba(6,31,39,.45);
  text-decoration: none;
}
.wmb-v2-partner .pa-cta-sub:hover { color: rgba(138,93,18,.8); }

/* ── Responsive: stack the product rail on narrow screens */
@media (max-width: 900px) {
  .prod-rail { grid-template-columns: 1fr; }
  .action-row .ar-utils { margin-left: 0; }
}

/* ── Sidebar collapse (hide/show) ───────────────────────── */
.amos-sidebar { position: sticky; transition: width .26s cubic-bezier(.6,.05,.25,1),
                                           padding .26s cubic-bezier(.6,.05,.25,1),
                                           border-right-width .26s linear; }

/* Sidebar-toggle button lives in the topbar's far left — always visible */
.amos-sidebar-toggle {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: transparent;
  color: rgba(6,31,39,.55);
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  flex: none;
  margin-right: 4px;
  transition: background .14s, color .14s, border-color .14s;
}
.amos-sidebar-toggle:hover {
  background: rgba(6,31,39,.05);
  color: var(--tan-ink);
  border-color: rgba(6,31,39,.12);
}
body.theme-scholar .amos-sidebar-toggle { color: rgba(232,230,223,.65); }
body.theme-scholar .amos-sidebar-toggle:hover { background: rgba(255,255,255,.06); color: #e8e6df; }

/* Collapsed state: sidebar goes to 0 so the main area reclaims full width */
body.sidebar-collapsed .amos-sidebar {
  width: 0 !important;
  padding: 0 !important;
  border-right-width: 0 !important;
  overflow: hidden;
}
body.sidebar-collapsed .amos-sidebar > * { visibility: hidden; pointer-events: none; }

/* Push the topbar's first element (breadcrumb) right so the floating
   reopen pill doesn't sit on top of it. White background of the topbar
   stays flush against the left edge. */
body.sidebar-collapsed .amos-topbar { padding-left: 64px; }
