/* Ape Chronicles, the library (/chronicles, chronicle2, Mortimer, 04-11-2026). The header with the club's most loved era,
   «Your apes», the votes open, the library of every sealed era with the readers' 👍/👎 and the four steps. The 👍/👎
   (.chr-rate) and an era's card (.chl-era) are used on an ape's chronicle and on a member's page too. Parchment gold
   (--chr) is the colour of a seal, the same as css/chronicle.css. Text never under 12 px. */
.chl-hero-art, .chl-top, .chl-yours, .chl-votes, .chl-library, .chl-how, .chr-rate, .chl-era, .ap-chr, .pf-chr, .dh-chr {
    --chr: #e8c27a; --chr-deep: #b8873b; --chr-soft: rgba(232, 194, 122, 0.12); --chr-line: rgba(232, 194, 122, 0.34); }
.chl-yours [hidden], .chl-library [hidden] { display: none !important; }

/* ---------- The header ---------- */
/* chronlive1 (Mortimer, 04-11-2026: «la cabecera de /chronicles no es igual como todas las demás... ni en ancho ni deja
   poner background»): the shared .page-head (its width, its texts and background in /admin/site → Page headers), with the
   buttons under the text and a floating scroll as its art (like the gems of /diamond-hands). */
.chr-scroll { width: 1.05em; height: 1.05em; flex: none; fill: currentColor; }
.chl-hero-art { position: absolute; right: 8%; top: 50%; width: 240px; height: 220px; transform: translateY(-50%); pointer-events: none; }
.chl-hero-ring { position: absolute; inset: 14px 24px; border-radius: 50%; filter: blur(8px);
    background: radial-gradient(closest-side, rgba(232, 194, 122, 0.34), rgba(167, 139, 250, 0.14) 62%, transparent); }
.chl-hero-art .chl-hero-scroll { position: absolute; left: 50%; top: 50%; width: 130px; height: 130px; margin: -65px 0 0 -65px; fill: var(--chr);
    filter: drop-shadow(0 0 26px rgba(232, 194, 122, 0.6)); animation: chl-float 6s ease-in-out infinite; }
.chl-spark { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #f7dfa6; box-shadow: 0 0 12px 3px rgba(247, 223, 166, 0.7);
    animation: chl-twinkle 3.2s ease-in-out infinite; }
.chl-spark--1 { left: 30px; top: 40px; }
.chl-spark--2 { right: 26px; top: 70px; width: 6px; height: 6px; animation-delay: -1.1s; }
.chl-spark--3 { left: 64px; bottom: 30px; width: 5px; height: 5px; animation-delay: -2.2s; background: #c4b5fd; box-shadow: 0 0 12px 3px rgba(196, 181, 253, 0.7); }
@keyframes chl-float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-10px) rotate(3deg); } }
@keyframes chl-twinkle { 0%, 100% { opacity: 0.35; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .chl-hero-art .chl-hero-scroll, .chl-spark { animation: none; } }
@media (max-width: 1180px) { .chl-hero-art { display: none; } }
.chl-hero-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chl-btn-vote { display: inline-flex; align-items: center; gap: 9px; }
.chl-btn-vote i { width: 8px; height: 8px; border-radius: 50%; background: #a78bfa; box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.6); animation: chl-ping 2s infinite; }
@keyframes chl-ping { 70% { box-shadow: 0 0 0 9px rgba(167, 139, 250, 0); } 100% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0); } }
.chl-team-note { margin: 16px 0 0 !important; display: inline-block; padding: 6px 12px; border-radius: 10px; font-size: 0.86rem !important; color: #fbbf24 !important;
    background: rgba(251, 191, 36, 0.08); border: 1px dashed rgba(251, 191, 36, 0.45); }

/* the most loved era: the ape big, its seal and the first chapter's title */
.chl-feature { position: relative; display: grid; grid-template-rows: auto auto; border-radius: 26px; overflow: hidden; color: #fff; text-decoration: none;
    background: linear-gradient(160deg, rgba(232, 194, 122, 0.16), rgba(18, 5, 42, 0.9) 55%); border: 1px solid var(--chr-line);
    box-shadow: 0 30px 70px -26px rgba(0, 0, 0, 0.85), 0 0 60px -20px rgba(232, 194, 122, 0.45); transition: transform 0.25s ease, box-shadow 0.25s ease; }
