/* OCABS hub — palette and type shared with paul-nadim-tarazi.org */
:root {
  --indigo: #182742;
  --indigo-deep: #0F1B2E;
  --limestone: #DFDACB;
  --paper: #E9E6DC;
  --paper-2: #E1DDD1;
  --white: #FBFAF6;
  --ink: #232620;
  --ink-2: #3E4138;
  --ink-soft: #5B5E53;
  --olive: #5E6B3A;
  --olive-light: #A3B473;
  --rule: #CFCABC;
  --rule-soft: #D6D2C5;
  --on-dark: #E9E6DC;
  --on-dark-soft: #B9B8AB;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 120px);
  --radio-h: 76px;
  --bar-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + var(--radio-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--olive); text-underline-offset: 3px; }
a:hover { color: var(--indigo); }
:focus-visible { outline: 3px solid var(--olive-light); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; line-height: 1.1; }
p { margin: 0; }

.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); color: var(--ink); padding: 10px 16px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 4px;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  white-space: nowrap;
}
.btn svg { flex-shrink: 0; }
.btn-primary { background: var(--indigo); color: var(--white); }
.btn-primary:hover { background: var(--indigo-deep); color: var(--white); }
.btn-olive { background: var(--olive-light); color: var(--indigo-deep); }
.btn-olive:hover { background: #B5C48A; color: var(--indigo-deep); }
.btn-outline-light { border-color: var(--limestone); color: var(--limestone); background: transparent; }
.btn-outline-light:hover { background: rgba(223, 218, 203, .1); color: var(--white); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--white); color: var(--ink); }

/* ---------- top (indigo) ---------- */
.top { background: var(--indigo); color: var(--limestone); }
.topbar { position: sticky; top: 0; z-index: 45; background: var(--indigo); color: var(--limestone); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--bar-h); border-bottom: 1px solid rgba(223, 218, 203, .18); }
.brand { display: flex; align-items: baseline; gap: 14px; color: var(--limestone); text-decoration: none; }
.brand:hover { color: var(--white); }
.brand-mark { font-family: var(--serif); font-size: 32px; font-weight: 700; letter-spacing: .05em; }
.brand-name { font-size: 13px; color: var(--on-dark-soft); }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a:not(.btn) { color: var(--limestone); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--white); text-decoration: underline; }
.nav-actions { display: flex; gap: 10px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: var(--limestone); cursor: pointer; align-items: center; justify-content: center; }

