/* ─────────────────────────────────────────────
   CollectionPage — editorial landing page
   Sub-view of La Biblioteca.
   ───────────────────────────────────────────── */

.amos-crumbs .crumb-link {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}
.amos-crumbs .crumb-link:hover {
  color: var(--tan-cyan-600);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Hero ─────────────────────────────────── */
.coll-hero {
  position: relative;
  padding: 32px 40px 28px;
  background: #fff;
  border-bottom: 1px solid rgba(6,31,39,.08);
  overflow: hidden;
}
.coll-hero::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--coll-accent, #26828F);
}
.coll-hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 360px;
  background: radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--coll-accent, #26828F) 14%, transparent), transparent 70%);
  pointer-events: none;
}

.coll-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
}
.coll-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 11px/1 'Figtree', 'Inter', sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--coll-accent, #26828F);
}
.coll-hero-tag .num {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--coll-accent, #26828F);
  color: #fff;
  font-size: 10px;
  letter-spacing: .08em;
}
.coll-hero-tag .dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: currentColor;
  opacity: .5;
}
.coll-hero-tag .coll-subtype {
  color: rgba(6,31,39,.5);
  font-weight: 500;
  letter-spacing: .1em;
}

.coll-article-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--coll-accent, #26828F);
  border-radius: 20px;
  background: #fff;
  color: var(--coll-accent, #26828F);
  font: 500 13px 'Roboto';
  cursor: pointer;
  transition: background .15s, color .15s;
}
.coll-article-cta:hover {
  background: var(--coll-accent, #26828F);
  color: #fff;
}

.coll-hero-title {
  font: 500 34px/1.05 'Roboto';
  letter-spacing: -0.02em;
  color: var(--tan-ink);
  margin: 0;
}
.coll-hero-tagline {
  font: italic 500 18px/1.4 'Roboto Slab', 'Roboto', Georgia, serif;
  color: var(--coll-accent, #26828F);
  margin-top: 6px;
  max-width: 780px;
}
.coll-hero-sub {
  font: 400 14.5px/1.65 'Roboto';
  color: rgba(6,31,39,.72);
  margin-top: 14px;
  max-width: 820px;
}

/* ── Stat strip ───────────────────────────── */
.coll-stats {
  display: flex;
  gap: 0;
  margin-top: 22px;
  border: 1px solid rgba(6,31,39,.1);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(6,31,39,.015);
  width: fit-content;
  max-width: 100%;
}
.coll-stat {
  padding: 12px 22px;
  border-right: 1px solid rgba(6,31,39,.08);
  min-width: 130px;
}
.coll-stat:last-child { border-right: 0; }
.coll-stat-val {
  font: 500 22px 'Roboto';
  color: var(--tan-ink);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.coll-stat-lbl {
  font: 600 10px 'Figtree';
  letter-spacing: .12em;
  color: rgba(6,31,39,.5);
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── Editorial bullets ────────────────────── */
.coll-editorial {
  margin-top: 22px;
  display: grid;
  gap: 8px;
  max-width: 820px;
}
.coll-ed-line {
  display: flex;
  gap: 10px;
  font: 400 13.5px/1.55 'Roboto';
  color: rgba(6,31,39,.7);
}
.coll-ed-mark {
  color: var(--coll-accent, #26828F);
  font-weight: 600;
  font-family: 'Roboto Slab', Georgia, serif;
  flex: 0 0 auto;
  width: 14px;
}

/* ── Toolbar adj ──────────────────────────── */
.coll-toolbar {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}

/* ── Body ─────────────────────────────────── */
.coll-body {
  padding: 22px 40px 40px;
}
.coll-body-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  font: 600 11px 'Figtree';
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(6,31,39,.55);
}
.coll-body-head span b { color: var(--tan-ink); }
.coll-clear {
  background: none;
  border: 0;
  padding: 4px 8px;
  font: 500 11px 'Figtree';
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tan-cyan-600);
  cursor: pointer;
}
.coll-clear:hover { text-decoration: underline; }

/* ── Related ──────────────────────────────── */
.coll-related {
  padding: 28px 40px 56px;
  border-top: 1px solid rgba(6,31,39,.08);
  background: rgba(6,31,39,.02);
}
.coll-related-head {
  font: 600 11px 'Figtree';
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(6,31,39,.55);
  margin-bottom: 14px;
}
.coll-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.coll-related-card {
  display: block;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid rgba(6,31,39,.1);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .15s, transform .15s;
  text-decoration: none;
  color: inherit;
}
.coll-related-card:hover {
  border-color: var(--tan-cyan-600);
  transform: translateY(-1px);
}
.coll-rel-tag {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 22px;
  border-radius: 4px;
  color: #fff;
  font: 600 10px 'Figtree';
  letter-spacing: .06em;
  margin-bottom: 8px;
}
.coll-rel-name {
  font: 500 15px 'Roboto';
  color: var(--tan-ink);
  margin-bottom: 4px;
}
.coll-rel-sub {
  font: 400 12.5px/1.45 'Roboto';
  color: rgba(6,31,39,.6);
  margin-bottom: 10px;
}
.coll-rel-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font: 500 11px 'Figtree';
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tan-cyan-600);
}

/* ── Make the rail 'more' link feel clickable ── */
.amos-rail-more {
  cursor: pointer;
  transition: color .15s;
}
.amos-rail-more:hover {
  color: var(--tan-cyan-600) !important;
}

/* ── Paper theme overrides ───────────────── */
body.theme-paper .coll-hero { background: #fbf7ee; border-bottom-color: rgba(120,90,40,.1); }
body.theme-paper .coll-hero-title { font-family: 'Roboto Slab', 'Roboto', Georgia, serif; }
body.theme-paper .coll-stats { background: rgba(120,90,40,.03); border-color: rgba(120,90,40,.12); }
body.theme-paper .coll-stat { border-right-color: rgba(120,90,40,.1); }
body.theme-paper .coll-related { background: rgba(120,90,40,.04); border-top-color: rgba(120,90,40,.1); }
body.theme-paper .coll-related-card { background: #fcfaf3; border-color: rgba(120,90,40,.14); }

/* ── Scholarly theme overrides ───────────── */
body.theme-scholar .coll-hero { background: #141820; border-bottom-color: rgba(255,255,255,.06); }
body.theme-scholar .coll-hero-title { color: #ece8df; font-family: 'Roboto Slab','Roboto',Georgia, serif; }
body.theme-scholar .coll-hero-sub { color: rgba(232,230,223,.65); }
body.theme-scholar .coll-hero-tagline { color: var(--coll-accent, #d4a24c); }
body.theme-scholar .coll-stats { background: rgba(255,255,255,.02); border-color: rgba(255,255,255,.06); }
body.theme-scholar .coll-stat { border-right-color: rgba(255,255,255,.06); }
body.theme-scholar .coll-stat-val { color: #e8dcc4; }
body.theme-scholar .coll-stat-lbl { color: rgba(232,230,223,.5); }
body.theme-scholar .coll-ed-line { color: rgba(232,230,223,.7); }
body.theme-scholar .coll-related { background: rgba(255,255,255,.02); border-top-color: rgba(255,255,255,.06); }
body.theme-scholar .coll-related-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
body.theme-scholar .coll-related-card:hover { border-color: #d4a24c; }
body.theme-scholar .coll-rel-name { color: #ece8df; }
body.theme-scholar .coll-rel-sub { color: rgba(232,230,223,.55); }
body.theme-scholar .coll-rel-count { color: #d4a24c; }
body.theme-scholar .coll-article-cta { background: transparent; }
