/* Field Archive • Low SignalX Arcade */
:root {
  --bg:#151c21; --panel:#1b262e; --text:#f2f7fa; --muted:#c0ced5; --line:#455761;
  --green:#a1e4f5; --red:#ffad9e; --ice:#a1e4f5;
  --glass:linear-gradient(140deg,#313e46,#1d282f 44%,#172128);
  --rim:inset 0 1px 0 #edf8ff19,0 8px 24px #080f152b;
  font-family:system-ui,"Segoe UI",sans-serif;
}
body[data-record] {
  --record-color:#a7e6f1; --art-tint:#154653;
  background:radial-gradient(ellipse 66rem 45rem at 6% 0%,#3c464c,transparent 77%),
             radial-gradient(ellipse 62rem 49rem at 95% 23rem,#29373f,transparent 75%),
             linear-gradient(150deg,#232b30,#141b20 37%,#10171c);
}
body[data-record="war_mech"] { --record-color:#f0b49e; --art-tint:#453335; }
body[data-record="piranha"] { --record-color:#f5ada4; --art-tint:#432e33; }
body[data-record="thermal_ghost"] { --record-color:#e4b5b0; --art-tint:#343237; }
.wrap { width:min(1240px,calc(100% - 48px)); }
.site-header { min-height:96px; height:auto; padding:10px 0; align-items:center; }
.site-header .brand { display:inline-flex; align-items:center; border-radius:4px; }
.site-header .brand img { width:clamp(140px,16vw,196px); height:auto; object-fit:contain; }
.site-header nav { display:flex; align-items:stretch; flex-wrap:wrap; gap:.55rem; }
.site-header nav a { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:.55rem .9rem;
  font:650 .88rem/1.25 system-ui,sans-serif; color:#dfedf4; background:#1e2d36; border:1px solid #586b77; border-radius:5px; }
.site-header nav a[aria-current] { color:var(--text); border-color:#7896a6; }
.site-header nav .archive-store {
  color:#e3f8ff; border-color:#77b7cf;
  background:linear-gradient(119deg,transparent 0 68%,#9bdcf420 68.5% 79%,transparent 79.5%),linear-gradient(145deg,#2d5264,#193544);
}
.site-header nav a:is(:hover,:focus-visible) { background-color:#324653; color:#fff; border-color:#c1efff; }
.archive-rail { padding:1.1rem 0 .8rem; font-size:.75rem; }
.archive-rail b { color:#90a2ad; }
.signal-dot { background:#92dff3; box-shadow:0 0 8px #71d6f84f; border-radius:50%; }
.file-switcher { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.5rem; border:0; padding:0; margin:0 0 .85rem; }
.file-switcher>.mono { display:none; }
.file-switcher a { position:relative; display:flex; align-items:center; overflow:hidden; isolation:isolate;
  min-width:0; min-height:58px; padding:.45rem 64px .45rem .85rem; gap:.6rem; text-align:left;
  border-radius:5px; background:linear-gradient(110deg,#24313a,#182127); border:1px solid #53616a; color:#e5f0f5;
  font:680 .96rem/1.2 system-ui,sans-serif; }
.file-switcher a span { font:.74rem/1.2 var(--mono); color:#b4c7d2; }
.file-switcher .record-thumb { position:absolute; z-index:-1; right:.35rem; top:50%; transform:translateY(-50%);
  width:56px; height:52px; object-fit:contain; pointer-events:none; }
.file-switcher a[aria-current] { color:#fff1df; border-color:#b88e6e; background:linear-gradient(110deg,#473730,#252c31); box-shadow:inset 3px 0 #ffa565; }
.file-switcher a[aria-current] span { color:#f5c295; }
.file-switcher a:is(:hover,:focus-visible) { color:white; border-color:#beeafb; }
body[data-record] .hero {
  position:relative; isolation:isolate; min-height:0; display:grid; grid-template-columns:minmax(0,.98fr) minmax(0,1fr);
  align-items:stretch; gap:clamp(1.2rem,3vw,3.3rem); padding:clamp(1rem,2.6vw,2.25rem); margin-bottom:.85rem;
  border:1px solid #82939e; border-bottom-color:#546671; border-radius:12px; box-shadow:var(--rim);
  background:linear-gradient(119deg,transparent 0 65%,#f1f6f709 65.1%,#f1f6f713 74%,transparent 74.2%),
             linear-gradient(140deg,#344048,#202a31 31%,#151d22 64%,#2b363e);
}
.hero-copy { align-self:center; min-width:0; padding:clamp(.35rem,1.25vw,1rem); }
body[data-record] .hero-copy h1 {
  font:850 clamp(3.4rem,5.9vw,6.25rem)/.91 system-ui,sans-serif; letter-spacing:-.065em;
  margin:0 0 1.1rem; color:#f4f9fc;
}
body[data-record] .hero-copy h1 span, body[data-record] .hero-copy>.eyebrow { color:var(--record-color); }
body[data-record] .hero-copy>.eyebrow { margin-bottom:1.2rem; font:720 .8rem/1.5 system-ui,sans-serif; letter-spacing:.1em; }
body[data-record] .hero-line { font-size:clamp(1.35rem,2.05vw,1.9rem); line-height:1.2; margin:0 0 .9rem; }
body[data-record] .hero-intro { max-width:45ch; font-size:1rem; line-height:1.6; margin:0 0 1.45rem; }
.actions { gap:.75rem 1.2rem; }
.button { justify-content:center; font:700 .94rem/1.3 system-ui,sans-serif; min-height:44px; border-radius:5px; padding:.65rem 1rem; gap:.7rem; }
.button.primary { color:#0b242e; border-color:#c2f2fb; background:linear-gradient(143deg,#c7f7ff,#88ddf0 62%,#a5e9ff); box-shadow:inset 0 1px 0 #f1fdff8c; }
.button.primary:hover { background:#d6f9ff; color:#0b242e; transform:none; }
.button.primary>span[aria-hidden] { font-size:0; width:10px; height:10px; flex:none; position:relative; border-top:1.5px solid; border-right:1.5px solid; }
.button.primary>span[aria-hidden]::after { content:""; position:absolute; width:13px; border-top:1.5px solid; top:-1px; right:0; transform:rotate(-45deg); transform-origin:100% 0; }
.button.secondary { border-color:#7f9cab; background:#1c2b34; color:#d9f5fb; }
.text-link { border-color:#66828d; color:#c3edf8; min-height:44px; align-items:center; font:620 .9rem/1.4 system-ui,sans-serif; }
body[data-record] .specimen {
  min-width:0; min-height:0; overflow:hidden; display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:auto minmax(0,1fr) auto;
  border-radius:7px; border:1px solid #657b89; background:radial-gradient(ellipse at 50% 52%,var(--art-tint),transparent 69%),#0f191f;
  box-shadow:inset 0 1px 0 #d4edf91a,0 9px 16px #0a101330;
}
.specimen::before,.specimen::after { display:none; }
body[data-record] .specimen-grid { opacity:.65; background-image:linear-gradient(#a4d7e312 1px,transparent 1px),linear-gradient(90deg,#a4d7e312 1px,transparent 1px); background-size:36px 36px; }
body[data-record] .specimen-rail,body[data-record] .specimen-footer { padding:.5rem .9rem; margin:0; min-width:0; color:#c4d6df; gap:.6rem; }
.specimen-rail { align-items:center; border-bottom:1px solid #8eb5c62b; min-height:34px; }
.specimen-footer { border-top:1px solid #8eb5c62b; min-height:42px; }
.specimen-rail.mono,.specimen-footer .mono { font-size:.7rem; line-height:1.4; }
body[data-record] .coordinate { display:none; }
body[data-record] .specimen>img {
  width:100%; max-width:100%; height:clamp(18rem,25vw,23rem); min-height:0; object-fit:contain; margin:.35rem 0;
  padding:0 .75rem; align-self:center; position:relative; z-index:1;
}
.inspect { font-size:.78rem; min-height:36px; color:#b2e5f5; }
.identity-strip { overflow:hidden; border-radius:7px; background:var(--glass); border-color:#4e626e; margin:0 0 1.05rem; }
.identity-strip div { min-width:0; padding:1rem 1.2rem; }
.identity-strip dt { color:#bfcfd8; font-size:.71rem; }
.identity-strip dd { font-size:.94rem; }
.record-nav { padding:.25rem 0; gap:1.65rem; flex-wrap:wrap; }
.record-nav a { min-height:44px; align-items:center; font-size:.82rem; }
.record-nav span { color:#d4e1e8; }
.section-block { padding-block:clamp(2.5rem,5.5vw,4.6rem); }
body[data-record] :is(.field-card,.tactic-card,.collect-art,.related-record,.engage-rail) {
  border-color:#465b67; border-radius:8px; background:var(--glass); box-shadow:var(--rim);
}
body[data-record] :is(.hostile,.heat-card,.thermal-card) { background:linear-gradient(143deg,#3b3031,#20292e 55%,#19232a); }
body[data-record] .laser-card { background:linear-gradient(143deg,#203e4a,#202c34 55%,#19232a); }
.tactic-tag,.tactic-number { color:#afc4d0; }
.tactics-grid h3,.field-card h3 { color:var(--text); }
.field-number { color:#b1d5e424; }
.related-records .related-record:hover { border-color:#9bcede; }
.collect-art img { object-fit:contain; }
.collect-art span,.shop-note,.footer { color:#b2c6d1; }
.footer a:is(:hover,:focus-visible) { color:#cff4ff; }
dialog { background:#172129; color:var(--text); border:1px solid #708793; border-radius:8px; }
dialog::backdrop { background:#070d11d9; }
.dialog-rail button,#share-url { color:#e4f5fb; background:#24323c; border-color:#647d8c; }
:focus-visible { outline:2px solid #c1efff; outline-offset:3px; }
@media (max-width:900px) {
  .file-switcher a { gap:.35rem; padding-right:44px; font-size:.87rem; }
  .file-switcher .record-thumb { width:39px; right:.17rem; }
}
@media (max-width:760px) {
  .wrap { width:calc(100% - 28px); }
  .site-header { align-items:center; padding:.45rem 0 .7rem; gap:.25rem .8rem; min-height:0; }
  .site-header .brand img { width:134px; }
  .site-header nav { width:auto; flex:1 1 auto; justify-content:flex-end; gap:.35rem; }
  .site-header nav a { padding:.4rem .62rem; font-size:.82rem; }
  .archive-rail { padding:.8rem 0 .6rem; }
  .file-switcher { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.35rem; }
  .file-switcher a { padding:.5rem 44px .65rem .5rem; min-height:46px; }
  .file-switcher a span { display:inline; margin:0; font-size:.68rem; }
  body[data-record] .hero { grid-template-columns:minmax(0,1fr); padding:1rem; gap:1.2rem; }
  .hero-copy { padding:.15rem; }
  body[data-record] .hero-copy h1 { font-size:clamp(2.9rem,10.5vw,4.7rem); }
  body[data-record] .hero-copy>.eyebrow { margin-bottom:.8rem; }
  body[data-record] .hero-intro { margin-bottom:1rem; }
  body[data-record] .specimen>img { height:clamp(13rem,57vw,20rem); }
  .identity-strip div { padding:.85rem; }
  .identity-strip dd { font-size:.87rem; }
  .record-nav { gap:.15rem 1rem; justify-content:flex-start; }
  .record-nav a { font-size:.75rem; }
}
@media(max-width:520px) {
  .site-header nav { flex:1 1 100%; justify-content:flex-start; }
  .related-records .related-record .eyebrow { font-size:.65rem; }
  .specimen-rail.mono,.specimen-footer .mono { font-size:.62rem; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } .drone { animation:none; } }
@media(forced-colors:active) { .button.primary,.file-switcher a[aria-current] { border:2px solid Highlight; } }
