/* Gully ID app layer (developer pages + console, and the Terminal tokens under the landing's charts): the Gully Terminal
   components on the brand kit's DARK theme (night #05080D, cyan #00F7FC, gold #F9AE1B secondary, Montserrat headlines,
   Inter body, radii 8-20 px). The Terminal components read only --t-* variables, so this file re-points them at the kit
   tokens. Every Gully ID page is on this one theme (owner 2026-11-01). */
html[data-theme="dark"][data-product="id"] {
  --t-bg: var(--gid-bg);
  --t-surface: var(--gid-surface);
  --t-surface-2: var(--gid-surface-2);
  --t-line: var(--gid-border);
  --t-line-strong: var(--gid-border-strong);
  --t-grid: rgba(0, 247, 252, .06);
  --t-text: var(--gid-text);
  --t-muted: var(--gid-muted);
  --t-faint: var(--gid-muted);
  --t-idle: var(--gid-muted);
  --t-accent: var(--gid-cyan);
  --t-accent-2: var(--gid-gold);
  --t-on-accent: var(--gid-night);
  --t-accent-soft: var(--gid-accent-soft);
  --t-accent-line: color-mix(in srgb, var(--gid-cyan) 40%, transparent);
  --t-font-sans: var(--gid-font);
  --t-maxw: 1176px; /* the same content edge as the shared header (gid/site.css) */
  --t-r: 10px;
  --t-r-sm: 6px;
}
html[data-product="id"] .t-body:not(.l-body) { background: var(--ui-wash), var(--ui-night); }
.t-body a.t-btn { color: var(--t-text); text-decoration: none; }
.t-body a.t-btn--primary, .t-body a.t-btn--primary:hover, .t-body button.t-btn--primary { color: var(--t-on-accent); }
.t-panel, .t-kpi, .t-plan, .gid-app { border-radius: var(--gid-r-lg); }
.gid-pre, .gid-form input, .gid-form textarea { border-radius: var(--gid-r); }
.t-label, .gid-label, .t-eyebrow { color: var(--gid-accent); }
.gid-doc a:not(.t-btn), .gid-hint a { color: var(--gid-link); }
.gid-doc a:not(.t-btn):hover, .gid-hint a:hover { color: var(--gid-link-hover); }

/* touch targets: every control at least 44 px on touch screens */
@media (pointer: coarse), (max-width: 899px) {
  .t-btn, .t-seg button, .gid-radio { min-height: 44px; }
  .t-btn--xs, .t-btn--sm { min-height: 44px; padding-left: 14px; padding-right: 14px; }
  .gid-radio input { width: 20px; height: 20px; }
}
.t-btn { border-radius: var(--gid-r, 10px); }

