/* ==========================================================================
   /solutions/mobile-development — "Gesture lab" (TKT-0010 track C)
   Accent: teal #2DD4BF on deep sea #041314. Loaded only on this page.
   Rules kept: border-box scoped to .gl (no global border-box), minmax(0,1fr)
   grids, overflow-x: clip, full neutral hairlines only (no one-sided edge
   strokes, no thin bars), one flat front-on phone (no CSS 3D).
   ========================================================================== */

:root, :root > body { overflow-x: clip; overflow-y: visible; }

.gl {
    --gl-teal: #2DD4BF;
    --gl-aqua: #99F6E4;
    --gl-sea: #041314;
    --gl-deep: #020C0D;
    --gl-panel: rgba(45, 212, 191, .045);
    --gl-panel-2: rgba(45, 212, 191, .085);
    --gl-line: rgba(153, 246, 228, .14);
    --gl-line-2: rgba(153, 246, 228, .26);
    --gl-text: #EAF6F4;
    --gl-muted: rgba(214, 236, 232, .68);
    --gl-ease: cubic-bezier(.16, 1, .3, 1);
    position: relative;
    background: var(--gl-sea);
    color: var(--gl-text);
    overflow-x: clip;
    font-family: var(--nx-font-sans, "IBM Plex Sans", sans-serif);
}
.gl, .gl *, .gl *::before, .gl *::after { box-sizing: border-box; }
.gl img { max-width: 100%; display: block; }
.gl a { color: inherit; }
.gl p a, .gl-q p a { color: var(--gl-aqua); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.gl p a:hover { color: #fff; }
.gl a:focus-visible, .gl button:focus-visible, .gl summary:focus-visible, .gl-table-wrap:focus-visible { outline: 2px solid var(--gl-teal); outline-offset: 3px; }

/* ── Type ─────────────────────────────────────────────────────────────── */
.gl-eyebrow, .gl-kicker {
    font-family: var(--nx-font-mono, monospace); font-size: 12px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--gl-teal); margin: 0 0 16px;
}
.gl-h1 {
    font-family: var(--nx-font-display, sans-serif); font-weight: 600;
    font-size: clamp(2.1rem, 4.6vw, 4rem); line-height: 1.04; letter-spacing: -.035em;
    margin: 0; text-wrap: balance;
}
.gl-hl { color: var(--gl-teal); }
.gl-h2 {
    font-family: var(--nx-font-display, sans-serif); font-weight: 600;
    font-size: clamp(1.8rem, 3.4vw, 2.9rem); line-height: 1.08; letter-spacing: -.03em;
    margin: 0; text-wrap: balance;
}
.gl-p { margin: 18px 0 0; max-width: 64ch; font-size: clamp(1rem, 1.15vw, 1.1rem); line-height: 1.68; color: var(--gl-muted); }
.gl-lede { margin: 22px 0 0; max-width: 60ch; font-size: clamp(1.02rem, 1.25vw, 1.16rem); line-height: 1.7; color: var(--gl-muted); }

.gl-wrap { max-width: 1200px; margin: 0 auto; }
.gl-sec { padding: clamp(72px, 9vw, 128px) clamp(16px, 5vw, 64px); }
.gl-sec--deep { background: var(--gl-deep); }
.gl-head { max-width: 760px; margin: 0 0 clamp(36px, 4.5vw, 56px); }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.gl-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.gl-cta--center { justify-content: center; }
.gl-btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 50px;
    padding: 0 26px; border-radius: 14px; font-weight: 600; font-size: 15px; text-decoration: none;
    transition: transform .35s var(--gl-ease), background .25s, border-color .25s;
}
.gl .gl-btn--solid { background: var(--gl-teal); color: #022422; }
.gl .gl-btn--solid:hover { background: var(--gl-aqua); transform: translateY(-2px); }
.gl .gl-btn--line { border: 1px solid var(--gl-line-2); color: var(--gl-text); }
.gl .gl-btn--line:hover { border-color: var(--gl-teal); transform: translateY(-2px); }

/* ── HERO ─────────────────────────────────────────────────────────────── */
.gl-hero {
    padding: clamp(116px, 14vh, 156px) clamp(16px, 5vw, 64px) clamp(64px, 8vw, 110px);
    background:
        radial-gradient(60% 50% at 78% 45%, rgba(45, 212, 191, .16), transparent 70%),
        radial-gradient(40% 40% at 10% 10%, rgba(45, 212, 191, .06), transparent 70%),
        var(--gl-sea);
}
.gl-hero__grid {
    /* align start: a centred column re-centres when the other one changes height on font load (CLS) */
    max-width: 1200px; margin: 0 auto; display: grid; align-items: start;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(36px, 5vw, 80px);
}
.gl-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--gl-muted); margin: 0 0 26px; }
.gl-crumbs a { text-decoration: none; }
.gl-crumbs a:hover { color: var(--gl-teal); }
.gl-hero__links { display: flex; flex-direction: column; gap: 10px; margin: 26px 0 0; }
.gl .gl-hero__links a { color: var(--gl-aqua); text-decoration: none; font-size: 15px; width: fit-content; }
.gl .gl-hero__links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* the lab: chips, one flat phone, legend */
.gl-lab { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.gl-chips { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--gl-panel); border: 1px solid var(--gl-line); margin-bottom: 22px; }
.gl-chip {
    appearance: none; border: 0; cursor: pointer; font: 600 14px/1 var(--nx-font-sans, sans-serif);
    color: var(--gl-muted); background: transparent; padding: 11px 16px; border-radius: 10px;
    transition: background .25s, color .25s;
}
.gl-chip:hover { color: var(--gl-text); }
.gl-chip.is-on { background: var(--gl-teal); color: #022422; }

.gl-phone { margin: 0; width: min(100%, 318px); }
.gl-phone__screen {
    position: relative; aspect-ratio: 318 / 640; border-radius: 46px; overflow: hidden;
    background: #0B1716; border: 11px solid #0E1D1C;
    box-shadow: 0 0 0 1px var(--gl-line-2), 0 40px 90px -30px rgba(45, 212, 191, .45), 0 20px 50px -20px rgba(0, 0, 0, .8);
}
.gl-shot { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .45s var(--gl-ease), visibility 0s .45s; background: #fff; }
.gl-shot.is-on { opacity: 1; visibility: visible; transition: opacity .45s var(--gl-ease), visibility 0s; }
.gl-view { position: relative; flex: 1 1 0; min-height: 0; overflow: hidden; }
.gl-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.gl-bar { flex: 0 0 30px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; color: #111; font: 600 11px/1 var(--nx-font-sans, sans-serif); position: relative; background: #fff; }
.gl-bar__island { position: absolute; left: 50%; top: 6px; width: 74px; height: 20px; margin-left: -37px; border-radius: 12px; background: #0B0B0B; }
.gl-bar__hole { position: absolute; left: 50%; top: 9px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #0B0B0B; }
.gl-bar__icons { display: inline-flex; gap: 3px; align-items: flex-end; }
.gl-bar__icons i { display: block; width: 4px; height: 8px; border-radius: 1px; background: #111; }
.gl-bar__icons i:nth-child(2) { height: 10px; }
.gl-bar__icons i:nth-child(3) { width: 14px; height: 8px; border-radius: 2px; }
.gl-bar--web { background: #F1F3F2; justify-content: center; flex-basis: 34px; padding: 0 12px; }
.gl-bar__url { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 9px; background: #E2E6E4; font-weight: 500; font-size: 10.5px; color: #333; max-width: 100%; overflow: hidden; white-space: nowrap; }
.gl-bar__url svg { fill: none; stroke: #333; stroke-width: 1.2; flex: none; }

/* gesture traces */
.gl-trace { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.gl-g { opacity: 0; }
.gl-ripple { fill: none; stroke: var(--gl-teal); stroke-width: 3; transform-box: fill-box; transform-origin: center; }
.gl-dot { fill: rgba(45, 212, 191, .9); stroke: #fff; stroke-width: 2; }
.gl-arc { fill: none; stroke: var(--gl-teal); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 6px rgba(45, 212, 191, .7)); }
.gl-ring-bg { fill: rgba(4, 19, 20, .25); stroke: rgba(255, 255, 255, .55); stroke-width: 4; }
.gl-ring { fill: none; stroke: var(--gl-teal); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }

/* one 9 s loop: tap (0-25%), swipe (30-60%), long-press (65-95%) */
.gl-shot.is-on .gl-g--tap { animation: gl-show-tap 9s var(--gl-ease) infinite; }
.gl-shot.is-on .gl-g--tap .gl-ripple { animation: gl-ripple 9s ease-out infinite; }
.gl-shot.is-on .gl-g--tap .gl-ripple--2 { animation-delay: .25s; }
.gl-shot.is-on .gl-g--swipe { animation: gl-show-swipe 9s var(--gl-ease) infinite; }
.gl-shot.is-on .gl-arc { animation: gl-draw 9s var(--gl-ease) infinite; }
.gl-shot.is-on .gl-g--press { animation: gl-show-press 9s var(--gl-ease) infinite; }
.gl-shot.is-on .gl-ring { animation: gl-press 9s linear infinite; }
.gl-lab.is-paused .gl-shot *, .gl-lab.is-paused .gl-shot { animation-play-state: paused !important; }

@keyframes gl-show-tap { 0%, 2% { opacity: 0; } 5%, 20% { opacity: 1; } 25%, 100% { opacity: 0; } }
@keyframes gl-ripple { 0%, 4% { transform: scale(.3); opacity: 0; } 6% { opacity: 1; } 20% { transform: scale(1.6); opacity: 0; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes gl-show-swipe { 0%, 29% { opacity: 0; } 32%, 55% { opacity: 1; } 60%, 100% { opacity: 0; } }
@keyframes gl-draw { 0%, 31% { stroke-dashoffset: 100; } 47%, 100% { stroke-dashoffset: 0; } }
@keyframes gl-show-press { 0%, 64% { opacity: 0; } 67%, 90% { opacity: 1; } 95%, 100% { opacity: 0; } }
@keyframes gl-press { 0%, 67% { stroke-dashoffset: 100; } 84%, 100% { stroke-dashoffset: 0; } }

.gl-phone__cap { margin-top: 16px; text-align: center; font-size: 13px; line-height: 1.5; color: var(--gl-muted); min-height: 3em; }
.gl-cap { display: none; }
.gl-cap.is-on { display: block; }
.gl-cap b { color: var(--gl-text); font-weight: 600; display: block; }

.gl-legend { width: min(100%, 420px); margin-top: 14px; }
.gl-note { display: none; }
.gl-note.is-on { display: block; }
/* one key per row: a wrapping row reflowed differently once Plex loaded (CLS) */
.gl-keys { list-style: none; padding: 0; margin: 0 0 10px; display: grid; justify-content: center; gap: 6px; font-size: 13px; color: var(--gl-text); }
.gl-keys li { display: inline-flex; align-items: center; gap: 8px; }
.gl-key { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--gl-teal); flex: none; }
.gl-key--tap { background: rgba(45, 212, 191, .9); }
.gl-key--swipe { border-radius: 8px; width: 24px; height: 8px; background: var(--gl-teal); border: 0; }
.gl-note p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--gl-muted); text-align: center; }
.gl-note strong { color: var(--gl-text); }

/* ── Five layers ──────────────────────────────────────────────────────── */
.gl-layers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.gl-layer { position: relative; padding: 24px 20px 26px; border-radius: 20px; background: var(--gl-panel); border: 1px solid var(--gl-line); display: flex; flex-direction: column; gap: 16px; }
.gl-layer:nth-child(2) { background: var(--gl-panel-2); }
.gl-layer__n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 600 14px/1 var(--nx-font-mono, monospace); color: var(--gl-teal); border: 1px solid var(--gl-line-2); }
.gl-layer h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; }
.gl-layer p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--gl-muted); }

/* ── Decision matrix (real table) ─────────────────────────────────────── */
.gl-table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 18px; }
.gl-table { width: 100%; min-width: 860px; border-collapse: separate; border-spacing: 0 6px; font-size: 14.5px; line-height: 1.5; }
.gl-table caption { caption-side: top; text-align: left; font-size: 13px; color: var(--gl-muted); padding: 0 0 10px; }
.gl-table thead th { text-align: left; font-weight: 600; font-size: 14px; padding: 14px 16px; color: var(--gl-text); vertical-align: bottom; }
.gl-table thead th small { display: block; font: 500 11.5px/1.4 var(--nx-font-mono, monospace); color: var(--gl-teal); letter-spacing: .04em; margin-top: 4px; }
.gl-table tbody th, .gl-table tbody td { padding: 16px; vertical-align: top; background: var(--gl-panel); }
.gl-table tbody th { text-align: left; font-weight: 600; color: var(--gl-text); width: 15%; border-radius: 14px 0 0 14px; }
.gl-table tbody td { color: var(--gl-muted); }
.gl-table tbody td.gl-rec { background: rgba(45, 212, 191, .12); color: var(--gl-text); border-radius: 0 14px 14px 0; width: 24%; }
.gl-table .gl-th-rec { color: var(--gl-teal); }

.gl-verdict { margin-top: 30px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; }
.gl-verdict p { margin: 0; padding: 22px 24px; border-radius: 18px; background: var(--gl-panel); border: 1px solid var(--gl-line); font-size: 15px; line-height: 1.65; color: var(--gl-muted); }
.gl-verdict strong { color: var(--gl-text); }

/* ── Gesture vocabulary ───────────────────────────────────────────────── */
.gl-moves { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gl-move { padding: 26px 22px; border-radius: 22px; background: var(--gl-panel); border: 1px solid var(--gl-line); }
.gl-move__ico { width: 64px; height: 64px; margin-bottom: 18px; }
.gl-move__ico .o { fill: none; stroke: var(--gl-teal); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.gl-move__ico .o2 { stroke: rgba(45, 212, 191, .4); }
.gl-move__ico .f { fill: var(--gl-teal); }
.gl-move h3 { margin: 0 0 8px; font-size: 1.1rem; font-weight: 600; }
.gl-move p { margin: 0; font-size: 14.5px; line-height: 1.62; color: var(--gl-muted); }

/* ── Launch checklist ─────────────────────────────────────────────────── */
.gl-count { margin: 18px 0 0; font: 600 14px/1 var(--nx-font-mono, monospace); color: var(--gl-teal); }
.gl-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gl-check { position: relative; min-width: 0; }
.gl-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gl-check label {
    display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 14px; row-gap: 6px; height: 100%;
    padding: 20px; border-radius: 18px; background: var(--gl-panel); border: 1px solid var(--gl-line);
    cursor: pointer; transition: background .25s, border-color .25s;
}
.gl-check label:hover { border-color: var(--gl-line-2); }
.gl-box { grid-row: span 2; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--gl-line-2); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.gl-box::after { content: ""; width: 10px; height: 6px; border: solid #022422; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.gl-check__t { font-weight: 600; font-size: 15px; line-height: 1.35; }
.gl-check__p { font-size: 14px; line-height: 1.55; color: var(--gl-muted); }
.gl-check input:checked + label { background: rgba(45, 212, 191, .11); border-color: rgba(45, 212, 191, .45); }
.gl-check input:checked + label .gl-box { background: var(--gl-teal); border-color: var(--gl-teal); }
.gl-check input:checked + label .gl-box::after { opacity: 1; }
.gl-check input:focus-visible + label { outline: 2px solid var(--gl-teal); outline-offset: 3px; }

/* ── Proof ────────────────────────────────────────────────────────────── */
.gl-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gl-card { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--gl-panel); border: 1px solid var(--gl-line); text-decoration: none; transition: border-color .3s, transform .4s var(--gl-ease); min-width: 0; }
a.gl-card:hover { border-color: var(--gl-line-2); transform: translateY(-3px); }
.gl-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.gl-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.gl-card__tag { margin: 0; font: 500 12px/1.4 var(--nx-font-mono, monospace); letter-spacing: .06em; text-transform: uppercase; color: var(--gl-teal); }
.gl-card__t { margin: 0; font-size: 1.3rem; font-weight: 600; letter-spacing: -.015em; }
.gl-card__p { margin: 0; font-size: 14.5px; line-height: 1.62; color: var(--gl-muted); }
.gl-card__go { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: 14px; color: var(--gl-aqua); text-decoration: none; }
.gl-card--wide { grid-column: span 2; background: radial-gradient(70% 90% at 100% 0%, rgba(45, 212, 191, .16), transparent 70%), var(--gl-panel); }
.gl-card--wide .gl-card__body { padding: clamp(24px, 3vw, 36px); }
.gl-card--wide .gl-card__t { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.gl-card--quiet { background: var(--gl-panel-2); }
.gl-card--wide { flex-direction: row; align-items: center; }
.gl-card__art { flex: 0 0 38%; max-width: 300px; height: auto; margin-right: clamp(16px, 3vw, 36px); }
.gl-card__art .d { fill: none; stroke: var(--gl-line-2); stroke-width: 2; }
.gl-card__art .f { fill: var(--gl-teal); opacity: .85; }
.gl-card__art .f2 { fill: rgba(45, 212, 191, .3); }
.gl-card__art .a { fill: none; stroke: var(--gl-teal); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 3 7; }
.gl-plats { list-style: none; padding: 0; margin: 6px 0 4px; display: flex; flex-wrap: wrap; gap: 8px; }
.gl-plats li { padding: 7px 12px; border-radius: 10px; font-size: 13px; font-weight: 500; background: rgba(45, 212, 191, .1); border: 1px solid var(--gl-line); }

/* ── Region + cost ────────────────────────────────────────────────────── */
.gl-two { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.gl-cost { padding: clamp(24px, 3vw, 34px); border-radius: 24px; background: var(--gl-panel-2); border: 1px solid var(--gl-line); }
.gl-cost__t { margin: 0 0 6px; font-size: 1.25rem; font-weight: 600; }
.gl-cost p { margin: 14px 0 0; font-size: 15px; line-height: 1.65; color: var(--gl-muted); }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.gl-faqwrap { max-width: 900px; }
.gl-faq { display: grid; gap: 10px; }
.gl-q { border-radius: 16px; background: var(--gl-panel); border: 1px solid var(--gl-line); }
.gl-q summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 600; font-size: 16px; line-height: 1.4; position: relative; }
.gl-q summary::-webkit-details-marker { display: none; }
.gl-q summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font: 400 24px/1 var(--nx-font-mono, monospace); color: var(--gl-teal); transition: transform .3s var(--gl-ease); }
.gl-q[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.gl-q p { margin: 0; padding: 0 22px 22px; font-size: 15px; line-height: 1.68; color: var(--gl-muted); }

/* ── End ──────────────────────────────────────────────────────────────── */
.gl-end { padding: clamp(80px, 10vw, 140px) clamp(16px, 5vw, 64px); text-align: center; background: radial-gradient(60% 70% at 50% 100%, rgba(45, 212, 191, .14), transparent 70%), var(--gl-deep); }
.gl-end .gl-p { margin-inline: auto; }
.gl-routes { margin: clamp(48px, 6vw, 72px) auto 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; text-align: left; }
.gl-route { display: block; padding: 18px 44px 18px 20px; border-radius: 16px; background: var(--gl-panel); border: 1px solid var(--gl-line); text-decoration: none; position: relative; font-weight: 600; font-size: 15px; line-height: 1.4; transition: border-color .25s, background .25s; }
.gl-route span { display: block; font: 500 12px/1.4 var(--nx-font-mono, monospace); color: var(--gl-teal); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 4px; }
.gl-route i { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--gl-teal); }
.gl-route:hover { border-color: var(--gl-line-2); background: var(--gl-panel-2); }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .gl-layers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gl-moves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gl-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gl-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gl-routes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .gl-hero__grid { grid-template-columns: minmax(0, 1fr); }
    .gl-verdict, .gl-two { grid-template-columns: minmax(0, 1fr); }
    .gl-routes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* The matrix becomes one card per question on narrow screens: still a real table. */
@media (max-width: 760px) {
    .gl-table { min-width: 0; border-spacing: 0; }
    .gl-table caption { display: block; }
    .gl-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .gl-table, .gl-table tbody, .gl-table tr, .gl-table th, .gl-table td { display: block; width: 100% !important; }
    .gl-table tbody tr { margin: 0 0 12px; border-radius: 18px; overflow: hidden; border: 1px solid var(--gl-line); background: var(--gl-panel); }
    .gl-table tbody th, .gl-table tbody td { background: transparent; border-radius: 0 !important; padding: 12px 18px; }
    .gl-table tbody th { font-size: 1.05rem; padding-top: 18px; color: var(--gl-teal); }
    .gl-table tbody td::before { content: attr(data-label); display: block; font: 600 11.5px/1.4 var(--nx-font-mono, monospace); letter-spacing: .06em; text-transform: uppercase; color: var(--gl-text); margin-bottom: 4px; }
    .gl-table tbody td.gl-rec { background: rgba(45, 212, 191, .12); padding-bottom: 18px; }
    .gl-table tbody td.gl-rec::before { color: var(--gl-teal); }
    .gl-table-wrap { overflow: visible; }
}
@media (max-width: 640px) {
    .gl-layers, .gl-moves, .gl-checks, .gl-proof, .gl-routes { grid-template-columns: minmax(0, 1fr); }
    /* Stack the two buttons: side by side they fit with Plex but wrapped with the
       fallback font, so the page below jumped 62px when the font landed (CLS). */
    .gl-cta { display: grid; grid-template-columns: minmax(0, 1fr); }
    .gl-card--wide { grid-column: auto; flex-direction: column; align-items: stretch; }
    .gl-card__art { width: 70%; margin: 0 auto 22px; }
    .gl-chip { padding: 10px 12px; font-size: 13.5px; }
    .gl-phone { width: min(100%, 280px); }
    .gl-phone__screen { border-radius: 40px; border-width: 9px; }
}

@media (prefers-reduced-motion: reduce) {
    .gl *, .gl *::before, .gl *::after { transition: none !important; }
    .gl-shot.is-on .gl-g, .gl-shot.is-on .gl-g * { animation: none !important; }
    .gl-shot.is-on .gl-g { opacity: 1; }
    .gl-ripple { opacity: .6; }
    .gl-ripple--2 { transform: scale(1.5); opacity: .3; }
    .gl-arc, .gl-ring { stroke-dashoffset: 0; }
}

/* CLS: reserve the shared header logo's width before the PNG decodes. The <img> in
   includes/header/menu.php has no width/height; logo-light.png is 118 x 125. */
img.nx-nav__logo { aspect-ratio: 118 / 125; }
