/* V2.2 Nova — independent version-history archive; inherits site theme tokens. */
:root { --archive-width: 1180px; }
body.version-history-page { min-width: 0; background: var(--surface); }
.version-history-page .archive-header {
  position: sticky; z-index: 80; inset: 0 0 auto; padding: 0; border-bottom: 1px solid var(--line);
  background: var(--header-bg); box-shadow: 0 8px 26px rgba(18,34,46,.045);
}
.version-history-page .archive-header-inner {
  width: min(var(--archive-width), 92vw); min-height: 76px; margin: 0 auto;
  display: flex; align-items: center; gap: clamp(12px,2.4vw,35px);
}
.version-history-page .archive-brand { display: inline-flex; width: 124px; height: 56px; flex: 0 0 124px; align-items: center; }
.version-history-page .archive-brand img { display: block; width: 124px; height: 56px; object-fit: contain; }
.version-history-page .archive-label { color: var(--muted); font-size: 10px; font-weight: 760; text-transform: uppercase; letter-spacing: .15em; padding-left: 22px; border-left: 1px solid var(--line); }
.version-history-page .archive-controls { margin-left: auto; display: flex; align-items: center; gap: clamp(12px,2vw,24px); }
.version-history-page .archive-controls select { color: var(--ink); background: var(--control-bg); border: 1px solid var(--line); border-radius: 8px; padding: 9px 25px 9px 10px; font-size: 12px; font-weight: 750; min-height: 42px; cursor: pointer; }
.version-history-page .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.version-history-page .archive-main { width: min(var(--archive-width),92vw); margin: 0 auto; padding-bottom: 74px; }
.version-history-page .archive-intro { padding: clamp(56px, 8vw, 112px) 0 68px; display: grid; grid-template-columns: minmax(0,1fr) 280px; align-items: end; gap: 58px; }
.version-history-page .intro-copy { max-width: 770px; }
.version-history-page .archive-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin: 0 0 26px; color: var(--accent-dark); letter-spacing: .14em; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.version-history-page .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.version-history-page .tiny-rule { width: 20px; height: 1px; background: var(--line); }
.version-history-page h1 { font-size: clamp(3.35rem, 7.3vw, 6.35rem); line-height: 1.025; font-weight: 830; letter-spacing: -.072em; max-width: 900px; margin: 0; overflow-wrap: break-word; }
.version-history-page .headline-period { color: var(--accent); }
.version-history-page .archive-lead { max-width: 630px; color: var(--ink-soft); font-size: clamp(15px,1.5vw,17px); line-height: 1.77; margin: 28px 0 27px; }
.version-history-page .return-link, .version-history-page .return-link:visited { color: var(--accent-dark); display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; text-decoration: none; }
.version-history-page .return-link:hover { text-decoration: underline; }
.version-history-page .return-link span { font-size: 21px; line-height: 1; }
.version-history-page .intro-stats { border-top: 1px solid var(--line); align-self: stretch; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-content: end; column-gap: 20px; row-gap: 25px; }
.version-history-page .intro-stats > div:not(.stat-orbit) { display: flex; flex-direction: column; gap: 1px; }
.version-history-page .intro-stats strong { font-weight: 790; font-size: clamp(2.7rem,5vw,4rem); letter-spacing: -.08em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.version-history-page .intro-stats span { font-size: 11px; color: var(--detail-muted); letter-spacing: .07em; font-weight: 700; text-transform: uppercase; }
.version-history-page .stat-orbit { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; }
.version-history-page .stat-orbit i { flex: 1; border-top: 1px dashed var(--steel); position: relative; }
.version-history-page .stat-orbit i::after { content: ''; position: absolute; right: 0; top: -3px; border-right: 1px solid var(--steel); border-top: 1px solid var(--steel); transform: rotate(45deg); width: 5px; height: 5px; }
.version-history-page .archive-tabs { display: block; width: 100%; min-width: 0; order: initial; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); padding: 12px 16px; margin-bottom: 34px; }
.version-history-page .archive-tabs .tab-caption { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; display: block; padding: 0 11px 6px; }
.version-history-page .era-links { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 7px; }
.version-history-page .era-link, .version-history-page .era-link:visited { min-width: 0; border-radius: 8px; display: flex; align-items: center; gap: 11px; padding: 13px 13px; text-decoration: none; color: var(--ink-soft); font-size: 12px; font-weight: 790; transition: background .16s ease, color .16s ease; }
.version-history-page .era-link:hover, .version-history-page .era-link.is-active { background: var(--accent-soft); color: var(--accent-dark); }
.version-history-page .era-dot { height: 9px; width: 9px; flex: 0 0 9px; border-radius: 2px; display: inline-block; }
.version-history-page .dot-null { background: #8b99a3; }
.version-history-page .dot-millennium { background: #308d95; }
.version-history-page .dot-luna { background: #8274c6; }
.version-history-page .dot-nova { background: #cf673f; }
.version-history-page .era-link-count { margin-left: auto; opacity: .64; font-weight: 650; font-variant-numeric: tabular-nums; }
.version-history-page .era-collection { display: grid; gap: 30px; }
.version-history-page .era-section { --era-accent: #74818e; --era-glow: rgba(110,128,145,.13); position: relative; min-width: 0; display: grid; grid-template-columns: 300px minmax(0,1fr); align-items: stretch; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); overflow: clip; scroll-margin-top: 110px; box-shadow: var(--card-shadow); }
.version-history-page .era-millennium { --era-accent:#37858b; --era-glow:rgba(60,147,149,.16); }
.version-history-page .era-luna { --era-accent:#8a76bc; --era-glow:rgba(133,115,190,.16); }
.version-history-page .era-nova { --era-accent:#c56445; --era-glow:rgba(199,100,69,.14); }
.version-history-page .era-side { display: flex; flex-direction: column; min-width: 0; min-height: 290px; padding: 32px 29px; background: radial-gradient(ellipse at -16% -15%,var(--era-glow),transparent 70%), var(--surface); border-right: 1px solid var(--line); }
.version-history-page .era-side-top { display: flex; justify-content: space-between; gap: 15px; }
.version-history-page .era-order { color: var(--era-accent); font-weight: 850; font-size: 11px; letter-spacing: .09em; }
.version-history-page .era-tag { font-size: 9px; color: var(--muted); font-weight: 700; letter-spacing: .10em; text-transform: uppercase; }
.version-history-page .era-side h2 { margin: 33px 0 14px; padding: 0; border: 0; font-size: clamp(2.05rem,3vw,2.6rem); font-weight: 825; letter-spacing: -.055em; overflow-wrap: anywhere; }
.version-history-page .era-description { font-size: 12px; line-height: 1.75; color: var(--ink-soft); max-width: 225px; margin: 0; }
.version-history-page .era-rule { border-top: 1px solid var(--line); margin-top: auto; padding-top: 28px; }
.version-history-page .era-count { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .09em; font-weight: 800; }
.version-history-page .era-releases { min-width: 0; }
.version-history-page .release { display: grid; grid-template-columns: minmax(148px,32%) minmax(0,1fr); align-items: start; gap: clamp(24px,3vw,44px); padding: 32px clamp(24px,3.6vw,46px); }
.version-history-page .release + .release { border-top: 1px solid var(--line); }
.version-history-page .release-index { min-width: 0; }
.version-history-page .release-seq { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 10px; letter-spacing: .08em; font-weight: 780; display: block; margin-bottom: 13px; }
.version-history-page .release-art { position: relative; min-height: 123px; width: 100%; display: grid; place-items: center; overflow: hidden; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: linear-gradient(135deg, var(--era-glow),transparent 74%),var(--surface); }
.version-history-page .release-art img { display: none; max-width: 100%; width: auto; height: auto; max-height: 148px; object-fit: contain; }
:root:not([data-theme="dark"]) .version-history-page .release-art.has-sk img.asset-sk,
:root[data-theme="dark"] .version-history-page .release-art.has-bk img.asset-bk { display: block; }
:root:not([data-theme="dark"]) .version-history-page .release-art.has-sk .release-art-fallback,
:root[data-theme="dark"] .version-history-page .release-art.has-bk .release-art-fallback { display: none; }
.version-history-page .release-art-fallback { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 100%; }
.version-history-page .fallback-code { color: var(--era-accent); font-size: clamp(1.5rem,2.6vw,2.25rem); font-weight: 850; line-height: 1.2; letter-spacing: -.05em; overflow-wrap: anywhere; }
.version-history-page .fallback-name { display: block; font-size: 9px; font-weight: 850; color: var(--muted); text-transform: uppercase; letter-spacing: .19em; }
.version-history-page .release-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.version-history-page .release-number { font-size: 28px; line-height: 1.2; font-weight: 820; letter-spacing: -.055em; color: var(--ink); font-variant-numeric: tabular-nums; }
.version-history-page .current-pill { padding: 4px 9px; background: var(--accent-soft); border-radius: 20px; font-size: 10px; font-weight: 750; color: var(--accent-dark); }
.version-history-page .release-copy h3 { margin: 15px 0 8px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: 850; color: var(--detail-muted); }
.version-history-page .release-copy ul { margin: 0; padding-left: 18px; }
.version-history-page .release-copy li { color: var(--ink-soft); font-size: 13px; line-height: 1.7; margin: 0 0 6px; padding-left: 2px; }
.version-history-page .release-copy li::marker { color: var(--era-accent); }
.version-history-page .archive-outro { margin-top: 48px; padding: 46px 0 36px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 170px minmax(0,1fr) auto; align-items: center; gap: 26px; }
.version-history-page .outro-kicker { color: var(--muted); font-size: 10px; letter-spacing: .15em; font-weight: 800; }
.version-history-page .archive-outro p { font-weight: 780; font-size: clamp(1rem,2vw,1.5rem); letter-spacing: -.035em; margin: 0; line-height: 1.45; }
.version-history-page .archive-outro a, .version-history-page .archive-outro a:visited { color: var(--accent-dark); text-decoration: none; font-size: 12px; font-weight: 790; white-space: nowrap; }
.version-history-page .archive-outro a:hover { text-decoration: underline; }
.version-history-page .archive-footer { display: flex; width: min(var(--archive-width),92vw); margin: 0 auto; padding: 20px 0 35px; border-top: 1px solid var(--line); gap: 20px; justify-content: space-between; align-items: center; color: var(--detail-muted); font-size: 11px; }
.version-history-page .archive-footer p { margin: 0; }
.version-history-page .archive-footer span { font-variant-numeric: tabular-nums; }
@media (max-width: 980px) {
 .version-history-page .era-section { grid-template-columns: 248px minmax(0,1fr); }
 .version-history-page .era-side { padding: 27px 23px; }
 .version-history-page .release { grid-template-columns: minmax(130px,34%) minmax(0,1fr); gap: 24px; padding: 26px; }
 .version-history-page .archive-intro { gap: 32px; grid-template-columns: minmax(0,1fr) 215px; }
}
@media (max-width: 720px) {
 .version-history-page .archive-header-inner { min-height: 68px; width: 92vw; }
 .version-history-page .archive-label { display: none; }
 .version-history-page .archive-brand { flex-basis: 105px; width: 105px; height: 47px; }
 .version-history-page .archive-brand img { width: 105px; height: 47px; }
 .version-history-page .archive-controls { gap: 8px; }
 .version-history-page .theme-state { display: none; }
 .version-history-page .archive-intro { display: block; padding: 52px 0 42px; }
 .version-history-page .archive-kicker { margin-bottom: 18px; }
 .version-history-page .archive-lead { margin: 20px 0 19px; }
 .version-history-page .intro-stats { max-width: 500px; margin-top: 40px; padding-top: 22px; row-gap: 16px; }
 .version-history-page .intro-stats strong { font-size: 2.7rem; }
 .version-history-page .stat-orbit { margin-top: 5px; }
 .version-history-page .archive-tabs { padding: 10px; }
 .version-history-page .era-links { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; }
 .version-history-page .era-link { padding: 10px; }
 .version-history-page .era-section { display: block; }
 .version-history-page .era-side { min-height: 0; padding: 24px; border-right: 0; border-bottom: 1px solid var(--line); }
 .version-history-page .era-side h2 { margin-top: 15px; margin-bottom: 8px; }
 .version-history-page .era-description { max-width: 450px; }
 .version-history-page .era-rule { margin-top: 18px; padding-top: 12px; }
 .version-history-page .release { grid-template-columns: 152px minmax(0,1fr); padding: 25px 22px; gap: 23px; }
 .version-history-page .archive-outro { grid-template-columns: minmax(0,1fr) auto; gap: 16px; }
 .version-history-page .outro-kicker { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
 .version-history-page .archive-brand, .version-history-page .archive-brand img { width: 92px; height: 42px; }
 .version-history-page .archive-brand { flex: 0 0 92px; }
 .version-history-page .archive-controls select { padding: 7px 21px 7px 7px; }
 .version-history-page h1 { font-size: clamp(2.7rem,11vw,4.1rem); }
 .version-history-page .release { grid-template-columns: minmax(0,1fr); gap: 13px; padding: 22px 20px; }
 .version-history-page .release-index { display: grid; grid-template-columns: minmax(0,1fr) 145px; gap: 9px; align-items: center; }
 .version-history-page .release-seq { margin-bottom: 0; }
 .version-history-page .release-art { min-height: 90px; }
 .version-history-page .release-art img { max-height: 110px; }
 .version-history-page .fallback-code { font-size: 23px; }
 .version-history-page .release-number { font-size: 26px; }
 .version-history-page .release-copy h3 { margin-top: 11px; }
 .version-history-page .archive-outro { display: block; }
 .version-history-page .archive-outro p { margin: 8px 0 16px; }
 .version-history-page .archive-footer { display: block; }
 .version-history-page .archive-footer span { display: block; margin-top: 7px; }
}
@media (prefers-reduced-motion: reduce) {
 .version-history-page .era-link { transition: none; }
}
