/* didache-reader.css — styling for the long-form Didache reader
   Modern minimal typography: comfortable measure, generous leading, functional.
   Matches the existing wmm shell while introducing a distinct reading feel. */

/* ── Topbar ────────────────────────────────────────── */
.ddc-topbar .amos-crumbs .crumb-link {
  cursor: pointer;
  color: rgba(6,31,39,.62);
}
.ddc-topbar .amos-crumbs .crumb-link:hover {
  color: #061F27;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ddc-api-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px 5px 8px;
  background: #f6f3eb;
  border: 1px solid rgba(184, 68, 58, .2);
  border-radius: 999px;
  font: 500 11px 'JetBrains Mono', Menlo, monospace;
  color: #6a584a;
  letter-spacing: .02em;
}
.ddc-api-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #b8443a;
  box-shadow: 0 0 0 3px rgba(184, 68, 58, .15);
}
.ddc-api-badge .endpoint {
  color: rgba(6, 31, 39, .5);
  font-size: 10.5px;
}

/* ── Hero ──────────────────────────────────────────── */
.ddc-hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 48px 28px;
}
.ddc-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 10.5px Figtree, system-ui, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(6, 31, 39, .58);
  margin-bottom: 18px;
}
.ddc-hero-tag .num {
  display: inline-flex;
  align-items: center; justify-content: center;
  min-width: 22px; height: 22px;
  padding: 0 6px;
  background: #b8443a;
  color: #fff;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: .02em;
}
.ddc-hero-tag .dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(6, 31, 39, .3);
}

.ddc-hero-title {
  font: 300 68px/1.02 'Cormorant Garamond', 'Spectral', 'Source Serif Pro', Georgia, serif;
  letter-spacing: -.015em;
  color: #061F27;
  margin: 0 0 6px;
}
.ddc-hero-sub {
  font: 400 22px/1.3 'Spectral', 'Source Serif Pro', Georgia, serif;
  font-style: italic;
  color: rgba(6, 31, 39, .6);
  margin-bottom: 26px;
}
.ddc-hero-lede {
  font: 400 17px/1.62 'Spectral', 'Source Serif Pro', Georgia, serif;
  color: rgba(6, 31, 39, .82);
  max-width: 62ch;
  margin: 0 0 28px;
  text-wrap: pretty;
}

.ddc-hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(6, 31, 39, .08);
}
.ddc-metastat .lbl {
  display: block;
  font: 600 9.5px Figtree, system-ui, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(6, 31, 39, .5);
  margin-bottom: 5px;
}
.ddc-metastat .val {
  font: 500 13px Figtree, system-ui, sans-serif;
  color: #061F27;
  line-height: 1.4;
}