.hero { padding-block: clamp(56px, 9vw, 112px) clamp(56px, 8vw, 96px); }
.hero-text { max-width: 880px; display: flex; flex-direction: column; gap: 22px; }
.hero-kicker { font-size: 15px; font-weight: 600; color: var(--olive-light); }
.hero h1 { color: var(--on-dark); font-size: clamp(52px, 9vw, 96px); line-height: .98; letter-spacing: -.01em; }
.hero-lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: #C9C6B8; max-width: 44em; }
.doors { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.door {
  display: flex; flex-direction: column; gap: 12px; padding: 30px;
  background: var(--indigo-deep); border: 1px solid rgba(223, 218, 203, .16); border-radius: 6px;
  color: var(--on-dark); text-decoration: none;
}
.door:hover { border-color: var(--olive-light); color: var(--on-dark); }
.door h2 { font-size: 42px; line-height: 1; }
.door p { font-size: 16px; color: #C9C6B8; }
.door span { margin-top: auto; padding-top: 6px; font-size: 15px; font-weight: 600; color: var(--olive-light); }

/* ---------- sections ---------- */
.section { padding-top: clamp(64px, 8vw, 104px); }
.section:last-of-type { padding-bottom: clamp(64px, 8vw, 104px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 18px; margin-bottom: 36px; border-bottom: 1px solid var(--rule); }
.section-head h2 { font-size: clamp(40px, 5vw, 56px); }
.section-head a:not(.btn) { font-size: 15px; font-weight: 600; }
.subhead { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--ink-soft); margin: 48px 0 20px; }

/* ---------- news ---------- */
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.news-card { display: flex; gap: 26px; padding: 26px; background: var(--white); border: 1px solid var(--rule-soft); border-radius: 6px; box-shadow: 0 1px 2px rgba(35, 38, 32, .06); }
.news-card img { width: 150px; height: 225px; object-fit: cover; flex-shrink: 0; border-radius: 2px; box-shadow: 0 1px 2px rgba(35,38,32,.18), 0 8px 18px rgba(35,38,32,.14); }
.news-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.news-date { font-size: 14px; font-weight: 600; color: var(--olive); }
.news-card h3 { font-size: 28px; }
.news-author { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.news-body p { font-size: 15px; color: var(--ink-2); }
.news-body a { margin-top: auto; padding-top: 6px; font-size: 15px; font-weight: 600; }

/* ---------- podcasts ---------- */
.videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 56px; }
.video-card { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 24px; background: var(--indigo); color: var(--on-dark); border-radius: 6px; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; margin-bottom: 8px; border-radius: 4px; overflow: hidden; background: var(--indigo-deep); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card h3 { font-size: clamp(28px, 2.6vw, 36px); }
.video-card .pod-hosts { color: var(--olive-light); }
.video-card p { color: #C9C6B8; font-size: 15px; }
.video-card .btn { margin-top: auto; background: var(--olive-light); color: var(--indigo-deep); }
.video-card .btn:hover { background: #B5C48A; color: var(--indigo-deep); }
.pod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.pod { display: flex; flex-direction: column; gap: 10px; }
.pod-art { display: block; aspect-ratio: 1 / 1; border-radius: 4px; overflow: hidden; border: 1px solid var(--rule); background: var(--paper-2); }
.pod-art img { width: 100%; height: 100%; object-fit: cover; }
.pod h3 { font-size: 27px; margin-top: 6px; }
.pod h3 a { color: var(--ink); text-decoration: none; }
.pod h3 a:hover { text-decoration: underline; }
.pod-hosts { font-size: 14px; font-weight: 600; color: var(--olive); }
.pod p { font-size: 15px; color: var(--ink-2); }
.pod-latest { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--rule-soft); font-size: 14px; color: var(--ink-soft); }
.pod-latest a { color: var(--ink); font-weight: 600; text-decoration: none; }
.pod-latest a:hover { text-decoration: underline; }

/* ---------- read: catalog ---------- */
.authors-line { padding: 24px 28px; background: var(--paper-2); border-radius: 6px; font-family: var(--serif); font-size: 22px; line-height: 1.55; }
.authors-line strong { display: block; font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink-soft); margin-bottom: 4px; }
.author { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; padding: 34px 0; border-top: 1px solid var(--rule); }
.author:first-of-type { margin-top: 32px; }
.author-info { display: flex; flex-direction: column; gap: 10px; }
.author h3 { font-size: 30px; }
.author-role { font-size: 13px; color: var(--ink-soft); }
.author ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.author-info > a { font-size: 14px; font-weight: 600; }
.covers { display: flex; flex-wrap: wrap; gap: 16px; align-content: flex-start; }
.covers a { display: block; }
.covers img { width: 128px; height: 192px; object-fit: cover; border-radius: 2px; box-shadow: 0 1px 2px rgba(35,38,32,.18), 0 8px 18px rgba(35,38,32,.14); transition: transform .15s ease; }
.covers a:hover img { transform: translateY(-2px); }
.covers .catalog-tile { display: flex; flex-direction: column; gap: 8px; width: 148px; text-decoration: none; color: var(--ink); }
.covers .catalog-tile img { width: 148px; height: 192px; object-position: top; background: var(--white); border: 1px solid var(--rule); }
.covers .catalog-tile strong { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--indigo); }
.covers .catalog-tile small { font-size: 12px; line-height: 1.4; color: var(--ink-soft); }

.buy-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 40px; padding: 34px 40px; border-radius: 6px; background: var(--indigo); color: var(--on-dark); }
.buy-band h3 { font-size: 34px; }
.buy-band p { color: var(--on-dark-soft); margin-top: 4px; }

.writing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 16px; }
.writing a { display: flex; flex-direction: column; gap: 8px; padding: 26px 0; border-top: 2px solid var(--ink); color: var(--ink); text-decoration: none; }
.writing a:hover h3 { text-decoration: underline; }
.writing h3 { font-size: 28px; }
.writing p { font-size: 15px; color: var(--ink-2); }

/* ---------- study ---------- */
.study-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.study-card { display: flex; flex-direction: column; gap: 14px; padding: 40px; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 6px; color: var(--ink); text-decoration: none; }
.study-card:hover { border-color: var(--indigo); }
.study-seal { width: 104px; height: 104px; }
.study-card small { font-size: 14px; color: var(--ink-soft); }
.study-card h3 { font-size: 38px; }
.study-card p { font-size: 16px; color: var(--ink-2); }
.study-card span { margin-top: auto; padding-top: 4px; font-size: 15px; font-weight: 600; color: var(--indigo); }

