/* ==========================================================================
   Boztik Guides: hub (body.gh) and articles (body.gd).
   Loaded after styles-premium.css. Everything is scoped to .gh / .gd so no other
   page is affected.

   Motion rules: hiding rules only apply when JavaScript is running (html.js) AND the
   visitor has not asked for reduced motion. Without JavaScript every guide, heading
   and image is simply visible, and the search/filter controls (which need JavaScript)
   are never shown.
   ========================================================================== */

.gh, .gd {
  --g-line: rgba(246, 255, 244, 0.12);
  --g-line-strong: rgba(142, 255, 61, 0.3);
  --g-panel: #0b110d;
  --g-panel-2: #0d140f;
  --g-neon: #8eff3d;
  --g-teal: #5fe3c2;
  --g-warn: #ffcf5c;
  --g-text: #f6fff4;
  --g-body: #dde8da;
  --g-muted: #b5c3b2;
  --g-mat: #e8ebe3;
  --g-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
.gh [hidden], .gd [hidden] { display: none !important; }
.gh [id], .gd [id] { scroll-margin-top: 120px; }
.g-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: clamp(20px, 4vw, 40px); }
.g-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.g-btn {
  display: inline-flex; min-height: 50px; align-items: center; justify-content: center;
  padding: 0 26px; border: 1px solid transparent; border-radius: 12px;
  font: inherit; font-size: 0.98rem; font-weight: 700; line-height: 1.2; text-align: center; cursor: pointer;
  transition: transform 0.2s var(--g-ease), background-color 0.2s ease, border-color 0.2s ease;
}
.g-btn--primary { background: var(--g-neon); color: #041107; }
.g-btn--primary:hover { background: #a6ff63; transform: translateY(-2px); }
.g-btn--ghost { border-color: rgba(142, 255, 61, 0.4); color: var(--g-text); background: transparent; }
.g-btn--ghost:hover { border-color: var(--g-neon); background: rgba(142, 255, 61, 0.1); transform: translateY(-2px); }

.g-chip {
  display: inline-block; padding: 3px 11px; border: 1px solid rgba(142, 255, 61, 0.45); border-radius: 99px;
  color: var(--g-neon); font-size: 0.8rem; font-weight: 700; line-height: 1.5;
}
.g-badge {
  display: inline-block; padding: 3px 10px; border-radius: 99px; background: var(--g-neon); color: #041107;
  font-size: 0.74rem; font-weight: 800; line-height: 1.5;
}
.g-badge--updated { background: transparent; border: 1px solid var(--g-teal); color: var(--g-teal); }

/* ======================= HUB ======================= */
.gh-hero { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(40px, 6vw, 88px) clamp(48px, 7vw, 96px); }
.gh-hero__glow {
  position: absolute; z-index: -1; width: min(900px, 120vw); aspect-ratio: 1; right: -18%; top: -45%; pointer-events: none;
  background: radial-gradient(circle, rgba(142, 255, 61, 0.16), rgba(142, 255, 61, 0.04) 45%, transparent 70%);
}
.gh-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.gh-hero__kicker { margin-bottom: 18px; color: var(--g-neon); font-size: 0.98rem; font-weight: 600; }
.gh-hero h1 { margin-bottom: 22px; font-size: clamp(2.5rem, 5.4vw, 4.6rem); line-height: 1.02; letter-spacing: -0.045em; color: var(--g-text); }
.gh-hero__lede { max-width: 54ch; margin-bottom: 14px; color: var(--g-muted); font-size: clamp(1.02rem, 1.5vw, 1.18rem); line-height: 1.65; }
.gh-hero__levels { max-width: 54ch; margin-bottom: 32px; color: var(--g-text); font-size: 1rem; font-weight: 600; }
.gh-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.gh-print { position: relative; margin: 0; padding: 20px; max-width: 600px; justify-self: center; width: 100%; }
.gh-print::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; --m: rgba(142, 255, 61, 0.85);
  background:
    linear-gradient(var(--m), var(--m)) top left / 18px 2px no-repeat, linear-gradient(var(--m), var(--m)) top left / 2px 18px no-repeat,
    linear-gradient(var(--m), var(--m)) top right / 18px 2px no-repeat, linear-gradient(var(--m), var(--m)) top right / 2px 18px no-repeat,
    linear-gradient(var(--m), var(--m)) bottom left / 18px 2px no-repeat, linear-gradient(var(--m), var(--m)) bottom left / 2px 18px no-repeat,
    linear-gradient(var(--m), var(--m)) bottom right / 18px 2px no-repeat, linear-gradient(var(--m), var(--m)) bottom right / 2px 18px no-repeat;
}
.gh-print__mat { padding: clamp(10px, 1.6vw, 16px); border-radius: 3px; background: var(--g-mat); box-shadow: 0 40px 70px -28px rgba(0, 0, 0, 0.85); }
.gh-print__mat img { width: 100%; height: auto; aspect-ratio: 780 / 557; }
.gh-print figcaption { margin-top: 16px; color: var(--g-muted); font-size: 0.9rem; line-height: 1.55; }
.gh-print figcaption a { color: var(--g-text); text-decoration: underline; text-decoration-color: rgba(142, 255, 61, 0.5); text-underline-offset: 4px; }

.gh-section { padding-block: clamp(48px, 7vw, 96px); }
.gh-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.gh-rule { display: block; width: 56px; height: 2px; margin-bottom: 20px; background: var(--g-neon); transform-origin: left center; }
.gh-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.08; letter-spacing: -0.035em; color: var(--g-text); }
.gh-head p { margin-top: 14px; max-width: 58ch; color: var(--g-muted); font-size: 1.05rem; line-height: 1.7; }

