/* ==========================================================
   GLORAVE // MASTER ARCHIVE CONCEPT
   01–50 is treated as a signal ledger, not a card dashboard.
   Loaded only on index.php so MYTH/HARDLINE keep their own language.
   ========================================================== */

body.gr-master-archive {
  --arc-line: rgba(255,255,255,.105);
  --arc-line-soft: rgba(255,255,255,.055);
  --arc-cyan: var(--home-neon-light);
  --arc-ember: var(--home-ember);
  --arc-panel: rgba(9,11,16,.78);
  --arc-panel-2: rgba(13,16,22,.92);
  background:
    linear-gradient(180deg, rgba(3,4,7,.12), rgba(3,4,7,.82)),
    radial-gradient(circle at 70% 7%, rgba(var(--home-tx-about-rgb),.11), transparent 27rem),
    radial-gradient(circle at 12% 4%, rgba(var(--home-ember-rgb),.12), transparent 25rem),
    #07090d;
}
[data-theme="light"] body.gr-master-archive {
  --arc-line: rgba(26,31,36,.15);
  --arc-line-soft: rgba(26,31,36,.075);
  --arc-panel: rgba(250,247,241,.84);
  --arc-panel-2: rgba(255,252,247,.94);
  background:
    radial-gradient(circle at 70% 7%, rgba(var(--home-tx-about-rgb),.08), transparent 27rem),
    radial-gradient(circle at 12% 4%, rgba(var(--home-ember-rgb),.08), transparent 25rem),
    #f1ede7;
}

.gr-master-archive::after {
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
  background:
    linear-gradient(90deg, transparent 0 8%, var(--arc-line-soft) 8% calc(8% + 1px), transparent calc(8% + 1px) 92%, var(--arc-line-soft) 92% calc(92% + 1px), transparent calc(92% + 1px)),
    repeating-linear-gradient(0deg, transparent 0 119px, rgba(255,255,255,.018) 119px 120px);
}

/* Hero stays recognisable, but loses the soft landing-page feel. */
.gr-master-archive .gr-archive-page { padding-top:30px; }
.gr-master-archive .gr-archive-hero {
  border-radius:10px;
  border-color:rgba(var(--home-tx-about-rgb),.18);
  background:
    linear-gradient(100deg, rgba(7,9,13,.98) 0%, rgba(9,12,17,.94) 50%, rgba(7,9,13,.98) 100%);
  box-shadow:0 34px 90px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.025);
}
[data-theme="light"] .gr-master-archive .gr-archive-hero {
  background:linear-gradient(100deg,rgba(252,248,242,.98),rgba(242,241,238,.96),rgba(252,248,242,.98));
}
.gr-master-archive .gr-archive-hero::before {
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(var(--home-tx-about-rgb),.035) 48% 48.08%, transparent 48.08%),
    repeating-linear-gradient(90deg, transparent 0 95px, rgba(var(--home-tx-about-rgb),.023) 95px 96px),
    radial-gradient(circle at 16% 78%, rgba(var(--home-ember-rgb),.08), transparent 28%);
}
.gr-master-archive .gr-archive-hero-bg { opacity:.42; }
.gr-master-archive .gr-kicker,
.gr-master-archive .gr-btn,
.gr-master-archive .gr-link-pill,
.gr-master-archive .theme-toggle { border-radius:5px; }
.gr-master-archive .gr-kicker { box-shadow:none; }
.gr-master-archive .gr-archive-stats { gap:0; border-top:1px solid var(--arc-line); border-bottom:1px solid var(--arc-line); }
.gr-master-archive .gr-archive-stats div {
  min-width:145px;
  padding:13px 20px 12px 0;
  border:0;
  border-right:1px solid var(--arc-line);
  border-radius:0;
  background:transparent!important;
}
.gr-master-archive .gr-archive-stats div + div { padding-left:20px; }
.gr-master-archive .gr-archive-hero-art { border-radius:8px; }
.gr-master-archive .gr-archive-hero-art::before { border-radius:4px; }

