/* V4 collection pages. The homepage and article reader do not load this file. */
.celestial-index {
  --paper: #050914;
  --ink: #e9edf4;
  --muted: #a3afc1;
  --faint: #7d8b9f;
  --orbit-rgb: 164, 193, 226;
  --orbit-color: #a4c1e2;
  --ice: var(--orbit-color);
  --amber: var(--orbit-color);
  --line: rgba(164, 193, 226, .13);
  background: var(--paper);
  isolation: isolate;
}
.celestial-index[data-collection="cfs"] { --orbit-rgb: 219,164,99; --orbit-color: #dba463; }
.celestial-index[data-collection="arm"] { --orbit-rgb: 176,159,218; --orbit-color: #b09fda; }
.celestial-index[data-collection="eds"] { --orbit-rgb: 153,215,231; --orbit-color: #99d7e7; }
.celestial-index[data-collection="linux"] { --orbit-rgb: 218,137,86; --orbit-color: #da8956; }
.celestial-index[data-collection="ebpf"] { --orbit-rgb: 139,191,167; --orbit-color: #8bbfa7; }
.celestial-index[data-collection="tools"] { --orbit-rgb: 190,208,221; --orbit-color: #bed0dd; }
.celestial-index::before { display: none; }
.collection-universe { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: #040813; }
.collection-universe canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.universe-nebula {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 84% 24%, rgba(var(--orbit-rgb), .12), transparent 50%),
    radial-gradient(ellipse at 10% 80%, #172c4226, transparent 55%);
  transition: background .8s;
}
.universe-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, #04081326 0%, #04081338 22%, #0408131a 48%, #04081305 76%),
    linear-gradient(0deg, #04081366, transparent 70%);
}
.universe-marks { position: absolute; right: 4.5vw; top: 53vh; width: 170px; height: 185px; }
.universe-mark { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; color: var(--orbit-color); opacity: 0; transform: translateY(8px); transition: opacity .8s, transform .8s; }
.universe-mark svg { width: 146px; height: 110px; opacity: .35; }
.universe-mark > span { margin-top: 10px; font: 11px var(--mono); letter-spacing: .26em; opacity: .45; }
.universe-mark small { margin-top: 9px; font: 7px var(--mono); letter-spacing: .07em; white-space: nowrap; opacity: .35; }
[data-collection="cfs"] .universe-mark[data-world="cfs"],
[data-collection="arm"] .universe-mark[data-world="arm"],
[data-collection="eds"] .universe-mark[data-world="eds"],
[data-collection="linux"] .universe-mark[data-world="linux"],
[data-collection="ebpf"] .universe-mark[data-world="ebpf"],
[data-collection="tools"] .universe-mark[data-world="tools"] { opacity: 1; transform: none; }
.celestial-index .explorer-header {
  background: rgba(5, 9, 20, .72);
  border-color: rgba(var(--orbit-rgb), .14);
  box-shadow: 0 8px 34px #01030b26;
}
.celestial-index .brand-symbol { color: var(--orbit-color); border-color: currentColor; box-shadow: 0 0 18px rgba(var(--orbit-rgb), .15); }
.celestial-index .brand-symbol::before { border-color: currentColor; background: #070e1b; }
.explorer-actions { display: flex; align-items: center; gap: 27px; }
.scene-motion { display: flex; gap: 8px; align-items: center; padding: 8px 0; background: none; border: 0; color: #94a4b9; font-size: 10px; transition: color .2s; }
.scene-motion:hover { color: #e2ecf8; }
.motion-symbol { width: 9px; height: 10px; border-left: 2px solid currentColor; border-right: 2px solid currentColor; opacity: .65; }
.scene-motion[aria-pressed="true"] .motion-symbol { width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 7px solid currentColor; border-right: 0; }
.celestial-index .explorer-shell { position: relative; border-color: transparent; }
.celestial-index .explorer-sidebar {
  border-right-color: rgba(var(--orbit-rgb), .10);
  background: linear-gradient(90deg, #050a1626, #050a161a);
  padding-top: 52px;
}
.celestial-index .sidebar-label { color: #acb8ca; }
.celestial-index .sidebar-label span { color: #728198; }
.celestial-index .collection-nav { gap: 7px; }
.celestial-index .collection-link {
  --nav-rgb: 164,193,226;
  grid-template-columns: 20px minmax(0,1fr) auto;
  padding: 13px 12px;
  border: 1px solid transparent; border-radius: 6px;
  color: #aab7c9;
  transition: background .3s, color .3s, border-color .3s;
}
.collection-link[data-collection="cfs"] { --nav-rgb: 219,164,99; }
.collection-link[data-collection="arm"] { --nav-rgb: 176,159,218; }
.collection-link[data-collection="eds"] { --nav-rgb: 153,215,231; }
.collection-link[data-collection="linux"] { --nav-rgb: 218,137,86; }
.collection-link[data-collection="ebpf"] { --nav-rgb: 139,191,167; }
.collection-link[data-collection="tools"] { --nav-rgb: 190,208,221; }
.celestial-index .collection-symbol {
  display: block; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 28% 28%, rgba(var(--nav-rgb), .95), rgba(var(--nav-rgb), .4) 40%, #060b17 85%);
  box-shadow: 0 0 11px rgba(var(--nav-rgb), .12), inset 1px 0 1px rgba(var(--nav-rgb), .4);
  position: relative;
}
.celestial-index .collection-system { background: none; border: 1px solid rgba(var(--nav-rgb), .7); box-shadow: none; }
.collection-system::after { content: ""; position: absolute; inset: 2px -4px; border: 1px solid rgba(var(--nav-rgb), .5); border-radius: 50%; transform: rotate(-32deg); }
.celestial-index .collection-link:hover { background: rgba(var(--nav-rgb), .055); border-color: rgba(var(--nav-rgb), .1); color: #ecf1f7; }
.celestial-index .collection-link.is-active { background: linear-gradient(100deg, rgba(var(--nav-rgb), .13), rgba(var(--nav-rgb), .025)); border-color: rgba(var(--nav-rgb), .19); color: #f0f3f7; box-shadow: inset 0 1px 0 rgba(var(--nav-rgb), .04); }
.celestial-index .collection-link.is-active::before { top: 15px; bottom: 15px; left: -1px; background: rgb(var(--nav-rgb)); box-shadow: 0 0 11px rgba(var(--nav-rgb), .6); }
.celestial-index .collection-link.is-active small { color: rgb(var(--nav-rgb)); }
.celestial-index .sidebar-footnote { color: #64758d; }
.celestial-index .explorer-main { padding-top: 40px; }
.celestial-index .index-heading { min-height: 208px; align-items: center; margin-bottom: 26px; position: relative; }
.celestial-index .index-heading > div { max-width: 72%; }
.celestial-index .section-marker { color: var(--orbit-color); font-size: 9px; letter-spacing: .21em; margin-bottom: 19px; }
.celestial-index .section-marker > span:first-child { width: 5px; height: 5px; border-radius: 50%; box-shadow: 0 0 12px rgba(var(--orbit-rgb), .7); }
.celestial-index #collection-marker { width: auto; height: auto; background: none; }
.celestial-index h1 { font-size: clamp(30px, 2.7vw, 40px); font-weight: 500; letter-spacing: .045em; margin-bottom: 16px; text-shadow: 0 2px 24px #020611; }
.celestial-index .collection-description { color: #acb8cb; font-size: 12px; line-height: 1.95; text-shadow: 0 1px 9px #040813; }
.celestial-index .index-total { align-self: flex-end; margin-bottom: 23px; padding: 10px 0 10px 18px; border-left: 1px solid rgba(var(--orbit-rgb), .24); }
.celestial-index .index-total strong { color: #d3dfed; font-size: 34px; letter-spacing: -.04em; text-shadow: 0 0 26px #030814; }
.celestial-index .index-total > span { color: #98a9bf; }
.celestial-index .index-controls { padding: 0 19px; min-height: 62px; border: 1px solid rgba(var(--orbit-rgb), .21); border-radius: 7px; background: rgba(6, 13, 25, .9); box-shadow: inset 0 1px 0 #d6edff06, 0 8px 26px #00000014; transition: border-color .3s, box-shadow .3s; }
.celestial-index .index-controls:focus-within { border-color: rgba(var(--orbit-rgb), .5); box-shadow: 0 0 22px rgba(var(--orbit-rgb), .05); }
.celestial-index .search-field input { height: 60px; }
.celestial-index .search-field input::placeholder { color: #8797ad; }
.celestial-index .sort-field label { color: #8293aa; }
.celestial-index .index-status { min-height: 58px; color: #92a2b9; }
.celestial-index .article-ledger { display: grid; gap: 12px; border-top: 0; }
.celestial-index .ledger-entry {
  padding: 26px 24px; column-gap: 17px;
  border: 1px solid rgba(var(--orbit-rgb), .09); border-radius: 8px;
  background: linear-gradient(110deg, rgba(10,18,32,.30), rgba(7,13,25,.14));
  box-shadow: none;
  transition: border-color .28s, background .28s, box-shadow .28s, transform .28s;
  isolation: isolate;
}
.celestial-index .ledger-entry::before { inset: 0; border-radius: inherit; z-index: -1; background: linear-gradient(110deg, rgba(var(--orbit-rgb), .055), transparent 65%); transition: opacity .3s; }
.celestial-index .ledger-entry::after { content: ""; position: absolute; left: 22px; right: 72%; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--orbit-rgb), .55), transparent); opacity: .4; pointer-events: none; transition: opacity .3s, right .4s; }
.celestial-index .ledger-entry:hover, .celestial-index .ledger-entry:focus-within { border-color: rgba(var(--orbit-rgb), .39); box-shadow: 0 10px 35px #00000026, 0 0 25px rgba(var(--orbit-rgb), .025); transform: translateY(-2px); }
.celestial-index .ledger-entry:hover::after, .celestial-index .ledger-entry:focus-within::after { opacity: 1; right: 42%; }
.celestial-index .entry-number { font-size: 10px; color: rgba(var(--orbit-rgb), .62); }
.celestial-index .entry-meta { color: #8294ac; }
.celestial-index .entry-category { color: var(--orbit-color); opacity: .9; }
.celestial-index .entry-content h2 { font-size: 17px; font-weight: 500; line-height: 1.75; letter-spacing: .025em; margin: 9px 0 13px; }
.celestial-index .entry-content h2 a { color: #e7edf5; }
.celestial-index .entry-content h2 a:hover { color: #fff; text-shadow: 0 0 22px rgba(var(--orbit-rgb), .18); }
.celestial-index .entry-arrow { color: rgba(var(--orbit-rgb), .6); }
.celestial-index .entry-tags { gap: 5px 7px; color: #9aadc4; }
.celestial-index .entry-tags a { padding: 1px 7px; border: 1px solid #afc7e013; border-radius: 3px; background: #8caacc05; transition: color .2s, border-color .2s, background .2s; }
.celestial-index .entry-tags a:hover, .celestial-index .entry-tags a.is-active { border-color: rgba(var(--orbit-rgb), .32); background: rgba(var(--orbit-rgb), .07); }
.celestial-index .entry-date { color: #8496af; }
.celestial-index .load-more { border-color: rgba(var(--orbit-rgb), .27); color: #c4d3e4; border-radius: 5px; background: #07101fe6; }
.celestial-index .load-more:hover { border-color: rgba(var(--orbit-rgb), .6); background: rgba(var(--orbit-rgb), .08); }
.celestial-index .empty-state { border: 1px solid rgba(var(--orbit-rgb), .15); border-radius: 8px; background: #070e1bd9; }
.celestial-index .explorer-footer { border-color: rgba(var(--orbit-rgb), .15); color: #7f91aa; }
@media (min-width: 1600px) {
  .celestial-index .explorer-shell { max-width: 1480px; }
  .celestial-index .explorer-main { padding-right: 100px; }
  .universe-marks { right: max(3vw, calc((100vw - 1500px) / 2 - 110px)); }
}
@media (max-width: 1100px) {
  .celestial-index .ledger-entry { padding: 23px 18px; column-gap: 12px; }
  .celestial-index .entry-content h2 { font-size: 16px; }
  .celestial-index .index-heading > div { max-width: 80%; }
  .universe-marks { right: 3vw; opacity: .75; }
}
@media (max-width: 780px) {
  .universe-shade { background: linear-gradient(90deg, #040813bd, #04081324), linear-gradient(0deg, #040813d9, #04081310 85%); }
  .universe-marks { display: none; }
  .celestial-index .explorer-sidebar { padding-top: 21px; background: none; }
  .celestial-index .collection-link { padding: 8px 12px; border-color: #afc7e01a; border-radius: 5px; background: #060c19b8; }
  .celestial-index .collection-symbol { width: 8px; height: 8px; flex-shrink: 0; }
  .celestial-index .explorer-main { padding-top: 10px; }
  .celestial-index .index-heading { min-height: 190px; gap: 12px; margin-bottom: 20px; }
  .celestial-index .index-heading > div { max-width: 78%; }
  .celestial-index h1 { font-size: 30px; }
  .celestial-index .collection-description { font-size: 11px; }
  .celestial-index .section-marker { font-size: 8px; letter-spacing: .13em; }
  .celestial-index .index-total { margin-bottom: 18px; padding-left: 12px; }
  .celestial-index .index-total strong { font-size: 28px; }
  .celestial-index .index-controls { padding: 0 12px; min-height: 56px; }
  .celestial-index .search-field input { height: 54px; }
  .celestial-index .ledger-entry { padding: 23px 16px 20px; }
  .celestial-index .entry-date { right: 16px; top: 25px; }
  .celestial-index .entry-content h2 { font-size: 16px; line-height: 1.8; }
  .explorer-actions { gap: 18px; }
  .scene-motion { font-size: 9px; }
  .celestial-index .brand-context, .celestial-index .brand-divider { display: none; }
}
@media (max-width: 420px) {
  .explorer-actions { gap: 14px; }
  .celestial-index .explorer-brand { gap: 9px; font-size: 12px; }
  .celestial-index .index-heading { min-height: 175px; }
  .celestial-index h1 { font-size: 27px; }
  .celestial-index .entry-content h2 { font-size: 15px; }
  .celestial-index .ledger-entry { padding: 21px 12px 18px; column-gap: 9px; }
  .celestial-index .entry-date { position: static; }
  .celestial-index .index-controls { padding: 0 9px; }
  .celestial-index .search-field input { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .celestial-index .ledger-entry:hover, .celestial-index .ledger-entry:focus-within { transform: none; }
}

/* V4.3: pointer light is kept on the surfaces, away from the letterforms. */
.celestial-index .ledger-entry { --light-x: 28%; --light-y: 40%; }
.celestial-index .ledger-entry::before {
  background: radial-gradient(330px circle at var(--light-x) var(--light-y), rgba(var(--orbit-rgb), .065), transparent 72%);
  pointer-events: none;
}
.celestial-index .ledger-entry::after {
  inset: -1px; height: auto; padding: 1px; border-radius: inherit;
  background: radial-gradient(220px circle at var(--light-x) var(--light-y), rgba(var(--orbit-rgb), .88), rgba(var(--orbit-rgb), .10) 52%, transparent 78%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s;
}
.celestial-index .ledger-entry:hover::after,
.celestial-index .ledger-entry:focus-within::after { right: -1px; opacity: .7; }
.celestial-index .ledger-entry.is-pointer-lit::before { opacity: 1; }
.celestial-index .ledger-entry.is-pointer-lit::after { opacity: 1; }
.celestial-index .entry-number { transition: color .3s, text-shadow .3s; }
.celestial-index .ledger-entry.is-pointer-lit .entry-number { color: var(--orbit-color); text-shadow: 0 0 13px rgba(var(--orbit-rgb), .55); }
.celestial-index .ledger-entry.is-pointer-lit .entry-arrow { color: var(--orbit-color); transform: translate(2px, -2px); }
.celestial-index .collection-nav { position: relative; }
.celestial-index .collection-link { --light-x: 35%; --light-y: 50%; }
.celestial-index .collection-link.is-pointer-lit {
  background: radial-gradient(160px circle at var(--light-x) var(--light-y), rgba(var(--nav-rgb), .13), transparent 85%),
    linear-gradient(100deg, rgba(var(--nav-rgb), .045), transparent);
  border-color: rgba(var(--nav-rgb), .24);
}
.celestial-index .collection-link.is-pointer-lit.is-active {
  background: radial-gradient(160px circle at var(--light-x) var(--light-y), rgba(var(--nav-rgb), .19), transparent 85%),
    linear-gradient(100deg, rgba(var(--nav-rgb), .10), rgba(var(--nav-rgb), .025));
}
.celestial-index .collection-link.is-pointer-lit small { color: rgb(var(--nav-rgb)); text-shadow: 0 0 12px rgba(var(--nav-rgb), .4); }
.celestial-index .collection-symbol { transition: transform .45s, box-shadow .45s; }
.celestial-index .collection-link.is-pointer-lit .collection-symbol { transform: scale(1.22); box-shadow: 0 0 16px rgba(var(--nav-rgb), .28); }
.celestial-index .collection-symbol:not(.collection-system)::after {
  content: ""; position: absolute; left: -5px; top: 1px; width: 18px; height: 6px;
  border: 1px solid rgba(var(--nav-rgb), .55); border-radius: 50%;
  transform: rotate(-32deg); opacity: 0; transition: opacity .35s;
}
.celestial-index .collection-symbol::before {
  content: ""; position: absolute; left: 3px; top: 3px; width: 3px; height: 3px;
  border-radius: 50%; background: rgb(var(--nav-rgb));
  box-shadow: 0 0 5px rgba(var(--nav-rgb), .75); opacity: 0;
  transform: rotate(-32deg) translateX(10px);
}
.celestial-index .collection-link.is-pointer-lit .collection-symbol::after { opacity: .75; }
.celestial-index .collection-link.is-pointer-lit .collection-symbol::before {
  opacity: .85; animation: navigation-moon 5s linear infinite;
}
.nav-tracer {
  position: absolute; left: -8px; top: 0; width: 2px; height: var(--nav-height, 46px);
  transform: translateY(var(--nav-y, 0)); pointer-events: none; opacity: 0; border-radius: 2px;
  background: linear-gradient(transparent, rgba(var(--preview-rgb, 164,193,226), .9), transparent);
  box-shadow: 0 0 13px rgba(var(--preview-rgb, 164,193,226), .25);
  transition: transform .24s ease, height .24s, opacity .3s;
}
.is-previewing .nav-tracer { opacity: 1; }
.celestial-index .collection-link.is-locking { animation: navigation-lock .65s ease-out; }
@keyframes navigation-moon {
  from { transform: rotate(-32deg) translateX(10px) scale(.8); }
  50% { transform: rotate(148deg) translateX(10px) scale(1); }
  to { transform: rotate(328deg) translateX(10px) scale(.8); }
}
@keyframes navigation-lock {
  0% { box-shadow: inset 0 0 0 1px rgba(var(--nav-rgb), .42), 0 0 22px rgba(var(--nav-rgb), .15); }
  100% { box-shadow: inset 0 0 0 1px rgba(var(--nav-rgb), 0), 0 0 22px rgba(var(--nav-rgb), 0); }
}
.celestial-index[data-motion-paused="true"] .collection-symbol::before,
.celestial-index[data-motion-paused="true"] .collection-link.is-locking { animation: none; }
.celestial-index[data-motion-paused="true"] .nav-tracer { opacity: 0; }
.celestial-index[data-motion-paused="true"] .ledger-entry:hover,
.celestial-index[data-motion-paused="true"] .ledger-entry:focus-within { transform: none; }
@media (max-width: 780px) {
  .celestial-index .explorer-sidebar { background: none; }
  .nav-tracer { display: none; }
}
@media (hover: none), (pointer: coarse) {
  .celestial-index .ledger-entry::before, .celestial-index .ledger-entry::after { display: none; }
  .celestial-index .ledger-entry:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .celestial-index .collection-symbol::before, .nav-tracer { display: none; }
}

/* V4.5: the card is a transparent reading guide; only title text locks a link. */
.celestial-index .ledger-entry::before,
.celestial-index .ledger-entry::after { display: none; }
.celestial-index .ledger-entry:hover,
.celestial-index .ledger-entry:focus-within {
  border-color: rgba(var(--orbit-rgb), .09);
  box-shadow: none; transform: none;
}
.celestial-index .entry-content,
.celestial-index .entry-date,
.celestial-index .entry-number { text-shadow: 0 1px 5px #020610, 0 0 14px #02061099; }
.celestial-index .entry-content h2 { text-shadow: 0 1px 5px #020610, 0 0 18px #020610cc; }
.celestial-index .entry-title-link {
  display: inline; padding: 0; margin: 0;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px;
  background-image: linear-gradient(90deg, rgba(var(--orbit-rgb), .13), rgba(var(--orbit-rgb), .04));
  background-repeat: no-repeat; background-size: 0 100%;
  transition: color .2s, text-decoration-color .2s, background-size .2s;
}
.celestial-index .entry-title-link:hover,
.celestial-index .entry-title-link:focus-visible,
.celestial-index .entry-title-link.is-pointer-lit {
  color: #fff; text-decoration-color: rgba(var(--orbit-rgb), .75);
  background-size: 100% 100%; text-shadow: 0 1px 5px #020610, 0 0 16px rgba(var(--orbit-rgb), .24);
}
.celestial-index .entry-arrow { pointer-events: none; }
.celestial-index .entry-title-link:hover + .entry-arrow,
.celestial-index .entry-title-link:focus-visible + .entry-arrow,
.celestial-index .entry-title-link.is-pointer-lit + .entry-arrow { color: var(--orbit-color); transform: translate(2px, -2px); }