/* kit type: Montserrat headlines (.t-body h1 in the Terminal components would otherwise win with Inter) */
.t-body .t-h1, .t-body .t-h2, .t-body .t-h3 { font-family: var(--gid-font-display); }
/* the buttons under a lede never touch its text (404, signed-out console, docs) */
.t-lede + p { margin-top: 20px; }
/* inline code wraps on phones instead of being cut at the edge; code blocks scroll inside their own box */
.t-body code.t-code { white-space: normal; overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.gid-fold-s code.t-code { white-space: nowrap; }
/* docs rhythm */
.gid-doc > p:not(.t-lede) { margin-top: 10px; }
.gid-doc .gid-pre, .gid-doc .t-table-wrap { margin-top: 10px; margin-bottom: 10px; }
.gid-doc .gid-qs { margin: 22px 0 8px; }

/* compact, mobile-first sections */
.t-section { padding-top: clamp(24px, 4vw, 44px); padding-bottom: clamp(24px, 4vw, 44px); }
.t-section--tight { padding-top: clamp(16px, 3vw, 28px); padding-bottom: clamp(16px, 3vw, 28px); }
@media (max-width: 899px) {
  .t-h1 { font-size: clamp(28px, 8vw, 40px); }
  .gid-actions .t-btn { flex: 1 1 auto; }
  .t-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
.gid-night { background: var(--gid-night); background-image: var(--gid-gradient-glow); border-radius: var(--gid-r-xl); overflow: hidden; }

/* ---- /developers: one compact page ---- */
.gid-hero { padding: clamp(20px, 3vw, 36px) 0 clamp(14px, 2vw, 22px); }
.gid-hero .t-h1 { font: 800 clamp(30px, 3.6vw, 44px)/1.08 var(--gid-font-display); margin-top: 10px !important; }
.gid-hero .t-lede { margin-top: 12px !important; font-size: 16px; }
.gid-hero-grid { display: grid; gap: 18px; align-items: center; }
.gid-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.gid-hero-side { display: flex; align-items: flex-end; gap: 4px; min-width: 0; }
.gid-hero-lynx { display: none; flex: none; width: 138px; background-image: var(--gid-gradient-glow); }
.gid-hero-lynx img { display: block; width: 100%; height: auto; }
.gid-live { flex: 1 1 auto; min-width: 0; padding: 12px 14px; background: var(--gid-surface); border: 1px solid var(--gid-border); border-radius: var(--gid-r-lg); }
.gid-live-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gid-live-l { color: var(--gid-text-2); font-size: 13px; font-weight: 600; }
.gid-live .t-pill { height: 24px; }
.t-spark.gid-live-spark, .gid-live-spark { display: block; width: 100%; height: 44px; margin: 8px 0; }
.gid-live-n { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.gid-live-n dt { color: var(--gid-muted); font-size: 12px; }
.gid-live-n dd { margin: 0; color: var(--gid-text); font: 700 20px/1.2 var(--gid-font-mono); font-variant-numeric: tabular-nums; }
@media (min-width: 620px) { .gid-hero-lynx { display: block; } }
@media (min-width: 960px) { .gid-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 40px; } }

.gid-sec { padding: clamp(14px, 2vw, 20px) 0; }
.gid-sec-h { display: flex; flex-direction: column; gap: 4px; font: 700 20px/1.2 var(--gid-font-display) !important; margin-bottom: 12px !important; }
.gid-sec-h .t-label { font-size: 11px; }
/* the quickstart: a numbered stepper joined by one line */
.gid-qs { list-style: none; margin: 0; padding: 0; counter-reset: q; display: grid; gap: 0; }
.gid-qs li { position: relative; counter-increment: q; display: flex; flex-direction: column; gap: 2px; padding: 0 0 14px 40px; min-width: 0; }
.gid-qs li::before { content: counter(q); position: absolute; left: 0; top: 0; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--t-accent-line); border-radius: 50%; background: var(--gid-bg); color: var(--gid-cyan); font: 600 13px/1 var(--gid-font-mono); }
.gid-qs li::after { content: ""; position: absolute; left: 14px; top: 28px; bottom: 0; width: 1px; background: var(--gid-border-strong); }
.gid-qs li:last-child { padding-bottom: 0; }
.gid-qs li:last-child::after { display: none; }
.gid-qs b { color: var(--gid-text); font-weight: 600; line-height: 28px; }
.gid-qs span { color: var(--gid-muted); font-size: 14px; line-height: 1.45; }
@media (min-width: 800px) {
  .gid-qs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .gid-qs li { padding: 38px 0 0; }
  .gid-qs li::after { left: 36px; right: -20px; top: 14px; bottom: auto; width: auto; height: 1px; }
}
/* the claims: one closed row until asked */
.gid-sec--fold { padding-top: 0; padding-bottom: 0; }
.gid-fold { background: var(--gid-surface); border: 1px solid var(--gid-border); border-radius: var(--gid-r-lg); }
.gid-fold summary { display: flex; align-items: center; gap: 12px 16px; min-height: 56px; padding: 8px 14px; cursor: pointer; list-style: none; border-radius: var(--gid-r-lg); }
.gid-fold summary::-webkit-details-marker { display: none; }
.gid-fold-t { display: flex; flex-direction: column; gap: 1px; flex: none; }
.gid-fold-t b { color: var(--gid-text); font-weight: 600; }
.gid-fold-t .t-label { font-size: 11px; }
.gid-fold-s { display: none; flex: 1 1 auto; flex-wrap: wrap; justify-content: flex-end; gap: 4px; min-width: 0; }
.gid-fold-n { margin-left: auto; color: var(--gid-muted); font-size: 13px; }
.gid-fold .nav-ic { flex: none; transition: transform var(--gid-dur) var(--gid-ease); }
.gid-fold[open] .nav-ic { transform: rotate(180deg); }
.gid-fold .t-intro { margin: 0 14px 10px !important; }
.gid-fold .t-table-wrap { margin: 0 14px 14px; }
@media (min-width: 900px) { .gid-fold-s { display: flex; } .gid-fold-n { display: none; } }
/* wallet SDK and plans side by side */
.gid-duo { display: grid; gap: 20px; }
@media (min-width: 960px) { .gid-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } }
.gid-duo-c { min-width: 0; }
.gid-duo .t-intro { font-size: 14px; margin-top: 0 !important; }
.gid-duo .gid-pre { margin: 10px 0; padding: 10px 12px; font-size: 12.5px; }
.gid-duo-a { margin: 0; }
.gid-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.gid-plan { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 12px; background: var(--gid-surface); border: 1px solid var(--gid-border); border-radius: var(--gid-r-md); }
.gid-plan.is-pop { box-shadow: inset 0 2px 0 var(--gid-gold); }
.gid-plan .t-label { font-size: 11px; }
.gid-plan.is-pop .t-label { color: var(--gid-gold); }
.gid-plan b { color: var(--gid-text); font: 700 20px/1.2 var(--gid-font-mono); }
.gid-plan small { margin-left: 2px; color: var(--gid-muted); font: 400 11px var(--gid-font-mono); }
.gid-plan-m { color: var(--gid-muted); font-size: 12.5px; }
@media (max-width: 359px) { .gid-plans { grid-template-columns: 1fr; } }

