/* Player command guide. Uses the shared ACTUAL type, color and spacing tokens. */
.commands-hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line-4); background: var(--surface); }
.commands-hero::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, var(--carbon) 12%, rgba(9,10,12,.85) 54%, rgba(9,10,12,.6)), url('/assets/img/hero/hero-1600.webp') center 43% / cover; opacity: .8; }
.commands-hero__inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 100px); align-items: center; max-width: 1440px; margin: auto; padding-top: 68px; padding-bottom: 56px; }
.commands-hero .h-display { font-size: clamp(50px, 7.7vw, 106px); margin-top: 22px; }
.commands-hero .lead { max-width: 430px; margin-top: 24px; color: var(--text); }
.commands-hero__browse { display: inline-flex; align-items: center; gap: 28px; margin-top: 26px; font: 500 10px/1.5 var(--font-mono); letter-spacing: .1em; }
.commands-hero__browse span { font-size: 20px; }
.commands-primer { background: rgba(14,16,19,.9); border: 1px solid var(--line-5); max-width: 440px; width: 100%; justify-self: end; }
.commands-primer__head { display: flex; align-items: center; gap: 10px; padding: 17px 24px; border-bottom: 1px solid var(--line-4); }
.commands-primer__head h2 { font: 500 10px/1.5 var(--font-mono); letter-spacing: .12em; }
.commands-primer__indicator { width: 6px; height: 6px; background: var(--signal); }
.commands-primer__slash { margin-left: auto; color: var(--steel); font: 400 18px/1 var(--font-mono); }
.commands-primer__steps { list-style: none; padding: 26px 24px; display: grid; gap: 23px; }
.commands-primer__steps li { display: flex; gap: 18px; }
.commands-primer__number { font: 400 11px/2 var(--font-mono); color: var(--steel); }
.commands-primer__steps strong { font-size: 13px; font-weight: 500; }
.commands-primer__steps p { color: var(--text-2); font-size: 12px; line-height: 1.6; margin-top: 3px; }
.commands-primer__example { display: flex; align-items: center; gap: 14px; padding: 17px 24px; background: rgba(9,10,12,.8); border-top: 1px solid var(--line-4); }
.commands-primer__example > span:first-child { color: var(--signal); font-family: var(--font-mono); }
.commands-primer__example code { font: 500 14px/1.4 var(--font-mono); }
.commands-primer__example > span:last-child { margin-left: auto; font: 400 9px/1.5 var(--font-mono); letter-spacing: .13em; color: var(--text-2); }
.commands-hero__foot { display: flex; justify-content: space-between; gap: 20px; padding-top: 16px; padding-bottom: 16px; border-top: 1px solid var(--line-4); font: 400 9px/1.6 var(--font-mono); letter-spacing: .12em; color: var(--text-2); }
.commands-hero__foot span:first-child { color: var(--bone); }
.commands-library { max-width: 1440px; margin: auto; padding-top: 64px; padding-bottom: 72px; scroll-margin-top: 85px; }
.commands-library__heading { display: grid; grid-template-columns: 1.3fr 1fr; align-items: end; gap: 40px; margin-bottom: 38px; }
.commands-library__heading .h-section { font-size: clamp(28px, 3.7vw, 44px); margin-top: 12px; }
.commands-library__heading > p { color: var(--text-2); font-size: 12px; line-height: 1.8; max-width: 410px; justify-self: end; }
.commands-library__heading > p strong { font-weight: 500; color: var(--bone); }
.commands-layout { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 36px; align-items: start; }
.commands-sidebar { position: sticky; top: calc(var(--nav-h) + 28px); }
.commands-filters h3 { margin-bottom: 16px; color: var(--text-2); }
.commands-filters__list { display: grid; gap: 5px; }
.commands-filter { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid transparent; color: var(--text-2); font-size: 12px; transition: background var(--fast), border-color var(--fast), color var(--fast); }
.commands-filter > span:last-child { font: 400 10px/1.5 var(--font-mono); color: var(--text-2); }
.commands-filter:hover { color: var(--bone); background: var(--surface); }
.commands-filter[aria-pressed=true] { border-color: var(--line-4); border-left: 2px solid var(--signal); color: var(--bone); background: var(--surface-3); }
.commands-sidebar__help { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line-4); }
.commands-sidebar__help > .label { color: var(--text-2); }
.commands-sidebar__help p { margin-top: 14px; font-size: 11px; line-height: 1.8; color: var(--text-2); }
.commands-sidebar__help code { color: var(--bone); font-size: 11px; }
.commands-sidebar__help a { display: flex; justify-content: space-between; gap: 12px; padding-top: 20px; font: 400 9px/1.6 var(--font-mono); letter-spacing: .05em; }
.commands-results { min-width: 0; }
.commands-search { display: flex; align-items: center; gap: 14px; min-height: 55px; padding: 0 18px; background: var(--surface); border: 1px solid var(--line-5); }
.commands-search:focus-within { border-color: var(--signal); }
.commands-search > svg { flex-shrink: 0; color: var(--text-2); }
.commands-search input { min-width: 0; width: 100%; border: 0; outline: 0; padding: 16px 0; font-size: 12px; background: transparent; }
.commands-search input::placeholder { color: var(--text-2); opacity: 1; }
.commands-search__count { flex-shrink: 0; font: 400 9px/1.5 var(--font-mono); color: var(--text-2); white-space: nowrap; }
.command-group { margin-top: 28px; }
.command-group__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.command-group__head h3 { font: 500 14px/1.5 var(--font-body); }
.command-group__head > span { font: 400 9px/1.5 var(--font-mono); letter-spacing: .08em; color: var(--text-2); }
.commands-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.command-card { display: flex; flex-direction: column; min-width: 0; padding: 22px; background: var(--surface); border: 1px solid var(--line-4); scroll-margin-top: 88px; }
.command-card:target { border-color: var(--signal); }
.command-card__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.command-card__plugin { font: 400 9px/1.6 var(--font-mono); letter-spacing: .09em; color: var(--text-2); text-transform: uppercase; }
.command-card__head a { display: grid; place-items: center; min-width: 28px; min-height: 28px; font: 400 16px/1 var(--font-mono); color: var(--steel); }
.command-card__head a:hover { color: var(--bone); }
.command-card__title { font: 500 18px/1.4 var(--font-display); letter-spacing: -.025em; }
.command-card__description { margin-top: 9px; color: var(--text); font-size: 12px; line-height: 1.75; }
.command-card__note { margin-top: 10px; color: var(--text-2); font-size: 11px; line-height: 1.75; }
.command-card__action { margin-top: auto; padding-top: 20px; }
.command-card__syntax { display: flex; align-items: baseline; gap: 10px; min-width: 0; padding: 13px 12px; background: var(--carbon); border: 1px solid var(--line); }
.command-card__syntax > span { font: 400 13px/1.7 var(--font-mono); color: var(--steel); user-select: none; }
.command-card__syntax code { min-width: 0; font: 500 12px/1.7 var(--font-mono); color: var(--bone); overflow-wrap: anywhere; white-space: pre-wrap; user-select: all; }
.command-card__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; margin-top: 14px; }
.command-card__fields label { font: 400 9px/1.5 var(--font-mono); color: var(--text-2); }
.command-card__fields input { width: 100%; min-width: 0; display: block; margin-top: 6px; padding: 11px 10px; min-height: 42px; background: var(--carbon); border: 1px solid var(--line-5); border-radius: 0; color: var(--bone); font: 400 12px/1.5 var(--font-body); }
.command-card__fields input::placeholder { color: var(--text-2); opacity: 1; }
.command-copy { display: flex; justify-content: center; align-items: center; gap: 9px; width: 100%; min-height: 42px; margin-top: 10px; padding: 10px 14px; border: 1px solid var(--line-5); font: 500 9px/1.6 var(--font-mono); letter-spacing: .07em; transition: background var(--fast), color var(--fast), border-color var(--fast); }
.command-copy:hover { background: var(--bone); border-color: var(--bone); color: var(--carbon); }
.command-copy.is-copied { background: var(--bone); border-color: var(--bone); color: var(--carbon); }
.command-copy:disabled { opacity: .6; cursor: wait; }
.command-card__feedback { color: var(--text); font-size: 11px; margin-top: 12px; }
.commands-empty { text-align: center; padding: 65px 24px; border: 1px solid var(--line-4); margin-top: 24px; }
.commands-empty__symbol { display: block; color: var(--steel); font: 400 36px/1.5 var(--font-mono); margin-bottom: 20px; }
.commands-empty h3 { font: 500 22px/1.4 var(--font-display); }
.commands-empty p { color: var(--text-2); font-size: 13px; margin: 10px 0 24px; }
.commands-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 32px; padding: 22px 0 0; border-top: 1px solid var(--line-4); }
.commands-bottom p { color: var(--text-2); font-size: 12px; }
.commands-bottom a { font: 500 10px/1.8 var(--font-mono); }
.commands-noscript { padding: 16px; border: 1px solid var(--line-4); color: var(--text); font-size: 13px; }
@media (min-width: 1600px) { .commands-hero__foot { padding-left: calc((100% - 1360px) / 2); padding-right: calc((100% - 1360px) / 2); } }
@media (max-width: 1050px) { .commands-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; } .command-card { padding: 18px; } }
@media (max-width: 900px) {
  .commands-layout { display: block; }
  .commands-sidebar { position: static; }
  .commands-sidebar__help { display: none; }
  .commands-filters__list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
  .commands-filter { width: auto; gap: 16px; border-color: var(--line-4); min-height: 44px; }
  .commands-filters h3 { margin-bottom: 12px; }
  .commands-hero__inner { gap: 30px; }
  .commands-primer__head, .commands-primer__steps, .commands-primer__example { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 680px) {
  .commands-hero__inner { grid-template-columns: 1fr; padding-top: 42px; padding-bottom: 32px; }
  .commands-hero .h-display { font-size: clamp(46px, 12.5vw, 76px); }
  .commands-hero .lead { font-size: 14px; max-width: 360px; }
  .commands-primer { max-width: none; }
  .commands-primer__steps { gap: 16px; padding-top: 22px; padding-bottom: 22px; }
  .commands-hero__foot { font-size: 8px; gap: 12px; }
  .commands-hero__foot span:nth-child(2) { display: none; }
  .commands-library { padding-top: 36px; padding-bottom: 40px; }
  .commands-library__heading { display: block; margin-bottom: 24px; }
  .commands-library__heading > p { margin-top: 16px; max-width: 440px; }
  .commands-filter { padding: 9px 10px; font-size: 11px; gap: 12px; }
  .commands-grid { grid-template-columns: 1fr; }
  .commands-search { gap: 10px; padding-left: 12px; padding-right: 12px; flex-wrap: wrap; }
  .commands-search input { flex: 1; font-size: 11px; }
  .commands-search__count { width: 100%; padding: 0 0 10px 30px; margin-top: -10px; }
  .command-card { padding: 20px; }
  .command-card__title { font-size: 19px; }
  .command-card__description { font-size: 13px; }
  .command-card__note { font-size: 12px; }
  .command-card__fields input { font-size: 16px; }
  .command-copy { min-height: 44px; }
  .commands-bottom { flex-direction: column; gap: 8px; }
}
