/* One shared left rail for the header, inspiration strip and Golden Fleece. */
:root { --identity-rail:max(var(--gutter),calc((100vw - 1320px)/2)); }
.site-header { padding-left:var(--identity-rail); }
.brand-tribute { display:flex;align-items:center;gap:8px;margin-left:calc(5mm - 10px);flex-shrink:0; }
.brand-flag { width:26px;height:14px;border-radius:1px;opacity:.85;box-shadow:0 0 12px #d4c18c12; }
@media(min-width:761px) and (max-width:1300px) {.primary-nav {margin-left:0;gap:20px;} .header-actions {gap:12px;}}
@media(max-width:760px) {.brand-flag {width:23px;height:12px;} .brand-tribute {gap:5px;}}
@media(max-width:420px) {.site-header .brand {gap:7px;} .brand-tribute {margin-left:calc(5mm - 7px);gap:4px;} .site-header .header-actions {gap:7px;margin-right:44px;} .site-header .language-switch {gap:3px;} }
@media(max-width:360px) {.site-header .brand {gap:5px;} .site-header .brand-mark {width:24px;height:24px;} .site-header .brand-word {font-size:10px;} .brand-tribute {margin-left:7px;gap:3px;} .brand-flag {width:21px;height:11px;}}
.space-references { left:var(--identity-rail); max-width:calc(100% - var(--identity-rail) - var(--gutter)); }
.space-reference-caption { color:#c8bc97; }
.space-reference-track a,
.space-reference-track .space-jaxa { background:linear-gradient(145deg,#17251bcc,#0b130fcc); border-color:#d3bc7842; padding:7px 12px; box-shadow:inset 0 1px 0 #f2e4ba08; }
.space-reference-track img { filter:grayscale(1) sepia(.4) saturate(.75) brightness(1.45); opacity:.94; }
/* White-backed source marks use screen blending, without editing their artwork. */
.space-reference-track .space-jaxa img,
.space-reference-track img[alt="CNSA"] { filter:grayscale(1) invert(1) sepia(.4) saturate(.75) brightness(1.65); mix-blend-mode:screen; }
.space-reference-track a:hover,
.space-reference-track .space-jaxa:hover { background:linear-gradient(145deg,#293626dd,#142118dd); border-color:#e5d09780; }
@media(min-width:1800px) {
  :root { --identity-rail:max(28px,calc((100vw - 1800px)/2)); }
  .hero-relic { left:var(--identity-rail); }
}
@media(max-width:760px) {
  .space-reference-track a,
  .space-reference-track .space-jaxa { padding:5px; }
}

/* Two tools, presented as labelled buttons in the hero: the name is large, the
   one-line explanation sits under it so a visitor knows what it does before
   clicking. */
.tool-button { min-height: 58px; text-align: left; }
.tool-button .tool-label { display: flex; flex-direction: column; gap: 3px; line-height: 1.15; }
.tool-button .tool-label strong { font-size: 12px; font-weight: 800; letter-spacing: .01em; }
.tool-button .tool-label small { font-size: 9px; font-weight: 500; opacity: .7; letter-spacing: .015em; }
.tool-button:hover .tool-label small { opacity: .95; }
.primary-nav .nav-build-lab { display: inline-flex; align-items: center; gap: 7px; color: var(--lime) !important; }
.primary-nav .nav-build-lab::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(200,255,67,.08); }
@media (max-width: 760px) { .tool-button { width: 100%; } }