/* Start here: a real sequence, so it is numbered */
.gh-start { border-block: 1px solid var(--g-line); background: linear-gradient(180deg, #07100a, #0a130c); }
.gh-path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin: 0; padding: 0; list-style: none; counter-reset: p; }
.gh-path li { position: relative; }
.gh-path li:not(:last-child)::after {
  content: ""; position: absolute; top: 21px; left: 56px; right: calc(-1 * clamp(20px, 3vw, 40px) + 6px); height: 2px;
  background: linear-gradient(90deg, var(--g-neon), rgba(142, 255, 61, 0.15));
}
.gh-path a { display: block; padding-right: 8px; }
.gh-path__n {
  display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; margin-bottom: 18px;
  border: 2px solid var(--g-neon); border-radius: 50%; background: var(--g-panel); color: var(--g-neon); font-weight: 800; position: relative; z-index: 1;
}
.gh-path strong { display: block; font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.02em; color: var(--g-text); transition: color 0.2s ease; }
.gh-path span.gh-path__why { display: block; margin-top: 8px; color: var(--g-muted); line-height: 1.6; }
.gh-path a:hover strong { color: var(--g-neon); }

/* Library */
.gh-tools { display: grid; gap: 18px; margin-bottom: 30px; }
.gh-search { position: relative; max-width: 520px; }
.gh-search input {
  width: 100%; min-height: 52px; padding: 0 16px 0 46px; border: 1px solid var(--g-line); border-radius: 12px;
  background: var(--g-panel); color: var(--g-text); font: inherit; font-size: 1rem;
  transition: border-color 0.2s ease;
}
.gh-search input::placeholder { color: #8d9b8a; }
.gh-search input:hover { border-color: rgba(142, 255, 61, 0.4); }
.gh-search svg { position: absolute; left: 15px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--g-muted); pointer-events: none; }
.gh-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.gh-filters button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1px solid var(--g-line); border-radius: 99px;
  background: transparent; color: var(--g-text); font: inherit; font-size: 0.94rem; font-weight: 600; cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--g-ease);
}
.gh-filters button:hover { border-color: var(--g-neon); transform: translateY(-1px); }
.gh-filters button[aria-pressed="true"] { border-color: var(--g-neon); background: var(--g-neon); color: #041107; }
.gh-filters button span { font-size: 0.82rem; font-weight: 700; opacity: 0.75; font-variant-numeric: tabular-nums; }
.gh-count { color: var(--g-muted); font-size: 0.95rem; }

.gh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 26px; margin: 0; padding: 0; list-style: none; }
.gh-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--g-line); border-radius: 18px; background: var(--g-panel);
  transition: border-color 0.25s ease, transform 0.35s var(--g-ease), box-shadow 0.35s ease;
}
.gh-card:hover, .gh-card:focus-within { border-color: var(--g-line-strong); transform: translateY(-4px); box-shadow: 0 28px 50px -30px #000; }
.gh-card__media { aspect-ratio: 8 / 5; overflow: hidden; background: #101a13; }
.gh-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--g-ease); }
.gh-card:hover .gh-card__media img { transform: scale(1.045); }
.gh-card__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 20px 22px 24px; }
.gh-card__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gh-card h3 { font-size: 1.22rem; line-height: 1.22; letter-spacing: -0.02em; color: var(--g-text); }
.gh-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.gh-card h3 a:focus-visible { outline: none; }
.gh-card:has(h3 a:focus-visible) { outline: 3px solid var(--accent, #5fe3c2); outline-offset: 3px; }
.gh-card p { color: var(--g-muted); font-size: 0.97rem; line-height: 1.6; }
.gh-card__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: auto; padding-top: 6px; color: var(--g-muted); font-size: 0.86rem; }
.gh-card__cta { color: var(--g-neon); font-weight: 700; font-size: 0.95rem; }
.gh-card__cta::after { content: ""; display: inline-block; width: 0.5em; height: 0.5em; margin-left: 0.5em; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: translateY(-1px) rotate(45deg); transition: transform 0.25s var(--g-ease); }
.gh-card:hover .gh-card__cta::after { transform: translate(4px, -1px) rotate(45deg); }

.gh-card--feature { grid-column: 1 / -1; }
.gh-empty { padding: 40px 0; }
.gh-empty h3 { font-size: 1.4rem; letter-spacing: -0.02em; }
.gh-empty p { margin: 8px 0 18px; color: var(--g-muted); }

.gh-more { border-top: 1px solid var(--g-line); }
.gh-more ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 28px; margin: 22px 0 0; padding: 0; list-style: none; }
.gh-more li { padding-top: 14px; border-top: 1px solid var(--g-line); color: var(--g-muted); line-height: 1.5; }
.gh-more li strong { display: block; color: var(--g-text); }