a.chl-feature:hover { transform: translateY(-3px); box-shadow: 0 36px 80px -26px rgba(0, 0, 0, 0.9), 0 0 70px -16px rgba(232, 194, 122, 0.6); }
.chl-feature-label { position: absolute; z-index: 2; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px;
    font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: rgba(7, 2, 15, 0.72); backdrop-filter: blur(6px); border: 1px solid var(--chr-line); }
.chl-feature-label i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-style: normal; font-size: 0.84rem; color: #3b2405;
    background: radial-gradient(circle at 35% 30%, #fff1c9, var(--chr) 50%, var(--chr-deep)); }
.chl-feature-ape { display: block; aspect-ratio: 16 / 11; overflow: hidden; background: #0b0618; }
.chl-feature-ape img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform 0.6s ease; }
a.chl-feature:hover .chl-feature-ape img { transform: scale(1.04); }
.chl-feature-text { display: grid; gap: 4px; padding: 16px 20px 18px; }
.chl-feature-text b { font-size: 1.3rem; font-weight: 900; }
.chl-feature-text small { color: var(--muted); font-size: 0.9rem; }
.chl-feature-text em { color: #f3e3bd; font-style: italic; font-size: 0.98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chl-feature-score { margin-top: 4px; font-size: 0.86rem; color: var(--muted); }
.chl-feature-score span { font-weight: 900; color: var(--chr); }
.chl-feature--empty { min-height: 300px; place-items: center; text-align: center; padding: 30px; border-style: dashed; background: rgba(232, 194, 122, 0.05); box-shadow: none; }
.chl-feature-seal { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 6px; border-radius: 50%; color: var(--chr); background: var(--chr-soft); border: 1px solid var(--chr-line); }
.chl-feature-seal .chr-scroll { width: 40px; height: 40px; }
.chl-feature--empty .chl-feature-text { padding: 0; }

/* chronlive1: the figures and the most loved era open the page, right under the header */
.chl-top-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: stretch; max-width: 1120px; margin: 0 auto; }
.chl-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; }
.chl-stats > div { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 80px 24px 22px; border-radius: 20px; position: relative;
    background: linear-gradient(160deg, rgba(232, 194, 122, 0.07), rgba(18, 5, 42, 0.75) 60%); border: 1px solid var(--line); }
