html[data-theme="space"] {
  color-scheme: dark;
  background: #080d1d;
}
[data-theme="space"] body {
  background: radial-gradient(ellipse 48rem 26rem at 12% 0, #161e39, transparent), #080d1d;
  color: #dce4f8;
}
[data-theme="space"] :is(h1, h2, caption) { color: #f4f5ff; }
[data-theme="space"] a { color: #a8d9ed; }
[data-theme="space"] a:hover { color: #fff; }
[data-theme="space"] a:focus-visible { outline: 2px solid #ebc98a; outline-offset: 3px; }
[data-theme="space"] table { background: #111a30; }
[data-theme="space"] :is(th, td) { border-color: #2c3853; }
[data-theme="space"] th { background: #1c2641; }
[data-theme="space"] tr:target { background: #38334a; color: #fff2c8; }

.source-nav {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:.5rem 1rem;
  margin-bottom:1rem;
}
html[data-source-page] main { overflow-wrap: anywhere; }

html:lang(ja) .grade-japanese-name { display:none; }

[data-localized-grade] li[id^="grade-"] { margin-block:.65rem 1rem; scroll-margin-top:1rem; }
[data-localized-grade] li:target { background:var(--wash); outline:2px solid var(--accent); outline-offset:4px; }
[data-localized-grade] summary { cursor:pointer; }