/* ======================= ARTICLE ======================= */
.gd-progress { position: fixed; inset: 0 0 auto 0; z-index: 1001; height: 3px; pointer-events: none; }
.gd-progress i { display: block; height: 100%; background: var(--g-neon); transform-origin: left center; transform: scaleX(0); }

.gd-head { padding-block: clamp(28px, 4vw, 56px) clamp(24px, 3vw, 40px); }
.gd-crumbs { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 22px; padding: 0; list-style: none; color: var(--g-muted); font-size: 0.9rem; }
.gd-crumbs li:not(:last-child)::after { content: "/"; margin-left: 10px; opacity: 0.5; }
.gd-crumbs a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: color 0.2s ease; }
.gd-crumbs a:hover { color: var(--g-neon); text-decoration-color: var(--g-neon); }
.gd-head .g-chip { margin-bottom: 0; }
.gd-head h1 { max-width: 20ch; font-size: clamp(2.1rem, 4.6vw, 3.7rem); line-height: 1.04; letter-spacing: -0.04em; color: var(--g-text); }
.gd-dek { max-width: 60ch; margin-top: 18px; color: var(--g-muted); font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.65; }
.gd-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 22px; color: var(--g-muted); font-size: 0.92rem; }
.gd-meta a { color: var(--g-text); text-decoration: underline; text-decoration-color: rgba(142, 255, 61, 0.5); text-underline-offset: 4px; }

.gd-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-bottom: clamp(40px, 6vw, 72px); }
.gd-toc { border: 1px solid var(--g-line); border-radius: 14px; background: var(--g-panel); }
.gd-toc summary { padding: 14px 18px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.gd-toc summary::-webkit-details-marker { display: none; }
.gd-toc summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--g-neon); border-bottom: 2px solid var(--g-neon); transform: rotate(45deg); transition: transform 0.2s ease; }
.gd-toc[open] summary::after { transform: rotate(-135deg); }
.gd-toc ol { margin: 0; padding: 0 18px 16px; list-style: none; display: grid; gap: 2px; }
.gd-toc a { display: block; padding: 7px 0 7px 12px; border-left: 2px solid var(--g-line); color: var(--g-muted); font-size: 0.93rem; line-height: 1.4; transition: color 0.2s ease, border-color 0.2s ease; }
.gd-toc a:hover { color: var(--g-text); }
.gd-toc a[aria-current="true"] { border-left-color: var(--g-neon); color: var(--g-text); font-weight: 600; }