/* ── Chapter nav (sticky) ──────────────────────────── */
.ddc-chapnav {
  position: sticky;
  top: 56px;
  z-index: 40;
  background: rgba(253, 251, 245, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(6, 31, 39, .06);
  border-bottom: 1px solid rgba(6, 31, 39, .08);
  margin-top: 8px;
}
.ddc-chapnav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 11px 36px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.ddc-chapnav-label {
  font: 600 10.5px Figtree, system-ui, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(6, 31, 39, .48);
}
.ddc-chapnav-list {
  display: flex;
  gap: 3px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.ddc-chapnav-list::-webkit-scrollbar { display: none; }

.ddc-chipnum {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font: 500 13px Figtree, system-ui, sans-serif;
  color: rgba(6, 31, 39, .55);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.ddc-chipnum:hover {
  background: rgba(6, 31, 39, .06);
  color: #061F27;
}
.ddc-chipnum.active {
  background: #061F27;
  color: #FDFBF5;
  font-weight: 600;
}

.ddc-chapnav-tools {
  display: flex;
  gap: 6px;
  border-left: 1px solid rgba(6, 31, 39, .1);
  padding-left: 14px;
}

/* Language toggle — sits in chapnav tools when doc has multiple body-languages */
.ddc-langtoggle {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 2px;
  background: rgba(6, 31, 39, .045);
  border: 1px solid rgba(6, 31, 39, .08);
  border-radius: 8px;
  gap: 0;
}
.ddc-langtoggle-btn {
  height: 22px;
  padding: 0 11px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font: 500 12px Figtree, system-ui, sans-serif;
  color: rgba(6, 31, 39, .62);
  cursor: pointer;
  letter-spacing: .01em;
  transition: background 120ms ease, color 120ms ease;
}
.ddc-langtoggle-btn:hover { color: rgba(6, 31, 39, .92); }
.ddc-langtoggle-btn.active {
  background: #fefcf6;
  color: #061f27;
  box-shadow: 0 1px 2px rgba(6, 31, 39, .08), 0 0 0 1px rgba(6, 31, 39, .08);
}
.ddc-tool {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(6, 31, 39, .12);
  background: transparent;
  border-radius: 6px;
  font: 500 12px Figtree, system-ui, sans-serif;
  color: rgba(6, 31, 39, .72);
  cursor: pointer;
  transition: all .15s;
}
.ddc-tool:hover {
  background: rgba(6, 31, 39, .04);
  color: #061F27;
}
.ddc-tool.active {
  background: #061F27;
  border-color: #061F27;
  color: #FDFBF5;
}
.ddc-tool-ico {
  font: 500 11.5px 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
}
.ddc-tool.active .ddc-tool-ico {
  color: #FDFBF5;
}

/* ── Layout grid ───────────────────────────────────── */
.ddc-layout {
  display: grid;
  /* Default (commentary) view: prose + 220px marginalia fit in the same
     total center width as the greek-pinned / reception-open views, so the
     reading column stays comfortably wide regardless of which side panel
     is active. */
  grid-template-columns: 1fr minmax(0, 1020px) 1fr;
  gap: 0;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 24px 80px;
  position: relative;
}
.ddc-layout.greek-pinned {
  grid-template-columns: 1fr minmax(0, 760px) 360px;
}
.ddc-layout.reception-open {
  grid-template-columns: 300px minmax(0, 760px) 1fr;
}
.ddc-layout.greek-pinned.reception-open {
  grid-template-columns: 300px minmax(0, 720px) 340px;
}

.ddc-column {
  grid-column: 2;
  padding: 40px 32px 0;
}

/* ── Chapter block ─────────────────────────────────── */
.ddc-chapter {
  padding: 64px 0 48px;
  border-bottom: 1px solid rgba(6, 31, 39, .06);
  scroll-margin-top: 160px;
}
.ddc-chapter:first-child { padding-top: 40px; }

.ddc-ch-head {
  margin-bottom: 36px;
}
.ddc-ch-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 10.5px Figtree, system-ui, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(6, 31, 39, .55);
  margin-bottom: 16px;
}
.ddc-ch-eyebrow .ddc-ch-section {
  color: #b8443a;
}
.ddc-ch-eyebrow .sep {
  opacity: .5;
}
.ddc-ch-title {
  font: 400 42px/1.1 'Cormorant Garamond', 'Spectral', Georgia, serif;
  letter-spacing: -.01em;
  color: #061F27;
  margin: 0 0 14px;
}
.ddc-ch-summary {
  font: 400 16px/1.55 'Spectral', Georgia, serif;
  font-style: italic;
  color: rgba(6, 31, 39, .66);
  max-width: 56ch;
  margin: 0 0 20px;
  text-wrap: pretty;
}
.ddc-ch-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.ddc-ch-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid #061F27;
  background: #061F27;
  color: #FDFBF5;
  border-radius: 6px;
  font: 500 12.5px Figtree, system-ui, sans-serif;
  cursor: pointer;
  transition: all .15s;
}
.ddc-ch-action:hover {
  background: #b8443a;
  border-color: #b8443a;
}
.ddc-ch-action.ghost {
  background: transparent;
  color: rgba(6, 31, 39, .72);
  border-color: rgba(6, 31, 39, .18);
}
.ddc-ch-action.ghost:hover {
  background: rgba(6, 31, 39, .04);
  border-color: rgba(6, 31, 39, .3);
  color: #061F27;
}

/* ── Body: prose + marginalia ──────────────────────── */
.ddc-ch-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 40px;
}
.ddc-layout.greek-pinned .ddc-ch-body,
.ddc-layout.reception-open .ddc-ch-body {
  grid-template-columns: minmax(0, 1fr);
}
.ddc-layout.greek-pinned .ddc-marginalia,
.ddc-layout.reception-open .ddc-marginalia {
  display: none;
}

