/* ==================================================================
   Guides (kilona.org/guides/): the Kilona Learn search, Learning Path
   themes, technology tags, the app banner. Loaded by the guides pages
   only (templates/core/_guides_assets.html: bump its ?v= on change).

   A themed element carries the path's colors as custom properties
   (api/services/guide_themes.theme_for): --th-c0..--th-c3 (the aurora
   palette, app slot order), --th-accent and --th-accent-rgb (a text
   color readable on the site's black).
   ================================================================== */

/* ------------------------------------------------------------------ */
/* Header: search button + Get the app                                 */
/* ------------------------------------------------------------------ */
.gh-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.gh-search {
    width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
    color: #ddd; border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.04);
    transition: background .15s, border-color .15s, color .15s;
}
.gh-search:hover { background: rgba(255,255,255,0.1); color: #fff; }
.gh-search svg, .gs-glass {
    fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
}
.gh-search svg { width: 17px; height: 17px; }
.gh-app {
    font-size: 0.82rem; font-weight: 600; color: #000; background: #fff; border-radius: 999px;
    padding: 7px 15px; text-decoration: none; white-space: nowrap; transition: opacity .15s;
}
.gh-app:hover { opacity: 0.85; }

/* ------------------------------------------------------------------ */
/* Kilona Learn hero                                                   */
/* ------------------------------------------------------------------ */
.gl-hero {
    margin: 26px 0 6px; padding: 30px 40px 30px; border-radius: 28px;
    background: #111113; border: 1px solid rgba(255,255,255,0.08);
    position: relative; z-index: 5;
}
.gl-hero-title {
    color: #fff; font-size: 1.95rem; font-weight: 700; letter-spacing: -0.01em;
    line-height: 1.2; margin-bottom: 10px;
}
.gl-hero-sub { color: #bdbdc2; font-size: 1.05rem; line-height: 1.55; margin-bottom: 18px; }
.gl-hero .gl-topics { margin-top: 16px; }

/* ------------------------------------------------------------------ */
/* Search field + dropdown                                             */
/* ------------------------------------------------------------------ */
.gs { position: relative; }
.gs-field {
    position: relative; display: flex; align-items: center; gap: 10px;
    height: 60px; padding: 0 16px 0 54px; border-radius: 16px;
    background: #2a2a2d; border: 1px solid rgba(255,255,255,0.12);
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.gs-field:focus-within {
    background: #2e2e32; border-color: rgba(154,180,255,0.65);
    box-shadow: 0 0 0 4px rgba(91,140,255,0.16);
}
.gs-glass {
    position: absolute; left: 19px; top: 50%; width: 21px; height: 21px;
    transform: translateY(-50%); color: #b8b8be; pointer-events: none;
}
.gs-input {
    flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: 0;
    color: #fff; font: inherit; font-size: 1.08rem;
}
.gs-input::placeholder { color: #9a9aa0; }
.gs-input::-webkit-search-cancel-button { filter: invert(1); opacity: 0.45; cursor: pointer; }
.gs-kbd {
    flex: none; border: 1px solid rgba(255,255,255,0.18); border-radius: 6px; color: #8a8a90;
    font: 600 0.75rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 4px 7px;
}
.gs-field:focus-within .gs-kbd, .gs-input:not(:placeholder-shown) ~ .gs-kbd { display: none; }

.gs-panel {
    position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40;
    background: #17171a; border: 1px solid rgba(255,255,255,0.12); border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.65); padding: 6px;
    max-height: min(70vh, 580px); overflow-y: auto; overscroll-behavior: contain;
}
.gs-panel[hidden] { display: none; }
.gs-group {
    color: #75757c; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.09em;
    text-transform: uppercase; padding: 10px 12px 4px;
}
.gs-opt {
    display: flex; gap: 12px; align-items: flex-start; padding: 9px 12px; border-radius: 12px;
    text-decoration: none; color: #ddd; cursor: pointer;
}
.gs-opt:hover, .gs-opt[aria-selected="true"] { background: rgba(255,255,255,0.07); }
.gs-opt-text { min-width: 0; flex: 1; }
.gs-opt-meta {
    display: block; color: var(--th-accent, #9ab4ff); font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.04em; text-transform: uppercase;
}
.gs-opt-title { display: block; color: #fff; font-weight: 600; line-height: 1.35; }
.gs-opt-snippet {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    color: #9a9aa0; font-size: 0.85rem; line-height: 1.45; margin-top: 2px;
}
.gs-topic { align-items: center; }
.gs-topic-chip {
    flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
    background: rgba(255,255,255,0.08); color: #ddd; font-weight: 700; font-size: 1rem;
}
.gs-topic-count { color: #8a8a90; font-size: 0.82rem; }
.gs-all {
    display: block; margin: 4px 0 0; padding: 11px 12px; border-top: 1px solid rgba(255,255,255,0.08);
    color: #9ab4ff; font-size: 0.88rem; font-weight: 600; text-decoration: none; border-radius: 0 0 10px 10px;
}
.gs-all:hover, .gs-all[aria-selected="true"] { background: rgba(255,255,255,0.05); }
.gs-empty { color: #8a8a90; font-size: 0.9rem; padding: 14px 12px; }

/* Highlighted query words, in the result's own color. */
.gs-panel mark, .gr mark {
    color: #fff; border-radius: 3px; padding: 0 1px;
    background: rgba(122,184,255,0.25);
    background: color-mix(in srgb, var(--th-accent, #7ab8ff) 30%, transparent);
}

/* A result's theme swatch: the path's aurora as a still gradient. */
.th-swatch {
    flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
    color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
    background:
        radial-gradient(120% 90% at 15% 20%, var(--th-c0, #8cc7f2) 0%, transparent 62%),
        radial-gradient(110% 90% at 85% 30%, var(--th-c2, #4db8cc) 0%, transparent 60%),
        linear-gradient(135deg, var(--th-c1, #336bd9), var(--th-c3, #5999ed));
}
.th-swatch .gi { width: 22px; height: 22px; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.35)); }

/* The search overlay (header button and "/" on every page but the home). */
.gs-overlay {
    position: fixed; inset: 0; z-index: 1000; display: flex; justify-content: center;
    align-items: flex-start; padding: 12vh 16px 16px;
    background: rgba(0,0,0,0.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.gs-overlay[hidden] { display: none; }
.gs-sheet {
    width: min(680px, 100%); display: grid; grid-template-columns: 1fr auto; gap: 10px;
    align-items: start;
}
.gs-close {
    height: 60px; padding: 0 14px; border: 0; border-radius: 14px; background: transparent;
    color: #bbb; font: inherit; font-size: 0.92rem; cursor: pointer;
}
.gs-close:hover { color: #fff; }
body.gs-locked { overflow: hidden; }

/* ------------------------------------------------------------------ */
/* Search results on the guides home (?q= / ?tag=)                      */
/* ------------------------------------------------------------------ */
.gr { margin: 0 0 30px; }
.gr-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.gr-title { color: #fff; font-size: 1.25rem; line-height: 1.3; }
.gr-clear { flex: none; color: #9ab4ff; font-size: 0.88rem; text-decoration: none; }
.gr-clear:hover { text-decoration: underline; }
.gr-count { color: #77777d; font-size: 0.85rem; margin: 2px 0 12px; }
.gr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gr-item {
    display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 14px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    text-decoration: none; transition: border-color .15s, background .15s;
}
.gr-item:hover {
    background: rgba(255,255,255,0.05);
    border-color: color-mix(in srgb, var(--th-accent, #7ab8ff) 55%, transparent);
}
.gr-item .gr-swatch {
    flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
    color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
    background:
        radial-gradient(120% 90% at 15% 20%, var(--th-c0) 0%, transparent 62%),
        radial-gradient(110% 90% at 85% 30%, var(--th-c2) 0%, transparent 60%),
        linear-gradient(135deg, var(--th-c1), var(--th-c3));
}
.gr-item .gr-swatch .gi { width: 22px; height: 22px; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.35)); }
.gr-body { min-width: 0; }
.gr-meta {
    display: block; color: var(--th-accent); font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.04em; text-transform: uppercase;
}
.gr-name { display: block; color: #fff; font-weight: 600; line-height: 1.35; }
.gr-snippet { display: block; color: #9a9aa0; font-size: 0.88rem; line-height: 1.5; margin-top: 3px; }
.gr-empty { color: #8a8a90; }

/* ------------------------------------------------------------------ */
/* Themed banners: aurora + symbol grid + spotlight                    */
/* ------------------------------------------------------------------ */
.gb { position: relative; isolation: isolate; overflow: hidden; color: #fff; }
.gb-bg {
    position: absolute; inset: 0; z-index: -1; overflow: hidden;
    /* The still stand-in (and the look without WebGL): the palette as soft light. */
    background:
        radial-gradient(90% 140% at 8% 0%, var(--th-c0) 0%, transparent 58%),
        radial-gradient(80% 120% at 92% 15%, var(--th-c2) 0%, transparent 58%),
        radial-gradient(110% 120% at 55% 115%, var(--th-c3) 0%, transparent 62%),
        linear-gradient(160deg, var(--th-c1), var(--th-c3));
}
.gb-bg::before { /* the shader's 0.75 dim, matched for the still gradient */
    content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.25);
}
.gb-aurora {
    position: absolute; inset: 0; width: 100%; height: 100%; display: block;
    opacity: 0; transition: opacity .9s ease;
}
.gb-aurora.is-live { opacity: 1; }
.gb-grid, .gb-spot { position: absolute; inset: 0; overflow: hidden; }
.gb-grid {
    /* The symbol grid fades out under the words on the left. */
    -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0.25) 0%, #000 60%);
    mask-image: linear-gradient(90deg, rgba(0,0,0,0.25) 0%, #000 60%);
}
/* The symbol grid: six related symbols in a 204 x 102 tile
   (scripts/guide_tiles.py), on a layer turned slightly and far larger than
   the banner, drifting one tile along its rows and looping: diagonal lines
   of symbols sliding slowly one way. A transform, so the drift is cheap. */
.gb-tiles {
    position: absolute; inset: -260px; background: rgba(255,255,255,0.17);
    -webkit-mask: var(--gb-tile) 0 0 / 204px 102px repeat;
    mask: var(--gb-tile) 0 0 / 204px 102px repeat;
    transform: rotate(-12deg);
    animation: gb-drift 38s linear infinite;
    will-change: transform;
}
@keyframes gb-drift {
    from { transform: rotate(-12deg) translateX(0); }
    to { transform: rotate(-12deg) translateX(-204px); }
}
.gb-spot {
    opacity: 0; transition: opacity .35s ease;
    -webkit-mask-image: radial-gradient(circle 130px at var(--mx, 50%) var(--my, 50%), #000 0%, rgba(0,0,0,0.35) 45%, transparent 100%);
    mask-image: radial-gradient(circle 130px at var(--mx, 50%) var(--my, 50%), #000 0%, rgba(0,0,0,0.35) 45%, transparent 100%);
}
.gb-spot .gb-tiles { background: rgba(255,255,255,0.7); }
.gb:hover .gb-spot { opacity: 1; }
.gb-veil {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 55%, rgba(0,0,0,0.04) 100%),
        linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.3) 100%);
}
.gb-eyebrow {
    color: rgba(255,255,255,0.88); font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px;
}
.gb-title { color: #fff; font-size: 2rem; line-height: 1.15; letter-spacing: -0.01em; text-shadow: 0 1px 14px rgba(0,0,0,0.3); }
.gb-intro { color: rgba(255,255,255,0.88); font-size: 1rem; line-height: 1.6; margin-top: 10px; max-width: 62ch; }
.gb-version { color: rgba(255,255,255,0.75); font-size: 0.85rem; margin-top: 6px; }

/* The glass tile that holds a path's animated symbol. */
.gp-icon-tile {
    flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
    color: #fff; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.3);
    -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), 0 10px 26px rgba(0,0,0,0.25);
}
.gp-icon-tile .gi { width: 30px; height: 30px; }
.gp-icon-tile--large { width: 72px; height: 72px; border-radius: 20px; margin-bottom: 18px; }
.gp-icon-tile--large .gi { width: 38px; height: 38px; }

/* A Learning Path block on the guides home. */
.gp-card {
    border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; overflow: hidden;
    background: #0b0b0d; margin-bottom: 20px; transition: border-color .2s ease;
}
.gp-card:hover, .gp-card:focus-within { border-color: rgba(var(--th-accent-rgb), 0.45); }
.gp-banner {
    display: flex; align-items: center; gap: 16px; min-height: 132px; padding: 22px 24px;
    text-decoration: none;
}
.gp-banner-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.gp-count {
    color: rgba(255,255,255,0.86); font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
}
.gp-title {
    color: #fff; font-size: 1.5rem; line-height: 1.2; margin: 2px 0 0;
    text-shadow: 0 1px 12px rgba(0,0,0,0.3);
}
.gp-go {
    flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(0,0,0,0.28); border: 1px solid rgba(255,255,255,0.22);
    transition: transform .2s ease, background .2s ease;
}
.gp-go svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gp-card:hover .gp-go { transform: translateX(3px); background: rgba(0,0,0,0.4); }
.gp-body { padding: 18px 24px 20px; }
.gp-summary { color: #a6a6ac; font-size: 0.93rem; line-height: 1.6; margin-bottom: 12px; }
.gp-chapters { list-style: none; margin: 14px 0 0; padding: 0; }
.gp-chapters a {
    display: flex; gap: 12px; align-items: baseline; padding: 5px 8px; margin: 0 -8px;
    border-radius: 8px; color: #e2e2e6; text-decoration: none; line-height: 1.45;
    transition: background .12s, color .12s;
}
.gp-chapters a:hover { background: rgba(var(--th-accent-rgb), 0.1); color: #fff; }
.gp-num {
    flex: none; width: 22px; text-align: right; color: var(--th-accent);
    font-variant-numeric: tabular-nums; font-weight: 600; font-size: 0.88rem;
}

/* A path page's header. */
.gpp-banner { border-radius: 24px; padding: 34px 32px 30px; margin-bottom: 26px; min-height: 250px; }
.gpp-banner .gt-row { margin-top: 18px; }
.gpp-chapters { margin-bottom: 8px; }

/* A guide page's header. */
.gpg-banner { border-radius: 22px; padding: 26px 28px; margin-bottom: 22px; min-height: 150px; display: flex; align-items: flex-end; }
.gpg-content { display: flex; align-items: center; gap: 18px; width: 100%; }
.gpg-text { min-width: 0; }
.gpg-banner .gb-title { font-size: 1.85rem; }

/* Themed pages: chapters, pager and cards wear the path's accent. */
.gc-chapter .guide-card-number { color: var(--th-accent); }
.gc-chapter:hover, .gc-themed:hover { border-color: rgba(var(--th-accent-rgb), 0.55); }
.gc-themed { position: relative; overflow: hidden; padding-top: 19px; }
.gc-themed::before {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
    background: linear-gradient(90deg, var(--th-c0), var(--th-c1), var(--th-c2), var(--th-c3));
}
.guide-container .tut-pager-link { color: var(--th-accent, #9ab4ff); }
.tut-pager-dir {
    display: block; color: #77777d; font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
}
.tut-pager-next { text-align: right; }
.gn-dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px;
    vertical-align: 1px; background: linear-gradient(135deg, var(--th-c0), var(--th-c2));
    box-shadow: 0 0 0 1px rgba(255,255,255,0.12);
}

/* ------------------------------------------------------------------ */
/* Make something: the How To shelf, covers, a How To's header          */
/* ------------------------------------------------------------------ */
.gm-path { margin: 0 0 28px; }
.gm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.gm-path-title { color: #fff; font-size: 1.15rem; font-weight: 700; text-decoration: none; }
.gm-path-title:hover { color: var(--th-accent); }
.gm-path-count { flex: none; color: #85858b; font-size: 0.8rem; }
.gm-summary { color: #a6a6ac; font-size: 0.9rem; line-height: 1.55; margin: 2px 0 12px; }
.gm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.gm-card {
    display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; text-decoration: none;
    background: #0b0b0d; border: 1px solid rgba(255,255,255,0.1);
    transition: border-color .2s ease, transform .2s ease;
}
.gm-card:hover, .gm-card:focus-visible { border-color: rgba(var(--th-accent-rgb), 0.55); transform: translateY(-2px); }
.gm-media { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.gm-media img, .gm-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gm-body { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 14px; }
.gm-eyebrow {
    color: var(--th-accent); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase;
}
.gm-title { color: #fff; font-weight: 650; line-height: 1.3; }
.gm-sum {
    color: #9a9aa0; font-size: 0.84rem; line-height: 1.45; display: -webkit-box;
    -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* A cover: the How To's own animated visual over the path's aurora. The
   frame never takes the pointer; static/js/guides.js tells it when to play. */
.gc-cover { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.gc-cover .gb-grid, .gc-cover .gb-spot { display: none; }
.gc-cover .gb-veil { background: rgba(0,0,0,0.16); }
.gc-cover-frame {
    position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block;
    pointer-events: none; background: transparent;
}
.gc-cover--hero { border-radius: 22px; margin-bottom: 18px; }
.gh-howto { margin-bottom: 4px; }
.gh-eyebrow {
    color: var(--th-accent); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; margin-bottom: 6px;
}
.gh-title { font-size: 2rem; line-height: 1.15; letter-spacing: -0.01em; }
.gt-uses { margin: -18px 0 30px; }
.gn-group {
    display: block; color: #6f6f75; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; margin: 16px 0 6px;
}

/* ------------------------------------------------------------------ */
/* Tag pills                                                           */
/* ------------------------------------------------------------------ */
.gt-row { margin-top: 34px; }
.gt-row--small { margin-top: 0; }
.gt-label {
    color: #85858b; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; margin-bottom: 10px;
}
.gt-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.gt-pill {
    display: inline-block; padding: 6px 13px; border-radius: 999px; font-size: 0.82rem;
    font-weight: 500; line-height: 1.3; color: #e6e6ea; text-decoration: none;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.13);
    transition: background .15s, border-color .15s, color .15s;
}
.gt-pill:hover {
    color: #fff; background: rgba(var(--th-accent-rgb, 154, 180, 255), 0.16);
    border-color: rgba(var(--th-accent-rgb, 154, 180, 255), 0.55);
}
.gt-pill.is-active { background: #fff; border-color: #fff; color: #000; }
.gt-row--small .gt-pill { padding: 3px 10px; font-size: 0.76rem; }
.gb .gt-pill {
    color: #fff; background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.3);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.gb .gt-pill:hover { background: rgba(255,255,255,0.26); }

/* ------------------------------------------------------------------ */
/* The Kilona app banner                                               */
/* ------------------------------------------------------------------ */
.ga-cta {
    display: flex; align-items: center; gap: 18px; margin-top: 40px; padding: 20px 22px;
    border-radius: 20px; border: 1px solid rgba(255,255,255,0.12);
    background:
        radial-gradient(120% 160% at 0% 0%, rgba(var(--th-accent-rgb, 154, 180, 255), 0.2) 0%, transparent 60%),
        rgba(255,255,255,0.03);
}
.ga-icon-link { flex: none; }
.ga-icon { width: 64px; height: 64px; border-radius: 15px; display: block; box-shadow: 0 6px 20px rgba(0,0,0,0.45); }
.ga-text { flex: 1; min-width: 0; }
.ga-title { color: #fff; font-weight: 700; font-size: 1.1rem; line-height: 1.3; margin-bottom: 3px; }
.ga-sub { color: #a9a9af; font-size: 0.9rem; line-height: 1.5; }
.ga-store { flex: none; }
.ga-store img { height: 44px; width: auto; display: block; }

/* ------------------------------------------------------------------ */
/* Animated symbols (templates/core/_guide_icon.html)                  */
/* Each plays while an ancestor .gx is hovered or focused; .gi-once     */
/* plays once as the page opens. Never under reduced motion.           */
/* ------------------------------------------------------------------ */
.gi { display: inline-grid; place-items: center; width: 24px; height: 24px; }
.gi svg {
    width: 100%; height: 100%; overflow: visible; fill: none; stroke: currentColor;
    stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.gi .gi-fill { fill: currentColor; stroke: none; }
.gi .gi-fill-soft { fill: currentColor; fill-opacity: 0.2; }
.gi svg * { transform-box: view-box; }
.gi-once { --gi-n: 1; }

/* compass: the needle swings and settles */
.gi--compass .gi-needle { transform-origin: 12px 12px; }
.gi--compass .gi-tick { opacity: 0.6; }
:is(.gx:hover, .gx:focus-within) .gi--compass .gi-needle,
.gi-once.gi--compass .gi-needle { animation: gi-compass 1.9s cubic-bezier(.3,.6,.3,1) var(--gi-n, infinite) .1s; }
@keyframes gi-compass {
    0%, 100% { transform: rotate(0); }
    22% { transform: rotate(-42deg); }
    46% { transform: rotate(30deg); }
    66% { transform: rotate(-13deg); }
    82% { transform: rotate(5deg); }
}

/* sparkle: the stars twinkle in turn */
.gi--sparkle .gi-star-1 { transform-origin: 11px 12px; }
.gi--sparkle .gi-star-2 { transform-origin: 18.5px 5px; }
.gi--sparkle .gi-star-3 { transform-origin: 18px 18.5px; }
:is(.gx:hover, .gx:focus-within) .gi--sparkle .gi-star-1,
.gi-once.gi--sparkle .gi-star-1 { animation: gi-twinkle-big 1.8s ease-in-out var(--gi-n, infinite); }
:is(.gx:hover, .gx:focus-within) .gi--sparkle .gi-star-2,
.gi-once.gi--sparkle .gi-star-2 { animation: gi-twinkle 1.8s ease-in-out var(--gi-n, infinite) .25s; }
:is(.gx:hover, .gx:focus-within) .gi--sparkle .gi-star-3,
.gi-once.gi--sparkle .gi-star-3 { animation: gi-twinkle 1.8s ease-in-out var(--gi-n, infinite) .55s; }
@keyframes gi-twinkle-big {
    0%, 100% { transform: scale(1) rotate(0); }
    35% { transform: scale(0.78) rotate(-14deg); }
    65% { transform: scale(1.14) rotate(8deg); }
}
@keyframes gi-twinkle {
    0%, 100% { transform: scale(1); opacity: 1; }
    40% { transform: scale(0.2); opacity: 0.2; }
    70% { transform: scale(1.3); opacity: 1; }
}

/* playhead: the playhead sweeps, the clips light as it passes */
.gi--playhead .gi-clip { fill: currentColor; fill-opacity: 0; }
:is(.gx:hover, .gx:focus-within) .gi--playhead .gi-head,
.gi-once.gi--playhead .gi-head { animation: gi-sweep 2.2s cubic-bezier(.45,0,.55,1) var(--gi-n, infinite); }
:is(.gx:hover, .gx:focus-within) .gi--playhead .gi-clip-1,
.gi-once.gi--playhead .gi-clip-1 { animation: gi-clip-1 2.2s linear var(--gi-n, infinite); }
:is(.gx:hover, .gx:focus-within) .gi--playhead .gi-clip-3,
.gi-once.gi--playhead .gi-clip-3 { animation: gi-clip-3 2.2s linear var(--gi-n, infinite); }
:is(.gx:hover, .gx:focus-within) .gi--playhead .gi-clip-2,
.gi-once.gi--playhead .gi-clip-2 { animation: gi-clip-2 2.2s linear var(--gi-n, infinite); }
@keyframes gi-sweep { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(12px); } }
@keyframes gi-clip-1 { 0%, 30%, 100% { fill-opacity: 0; } 8% { fill-opacity: 0.5; } }
@keyframes gi-clip-3 { 0%, 8%, 45%, 100% { fill-opacity: 0; } 25% { fill-opacity: 0.5; } }
@keyframes gi-clip-2 { 0%, 25%, 62%, 100% { fill-opacity: 0; } 45% { fill-opacity: 0.5; } }

/* nodes: a pulse runs along the wire */
.gi--nodes .gi-wire { opacity: 0.55; }
.gi--nodes .gi-pulse { stroke-width: 2.6; stroke-dasharray: 3.5 40; stroke-dashoffset: 3.5; }
:is(.gx:hover, .gx:focus-within) .gi--nodes .gi-pulse,
.gi-once.gi--nodes .gi-pulse { animation: gi-pulse 1.3s cubic-bezier(.5,0,.5,1) var(--gi-n, infinite) .1s; }
@keyframes gi-pulse { from { stroke-dashoffset: 3.5; } to { stroke-dashoffset: -20; } }

/* bone: the chain bends at the joint */
.gi--bone .gi-limb { transform-origin: 11px 13px; }
:is(.gx:hover, .gx:focus-within) .gi--bone .gi-limb,
.gi-once.gi--bone .gi-limb { animation: gi-bend 1.8s cubic-bezier(.4,0,.3,1) var(--gi-n, infinite); }
@keyframes gi-bend {
    0%, 100% { transform: rotate(0); }
    35% { transform: rotate(-34deg); }
    68% { transform: rotate(12deg); }
}

/* cube: the top face extrudes and settles */
.gi--cube .gi-rise { opacity: 0; }
:is(.gx:hover, .gx:focus-within) .gi--cube .gi-lid,
.gi-once.gi--cube .gi-lid { animation: gi-lid 1.8s cubic-bezier(.3,.7,.3,1) var(--gi-n, infinite); }
:is(.gx:hover, .gx:focus-within) .gi--cube .gi-rise,
.gi-once.gi--cube .gi-rise { animation: gi-rise 1.8s cubic-bezier(.3,.7,.3,1) var(--gi-n, infinite); }
@keyframes gi-lid { 0%, 100% { transform: translateY(0); } 40%, 60% { transform: translateY(-3px); } }
@keyframes gi-rise { 0%, 100% { opacity: 0; } 40%, 60% { opacity: 1; } }

/* curve: the handles swing and the curve redraws */
.gi--curve .gi-handle { opacity: 0.85; }
.gi--curve .gi-handle-a { transform-origin: 4px 17.5px; }
.gi--curve .gi-handle-b { transform-origin: 20px 6.5px; }
.gi--curve .gi-path { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
:is(.gx:hover, .gx:focus-within) .gi--curve .gi-path,
.gi-once.gi--curve .gi-path { animation: gi-draw 2s ease-in-out var(--gi-n, infinite); }
:is(.gx:hover, .gx:focus-within) .gi--curve .gi-handle-a,
.gi-once.gi--curve .gi-handle-a { animation: gi-handle-a 2s ease-in-out var(--gi-n, infinite); }
:is(.gx:hover, .gx:focus-within) .gi--curve .gi-handle-b,
.gi-once.gi--curve .gi-handle-b { animation: gi-handle-b 2s ease-in-out var(--gi-n, infinite); }
@keyframes gi-draw { 0%, 100% { stroke-dashoffset: 0; } 12% { stroke-dashoffset: 1; } 70% { stroke-dashoffset: 0; } }
@keyframes gi-handle-a { 0%, 100% { transform: rotate(0); } 35% { transform: rotate(-22deg); } 70% { transform: rotate(10deg); } }
@keyframes gi-handle-b { 0%, 100% { transform: rotate(0); } 35% { transform: rotate(20deg); } 70% { transform: rotate(-10deg); } }

/* copies: a ripple runs through the grid */
.gi--copies .gi-dot { transform-box: fill-box; transform-origin: center; }
:is(.gx:hover, .gx:focus-within) .gi--copies .gi-dot,
.gi-once.gi--copies .gi-dot { animation: gi-ripple 1.5s ease-in-out var(--gi-n, infinite); }
.gi--copies .gi-d1 { animation-delay: .09s !important; }
.gi--copies .gi-d2 { animation-delay: .18s !important; }
.gi--copies .gi-d3 { animation-delay: .27s !important; }
.gi--copies .gi-d4 { animation-delay: .36s !important; }
@keyframes gi-ripple {
    0%, 100% { transform: scale(1); }
    30% { transform: scale(0.4); }
    60% { transform: scale(1.18); }
}

/* clapper: the stick lifts and snaps shut */
.gi--clapper .gi-clap { transform-origin: 3.6px 11.6px; }
:is(.gx:hover, .gx:focus-within) .gi--clapper .gi-clap,
.gi-once.gi--clapper .gi-clap { animation: gi-clap 1.6s cubic-bezier(.3,.7,.3,1) var(--gi-n, infinite); }
@keyframes gi-clap {
    0%, 100% { transform: rotate(0); }
    28% { transform: rotate(-24deg); }
    40% { transform: rotate(0); }
    50% { transform: rotate(-6deg); }
    58% { transform: rotate(0); }
}

/* megaphone: the horn nudges and its waves go out in turn */
.gi--megaphone .gi-horn { transform-origin: 8px 12px; }
.gi--megaphone .gi-wave { opacity: 0.55; }
:is(.gx:hover, .gx:focus-within) .gi--megaphone .gi-horn,
.gi-once.gi--megaphone .gi-horn { animation: gi-horn 1.4s ease-in-out var(--gi-n, infinite); }
:is(.gx:hover, .gx:focus-within) .gi--megaphone .gi-wave-1,
.gi-once.gi--megaphone .gi-wave-1 { animation: gi-wave 1.4s ease-out var(--gi-n, infinite); }
:is(.gx:hover, .gx:focus-within) .gi--megaphone .gi-wave-2,
.gi-once.gi--megaphone .gi-wave-2 { animation: gi-wave 1.4s ease-out var(--gi-n, infinite) .18s; }
@keyframes gi-horn { 0%, 100% { transform: scale(1); } 20% { transform: scale(0.92) rotate(-4deg); } 40% { transform: scale(1.04); } }
@keyframes gi-wave { 0%, 100% { opacity: 0.15; transform: translateX(-1.2px); } 45% { opacity: 1; transform: translateX(0.8px); } }

/* ------------------------------------------------------------------ */
/* Symbol grid tiles: six related symbols per ICONS id, 34 px cells     */
/* ------------------------------------------------------------------ */
/* tiles:begin (generated by server/scripts/guide_tiles.py: edit the glyphs there) */
.gb--compass { --gb-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 204 102' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cdefs%3E%3Cg id='g0'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 6.2 13.9 12 12 17.8 10.1 12Z'/%3E%3Cpath fill='black' stroke='none' d='M12 6.2 13.9 12H10.1Z'/%3E%3C/g%3E%3Cg id='g1'%3E%3Cpath d='M3 7.5A1.5 1.5 0 0 1 4.5 6h4.2l2 2h8.8A1.5 1.5 0 0 1 21 9.5v8a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 3 17.5Z'/%3E%3C/g%3E%3Cg id='g2'%3E%3Cpath d='M12 19.5s-7.5-4.4-7.5-9.6A4 4 0 0 1 12 7.6a4 4 0 0 1 7.5 2.3c0 5.2-7.5 9.6-7.5 9.6Z'/%3E%3C/g%3E%3Cg id='g3'%3E%3Ccircle cx='12' cy='8.5' r='3.5'/%3E%3Cpath d='M5 20c.8-3.8 3.6-5.8 7-5.8s6.2 2 7 5.8'/%3E%3C/g%3E%3Cg id='g4'%3E%3Crect x='4' y='4.5' width='16' height='4' rx='1.2'/%3E%3Crect x='4' y='10' width='16' height='4' rx='1.2'/%3E%3Crect x='4' y='15.5' width='16' height='4' rx='1.2'/%3E%3C/g%3E%3Cg id='g5'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='m15 15 5 5'/%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23g0' x='5' y='5'/%3E%3Cuse href='%23g1' x='39' y='5'/%3E%3Cuse href='%23g2' x='73' y='5'/%3E%3Cuse href='%23g3' x='107' y='5'/%3E%3Cuse href='%23g4' x='141' y='5'/%3E%3Cuse href='%23g5' x='175' y='5'/%3E%3Cuse href='%23g2' x='5' y='39'/%3E%3Cuse href='%23g3' x='39' y='39'/%3E%3Cuse href='%23g4' x='73' y='39'/%3E%3Cuse href='%23g5' x='107' y='39'/%3E%3Cuse href='%23g0' x='141' y='39'/%3E%3Cuse href='%23g1' x='175' y='39'/%3E%3Cuse href='%23g4' x='5' y='73'/%3E%3Cuse href='%23g5' x='39' y='73'/%3E%3Cuse href='%23g0' x='73' y='73'/%3E%3Cuse href='%23g1' x='107' y='73'/%3E%3Cuse href='%23g2' x='141' y='73'/%3E%3Cuse href='%23g3' x='175' y='73'/%3E%3C/svg%3E"); }
.gb--sparkle { --gb-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 204 102' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cdefs%3E%3Cg id='g0'%3E%3Cpath d='M11 4.5Q11.9 11.1 18.5 12 11.9 12.9 11 19.5 10.1 12.9 3.5 12 10.1 11.1 11 4.5Z'/%3E%3Cpath fill='black' stroke='none' d='M18.5 2.5Q18.8 4.7 21 5 18.8 5.3 18.5 7.5 18.2 5.3 16 5 18.2 4.7 18.5 2.5Z'/%3E%3C/g%3E%3Cg id='g1'%3E%3Crect x='3.5' y='5' width='17' height='14' rx='2'/%3E%3Ccircle cx='9' cy='10' r='1.6'/%3E%3Cpath d='m4 17 5-4.5 4 3.5 3-2.5 4 3.5'/%3E%3C/g%3E%3Cg id='g2'%3E%3Crect x='3.5' y='5.5' width='17' height='13' rx='2.5'/%3E%3Cpath d='M10.5 9.5v5l4.2-2.5Z'/%3E%3C/g%3E%3Cg id='g3'%3E%3Cpath d='M9.5 17V5.5l9-2V15'/%3E%3Ccircle cx='7.5' cy='17' r='2'/%3E%3Ccircle cx='16.5' cy='15' r='2'/%3E%3C/g%3E%3Cg id='g4'%3E%3Cpath d='M4 12h.5M7.5 8.5v7M11 5v14M14.5 8v8M18 10.5v3M20.5 12h.5'/%3E%3C/g%3E%3Cg id='g5'%3E%3Cpath d='M5 6h14M12 6v13M9 19h6'/%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23g0' x='5' y='5'/%3E%3Cuse href='%23g1' x='39' y='5'/%3E%3Cuse href='%23g2' x='73' y='5'/%3E%3Cuse href='%23g3' x='107' y='5'/%3E%3Cuse href='%23g4' x='141' y='5'/%3E%3Cuse href='%23g5' x='175' y='5'/%3E%3Cuse href='%23g2' x='5' y='39'/%3E%3Cuse href='%23g3' x='39' y='39'/%3E%3Cuse href='%23g4' x='73' y='39'/%3E%3Cuse href='%23g5' x='107' y='39'/%3E%3Cuse href='%23g0' x='141' y='39'/%3E%3Cuse href='%23g1' x='175' y='39'/%3E%3Cuse href='%23g4' x='5' y='73'/%3E%3Cuse href='%23g5' x='39' y='73'/%3E%3Cuse href='%23g0' x='73' y='73'/%3E%3Cuse href='%23g1' x='107' y='73'/%3E%3Cuse href='%23g2' x='141' y='73'/%3E%3Cuse href='%23g3' x='175' y='73'/%3E%3C/svg%3E"); }
.gb--playhead { --gb-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 204 102' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cdefs%3E%3Cg id='g0'%3E%3Crect x='2.75' y='7.5' width='8.5' height='4.5' rx='1.3'/%3E%3Crect x='12.75' y='7.5' width='8.5' height='4.5' rx='1.3'/%3E%3Crect x='5.75' y='14.5' width='11' height='4.5' rx='1.3'/%3E%3Cpath d='M13 4v17'/%3E%3Cpath fill='black' stroke='none' d='M11.25 3h3.5L13 5.25Z'/%3E%3C/g%3E%3Cg id='g1'%3E%3Ccircle cx='6.5' cy='17' r='2.5'/%3E%3Ccircle cx='6.5' cy='7' r='2.5'/%3E%3Cpath d='M8.6 8.3 19.5 17M8.6 15.7 19.5 7'/%3E%3C/g%3E%3Cg id='g2'%3E%3Cpath d='M12 4.5 19.5 12 12 19.5 4.5 12Z'/%3E%3Cpath fill='black' stroke='none' d='M12 9 15 12 12 15 9 12Z'/%3E%3C/g%3E%3Cg id='g3'%3E%3Cpath d='M3 12c1.5 0 1.5-5 3-5s1.5 10 3 10 1.5-10 3-10 1.5 10 3 10 1.5-5 3-5 1.5 2 3 2'/%3E%3C/g%3E%3Cg id='g4'%3E%3Crect x='3' y='6' width='11' height='12' rx='1.5'/%3E%3Crect x='10' y='6' width='11' height='12' rx='1.5'/%3E%3C/g%3E%3Cg id='g5'%3E%3Cpath d='M12 4v10M8 8l4-4 4 4M5 13v5.5A1.5 1.5 0 0 0 6.5 20h11a1.5 1.5 0 0 0 1.5-1.5V13'/%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23g0' x='5' y='5'/%3E%3Cuse href='%23g1' x='39' y='5'/%3E%3Cuse href='%23g2' x='73' y='5'/%3E%3Cuse href='%23g3' x='107' y='5'/%3E%3Cuse href='%23g4' x='141' y='5'/%3E%3Cuse href='%23g5' x='175' y='5'/%3E%3Cuse href='%23g2' x='5' y='39'/%3E%3Cuse href='%23g3' x='39' y='39'/%3E%3Cuse href='%23g4' x='73' y='39'/%3E%3Cuse href='%23g5' x='107' y='39'/%3E%3Cuse href='%23g0' x='141' y='39'/%3E%3Cuse href='%23g1' x='175' y='39'/%3E%3Cuse href='%23g4' x='5' y='73'/%3E%3Cuse href='%23g5' x='39' y='73'/%3E%3Cuse href='%23g0' x='73' y='73'/%3E%3Cuse href='%23g1' x='107' y='73'/%3E%3Cuse href='%23g2' x='141' y='73'/%3E%3Cuse href='%23g3' x='175' y='73'/%3E%3C/svg%3E"); }
.gb--nodes { --gb-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 204 102' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cdefs%3E%3Cg id='g0'%3E%3Crect x='2.5' y='3.75' width='8.25' height='6.75' rx='1.8'/%3E%3Crect x='13.25' y='13.5' width='8.25' height='6.75' rx='1.8'/%3E%3Cpath d='M10.75 7.1C16 7.1 8 16.9 13.25 16.9'/%3E%3C/g%3E%3Cg id='g1'%3E%3Cpath d='M3 12c1.5-4 3-6 4.5-6S10.5 18 12 18s3-12 4.5-12S19.5 8 21 12'/%3E%3C/g%3E%3Cg id='g2'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Ccircle fill='black' stroke='none' cx='12' cy='12' r='4.5'/%3E%3C/g%3E%3Cg id='g3'%3E%3Crect x='4' y='4' width='16' height='16' rx='1.5'/%3E%3Cpath fill='black' stroke='none' d='M4 4h8v8H4zM12 12h8v8h-8z'/%3E%3C/g%3E%3Cg id='g4'%3E%3Cpath d='M4 9l5-4 6 2 5 4M9 5l1 7-6 4M10 12l6 1 4-2M16 13l-2 7M10 12l-1 8'/%3E%3C/g%3E%3Cg id='g5'%3E%3Cpath d='M12 3.5c3.5 4.5 6 7.7 6 10.5a6 6 0 0 1-12 0c0-2.8 2.5-6 6-10.5Z'/%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23g0' x='5' y='5'/%3E%3Cuse href='%23g1' x='39' y='5'/%3E%3Cuse href='%23g2' x='73' y='5'/%3E%3Cuse href='%23g3' x='107' y='5'/%3E%3Cuse href='%23g4' x='141' y='5'/%3E%3Cuse href='%23g5' x='175' y='5'/%3E%3Cuse href='%23g2' x='5' y='39'/%3E%3Cuse href='%23g3' x='39' y='39'/%3E%3Cuse href='%23g4' x='73' y='39'/%3E%3Cuse href='%23g5' x='107' y='39'/%3E%3Cuse href='%23g0' x='141' y='39'/%3E%3Cuse href='%23g1' x='175' y='39'/%3E%3Cuse href='%23g4' x='5' y='73'/%3E%3Cuse href='%23g5' x='39' y='73'/%3E%3Cuse href='%23g0' x='73' y='73'/%3E%3Cuse href='%23g1' x='107' y='73'/%3E%3Cuse href='%23g2' x='141' y='73'/%3E%3Cuse href='%23g3' x='175' y='73'/%3E%3C/svg%3E"); }
.gb--bone { --gb-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 204 102' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cdefs%3E%3Cg id='g0'%3E%3Cpath d='M4.5 19.5 7.3 19 11 13 5 16.7Z'/%3E%3Cpath d='M11 13 14.3 12 19.5 4.5 12 9.7Z'/%3E%3Ccircle fill='black' stroke='none' cx='11' cy='13' r='1.5'/%3E%3C/g%3E%3Cg id='g1'%3E%3Cpath d='M19 4 10.5 12.5M9 14c-2 0-3.5 1.5-3.5 3.5V20H8c2 0 3.5-1.5 3.5-3.5Z'/%3E%3C/g%3E%3Cg id='g2'%3E%3Crect x='3' y='7' width='18' height='12' rx='2.5'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3Cpath d='M8.5 7 10 4.5h4L15.5 7'/%3E%3C/g%3E%3Cg id='g3'%3E%3Cpath d='M9 17.5h6M10 20.5h4M12 3.5a6 6 0 0 0-3.5 10.9c.6.5 1 1.3 1 2.1h5c0-.8.4-1.6 1-2.1A6 6 0 0 0 12 3.5Z'/%3E%3C/g%3E%3Cg id='g4'%3E%3Cpath d='M4 4h16v16H4zM4 12h16M12 4v16'/%3E%3C/g%3E%3Cg id='g5'%3E%3Ccircle cx='12' cy='5' r='2'/%3E%3Cpath d='M12 7v7M12 14l-4 6M12 14l4 6M7 10l5-1.5 5 1.5'/%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23g0' x='5' y='5'/%3E%3Cuse href='%23g1' x='39' y='5'/%3E%3Cuse href='%23g2' x='73' y='5'/%3E%3Cuse href='%23g3' x='107' y='5'/%3E%3Cuse href='%23g4' x='141' y='5'/%3E%3Cuse href='%23g5' x='175' y='5'/%3E%3Cuse href='%23g2' x='5' y='39'/%3E%3Cuse href='%23g3' x='39' y='39'/%3E%3Cuse href='%23g4' x='73' y='39'/%3E%3Cuse href='%23g5' x='107' y='39'/%3E%3Cuse href='%23g0' x='141' y='39'/%3E%3Cuse href='%23g1' x='175' y='39'/%3E%3Cuse href='%23g4' x='5' y='73'/%3E%3Cuse href='%23g5' x='39' y='73'/%3E%3Cuse href='%23g0' x='73' y='73'/%3E%3Cuse href='%23g1' x='107' y='73'/%3E%3Cuse href='%23g2' x='141' y='73'/%3E%3Cuse href='%23g3' x='175' y='73'/%3E%3C/svg%3E"); }
.gb--cube { --gb-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 204 102' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cdefs%3E%3Cg id='g0'%3E%3Cpath d='M12 4 20 8.5 12 13 4 8.5Z'/%3E%3Cpath d='M4 8.5v8.25L12 21.25l8-4.5V8.5M12 13v8.25'/%3E%3C/g%3E%3Cg id='g1'%3E%3Cpath d='M4 19 12 5l8 14ZM8 12h8M12 19 8 12M12 19l4-7'/%3E%3C/g%3E%3Cg id='g2'%3E%3Cpath d='M12 3v2M12 8v2M12 13v2M12 18v2'/%3E%3Cpath d='M9.5 7 4 12l5.5 5ZM14.5 7 20 12l-5.5 5Z'/%3E%3C/g%3E%3Cg id='g3'%3E%3Crect x='4' y='4' width='16' height='16' rx='1'/%3E%3Crect x='7.5' y='7.5' width='9' height='9' rx='4'/%3E%3C/g%3E%3Cg id='g4'%3E%3Cpath d='M4 17l8 3.5 8-3.5-8-3.5Z'/%3E%3Cpath d='M12 13V4M8.5 7.5 12 4l3.5 3.5'/%3E%3C/g%3E%3Cg id='g5'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3Ccircle fill='black' stroke='none' cx='9' cy='7' r='1.8'/%3E%3Ccircle fill='black' stroke='none' cx='15' cy='12' r='1.8'/%3E%3Ccircle fill='black' stroke='none' cx='7' cy='17' r='1.8'/%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23g0' x='5' y='5'/%3E%3Cuse href='%23g1' x='39' y='5'/%3E%3Cuse href='%23g2' x='73' y='5'/%3E%3Cuse href='%23g3' x='107' y='5'/%3E%3Cuse href='%23g4' x='141' y='5'/%3E%3Cuse href='%23g5' x='175' y='5'/%3E%3Cuse href='%23g2' x='5' y='39'/%3E%3Cuse href='%23g3' x='39' y='39'/%3E%3Cuse href='%23g4' x='73' y='39'/%3E%3Cuse href='%23g5' x='107' y='39'/%3E%3Cuse href='%23g0' x='141' y='39'/%3E%3Cuse href='%23g1' x='175' y='39'/%3E%3Cuse href='%23g4' x='5' y='73'/%3E%3Cuse href='%23g5' x='39' y='73'/%3E%3Cuse href='%23g0' x='73' y='73'/%3E%3Cuse href='%23g1' x='107' y='73'/%3E%3Cuse href='%23g2' x='141' y='73'/%3E%3Cuse href='%23g3' x='175' y='73'/%3E%3C/svg%3E"); }
.gb--curve { --gb-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 204 102' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cdefs%3E%3Cg id='g0'%3E%3Cpath d='M3.5 18C11 18 13 6 20.5 6'/%3E%3Cpath d='M3.5 18H9M20.5 6H15'/%3E%3Ccircle fill='black' stroke='none' cx='9' cy='18' r='1.4'/%3E%3Ccircle fill='black' stroke='none' cx='15' cy='6' r='1.4'/%3E%3Crect fill='black' stroke='none' x='2' y='16.5' width='3' height='3' rx='.6'/%3E%3Crect fill='black' stroke='none' x='19' y='4.5' width='3' height='3' rx='.6'/%3E%3C/g%3E%3Cg id='g1'%3E%3Cpath d='M12 12a1 1 0 0 1 2 0a2 2 0 0 1-4 0a3 3 0 0 1 6 0a4 4 0 0 1-8 0a5 5 0 0 1 10 0'/%3E%3C/g%3E%3Cg id='g2'%3E%3Cpath d='M12 3 6 11l2 8h8l2-8Z'/%3E%3Ccircle cx='12' cy='12' r='1.5'/%3E%3Cpath d='M12 3v7.5'/%3E%3C/g%3E%3Cg id='g3'%3E%3Cellipse cx='6' cy='12' rx='2.5' ry='5'/%3E%3Cpath d='M6 7h12M6 17h12M18 7a2.5 5 0 0 1 0 10'/%3E%3C/g%3E%3Cg id='g4'%3E%3Cpath d='M3.5 12 20 6v12Z'/%3E%3C/g%3E%3Cg id='g5'%3E%3Cpath d='M5 10c1.5-4.5 8-5.5 11.5-2.5s3 9.5-1.5 10.5-5-2.5-7.5-2.5S3.5 14 5 10Z'/%3E%3Ccircle fill='black' stroke='none' cx='5' cy='10' r='1.5'/%3E%3Ccircle fill='black' stroke='none' cx='16.5' cy='7.5' r='1.5'/%3E%3Ccircle fill='black' stroke='none' cx='15' cy='18' r='1.5'/%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23g0' x='5' y='5'/%3E%3Cuse href='%23g1' x='39' y='5'/%3E%3Cuse href='%23g2' x='73' y='5'/%3E%3Cuse href='%23g3' x='107' y='5'/%3E%3Cuse href='%23g4' x='141' y='5'/%3E%3Cuse href='%23g5' x='175' y='5'/%3E%3Cuse href='%23g2' x='5' y='39'/%3E%3Cuse href='%23g3' x='39' y='39'/%3E%3Cuse href='%23g4' x='73' y='39'/%3E%3Cuse href='%23g5' x='107' y='39'/%3E%3Cuse href='%23g0' x='141' y='39'/%3E%3Cuse href='%23g1' x='175' y='39'/%3E%3Cuse href='%23g4' x='5' y='73'/%3E%3Cuse href='%23g5' x='39' y='73'/%3E%3Cuse href='%23g0' x='73' y='73'/%3E%3Cuse href='%23g1' x='107' y='73'/%3E%3Cuse href='%23g2' x='141' y='73'/%3E%3Cuse href='%23g3' x='175' y='73'/%3E%3C/svg%3E"); }
.gb--copies { --gb-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 204 102' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cdefs%3E%3Cg id='g0'%3E%3Crect x='3' y='3' width='11' height='11' rx='2.4'/%3E%3Crect x='6.5' y='6.5' width='11' height='11' rx='2.4'/%3E%3Crect x='10' y='10' width='11' height='11' rx='2.4'/%3E%3C/g%3E%3Cg id='g1'%3E%3Cg fill='black' stroke='none'%3E%3Ccircle cx='6' cy='6' r='1.6'/%3E%3Ccircle cx='12' cy='6' r='1.6'/%3E%3Ccircle cx='18' cy='6' r='1.6'/%3E%3Ccircle cx='6' cy='12' r='1.6'/%3E%3Ccircle cx='12' cy='12' r='1.6'/%3E%3Ccircle cx='18' cy='12' r='1.6'/%3E%3Ccircle cx='6' cy='18' r='1.6'/%3E%3Ccircle cx='12' cy='18' r='1.6'/%3E%3Ccircle cx='18' cy='18' r='1.6'/%3E%3C/g%3E%3C/g%3E%3Cg id='g2'%3E%3Cpath d='M3 20.5h18'/%3E%3Cpath fill='black' stroke='none' d='M6.5 20.5c-.5-5 .3-9.5 3-13.5-1.3 4.5-1.5 9-.8 13.5ZM11.5 20.5c-1-6-.6-11 .8-16 .7 5 .9 10.5.2 16ZM16 20.5c.2-4.5 1.4-8.5 4-11-1.6 3.5-2.2 7.2-2 11Z'/%3E%3C/g%3E%3Cg id='g3'%3E%3Cg fill='black' stroke='none'%3E%3Ccircle cx='4' cy='14' r='1.6'/%3E%3Ccircle cx='8' cy='10' r='1.6'/%3E%3Ccircle cx='12' cy='9' r='1.6'/%3E%3Ccircle cx='16' cy='11' r='1.6'/%3E%3Ccircle cx='20' cy='15' r='1.6'/%3E%3C/g%3E%3C/g%3E%3Cg id='g4'%3E%3Cg fill='black' stroke='none'%3E%3Ccircle cx='5' cy='6' r='1.8'/%3E%3Ccircle cx='14' cy='4.5' r='1.2'/%3E%3Ccircle cx='19' cy='10' r='2'/%3E%3Ccircle cx='8' cy='13' r='1.4'/%3E%3Ccircle cx='15' cy='16' r='1.7'/%3E%3Ccircle cx='5' cy='19' r='1.2'/%3E%3Ccircle cx='11' cy='20' r='1'/%3E%3C/g%3E%3C/g%3E%3Cg id='g5'%3E%3Ccircle fill='black' stroke='none' cx='12' cy='12' r='2.5'/%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Ccircle fill='black' stroke='none' cx='20' cy='12' r='1.6'/%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23g0' x='5' y='5'/%3E%3Cuse href='%23g1' x='39' y='5'/%3E%3Cuse href='%23g2' x='73' y='5'/%3E%3Cuse href='%23g3' x='107' y='5'/%3E%3Cuse href='%23g4' x='141' y='5'/%3E%3Cuse href='%23g5' x='175' y='5'/%3E%3Cuse href='%23g2' x='5' y='39'/%3E%3Cuse href='%23g3' x='39' y='39'/%3E%3Cuse href='%23g4' x='73' y='39'/%3E%3Cuse href='%23g5' x='107' y='39'/%3E%3Cuse href='%23g0' x='141' y='39'/%3E%3Cuse href='%23g1' x='175' y='39'/%3E%3Cuse href='%23g4' x='5' y='73'/%3E%3Cuse href='%23g5' x='39' y='73'/%3E%3Cuse href='%23g0' x='73' y='73'/%3E%3Cuse href='%23g1' x='107' y='73'/%3E%3Cuse href='%23g2' x='141' y='73'/%3E%3Cuse href='%23g3' x='175' y='73'/%3E%3C/svg%3E"); }
.gb--clapper { --gb-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 204 102' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cdefs%3E%3Cg id='g0'%3E%3Crect x='3' y='10.5' width='18' height='9.5' rx='1.6'/%3E%3Cpath d='M3.2 10 19.4 5.6l.9 3.1L4.1 13.1Z'/%3E%3Cpath d='m7.4 8.9 1.9 2.6M11.6 7.8l1.9 2.6M15.8 6.6l1.9 2.6'/%3E%3C/g%3E%3Cg id='g1'%3E%3Crect x='4' y='3' width='16' height='18' rx='1.5'/%3E%3Cpath d='M8 3v18M16 3v18M4 7.5h4M4 12h4M4 16.5h4M16 7.5h4M16 12h4M16 16.5h4'/%3E%3C/g%3E%3Cg id='g2'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath fill='black' stroke='none' d='M10 8.5v7l6-3.5Z'/%3E%3C/g%3E%3Cg id='g3'%3E%3Crect x='3' y='7' width='12' height='10' rx='2'/%3E%3Cpath d='M15 10.5 21 7v10l-6-3.5'/%3E%3C/g%3E%3Cg id='g4'%3E%3Ccircle cx='12' cy='8.5' r='3.5'/%3E%3Cpath d='M5 20c.8-3.8 3.6-5.8 7-5.8s6.2 2 7 5.8'/%3E%3C/g%3E%3Cg id='g5'%3E%3Crect x='7' y='3' width='10' height='18' rx='2'/%3E%3Cpath fill='black' stroke='none' d='M10.6 9.5v5l4-2.5Z'/%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23g0' x='5' y='5'/%3E%3Cuse href='%23g1' x='39' y='5'/%3E%3Cuse href='%23g2' x='73' y='5'/%3E%3Cuse href='%23g3' x='107' y='5'/%3E%3Cuse href='%23g4' x='141' y='5'/%3E%3Cuse href='%23g5' x='175' y='5'/%3E%3Cuse href='%23g2' x='5' y='39'/%3E%3Cuse href='%23g3' x='39' y='39'/%3E%3Cuse href='%23g4' x='73' y='39'/%3E%3Cuse href='%23g5' x='107' y='39'/%3E%3Cuse href='%23g0' x='141' y='39'/%3E%3Cuse href='%23g1' x='175' y='39'/%3E%3Cuse href='%23g4' x='5' y='73'/%3E%3Cuse href='%23g5' x='39' y='73'/%3E%3Cuse href='%23g0' x='73' y='73'/%3E%3Cuse href='%23g1' x='107' y='73'/%3E%3Cuse href='%23g2' x='141' y='73'/%3E%3Cuse href='%23g3' x='175' y='73'/%3E%3C/svg%3E"); }
.gb--megaphone { --gb-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 204 102' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cdefs%3E%3Cg id='g0'%3E%3Cpath d='M3.5 10.4v3.2a1 1 0 0 0 1 1h2.2l7.3 4.6V4.8L6.7 9.4H4.5a1 1 0 0 0-1 1Z'/%3E%3Cpath d='m7.3 14.6 1.1 4.6h2.2M16.6 9.6a3.4 3.4 0 0 1 0 4.8M18.9 7.4a6.6 6.6 0 0 1 0 9.2'/%3E%3C/g%3E%3Cg id='g1'%3E%3Crect x='3' y='6' width='18' height='12' rx='3.5'/%3E%3Cpath fill='black' stroke='none' d='M10.5 9.5v5l4.2-2.5Z'/%3E%3C/g%3E%3Cg id='g2'%3E%3Crect x='3.5' y='5' width='17' height='14' rx='2'/%3E%3Cpath d='M6.5 15.5h6M6.5 12.5h4'/%3E%3Ccircle cx='16' cy='10' r='2.2'/%3E%3C/g%3E%3Cg id='g3'%3E%3Cpath d='M12 19.5s-7.5-4.4-7.5-9.6A4 4 0 0 1 12 7.6a4 4 0 0 1 7.5 2.3c0 5.2-7.5 9.6-7.5 9.6Z'/%3E%3C/g%3E%3Cg id='g4'%3E%3Cpath d='M4 19h16M5 15l4.5-4.5 3.5 3L19 7.5M15 7.5h4v4'/%3E%3C/g%3E%3Cg id='g5'%3E%3Cpath d='M12 3.8l2.4 5 5.4.6-4 3.7 1.1 5.3L12 15.7l-4.9 2.7 1.1-5.3-4-3.7 5.4-.6Z'/%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23g0' x='5' y='5'/%3E%3Cuse href='%23g1' x='39' y='5'/%3E%3Cuse href='%23g2' x='73' y='5'/%3E%3Cuse href='%23g3' x='107' y='5'/%3E%3Cuse href='%23g4' x='141' y='5'/%3E%3Cuse href='%23g5' x='175' y='5'/%3E%3Cuse href='%23g2' x='5' y='39'/%3E%3Cuse href='%23g3' x='39' y='39'/%3E%3Cuse href='%23g4' x='73' y='39'/%3E%3Cuse href='%23g5' x='107' y='39'/%3E%3Cuse href='%23g0' x='141' y='39'/%3E%3Cuse href='%23g1' x='175' y='39'/%3E%3Cuse href='%23g4' x='5' y='73'/%3E%3Cuse href='%23g5' x='39' y='73'/%3E%3Cuse href='%23g0' x='73' y='73'/%3E%3Cuse href='%23g1' x='107' y='73'/%3E%3Cuse href='%23g2' x='141' y='73'/%3E%3Cuse href='%23g3' x='175' y='73'/%3E%3C/svg%3E"); }
/* tiles:end */

/* ------------------------------------------------------------------ */
/* Reduced motion and small screens                                    */
/* ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    .gi svg *, .gi svg { animation: none !important; }
    .gb-spot { display: none; }
    .gb-tiles { animation: none; }
    .gm-card { transition: none; }
    .gb-aurora, .gp-go, .gp-card { transition: none; }
}

@media (max-width: 900px) {
    .gl-hero { margin-top: 18px; }
}
@media (max-width: 640px) {
    .gh-app { padding: 6px 12px; font-size: 0.78rem; }
    .gl-hero { padding: 22px 18px 20px; border-radius: 22px; }
    .gl-hero-title { font-size: 1.5rem; }
    .gl-hero-sub { font-size: 0.95rem; }
    .gs-field { height: 54px; padding-left: 48px; border-radius: 14px; }
    .gs-glass { left: 16px; }
    .gs-kbd { display: none; }
    .gl-hero .gl-topics li:nth-child(n+9) { display: none; }
    .gp-banner { min-height: 112px; padding: 18px; gap: 14px; }
    .gp-icon-tile { width: 48px; height: 48px; border-radius: 14px; }
    .gp-icon-tile .gi { width: 26px; height: 26px; }
    .gp-title { font-size: 1.22rem; }
    .gp-go { display: none; }
    .gp-body { padding: 16px 18px 18px; }
    .gpp-banner { padding: 26px 20px 22px; min-height: 0; border-radius: 20px; }
    .gp-icon-tile--large { width: 60px; height: 60px; border-radius: 17px; margin-bottom: 14px; }
    .gb-title { font-size: 1.6rem; }
    .gpg-banner { padding: 20px 18px; min-height: 0; border-radius: 18px; }
    .gpg-banner .gb-title { font-size: 1.45rem; }
    .gc-cover--hero { border-radius: 16px; }
    .gh-title { font-size: 1.5rem; }
    .gpg-content { align-items: flex-start; gap: 14px; }
    .ga-cta { flex-wrap: wrap; padding: 18px; gap: 14px; }
    .ga-icon { width: 52px; height: 52px; border-radius: 12px; }
    .ga-store { width: 100%; }
    /* The search overlay becomes a full-screen sheet. */
    .gs-overlay { padding: 0; background: #0b0b0d; -webkit-backdrop-filter: none; backdrop-filter: none; }
    .gs-sheet { width: 100%; height: 100%; padding: 12px 14px; align-content: start; overflow-y: auto; }
    .gs-overlay .gs-panel { position: static; margin-top: 10px; box-shadow: none; border: 0; background: transparent; padding: 0; max-height: none; }
    .gs-close { height: 54px; }
}