.gd-glance { margin: 0 0 8px; padding: 22px 24px; border: 1px solid var(--g-line-strong); border-radius: 16px; background: var(--g-panel-2); }
.gd-glance h2 { margin: 0 0 12px !important; font-size: 1.05rem !important; letter-spacing: -0.01em !important; }
.gd-glance dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; margin: 0; }
.gd-glance dt { color: var(--g-muted); font-size: 0.92rem; }
.gd-glance dd { margin: 0; color: var(--g-text); font-size: 0.97rem; line-height: 1.5; }

.gd-body { font-size: clamp(1.0625rem, 0.35vw + 1rem, 1.15rem); line-height: 1.78; color: var(--g-body); min-width: 0; }
.gd-body > p, .gd-body > ul, .gd-body > ol { max-width: 68ch; }
.gd-body p { margin: 0 0 1.15em; }
.gd-body h2 { margin: 2.4em 0 0.6em; font-size: clamp(1.55rem, 2.6vw, 2.1rem); line-height: 1.15; letter-spacing: -0.03em; color: var(--g-text); }
.gd-body > h2:first-child { margin-top: 0; }
.gd-body h3 { margin: 1.8em 0 0.5em; font-size: 1.22rem; line-height: 1.25; letter-spacing: -0.015em; color: var(--g-text); }
.gd-body ul, .gd-body ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.gd-body li { margin-bottom: 0.5em; padding-left: 0.2em; }
.gd-body a { color: var(--g-neon); text-decoration: underline; text-decoration-color: rgba(142, 255, 61, 0.45); text-underline-offset: 4px; }
.gd-body a:hover { text-decoration-color: var(--g-neon); }
.gd-body strong { color: #fff; }
.gd-body dfn { font-style: normal; font-weight: 700; color: var(--g-text); border-bottom: 1px dotted var(--g-neon); }
.gd-body kbd { padding: 1px 7px; border: 1px solid var(--g-line); border-bottom-width: 2px; border-radius: 6px; background: var(--g-panel-2); color: var(--g-text); font: 600 0.86em/1.4 Inter, "Segoe UI", sans-serif; white-space: nowrap; }
.gd-path { padding: 1px 8px; border-radius: 6px; background: rgba(142, 255, 61, 0.1); color: var(--g-text); font-weight: 600; font-size: 0.94em; }

.gd-steps { counter-reset: s; list-style: none; padding: 0 !important; }
.gd-steps > li { position: relative; margin-bottom: 1.4em; padding: 0 0 0 3.4rem !important; counter-increment: s; }
.gd-steps > li::before {
  content: counter(s); position: absolute; left: 0; top: 0.1em; display: flex; width: 2.2rem; height: 2.2rem; align-items: center; justify-content: center;
  border: 2px solid var(--g-neon); border-radius: 50%; color: var(--g-neon); font-weight: 800; font-size: 0.95rem; line-height: 1;
}
.gd-steps > li > strong:first-child { display: block; margin-bottom: 0.2em; color: var(--g-text); font-size: 1.08em; }
.gd-steps > li p { margin-bottom: 0.7em; }

.gd-note { margin: 1.8em 0; padding: 18px 22px; max-width: 68ch; border-left: 4px solid var(--g-neon); border-radius: 0 14px 14px 0; background: rgba(142, 255, 61, 0.07); }
.gd-note--warn { border-left-color: var(--g-warn); background: rgba(255, 207, 92, 0.08); }
.gd-note--limit { border-left-color: var(--g-teal); background: rgba(95, 227, 194, 0.08); }
.gd-note__label { margin: 0 0 4px !important; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--g-neon); }
.gd-note--warn .gd-note__label { color: var(--g-warn); }
.gd-note--limit .gd-note__label { color: var(--g-teal); }
.gd-note p:last-child { margin-bottom: 0; }

.gd-ps { margin: 1.8em 0; padding: 20px 24px; max-width: 68ch; border: 1px dashed var(--g-line-strong); border-radius: 14px; background: var(--g-panel); }
.gd-ps__label { display: inline-block; margin: 0 0 10px !important; padding: 2px 10px; border-radius: 99px; background: rgba(142, 255, 61, 0.14); color: var(--g-neon); font-size: 0.78rem; font-weight: 800; }
.gd-ps > :last-child { margin-bottom: 0; }