/* Prose */
.ddc-prose {
  font: 400 19px/1.72 'Spectral', 'Source Serif Pro', Georgia, serif;
  color: #061F27;
}
.ddc-verse {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  padding: 6px 0;
  margin-bottom: 8px;
  border-radius: 6px;
  position: relative;
  transition: background .25s;
}
.ddc-verse.highlighted {
  background: rgba(212, 162, 76, .14);
  padding-left: 8px;
  padding-right: 8px;
  margin-left: -8px;
  margin-right: -8px;
}
.ddc-verse.flash {
  background: rgba(184, 68, 58, .15);
}
.ddc-verse-num {
  grid-column: 1;
  width: 28px;
  height: 24px;
  padding: 0;
  margin-top: 7px;
  border: 1px solid transparent;
  background: transparent;
  font: 500 11px Figtree, system-ui, sans-serif;
  color: rgba(6, 31, 39, .45);
  cursor: pointer;
  border-radius: 4px;
  transition: all .15s;
  justify-self: end;
  text-align: center;
}
.ddc-verse-num:hover {
  background: rgba(212, 162, 76, .22);
  color: #8a5e1a;
  border-color: rgba(212, 162, 76, .3);
}
.ddc-verse.highlighted .ddc-verse-num {
  background: #d4a24c;
  color: #fff;
  border-color: #d4a24c;
}
.ddc-verse-body {
  grid-column: 2;
  position: relative;
}
.ddc-verse-text {
  text-wrap: pretty;
}

/* Ge'ez / Ethiopic prose — tighter rhythm & safer wrapping */
.ddc-prose[lang="gez"] .ddc-verse {
  padding: 2px 0;
  margin-bottom: 2px;
}
.ddc-prose[lang="gez"] .ddc-verse-text {
  text-wrap: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}
.ddc-fn-ref {
  font: 500 10px Figtree, system-ui, sans-serif;
  color: #b8443a;
  cursor: pointer;
  vertical-align: super;
  margin-left: 2px;
  padding: 0 1px;
  border-radius: 2px;
  transition: background .12s;
}
.ddc-fn-ref:hover {
  background: rgba(184, 68, 58, .1);
}

.ddc-verse-study {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
  padding: 2px 8px;
  border: 1px dashed rgba(6, 31, 39, .2);
  background: transparent;
  border-radius: 4px;
  font: 500 10.5px Figtree, system-ui, sans-serif;
  color: rgba(6, 31, 39, .52);
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s, background .15s, color .15s, border-color .15s;
  vertical-align: baseline;
  white-space: nowrap;
}
.ddc-verse:hover .ddc-verse-study {
  opacity: 1;
}
.ddc-verse-study:hover {
  background: #b8443a;
  border-color: #b8443a;
  border-style: solid;
  color: #fff;
}

/* Marginalia */
.ddc-marginalia {
  padding-top: 4px;
  border-left: 1px solid rgba(6, 31, 39, .08);
  padding-left: 24px;
}
.ddc-margin-head {
  font: 600 9.5px Figtree, system-ui, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(6, 31, 39, .5);
  margin-bottom: 14px;
}
.ddc-margin-item {
  margin-bottom: 22px;
}
.ddc-margin-anchor {
  display: inline-block;
  font: 500 10.5px Figtree, system-ui, sans-serif;
  color: #b8443a;
  text-decoration: none;
  padding: 1px 6px;
  border: 1px solid rgba(184, 68, 58, .25);
  border-radius: 3px;
  margin-bottom: 6px;
  cursor: pointer;
}
.ddc-margin-anchor:hover {
  background: #b8443a;
  color: #fff;
}
.ddc-margin-text {
  font: 400 12.5px/1.55 'Spectral', Georgia, serif;
  color: rgba(6, 31, 39, .72);
  text-wrap: pretty;
}