/* ---------- support + footer ---------- */
.support { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding: clamp(36px, 5vw, 60px); border-radius: 6px; background: var(--limestone); }
.support h2 { font-size: clamp(36px, 4vw, 48px); }
.support p { max-width: 42em; margin-top: 10px; font-size: 18px; color: var(--ink-2); }

.footer { background: var(--indigo-deep); color: var(--rule); padding: 64px 0; font-size: 15px; line-height: 1.7; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer .brand-mark { color: var(--on-dark); font-size: 28px; }
.footer h2 { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--olive-light); margin-bottom: 6px; }
.footer p + p { margin-top: 10px; }
.footer a { color: var(--limestone); }
.footer a:hover { color: var(--white); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer small { display: block; margin-top: 32px; color: var(--on-dark-soft); }

/* ---------- radio bar ---------- */
.radio {
  position: sticky; top: var(--bar-h); z-index: 40;
  min-height: var(--radio-h);
  background: var(--indigo-deep); color: var(--on-dark);
  border-bottom: 1px solid rgba(223, 218, 203, .2);
  box-shadow: 0 2px 12px rgba(15, 27, 46, .18);
}
.radio-inner { display: flex; align-items: center; gap: 18px; min-height: var(--radio-h); }
.radio-play { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; border: 0; background: var(--olive-light); color: var(--indigo-deep); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.radio-play:hover { background: #B5C48A; }
.radio-play .i-pause, .radio-play.is-playing .i-play, .radio-play.is-loading .i-play { display: none; }
.radio-play.is-playing .i-pause { display: block; }
.radio-play .i-load { display: none; }
.radio-play.is-loading .i-load { display: block; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.radio-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.radio-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--olive-light); }
.radio-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--olive-light); }
.radio-now { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio-album { font-size: 13px; color: var(--on-dark-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio-links { display: flex; gap: 20px; font-size: 14px; }
.radio-links a { color: var(--limestone); }
.radio-status { font-size: 13px; color: #E8B7A6; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav { gap: 20px; }
  .brand-name { display: none; }
  .author { grid-template-columns: 240px minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 960px) {
  .menu-btn { display: flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 30; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; background: var(--indigo); border-bottom: 1px solid rgba(223,218,203,.18); }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid rgba(223,218,203,.12); }
  .nav-actions { padding-top: 16px; }
  .top { position: relative; }
  .doors, .pod-grid, .study-grid, .writing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-grid { grid-template-columns: minmax(0, 1fr); }
  .videos { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .radio-links { display: none; }
}
@media (max-width: 680px) {
  :root { --bar-h: 64px; --radio-h: 64px; }
  .bar .brand-mark { font-size: 26px; }
  .radio-play { width: 44px; height: 44px; }
  body { font-size: 16px; }
  .doors, .pod-grid, .study-grid, .writing, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .door { padding: 22px; }
  .door h2 { font-size: 32px; }
  .author { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .covers img { width: 104px; height: 156px; }
  .covers .catalog-tile, .covers .catalog-tile img { width: 120px; }
  .covers .catalog-tile img { height: 156px; }
  .news-card { flex-direction: column; }
  .news-card img { width: 120px; height: 180px; }
  .study-card { padding: 28px; }
  .buy-band { padding: 28px; }
  .radio-album { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- exegetical notes ---------- */
.notes-card { margin-top: 32px; padding: clamp(24px, 3vw, 40px); background: var(--white); border: 1px solid var(--rule-soft); border-radius: 6px; box-shadow: 0 1px 2px rgba(35, 38, 32, .06); }
.notes-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; align-items: end; padding-bottom: 24px; border-bottom: 1px solid var(--rule-soft); }
.notes-head h3 { font-size: clamp(30px, 3vw, 40px); }
.notes-head .pod-hosts { margin-top: 8px; }
.notes-head > p { font-size: 16px; color: var(--ink-2); }
.notes-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); font: 500 14px var(--sans); cursor: pointer; }
.chip:hover { border-color: var(--indigo); }
.chip[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: var(--white); }
.notes-search { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.notes-search input { width: 260px; max-width: 60vw; min-height: 40px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper); font: 15px var(--sans); color: var(--ink); }
.notes-search input:focus { outline: 3px solid var(--olive-light); outline-offset: 1px; background: var(--white); }
.notes-count { font-size: 14px; color: var(--ink-soft); margin: 8px 0 4px; }
.notes-list { list-style: none; margin: 0; padding: 0; max-height: 560px; overflow-y: auto; border-top: 1px solid var(--rule-soft); }
.notes-list li { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr) minmax(0, 1.2fr) minmax(0, 1.6fr); gap: 16px; align-items: baseline; padding: 14px 4px; border-bottom: 1px solid var(--rule-soft); }
.notes-list li[hidden] { display: none; }
.note-title { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--ink); text-decoration: none; }
.note-title:hover { color: var(--indigo); text-decoration: underline; }
.note-ref { font-size: 15px; color: var(--ink-2); }
.note-season { font-size: 13px; color: var(--ink-soft); }
.note-langs { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 14px; }
.notes-empty { padding: 24px 4px; color: var(--ink-2); }
@media (max-width: 960px) {
  .notes-head { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .notes-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .note-season { display: none; }
  .note-langs { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .notes-list li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .notes-search { width: 100%; }
  .notes-search input { width: 100%; max-width: none; }
}

/* ---- Root of the Day (Study) ---- */
.root-card { margin-top: 24px; background: var(--white); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.root-band { background: var(--indigo); color: var(--white); padding: 36px 40px 40px; display: flex; flex-direction: column; gap: 26px; }
.root-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.root-kicker { margin: 0; font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--olive-light); }
.root-top-right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; font-family: var(--sans); font-size: 14px; color: var(--limestone); }
.root-slow, .root-hear { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 22px; border: 1px solid rgba(223,218,203,.55); background: transparent; color: var(--white); font: 500 14px var(--sans); cursor: pointer; }
.root-slow:hover, .root-hear:hover { border-color: var(--white); }
.root-slow-track { width: 34px; height: 18px; border-radius: 9px; background: rgba(223,218,203,.35); display: flex; align-items: center; padding: 2px; box-sizing: border-box; }
.root-slow-track span { width: 14px; height: 14px; border-radius: 50%; background: var(--white); display: block; transition: transform .15s; }
.root-slow.is-on .root-slow-track { background: var(--olive-light); }
.root-slow.is-on .root-slow-track span { transform: translateX(16px); }
.root-forms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: end; }
.root-form { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.root-form:nth-child(2) { align-items: center; text-align: center; }
.root-form:nth-child(3) { align-items: flex-end; text-align: right; }
.root-script { font-size: 60px; line-height: 1.15; }
.root-script[lang="grc"] { font-family: "Gentium Book Plus", serif; font-size: 52px; }
.root-script[lang="he"], .root-card [lang="he"] { font-family: "Frank Ruhl Libre", "Noto Serif Hebrew", "SBL Hebrew", serif; }
.root-script[lang="ar"], .root-card [lang="ar"] { font-family: "Amiri", serif; }
.root-card [lang="grc"] { font-family: "Gentium Book Plus", serif; }
.root-tr { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--limestone); }
.root-lang { font: 600 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--olive-light); }
.root-hear em { font-family: var(--serif); font-size: 16px; }
.root-sense { border-top: 1px solid rgba(223,218,203,.35); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.root-gloss { margin: 0; font-family: var(--serif); font-size: 30px; font-weight: 500; }
.root-sense p:last-child { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.55; color: var(--paper); max-width: 62em; }
.root-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.root-col { padding: 32px 32px 36px; display: flex; flex-direction: column; gap: 22px; }
.root-col + .root-col { border-left: 1px solid var(--rule); }
.root-col h4 { margin: 0; font: 600 13px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--olive); }
.root-entry { display: flex; flex-direction: column; gap: 6px; }
.root-entry-script { margin: 0; font-size: 28px; line-height: 1.35; color: var(--indigo); }
.root-entry-script[lang="grc"] { font-size: 25px; }
.root-entry-script[dir="rtl"] { text-align: right; }
.root-entry-line { display: flex; align-items: center; gap: 12px; }
.root-play { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--indigo); background: var(--white); color: var(--indigo); display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.root-play:hover, .root-play.is-playing { background: var(--indigo); color: var(--white); }
.root-play .i-stop, .root-hear .i-stop { display: none; }
.root-play.is-playing .i-play, .root-hear.is-playing .i-play { display: none; }
.root-play.is-playing .i-stop, .root-hear.is-playing .i-stop { display: block; }
.root-entry-tr { font-family: var(--serif); font-size: 18px; }
.root-entry-gloss { margin: 0; font-family: var(--serif); font-size: 17px; line-height: 1.45; }
.root-entry-ref { margin: 0; font: 13px/1.5 var(--sans); color: var(--olive); }
.root-entry-ref [lang="ar"] { font-size: 15px; }
.root-bridge { margin: 0; font: 15px/1.5 var(--serif); color: var(--ink-2); border-top: 1px dashed var(--rule); padding-top: 14px; }
.root-foot { border-top: 1px solid var(--rule); background: var(--paper); padding: 8px 32px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font: 14px var(--sans); color: var(--ink-soft); }
.root-foot a { min-height: 44px; display: inline-flex; align-items: center; color: var(--indigo); font-weight: 600; }
@media (max-width: 900px) {
  .root-band { padding: 28px 24px 32px; }
  .root-forms, .root-cols { grid-template-columns: minmax(0, 1fr); }
  .root-form, .root-form:nth-child(2), .root-form:nth-child(3) { align-items: flex-start; text-align: left; }
  .root-col { padding: 24px; }
  .root-col + .root-col { border-left: 0; border-top: 1px solid var(--rule); }
  .root-foot { padding: 8px 24px; }
}

/* ---- Root of the Day: Greek renderings ---- */
.root-forms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.root-form:nth-child(2) { align-items: flex-end; text-align: right; }
.root-greek { border-top: 1px solid rgba(223,218,203,.35); padding-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.root-greek-head { margin: 0; font: 600 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--olive-light); }
.root-greek-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
.root-greek-list li { display: flex; align-items: center; gap: 12px; }
.root-greek-list li > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.root-greek-word { font-family: "Gentium Book Plus", serif; font-size: 26px; }
.root-greek-list em { font-family: var(--serif); font-size: 18px; color: var(--limestone); }
.root-greek-gloss { font: 16px var(--serif); color: var(--paper); }
.root-greek-ref { font: 13px var(--sans); color: var(--olive-light); }
.root-play-dark { background: transparent; color: var(--white); border-color: rgba(223,218,203,.55); }
.root-play-dark:hover, .root-play-dark.is-playing { background: var(--white); color: var(--indigo); }
@media (max-width: 900px) {
  .root-forms, .root-greek-list { grid-template-columns: minmax(0, 1fr); }
  .root-form:nth-child(2) { align-items: flex-start; text-align: left; }
}

/* ---- Root of the Day: share and feed ---- */
.root-share { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 22px; border: 1px solid rgba(223,218,203,.55); background: transparent; color: var(--white); font: 500 14px var(--sans); cursor: pointer; }
.root-share:hover { border-color: var(--white); }
.root-toast { font: 600 13px var(--sans); color: var(--olive-light); min-width: 0; }
.root-toast:empty { display: none; }
.root-foot-right { display: inline-flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.root-feed { display: inline-flex; align-items: center; gap: 8px; }

/* ---- Root of the Day: automatic cards ---- */
.root-card mark { background: rgba(163,180,115,.32); color: inherit; padding: 0 .12em; border-radius: 3px; }
.root-greek-none { margin: 0; font: italic 16px var(--serif); color: var(--limestone); }
.root-none { color: var(--ink-soft); font-style: italic; }
.root-attrib { font-size: 13px; color: var(--ink-soft); }

/* ---- Root of the Day: footer and plain text ---- */
.root-card mark { background: none; color: inherit; padding: 0; }
.root-foot { position: relative; }
.root-sources { position: relative; }
.root-sources summary { min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; color: var(--indigo); font-weight: 600; list-style: none; }
.root-sources summary::-webkit-details-marker { display: none; }
.root-sources summary::after { content: ""; width: 7px; height: 7px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.root-sources[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.root-sources p { position: absolute; right: 0; bottom: calc(100% + 6px); width: min(420px, 80vw); margin: 0; padding: 14px 16px; background: var(--white); border: 1px solid var(--rule); border-radius: 6px; box-shadow: 0 8px 24px rgba(15,27,46,.12); font: 13px/1.5 var(--sans); color: var(--ink-2); z-index: 5; }

.root-cc { min-height: 44px; display: inline-flex; align-items: center; color: var(--indigo); font-weight: 600; margin-left: 24px; }
@media (max-width: 760px) { .root-cc { margin-left: 0; } }

.root-usage { margin: 8px 0 0; font: 400 17px/1.55 var(--serif); color: var(--paper); }
.root-usage-label { font: 600 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--olive-light); margin-right: 8px; }
.root-rule { margin: 14px 0 0; font: 400 15px/1.55 var(--serif); color: var(--limestone); border-top: 1px solid rgba(223,218,203,.3); padding-top: 12px; }
.root-rule i { font-style: italic; }

.root-sense .root-cf, .root-sense .root-cf a { margin-top: 10px; font: 400 13px var(--sans); letter-spacing: .01em; }
.root-cf a { color: var(--on-dark-soft); min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.root-cf a:hover { color: var(--white); }

.root-embed { min-height: 44px; display: inline-flex; align-items: center; color: var(--indigo); font-weight: 600; }