.chl-stats dt { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.chl-stats dd { margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 900; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.chl-stats > div:first-child { border-color: var(--chr-line); }
.chl-stat-ico { position: absolute; top: 18px; left: 22px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
    font-size: 1.35rem; font-style: normal; line-height: 1; background: var(--chr-soft); border: 1px solid var(--chr-line); }
.chl-stats dd { order: 2; } .chl-stats dt { order: 1; }
.chl-stats > div:first-child dd { color: var(--chr); }

/* ---------- Your apes ---------- */
.chl-yours .section-head p a { color: var(--chr); }
.chl-slots { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 16px; border-radius: 999px; font-weight: 800; font-size: 0.9rem; color: var(--chr);
    background: var(--chr-soft); border: 1px solid var(--chr-line); white-space: nowrap; }
.chl-slots--lock { color: #cbd5e1; background: rgba(255, 255, 255, 0.04); border-color: var(--line); text-decoration: none; }
.chl-slots--lock:hover { border-color: var(--line-strong); color: #fff; }
.chl-apes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.chl-ape { display: grid; grid-template-rows: auto 1fr; border-radius: 20px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); transition: border-color 0.2s ease, transform 0.2s ease; }
.chl-ape:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.chl-ape--ready, .chl-ape--draft { border-color: var(--chr-line); background: linear-gradient(180deg, rgba(232, 194, 122, 0.10), var(--panel) 60%); box-shadow: 0 0 40px -18px rgba(232, 194, 122, 0.55); }
.chl-ape--vote { border-color: rgba(167, 139, 250, 0.4); }
.chl-ape-img { position: relative; display: block; aspect-ratio: 1; background: #0b0618; overflow: hidden; }
.chl-ape-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.chl-ape-img:hover img { transform: scale(1.04); }
.chl-ape--waiting .chl-ape-img img, .chl-ape--reading .chl-ape-img img { filter: saturate(0.55) brightness(0.8); }
.chl-ape-gem { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
    background: rgba(7, 2, 15, 0.78); backdrop-filter: blur(4px); border: 1px solid var(--line-strong); }
.chl-ape-gem .dh-gem { width: 24px; height: 24px; }
.chl-ape-body { display: flex; flex-direction: column; gap: 5px; padding: 14px 16px 16px; }
.chl-ape-name { font-size: 1.08rem; font-weight: 900; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chl-ape-body small { color: var(--muted); font-size: 0.84rem; line-height: 1.4; }
.chl-state { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 800;
    color: #cbd5e1; background: rgba(255, 255, 255, 0.06); }
.chl-state--go { color: #2b1a04; background: linear-gradient(100deg, #f7dfa6, var(--chr)); }
.chl-state--sealed { color: var(--chr); background: var(--chr-soft); }
.chl-state--vote { color: #c4b5fd; background: rgba(167, 139, 250, 0.14); }
.chl-state--vote i { width: 7px; height: 7px; border-radius: 50%; background: #a78bfa; animation: chl-ping 2s infinite; }
.chl-state--wait { color: #a5b4cc; }
.chl-ape-btn { margin-top: auto; align-self: stretch; justify-content: center; min-height: 40px; padding-top: 8px; padding-bottom: 8px; font-size: 0.92rem; }
.chl-ape-body small + .chl-ape-btn, .chl-mini-meter + small + .chl-ape-btn { margin-top: 10px; }
.chl-mini-meter { display: block; height: 6px; margin: 4px 0 2px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.chl-mini-meter i { display: block; width: var(--w); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #a78bfa, #c4b5fd); }
.chl-mini-meter--wait { margin-top: auto; }
.chl-mini-meter--wait i { background: linear-gradient(90deg, #a16207, #facc15); }
.chl-more-li { grid-column: 1 / -1; display: flex; justify-content: center; }
.chl-more { min-height: 42px; padding: 8px 20px; border-radius: 999px; font: inherit; font-weight: 800; color: var(--chr); cursor: pointer;
    background: var(--chr-soft); border: 1px solid var(--chr-line); }
.chl-more:hover { background: rgba(232, 194, 122, 0.2); }
.chl-more span { color: var(--muted); font-weight: 600; }
.chl-ape.is-new { animation: chl-in 0.35s ease both; }
@keyframes chl-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- In the vote ---------- */
/* chronicle4: «Tell me when a vote opens», off by default */
.chl-watch { display: inline-flex; align-items: center; gap: 10px; padding: 9px 12px 9px 14px; border-radius: 999px; font: inherit; font-size: 0.88rem; font-weight: 800;
    color: #dbe2ee; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-strong, rgba(255, 255, 255, 0.16)); cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s; }
.chl-watch svg { flex: none; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chl-watch-knob { position: relative; flex: none; width: 34px; height: 20px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); transition: background 0.2s; }
.chl-watch-knob::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.chl-watch:hover { border-color: rgba(185, 163, 240, 0.5); color: #fff; }
.chl-watch.is-on { color: #fff; background: rgba(139, 92, 246, 0.16); border-color: rgba(185, 163, 240, 0.55); }
.chl-watch.is-on svg { stroke: #c4b5fd; }
.chl-watch.is-on .chl-watch-knob { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.chl-watch.is-on .chl-watch-knob::after { transform: translateX(14px); }
.chl-watch:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.chl-watch[disabled] { opacity: 0.6; cursor: wait; }
.chl-vote-none { margin: 0; padding: 18px 20px; border-radius: 18px; font-size: 0.92rem; line-height: 1.5; color: var(--muted); background: rgba(167, 139, 250, 0.05); border: 1px dashed rgba(167, 139, 250, 0.3); }
@media (prefers-reduced-motion: reduce) { .chl-watch-knob, .chl-watch-knob::after { transition: none; } }
.chl-vote-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.chl-vote { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 14px; border-radius: 20px; background: rgba(167, 139, 250, 0.06);
    border: 1px dashed rgba(167, 139, 250, 0.4); }
.chl-vote-ape { display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #0b0618; }
.chl-vote-ape img { display: block; width: 100%; height: 100%; object-fit: cover; }
.chl-vote-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.chl-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 800;
    letter-spacing: 0.08em; text-transform: uppercase; color: #c4b5fd; background: rgba(167, 139, 250, 0.14); }
.chl-pill i { width: 7px; height: 7px; border-radius: 50%; background: #a78bfa; animation: chl-ping 2s infinite; }
.chl-vote-name { font-size: 1.08rem; font-weight: 900; color: #fff; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chl-vote-name:hover { color: #c4b5fd; }
.chl-vote-body small { color: var(--muted); font-size: 0.84rem; }
.chl-vote-meter { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 10px; margin: 6px 0 4px; font-size: 0.8rem; color: var(--muted); }
.chl-vote-meter b { color: #fff; }
.chl-vote-meter i { display: block; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); position: relative; overflow: hidden; }
.chl-vote-meter i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #a78bfa, #c4b5fd); }
.chl-vote-meter i.is-og::after { background: linear-gradient(90deg, var(--chr-deep), var(--chr)); }

/* ---------- The library ---------- */
.chl-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: -12px 0 22px; }
.chl-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.chl-tab { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 16px; border-radius: 10px; font-weight: 800; font-size: 0.92rem; color: var(--muted); text-decoration: none; }
.chl-tab:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.chl-tab.is-on { color: #2b1a04; background: linear-gradient(100deg, #f7dfa6, var(--chr)); }
.chl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chl-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 5px 14px; border-radius: 999px; font-size: 0.88rem; font-weight: 700; color: #dbe2ee;
    text-decoration: none; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.chl-chip b { color: var(--muted); font-weight: 800; }
.chl-chip:hover { border-color: var(--line-strong); }
.chl-chip.is-on { color: var(--chr); border-color: var(--chr-line); background: var(--chr-soft); }
.chl-chip.is-on b { color: var(--chr); }

.chl-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 18px; }
.chl-era { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 14px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.chl-era:hover { border-color: var(--chr-line); transform: translateY(-2px); box-shadow: 0 20px 44px -26px rgba(0, 0, 0, 0.9), 0 0 36px -20px rgba(232, 194, 122, 0.5); }
.chl-era-ape { position: relative; display: block; align-self: start; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #0b0618; }
.chl-era-ape img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.chl-era:hover .chl-era-ape img { transform: scale(1.05); }
.chl-era.is-closed .chl-era-ape img { filter: sepia(0.35) saturate(0.8); }
.chl-era-no { position: absolute; left: 8px; bottom: 8px; padding: 3px 9px; border-radius: 999px; font-size: 0.75rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase;
    color: #3b2405; background: linear-gradient(100deg, #f7dfa6, var(--chr)); box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.6); }
.chl-medal { position: absolute; top: 8px; left: 8px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 900; font-size: 0.9rem; line-height: 1;
    color: #2b1a04; box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.chl-medal--1 { background: radial-gradient(circle at 35% 30%, #fff4cf, #facc15 55%, #b45309); }
.chl-medal--2 { background: radial-gradient(circle at 35% 30%, #ffffff, #cbd5e1 55%, #64748b); }
.chl-medal--3 { background: radial-gradient(circle at 35% 30%, #ffe2c4, #e59e5b 55%, #92400e); }
.chl-era-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.chl-era-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.chl-era-name { font-size: 1.1rem; font-weight: 900; color: #fff; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chl-era-name:hover { color: var(--chr); }
.chl-tag { flex: none; padding: 2px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 800; color: var(--muted); background: rgba(255, 255, 255, 0.06); }
.chl-era-of { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 0.88rem; color: var(--muted); }
.chl-era-of a, .chl-era-of span { display: inline-flex; align-items: center; gap: 6px; color: #e6ebf3; font-weight: 700; text-decoration: none; }
.chl-era-of a:hover { color: var(--chr); }
.chl-era-of img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.chl-era-first { margin: 2px 0 0; color: #cdd5e3; font-size: 0.92rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.chl-era-first b { color: #f3e3bd; font-style: italic; font-weight: 700; }
.chl-era-meta { margin: 0; font-size: 0.8rem; color: var(--muted); }
.chl-era-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }
.chl-read { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 0.9rem; color: var(--chr); text-decoration: none; white-space: nowrap; }
.chl-read span { transition: transform 0.2s ease; }
.chl-read:hover span { transform: translateX(3px); }
.chl-vote-body .chl-read { margin-top: auto; color: #c4b5fd; }

.chl-pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 26px; font-size: 0.9rem; color: var(--muted); }
.chl-pager a { font-weight: 800; color: var(--chr); text-decoration: none; }
.chl-pager a[rel=next] { justify-self: end; }
.chl-empty { display: grid; justify-items: center; gap: 8px; padding: 46px 20px; text-align: center; border-radius: 22px; border: 1px dashed var(--chr-line); background: rgba(232, 194, 122, 0.04); }
.chl-empty-art { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; color: var(--chr); background: var(--chr-soft); }
.chl-empty-art .chr-scroll { width: 32px; height: 32px; }
.chl-empty h3 { margin: 6px 0 0; font-size: 1.25rem; }
.chl-empty p { margin: 0; color: var(--muted); max-width: 440px; }

/* ---------- The four steps ---------- */
.chl-how h2 { margin: 0 0 22px; font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 900; }
.chl-how h2 .c { color: var(--chr); }
.chl-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.chl-steps li { display: grid; gap: 6px; align-content: start; padding: 18px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.chl-step-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 900; color: #3b2405;
    background: radial-gradient(circle at 35% 30%, #fff1c9, var(--chr) 50%, var(--chr-deep)); }
.chl-steps b { font-size: 1.02rem; color: #fff; }
.chl-steps span:last-child { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }

/* ---------- The readers' 👍 / 👎 ---------- */
.chr-rate { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.chr-rate-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 5px 12px; border-radius: 999px; font: inherit; font-weight: 800; font-size: 0.9rem;
    color: #dbe2ee; cursor: pointer; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.chr-rate-btn b { font-variant-numeric: tabular-nums; min-width: 0.6em; text-align: center; }
.chr-rate-btn:hover:not(:disabled) { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.09); }
.chr-rate-btn:disabled { cursor: default; opacity: 0.75; }
.chr-thumb { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.chr-thumb--down { transform: rotate(180deg); }
.chr-rate-btn--up.is-on { color: #2b1a04; background: linear-gradient(100deg, #f7dfa6, var(--chr)); border-color: transparent; }
.chr-rate-btn--up.is-on .chr-thumb { fill: rgba(59, 36, 5, 0.18); }
.chr-rate-btn--down.is-on { color: #fecaca; background: rgba(239, 68, 68, 0.16); border-color: rgba(239, 68, 68, 0.45); }
.chr-rate-btn.is-pop .chr-thumb { animation: chr-pop 0.42s cubic-bezier(0.3, 1.6, 0.5, 1); }
.chr-rate-btn--down.is-pop .chr-thumb { animation-name: chr-pop-down; }
@keyframes chr-pop { 40% { transform: scale(1.35) rotate(-12deg); } }
@keyframes chr-pop-down { 0% { transform: rotate(180deg); } 40% { transform: rotate(180deg) scale(1.35); } 100% { transform: rotate(180deg); } }
.chr-rate.is-busy { opacity: 0.7; pointer-events: none; }
.chr-rate--sm .chr-rate-btn { min-height: 32px; padding: 4px 10px; font-size: 0.84rem; }
.chr-rate--sm .chr-thumb { width: 15px; height: 15px; }
.chr-rate-msg { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 5; width: max-content; max-width: 260px; padding: 7px 11px; border-radius: 10px;
    font-size: 0.8rem; font-weight: 600; color: #fff; background: #1f1236; border: 1px solid var(--line-strong); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
    opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; }
.chr-rate-msg.is-on { opacity: 1; transform: none; }
.chr-rate-msg:empty { display: none; }

/* ---------- Elsewhere: Diamond Hands (📜 on an ape), a member's page, the profile ---------- */
.dh-ape { position: relative; }
.dh-chr { position: absolute; top: 8px; left: 8px; z-index: 3; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px 4px 7px; border-radius: 999px;
    font-size: 0.75rem; font-weight: 800; color: #3b2405; text-decoration: none; background: linear-gradient(100deg, #f7dfa6, var(--chr));
    box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.7); transition: transform 0.15s ease; }
.dh-chr:hover { transform: translateY(-1px); }
.dh-chr .chr-scroll { width: 13px; height: 13px; }
.dh-chr--write { color: var(--chr); background: rgba(7, 2, 15, 0.8); border: 1px solid var(--chr-line); backdrop-filter: blur(4px); }

.ap-chr .chl-grid, .pf-chr .chl-grid { grid-template-columns: 1fr; gap: 12px; }
.chl-era--compact { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 10px; border-radius: 18px; }
.chl-era--compact .chl-era-ape { border-radius: 12px; }
.chl-era--compact .chl-era-no { font-size: 0.75rem; padding: 2px 7px; left: 5px; bottom: 5px; }
.chl-era--compact .chl-era-name { font-size: 1rem; }
.pf-chr-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: 20px;
    background: linear-gradient(100deg, rgba(232, 194, 122, 0.10), var(--panel) 55%); border: 1px solid var(--chr-line); }
.pf-chr-apes { display: flex; align-items: center; }
.pf-chr-apes img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; margin-left: -10px; border: 3px solid var(--bg-1); background: #0b0618; }
.pf-chr-apes img:first-child { margin-left: 0; }
.pf-chr-text { flex: 1 1 260px; display: grid; gap: 3px; }
.pf-chr-text b { font-size: 1.05rem; color: #fff; }
.pf-chr-text small { color: var(--muted); font-size: 0.88rem; }

@media (max-width: 1000px) {
    .chl-top-grid { grid-template-columns: minmax(0, 1fr); }
    .chl-feature { max-width: 480px; width: 100%; margin: 0 auto; }
    .chl-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .chl-stats { gap: 10px; }
    .chl-stats > div { padding: 74px 16px 16px; border-radius: 16px; }
    .chl-stat-ico { top: 14px; left: 14px; width: 40px; height: 40px; font-size: 1.2rem; }
    .chl-stats dd { font-size: 1.6rem; }
    .chl-apes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .chl-ape-body { padding: 10px 12px 12px; }
    .chl-ape-name { font-size: 0.98rem; }
    .chl-ape-btn { font-size: 0.84rem; min-height: 36px; padding-left: 8px; padding-right: 8px; }
    .chl-vote-list, .chl-grid { grid-template-columns: minmax(0, 1fr); }
    .chl-vote { grid-template-columns: 92px minmax(0, 1fr); }
    .chl-era { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 12px; }
    .chl-era-first { -webkit-line-clamp: 2; }
    .chl-tools { flex-direction: column; align-items: stretch; }
    .chl-tabs { display: grid; grid-template-columns: repeat(3, 1fr); }
    .chl-tab { justify-content: center; padding: 6px 8px; font-size: 0.86rem; }
    .chl-steps { grid-template-columns: minmax(0, 1fr); }
    .chl-era-foot { flex-wrap: wrap; }
}

/* chronicle3: what a vote still needs, and the chronicle votes on /vote */
.chl-need { margin: 2px 0 2px; font-size: 0.8rem; font-weight: 700; color: #fcd34d; }
.chl-need.is-done { color: #86efac; }
.chl-vote-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ev-empty + .chl-vote-head, .prop-list + .chl-vote-head { margin-top: 38px; }
.chl-vote-head .chl-vote-head-ico { width: 22px; height: 22px; fill: #fbbf24; flex: none; }
.chl-vote-all { margin-left: auto; font-size: 0.86rem; font-weight: 700; color: #fbbf24; text-decoration: none; }
.chl-vote-all:hover { color: #fde68a; }
.chl-vote-intro { margin: -4px 0 16px; max-width: 760px; font-size: 0.9rem; color: var(--muted); line-height: 1.5; }
.chl-vote-list--dao { margin-bottom: 34px; }
.dh-chr--vote { color: #fff; background: linear-gradient(135deg, #8b5cf6, #6d28d9); box-shadow: 0 4px 14px rgba(124, 58, 237, 0.45); }