/* Section masthead */
.gr-master-archive .gr-archive-section { width:min(1540px,100%); }
.gr-master-archive .gr-archive-section-head {
  align-items:stretch;
  margin-bottom:18px;
  padding-bottom:22px;
  border-bottom:1px solid var(--arc-line);
}
.gr-master-archive .gr-showcase-index {
  min-width:72px;
  padding-top:2px;
  -webkit-text-stroke:1px rgba(var(--home-tx-about-rgb),.54);
  opacity:.9;
}
.gr-master-archive .gr-archive-section h2 { font-size:clamp(3.1rem,6vw,6.2rem); }
.gr-master-archive .gr-archive-range-status {
  min-width:250px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:12px 0 2px 26px;
  border:0;
  border-left:1px solid var(--arc-line);
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.gr-master-archive .gr-archive-range-status small { color:var(--home-muted); }
.gr-master-archive .gr-archive-range-status strong { margin-top:8px; font-size:.88rem; letter-spacing:.12em; }

/* Transmission rail */
.gr-master-archive .gr-archive-pagination {
  position:relative;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:0;
  margin:0;
  border-top:1px solid var(--arc-line);
  border-bottom:1px solid var(--arc-line);
}
.gr-master-archive .gr-archive-pagination::before {
  content:"SIGNAL / SELECT TRANSMISSION";
  position:absolute;
  right:0;
  top:-21px;
  color:rgba(255,255,255,.30);
  font-size:.48rem;
  font-weight:950;
  letter-spacing:.16em;
}
[data-theme="light"] .gr-master-archive .gr-archive-pagination::before { color:rgba(27,23,32,.36); }
.gr-master-archive .gr-archive-page-btn {
  min-height:92px;
  display:grid;
  grid-template-columns:auto 1fr;
  grid-template-rows:auto auto;
  gap:2px 12px;
  padding:15px 16px;
  border:0;
  border-right:1px solid var(--arc-line);
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.gr-master-archive .gr-archive-page-btn:last-child { border-right:0; }
.gr-master-archive .gr-archive-page-btn::before {
  content:"TRANSMISSION";
  grid-column:2;
  align-self:end;
  color:rgba(255,255,255,.29);
  font-size:.46rem;
  font-weight:950;
  letter-spacing:.15em;
}
[data-theme="light"] .gr-master-archive .gr-archive-page-btn::before { color:rgba(27,23,32,.34); }
.gr-master-archive .gr-archive-page-btn::after {
  left:0;
  right:auto;
  bottom:-1px;
  width:0;
  height:2px;
  background:linear-gradient(90deg,var(--arc-cyan),var(--arc-ember));
  transition:width .3s ease;
}
.gr-master-archive .gr-archive-page-btn span {
  grid-row:1 / span 2;
  align-self:center;
  color:transparent;
  -webkit-text-stroke:1px rgba(var(--home-tx-about-rgb),.65);
  font-size:2.15rem;
  line-height:1;
}
.gr-master-archive .gr-archive-page-btn small {
  grid-column:2;
  color:var(--home-muted);
  letter-spacing:.09em;
}
.gr-master-archive .gr-archive-page-btn:hover,
.gr-master-archive .gr-archive-page-btn.is-active {
  transform:none;
  border-color:transparent;
  background:linear-gradient(180deg,rgba(var(--home-tx-about-rgb),.065),transparent);
  box-shadow:inset 0 0 34px rgba(var(--home-tx-about-rgb),.02);
}
.gr-master-archive .gr-archive-page-btn.is-active::after { width:100%; right:auto; }
.gr-master-archive .gr-archive-page-btn.is-active span { color:var(--arc-cyan); -webkit-text-stroke:0; }

/* Ledger — ten records, no cards. */
.gr-master-archive .gr-archive-grid {
  display:block;
  margin-top:0;
  border-top:0;
}
.gr-master-archive .gr-record-entry {
  --row-shift:0px;
  position:relative;
  display:grid;
  grid-template-columns:110px minmax(0,1.15fr) minmax(330px,.82fr) 36px;
  gap:clamp(18px,3vw,42px);
  align-items:start;
  min-height:238px;
  padding:29px 0 28px;
  overflow:visible;
  border:0;
  border-bottom:1px solid var(--arc-line);
  border-radius:0;
  background:transparent;
  box-shadow:none;
  animation:archiveLedgerIn .5s both;
  transition:background .24s ease, padding-left .24s ease, padding-right .24s ease;
}
.gr-master-archive .gr-record-entry::before {
  content:"";
  position:absolute;
  inset:0 -20px;
  z-index:-1;
  opacity:0;
  background:linear-gradient(90deg,rgba(var(--home-tx-about-rgb),.06),transparent 36%,rgba(var(--home-ember-rgb),.025));
  transition:opacity .24s ease;
}
.gr-master-archive .gr-record-entry:hover { transform:none; border-color:var(--arc-line); box-shadow:none; }
.gr-master-archive .gr-record-entry:hover::before { opacity:1; }
.gr-master-archive .gr-record-entry.is-milestone::after {
  content:"TRANSMISSION END";
  position:absolute;
  right:0;
  bottom:7px;
  color:rgba(var(--home-ember-rgb),.72);
  font-size:.43rem;
  font-weight:1000;
  letter-spacing:.17em;
}
.gr-record-index { display:flex; flex-direction:column; gap:8px; padding-top:3px; }
.gr-record-index strong {
  color:transparent;
  -webkit-text-stroke:1px rgba(var(--home-tx-about-rgb),.56);
  font-size:clamp(2.55rem,4vw,4.25rem);
  line-height:.78;
  letter-spacing:-.08em;
}
.gr-record-index small { color:var(--home-muted); font-size:.49rem; font-weight:950; letter-spacing:.17em; }
.gr-record-copy { min-width:0; }
.gr-record-meta { display:flex; align-items:center; gap:9px; margin-bottom:11px; color:var(--home-muted); font-size:.51rem; font-weight:950; letter-spacing:.13em; }
.gr-record-meta i { width:28px; height:1px; background:linear-gradient(90deg,var(--arc-cyan),transparent); }
.gr-record-copy h3 {
  margin:0;
  max-width:680px;
  color:var(--home-text-color);
  font-size:clamp(1.75rem,2.6vw,2.85rem);
  line-height:.95;
  letter-spacing:-.055em;
  text-transform:uppercase;
}
.gr-record-copy p {
  max-width:760px;
  margin:16px 0 0;
  color:var(--home-muted);
  font-size:.88rem;
  line-height:1.66;
}
.gr-record-tracks { min-width:0; padding-top:2px; }
.gr-record-tracks-head { display:flex; align-items:center; gap:10px; padding-bottom:9px; border-bottom:1px solid var(--arc-line); color:var(--home-muted); font-size:.48rem; font-weight:950; letter-spacing:.16em; }
.gr-record-tracks-head i { flex:1; height:1px; background:linear-gradient(90deg,var(--arc-line),transparent); }
.gr-record-tracks .gr-track-list { margin:0; padding:0; border:0; }
.gr-record-tracks .gr-track-list li {
  min-height:31px;
  display:grid;
  grid-template-columns:28px 1fr;
  align-items:center;
  padding:0;
  border-bottom:1px solid var(--arc-line-soft);
  transition:padding-left .2s ease, background .2s ease;
}
.gr-record-tracks .gr-track-list li:hover { padding-left:7px; background:linear-gradient(90deg,rgba(var(--home-tx-about-rgb),.045),transparent); }
.gr-record-tracks .gr-track-list span { color:var(--arc-cyan); font-size:.53rem; font-weight:900; }
.gr-record-tracks .gr-track-list strong { font-size:.72rem; letter-spacing:.005em; }
.gr-record-channel {
  min-height:175px;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  gap:3px;
  padding-bottom:5px;
  border-left:1px solid var(--arc-line-soft);
}
.gr-record-channel i { width:2px; background:rgba(var(--home-tx-about-rgb),.35); box-shadow:0 0 9px rgba(var(--home-tx-about-rgb),.12); }
.gr-record-channel i:nth-child(1){height:18%}.gr-record-channel i:nth-child(2){height:43%}.gr-record-channel i:nth-child(3){height:72%}.gr-record-channel i:nth-child(4){height:31%}
.gr-record-entry:hover .gr-record-channel i { background:var(--arc-cyan); }

/* Bottom nav is utilitarian, not a floating pill row. */
.gr-master-archive .gr-archive-bottom-nav {
  margin-top:0;
  padding:20px 0 0;
  border-top:0;
}
.gr-master-archive .gr-archive-bottom-nav .gr-link-pill { min-width:170px; background:transparent; }
.gr-master-archive .gr-archive-bottom-nav > span { letter-spacing:.16em; }

/* Continuation / era gates */
.gr-master-archive .gr-archive-future {
  width:min(1540px,100%);
  grid-template-columns:minmax(160px,.36fr) minmax(0,1fr);
  align-items:start;
  gap:clamp(30px,5vw,70px);
  margin-top:clamp(72px,10vw,140px);
  padding:clamp(34px,5vw,64px) 0 0;
  overflow:visible;
  border:0;
  border-top:1px solid var(--arc-line);
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.gr-master-archive .gr-archive-future::before { display:none; }
.gr-master-archive .gr-archive-future-number {
  position:static;
  align-self:start;
  color:transparent;
  -webkit-text-stroke:1px rgba(var(--home-tx-about-rgb),.48);
  font-size:clamp(6rem,12vw,12rem);
  line-height:.68;
  opacity:.78;
}
.gr-master-archive .gr-archive-future-copy { max-width:none; }
.gr-master-archive .gr-archive-future-copy h2 { font-size:clamp(3rem,6.7vw,6.8rem); }
.gr-master-archive .gr-archive-future-tags { margin-top:25px; }
.gr-master-archive .gr-archive-future-tags span { border-radius:2px; background:transparent; }
.gr-era-gates { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:28px; }
.gr-era-gate {
  position:relative;
  min-height:170px;
  display:grid;
  align-content:end;
  gap:6px;
  padding:22px;
  overflow:hidden;
  border:1px solid var(--arc-line);
  color:var(--home-text-color);
  text-decoration:none;
  transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease;
}
.gr-era-gate::before { content:""; position:absolute; inset:0; z-index:-1; opacity:.75; }
.gr-era-gate small { color:var(--home-muted); font-size:.49rem; font-weight:1000; letter-spacing:.17em; }
.gr-era-gate strong { font-size:clamp(1.75rem,3.2vw,3.3rem); line-height:.88; letter-spacing:-.06em; }
.gr-era-gate span { color:var(--home-muted); font-size:.71rem; font-weight:850; letter-spacing:.08em; }
.gr-era-gate b { position:absolute; right:18px; top:16px; font-size:1rem; }
.gr-era-gate--myth { border-color:rgba(139,104,238,.28); }
.gr-era-gate--myth::before { background:linear-gradient(120deg,rgba(139,104,238,.11),transparent 48%),repeating-linear-gradient(90deg,transparent 0 52px,rgba(139,104,238,.035) 52px 53px); }
.gr-era-gate--myth strong,.gr-era-gate--myth b { color:#b79fff; }
.gr-era-gate--hardline { border-color:rgba(255,49,56,.23); }
.gr-era-gate--hardline::before { background:linear-gradient(120deg,rgba(255,49,56,.10),transparent 54%),linear-gradient(112deg,transparent 58%,rgba(255,49,56,.055) 58.2% 61%,transparent 61.2%); }
.gr-era-gate--hardline strong,.gr-era-gate--hardline b { color:#ff656a; }
.gr-era-gate:hover { transform:translateY(-4px); box-shadow:0 20px 48px rgba(0,0,0,.22); }
.gr-era-gate--myth:hover { border-color:rgba(139,104,238,.62); }
.gr-era-gate--hardline:hover { border-color:rgba(255,49,56,.55); }
.gr-master-archive .gr-archive-future-signal { display:none; }

@keyframes archiveLedgerIn { from{opacity:0;transform:translateY(13px)} to{opacity:1;transform:translateY(0)} }

@media (max-width:1120px) {
  .gr-master-archive .gr-record-entry { grid-template-columns:82px minmax(0,1fr) minmax(280px,.75fr); }
  .gr-record-channel { display:none; }
}
@media (max-width:850px) {
  .gr-master-archive .gr-archive-pagination { grid-template-columns:repeat(5,minmax(108px,1fr)); overflow:auto; }
  .gr-master-archive .gr-archive-page-btn { min-width:108px; }
  .gr-master-archive .gr-record-entry { grid-template-columns:72px 1fr; gap:15px 18px; }
  .gr-record-tracks { grid-column:2; }
  .gr-record-copy h3 { font-size:clamp(1.65rem,6vw,2.5rem); }
  .gr-era-gates { grid-template-columns:1fr; }
  .gr-master-archive .gr-archive-future { grid-template-columns:1fr; }
  .gr-master-archive .gr-archive-future-number { font-size:7rem; }
}
@media (max-width:620px) {
  .gr-master-archive .gr-archive-section-head { display:block; }
  .gr-master-archive .gr-archive-range-status { margin-top:20px; padding:12px 0 0; border-left:0; border-top:1px solid var(--arc-line); }
  .gr-master-archive .gr-archive-pagination::before { display:none; }
  .gr-master-archive .gr-record-entry { grid-template-columns:1fr; padding:25px 0; }
  .gr-record-index { flex-direction:row; align-items:baseline; }
  .gr-record-index strong { font-size:3rem; }
  .gr-record-copy,.gr-record-tracks { grid-column:1; }
  .gr-record-copy p { font-size:.82rem; }
  .gr-master-archive .gr-archive-bottom-nav { gap:8px; }
  .gr-master-archive .gr-archive-bottom-nav .gr-link-pill { min-width:0; padding:9px 11px; font-size:.69rem; }
  .gr-era-gate { min-height:145px; }
}

/* ==========================================================
   V4 // REFINED ROUNDING + LIGHT THEME SYSTEM PASS
   Preserve the archive concept, restore comfort and premium depth.
   ========================================================== */
body.gr-master-archive {
  --arc-radius-xl:32px;
  --arc-radius-lg:26px;
  --arc-radius-md:18px;
  --arc-radius-sm:13px;
  --arc-surface:rgba(16,18,25,.78);
  --arc-surface-raised:rgba(20,22,30,.94);
  --arc-surface-inset:rgba(255,255,255,.035);
  --arc-border:rgba(255,255,255,.105);
  --arc-shadow-soft:0 18px 54px rgba(0,0,0,.20);
  --arc-shadow-card:0 20px 58px rgba(0,0,0,.24);
}
[data-theme="light"] body.gr-master-archive {
  --home-muted:rgba(27,23,32,.72);
  --arc-line:rgba(39,31,44,.12);
  --arc-line-soft:rgba(39,31,44,.07);
  --arc-surface:rgba(255,252,247,.82);
  --arc-surface-raised:rgba(255,253,249,.97);
  --arc-surface-inset:rgba(48,35,40,.035);
  --arc-border:rgba(39,31,44,.13);
  --arc-shadow-soft:0 18px 50px rgba(54,40,48,.08);
  --arc-shadow-card:0 20px 56px rgba(54,40,48,.10);
  background:
    radial-gradient(circle at 72% 5%,rgba(var(--home-tx-about-rgb),.075),transparent 30rem),
    radial-gradient(circle at 10% 2%,rgba(var(--home-ember-rgb),.07),transparent 28rem),
    #f4f0ea;
}

/* Restore the soft GloRave silhouette. */
.gr-master-archive .gr-archive-hero {
  border-radius:var(--arc-radius-xl);
  box-shadow:0 30px 86px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.035);
}
.gr-master-archive .gr-archive-hero-art { border-radius:var(--arc-radius-lg); }
.gr-master-archive .gr-archive-hero-art::before { border-radius:calc(var(--arc-radius-lg) - 4px); }
.gr-master-archive .gr-kicker { border-radius:999px; }
.gr-master-archive .gr-btn,
.gr-master-archive .gr-link-pill,
.gr-master-archive .theme-toggle { border-radius:15px; }

.gr-master-archive .gr-archive-stats {
  gap:8px;
  padding:7px;
  border:1px solid var(--arc-border);
  border-radius:20px;
  background:rgba(255,255,255,.025);
}
.gr-master-archive .gr-archive-stats div,
.gr-master-archive .gr-archive-stats div + div {
  min-width:0;
  flex:1;
  padding:12px 14px;
  border:0;
  border-radius:14px;
  background:rgba(255,255,255,.025)!important;
}
[data-theme="light"] .gr-master-archive .gr-archive-stats {
  background:rgba(255,255,255,.52);
  box-shadow:0 10px 26px rgba(54,40,48,.045);
}
[data-theme="light"] .gr-master-archive .gr-archive-stats div { background:rgba(255,255,255,.74)!important; }

/* Section controls become rounded instruments, not table chrome. */
.gr-master-archive .gr-archive-range-status {
  min-width:250px;
  align-self:center;
  padding:15px 18px;
  border:1px solid var(--arc-border);
  border-radius:var(--arc-radius-md);
  background:var(--arc-surface);
  box-shadow:var(--arc-shadow-soft);
}
.gr-master-archive .gr-archive-pagination {
  gap:6px;
  padding:7px;
  border:1px solid var(--arc-border);
  border-radius:24px;
  background:var(--arc-surface);
  box-shadow:var(--arc-shadow-soft);
}
.gr-master-archive .gr-archive-pagination::before { top:-24px; }
.gr-master-archive .gr-archive-page-btn {
  min-height:82px;
  padding:14px 15px;
  border:1px solid transparent;
  border-radius:17px;
}
.gr-master-archive .gr-archive-page-btn:last-child { border-right:1px solid transparent; }
.gr-master-archive .gr-archive-page-btn::after {
  left:14px;
  right:14px;
  bottom:7px;
  width:auto;
  height:2px;
  border-radius:99px;
  opacity:0;
  transform:scaleX(.35);
  transform-origin:left;
  transition:opacity .25s ease,transform .25s ease;
}
.gr-master-archive .gr-archive-page-btn:hover,
.gr-master-archive .gr-archive-page-btn.is-active {
  border-color:rgba(var(--home-tx-about-rgb),.18);
  border-right-color:rgba(var(--home-tx-about-rgb),.18);
  border-radius:17px;
  background:linear-gradient(145deg,rgba(var(--home-tx-about-rgb),.09),rgba(var(--home-ember-rgb),.035));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
}
.gr-master-archive .gr-archive-page-btn.is-active::after { opacity:1; transform:scaleX(1); }

/* Archive entries: structured records, but comfortable cards again. */
.gr-master-archive .gr-archive-grid {
  display:grid;
  gap:14px;
  margin-top:16px;
}
.gr-master-archive .gr-record-entry {
  grid-template-columns:96px minmax(0,1.15fr) minmax(330px,.82fr) 28px;
  min-height:226px;
  padding:26px 24px;
  overflow:hidden;
  border:1px solid var(--arc-border);
  border-radius:var(--arc-radius-lg);
  background:
    radial-gradient(circle at 0 0,rgba(var(--home-tx-about-rgb),.055),transparent 30%),
    linear-gradient(145deg,rgba(255,255,255,.035),transparent 52%),
    var(--arc-surface);
  box-shadow:var(--arc-shadow-card);
  transition:transform .24s ease,border-color .24s ease,box-shadow .24s ease,background .24s ease;
}
.gr-master-archive .gr-record-entry::before {
  inset:0;
  z-index:0;
  border-radius:inherit;
  background:linear-gradient(105deg,rgba(var(--home-tx-about-rgb),.055),transparent 42%,rgba(var(--home-ember-rgb),.035));
}
.gr-master-archive .gr-record-entry > * { position:relative; z-index:1; }
.gr-master-archive .gr-record-entry:hover {
  transform:translateY(-3px);
  border-color:rgba(var(--home-tx-about-rgb),.26);
  box-shadow:0 26px 68px rgba(0,0,0,.29);
}
.gr-master-archive .gr-record-entry.is-milestone::after { right:23px; bottom:10px; z-index:2; }
.gr-record-index {
  width:74px;
  min-height:78px;
  padding:12px 10px;
  border:1px solid rgba(var(--home-tx-about-rgb),.14);
  border-radius:17px;
  background:rgba(var(--home-tx-about-rgb),.035);
}
.gr-record-index strong { font-size:clamp(2.2rem,3.2vw,3.5rem); }
.gr-record-tracks {
  padding:13px 14px 12px;
  border:1px solid var(--arc-line-soft);
  border-radius:18px;
  background:var(--arc-surface-inset);
}
.gr-record-tracks .gr-track-list li { min-height:34px; border-radius:8px; padding:0 5px; }
.gr-record-tracks .gr-track-list li:hover { padding-left:10px; }
.gr-record-channel { border-left:0; opacity:.7; }

.gr-master-archive .gr-archive-bottom-nav {
  margin-top:14px;
  padding:9px;
  border:1px solid var(--arc-border);
  border-radius:20px;
  background:var(--arc-surface);
  box-shadow:var(--arc-shadow-soft);
}
.gr-master-archive .gr-archive-bottom-nav .gr-link-pill {
  min-width:170px;
  background:rgba(255,255,255,.025);
}

/* Future section becomes a final premium panel. */
.gr-master-archive .gr-archive-future {
  grid-template-columns:minmax(145px,.30fr) minmax(0,1fr);
  margin-top:clamp(72px,9vw,125px);
  padding:clamp(30px,4.5vw,56px);
  overflow:hidden;
  border:1px solid var(--arc-border);
  border-radius:var(--arc-radius-xl);
  background:
    radial-gradient(circle at 12% 22%,rgba(var(--home-tx-about-rgb),.06),transparent 28%),
    radial-gradient(circle at 92% 82%,rgba(var(--home-ember-rgb),.05),transparent 26%),
    var(--arc-surface);
  box-shadow:var(--arc-shadow-card);
}
.gr-master-archive .gr-archive-future-tags { gap:7px; }
.gr-master-archive .gr-archive-future-tags span {
  padding:7px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.025);
}
.gr-era-gates { gap:12px; }
.gr-era-gate {
  border-radius:22px;
  background:rgba(255,255,255,.018);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
.gr-era-gate::before { border-radius:inherit; }

/* Light theme: explicit surfaces and stronger information hierarchy. */
[data-theme="light"] .gr-master-archive .gr-archive-hero {
  border-color:rgba(39,31,44,.12);
  background:linear-gradient(110deg,rgba(255,253,249,.98),rgba(247,244,241,.98),rgba(255,253,249,.98));
  box-shadow:0 24px 70px rgba(54,40,48,.09), inset 0 1px 0 rgba(255,255,255,.9);
}
[data-theme="light"] .gr-master-archive .gr-archive-range-status,
[data-theme="light"] .gr-master-archive .gr-archive-pagination,
[data-theme="light"] .gr-master-archive .gr-archive-bottom-nav,
[data-theme="light"] .gr-master-archive .gr-archive-future {
  background:rgba(255,253,249,.94);
  border-color:rgba(39,31,44,.12);
  box-shadow:0 18px 50px rgba(54,40,48,.07);
}
[data-theme="light"] .gr-master-archive .gr-archive-page-btn:hover,
[data-theme="light"] .gr-master-archive .gr-archive-page-btn.is-active {
  background:linear-gradient(145deg,rgba(var(--home-tx-about-rgb),.10),rgba(var(--home-ember-rgb),.045));
}
[data-theme="light"] .gr-master-archive .gr-record-entry {
  border-color:rgba(39,31,44,.115);
  background:
    radial-gradient(circle at 0 0,rgba(var(--home-tx-about-rgb),.055),transparent 31%),
    linear-gradient(145deg,rgba(255,255,255,.88),rgba(255,255,255,.48)),
    #fbf8f3;
  box-shadow:0 18px 48px rgba(54,40,48,.075);
}
[data-theme="light"] .gr-master-archive .gr-record-entry:hover {
  border-color:rgba(var(--home-tx-about-rgb),.25);
  box-shadow:0 24px 58px rgba(54,40,48,.105);
}
[data-theme="light"] .gr-record-index { background:rgba(var(--home-tx-about-rgb),.055); }
[data-theme="light"] .gr-record-copy h3 { color:#18141d; }
[data-theme="light"] .gr-record-copy p,
[data-theme="light"] .gr-record-meta,
[data-theme="light"] .gr-record-tracks-head { color:rgba(27,23,32,.69); }
[data-theme="light"] .gr-record-tracks {
  border-color:rgba(39,31,44,.09);
  background:rgba(52,41,48,.032);
}
[data-theme="light"] .gr-record-tracks .gr-track-list strong { color:#29232d; }
[data-theme="light"] .gr-record-tracks .gr-track-list li { border-bottom-color:rgba(39,31,44,.075); }
[data-theme="light"] .gr-master-archive .gr-archive-future-tags span { background:rgba(48,35,40,.035); }
[data-theme="light"] .gr-era-gate { background:rgba(255,255,255,.48); }

@media (max-width:1120px) {
  .gr-master-archive .gr-record-entry { grid-template-columns:78px minmax(0,1fr) minmax(280px,.75fr); }
  .gr-record-index { width:66px; }
}
@media (max-width:850px) {
  .gr-master-archive .gr-archive-pagination { padding:6px; }
  .gr-master-archive .gr-record-entry { grid-template-columns:72px 1fr; }
  .gr-record-index { width:64px; }
}
@media (max-width:620px) {
  .gr-master-archive .gr-archive-range-status { padding:13px 14px; border:1px solid var(--arc-border); border-radius:16px; }
  .gr-master-archive .gr-record-entry { padding:20px; border-radius:22px; }
  .gr-record-index { width:auto; min-height:0; padding:9px 11px; border-radius:14px; }
  .gr-record-tracks { padding:11px 12px; border-radius:16px; }
  .gr-master-archive .gr-archive-bottom-nav { border-radius:17px; }
  .gr-master-archive .gr-archive-future { padding:26px 20px; border-radius:24px; }
  .gr-era-gate { border-radius:18px; }
}

/* ==========================================================
   V5 // CARD GEOMETRY FIX
   Two-up archive cards need an internal layout sized for a card,
   not the old full-width ledger. Prevent title/track collisions.
   ========================================================== */
.gr-master-archive .gr-archive-grid {
  align-items: stretch;
}
.gr-master-archive .gr-record-entry {
  grid-template-columns: 76px minmax(0,1fr) !important;
  grid-auto-rows: auto;
  gap: 14px 18px !important;
  min-height: 0;
  align-content: start;
  padding: 22px !important;
}
.gr-master-archive .gr-record-index {
  width: 64px;
  min-height: 72px;
  padding: 10px 8px;
}
.gr-master-archive .gr-record-copy {
  grid-column: 2;
  min-width: 0;
}
.gr-master-archive .gr-record-copy h3 {
  max-width: none;
  font-size: clamp(1.72rem,2.2vw,2.45rem);
  line-height: .94;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.gr-master-archive .gr-record-copy p {
  max-width: none;
  margin-top: 13px;
  font-size: .84rem;
  line-height: 1.62;
}
.gr-master-archive .gr-record-tracks {
  grid-column: 1 / -1 !important;
  width: 100%;
  min-width: 0;
  margin-top: 2px;
}
.gr-master-archive .gr-record-tracks-head {
  min-width: 0;
}
.gr-master-archive .gr-record-tracks-head > span {
  min-width: 0;
  white-space: normal;
}
.gr-master-archive .gr-record-channel { display:none !important; }

@media (max-width:850px) {
  .gr-master-archive .gr-record-entry {
    grid-template-columns: 68px minmax(0,1fr) !important;
  }
  .gr-master-archive .gr-record-index { width: 60px; }
  .gr-master-archive .gr-record-tracks { grid-column: 1 / -1 !important; }
}
@media (max-width:620px) {
  .gr-master-archive .gr-record-entry {
    grid-template-columns: 1fr !important;
    gap: 13px !important;
    padding: 18px !important;
  }
  .gr-master-archive .gr-record-index,
  .gr-master-archive .gr-record-copy,
  .gr-master-archive .gr-record-tracks { grid-column: 1 !important; }
  .gr-master-archive .gr-record-index {
    width: auto;
    min-height: 0;
  }
  .gr-master-archive .gr-record-copy h3 {
    font-size: clamp(1.7rem,9vw,2.35rem);
  }
}

/* ==========================================================
   V7 // MOBILE FUTURE PANEL REBUILD
   50+ becomes a decorative marker on phones/tablets instead of
   consuming a layout column. The roadmap closing panel uses the
   full available width and stays stable in EN/RU.
   ========================================================== */
@media (max-width: 760px) {
  .gr-master-archive .gr-archive-future {
    position: relative;
    display: block !important;
    min-height: 0;
    margin-top: clamp(54px, 12vw, 76px);
    padding: 24px 20px 20px !important;
    overflow: hidden;
  }

  .gr-master-archive .gr-archive-future-number {
    position: absolute !important;
    top: 20px;
    left: 18px;
    right: auto;
    bottom: auto;
    z-index: 0;
    margin: 0;
    font-size: clamp(5.2rem, 24vw, 7.2rem) !important;
    line-height: .72;
    letter-spacing: -.1em;
    opacity: .36;
    pointer-events: none;
  }

  .gr-master-archive .gr-archive-future-copy {
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
    max-width: none;
    padding-top: 82px;
  }

  .gr-master-archive .gr-archive-future-copy > .gr-kicker {
    max-width: 100%;
    white-space: normal;
  }

  .gr-master-archive .gr-archive-future-copy h2 {
    width: 100%;
    max-width: 100%;
    margin-top: 14px;
    font-size: clamp(2.6rem, 11.5vw, 3.55rem);
    line-height: .87;
    letter-spacing: -.065em;
    text-wrap: balance;
  }

  .gr-master-archive .gr-archive-future-copy p {
    width: 100%;
    max-width: none;
    margin-top: 18px;
    font-size: .92rem;
    line-height: 1.62;
  }

  .gr-master-archive .gr-archive-future-copy p + p {
    margin-top: 13px;
  }

  .gr-master-archive .gr-archive-future-tags {
    width: 100%;
    margin-top: 20px;
    gap: 7px;
  }

  .gr-master-archive .gr-archive-future-tags span {
    max-width: 100%;
    white-space: normal;
    line-height: 1.25;
  }

  .gr-master-archive .gr-era-gates {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 22px;
  }

  .gr-master-archive .gr-era-gate {
    width: 100%;
    min-width: 0;
    min-height: 132px;
    padding: 18px;
  }

  .gr-master-archive .gr-era-gate strong {
    font-size: clamp(1.95rem, 9vw, 2.7rem);
  }

  .gr-master-archive .gr-era-gate small,
  .gr-master-archive .gr-era-gate span {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 430px) {
  .gr-master-archive .gr-archive-future {
    padding: 20px 16px 16px !important;
    border-radius: 22px;
  }

  .gr-master-archive .gr-archive-future-number {
    top: 17px;
    left: 14px;
    font-size: 5.2rem !important;
  }

  .gr-master-archive .gr-archive-future-copy {
    padding-top: 72px;
  }

  .gr-master-archive .gr-archive-future-copy h2 {
    font-size: clamp(2.3rem, 12.2vw, 2.9rem);
  }

  .gr-master-archive .gr-archive-future-copy p {
    font-size: .88rem;
  }

  .gr-master-archive .gr-era-gate {
    min-height: 120px;
    padding: 16px;
    border-radius: 17px;
  }
}


/* ==========================================================
   ERA GATE // CLOSE RANGE 71–80
   ========================================================== */
.gr-era-gate--close{border-color:rgba(88,216,193,.25)}
.gr-era-gate--close::before{background:linear-gradient(120deg,rgba(88,216,193,.10),transparent 50%),radial-gradient(circle at 85% 25%,rgba(230,178,110,.08),transparent 30%)}
.gr-era-gate--close strong,.gr-era-gate--close b{color:#76e0cd}
.gr-era-gate--close:hover{border-color:rgba(88,216,193,.58)}
@media(min-width:1040px){.gr-era-gates{grid-template-columns:repeat(3,1fr)}}
[data-theme="light"] .gr-era-gate--close strong,[data-theme="light"] .gr-era-gate--close b{color:#197f6e}
[data-theme="light"] .gr-era-gate--close{border-color:rgba(31,133,114,.28)}

/* AFTER HOURS 81–90 era gate */
.gr-era-gate--after{border-color:rgba(105,186,255,.26)}
.gr-era-gate--after::before{background:linear-gradient(120deg,rgba(105,186,255,.10),transparent 52%),repeating-linear-gradient(0deg,transparent 0 28px,rgba(255,180,93,.035) 28px 29px)}
.gr-era-gate--after strong,.gr-era-gate--after b{color:#79c6ff}
.gr-era-gate--after:hover{border-color:rgba(105,186,255,.60)}
[data-theme="light"] .gr-era-gate--after strong,[data-theme="light"] .gr-era-gate--after b{color:#2878ad}
[data-theme="light"] .gr-era-gate--after{border-color:rgba(39,121,176,.28)}
@media(min-width:1200px){.gr-era-gates{grid-template-columns:repeat(4,1fr)}}
@media(min-width:760px) and (max-width:1199px){.gr-era-gates{grid-template-columns:repeat(2,1fr)}}

.gr-era-gate--synthetic{border-color:rgba(183,156,255,.27)}
.gr-era-gate--synthetic::before{background:linear-gradient(120deg,rgba(183,156,255,.105),transparent 52%),radial-gradient(circle at 86% 24%,rgba(120,224,207,.075),transparent 30%)}
.gr-era-gate--synthetic strong,.gr-era-gate--synthetic b{color:#c1adff}
.gr-era-gate--synthetic:hover{border-color:rgba(183,156,255,.62)}
[data-theme="light"] .gr-era-gate--synthetic strong,[data-theme="light"] .gr-era-gate--synthetic b{color:#7454b4}
[data-theme="light"] .gr-era-gate--synthetic{border-color:rgba(116,84,180,.28)}
@media(min-width:1300px){.gr-era-gates{grid-template-columns:repeat(5,minmax(0,1fr))}.gr-era-gate--synthetic strong{font-size:clamp(1.45rem,2.1vw,2.55rem)}}

/* ==========================================================
   V8 // CORE 50+ ERA GATES DESKTOP FIT
   Keep all five continuation eras readable in one desktop row.
   Prevent viewport-sized type from overflowing narrow grid cards.
   ========================================================== */
@media (min-width: 1300px) {
  .gr-master-archive .gr-era-gates {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
  }

  .gr-master-archive .gr-era-gate {
    min-width: 0;
    min-height: 174px;
    padding: 18px 14px;
  }

  .gr-master-archive .gr-era-gate small {
    min-width: 0;
    max-width: 100%;
    padding-right: 20px;
    font-size: clamp(.44rem, .48vw, .52rem);
    line-height: 1.35;
    letter-spacing: .11em;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .gr-master-archive .gr-era-gate strong,
  .gr-master-archive .gr-era-gate--synthetic strong {
    min-width: 0;
    max-width: 100%;
    font-size: clamp(1.65rem, 1.9vw, 2.15rem);
    line-height: .9;
    letter-spacing: -.055em;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    text-wrap: balance;
  }

  .gr-master-archive .gr-era-gate span {
    min-width: 0;
    max-width: 100%;
    font-size: clamp(.62rem, .66vw, .72rem);
    line-height: 1.25;
    letter-spacing: .065em;
    white-space: normal;
  }

  .gr-master-archive .gr-era-gate b {
    top: 14px;
    right: 13px;
  }
}