/* stepper (the console's new-app wizard) as numbered pills */
.gid-stepper li { border-radius: var(--gid-r); opacity: .78; }
.gid-stepper li.is-on { box-shadow: inset 0 -3px 0 var(--gid-accent); }
@media (max-width: 799px) { .gid-stepper { display: flex !important; gap: 6px; border: 0 !important; } .gid-stepper li { flex: 1; padding: 8px !important; border: 1px solid var(--t-line) !important; } .gid-stepper li span { display: none; } }

/* toasts from the console script */
@media (max-width: 899px) { .t-toasts { bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important; left: 16px; right: 16px; } }

/* doc pages: prose column + sticky "On this page" from 1180 px (dev-pages.ts withDocToc) */
.gid-toc { display: none; }
@media (min-width: 1180px) {
  .gid-docgrid { display: grid; grid-template-columns: minmax(0, 1fr) 264px; gap: 48px; align-items: start; }
  .gid-docgrid > .gid-doc { min-width: 0; }
  .gid-toc { display: block; position: sticky; top: 88px; padding: 16px; border: 1px solid var(--t-line); border-radius: var(--gid-r-lg); background: var(--t-surface); }
  .gid-toc b { display: block; font: 700 13px/1.3 var(--gid-font-display); color: var(--t-text); margin-bottom: 8px; }
  .gid-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
  .gid-toc a { display: flex; align-items: center; min-height: 32px; padding: 0 8px; border-radius: 6px; font-size: 13.5px; color: var(--t-muted); text-decoration: none; }
  .gid-toc a:hover, .gid-toc a:focus-visible { color: var(--t-text); background: var(--t-surface-2); }
  .gid-toc-more { display: grid; gap: 2px; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--t-line); }
}
/* signed-out console: sign-in beside "What you get" */
.gid-signin-split { display: grid; gap: 24px; }
@media (min-width: 960px) { .gid-signin-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; } }
.gid-what { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.gid-what li { display: grid; gap: 2px; }
.gid-what b { color: var(--t-text); font-size: 14.5px; }
.gid-what span { color: var(--t-muted); font-size: 13.5px; line-height: 1.45; }
