/* global/periodic-table/en.css — loaded after /periodic/periodic.css: system font, longer English names, dark mode */
body{font-family:system-ui,-apple-system,'Segoe UI',Roboto,sans-serif}
.el .nm{font-size:clamp(.44rem,.62vw,.6rem);letter-spacing:-.02em;text-overflow:ellipsis}
.detail .big .nm{font-size:.74rem;max-width:92px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hero .tile .nm{font-size:.8rem;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mnemo{word-break:normal}
.choices button{font-size:.98rem}
.ogrid button small{font-size:.6rem;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.learn a span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.exc{margin-top:8px;background:#fff7ed;border-radius:10px;padding:10px}
@media print{.glbar{display:none!important}}
@media (prefers-color-scheme:dark){
  :root{--bg:#0b1220;--card:#131c2e;--border:#24324a;--text:#e2e8f0;--muted:#94a3b8;--soft:#10283a;--p:#22b8cf;--shadow:0 1px 3px rgba(0,0,0,.4)}
  a{color:#67e8f9}
  .btn{background:#1a2438;color:var(--text)}
  .btn.on{background:var(--p);color:#04151c}
  .list th{background:var(--card)}
  .faq dd{color:#cbd5e1}
  .rel a,.chips a,.chips span{background:#1a2438;color:var(--text)}
  .chips .me{background:var(--p);color:#04151c}
  .controls input[type=search],.rankf input{background:#0b1220;color:var(--text)}
  .temp .presets button{background:#1a2438;color:var(--text)}
  .detail{background:#131c2e}
  .legend button{color:var(--text)}
  .legend button.on{background:#e2e8f0;color:#0b1220}
  .el.sel{box-shadow:0 0 0 3px #f8fafc}
  .ptable.m-state .ph,.ptable.m-en .ph{background:#1e293b}
  .hero h1 .h1s{color:#cbd5e1}
  .minimap a.me,.nbr .me{outline-color:#f8fafc}
  .qtabs button.on{background:#1a2438}
  .qprog{background:#24324a}
  .qcard .qq{color:#1e293b}
  .choices button{background:#1a2438;color:var(--text)}
  .choices button.ok{background:#14532d;border-color:#22c55e}
  .choices button.no{background:#7f1d1d;border-color:#ef4444}
  .ranklist li.me{background:#10283a}
  .exc{background:#3b2410}
}