/* ── Greek panel ───────────────────────────────────── */
.ddc-greek {
  grid-column: 3;
  position: sticky;
  top: 128px;
  align-self: start;
  margin-top: 40px;
  margin-left: 24px;
  height: calc(100vh - 148px);
  display: flex;
  flex-direction: column;
  background: #f7f2e6;
  border: 1px solid rgba(6, 31, 39, .12);
  border-radius: 8px;
  overflow: hidden;
}
.ddc-greek-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 12px;
  border-bottom: 1px solid rgba(6, 31, 39, .08);
}
.ddc-greek-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ddc-greek-label {
  font: 500 18px 'Spectral', 'GFS Neohellenic', serif;
  color: #061F27;
}
.ddc-greek-sub {
  font: 500 10px Figtree, system-ui, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(6, 31, 39, .55);
}
.ddc-greek-close {
  width: 24px; height: 24px;
  border: none;
  background: transparent;
  font-size: 18px;
  color: rgba(6, 31, 39, .5);
  cursor: pointer;
  border-radius: 4px;
}
.ddc-greek-close:hover {
  background: rgba(6, 31, 39, .07);
  color: #061F27;
}
.ddc-greek-api {
  padding: 8px 18px;
  background: rgba(6, 31, 39, .03);
  border-bottom: 1px solid rgba(6, 31, 39, .06);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ddc-greek-api code {
  font: 500 10px 'JetBrains Mono', Menlo, monospace;
  color: rgba(6, 31, 39, .55);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ddc-greek-api .cache-badge {
  padding: 1px 6px;
  background: rgba(138, 123, 88, .18);
  color: #8a7b58;
  border-radius: 3px;
  font: 600 9px Figtree, system-ui, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ddc-greek-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px 24px;
}
.ddc-greek-verse {
  display: flex;
  gap: 10px;
  margin: 0 0 12px;
  font: 400 15px/1.72 'Spectral', 'GFS Neohellenic', 'Source Serif Pro', serif;
  color: #2a1e12;
}
.ddc-greek-vn {
  flex-shrink: 0;
  width: 22px;
  padding-top: 3px;
  font: 500 10.5px Figtree, system-ui, sans-serif;
  color: rgba(42, 30, 18, .45);
  text-align: right;
}
.ddc-greek-text { text-wrap: pretty; }
.ddc-greek-shimmer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}
.ddc-greek-shimmer .sh {
  height: 14px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(6,31,39,.04), rgba(6,31,39,.08), rgba(6,31,39,.04));
  background-size: 200% 100%;
  animation: ddcShimmer 1.4s ease-in-out infinite;
}
.ddc-greek-shimmer .sh-1 { width: 94%; }
.ddc-greek-shimmer .sh-2 { width: 86%; }
.ddc-greek-shimmer .sh-3 { width: 72%; }
@keyframes ddcShimmer {
  0%, 100% { background-position: 200% 0; }
  50% { background-position: -100% 0; }
}
.ddc-greek-notice {
  padding: 16px;
  background: rgba(184, 68, 58, .06);
  border: 1px solid rgba(184, 68, 58, .18);
  border-radius: 6px;
  font: 400 12px/1.5 Figtree, system-ui, sans-serif;
  color: rgba(6, 31, 39, .7);
}

