/* =========================================================================
   Guides (/guides, /guides/<slug>). Tokens match image-to-3d.css so the
   guides sit next to the landing pages without a visual seam.
   ========================================================================= */
:root {
    /* Read by includes/navigation-light-landing.html */
    --primary-color: #3b82f6;
    --primary-accent: #2563eb;
    --transition-speed: 0.2s;

    --gd-primary: #3b82f6;
    --gd-primary-hover: #2563eb;
    --gd-primary-ink: #1d4ed8;
    --gd-primary-soft: #eff6ff;
    --gd-primary-ring: rgba(59, 130, 246, 0.22);
    --gd-text: #111827;
    --gd-text-2: #374151;
    --gd-muted: #6b7280;
    --gd-faint: #9ca3af;
    --gd-border: #e5e7eb;
    --gd-border-strong: #d1d5db;
    --gd-bg: var(--pp-page-bg, #f5f6f8);
    --gd-card: #fff;
    --gd-ink: #0b1220;
    --gd-success: #10b981;
    --gd-success-ink: #047857;
    --gd-success-soft: #ecfdf5;
    --gd-warn: #d97706;
    --gd-warn-soft: #fffbeb;
    --gd-danger: #dc2626;
    --gd-danger-soft: #fef2f2;
    --gd-radius: 16px;
    --gd-radius-sm: 10px;
    --gd-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 10px 28px -14px rgba(17, 24, 39, 0.14);
    --gd-shadow-hover: 0 2px 4px rgba(17, 24, 39, 0.05), 0 16px 36px -14px rgba(17, 24, 39, 0.2);
    --gd-measure: 720px;
}

.gd { color: var(--gd-text); background: #fff; }
.gd *, .gd *::before, .gd *::after { box-sizing: border-box; }
.gd [id] { scroll-margin-top: 92px; }
.gd a { color: var(--gd-primary-ink); text-underline-offset: 2px; }
.gd a:hover { color: var(--gd-primary-hover); }
.gd code { padding: 1px 5px; border-radius: 5px; background: #f3f4f6; color: #be185d; font-size: 0.88em; }
.gd .visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* -------------------------------------------------------------------------
   Reading progress
   ------------------------------------------------------------------------- */
.gd-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 1100; height: 3px; pointer-events: none; }
.gd-progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #3b82f6, #8b5cf6); }

/* -------------------------------------------------------------------------
   Buttons, kickers, chips
   ------------------------------------------------------------------------- */
.gd-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 18px; border: 1px solid transparent; border-radius: 12px;
    font-size: 15px; font-weight: 700; line-height: 1.2; text-decoration: none !important; white-space: nowrap; cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.gd-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--gd-primary-ring); }
