/* saved-studies.css — Saved Studies page */

.sav-hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 42px 56px 24px;
}
.sav-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 11px 'Roboto', system-ui, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(6,31,39,.55);
  margin-bottom: 14px;
  padding: 5px 11px 5px 10px;
  background: rgba(6,31,39,.05);
  border-radius: 3px;
}
.sav-hero-title {
  font: 400 44px/1.1 'Cormorant Garamond', Georgia, serif;
  color: #061F27;
  margin: 0 0 8px;
  letter-spacing: -.01em;
}
.sav-hero-title em {
  font-style: italic;
  color: #b8443a;
}
.sav-hero-sub {
  font: 400 14.5px/1.55 'Roboto', system-ui, sans-serif;
  color: rgba(6,31,39,.65);
  max-width: 640px;
  margin: 0;
  text-wrap: pretty;
}

/* Toolbar ------------------------------------------------------ */
.sav-toolbar {
  max-width: 1240px;
  margin: 8px auto 0;
  padding: 0 56px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(6,31,39,.08);
}
.sav-tabs {
  display: flex; gap: 2px;
}
.sav-tab {
  background: none; border: 0;
  padding: 12px 14px;
  font: 500 12.5px 'Roboto', system-ui, sans-serif;
  letter-spacing: .02em;
  color: rgba(6,31,39,.58);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.sav-tab:hover { color: #061F27; }
.sav-tab.on {
  color: #061F27;
  border-bottom-color: #b8443a;
}
.sav-tab-count {
  font: 700 10.5px 'Roboto', system-ui, sans-serif;
  padding: 1px 6px;
  border-radius: 8px;
  background: rgba(6,31,39,.08);
  color: rgba(6,31,39,.6);
  min-width: 20px; text-align: center;
}
.sav-tab.on .sav-tab-count { background: rgba(184,68,58,.15); color: #b8443a; }

.sav-sort .amos-sort {
  background: none; border: 0;
  padding: 8px 10px;
  font: 500 12px 'Roboto', system-ui, sans-serif;
  color: rgba(6,31,39,.6);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 4px;
}
.sav-sort .amos-sort:hover { background: rgba(6,31,39,.04); color: #061F27; }

/* Content / sections ------------------------------------------ */
.sav-content {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 56px 72px;
}
.sav-section { margin-bottom: 44px; }
.sav-section:last-child { margin-bottom: 0; }

.sav-section-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 6px;
}
.sav-section-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 4px;
  background: rgba(6,31,39,.06);
  color: rgba(6,31,39,.7);
}
.sav-section-ico.pin {
  background: rgba(184,68,58,.12);
  color: #b8443a;
  font-size: 12px;
}
.sav-section-head h2 {
  font: 500 18px 'Cormorant Garamond', Georgia, serif;
  color: #061F27;
  margin: 0;
  letter-spacing: .01em;
}
.sav-section-count {
  font: 500 11.5px 'Roboto', system-ui, sans-serif;
  color: rgba(6,31,39,.5);
  letter-spacing: .04em;
}
.sav-section-more {
  margin-left: auto;
  background: none; border: 0;
  font: 500 12px 'Roboto', system-ui, sans-serif;
  color: #26828F;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 6px;
  border-radius: 3px;
}
.sav-section-more:hover { background: rgba(38,130,143,.08); }

/* Grid / card base -------------------------------------------- */
.sav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.sav-grid.two { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); }
.sav-grid.quotes {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

.sav-card {
  background: #fff;
  border: 1px solid rgba(6,31,39,.1);
  border-radius: 6px;
  padding: 18px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  cursor: pointer;
  display: flex; flex-direction: column;
  position: relative;
  min-height: 180px;
}
.sav-card:hover {
  border-color: rgba(6,31,39,.22);
  box-shadow: 0 4px 16px rgba(6,31,39,.06);
  transform: translateY(-1px);
}
.sav-card.pinned {
  border-top: 2px solid #b8443a;
  padding-top: 17px;
}

.sav-card-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 10px;
}
.sav-kicker {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 10.5px 'Roboto', system-ui, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(6,31,39,.55);
}
.sav-dot-sep { opacity: .5; padding: 0 1px; }
.sav-langchip {
  padding: 1px 5px;
  background: rgba(6,31,39,.06);
  border-radius: 2px;
  font-size: 9.5px;
  letter-spacing: .12em;
}
.sav-pin { color: #b8443a; font-size: 14px; }
.sav-pin.inline { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; font-family: 'Roboto'; font-weight: 600; }

/* Pericope card ------------------------------------------------ */
.sav-ref {
  font: 600 12px 'Roboto', system-ui, sans-serif;
  letter-spacing: .04em;
  color: #26828F;
  margin-bottom: 4px;
}
.sav-title {
  font: 500 21px/1.3 'Cormorant Garamond', Georgia, serif;
  color: #061F27;
  margin: 0 0 8px;
}
.sav-note {
  font: 400 13px/1.55 'Roboto', system-ui, sans-serif;
  color: rgba(6,31,39,.7);
  margin: 0 0 14px;
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sav-progress {
  margin-top: auto;
  margin-bottom: 12px;
}
.sav-progress-bar {
  height: 3px;
  background: rgba(6,31,39,.08);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}
.sav-progress-bar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, #c76622 0%, #b8443a 100%);
  border-radius: 2px;
}
.sav-progress-meta {
  display: flex; justify-content: space-between;
  font: 500 11px 'Roboto', system-ui, sans-serif;
  color: rgba(6,31,39,.55);
}
.sav-progress-when { font-style: italic; }

.sav-foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(6,31,39,.05);
}
.sav-tags {
  display: flex; flex-wrap: wrap; gap: 5px;
}
.sav-tag {
  font: 500 10.5px 'Roboto', system-ui, sans-serif;
  color: rgba(6,31,39,.55);
  letter-spacing: .02em;
  background: rgba(6,31,39,.04);
  padding: 2px 7px;
  border-radius: 3px;
}
.sav-seals { display: inline-flex; gap: 3px; }
.sav-foot-when {
  font: 500 10.5px 'Roboto', system-ui, sans-serif;
  color: rgba(6,31,39,.5);
  letter-spacing: .02em;
}
.sav-foot-actions { display: inline-flex; gap: 4px; }
.sav-mini-btn {
  background: transparent;
  border: 1px solid rgba(6,31,39,.14);
  padding: 4px 9px;
  border-radius: 3px;
  font: 500 11px 'Roboto', system-ui, sans-serif;
  color: rgba(6,31,39,.7);
  cursor: pointer;
}
.sav-mini-btn:hover { background: rgba(6,31,39,.05); color: #061F27; border-color: rgba(6,31,39,.24); }

/* Document card ------------------------------------------------ */
.sav-card-doc {
  flex-direction: row;
  gap: 14px;
  align-items: flex-start;
  min-height: 140px;
}
.sav-doc-mark {
  flex: none;
  width: 56px; height: 56px;
  border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
}
.sav-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sav-card-body .sav-title { margin: 4px 0 2px; font-size: 20px; }
.sav-byline {
  font: 400 12.5px 'Roboto', system-ui, sans-serif;
  color: rgba(6,31,39,.6);
  font-style: italic;
  margin-bottom: 8px;
}
.sav-card-body .sav-foot { margin-top: auto; border-top: 0; padding-top: 6px; }

/* Quote card --------------------------------------------------- */
.sav-card-quote {
  background: #fbf5ea;
  border-color: rgba(138,92,59,.2);
  min-height: 200px;
}
.sav-card-quote:hover { border-color: rgba(138,92,59,.4); }
.sav-quotemark {
  font: 400 56px 'Cormorant Garamond', Georgia, serif;
  color: rgba(184,68,58,.35);
  line-height: .8;
  margin-bottom: 4px;
}
.sav-quote-text {
  font: 400 17px/1.45 'Cormorant Garamond', Georgia, serif;
  color: #061F27;
  margin: 0 0 14px;
  font-style: italic;
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sav-quote-src {
  font: 500 11.5px 'Roboto', system-ui, sans-serif;
  color: rgba(6,31,39,.6);
  margin-bottom: 14px;
  line-height: 1.6;
}
.sav-quote-src strong { color: #061F27; font-weight: 600; }
.sav-card-quote .sav-foot { margin-top: auto; }

/* Saved searches ---------------------------------------------- */
.sav-search-list {
  background: #fff;
  border: 1px solid rgba(6,31,39,.1);
  border-radius: 6px;
  overflow: hidden;
}
.sav-search-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(6,31,39,.06);
  cursor: pointer;
  transition: background .12s;
}
.sav-search-row:last-child { border-bottom: 0; }
.sav-search-row:hover { background: rgba(6,31,39,.02); }
.sav-search-ico {
  width: 30px; height: 30px;
  border-radius: 4px;
  background: rgba(38,130,143,.12);
  color: #26828F;
  display: inline-flex; align-items: center; justify-content: center;
}
.sav-search-body { flex: 1; min-width: 0; }
.sav-search-q {
  font: 500 14.5px 'Cormorant Garamond', Georgia, serif;
  color: #061F27;
  font-style: italic;
  margin-bottom: 2px;
}
.sav-search-meta {
  font: 500 11px 'Roboto', system-ui, sans-serif;
  color: rgba(6,31,39,.55);
  letter-spacing: .02em;
}

/* Scholar (dark) theme ---------------------------------------- */
body.theme-scholar .sav-hero-title,
body.theme-scholar .sav-title,
body.theme-scholar .sav-search-q,
body.theme-scholar .sav-quote-text,
body.theme-scholar .sav-section-head h2 { color: #f5f3ec; }
body.theme-scholar .sav-hero-sub,
body.theme-scholar .sav-note,
body.theme-scholar .sav-search-meta,
body.theme-scholar .sav-quote-src,
body.theme-scholar .sav-byline,
body.theme-scholar .sav-progress-meta,
body.theme-scholar .sav-foot-when { color: rgba(245,243,236,.7); }
body.theme-scholar .sav-card {
  background: #222c32;
  border-color: rgba(245,243,236,.12);
}
body.theme-scholar .sav-card-quote {
  background: #2a2620;
  border-color: rgba(212,162,76,.22);
}
body.theme-scholar .sav-search-list { background: #222c32; border-color: rgba(245,243,236,.12); }
body.theme-scholar .sav-search-row { border-color: rgba(245,243,236,.08); }
body.theme-scholar .sav-tag,
body.theme-scholar .sav-langchip { background: rgba(245,243,236,.08); color: rgba(245,243,236,.75); }
body.theme-scholar .sav-hero-eyebrow { background: rgba(245,243,236,.08); color: rgba(245,243,236,.7); }
body.theme-scholar .sav-hero-title em { color: #d4a24c; }
body.theme-scholar .sav-progress-bar { background: rgba(245,243,236,.1); }
body.theme-scholar .sav-tab.on { border-bottom-color: #d4a24c; }
body.theme-scholar .sav-tab.on .sav-tab-count { background: rgba(212,162,76,.2); color: #d4a24c; }
body.theme-scholar .sav-pin, body.theme-scholar .sav-pin.inline { color: #d4a24c; }
body.theme-scholar .sav-card.pinned { border-top-color: #d4a24c; }
