/* FSD Asia Watch — Tesla-inspired theme (preview).
   Near-black, Inter, thin #e31937 accents. Not Tesla branding. */
:root{
  --bg:#0a0a0a;
  --bg-2:#111111;
  --card:rgba(255,255,255,.035);
  --line:rgba(255,255,255,.10);
  --txt:#f4f4f4;
  --mut:#8e8e8e;
  --red:#e31937;
  --live:#2ea043;
  --pend:#d29922;
  --na:#da3633;
  --unc:#6e7681;
  --radius:8px
}
html{background:var(--bg)}
body{background:var(--bg);color:var(--txt);font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif}
body:before{
  background:
    radial-gradient(900px 520px at 88% -12%,rgba(227,25,55,.16),transparent 62%),
    radial-gradient(640px 420px at -12% 18%,rgba(255,255,255,.04),transparent 60%)
}

/* Minimal uppercase nav — logo stays put, links scroll, real gap after the wordmark */
nav,nav#nav{
  display:flex;
  align-items:center;
  gap:20px;
  background:rgba(10,10,10,.78);
  border-bottom:1px solid rgba(255,255,255,.08);
  padding:12px 24px;
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  overflow:hidden
}
nav a,.links a{
  text-transform:uppercase;
  letter-spacing:.16em;
  font-size:11px;
  font-weight:500;
  color:#b3b3b3;
  text-decoration:none;
  transition:color .2s ease;
  white-space:nowrap;
  flex-shrink:0;
  padding:10px 10px
}
nav a:hover,.links a:hover{color:#fff;text-decoration:none}
.brand,nav a.brand,.links .brand{
  text-transform:none;
  letter-spacing:-.03em;
  font-weight:700;
  font-size:17px;
  color:var(--txt)!important;
  flex-shrink:0;
  padding:10px 20px 10px 0;
  margin:0
}
.brand span{color:var(--red)}
.links{
  display:flex;
  align-items:center;
  gap:4px 18px;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
  min-width:0;
  flex:1;
  padding:0 8px 0 2px
}
.links::-webkit-scrollbar,nav::-webkit-scrollbar{display:none}
.links a.act,nav a[aria-current="page"]{color:#fff;box-shadow:inset 0 -1px 0 var(--red)}
/* Compact nav without a .links wrap: keep the wordmark sticky so links scroll past it, never under it */
nav:not(:has(.links)){
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
  gap:8px 20px
}
nav:not(:has(.links))>.brand,nav:not(:has(.links))>a.brand{
  position:sticky;
  left:0;
  z-index:2;
  padding-right:24px;
  background:linear-gradient(90deg,#0a0a0a 0,#0a0a0a calc(100% - 18px),transparent)
}

/* Home hero only — country pages also use .hero for the title block */
header.hero{
  max-width:none;
  width:100%;
  padding:120px 28px 88px;
  min-height:min(78vh,860px);
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  justify-content:center
}
header.hero .hero-top{
  max-width:1120px;
  width:100%;
  margin:0 auto
}
header.hero .eyebrow{
  letter-spacing:.2em;
  font-weight:500;
  color:#9a9a9a
}
header.hero h1{letter-spacing:-.045em}
.herobg{
  background:
    linear-gradient(90deg,rgba(10,10,10,.97) 0%,rgba(10,10,10,.86) 36%,rgba(10,10,10,.42) 72%,rgba(10,10,10,.58) 100%),
    linear-gradient(180deg,rgba(10,10,10,.12) 45%,var(--bg) 100%),
    url(/img/hero.webp) center right/cover no-repeat
}
@media(max-width:600px){
  header.hero{padding:84px 18px 56px;min-height:0}
  nav,nav#nav{padding:10px 16px;gap:16px}
  .herobg{
    background:
      linear-gradient(180deg,rgba(10,10,10,.62),rgba(10,10,10,.82) 60%,var(--bg)),
      url(/img/hero-800.webp) 70% center/cover no-repeat
  }
}

/* Glassy, thin-bordered surfaces */
.glass,.stat,.ucard,.card,.pcard,#latest .nitem,.cite,.fbx,.callout,.next,.ko-box,.fact,.stagebox{
  border-radius:var(--radius);
  border-color:rgba(255,255,255,.10);
  transition:border-color .25s ease,transform .25s ease,background .25s ease
}
.ucard:hover,.card:hover,#latest .nitem:hover,.pcard:hover,.stat:hover{
  border-color:rgba(255,255,255,.22);
  background:rgba(255,255,255,.05)
}
.ucard:hover{transform:translateY(-2px)}

/* Buttons: sharper, thin red accent */
button,.btn,a.btn{
  border-radius:4px;
  letter-spacing:.04em;
  transition:filter .2s ease,background .2s ease,border-color .2s ease
}
button:hover,.btn.red:hover,a.btn.red:hover{filter:brightness(1.12)}

/* Spacing + type on the tracker */
body > main > section,main#status{ }
main > section{margin:72px 0}
h2{letter-spacing:-.03em}
.small,.note,th{color:#9a9a9a}

#map .c{stroke:#0a0a0a}
#tip{background:rgba(10,10,10,.92);border-radius:var(--radius)}
#feat td.fc,#feat th:first-child{background:var(--bg-2)}
@media(max-width:640px){
  #feat th:first-child,#feat td:first-child{background:var(--bg-2)}
  tr.rc{border-radius:var(--radius);background:rgba(255,255,255,.025)}
  main,header.hero{padding-left:16px;padding-right:16px}
  main > section{margin:56px 0}
}

@media(prefers-reduced-motion:reduce){
  .glass,.stat,.ucard,.card,.pcard,#latest .nitem,nav a,.links a,button,.btn,a.btn{
    transition:none!important;transform:none!important
  }
}