.gd-fig { margin: 2em 0; max-width: 820px; }
.gd-fig img { width: 100%; height: auto; border-radius: 12px; }
.gd-fig--print img { padding: 10px; border-radius: 3px; background: var(--g-mat); }
.gd-fig figcaption { margin-top: 10px; color: var(--g-muted); font-size: 0.92rem; line-height: 1.55; }

.gd-table-wrap { margin: 1.8em 0; overflow-x: auto; border: 1px solid var(--g-line); border-radius: 12px; }
.gd-table-wrap:focus-visible { outline-offset: 2px; }
.gd-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.96rem; line-height: 1.5; }
.gd-table caption { padding: 12px 16px; text-align: left; color: var(--g-muted); font-size: 0.9rem; caption-side: bottom; }
.gd-table th, .gd-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--g-line); }
.gd-table thead th { color: var(--g-text); background: var(--g-panel-2); font-size: 0.9rem; }
.gd-table tbody th { color: var(--g-text); font-weight: 700; }
.gd-table tbody tr:last-child > * { border-bottom: 0; }

.gd-key { margin: 2.4em 0 1.4em; padding: 24px 28px; max-width: 68ch; border: 1px solid var(--g-line-strong); border-radius: 16px; background: var(--g-panel-2); }
.gd-key h2 { margin: 0 0 12px !important; font-size: 1.3rem !important; }
.gd-key ul { margin-bottom: 0; }
.gd-sources { max-width: 68ch; margin-top: 2em; padding-top: 1.2em; border-top: 1px solid var(--g-line); font-size: 0.93rem; line-height: 1.6; color: var(--g-muted); }
.gd-sources h2 { margin: 0 0 8px !important; font-size: 1.05rem !important; letter-spacing: 0 !important; }
.gd-sources ul { margin: 0; }

