/* ─────────────────────────────────────────────
   CollectionArticleDrawer — editorial article
   ───────────────────────────────────────────── */

.ca-scrim {
  position: fixed;
  inset: 0;
  background: rgba(6,31,39,.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  z-index: 90;
}
.ca-scrim.on {
  opacity: 1;
  pointer-events: auto;
}

.ca-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(720px, 92vw);
  background: #fff;
  box-shadow: -20px 0 60px rgba(6,31,39,.15);
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
  z-index: 91;
  display: flex;
  flex-direction: column;
  --ca-accent: #26828F;
}
.ca-drawer.on { transform: translateX(0); }

.ca-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(6,31,39,.08);
  background: #fff;
  flex: 0 0 auto;
}
.ca-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 12px 'Figtree','Inter',sans-serif;
  color: rgba(6,31,39,.6);
}
.ca-kicker-tag {
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 10.5px;
  color: var(--ca-accent);
}
.ca-kicker-sep { opacity: .45; }

.ca-close {
  width: 30px;
  height: 30px;
  border: 0;
  background: none;
  border-radius: 6px;
  font-size: 22px;
  line-height: 1;
  color: rgba(6,31,39,.55);
  cursor: pointer;
}
.ca-close:hover { background: rgba(6,31,39,.06); color: var(--tan-ink); }

.ca-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
}
.ca-inner {
  padding: 36px 56px 80px;
  max-width: 620px;
  margin: 0 auto;
}

.ca-title {
  font: 500 28px/1.2 'Roboto Slab','Roboto',Georgia,serif;
  letter-spacing: -0.01em;
  color: var(--tan-ink);
  margin: 0 0 12px;
}
.ca-byline {
  display: flex;
  gap: 8px;
  align-items: center;
  font: 400 13px 'Roboto';
  color: rgba(6,31,39,.55);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.ca-byline b { color: var(--tan-ink); font-weight: 500; }
.ca-sep { opacity: .4; }

.ca-dek {
  font: italic 400 16.5px/1.55 'Roboto Slab','Roboto',Georgia,serif;
  color: rgba(6,31,39,.7);
  margin: 0 0 28px;
  padding-left: 16px;
  border-left: 2px solid var(--ca-accent);
}

.ca-body { font: 400 15px/1.72 'Roboto'; color: rgba(6,31,39,.82); }
.ca-h2 {
  font: 500 20px/1.3 'Roboto Slab','Roboto',Georgia,serif;
  color: var(--tan-ink);
  margin: 36px 0 14px;
  letter-spacing: -0.005em;
}
.ca-p { margin: 0 0 18px; }

.ca-pull {
  margin: 28px -8px;
  padding: 18px 24px 18px 36px;
  border-left: 3px solid var(--ca-accent);
  font: 500 18px/1.45 'Roboto Slab','Roboto',Georgia,serif;
  color: var(--ca-accent);
  background: color-mix(in srgb, var(--ca-accent) 6%, transparent);
  border-radius: 0 6px 6px 0;
  position: relative;
}
.ca-pull-mark {
  position: absolute;
  left: 10px;
  top: 10px;
  font-size: 22px;
  opacity: .5;
}

.ca-list {
  margin: 0 0 20px;
  padding-left: 22px;
}
.ca-list li {
  margin-bottom: 8px;
  line-height: 1.6;
}
.ca-list li::marker { color: var(--ca-accent); }

.ca-note {
  display: flex;
  gap: 14px;
  margin: 22px 0;
  padding: 14px 16px;
  background: rgba(6,31,39,.03);
  border-radius: 6px;
  border: 1px solid rgba(6,31,39,.08);
  font: 400 13.5px/1.55 'Roboto';
  color: rgba(6,31,39,.72);
}
.ca-note-label {
  flex: 0 0 auto;
  font: 600 10px 'Figtree';
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ca-accent);
  padding-top: 2px;
  width: 100px;
}

.ca-refs {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(6,31,39,.1);
}
.ca-refs-head {
  font: 600 11px 'Figtree';
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(6,31,39,.55);
  margin-bottom: 12px;
}
.ca-refs ul { list-style: none; margin: 0; padding: 0; }
.ca-refs li {
  font: 400 13px/1.55 'Roboto';
  color: rgba(6,31,39,.7);
  margin-bottom: 8px;
  display: flex;
  gap: 10px;
}
.ca-ref-num {
  color: var(--ca-accent);
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
}

/* Paper theme */
body.theme-paper .ca-drawer { background: #fcfaf3; }
body.theme-paper .ca-head { background: #fcfaf3; border-bottom-color: rgba(120,90,40,.1); }
body.theme-paper .ca-note { background: rgba(120,90,40,.05); border-color: rgba(120,90,40,.12); }

/* Scholarly theme */
body.theme-scholar .ca-scrim { background: rgba(0,0,0,.55); }
body.theme-scholar .ca-drawer { background: #141820; }
body.theme-scholar .ca-head { background: #141820; border-bottom-color: rgba(255,255,255,.08); }
body.theme-scholar .ca-title { color: #ece8df; }
body.theme-scholar .ca-byline { color: rgba(232,230,223,.55); }
body.theme-scholar .ca-byline b { color: #ece8df; }
body.theme-scholar .ca-dek { color: rgba(232,230,223,.75); }
body.theme-scholar .ca-body { color: rgba(232,230,223,.82); }
body.theme-scholar .ca-h2 { color: #ece8df; }
body.theme-scholar .ca-note { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.08); color: rgba(232,230,223,.7); }
body.theme-scholar .ca-refs { border-top-color: rgba(255,255,255,.1); }
body.theme-scholar .ca-refs li { color: rgba(232,230,223,.7); }
body.theme-scholar .ca-close { color: rgba(232,230,223,.6); }
body.theme-scholar .ca-close:hover { background: rgba(255,255,255,.06); color: #ece8df; }
