:root{
  --bg:#0e0e0f;
  --panel:#18181b;
  --text:#f4f4f5;
  --muted:#b4b4bb;
  --blue:#004D95;
  --blue-bright:#1677D2;
  --border:#2b2b31;
  --ok:#9ad7a5;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%}
body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
}
a{color:var(--blue-bright)}
a:hover{color:#55A8F5}
header{
  border-bottom:1px solid var(--border);
  background:#111114;
}
.wrap{max-width:980px;margin:0 auto;padding:0 22px}
.topbar{
  display:flex;
  gap:18px;
  align-items:center;
  justify-content:space-between;
  min-height:86px;
}
.logo{
  height:100px;
  width:auto;
  display:block;
}
nav a{
  color:var(--text);
  text-decoration:none;
  margin-left:16px;
  font-size:.95rem;
}
nav a:hover{color:var(--blue-bright)}
main{padding:42px 0 60px}
.hero{
  background:linear-gradient(180deg,#19191d,#141416);
  border:1px solid var(--border);
  border-radius:14px;
  padding:32px;
  margin-bottom:28px;
}
h1,h2,h3{line-height:1.2}
h1{margin-top:0;font-size:2.2rem}
h2{margin-top:34px;color:#fff}
h3{margin-top:24px}
p{color:var(--text)}
.muted{color:var(--muted)}
.gold{color:var(--blue-bright)}
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:16px;
}
.card{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:12px;
  padding:20px;
}
.card h3{margin-top:0}
.button{
  display:inline-block;
  background:var(--blue);
  color:#fff;
  text-decoration:none;
  font-weight:700;
  padding:10px 16px;
  border-radius:8px;
}
.button:hover{
  background:var(--blue-bright);
  color:#fff;
}
code{
  background:#202025;
  padding:2px 6px;
  border-radius:5px;
}
.command{
  background:#161619;
  border:1px solid var(--border);
  border-left:3px solid var(--blue);
  border-radius:9px;
  padding:12px 14px;
  margin:8px 0;
}
.note{
  border-left:4px solid var(--blue);
  background:#171719;
  padding:12px 16px;
  margin:18px 0;
}
.ok{color:var(--ok)}
footer{
  border-top:1px solid var(--border);
  color:var(--muted);
  padding:24px 0 40px;
  font-size:.9rem;
}
footer a{color:var(--blue-bright)!important}
ul,ol{padding-left:22px}
@media(max-width:720px){
  .topbar{
    align-items:flex-start;
    flex-direction:column;
    padding:16px 0;
  }
  .logo{height:48px}
  nav a{
    margin:0 14px 0 0;
    display:inline-block;
  }
}


/* Commands page */
.commands-hero{
  margin-bottom:22px;
}
.command-launch{
  margin-bottom:0;
}
.commands-legend{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin:0 0 18px;
}
.commands-legend-item{
  display:flex;
  gap:10px;
  align-items:center;
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:12px;
  padding:14px 16px;
  color:var(--muted);
}
.commands-legend-item strong{color:var(--text)}
.commands-nav{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 38px;
}
.commands-nav a{
  margin:0;
  color:var(--text);
  text-decoration:none;
  background:#161619;
  border:1px solid var(--border);
  border-radius:8px;
  padding:7px 11px;
  font-size:.9rem;
}
.commands-nav a:hover{
  color:#fff;
  border-color:var(--blue-bright);
  background:#19191d;
}
.command-section{
  margin:0 0 40px;
  scroll-margin-top:20px;
}
.command-section .section-heading h2{
  margin-bottom:4px;
}
.command-section .section-heading p{
  margin-top:0;
  color:var(--muted);
}
.command-list{
  margin-top:14px;
}
.command-item{
  background:#161619;
  border:1px solid var(--border);
  border-left:3px solid var(--blue);
  border-radius:9px;
  margin:8px 0;
  overflow:hidden;
}
.command-item[open]{
  background:#18181b;
  border-left-color:var(--blue-bright);
}
.command-item summary{
  list-style:none;
  cursor:pointer;
  min-height:58px;
  display:grid;
  grid-template-columns:30px minmax(0,1fr) auto 18px;
  gap:10px;
  align-items:center;
  padding:12px 14px;
}
.command-item summary::-webkit-details-marker{display:none}
.command-item summary::after{
  content:"›";
  color:var(--muted);
  font-size:1.45rem;
  line-height:1;
  transform:rotate(90deg);
}
.command-item[open] summary::after{
  transform:rotate(-90deg);
  color:var(--blue-bright);
}
.command-item summary:hover .command-text{color:var(--blue-bright)}
.command-text{
  font-weight:700;
  line-height:1.35;
}
.slot{color:var(--blue-bright)}
.summary-badges{
  display:flex;
  gap:6px;
  justify-content:flex-end;
}
.badge{
  display:inline-flex;
  align-items:center;
  min-height:23px;
  padding:2px 7px;
  border-radius:999px;
  font-size:.7rem;
  font-weight:700;
  white-space:nowrap;
}
.badge-jriver{
  color:#a9d4ff;
  background:#102337;
  border:1px solid #245c8d;
}
.badge-provider{
  color:#c4c4cb;
  background:#202025;
  border:1px solid #3a3a41;
}
.command-body{
  border-top:1px solid var(--border);
  padding:15px 18px 17px 54px;
}
.variations-title,
.examples-title{
  color:var(--text);
  font-size:.8rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-bottom:5px;
}
.examples-title{margin-top:14px}
.variations,
.examples{
  margin:0;
  padding-left:20px;
}
.variations li,
.examples li{margin:4px 0}
.examples{color:#d7d7dc}
.examples li::marker{color:var(--blue-bright)}
.command-body .note{
  margin:14px 0 0;
}
.shuffle-mark,
.shuffle-spacer{
  width:28px;
  min-width:28px;
  height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.shuffle-svg{
  width:19px;
  height:19px;
  fill:none;
  stroke:var(--blue-bright);
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.shuffle-default{
  border:1px solid var(--blue-bright);
  border-radius:50%;
  background:#102337;
}
@media(max-width:720px){
  .commands-legend{grid-template-columns:1fr}
  .commands-nav{margin-bottom:30px}
  .command-item summary{
    grid-template-columns:28px minmax(0,1fr) 18px;
    gap:8px;
    padding:12px;
  }
  .summary-badges{
    grid-column:2 / 3;
    justify-content:flex-start;
    margin-top:-3px;
  }
  .command-item summary::after{
    grid-column:3;
    grid-row:1 / span 2;
  }
  .command-body{padding:14px 14px 16px 48px}
  .badge-provider{display:none}
}