.gd-after { padding-bottom: clamp(32px, 5vw, 64px); }
.gd-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 clamp(36px, 5vw, 56px); }
.gd-pager a { display: block; padding: 20px 22px; border: 1px solid var(--g-line); border-radius: 16px; background: var(--g-panel); transition: border-color 0.2s ease, transform 0.3s var(--g-ease); }
.gd-pager a:hover { border-color: var(--g-neon); transform: translateY(-3px); }
.gd-pager a:only-child { grid-column: 1 / -1; }
.gd-pager small { display: block; margin-bottom: 6px; color: var(--g-muted); font-size: 0.84rem; }
.gd-pager strong { display: block; font-size: 1.05rem; line-height: 1.3; color: var(--g-text); }
.gd-pager a[rel="next"] { text-align: right; }
.gd-after h2 { margin-bottom: 18px; font-size: 1.4rem; letter-spacing: -0.02em; }
.gd-related { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.gd-related a { display: block; height: 100%; padding: 18px 20px; border: 1px solid var(--g-line); border-radius: 14px; transition: border-color 0.2s ease; }
.gd-related a:hover { border-color: var(--g-neon); }
.gd-related strong { display: block; margin: 8px 0 4px; font-size: 1.02rem; line-height: 1.3; color: var(--g-text); }
.gd-related span:last-child { color: var(--g-muted); font-size: 0.92rem; line-height: 1.5; }
.gd-back { display: inline-block; margin-top: 26px; color: var(--g-neon); font-weight: 700; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgba(142, 255, 61, 0.45); }

/* ======================= MOTION ======================= */
@media (prefers-reduced-motion: no-preference) {
  @keyframes g-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
  @keyframes g-settle { from { opacity: 0; transform: translateY(26px) rotate(-1.6deg); } to { opacity: 1; transform: none; } }
  @keyframes g-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

  .gh-hero__kicker, .gh-hero h1, .gh-hero__lede, .gh-hero__levels, .gh-hero__cta { animation: g-rise 0.9s var(--g-ease) both; animation-delay: calc(var(--i, 0) * 110ms + 60ms); }
  .gh-print { animation: g-settle 1.1s var(--g-ease) 0.35s both; }

  .js .gh-rule[data-reveal] { transform: scaleX(0); transition: transform 0.9s var(--g-ease); }
  .js .gh-rule[data-reveal].is-in { transform: none; }

  .js .gh-card[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.8s var(--g-ease), border-color 0.25s ease, box-shadow 0.35s ease; transition-delay: var(--d, 0ms), var(--d, 0ms), 0s, 0s; }
  .js .gh-card[data-reveal] .gh-card__media img { transform: scale(1.08); transition: transform 1.2s var(--g-ease); transition-delay: var(--d, 0ms); }
  .js .gh-card[data-reveal].is-in { opacity: 1; transform: none; }
  .js .gh-card[data-reveal].is-in .gh-card__media img { transform: none; }
  .js .gh-card[data-reveal].is-in:hover { transform: translateY(-4px); transition-delay: 0s; }
  .js .gh-card[data-reveal].is-in:hover .gh-card__media img { transform: scale(1.045); transition: transform 0.7s var(--g-ease); transition-delay: 0s; }
  .gh-card.is-refiltered { animation: g-in 0.45s var(--g-ease) both; animation-delay: var(--d, 0ms); }

  .js .gh-path li[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.8s var(--g-ease); transition-delay: var(--d, 0ms); }
  .js .gh-path li[data-reveal].is-in { opacity: 1; transform: none; }

  @supports (animation-timeline: scroll()) {
    @keyframes g-drift { to { transform: translate3d(0, -110px, 0) scale(1.18); opacity: 0.35; } }
    .gh-hero__glow { animation: g-drift linear both; animation-timeline: scroll(root); animation-range: 0 800px; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gh *, .gd * { transition-duration: 0.01ms !important; animation: none !important; }
}

/* ======================= RESPONSIVE ======================= */
@media (min-width: 1100px) {
  .gd-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 56px; }
  .gd-toc { position: sticky; top: 124px; align-self: start; max-height: calc(100vh - 150px); overflow: auto; }
  .gh-card--feature { flex-direction: row; }
  .gh-card--feature .gh-card__media { flex: 1.15; aspect-ratio: auto; min-height: 320px; }
  .gh-card--feature .gh-card__body { flex: 1; justify-content: center; padding: 34px 38px; }
  .gh-card--feature h3 { font-size: 1.7rem; }
}
@media (max-width: 900px) {
  .gh-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .gh-print { max-width: 520px; }
  .gh-path { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .gh-path li:not(:last-child)::after { top: 52px; bottom: -28px; left: 21px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--g-neon), rgba(142, 255, 61, 0.15)); }
  .gh-path a { padding-left: 64px; }
  .gh-path__n { position: absolute; left: 0; top: 0; margin: 0; }
}
@media (max-width: 640px) {
  .gd-pager { grid-template-columns: minmax(0, 1fr); }
  .gd-pager a[rel="next"] { text-align: left; }
  .gd-glance dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .gd-glance dd { margin-bottom: 10px; }
  .gd-steps > li { padding-left: 3rem !important; }
  .gh-hero__cta .g-btn { width: 100%; }
}


/* Tool-learning feature panel and accessible share controls */
.gh-tool-learning { padding-top: 0; }
.gh-tool-learning__card {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); gap: clamp(24px, 5vw, 56px);
  align-items: center; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--g-line-strong);
  border-radius: 20px; background: linear-gradient(135deg, rgba(142,255,61,.075), rgba(11,17,13,.96) 48%);
}
.gh-tool-learning__copy h2 { margin: 16px 0 12px; max-width: 17ch; color: var(--g-text); font-size: clamp(1.7rem,3.2vw,2.45rem); line-height: 1.1; letter-spacing: -.035em; }
.gh-tool-learning__copy p { max-width: 60ch; margin-bottom: 22px; color: var(--g-muted); line-height: 1.7; }
.gh-tool-learning__index { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.gh-tool-learning__index span { padding: 12px 14px; border: 1px solid var(--g-line); border-radius: 10px; background: rgba(5,12,7,.55); color: var(--g-body); font-size: .9rem; line-height: 1.35; }
.gh-share-button { font: inherit; }
.gh-share-status { align-self: center; color: var(--g-muted); font-size: .88rem; }
.gd-share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.gd-share-status { color: var(--g-muted); font-size: .9rem; }
.gd-share-row button { font: inherit; }
@media (max-width: 760px) {
  .gh-tool-learning__card { grid-template-columns: 1fr; }
  .gh-tool-learning__index { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 420px) {
  .gh-tool-learning__index { grid-template-columns: 1fr; }
  .gd-share-row { align-items: flex-start; flex-direction: column; }
}