/* ── Reception sidebar ─────────────────────────────── */
.ddc-reception {
  grid-column: 1;
  position: sticky;
  top: 128px;
  align-self: start;
  margin-top: 40px;
  margin-right: 24px;
  height: calc(100vh - 148px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(6, 31, 39, .1);
  border-radius: 8px;
  overflow: hidden;
}
.ddc-reception-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 4px;
  font: 600 11px Figtree, system-ui, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #061F27;
}
.ddc-reception-close {
  width: 24px; height: 24px;
  border: none;
  background: transparent;
  font-size: 18px;
  color: rgba(6, 31, 39, .5);
  cursor: pointer;
  border-radius: 4px;
}
.ddc-reception-close:hover { background: rgba(6,31,39,.07); color: #061F27; }
.ddc-reception-sub {
  padding: 0 18px 14px;
  font: 400 12px/1.4 Figtree, system-ui, sans-serif;
  color: rgba(6, 31, 39, .55);
  border-bottom: 1px solid rgba(6, 31, 39, .06);
}
.ddc-reception > .ddc-recept-item,
.ddc-reception > .ddc-recept-empty {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(6, 31, 39, .05);
}
.ddc-recept-item .era {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font: 600 9.5px Figtree, system-ui, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.ddc-recept-item .era-patristic { background: rgba(184, 68, 58, .12); color: #b8443a; }
.ddc-recept-item .era-medieval  { background: rgba(138, 123, 88, .2);  color: #6a5a3e; }
.ddc-recept-item .era-modern    { background: rgba(38, 130, 143, .15); color: #1e6b76; }
.ddc-recept-item .src {
  font: 500 13px Figtree, system-ui, sans-serif;
  color: #061F27;
  margin-bottom: 4px;
}
.ddc-recept-item .note {
  font: 400 12.5px/1.5 'Spectral', Georgia, serif;
  color: rgba(6, 31, 39, .7);
  text-wrap: pretty;
}
.ddc-recept-empty {
  font: 400 12.5px/1.5 'Spectral', Georgia, serif;
  color: rgba(6, 31, 39, .55);
  font-style: italic;
}
.ddc-reception-foot {
  padding: 10px 18px;
  background: rgba(6, 31, 39, .03);
  font: 500 10px 'JetBrains Mono', Menlo, monospace;
  color: rgba(6, 31, 39, .5);
}
.ddc-reception-foot code {
  font-family: inherit;
}

/* ── Footnote card ─────────────────────────────────── */
.ddc-fn-card {
  background: #061F27;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 14px 42px rgba(6, 31, 39, .28);
  overflow: hidden;
  pointer-events: none;
}
.ddc-fn-card-head {
  padding: 9px 14px;
  background: rgba(255, 255, 255, .06);
  font: 600 9.5px Figtree, system-ui, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}
.ddc-fn-card-body {
  padding: 12px 14px 14px;
  font: 400 12.5px/1.55 'Spectral', Georgia, serif;
  color: rgba(255, 255, 255, .92);
  text-wrap: pretty;
}

/* ── End ornament ──────────────────────────────────── */
.ddc-end {
  padding: 80px 0 60px;
  text-align: center;
}
.ddc-end-ornament {
  font: 300 40px 'Cormorant Garamond', Georgia, serif;
  color: rgba(184, 68, 58, .6);
  margin-bottom: 16px;
}
.ddc-end-text {
  font: 400 13px/1.5 Figtree, system-ui, sans-serif;
  color: rgba(6, 31, 39, .55);
  margin-bottom: 22px;
}
.ddc-end-back {
  padding: 9px 18px;
  border: 1px solid rgba(6, 31, 39, .18);
  background: transparent;
  border-radius: 6px;
  font: 500 12.5px Figtree, system-ui, sans-serif;
  color: #061F27;
  cursor: pointer;
}
.ddc-end-back:hover {
  background: #061F27;
  color: #FDFBF5;
}

/* ── Audio modal ───────────────────────────────────── */
.ddc-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(6, 31, 39, .48);
  backdrop-filter: blur(3px);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.ddc-modal {
  background: #FDFBF5;
  border-radius: 10px;
  width: 540px;
  max-width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(6, 31, 39, .4);
}
.ddc-modal-head {
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(6, 31, 39, .08);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.ddc-modal-eyebrow {
  font: 600 10.5px Figtree, system-ui, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #b8443a;
  margin-bottom: 6px;
}
.ddc-modal-title {
  font: 400 26px/1.15 'Cormorant Garamond', Georgia, serif;
  color: #061F27;
  margin: 0;
}
.ddc-modal-close {
  width: 30px; height: 30px;
  border: none;
  background: transparent;
  font-size: 22px;
  color: rgba(6, 31, 39, .5);
  cursor: pointer;
  border-radius: 5px;
}
.ddc-modal-close:hover { background: rgba(6,31,39,.08); color: #061F27; }
.ddc-modal-body {
  padding: 20px 24px 24px;
}
.ddc-modal-lede {
  font: 400 13.5px/1.55 Figtree, system-ui, sans-serif;
  color: rgba(6, 31, 39, .72);
  margin: 0 0 20px;
  text-wrap: pretty;
}
.ddc-field-group {
  margin-bottom: 18px;
}
.ddc-field-label {
  font: 600 10.5px Figtree, system-ui, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(6, 31, 39, .55);
  margin-bottom: 10px;
}
.ddc-voice-list {
  display: grid;
  gap: 8px;
}
.ddc-voice-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 14px;
  padding: 12px 14px;
  border: 1px solid rgba(6, 31, 39, .12);
  border-radius: 7px;
  cursor: pointer;
  transition: all .15s;
  position: relative;
}
.ddc-voice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ddc-voice-card:hover {
  border-color: rgba(6, 31, 39, .25);
  background: rgba(6, 31, 39, .02);
}
.ddc-voice-card.selected {
  border-color: #b8443a;
  background: rgba(184, 68, 58, .05);
  box-shadow: 0 0 0 1px #b8443a inset;
}
.ddc-voice-name {
  grid-column: 1;
  font: 500 13.5px Figtree, system-ui, sans-serif;
  color: #061F27;
}
.ddc-voice-kind {
  grid-column: 1;
  font: 400 11.5px Figtree, system-ui, sans-serif;
  color: rgba(6, 31, 39, .55);
}
.ddc-voice-sample {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  padding: 6px 10px;
  border: 1px solid rgba(6, 31, 39, .14);
  background: #fff;
  border-radius: 5px;
  font: 500 11px Figtree, system-ui, sans-serif;
  color: rgba(6, 31, 39, .72);
  cursor: pointer;
}
.ddc-voice-sample:hover {
  background: #061F27;
  color: #FDFBF5;
  border-color: #061F27;
}
.ddc-seg {
  display: inline-flex;
  border: 1px solid rgba(6, 31, 39, .14);
  border-radius: 6px;
  overflow: hidden;
}
.ddc-seg-btn {
  padding: 7px 16px;
  border: none;
  background: transparent;
  font: 500 12.5px Figtree, system-ui, sans-serif;
  color: rgba(6, 31, 39, .7);
  cursor: pointer;
  transition: all .15s;
  border-right: 1px solid rgba(6, 31, 39, .08);
}
.ddc-seg-btn:last-child { border-right: none; }
.ddc-seg-btn.active {
  background: #061F27;
  color: #FDFBF5;
}
.ddc-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font: 400 13px Figtree, system-ui, sans-serif;
  color: #061F27;
  cursor: pointer;
  margin-bottom: 14px;
}
.ddc-check input {
  width: 16px; height: 16px;
  accent-color: #b8443a;
}
.ddc-price-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid rgba(6, 31, 39, .08);
  gap: 16px;
}
.ddc-price-total {
  font: 400 28px 'Cormorant Garamond', Georgia, serif;
  color: #061F27;
  line-height: 1;
}
.ddc-price-sub {
  font: 400 11px Figtree, system-ui, sans-serif;
  color: rgba(6, 31, 39, .55);
  margin-top: 4px;
}
.ddc-price-cta {
  padding: 12px 22px;
  border: none;
  background: #b8443a;
  color: #fff;
  border-radius: 6px;
  font: 600 13px Figtree, system-ui, sans-serif;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .15s;
}
.ddc-price-cta:hover {
  background: #a03a30;
}

/* ── Toast ─────────────────────────────────────────── */
.ddc-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #061F27;
  color: #FDFBF5;
  padding: 12px 22px;
  border-radius: 8px;
  font: 500 13px Figtree, system-ui, sans-serif;
  box-shadow: 0 12px 34px rgba(6, 31, 39, .35);
  z-index: 200;
  animation: ddcToastIn .25s ease-out;
}
@keyframes ddcToastIn {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ── Responsive: small screens collapse rails ─────── */
@media (max-width: 1240px) {
  .ddc-layout,
  .ddc-layout.greek-pinned,
  .ddc-layout.reception-open,
  .ddc-layout.greek-pinned.reception-open {
    grid-template-columns: minmax(0, 1fr);
  }
  .ddc-greek,
  .ddc-reception {
    position: static;
    height: auto;
    max-height: 520px;
    margin: 16px 0;
    grid-column: 1;
  }
  .ddc-column {
    grid-column: 1;
  }
  .ddc-ch-body {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .ddc-marginalia {
    display: none !important;
  }
}
@media (max-width: 720px) {
  .ddc-hero {
    padding: 28px 20px 20px;
  }
  .ddc-hero-title { font-size: 44px; }
  .ddc-hero-meta {
    grid-template-columns: 1fr 1fr;
  }
  .ddc-column {
    padding: 24px 16px 0;
  }
  .ddc-ch-title { font-size: 30px; }
  .ddc-prose { font-size: 17px; }
}

/* ── Pericope head rows — stitched analytical editions (plain reading) ── */
.ddc-peri-head {
  display: flex; align-items: baseline; gap: 10px;
  margin: 34px 0 10px; padding-bottom: 7px;
  border-bottom: 1px solid var(--line, #e2dccf);
}
.ddc-verse + .ddc-peri-head, * + .ddc-peri-head { margin-top: 34px; }
.ddc-peri-title {
  font-family: var(--serif, Georgia, serif);
  font-size: 19px; font-weight: 700; color: var(--ink, #12333b);
}
.ddc-peri-ref { font-size: 12.5px; color: #8a8375; letter-spacing: .02em; }
.ddc-peri-open {
  margin-left: auto; border: none; background: none; cursor: pointer;
  font: inherit; font-size: 13px; color: var(--accent, #a33b2e); white-space: nowrap;
}
.ddc-peri-open:hover { text-decoration: underline; }
