:root{
  --bg: #050917;
  --bg2:#0a1330;
  --card:#101d3bcc;
  --text:#f1f4fb;
  --muted:#c7d0e6;
  --muted2:#a0afcf;
  --border:#2f4068;
  --accent:#d7deea;
  --accent2:#e9d3ad;
  --ring: 0 0 0 4px rgba(233,211,173,.26);
  --radius: 18px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --max: 980px;
}
@media (prefers-color-scheme: light){
  :root{
    --bg:#081129;
    --bg2:#0e1a3e;
    --card:#142349d6;
    --text:#f1f4fb;
    --muted:#c7d0e6;
    --muted2:#a0afcf;
    --border:#3a4e7c;
    --ring: 0 0 0 4px rgba(233,211,173,.24);
  }
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(900px 520px at 50% 35%, rgba(233,211,173,.14), transparent 60%),
    radial-gradient(1300px 760px at 12% 8%, rgba(50,76,130,.38), transparent 58%),
    radial-gradient(1200px 700px at 88% 10%, rgba(21,37,78,.38), transparent 58%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  line-height:1.68;
  background-attachment: fixed;
  overflow:hidden;
}

.shell{
  height:100vh;
  overflow-y:auto;
  overflow-x:hidden;
  -webkit-overflow-scrolling: touch;
}
a{color:inherit}
a:hover{opacity:.92}
a:focus-visible{outline:none; box-shadow: var(--ring); border-radius: 10px}

.topbar{
  position:sticky; top:0; z-index:10;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(8,17,41,.74), rgba(8,17,41,.32));
  border-bottom: 1px solid rgba(58,78,124,.45);
}
@media (prefers-color-scheme: light){
  .topbar{
    background: linear-gradient(180deg, rgba(10,20,46,.78), rgba(10,20,46,.42));
    border-bottom: 1px solid rgba(72,93,142,.58);
  }
}
.topbar-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 18px;
  display:flex; align-items:center; justify-content:space-between;
  gap: 12px;
}
.topbar-brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  font-weight:800;
  letter-spacing:.2px;
  line-height:1.28;
}
.topbar-logo{
  width:26px;
  height:26px;
  border-radius:9px;
  overflow:hidden;
  border:1px solid rgba(215,222,234,.30);
  box-shadow: 0 8px 20px rgba(1,5,18,.35);
  display:inline-block;
  flex:0 0 auto;
}
.topbar-logo img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  display:block;
}
.topbar-links{display:flex; gap: 10px; flex-wrap:wrap}
.topbar-links a{
  text-decoration:none;
  color: var(--muted);
  font-weight:700;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(58,78,124,.56);
  background: rgba(18,33,69,.56);
  line-height:1.32;
}
@media (prefers-color-scheme: light){
  .topbar-links a{border:1px solid rgba(72,93,142,.62); background: rgba(19,35,73,.68)}
}
.topbar-links a:hover{color:var(--text)}
.topbar-social{
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.topbar-social img{
  width:16px;
  height:16px;
  display:block;
}
.topbar-social-orcid img{border-radius:999px}

.content{
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 18px 52px;
}

h1{
  font-size: clamp(28px, 3.6vw, 40px);
  line-height:1.25;
  letter-spacing:-.02em;
}
h2{margin-top: 30px; line-height:1.3}
h3{margin-top: 22px; line-height:1.3}

p,li{color: var(--muted); line-height:1.68}
.small{color: var(--muted2)}
ul,
ol{
  margin: 10px 0 16px;
  padding-left: 22px;
}
li + li{
  margin-top: 8px;
}
.note{
  border:1px solid rgba(39,52,84,.55);
  background: rgba(16,26,51,.40);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--muted);
}
@media (prefers-color-scheme: light){
  .note{background: rgba(19,35,73,.62); border:1px solid rgba(72,93,142,.62)}
}
pre{
  overflow:auto;
  border-radius: var(--radius);
  border:1px solid rgba(39,52,84,.55);
  background: rgba(2,6,23,.35);
  padding: 14px 16px;
}
@media (prefers-color-scheme: light){
  pre{background: rgba(11,20,46,.72); border:1px solid rgba(72,93,142,.62)}
}
code{font-family: var(--mono); font-size: 13px}
hr{border:0; height:1px; background: linear-gradient(90deg, transparent, rgba(148,163,184,.55), transparent); margin: 18px 0; opacity:.7}

table{
  width:100%;
  border-collapse: collapse;
  margin: 10px 0 4px;
  border:1px solid rgba(58,78,124,.58);
  border-radius: 12px;
  overflow:hidden;
}
th,
td{
  border:1px solid rgba(58,78,124,.44);
  text-align:left;
  vertical-align: top;
  padding: 8px 10px;
  color: var(--muted);
  overflow-wrap:anywhere;
  line-height:1.55;
}
th{
  color:var(--text);
  background: rgba(20,35,73,.68);
  font-weight:700;
}
td code{
  white-space: normal;
}

.hero-title{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.hero-title img{
  width:64px;
  height:64px;
  border-radius:16px;
  border:1px solid rgba(215,222,234,.30);
}

.contents-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin-top:6px;
}
.contents-grid ul{margin:0}

@media (max-width: 800px){
  .contents-grid{grid-template-columns: 1fr}
}