.gd-btn i { font-size: 13px; }
.gd-btn--primary { background: var(--gd-primary); color: #fff !important; box-shadow: 0 1px 2px rgba(37, 99, 235, 0.3), 0 8px 18px -8px rgba(37, 99, 235, 0.65); }
.gd-btn--primary:hover { background: var(--gd-primary-hover); transform: translateY(-1px); }
.gd-btn--ghost { background: #fff; color: var(--gd-text-2) !important; border-color: var(--gd-border); }
.gd-btn--ghost:hover { background: #f9fafb; border-color: var(--gd-border-strong); color: var(--gd-text) !important; }
.gd-btn--light { background: #fff; color: var(--gd-text) !important; }
.gd-btn--light:hover { background: #f3f4f6; transform: translateY(-1px); }
.gd-btn--glass { background: rgba(255, 255, 255, 0.08); color: #fff !important; border-color: rgba(255, 255, 255, 0.28); }
.gd-btn--glass:hover { background: rgba(255, 255, 255, 0.16); }
.gd-btn--sm { padding: 8px 12px; font-size: 13.5px; border-radius: 10px; }
.gd-btn--lg { padding: 14px 24px; font-size: 16px; border-radius: 14px; }
.gd-btn--block { width: 100%; }

.gd-kicker {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
    font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gd-primary-hover);
}
.gd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gd-chips li {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
    background: #f3f4f6; color: var(--gd-text-2); font-size: 13px; font-weight: 600;
}
.gd-chips i { color: var(--gd-muted); font-size: 12px; }

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.gd-hero { position: relative; isolation: isolate; overflow: hidden; padding: 48px 0 56px; border-bottom: 1px solid var(--gd-border); background: #fff; }
.gd-hero__bg {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(60% 70% at 85% 10%, rgba(59, 130, 246, 0.12), transparent 70%),
        radial-gradient(40% 50% at 5% 100%, rgba(139, 92, 246, 0.08), transparent 70%),
        linear-gradient(#fff, #fafbff);
}
.gd-hero__bg::after {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(17, 24, 39, 0.07) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 85%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 85%);
}
.gd-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.gd-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; font-size: 13.5px; color: var(--gd-muted); }
.gd-crumbs a { color: var(--gd-muted); text-decoration: none; }
.gd-crumbs a:hover { color: var(--gd-primary-ink); }
.gd-crumbs span[aria-current] { color: var(--gd-text-2); font-weight: 600; }
.gd-h1 {
    margin: 0 0 16px; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); font-weight: 800;
    line-height: 1.08; letter-spacing: -0.03em; color: var(--gd-text); text-wrap: balance;
}
.gd-dek { margin: 0 0 22px; max-width: 640px; font-size: 1.15rem; line-height: 1.6; color: var(--gd-text-2); text-wrap: pretty; }
.gd-byline { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--gd-muted); }
.gd-byline li { display: inline-flex; align-items: center; gap: 7px; }
.gd-byline img { border-radius: 6px; }
.gd-hero__media { position: relative; min-width: 0; }
.gd-hero__graphic { border-radius: 20px; background: #fff; border: 1px solid var(--gd-border); box-shadow: 0 30px 60px -30px rgba(30, 64, 175, 0.35); overflow: hidden; }
.gd-hero__graphic svg { display: block; width: 100%; height: auto; }
.gd-hero__cap { margin: 12px 4px 0; font-size: 13px; color: var(--gd-muted); }
.gd-hero--hub { padding: 56px 0 48px; }
.gd-hero--hub .gd-dek { max-width: 760px; }

.gd-collage { display: grid; gap: 12px; }
.gd-collage--2 { grid-template-columns: 1fr 1fr; }
.gd-collage--3 { grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; }
.gd-collage--3 .gd-collage__item:first-child { grid-row: span 2; }
.gd-collage--4 { grid-template-columns: 1fr 1fr; }
.gd-collage__item { position: relative; margin: 0; overflow: hidden; border-radius: 16px; border: 1px solid var(--gd-border); background: #f3f4f6; box-shadow: var(--gd-shadow); }
.gd-collage__item img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gd-collage--3 .gd-collage__item:first-child img { aspect-ratio: auto; }
.gd-collage__item figcaption {
    position: absolute; left: 10px; bottom: 10px; padding: 4px 9px; border-radius: 999px;
    background: rgba(17, 24, 39, 0.78); color: #fff; font-size: 12px; font-weight: 700; backdrop-filter: blur(6px);
}

/* -------------------------------------------------------------------------
   Layout: sticky table of contents + article body
   ------------------------------------------------------------------------- */
.gd-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-top: 48px; padding-bottom: 72px; }
.gd-toc { position: relative; }
.gd-toc__inner { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; padding-bottom: 12px; scrollbar-width: thin; }
.gd-toc__label { display: block; margin-bottom: 10px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gd-faint); }
.gd-toc__list { margin: 0 0 22px; padding: 0; list-style: none; border-left: 2px solid var(--gd-border); }
.gd-toc__list a {
    display: block; margin-left: -2px; padding: 6px 0 6px 14px; border-left: 2px solid transparent;
    font-size: 13.5px; line-height: 1.4; color: var(--gd-muted); text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.gd-toc__list a:hover { color: var(--gd-text); }
.gd-toc__list a.is-active { color: var(--gd-primary-ink); border-left-color: var(--gd-primary); font-weight: 700; }
.gd-toc__card { padding: 16px; border-radius: 14px; background: linear-gradient(160deg, #eff6ff, #f5f3ff); border: 1px solid #dbeafe; }
.gd-toc__card strong { display: block; margin-bottom: 4px; font-size: 14.5px; }
.gd-toc__card p { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: var(--gd-text-2); }
.gd-toc__md { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; font-size: 13px; color: var(--gd-muted) !important; text-decoration: none; }
.gd-toc__md:hover { color: var(--gd-text) !important; }
.gd-toc-m { display: none; }

.gd-body { min-width: 0; max-width: 820px; font-size: 1.0625rem; line-height: 1.72; color: var(--gd-text-2); }
.gd-body > * + * { margin-top: 0; }
.gd-body p { margin: 0 0 1.1em; text-wrap: pretty; }
.gd-body strong { color: var(--gd-text); }
.gd-sec { padding-top: 12px; margin-bottom: 56px; }
.gd-h2 {
    margin: 0 0 16px; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem); font-weight: 800;
    line-height: 1.18; letter-spacing: -0.025em; color: var(--gd-text); text-wrap: balance;
}
.gd-h3 { margin: 34px 0 12px; font-size: 1.3rem; font-weight: 800; line-height: 1.3; letter-spacing: -0.015em; color: var(--gd-text); }
.gd-h4 { margin: 28px 0 12px; font-size: 1.05rem; font-weight: 800; color: var(--gd-text); }
.gd-lead { font-size: 1.15rem; line-height: 1.65; color: var(--gd-muted); }
.gd-note { margin: 10px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--gd-muted); }
.gd-list { margin: 0 0 1.2em; padding-left: 1.3em; }
.gd-list li { margin-bottom: 0.45em; padding-left: 0.2em; }
.gd-list li::marker { color: var(--gd-primary); }
.gd-list--num li::marker { font-weight: 800; }
.gd-list--tight { font-size: 14.5px; line-height: 1.6; }

/* Key takeaways + short answers */
.gd-takeaways { margin: 0 0 48px; padding: 22px 24px; border-radius: var(--gd-radius); background: var(--gd-ink); color: #e5e7eb; box-shadow: 0 24px 48px -28px rgba(11, 18, 32, 0.6); }
.gd-takeaways__title { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #93c5fd; }
.gd-takeaways ul { margin: 0; padding-left: 1.2em; font-size: 1rem; line-height: 1.62; }
.gd-takeaways li { margin-bottom: 0.5em; }
.gd-takeaways li::marker { color: #60a5fa; }
.gd-takeaways strong { color: #fff; }
.gd-takeaways a { color: #93c5fd; }
.gd-takeaways code { background: rgba(255, 255, 255, 0.1); color: #fbcfe8; }

.gd-answer { position: relative; margin: 0 0 24px; padding: 18px 20px 4px; border-radius: 14px; background: var(--gd-primary-soft); border: 1px solid #bfdbfe; }
.gd-answer__label { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gd-primary-ink); }
.gd-answer p { color: var(--gd-text); }

.gd-callout { display: flex; gap: 14px; margin: 0 0 24px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--gd-border); background: #f9fafb; font-size: 15.5px; line-height: 1.6; }
.gd-callout > i { margin-top: 4px; font-size: 16px; color: var(--gd-muted); }
.gd-callout strong { display: block; margin-bottom: 2px; }
.gd-callout p { margin: 0; }
.gd-callout--info { background: #f0f9ff; border-color: #bae6fd; } .gd-callout--info > i { color: #0284c7; }
.gd-callout--tip { background: var(--gd-success-soft); border-color: #a7f3d0; } .gd-callout--tip > i { color: var(--gd-success-ink); }
.gd-callout--warn { background: var(--gd-warn-soft); border-color: #fde68a; } .gd-callout--warn > i { color: var(--gd-warn); }
.gd-callout--safety { background: var(--gd-danger-soft); border-color: #fecaca; } .gd-callout--safety > i { color: var(--gd-danger); }
.gd-callout--ours { background: #f5f3ff; border-color: #ddd6fe; } .gd-callout--ours > i { color: #7c3aed; }

.gd-quote { margin: 0 0 24px; padding: 4px 0 4px 20px; border-left: 3px solid var(--gd-primary); }
.gd-quote p { margin: 0 0 6px; font-size: 1.1rem; font-style: italic; color: var(--gd-text); }
.gd-quote cite { font-size: 13.5px; font-style: normal; color: var(--gd-muted); }

/* -------------------------------------------------------------------------
   Tables
   ------------------------------------------------------------------------- */
.gd-table-fig { margin: 0 0 28px; }
.gd-table-cap { margin-bottom: 10px; font-size: 14px; font-weight: 800; color: var(--gd-text); }
.gd-table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--gd-border); border-radius: 14px; background: #fff; box-shadow: var(--gd-shadow); }
.gd-table-wrap:focus-visible { outline: 3px solid var(--gd-primary-ring); }
.gd-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.gd-table th, .gd-table td { padding: 11px 14px; border-bottom: 1px solid #f1f2f4; text-align: left; vertical-align: top; }
.gd-table thead th { position: sticky; top: 0; background: #f9fafb; color: var(--gd-muted); font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.gd-table tbody th { color: var(--gd-text); font-weight: 700; }
.gd-table tbody tr:last-child th, .gd-table tbody tr:last-child td { border-bottom: 0; }
.gd-table tbody tr:hover { background: #fafbff; }
.gd-table--matrix td { text-align: center; }
.gd-table--matrix thead th:not(:first-child) { text-align: center; }
.gd-table--bom { min-width: 520px; }
.gd-table--bom .gd-num { width: 56px; font-weight: 800; color: var(--gd-text); white-space: nowrap; }
.gd-table--wiring { min-width: 520px; font-size: 13.5px; }
.gd-yes { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 999px; background: var(--gd-success-soft); color: var(--gd-success-ink); font-size: 11px; }
.gd-no { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 999px; background: #f3f4f6; color: #9ca3af; font-size: 11px; }
.gd-na { color: var(--gd-faint); }

/* -------------------------------------------------------------------------
   Figures, galleries, graphics
   ------------------------------------------------------------------------- */
.gd-figure { margin: 0 0 28px; }
.gd-figure img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--gd-border); background: #f3f4f6; }
.gd-figure figcaption, .gd-graphic figcaption, .gd-compare figcaption { margin-top: 10px; font-size: 13.5px; line-height: 1.55; color: var(--gd-muted); }
.gd-credit { color: var(--gd-faint); }
.gd-gallery-wrap { margin: 0 0 28px; }
.gd-gallery { display: grid; gap: 14px; }
.gd-gallery--2 { grid-template-columns: repeat(2, 1fr); }
.gd-gallery--3 { grid-template-columns: repeat(3, 1fr); }
.gd-gallery--4 { grid-template-columns: repeat(4, 1fr); }
.gd-gallery .gd-figure { margin: 0; }
.gd-gallery .gd-figure img { aspect-ratio: 4 / 3; object-fit: cover; }
.gd-graphic { margin: 0 0 28px; }
.gd-graphic > svg, .gd-graphic .gd-svg { display: block; width: 100%; height: auto; }
.gd-frame { padding: 18px; border-radius: 18px; border: 1px solid var(--gd-border); background: #fff; box-shadow: var(--gd-shadow); }

/* -------------------------------------------------------------------------
   Code
   ------------------------------------------------------------------------- */
.gd-code { margin: 0 0 24px; overflow: hidden; border-radius: 14px; background: #0b1220; box-shadow: 0 20px 40px -28px rgba(11, 18, 32, 0.7); }
.gd-code__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px 9px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.gd-code__title { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: #9ca3af; }
.gd-code__copy { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 8px; background: transparent; color: #d1d5db; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.gd-code__copy:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.gd-code__copy.is-done { border-color: rgba(16, 185, 129, 0.6); color: #6ee7b7; }
.gd-code pre { margin: 0; max-height: 560px; overflow: auto; padding: 16px 18px; font-size: 13.5px; line-height: 1.6; tab-size: 2; scrollbar-width: thin; }
.gd-code pre code { padding: 0; background: none; color: #e5e7eb; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: inherit; white-space: pre; }
.gd-code__cap { margin: 0; padding: 10px 16px 12px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 13px; color: #9ca3af; }
.gd-code__cap code { background: rgba(255, 255, 255, 0.08); color: #f9a8d4; }
.gd-code .tk-c { color: #6b7280; font-style: italic; }
.gd-code .tk-s { color: #86efac; }
.gd-code .tk-n { color: #fbbf24; }
.gd-code .tk-k { color: #93c5fd; font-weight: 600; }
.gd-code .tk-p { color: #f0abfc; }

/* -------------------------------------------------------------------------
   Steps, checklist, stats, bars
   ------------------------------------------------------------------------- */
.gd-steps { margin: 0 0 24px; padding: 0; list-style: none; counter-reset: none; }
.gd-steps li { position: relative; display: flex; gap: 16px; padding: 0 0 18px; }
.gd-steps li:not(:last-child)::before { content: ''; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--gd-border); }
.gd-steps__n { flex: 0 0 32px; display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 999px; background: var(--gd-primary); color: #fff; font-size: 14px; font-weight: 800; box-shadow: 0 0 0 4px #fff; }
.gd-steps strong { display: block; margin: 4px 0 3px; color: var(--gd-text); }
.gd-steps p { margin: 0; font-size: 15.5px; }

.gd-check { margin: 0 0 28px; padding: 18px 20px; border: 1px solid var(--gd-border); border-radius: var(--gd-radius); background: #fff; box-shadow: var(--gd-shadow); }
.gd-check__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.gd-check__head strong { display: inline-flex; align-items: center; gap: 8px; }
.gd-check__count { font-size: 13px; font-weight: 700; color: var(--gd-muted); }
.gd-check__bar { height: 6px; margin-bottom: 12px; overflow: hidden; border-radius: 999px; background: #f1f2f4; }
.gd-check__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #10b981, #3b82f6); transition: width 0.3s ease; }
.gd-check ul { margin: 0; padding: 0; list-style: none; }
.gd-check li + li { border-top: 1px solid #f3f4f6; }
.gd-check label { display: flex; align-items: flex-start; gap: 12px; padding: 9px 2px; cursor: pointer; font-size: 15px; line-height: 1.55; }
.gd-check input { position: absolute; opacity: 0; pointer-events: none; }
.gd-check__box { flex: 0 0 22px; display: inline-flex; width: 22px; height: 22px; margin-top: 1px; align-items: center; justify-content: center; border: 2px solid var(--gd-border-strong); border-radius: 7px; color: transparent; font-size: 11px; transition: all 0.15s ease; }
.gd-check input:checked + .gd-check__box { border-color: var(--gd-success); background: var(--gd-success); color: #fff; }
.gd-check input:checked ~ span:last-child { color: var(--gd-muted); text-decoration: line-through; text-decoration-color: rgba(107, 114, 128, 0.5); }
.gd-check input:focus-visible + .gd-check__box { box-shadow: 0 0 0 4px var(--gd-primary-ring); }

.gd-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 28px; }
.gd-stats div { padding: 16px; border-radius: 14px; border: 1px solid var(--gd-border); background: #fff; box-shadow: var(--gd-shadow); }
.gd-stats dt { order: 2; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--gd-muted); }
.gd-stats dd { margin: 0 0 4px; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; color: var(--gd-text); }
.gd-stats div { display: flex; flex-direction: column; }

.gd-bars { margin: 0 0 28px; padding: 18px 20px; border-radius: var(--gd-radius); border: 1px solid var(--gd-border); background: #fff; box-shadow: var(--gd-shadow); }
.gd-bars__title { margin-bottom: 14px; font-size: 14.5px; font-weight: 800; color: var(--gd-text); }
.gd-bar { display: grid; grid-template-columns: minmax(120px, 34%) 1fr auto; align-items: center; gap: 12px; padding: 6px 0; font-size: 14px; }
.gd-bar__label { color: var(--gd-text-2); font-weight: 600; line-height: 1.35; }
.gd-bar__track { height: 10px; overflow: hidden; border-radius: 999px; background: #f1f2f4; }
.gd-bar__fill { display: block; height: 100%; width: var(--v); border-radius: inherit; background: linear-gradient(90deg, #60a5fa, #2563eb); transform-origin: 0 50%; transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.gd-bars[data-reveal]:not(.is-in) .gd-bar__fill { transform: scaleX(0); }
.gd-bar__val { min-width: 64px; text-align: right; font-weight: 800; color: var(--gd-text); font-variant-numeric: tabular-nums; }

/* -------------------------------------------------------------------------
   Filters + cards
   ------------------------------------------------------------------------- */
.gd-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; }
.gd-filters__label { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; font-size: 13px; font-weight: 700; color: var(--gd-muted); }
.gd-filters button { padding: 7px 13px; border: 1px solid var(--gd-border); border-radius: 999px; background: #fff; color: var(--gd-text-2); font-size: 13.5px; font-weight: 700; cursor: pointer; transition: all 0.15s ease; }
.gd-filters button:hover { border-color: var(--gd-border-strong); }
.gd-filters button[aria-pressed="true"] { border-color: var(--gd-text); background: var(--gd-text); color: #fff; }
.gd-filters__count { margin-left: auto; font-size: 13px; color: var(--gd-muted); }
[data-tags].is-hidden { display: none !important; }

.gd-cards { display: grid; gap: 16px; margin: 0 0 28px; }
.gd-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gd-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gd-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gd-card {
    display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--gd-border); border-radius: var(--gd-radius);
    background: #fff; box-shadow: var(--gd-shadow); color: inherit !important; text-decoration: none !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.gd-card:hover { transform: translateY(-2px); box-shadow: var(--gd-shadow-hover); border-color: var(--gd-border-strong); }
.gd-card__media { position: relative; display: block; aspect-ratio: 1200 / 630; overflow: hidden; background: #f3f4f6; border-bottom: 1px solid var(--gd-border); }
.gd-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gd-card:hover .gd-card__media img { transform: scale(1.03); }
.gd-card__badge { position: absolute; top: 10px; left: 10px; padding: 3px 8px; border-radius: 999px; background: rgba(17, 24, 39, 0.82); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.gd-card__icon { display: inline-flex; width: 44px; height: 44px; margin: 18px 18px 0; align-items: center; justify-content: center; border-radius: 12px; background: var(--gd-primary-soft); color: var(--gd-primary); font-size: 17px; }
.gd-card__body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.gd-card__kicker { font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gd-primary-hover); }
.gd-card__title { font-size: 16px; font-weight: 800; line-height: 1.3; color: var(--gd-text); }
.gd-card__text { font-size: 14px; line-height: 1.55; color: var(--gd-muted); }
.gd-card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.gd-card__meta span { padding: 3px 8px; border-radius: 999px; background: #f3f4f6; color: var(--gd-text-2); font-size: 12px; font-weight: 700; }
.gd-card__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13.5px; font-weight: 800; color: var(--gd-primary-ink); }
.gd-card__cta i { font-size: 11px; transition: transform 0.15s ease; }
.gd-card:hover .gd-card__cta i { transform: translateX(2px); }
.gd-card--row { flex-direction: row; align-items: center; }
.gd-card--row .gd-card__icon { margin: 0 0 0 18px; flex: 0 0 44px; }

/* -------------------------------------------------------------------------
   Picks (ranked recommendations)
   ------------------------------------------------------------------------- */
.gd-picks { display: grid; gap: 20px; margin: 0 0 32px; }
.gd-pick { padding: 22px 24px; border: 1px solid var(--gd-border); border-radius: 18px; background: #fff; box-shadow: var(--gd-shadow); }
.gd-pick--ours { border-color: #c7d2fe; background: linear-gradient(180deg, #f8faff, #fff 140px); }
.gd-pick__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.gd-pick__rank { flex: 0 0 40px; display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 12px; background: var(--gd-text); color: #fff; font-size: 17px; font-weight: 800; }
.gd-pick__logo { flex: 0 0 40px; border-radius: 10px; border: 1px solid var(--gd-border); background: #fff; object-fit: contain; }
.gd-pick__title { flex: 1; min-width: 0; }
.gd-pick__name { margin: 0; font-size: 1.3rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.015em; color: var(--gd-text); }
.gd-pick__best { margin: 2px 0 0 !important; font-size: 14px; color: var(--gd-muted); }
.gd-pick__price { flex: 0 0 auto; padding: 5px 10px; border-radius: 999px; background: var(--gd-success-soft); color: var(--gd-success-ink); font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.gd-pick__img { display: block; width: 100%; height: auto; margin: 0 0 16px; border-radius: 12px; border: 1px solid var(--gd-border); }
.gd-pick__verdict { font-size: 1.05rem; color: var(--gd-text) !important; }
.gd-facts { display: flex; flex-wrap: wrap; gap: 1px; margin: 0 0 16px; overflow: hidden; border: 1px solid var(--gd-border); border-radius: 12px; background: var(--gd-border); }
.gd-facts div { flex: 1 1 200px; padding: 10px 12px; background: #fafafa; }
.gd-facts dt { font-size: 11.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gd-faint); }
.gd-facts dd { margin: 2px 0 0; font-size: 14px; line-height: 1.45; color: var(--gd-text); }
.gd-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
.gd-proscons__h { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 6px; font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.gd-proscons__h--pro { color: var(--gd-success-ink) !important; }
.gd-proscons__h--con { color: var(--gd-warn) !important; }
.gd-proscons ul { margin: 0; padding-left: 1.15em; font-size: 14.5px; line-height: 1.55; }
.gd-proscons li { margin-bottom: 5px; }
.gd-pick__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid #f1f2f4; }
.gd-disclose { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; font-size: 13px; color: #6d28d9; }

/* -------------------------------------------------------------------------
   Projects (parts, wiring, code, steps)
   ------------------------------------------------------------------------- */
.gd-project { margin: 0 0 40px; padding: 24px; border: 1px solid var(--gd-border); border-radius: 20px; background: #fff; box-shadow: var(--gd-shadow); }
.gd-project__head { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 22px; align-items: start; margin-bottom: 18px; }
.gd-project__head:not(:has(img)) { grid-template-columns: 1fr; }
.gd-project__img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; border: 1px solid var(--gd-border); background: #f3f4f6; }
.gd-project__intro .gd-kicker { margin-bottom: 6px; }
.gd-project__title { margin: 0 0 8px; font-size: 1.45rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; color: var(--gd-text); }
.gd-project__intro p { margin-bottom: 12px; }
.gd-project__nav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.gd-project__nav a { padding: 4px 10px; border-radius: 8px; border: 1px solid var(--gd-border); font-size: 12.5px; font-weight: 700; color: var(--gd-text-2) !important; text-decoration: none; }
.gd-project__nav a:hover { border-color: var(--gd-primary); color: var(--gd-primary-ink) !important; }
.gd-learn { margin: 0 0 8px; padding: 14px 16px; border-radius: 12px; background: #f8fafc; border: 1px solid #e2e8f0; }
.gd-learn strong { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 14px; }
.gd-learn ul { margin: 0; padding-left: 1.2em; font-size: 14.5px; line-height: 1.6; }
.gd-print { display: flex; gap: 10px; margin: 6px 0 16px; font-size: 14.5px; }
.gd-print i { margin-top: 5px; color: var(--gd-muted); }
.gd-enclosure { display: flex; gap: 14px; margin: 8px 0 18px; padding: 16px; border-radius: 14px; background: linear-gradient(160deg, #eff6ff, #f5f3ff); border: 1px solid #dbeafe; }
.gd-enclosure__icon { flex: 0 0 40px; display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 12px; background: #fff; color: var(--gd-primary); box-shadow: var(--gd-shadow); }
.gd-enclosure p { margin: 2px 0 0; font-size: 15px; }
.gd-project__more { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; }

/* Wiring diagram */
.gd-wiring { margin: 0 0 20px; }
.gd-wiring__canvas { overflow-x: auto; padding: 8px; border-radius: 14px; border: 1px solid var(--gd-border); background-color: #fcfcfd; background-image: radial-gradient(rgba(17, 24, 39, 0.08) 1px, transparent 1px); background-size: 18px 18px; }
.gd-wiring svg { display: block; width: 100%; min-width: 620px; height: auto; font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.gd-wbox rect { fill: #fff; stroke: #d1d5db; stroke-width: 1.5; filter: drop-shadow(0 6px 10px rgba(17, 24, 39, 0.08)); }
.gd-wbox--c0 rect { fill: #0f172a; stroke: #0f172a; }
.gd-wbox--c0 .gd-wbox__name, .gd-wbox--c0 .gd-wpin { fill: #e5e7eb; }
.gd-wbox--c0 .gd-wbox__sub { fill: #94a3b8; }
.gd-wbox--c1 rect { fill: #fffbeb; stroke: #fcd34d; }
.gd-wbox__name { font-size: 13.5px; font-weight: 800; fill: #111827; }
.gd-wbox__sub { font-size: 11px; font-weight: 600; fill: #6b7280; }
.gd-wpin { font-size: 11.5px; font-weight: 700; fill: #374151; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.gd-wire { fill: none; stroke-width: 3.2; stroke-linecap: round; opacity: 0.92; }
.gd-wire-flow { fill: none; stroke: rgba(255, 255, 255, 0.95); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 2 16; animation: gd-flow 1.6s linear infinite; }
.gd-wdot { fill: #fff; stroke: #111827; stroke-width: 2; }
@keyframes gd-flow { to { stroke-dashoffset: -36; } }
.gd-wiring__cap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 10px 2px 12px; font-size: 13px; color: var(--gd-muted); }
.gd-legend { display: inline-flex; flex-wrap: wrap; gap: 6px 14px; }
.gd-legend span { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--gd-text-2); }
.gd-legend i { display: inline-block; width: 18px; height: 4px; border-radius: 4px; }
.gd-wiring > .gd-list { margin: 14px 0 0; }

/* Before/after compare */
.gd-compare { margin: 0 0 28px; }
.gd-compare__stage { position: relative; overflow: hidden; max-width: 560px; margin: 0 auto; border-radius: 16px; border: 1px solid var(--gd-border); background: #f3f4f6; aspect-ratio: 1; user-select: none; touch-action: pan-y; }
.gd-compare__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.gd-compare__top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.gd-compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.15); pointer-events: none; }
.gd-compare__handle i { position: absolute; top: 50%; left: 50%; display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 999px; background: #fff; color: var(--gd-text); font-size: 15px; box-shadow: 0 6px 16px rgba(17, 24, 39, 0.25); transform: translate(-50%, -50%); }
.gd-compare__label { position: absolute; top: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(17, 24, 39, 0.78); color: #fff; font-size: 12px; font-weight: 800; pointer-events: none; }
.gd-compare__label--l { left: 12px; }
.gd-compare__label--r { right: 12px; }
.gd-compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.gd-compare__range:focus-visible ~ .gd-compare__handle i, .gd-compare__stage:focus-within .gd-compare__handle i { box-shadow: 0 0 0 4px var(--gd-primary-ring), 0 6px 16px rgba(17, 24, 39, 0.25); }

/* Inline CTA */
.gd-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin: 8px 0 32px; padding: 18px 20px; border-radius: 16px; border: 1px solid #c7d2fe; background: linear-gradient(120deg, #eef2ff, #f0f9ff); }
.gd-cta__img { flex: 0 0 auto; width: 132px; height: auto; border-radius: 10px; border: 1px solid #dbeafe; }
.gd-cta__text { flex: 1 1 280px; }
.gd-cta__text strong { display: block; margin-bottom: 2px; font-size: 16px; }
.gd-cta__text p { margin: 0; font-size: 14.5px; line-height: 1.55; }
.gd-cta__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* -------------------------------------------------------------------------
   FAQ, sources, related, final CTA
   ------------------------------------------------------------------------- */
.gd-faq { border-top: 1px solid var(--gd-border); }
.gd-faq details { border-bottom: 1px solid var(--gd-border); }
.gd-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; }
.gd-faq summary::-webkit-details-marker { display: none; }
.gd-faq summary::after { content: '+'; flex: 0 0 auto; font-size: 22px; font-weight: 400; line-height: 1; color: var(--gd-muted); transition: transform 0.2s ease; }
.gd-faq details[open] summary::after { transform: rotate(45deg); }
.gd-faq summary h3 { margin: 0; font-size: 1.05rem; font-weight: 700; line-height: 1.4; color: var(--gd-text); }
.gd-faq__a { padding: 0 32px 16px 0; }
.gd-faq__a p { margin: 0; }

.gd-sources { padding: 22px 24px; border-radius: var(--gd-radius); background: #f9fafb; border: 1px solid var(--gd-border); }
.gd-sources .gd-h2 { font-size: 1.25rem; }
.gd-sources > p { font-size: 15px; }
.gd-sources__list { margin: 0; padding-left: 1.3em; font-size: 14px; line-height: 1.6; }
.gd-sources__list li { margin-bottom: 6px; word-break: break-word; }
.gd-sources__list span { color: var(--gd-muted); }

.gd-related { padding: 64px 0; background: var(--gd-bg); border-top: 1px solid var(--gd-border); }
.gd-related .gd-cards { margin-bottom: 0; }
.gd-final { padding: 72px 0 88px; background: var(--gd-bg); }
.gd-related + .gd-final { padding-top: 0; }
.gd-final__box { position: relative; overflow: hidden; padding: 48px; border-radius: 24px; background: radial-gradient(80% 120% at 100% 0%, #1e3a8a, transparent 60%), #0b1220; color: #cbd5e1; text-align: center; }
.gd-final__box h2 { margin: 0 0 10px; color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem); font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.gd-final__box p { max-width: 640px; margin: 0 auto 24px; font-size: 1.05rem; line-height: 1.6; }
.gd-final__box a:not(.gd-btn) { color: #93c5fd; }
.gd-final__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Hub */
.gd-hub { padding: 56px 0 24px; }
.gd-hub__group { margin-bottom: 56px; }
.gd-hub__head { max-width: 720px; margin-bottom: 22px; }
.gd-hub__head .gd-lead { margin: 0; }
.gd-card--guide .gd-card__title { font-size: 18px; }
.gd-method { padding: 24px 0 88px; }
.gd-method__box { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px; padding: 32px; border-radius: 20px; border: 1px solid var(--gd-border); background: var(--gd-bg); }
.gd-method__box .gd-list { margin: 0; color: var(--gd-text-2); line-height: 1.65; }
.gd-hub__more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }

/* -------------------------------------------------------------------------
   Graphics shared by templates/home/guides/graphics/*
   ------------------------------------------------------------------------- */
.gd-svg text { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.gd-svg text.gd-fa { font-family: "Font Awesome 6 Free"; font-weight: 900; }
.gd-anim-dash { stroke-dasharray: 6 8; animation: gd-dash 1.2s linear infinite; }
@keyframes gd-dash { to { stroke-dashoffset: -28; } }
.gd-anim-pulse { transform-box: fill-box; transform-origin: center; animation: gd-pulse 2.4s ease-in-out infinite; }
@keyframes gd-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: 0.85; } }
.gd-anim-float { animation: gd-float 5s ease-in-out infinite; }
@keyframes gd-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.gd-anim-travel { offset-rotate: 0deg; animation: gd-travel 7s linear infinite; }
@keyframes gd-travel { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.gd-anim-grow { transform-box: fill-box; transform-origin: bottom; animation: gd-grow 4.8s ease-in-out infinite; }
@keyframes gd-grow { 0% { transform: scaleY(0); } 45%, 80% { transform: scaleY(1); } 100% { transform: scaleY(0); } }

/* Phone versions of the pipeline and STL-sites heroes (SVG text is too small there) */
.gd-pipe-list, .gd-sites-list { display: none; margin: 0; padding: 14px; list-style: none; gap: 8px; }
.gd-pipe-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-areas: "icon name" "icon level"; column-gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--gd-border); background: #fff; }
.gd-pipe-list__icon { grid-area: icon; display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 999px; border: 2px solid var(--c); background: var(--bg); color: var(--ink); font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 14px; }
.gd-pipe-list strong { grid-area: name; font-size: 13.5px; line-height: 1.2; color: var(--gd-text); }
.gd-pipe-list em { grid-area: level; justify-self: start; padding: 1px 7px; border-radius: 999px; background: var(--bg); color: var(--ink); font-size: 10.5px; font-style: normal; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.gd-sites-list li { display: flex; flex-direction: column; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--gd-border); border-left: 5px solid var(--c); background: #fff; }
.gd-sites-list strong { font-size: 14px; color: var(--gd-text); }
.gd-sites-list span { font-size: 12.5px; color: var(--gd-muted); }

/* License decoder (best-free-stl-sites) */
.gd-lic { padding: 18px; }
.gd-lic__picker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.gd-lic__picker button { padding: 7px 12px; border: 1px solid var(--gd-border); border-radius: 10px; background: #fff; color: var(--gd-text-2); font-size: 13.5px; font-weight: 800; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; cursor: pointer; }
.gd-lic__picker button[aria-pressed="true"] { border-color: var(--gd-primary); background: var(--gd-primary-soft); color: var(--gd-primary-ink); }
.gd-lic__out { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.gd-lic__cell { padding: 12px; border-radius: 12px; border: 1px solid var(--gd-border); background: #fafafa; text-align: center; }
.gd-lic__cell i { display: block; margin: 0 auto 6px; font-size: 20px; }
.gd-lic__cell strong { display: block; font-size: 13px; color: var(--gd-text); }
.gd-lic__cell span { font-size: 12.5px; font-weight: 700; }
.gd-lic__cell.is-yes { border-color: #a7f3d0; background: var(--gd-success-soft); } .gd-lic__cell.is-yes i, .gd-lic__cell.is-yes span { color: var(--gd-success-ink); }
.gd-lic__cell.is-no { border-color: #fecaca; background: var(--gd-danger-soft); } .gd-lic__cell.is-no i, .gd-lic__cell.is-no span { color: var(--gd-danger); }
.gd-lic__cell.is-ask, .gd-lic__cell.is-private { border-color: #fde68a; background: var(--gd-warn-soft); }
.gd-lic__cell.is-ask i, .gd-lic__cell.is-ask span, .gd-lic__cell.is-private i, .gd-lic__cell.is-private span { color: var(--gd-warn); }
.gd-lic__summary { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--gd-text-2); }

/* Six printability checks (ai generators) */
.gd-printable__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gd-printable__tile { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 14px; border: 1px solid #f1f2f4; background: #fcfcfd; }
.gd-printable__tile svg { display: block; width: 100%; height: auto; margin-bottom: 4px; font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.gd-printable__tile strong { font-size: 14.5px; line-height: 1.3; color: var(--gd-text); }
.gd-printable__tile p { margin: 0 !important; font-size: 13.5px; line-height: 1.5; color: var(--gd-muted); }

/* AI assistant + PrintPal MCP chat (ai tools) */
.gd-chat { overflow: hidden; border-radius: 18px; border: 1px solid var(--gd-border); background: #fff; box-shadow: var(--gd-shadow); font-size: 14.5px; line-height: 1.5; }
.gd-chat__bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--gd-border); background: #f9fafb; font-size: 13px; font-weight: 700; color: var(--gd-text-2); }
.gd-chat__dots { display: inline-flex; gap: 5px; }
.gd-chat__dots i { width: 10px; height: 10px; border-radius: 50%; background: #fca5a5; }
.gd-chat__dots i:nth-child(2) { background: #fcd34d; }
.gd-chat__dots i:nth-child(3) { background: #86efac; }
.gd-chat__conn { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 3px 9px; border-radius: 999px; background: var(--gd-success-soft); color: var(--gd-success-ink); font-size: 12px; }
.gd-chat__log { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: linear-gradient(180deg, #fff, #fafbff); }
.gd-chat__msg { align-self: flex-start; max-width: 88%; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: #f3f4f6; color: var(--gd-text); }
.gd-chat__msg p { margin: 0 0 6px !important; }
.gd-chat__msg p:last-child { margin-bottom: 0 !important; }
.gd-chat__msg--user { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: var(--gd-primary); color: #fff; }
.gd-chat__tool { align-self: flex-start; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; max-width: 100%; padding: 6px 10px; border-radius: 10px; border: 1px dashed #c7d2fe; background: #eef2ff; font-size: 12.5px; color: #4338ca; }
.gd-chat__tool code { background: #fff !important; color: #4338ca !important; }
.gd-chat__tool span { color: #6366f1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-word; }
.gd-chat__model { display: flex; gap: 12px; align-items: center; margin-top: 4px; padding: 8px; border-radius: 12px; background: #fff; border: 1px solid var(--gd-border); }
.gd-chat__model img { flex: 0 0 72px; width: 72px; height: 72px; object-fit: cover; border-radius: 10px; background: #f3f4f6; }
.gd-chat__model strong { display: block; font-size: 14px; }
.gd-chat__model span { display: block; font-size: 12.5px; color: var(--gd-muted); }
.gd-chat__settings { margin-top: 2px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px !important; }
.gd-chat .gd-chat__log > * { transition: opacity 0.45s ease, transform 0.45s ease; transition-delay: calc(var(--d, 0) * 0.5s); }
.gd-chat[data-reveal]:not(.is-in) .gd-chat__log > * { opacity: 0; transform: translateY(8px); }

/* Anatomy of a model page (free stl sites) */
.gd-anatomy__page { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 18px; align-items: start; }
.gd-anatomy__img { position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--gd-border); background: #f3f4f6; }
.gd-anatomy__img img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.gd-anatomy__img .gd-anatomy__pin { position: absolute; }
.gd-anatomy__info { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.gd-anatomy__title { font-size: 1.15rem; font-weight: 800; color: var(--gd-text); }
.gd-anatomy__by { margin-top: -8px; font-size: 13px; color: var(--gd-muted); }
.gd-anatomy__row { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 13.5px; }
.gd-anatomy__pin { flex: 0 0 24px; display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 999px; background: #f59e0b; color: #fff; font-size: 12px; font-weight: 800; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25); animation: gd-pin 2.4s ease-in-out infinite; }
@keyframes gd-pin { 0%, 100% { box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25); } 50% { box-shadow: 0 0 0 7px rgba(245, 158, 11, 0.08); } }
.gd-anatomy__badge { padding: 3px 9px; border-radius: 8px; background: #fef3c7; color: #92400e; font-size: 12.5px; font-weight: 800; }
.gd-anatomy__settings { min-width: 0; padding: 6px 9px; border-radius: 8px; background: #f3f4f6; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.45; color: var(--gd-text-2); }
.gd-anatomy__stats { display: inline-flex; flex-wrap: wrap; gap: 12px; font-weight: 700; color: var(--gd-text-2); }
.gd-anatomy__stats i { margin-right: 5px; color: var(--gd-muted); }
.gd-anatomy__files { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.gd-anatomy__files b { padding: 3px 8px; border-radius: 6px; background: var(--gd-primary-soft); color: var(--gd-primary-ink); font-size: 12px; }
.gd-anatomy__chip { display: inline-flex; align-items: center; gap: 6px; color: var(--gd-text-2); font-weight: 600; }
.gd-anatomy__key { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; margin: 18px 0 0; padding: 16px 0 0 1.3em; border-top: 1px solid #f1f2f4; font-size: 14px; line-height: 1.55; color: var(--gd-text-2); }
.gd-anatomy__key li::marker { font-weight: 800; color: #d97706; }

/* Beginner toolkit pegboard (beginner tools) */
.gd-toolkit { padding: 16px 16px 14px; border-radius: 18px; border: 1px solid #e7dcc8; background-color: #f6efe3; background-image: radial-gradient(circle, #dccdb2 2.2px, transparent 2.6px); background-size: 22px 22px; background-position: 11px 11px; }
.gd-hero__graphic .gd-toolkit { border: 0; border-radius: 0; }
.gd-toolkit__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-bottom: 12px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.85); font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #78350f; }
.gd-toolkit__head span { display: inline-flex; align-items: center; gap: 8px; }
.gd-toolkit__head strong { font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--gd-text); }
.gd-toolkit__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.gd-toolkit__item { position: relative; display: flex; flex-direction: column; align-items: center; padding: 8px 6px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.55); text-align: center; }
.gd-toolkit__n { position: absolute; top: 6px; left: 6px; display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; border-radius: 999px; background: var(--gd-text); color: #fff; font-size: 11px; font-weight: 800; }
.gd-toolkit__art { display: block; width: 100%; max-width: 92px; height: auto; overflow: visible; font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.gd-toolkit__swing { transform-box: view-box; transform-origin: 0 -72px; animation: gd-swing 5s ease-in-out infinite; animation-delay: calc(var(--i) * -0.7s); }
@keyframes gd-swing { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
.gd-toolkit__name { margin-top: 4px; font-size: 12.5px; font-weight: 800; line-height: 1.25; color: var(--gd-text); }
.gd-toolkit__price { font-size: 12px; font-weight: 700; color: #92400e; }
.gd-toolkit__note { margin: 10px 2px 0; font-size: 12px; color: #78350f; }

/* Skill ladder (kids) */
.gd-ladder { padding: 16px; border-radius: 18px; border: 1px solid var(--gd-border); background: linear-gradient(180deg, #f8fafc, #eef2ff); }
.gd-hero__graphic .gd-ladder { border: 0; border-radius: 0; }
.gd-ladder__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-bottom: 14px; font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #4338ca; }
.gd-ladder__head span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.gd-ladder__hint { font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--gd-muted); }
/* Step 1 sits at the bottom; risers grow toward the top step like a staircase. */
.gd-ladder__steps { display: flex; flex-direction: column-reverse; gap: 6px; margin: 0; padding: 0; list-style: none; }
.gd-ladder__step { display: flex; align-items: stretch; }
.gd-ladder__riser { order: -1; flex: 0 0 auto; width: calc(10px + var(--i) * 18px); border-radius: 10px 0 0 10px; background: linear-gradient(90deg, #818cf8, #4338ca); transform-origin: left; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--i) * 0.12s); }
.gd-ladder[data-reveal]:not(.is-in) .gd-ladder__riser { transform: scaleX(0); }
.gd-ladder__card {
    flex: 1; min-width: 0; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-areas: "icon title age" "icon text text";
    column-gap: 10px; row-gap: 1px; align-items: center; padding: 8px 12px; border-radius: 0 12px 12px 0; background: #fff; border: 1px solid #e0e7ff; border-left: 0;
    animation: gd-climb 10s ease-in-out infinite; animation-delay: calc(var(--i) * 2s);
}
@keyframes gd-climb { 0%, 16%, 100% { box-shadow: none; transform: none; } 4%, 12% { box-shadow: 0 10px 24px -12px rgba(67, 56, 202, 0.55); transform: translateX(4px); } }
.gd-ladder__icon { grid-area: icon; display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 10px; background: #eef2ff; color: #4f46e5; font-size: 15px; }
.gd-ladder__age { grid-area: age; justify-self: end; padding: 2px 8px; border-radius: 999px; background: #fef3c7; color: #92400e; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.gd-ladder__title { grid-area: title; display: flex; gap: 6px; font-size: 14px; font-weight: 800; line-height: 1.25; color: var(--gd-text); }
.gd-ladder__num { flex: 0 0 auto; color: #6366f1; }
.gd-ladder__text { grid-area: text; font-size: 12.5px; line-height: 1.4; color: var(--gd-muted); }

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
    .gd-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 991.98px) {
    .gd-hero__grid { grid-template-columns: 1fr; gap: 32px; }
    .gd-layout { grid-template-columns: 1fr; padding-top: 28px; }
    .gd-toc { display: none; }
    .gd-body { max-width: none; }
    .gd-toc-m { display: block; margin: 0 0 24px; border: 1px solid var(--gd-border); border-radius: 14px; background: #fff; }
    .gd-toc-m summary { display: flex; align-items: center; gap: 9px; padding: 13px 16px; font-size: 14.5px; font-weight: 800; color: var(--gd-text); cursor: pointer; }
    .gd-toc-m ol { margin: 0; padding: 0 16px 14px 36px; font-size: 14.5px; line-height: 1.5; }
    .gd-toc-m li { padding: 4px 0; }
    .gd-toc-m a { color: var(--gd-text-2); text-decoration: none; }
    .gd-cards--3, .gd-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gd-hub__more, .gd-method__box { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
    .gd-hero { padding: 76px 0 40px; }
    .gd-hero--hub { padding: 80px 0 40px; }
    .gd-dek { font-size: 1.05rem; }
    .gd-body { font-size: 1rem; }
    .gd-sec { margin-bottom: 44px; }
    .gd-cards--2, .gd-cards--3, .gd-cards--4 { grid-template-columns: 1fr; }
    .gd-gallery--3, .gd-gallery--4 { grid-template-columns: repeat(2, 1fr); }
    .gd-pick, .gd-project { padding: 18px 16px; border-radius: 16px; }
    .gd-pick__head { flex-wrap: wrap; }
    .gd-pick__price { order: 3; }
    .gd-proscons { grid-template-columns: 1fr; }
    .gd-project__head { grid-template-columns: 1fr; }
    .gd-bar { grid-template-columns: 1fr auto; gap: 4px 10px; }
    .gd-bar__label { grid-column: 1 / -1; }
    .gd-final__box { padding: 32px 20px; }
    .gd-lic__out { grid-template-columns: repeat(2, 1fr); }
    .gd-takeaways { padding: 18px; }
    .gd-cta__img { display: none; }
    .gd-printable__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .gd-anatomy__page { grid-template-columns: 1fr; }
    .gd-anatomy__img { max-width: 280px; }
    .gd-anatomy__key { grid-template-columns: 1fr; }
    .gd-chat__msg { max-width: 94%; }
}
@media (max-width: 575.98px) {
    .gd-pipe-list, .gd-sites-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gd-hero__graphic .gd-pipe-svg, .gd-hero__graphic .gd-sites-svg, .gd-pipe-svg, .gd-sites-svg { display: none !important; }
    .gd-printable__grid { grid-template-columns: 1fr; }
    .gd-toolkit { padding: 10px; }
    .gd-toolkit__grid { gap: 6px; }
    .gd-toolkit__item { padding: 6px 2px 8px; }
    .gd-toolkit__n { top: 3px; left: 3px; width: 16px; height: 16px; font-size: 9.5px; }
    .gd-toolkit__name { font-size: 10.5px; }
    .gd-toolkit__price { font-size: 10px; }
    .gd-ladder { padding: 12px; }
    .gd-ladder__card { grid-template-areas: "icon title" "icon age" "icon text"; grid-template-columns: 34px minmax(0, 1fr); }
    .gd-ladder__age { justify-self: start; margin: 2px 0; }
    .gd-ladder__riser { width: calc(8px + var(--i) * 10px); }
}

@media (prefers-reduced-motion: reduce) {
    .gd *, .gd *::before, .gd *::after { animation: none !important; transition: none !important; }
    .gd-bars[data-reveal]:not(.is-in) .gd-bar__fill { transform: none; }
    .gd-chat[data-reveal]:not(.is-in) .gd-chat__log > * { opacity: 1; transform: none; }
    .gd-ladder[data-reveal]:not(.is-in) .gd-ladder__riser { transform: none; }
}
