/* ============================================================
   PyGX docs page
   ============================================================ */
.grad { background: linear-gradient(100deg, var(--accent-bright), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.page-head { position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 92px) clamp(20px, 3vw, 36px); }
.page-head-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(55% 80% at 80% -10%, var(--accent-soft), transparent 60%); }
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(2.6rem, 5.2vw, 4rem); margin-top: 14px; }
.page-head .lede { margin-top: 20px; }

.sec-head { max-width: 62ch; }
.sec-head h2 { margin-top: 14px; }
.sec-head .lede { margin-top: 14px; }

/* quickstart */
.docs-quick { display: grid; grid-template-columns: 1fr 1.05fr; gap: 52px; align-items: start; }
.dq-text h2 { margin: 12px 0 14px; }
.dq-text .lede { font-size: 1.04rem; }
.dq-steps { display: flex; flex-direction: column; gap: 22px; margin-top: 30px; }
.dq-step { display: flex; gap: 16px; }
.dq-step > div { flex: 1; min-width: 0; }
.dq-step strong { color: var(--text-strong); font-weight: 600; display: flex; min-height: 30px; align-items: center; }
.dq-step .install { max-width: 100%; }
.dq-step .n { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-family: var(--font-mono); font-weight: 700; font-size: 0.86rem; }
.dq-extras { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.dq-extras .chip { flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 12px; }
.ex-note { color: var(--faint); font-size: 0.68rem; text-transform: none; letter-spacing: 0; }
.dq-code { position: sticky; top: calc(var(--nav-h) + 20px); }
.dq-code .code { box-shadow: var(--shadow-md); }

/* tracks */
.track { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px; transition: all .2s; }
.track:hover { border-color: var(--accent-line); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.track-h { display: flex; align-items: center; gap: 13px; margin-bottom: 12px; }
.track-ic { width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.track-ic svg { width: 21px; height: 21px; }
.track h3 { font-size: 1.2rem; }
.track p { color: var(--muted); font-size: 0.95rem; }
.track-link { margin-top: 18px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); font-weight: 500; }

/* learn SOOP */
.docs-learn { display: grid; grid-template-columns: 0.9fr 1.25fr; gap: 52px; align-items: start; }
.dl-side { position: sticky; top: calc(var(--nav-h) + 20px); }
.dl-side h2 { margin: 12px 0 16px; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.dl-side .lede { margin-bottom: 24px; }
.dl-list { display: flex; flex-direction: column; }
.dl-item { display: grid; grid-template-columns: auto 1fr; gap: 4px 20px; align-items: baseline; padding: 20px 16px; border-top: 1px solid var(--border); transition: all .15s; border-radius: var(--r-sm); }
.dl-item:last-child { border-bottom: 1px solid var(--border); }
.dl-item:hover { background: var(--surface); padding-inline: 22px; }
.dl-n { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); font-weight: 500; }
.dl-t { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--text-strong); }
.dl-d { grid-column: 2; color: var(--muted); font-size: 0.9rem; }
.dl-item:hover .dl-t { color: var(--accent); }

/* resources */
.res { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px; transition: all .2s; }
.res:hover { border-color: var(--accent-line); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.res h3 { font-size: 1.12rem; margin-bottom: 8px; }
.res p { color: var(--muted); font-size: 0.92rem; }
.res .track-link { margin-top: 16px; }

.cta-band { position: relative; overflow: hidden; border-top: 1px solid var(--border); background: var(--bg-2); padding-block: clamp(72px, 9vw, 104px); }
.cta-band::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 90% at 50% 0%, var(--accent-soft), transparent 70%); }
.cta-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta-inner h2 { font-size: clamp(2.2rem, 4.6vw, 3.2rem); }
.cta-inner .lede { margin-top: 16px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; margin-top: 30px; }

.mobile-menu { display: none; flex-direction: column; padding: 8px 28px 16px; gap: 2px; border-bottom: 1px solid var(--border); background: var(--bg); }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 11px 6px; color: var(--text); border-bottom: 1px solid var(--border); font-size: 0.96rem; }
.mobile-menu a:last-child { border-bottom: 0; }

@media (max-width: 860px) {
  .docs-quick { grid-template-columns: 1fr; gap: 34px; }
  .dq-code { position: static; }
  .docs-learn { grid-template-columns: 1fr; gap: 30px; }
  .dl-side { position: static; }
  .dl-side h2 br { display: none; }
}
