/* ============================================================
   PyGX examples 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, 96px) clamp(28px, 4vw, 44px); }
.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; }

/* explorer */
.ex {
  display: grid; grid-template-columns: 248px 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  overflow: hidden; box-shadow: var(--shadow-md);
}
.ex-tabs { border-right: 1px solid var(--border); padding: 14px; display: flex; flex-direction: column; gap: 4px; background: var(--surface-2); }
.ex-tab {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md);
  background: transparent; border: 1px solid transparent; color: var(--muted); text-align: left; transition: all .15s; width: 100%;
}
.ex-tab:hover { color: var(--text-strong); background: var(--surface); }
.ex-tab.on { background: var(--surface); border-color: var(--border); color: var(--text-strong); box-shadow: var(--shadow-sm); }
.ex-tab .ico { width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.ex-tab .ico svg { width: 17px; height: 17px; }
.ex-tab .tx { display: flex; flex-direction: column; gap: 1px; }
.ex-tab .tt { font-weight: 500; font-size: 0.92rem; font-family: var(--font-display); }
.ex-tab .ts { font-size: 0.74rem; color: var(--faint); font-family: var(--font-mono); }
.ex-tab.on .ts { color: var(--accent); }

.ex-main { display: flex; flex-direction: column; min-width: 0; }
.ex-desc { padding: 26px 30px 0; }
.ex-desc h3 { font-size: 1.4rem; }
.ex-desc p { color: var(--muted); margin-top: 10px; max-width: 60ch; font-size: 0.98rem; }
.ex-code { padding: 22px 30px 30px; }
.ex-code .code { box-shadow: var(--shadow-sm); }
.ex-code pre { min-height: 280px; font-size: 0.9rem; }
.ex-out { padding: 12px 18px; border-top: 1px solid oklch(1 0 0 / 0.07); font-family: var(--font-mono); font-size: 0.82rem; color: oklch(0.74 0.02 285); display: flex; gap: 10px; align-items: flex-start; }
.ex-out .pr { color: var(--accent-bright); flex-shrink: 0; }
.ex-out b { color: oklch(0.9 0.03 150); font-weight: 500; white-space: pre-wrap; }

/* notebooks */
.nb {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 22px; transition: all .2s; text-decoration: none;
}
.nb:hover { border-color: var(--accent-line); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.nb-cat { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.nb h3 { font-size: 1.1rem; }
.nb p { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }
.nb-foot { margin-top: 16px; display: flex; align-items: center; gap: 7px; color: var(--faint); font-size: 0.82rem; font-family: var(--font-mono); }
.nb:hover .nb-foot { color: var(--accent); }
.nb-foot svg { width: 15px; height: 15px; }

.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: 760px) {
  .ex { grid-template-columns: 1fr; }
  .ex-tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .ex-tab { flex-shrink: 0; }
  .ex-tab .ts { display: none; }
}
