/*
 * Geloky design system (2026 redesign).
 *
 * Loaded by the "geloky" layout through app\assets\GelokyAsset, without
 * Bootstrap or the old theme CSS. Values come from the approved designs:
 * light blue #4A90E2 for icons and lines, #2A6FC9 for filled buttons, dark
 * purple #26225C for dark bands (night-Earth photo under an 80% tint), pink
 * #FF4FA8 as the accent and #C81E78 for pink text on white. No gradients.
 */

/* ---------- Tokens ---------- */
:root {
    --gk-blue: #4A90E2;
    --gk-btn: #2A6FC9;
    --gk-btn-hover: #1F5DAF;
    --gk-purple: #26225C;
    --gk-code: #1B1846;
    --gk-code-line: #4A4496;
    --gk-pink: #FF4FA8;
    --gk-pink-text: #C81E78;
    --gk-head: #252525;
    --gk-body: #666666;
    --gk-muted: #767676;
    --gk-band: #FAFAFA;
    --gk-soft: #F4F6FA;
    --gk-border: #E8E8E8;
    --gk-line: #ECECEC;
    --gk-info: #F0F6FE;
    --gk-err: #C5221F;
    --gk-err-bg: #FCE8E6;
    --gk-err-text: #A50E0E;
    --gk-ok: #0D652D;
    --gk-ok-bg: #E6F4EA;
    --gk-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.gk {
    margin: 0;
    background: #FFFFFF;
    color: var(--gk-body);
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
.gk img { max-width: 100%; }
.gk a { color: var(--gk-btn); }
.gk a:hover { color: var(--gk-btn-hover); }
/* :where() keeps these resets at element weight, so classes such as .h2,
   .lead and .faq-a can still set their own margins. */
:where(.gk) h1, :where(.gk) h2, :where(.gk) h3, :where(.gk) h4 { margin: 0; }
:where(.gk) p { margin: 0; }
.gk [hidden] { display: none !important; }
/* clip, not hidden: hidden makes a scroll box, and sticky parts inside it (the
   API docs list, the legal and guide side columns) would never stick. hidden
   stays for browsers without clip. */
.gk-page { min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; overflow: clip; }
.gk-main { flex: 1 0 auto; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: 1170px; margin: 0 auto; padding: 0 30px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #FFFFFF; padding: 10px 14px; border-radius: 6px; }
.skip-link:focus { left: 8px; }
.gk :focus-visible { outline: 2px solid var(--gk-btn); outline-offset: 2px; }

/* ---------- Type ---------- */
.eyebrow { margin: 0; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gk-pink-text); }
.ph1 { margin: 10px 0 0; font-size: 40px; line-height: 1.15; font-weight: 300; color: var(--gk-head); letter-spacing: -0.01em; text-wrap: balance; }
.h2 { margin: 12px 0 0; font-size: 40px; line-height: 1.15; font-weight: 300; color: var(--gk-head); letter-spacing: -0.01em; text-wrap: balance; }
.h3 { margin: 0; font-size: 24px; line-height: 1.3; font-weight: 400; color: var(--gk-head); }
.h4 { margin: 0; font-size: 18px; line-height: 1.4; font-weight: 700; color: var(--gk-head); }
.lead { margin: 14px 0 0; font-size: 18px; line-height: 1.7; max-width: 760px; }
.muted { color: var(--gk-muted); }
.mono { font-family: var(--gk-mono); }
.ic { font-family: var(--gk-mono); font-size: .9em; background: #F1F5FB; color: #1F5DAF; padding: 1px 6px; border-radius: 4px; }
.hero-h1 { font-size: 52px; line-height: 1.1; font-weight: 300; color: #FFFFFF; max-width: 820px; text-wrap: balance; }
.accent-u { text-decoration: underline; text-decoration-color: var(--gk-pink); text-decoration-thickness: 4px; text-underline-offset: 10px; text-decoration-skip-ink: none; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 0 28px; border-radius: 6px; border: 0;
    font-family: inherit; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    text-decoration: none; cursor: pointer; background: transparent;
    transition: background .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.gk .btn-blue, .gk .btn-blue:visited { background: var(--gk-btn); color: #FFFFFF; }
.gk .btn-blue:hover { background: var(--gk-btn-hover); color: #FFFFFF; }
.gk .btn-line { border: 2px solid var(--gk-btn); color: var(--gk-btn); background: #FFFFFF; }
.gk .btn-line:hover { background: var(--gk-info); color: var(--gk-btn-hover); }
.gk .btn-white { background: #FFFFFF; color: var(--gk-btn); }
.gk .btn-white:hover { background: var(--gk-info); color: var(--gk-btn-hover); }
.gk .btn-ghost { border: 2px solid rgba(255, 255, 255, 0.85); color: #FFFFFF; }
.gk .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #FFFFFF; }
.gk .btn-danger { border: 2px solid var(--gk-err); color: var(--gk-err); background: #FFFFFF; }
.gk .btn-danger:hover { background: var(--gk-err-bg); color: var(--gk-err-text); }
.gk .btn-danger-fill { background: var(--gk-err); color: #FFFFFF; }
.gk .btn-danger-fill:hover { background: var(--gk-err-text); color: #FFFFFF; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: default; }
.link-btn { border: 0; background: transparent; padding: 0; min-height: 44px; font-family: inherit; font-size: 15px; font-weight: 600; color: var(--gk-btn); cursor: pointer; }
.gk a.link-btn { text-decoration: none; }
.gk .link-btn:hover { color: var(--gk-btn-hover); text-decoration: underline; }
.link-btn.danger { color: var(--gk-err); }

/* ---------- Announcement bar and header ---------- */
.announce { background: var(--gk-purple); color: #FFFFFF; font-size: 14px; }
.announce-in { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; flex-wrap: wrap; text-align: center; }
.announce-new { background: var(--gk-pink); color: var(--gk-purple); font-size: 11px; font-weight: 700; letter-spacing: .1em; padding: 3px 9px; border-radius: 999px; }
.gk .announce a { color: #FFFFFF; font-weight: 700; }
.site-header { position: relative; z-index: 20; background: #FFFFFF; border-bottom: 1px solid var(--gk-line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.nav-logo { display: flex; align-items: center; flex: none; }
.nav-logo img { display: block; width: 117px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.navlink {
    display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0;
    border: 0; background: transparent; cursor: pointer;
    color: var(--gk-body); text-decoration: none; font-family: inherit; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.gk .navlink { color: var(--gk-body); }
.gk .navlink:hover, .gk .navlink[aria-expanded="true"], .gk .navlink.on { color: var(--gk-btn); }
.navlink svg { transition: transform .16s ease; }
.navlink[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-dd { position: relative; }
.nav-menu {
    position: absolute; left: -18px; top: calc(100% + 8px); min-width: 300px; padding: 10px;
    background: #FFFFFF; border: 1px solid var(--gk-border); border-radius: 10px; box-shadow: 0 18px 40px rgba(38, 34, 92, 0.14);
    display: flex; flex-direction: column;
}
.nav-menu a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 8px; text-decoration: none; }
.gk .nav-menu a b { color: var(--gk-head); font-size: 15px; }
.gk .nav-menu a span { color: var(--gk-muted); font-size: 13.5px; line-height: 1.45; }
.nav-menu a:hover { background: var(--gk-info); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.btn-nav { min-height: 44px; padding: 0 20px; font-size: 13px; }
.menu-btn { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 6px; border: 2px solid var(--gk-btn); background: #FFFFFF; color: var(--gk-btn); cursor: pointer; }
.mobile-nav { border-top: 1px solid var(--gk-line); background: #FFFFFF; }
.mobile-nav .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px 24px; padding-top: 20px; padding-bottom: 24px; }
.mobile-nav .mgrp { display: flex; flex-direction: column; }
.mobile-nav a { display: flex; align-items: center; min-height: 40px; text-decoration: none; font-size: 15.5px; }
.gk .mobile-nav a { color: var(--gk-head); }

/* ---------- Footer ---------- */
.site-footer { flex: none; background: var(--gk-soft); border-top: 1px solid #E6EAF1; padding: 56px 0 28px; font-size: 15px; color: #555555; }
.footer-top { display: flex; flex-wrap: wrap; gap: 48px 64px; justify-content: space-between; }
.footer-brand { flex: 1 1 280px; max-width: 360px; display: flex; flex-direction: column; gap: 16px; }
.footer-brand p { line-height: 1.7; }
.gk .footer-mail { display: inline-flex; align-items: center; gap: 8px; color: var(--gk-pink-text); font-weight: 700; text-decoration: none; min-height: 34px; }
.footer-cols { flex: 2 1 480px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 32px; }
.footer-cols > div { display: flex; flex-direction: column; }
.fhead { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gk-head); margin-bottom: 8px; }
.gk .flink { color: #555555; text-decoration: none; font-size: 15px; min-height: 34px; display: inline-flex; align-items: center; }
.gk .flink:hover { color: var(--gk-btn); }
.footer-bottom { margin-top: 40px; border-top: 1px solid #E1E6EE; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: #6B6B6B; }
.footer-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
.gk .footer-bottom .flink { font-size: 14px; }

/* ---------- Surfaces ---------- */
.band { background: var(--gk-band); border-top: 1px solid var(--gk-line); border-bottom: 1px solid var(--gk-line); }
.sec { padding: 56px 0; }
.card { background: #FFFFFF; border: 1px solid var(--gk-border); border-radius: 10px; box-shadow: 0 2px 6px rgba(37, 37, 37, 0.04); }
.lift { transition: transform .18s ease, box-shadow .18s ease; }
.lift:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(38, 34, 92, 0.12); }
.check { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--gk-blue); display: inline-flex; align-items: center; justify-content: center; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; line-height: 1.55; }
.checks li { display: flex; gap: 12px; }
.photo-band { position: relative; overflow: hidden; background: var(--gk-purple); }
.photo { position: absolute; inset: 0; background-image: url(../img/night-earth.jpg); background-size: cover; background-position: center; }
@media (max-width: 760px) { .photo { background-image: url(../img/night-earth-960.jpg); } }
.tint { position: absolute; inset: 0; background: rgba(38, 34, 92, 0.80); }
.photo-band > .wrap { position: relative; }

/* ---------- Page header band ---------- */
.page-head { padding: 36px 0 34px; }
.page-head-in { display: flex; flex-direction: column; gap: 14px; }
.page-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.page-head-row > div:first-child { flex: 1 1 560px; min-width: 0; }
.page-head-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.crumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--gk-muted); }
.gk .crumbs a { color: var(--gk-muted); text-decoration: none; }
.gk .crumbs a:hover { color: var(--gk-btn); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #C4C4C4; }

/* ---------- Chips, banners, progress ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; letter-spacing: .02em; background: #EEF4FD; color: #1F5DAF; white-space: nowrap; }
.chip-grey { background: #F2F2F2; color: #5F5F5F; }
.chip-pink { background: #FFE3F1; color: #A3195F; }
.chip-green { background: var(--gk-ok-bg); color: var(--gk-ok); }
.chip-purple { background: #ECEAFB; color: #3A3480; }
.chip-red { background: var(--gk-err-bg); color: var(--gk-err-text); }
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: #EEF4FD; color: #1F5DAF; font-size: 12px; font-weight: 700; }
.banner { display: flex; gap: 12px; padding: 12px 14px; border-radius: 10px; font-size: 14.5px; line-height: 1.55; }
.banner svg { flex: none; margin-top: 2px; }
.banner-info { background: var(--gk-info); color: #3B4A5C; }
.banner-ok { background: var(--gk-ok-bg); color: var(--gk-ok); }
.banner-err { background: var(--gk-err-bg); color: var(--gk-err-text); }
.gk .banner-err a { color: var(--gk-err-text); font-weight: 700; }
.progress { height: 8px; border-radius: 999px; background: #E6EDF7; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--gk-blue); }
.spin { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, 0.45); border-top-color: #FFFFFF; border-radius: 50%; animation: gk-spin .8s linear infinite; }
@keyframes gk-spin { to { transform: rotate(360deg); } }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field-label, .field-top label { font-size: 14px; font-weight: 600; color: var(--gk-head); }
.input, .select, .textarea {
    width: 100%; min-height: 50px; border: 1px solid #D5D5D5; border-radius: 6px; padding: 0 14px;
    font-family: inherit; font-size: 15.5px; color: var(--gk-head); background: #FFFFFF;
}
.select { min-height: 48px; font-size: 15px; }
.textarea { min-height: 140px; padding: 12px 14px; line-height: 1.6; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gk-btn); box-shadow: 0 0 0 3px #DCEBFC; }
.input.is-err, .has-error .input, .has-error .select, .has-error .textarea { border-color: var(--gk-err); box-shadow: 0 0 0 3px var(--gk-err-bg); }
.hint { font-size: 13.5px; color: #6B6B6B; }
.err-text, .has-error .help-block { margin: 0; font-size: 13.5px; color: var(--gk-err); }
.help-block:empty { display: none; }
.sel-wrap { position: relative; }
.sel-wrap .select { appearance: none; -webkit-appearance: none; padding-right: 40px; }
.sel-wrap svg { position: absolute; right: 14px; top: 50%; margin-top: -8px; pointer-events: none; }
.pw { position: relative; }
.pw .input { padding-right: 52px; }
.eye { position: absolute; right: 3px; top: 3px; width: 44px; height: 44px; border: 0; border-radius: 6px; background: transparent; color: #6B6B6B; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.eye:hover { color: var(--gk-btn); }
.eye .ico-hide { display: none; }
.eye.shown .ico-show { display: none; }
.eye.shown .ico-hide { display: inline-flex; }
.cb { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.5; color: var(--gk-body); cursor: pointer; }
.cb input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--gk-btn); }
.sw-row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 12px 16px; border: 1px solid var(--gk-border); border-radius: 10px; background: #FFFFFF; font-family: inherit; font-size: 16px; color: var(--gk-body); text-align: left; cursor: pointer; }
.sw-row .t { display: flex; flex-direction: column; gap: 2px; }
.sw-row .t b { font-weight: 600; color: var(--gk-head); }
.sw-row .t small { font-size: 13.5px; }
.sw-vis { position: relative; flex: none; width: 46px; height: 26px; border-radius: 999px; background: #C2C8D0; transition: background .16s ease; }
.sw-vis::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; transition: left .16s ease; }
.sw-row[aria-checked="true"] .sw-vis, .sw-row.on .sw-vis { background: var(--gk-btn); }
.sw-row[aria-checked="true"] .sw-vis::after, .sw-row.on .sw-vis::after { left: 23px; }
.sw-row[aria-disabled="true"] { cursor: default; }
.sw-row[aria-disabled="true"] .sw-vis { opacity: .55; }

/* Segmented controls (light) */
.dtabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: #F1F5FB; border-radius: 8px; }
.dtab { min-height: 40px; padding: 0 14px; border: 0; border-radius: 6px; background: transparent; color: var(--gk-btn); font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .16s ease, color .16s ease; }
.dtab:hover { background: #E4EEFB; }
.dtab.on, .dtab.on:hover, .dtab[aria-pressed="true"] { background: var(--gk-btn); color: #FFFFFF; }
.dtabs.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dtabs.full { display: flex; }
.dtabs.full .dtab { flex: 1 1 auto; }

/* Page tabs (underlined) */
.utabs { display: flex; flex-wrap: wrap; gap: 4px 28px; border-bottom: 1px solid #E5E5E5; }
.utab { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; font-weight: 600; font-size: 15.5px; text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.gk .utab { color: var(--gk-body); }
.gk .utab:hover { color: var(--gk-btn); }
.gk .utab.on { color: var(--gk-head); border-bottom-color: var(--gk-btn); }

/* Option cards (radio choices; no icons inside) */
.opt { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 16px; border-radius: 10px; font-family: inherit; cursor: pointer; border: 1px solid #DADADA; background: #FFFFFF; }
.opt .opt-radio { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #BDBDBD; background: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; }
.opt .opt-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.opt .opt-t b { font-size: 16px; color: var(--gk-head); }
.opt .opt-t span { font-size: 14px; color: var(--gk-body); }
.opt.on, .opt[aria-pressed="true"] { border: 2px solid var(--gk-btn); background: var(--gk-info); padding: 13px 15px; }
.opt.on .opt-radio, .opt[aria-pressed="true"] .opt-radio { border-color: var(--gk-btn); }
.opt.on .opt-radio::after, .opt[aria-pressed="true"] .opt-radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gk-btn); }

/* ---------- Tables ---------- */
.dtable { width: 100%; border-collapse: collapse; font-size: 14px; }
.dtable th { text-align: left; padding: 10px 14px; background: var(--gk-band); border-bottom: 1px solid var(--gk-line); font-weight: 700; color: var(--gk-head); vertical-align: top; }
.dtable td { padding: 10px 14px; border-bottom: 1px solid #F2F2F2; }
.dtable th.num, .dtable td.num { text-align: right; }
.kv { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.kv th { text-align: left; font-weight: 600; color: var(--gk-body); padding: 12px 16px; border-bottom: 1px solid #F0F0F0; white-space: nowrap; width: 1%; }
.kv td { padding: 12px 16px; border-bottom: 1px solid #F0F0F0; color: var(--gk-head); }
.kv tr:last-child th, .kv tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

/* ---------- Code ---------- */
.code-dark { background: var(--gk-code); border: 1px solid var(--gk-code-line); border-radius: 10px; color: #F2F0FF; }
.code-dark pre { margin: 0; padding: 16px 18px; font-family: var(--gk-mono); font-size: 13px; line-height: 1.65; white-space: pre; overflow-x: auto; }
.copy-btn { flex: none; min-height: 36px; padding: 0 12px; border-radius: 6px; border: 1px solid #D5D5D5; background: #FFFFFF; color: var(--gk-btn); font-family: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.copy-btn:hover { background: var(--gk-info); }
.copy-dark { flex: none; min-height: 34px; padding: 0 12px; border-radius: 6px; border: 1px solid #6E67C9; background: transparent; color: #FFFFFF; font-family: inherit; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.copy-dark:hover { background: rgba(255, 255, 255, 0.08); }
.ctabs { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px 8px 0; border-bottom: 1px solid #3A3580; }
.ctab { min-height: 38px; padding: 0 12px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #B9B4EC; font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; margin-bottom: -1px; }
.ctab:hover { color: #FFFFFF; }
.ctab.on { color: #FFFFFF; border-bottom-color: var(--gk-pink); }
.tk-k { color: #9CC7FF; } .tk-s { color: #FFB8DE; } .tk-n { color: #FFE7A8; } .tk-c { color: #9A95D6; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-wrap: wrap; gap: 40px; }
.faq-intro { flex: 1 1 280px; }
.faq-list { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; border-top: 1px solid var(--gk-line); }
.faq-item { border-bottom: 1px solid var(--gk-line); }
.faq-q { width: 100%; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: transparent; border: 0; padding: 16px 0; text-align: left; font-family: inherit; font-size: 17px; font-weight: 600; color: var(--gk-head); cursor: pointer; }
.faq-q svg { flex: none; transition: transform .2s ease; }
.faq-q[aria-expanded="true"] svg { transform: rotate(45deg); }
.faq-a { margin: 0 0 20px; line-height: 1.75; max-width: 720px; }

/* ---------- Tool and link grids, CTA ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tool-card { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; text-decoration: none; }
.gk .tool-card b { color: var(--gk-head); font-size: 16px; }
.gk .tool-card span { color: #6B6B6B; font-size: 14px; line-height: 1.5; }
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 24px; }
.link-grid a { display: flex; align-items: center; min-height: 36px; text-decoration: none; font-size: 15px; line-height: 1.3; }
.link-grid a:hover { text-decoration: underline; }
.cta-band { padding: 64px 0 72px; }
.cta-band .wrap { text-align: center; color: #FFFFFF; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta-band h2 { margin: 0; font-size: 40px; line-height: 1.15; font-weight: 300; max-width: 820px; text-wrap: balance; color: #FFFFFF; }
.cta-band p { color: #DCD8FA; font-size: 16px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.soft-card { background: var(--gk-soft); border-color: #E6EAF1; }

/* ---------- Pagination (yii\widgets\LinkPager) ---------- */
.gk .pagination { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.gk .pagination li a, .gk .pagination li span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 0 12px; border-radius: 6px; border: 1px solid #DADADA; background: #FFFFFF; color: var(--gk-btn); font-weight: 600; font-size: 14px; text-decoration: none; }
.gk .pagination li.active a, .gk .pagination li.active span { background: var(--gk-btn); border-color: var(--gk-btn); color: #FFFFFF; }
.gk .pagination li.disabled span { color: #BDBDBD; }

/* ---------- Cookie consent ---------- */
.cookie {
    position: fixed; left: 24px; bottom: 24px; z-index: 50; width: min(560px, calc(100% - 48px));
    padding: 24px; display: flex; flex-direction: column; gap: 14px;
    background: #FFFFFF; border: 1px solid var(--gk-border); border-radius: 14px; box-shadow: 0 18px 50px rgba(38, 34, 92, 0.22);
}
.cookie-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cookie-cats { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Motion ---------- */
@keyframes gk-twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.a-twinkle { animation: gk-twinkle 3.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
    .gk *, .gk *::before, .gk *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
/* .hide-sm hides on phones (760px and less), .only-sm shows only there. */
@media (min-width: 761px) {
    .only-sm { display: none !important; }
}
/* The phone landing is ported as is from its design, which was drawn with
   content-box sizing and block-wide buttons. */
.landing-m, .landing-m * { box-sizing: content-box; }
.landing-m .btn { display: flex; }
.footer-m { flex: 1 0 auto; display: flex; flex-direction: column; gap: 14px; padding: 32px 20px 36px; background: var(--gk-soft); border-top: 1px solid #E6EAF1; font-size: 15px; color: #555555; }
.footer-m img { display: block; }
.footer-m > span { line-height: 1.6; }
.gk .footer-m-mail { min-height: 44px; display: inline-flex; align-items: center; align-self: flex-start; color: var(--gk-pink-text); font-weight: 700; text-decoration: none; }
.footer-m-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.gk .footer-m-links a { min-height: 44px; display: inline-flex; align-items: center; color: #555555; text-decoration: none; }
.gk .footer-m .footer-m-legal { display: flex; flex-direction: column; padding-top: 12px; border-top: 1px solid #E1E6EE; font-size: 13.5px; line-height: 1.9; color: #6B6B6B; }
.gk .footer-m-legal a { color: #6B6B6B; text-decoration: none; }
@media (max-width: 980px) {
    .nav-links { display: none; }
    .menu-btn { display: inline-flex; }
}
@media (max-width: 760px) {
    .wrap { padding: 0 20px; }
    .ph1 { font-size: 32px; }
    .h2 { font-size: 30px; }
    .hide-sm { display: none !important; }
    /* Phone header and footer, as in the approved phone landing */
    .announce-in { min-height: 40px; gap: 8px; padding: 0 16px; font-size: 13px; }
    .announce-new { font-size: 10px; padding: 2px 8px; }
    .gk .announce a.only-sm { text-decoration: none; }
    .nav { min-height: 64px; gap: 12px; }
    .nav-logo img { width: 98px; }
    .nav-actions { gap: 8px; }
    .btn-nav { padding: 0 14px; font-size: 12.5px; }
    .hero-photo { background-image: url(../img/night-earth-960.jpg); }
    .accent-u { text-decoration-thickness: 3px; text-underline-offset: 7px; }
    /* The phone layer of the designs (build_phone.py): pages drawn with inline
       desktop sizes get smaller headings, one-column grids and less spacing. */
    [style*="font-size: 56px"], [style*="font-size: 52px"], [style*="font-size: 50px"], [style*="font-size: 48px"] { font-size: 36px !important; }
    [style*="font-size: 46px"], [style*="font-size: 44px"], [style*="font-size: 42px"], [style*="font-size: 40px"] { font-size: 32px !important; }
    [style*="font-size: 38px"], [style*="font-size: 36px"] { font-size: 30px !important; }
    [style*="grid-template-columns: minmax(0, 1fr) 300px"], [style*="grid-template-columns: repeat(3, minmax(0, 1fr))"],
    [style*="grid-template-columns: repeat(4, minmax(0, 1fr))"], [style*="grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr)"],
    [style*="grid-template-columns: minmax(0, 1.55fr)"], [style*="grid-template-columns: 1fr 1fr"],
    [style*="minmax(220px, 1fr)"], [style*="minmax(230px, 1fr)"], [style*="minmax(240px, 1fr)"], [style*="minmax(250px, 1fr)"],
    [style*="minmax(260px, 1fr)"], [style*="minmax(300px, 1fr)"], [style*="minmax(320px, 1fr)"], .m-1 { grid-template-columns: minmax(0, 1fr) !important; }
    .m-col { flex-direction: column !important; align-items: stretch !important; }
    .link-grid, .m-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .stepper { flex-wrap: nowrap !important; }
    .st { flex: 1 1 0 !important; min-width: 0 !important; }
    .st-now { flex: 2.6 1 auto !important; }
    .st:last-child { flex: 0 0 auto !important; }
    .st:not(.st-now) .st-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .st-line { margin-right: 8px !important; }
    .kv th, .kv td { display: block; width: auto; white-space: normal; }
    .kv th { padding-bottom: 2px; border-bottom: 0; }
    .kv td { padding-top: 0; overflow-wrap: anywhere; }
    section[style*="padding: 56px 0"] { padding: 36px 0 36px !important; }
    section[style*="padding: 44px 0"] { padding: 28px 0 28px !important; }
    section[style*="padding: 40px 0"] { padding: 28px 0 28px !important; }
    section[style*="padding: 32px 0 0"] { padding: 24px 0 0px !important; }
    section[style*="padding: 36px 0 0"] { padding: 24px 0 0px !important; }
    section[style*="padding: 0 0 56px"] { padding: 0px 0 36px !important; }
    section[style*="padding: 0 0 48px"] { padding: 0px 0 32px !important; }
    section[style*="padding: 0 0 64px"] { padding: 0px 0 44px !important; }
    section[style*="padding: 8px 0 48px"] { padding: 8px 0 32px !important; }
    section[style*="padding: 8px 0 56px"] { padding: 8px 0 36px !important; }
    section[style*="padding: 8px 0 64px"] { padding: 8px 0 44px !important; }
    section[style*="padding: 36px 0 8px"] { padding: 24px 0 8px !important; }
    section[style*="padding: 64px 0 40px"] { padding: 44px 0 28px !important; }
    section[style*="padding: 32px 0 48px"] { padding: 24px 0 32px !important; }
    section[style*="padding: 64px 0 72px"] { padding: 44px 0 48px !important; }
    section[style*="padding: 28px 0 24px"] { padding: 24px 0 24px !important; }
    section[style*="padding: 36px 0 34px"] { padding: 24px 0 24px !important; }
    section[style*="padding: 56px 0 24px"] { padding: 36px 0 24px !important; }
    section[style*="padding: 80px 0 90px"] { padding: 52px 0 60px !important; }
    section[style*="padding: 36px 0 28px"] { padding: 24px 0 24px !important; }
    section[style*="padding: 72px 0 80px"] { padding: 48px 0 52px !important; }
    section[style*="padding: 32px 0 56px"] { padding: 24px 0 36px !important; }
    section[style*="padding: 24px 0 56px"] { padding: 24px 0 36px !important; }
    section[style*="padding: 44px 0 52px"] { padding: 28px 0 36px !important; }
    section[style*="padding: 64px 0 64px"] { padding: 44px 0 44px !important; }
    .hero-h1 { font-size: 38px !important; }
    .cookie { left: 12px; bottom: 12px; width: calc(100% - 24px); padding: 20px; }
    /* the same phone spacing for sections spaced by class */
    .sec { padding: 36px 0; }
    .page-head { padding: 24px 0; }
    /* buttons that would wrap: stacked at the column's width, as on the phone
       landing, or short ones in one row of equal columns */
    .btn-stack { flex-direction: column !important; align-items: stretch !important; align-self: stretch !important; width: 100%; gap: 10px !important; }
    .btn-even { display: grid !important; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
    .btn-even > .btn { padding-left: 6px !important; padding-right: 6px !important; }
    /* the closing band: the same on every page, as on the phone landing */
    section.cta-band { padding: 48px 0 52px !important; }
    .cta-band .wrap { gap: 16px !important; }
    .cta-band h2 { font-size: 31px !important; line-height: 1.2 !important; text-wrap: wrap !important; }
    .page-h1 { font-size: 34px !important; }
    /* the featured guide: its map on top, as wide as the card */
    .feat-art { order: -1; padding: 14px !important; }
    .feat-art > div { height: 170px !important; }
}

/* ==========================================================================
   Landing page (views/site/index.php)
   ========================================================================== */
.hero { position: relative; overflow: hidden; background: var(--gk-purple); }
.hero-photo { position: absolute; inset: 0; background-image: url(../img/night-earth.jpg); background-size: cover; background-position: center 60%; animation: gk-kenburns 40s ease-in-out infinite alternate; }
.hero-tint { position: absolute; inset: 0; background: rgba(38, 34, 92, 0.80); }
.landing .h2 { font-size: 42px; }
.landing .btn-blue:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(42, 111, 201, 0.28); }
.landing .btn-white:hover { transform: translateY(-1px); }
.landing .lift:hover { box-shadow: 0 16px 36px rgba(72, 80, 190, 0.14); }
.landing .hero a:not(.btn) { color: #FFFFFF; }
.sheet-map { position: relative; height: 200px; background: #EEF2F8; border-top: 1px solid #E3E8F0; overflow: hidden; }
.tl { position: relative; display: flex; flex-direction: column; gap: 40px; margin-top: 44px; }
.tl-line { position: absolute; left: 50%; top: 28px; bottom: 28px; width: 2px; margin-left: -1px; background: #DCE8F7; }
.tl-fill { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: var(--gk-blue); transform-origin: 50% 0; }
.tl-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); column-gap: 36px; align-items: center; }
.tl-node { grid-column: 2; grid-row: 1; justify-self: center; width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--gk-blue); background: #FFFFFF; color: var(--gk-btn); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; }
.tl-left { grid-column: 1; grid-row: 1; }
.tl-right { grid-column: 3; grid-row: 1; }
.tl-left.tl-text { text-align: right; }
.grecaptcha-badge { visibility: hidden; }

@keyframes gk-kenburns { from { transform: scale(1.02); } to { transform: scale(1.1); } }
@keyframes gk-pinDrop {
    0% { opacity: 0; transform: translateY(-28px) scale(0.6); }
    5% { opacity: 1; transform: translateY(3px) scale(1.05); }
    8% { transform: translateY(0) scale(1); }
    86% { opacity: 1; transform: translateY(0) scale(1); }
    94%, 100% { opacity: 0; transform: translateY(0) scale(0.9); }
}
@keyframes gk-cellFill {
    0%, 1% { opacity: 0; background: #D7E8FC; }
    6% { opacity: 1; background: #D7E8FC; }
    18% { background: rgba(215, 232, 252, 0); }
    86% { opacity: 1; }
    94%, 100% { opacity: 0; }
}
@keyframes gk-routeDraw {
    0%, 46% { stroke-dashoffset: 520; opacity: 1; }
    66%, 86% { stroke-dashoffset: 0; opacity: 1; }
    94%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes gk-chipIn {
    0%, 64% { opacity: 0; transform: translateY(8px); }
    70%, 86% { opacity: 1; transform: translateY(0); }
    94%, 100% { opacity: 0; transform: translateY(0); }
}
@keyframes gk-progress { 0% { width: 3%; } 44% { width: 100%; } 92% { width: 100%; } 100% { width: 3%; } }
@keyframes gk-tlFill {
    0% { transform: scaleY(0); }
    36% { transform: scaleY(1); }
    90% { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(1); opacity: 0; }
}
@keyframes gk-nodeOn {
    0% { background: #FFFFFF; color: #2A6FC9; transform: scale(1); }
    4% { background: #2A6FC9; color: #FFFFFF; transform: scale(1.12); }
    8% { transform: scale(1); }
    88% { background: #2A6FC9; color: #FFFFFF; }
    96%, 100% { background: #FFFFFF; color: #2A6FC9; }
}
@keyframes gk-ripple { 0% { transform: scale(0.5); opacity: 0.5; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes gk-chatIn {
    0%, 4% { opacity: 0; transform: translateY(10px); }
    10%, 90% { opacity: 1; transform: translateY(0); }
    97%, 100% { opacity: 0; transform: translateY(0); }
}
@keyframes gk-blink { 50% { opacity: 0; } }
.a-pin { animation: gk-pinDrop 9s cubic-bezier(.34, 1.56, .64, 1) infinite both; transform-origin: 50% 100%; }
.a-cell { animation: gk-cellFill 9s ease-out infinite both; }
.a-route { stroke-dasharray: 520; animation: gk-routeDraw 9s ease-in-out infinite both; }
.a-chip { animation: gk-chipIn 9s ease-out infinite both; }
.a-progress { animation: gk-progress 9s ease-in-out infinite both; }
.a-tlfill { animation: gk-tlFill 10s ease-in-out infinite both; }
.a-node { animation: gk-nodeOn 10s ease-out infinite both; }
.a-ripple { animation: gk-ripple 2.4s ease-out infinite; }
.a-chat { animation: gk-chatIn 12s ease-out infinite both; }
.a-caret { animation: gk-blink 1.1s steps(1) infinite; }
.d1 { animation-delay: .5s; } .d2 { animation-delay: 1.2s; } .d3 { animation-delay: 1.9s; } .d4 { animation-delay: 2.6s; } .d5 { animation-delay: 3.3s; }
.n1 { animation-delay: .2s; } .n2 { animation-delay: 1.8s; } .n3 { animation-delay: 3.4s; }
.c1 { animation-delay: .3s; } .c2 { animation-delay: 1.6s; } .c3 { animation-delay: 3.2s; } .c4 { animation-delay: 4.8s; }
.t1 { animation-delay: .2s; } .t2 { animation-delay: 1.1s; } .t3 { animation-delay: 2.3s; } .t4 { animation-delay: 0.7s; } .t5 { animation-delay: 1.7s; } .t6 { animation-delay: 2.8s; }

@media (max-width: 760px) {
    .landing .h2 { font-size: 32px; }
    .tl-line { left: 28px; }
    .tl-row { grid-template-columns: 56px minmax(0, 1fr); column-gap: 18px; row-gap: 16px; }
    .tl-node { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
    .tl-left, .tl-right { grid-column: 2; }
    .tl-left.tl-text { text-align: left; }
    .tl-text { grid-row: 1; }
    .tl-ui { grid-row: 2; }
}

/* ==========================================================================
   Pricing pages
   ========================================================================== */
.price-card { display: flex; flex-direction: column; overflow: hidden; }
.price-card-pick { border: 2px solid var(--gk-blue); }
.price-card-body { padding: 28px 26px 22px; flex: 1; }
.price-card-split { display: flex; flex-wrap: wrap; gap: 20px 28px; padding: 30px 30px 24px; }
.price-name { margin: 0; font-size: 22px; font-weight: 400; color: var(--gk-head); }
.price-big { font-size: 42px; font-weight: 600; color: var(--gk-head); }
.price-list { flex: 1 1 200px; gap: 10px; }
.price-list li { align-items: center; }
.gk .price-cta { border-radius: 0; min-height: 56px; }
.gk .price-cta-soft { background: var(--gk-info); color: var(--gk-btn); }
.gk .price-cta-soft:hover { background: #E1EEFD; color: var(--gk-btn-hover); }
.badge-popular { background: var(--gk-pink); color: var(--gk-purple); font-size: 11px; font-weight: 700; letter-spacing: .1em; padding: 4px 10px; border-radius: 999px; }
.estimator { background: var(--gk-band); border-radius: 12px; padding: 36px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.vol-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vol-chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid #D5DCE6; background: #FFFFFF; color: var(--gk-head); font-weight: 600; font-size: 14px; font-family: inherit; cursor: pointer; }
.vol-chip.on { border-color: var(--gk-btn); background: var(--gk-btn); color: #FFFFFF; font-weight: 700; }
.est-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-radius: 10px; background: #FFFFFF; border: 1px solid #E3E3E3; }
.est-row.win { border: 2px solid var(--gk-blue); }
.est-num { font-size: 22px; color: var(--gk-head); }
.est-verdict { margin-top: 4px; font-size: 17px; font-weight: 600; color: var(--gk-purple); }
@media (max-width: 760px) { .estimator { padding: 24px; } }
.price-table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 640px; }
.price-table th { text-align: left; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6B6B6B; padding: 14px 20px; background: var(--gk-band); border-bottom: 1px solid var(--gk-line); }
.price-table td { padding: 16px 20px; border-bottom: 1px solid #F0F0F0; vertical-align: top; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table b, .price-table .pt-what { color: var(--gk-head); }
.price-table .pt-what { font-weight: 600; }
.price-table .small { font-size: 14px; }
.step-card { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.step-card h3 { margin: 0; font-size: 21px; font-weight: 600; color: var(--gk-head); }
.step-card p { line-height: 1.65; }
.step-num { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--gk-blue); color: var(--gk-btn); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }
.code-block { margin: 0; padding: 18px 20px; background: var(--gk-code); color: #F2F0FF; border-radius: 10px; font-family: var(--gk-mono); font-size: 13.5px; line-height: 1.7; white-space: pre-wrap; word-break: break-all; }

/* ---------- Account pages (layouts/auth.php) ---------- */
/* Split pages (log in, sign up): the form on the left, a night-Earth panel on
   the right. Solo pages (password reset, email confirmation): one card. */
.auth { min-height: 100vh; display: flex; flex-wrap: wrap; background: #FFFFFF; }
.auth-main { flex: 1 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 32px; padding: 28px 56px; }
.auth-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; }
.auth-top img { display: block; }
.gk .auth-top a.auth-alt { font-weight: 700; }
.auth-body { flex: 1; display: flex; align-items: center; }
.auth-form { width: 100%; max-width: 420px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.auth-fields { display: flex; flex-direction: column; gap: 16px; }
.auth-fields .btn { margin-top: 4px; }
.field-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.gk .field-top a { font-size: 14px; font-weight: 600; }
.auth-h1 { font-size: 34px; line-height: 1.2; font-weight: 300; color: var(--gk-head); }
.auth-sub { margin-top: 8px; line-height: 1.6; }
.auth-sub b { color: var(--gk-head); }
.auth-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font-size: 13.5px; color: var(--gk-muted); }
.gk .auth-foot a { color: var(--gk-muted); text-decoration: none; }
.gk .auth-foot a:hover { color: var(--gk-btn); }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; border: 1px solid #DADCE0; border-radius: 6px; background: #FFFFFF; font-size: 15px; font-weight: 600; text-decoration: none; }
.gk .gbtn, .gk .gbtn:visited { color: #3C4043; }
.gk .gbtn:hover { background: #F8FAFD; color: #3C4043; }
.or { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--gk-muted); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--gk-line); }
.fine { font-size: 13px; line-height: 1.55; color: var(--gk-muted); }
.gk .fine a { color: var(--gk-muted); }
.btn .spin { flex: none; }
.cb.err input { outline: 2px solid var(--gk-err); outline-offset: 1px; }
.link-inline { display: inline; border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--gk-btn); text-align: left; text-decoration: underline; cursor: pointer; }
.link-inline:hover { color: var(--gk-btn-hover); }
.btn.is-busy { opacity: .85; }
.auth-side { flex: 1 1 520px; min-width: 0; position: relative; overflow: hidden; background: var(--gk-purple); color: #FFFFFF; display: flex; align-items: center; padding: 64px; }
.auth-side .photo { background-position: center 40%; animation: gk-kenburns 40s ease-in-out infinite alternate; }
.auth-side .eyebrow { color: var(--gk-pink); }
.side-in { position: relative; display: flex; flex-direction: column; gap: 22px; max-width: 500px; }
.side-h2 { font-size: 40px; line-height: 1.15; font-weight: 300; color: #FFFFFF; text-wrap: balance; }
.side-lead { font-size: 17px; line-height: 1.7; color: #DCD8FA; }
.side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.55; color: #F2F0FF; }
.side-list li { display: flex; gap: 12px; }
.side-num { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid #6E67C9; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.gk .side-link, .gk .side-link:hover { color: #FFFFFF; font-weight: 600; }
.side-sheet { padding: 16px 18px 8px; background: #FFFFFF; border-radius: 12px; color: var(--gk-body); box-shadow: 0 18px 40px rgba(10, 8, 40, 0.35); }
.side-sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 10px; font-size: 14.5px; font-weight: 700; color: var(--gk-head); }
.side-sheet-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid #F0F0F0; font-size: 14px; color: var(--gk-head); }
.side-sheet-row .mono { font-size: 13px; color: var(--gk-btn-hover); }
.solo { min-height: 100vh; display: flex; flex-direction: column; background: var(--gk-soft); }
.solo-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 24px 40px; font-size: 15px; }
.solo-top img { display: block; }
.gk .solo-top a.auth-alt { font-weight: 700; }
.solo-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 20px 48px; }
.solo-card { width: 100%; max-width: 460px; padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.solo-card .auth-h1 { font-size: 30px; }
.solo-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.solo-actions .btn { flex: 1 1 auto; }
.solo-foot { padding: 20px 40px 28px; }
.status-ico { width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--gk-info); color: var(--gk-btn); }
.status-ico.done { background: var(--gk-blue); color: #FFFFFF; }
@media (max-width: 980px) {
    .auth-side { display: none; }
    .auth-main { padding: 20px; }
    .solo-top, .solo-foot { padding-left: 20px; padding-right: 20px; }
}

/* ==========================================================================
   Batch tools (modules/geocoding, modules/distance; js/tool.js)
   ========================================================================== */
.panel-h { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gk-head); }
.opt-tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gk-muted); margin-left: 6px; }
/* progress steps; on phones only the current one is named (Responsive) */
.stepper { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 0; align-items: center; }
.st { position: relative; display: flex; align-items: center; gap: 10px; flex: 1 1 0; min-width: 150px; }
.st-dot { flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.st-line { flex: 1; height: 2px; background: #DCE8F7; margin-right: 12px; min-width: 16px; }
.st-done .st-dot { background: var(--gk-btn); color: #FFFFFF; }
.st-done .st-line { background: var(--gk-blue); }
.st-now .st-dot { background: #FFFFFF; color: var(--gk-btn); border: 2px solid var(--gk-btn); box-shadow: 0 0 0 4px #DCEBFC; }
.st-todo .st-dot { background: #FFFFFF; color: #8A8A8A; border: 2px solid #D5D5D5; }
.st-label { font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.st-done .st-label, .st-now .st-label { color: var(--gk-head); }
.st-todo .st-label { color: var(--gk-muted); }
.tool-tabs .dtab { min-height: 44px; padding: 0 16px; font-weight: 700; }
/* the step columns as drawn: their flex widths leave out their padding */
.tool-step > .wrap > * { box-sizing: content-box; }
.drop { border: 2px dashed #9DC0EE; border-radius: 12px; background: #F5F9FE; padding: 56px 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; transition: background .16s ease, border-color .16s ease; }
.drop.over { background: #E6F0FD; border-color: var(--gk-blue); }
.drop-busy { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--gk-head); }
.spin-blue { border-color: #C9DCF4; border-top-color: var(--gk-btn); }
.tool-table td { white-space: nowrap; }
.tool-table td.addr { white-space: normal; min-width: 200px; }
.tool-table th .col-head { display: flex; flex-direction: column; gap: 6px; }
.tool-table th .col-letter { font-size: 12px; color: var(--gk-muted); }
.tool-table th .chip { align-self: flex-start; }
.tool-map { position: relative; z-index: 0; border-radius: 10px; background: #EEF2F8; overflow: hidden; }
.tool-map-note { position: absolute; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; font-size: 14.5px; line-height: 1.5; color: var(--gk-body); background: #EEF2F8; }
.tool-map-note:empty { display: none; }
.pin-icon { background: none; border: 0; }
.sum-list { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 15px; }
.sum-list dd { margin: 0; text-align: right; color: var(--gk-head); font-weight: 600; overflow-wrap: anywhere; }
/* distances: travel settings, the map legend, numbered trips */
.seg-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg-group legend { padding: 0; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--gk-head); }
.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: #F1F5FB; border-radius: 8px; }
.seg.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sg { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--gk-btn); cursor: pointer; white-space: nowrap; transition: background .16s ease, color .16s ease; }
.sg:hover { background: #E4EEFB; }
.sg[aria-pressed="true"], .sg[aria-pressed="true"]:hover { background: var(--gk-btn); color: #FFFFFF; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--gk-body); }
.legend > span { display: inline-flex; align-items: center; gap: 8px; }
.legend-dot, .trip-dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; background: var(--gk-purple); border: 3px solid #FFFFFF; box-shadow: 0 0 0 1px #C9CED6; }
.trip-dot { width: 20px; height: 20px; box-shadow: 0 1px 4px rgba(38, 34, 92, 0.35); }
.legend-line { display: inline-block; width: 22px; height: 3px; border-radius: 2px; background: var(--gk-blue); }
.badge-n { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #FFE3F1; color: var(--gk-pink-text); font-size: 12px; font-weight: 700; }
.dtable.tight th, .dtable.tight td { padding: 10px 12px; }

/* ==========================================================================
   Dashboard (modules/dashboard; js/dashboard.js, js/file-map.js)
   ========================================================================== */
.stat { padding: 18px 20px; text-decoration: none; display: flex; flex-direction: column; gap: 10px; }
.stat-cap { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gk-muted); }
.stat-num { font-size: 28px; line-height: 1.1; font-weight: 600; color: var(--gk-head); }
.stat-num small { font-size: 15px; font-weight: 400; color: var(--gk-body); }
.frow { display: grid; grid-template-columns: minmax(0, 2.3fr) 90px minmax(0, 1.5fr) minmax(0, 1.9fr); gap: 16px; align-items: center; padding: 16px 20px; border-top: 1px solid #F0F0F0; }
.frow-h { border-top: 0; background: var(--gk-band); padding-top: 11px; padding-bottom: 11px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gk-muted); }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rm-form { margin: 0 0 0 auto; }
.rm { min-height: 36px; padding: 0 4px; border: 0; background: transparent; font-family: inherit; font-size: 14px; color: var(--gk-muted); cursor: pointer; }
.rm:hover { color: var(--gk-err); text-decoration: underline; }
.link-danger, .link-plain { min-height: 44px; padding: 0; border: 0; background: transparent; font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.link-danger { color: var(--gk-err); }
.link-plain { color: var(--gk-btn); }
.link-danger:hover, .link-plain:hover { text-decoration: underline; }
.amt { min-height: 44px; min-width: 64px; padding: 0 14px; border-radius: 6px; border: 1px solid #DADADA; background: #FFFFFF; color: var(--gk-head); font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.amt:hover { border-color: var(--gk-btn); }
.amt[aria-pressed="true"] { border: 2px solid var(--gk-btn); background: var(--gk-info); color: #1F5DAF; padding: 0 13px; }
.danger-card { border: 1px solid #F3C9C5; border-radius: 10px; padding: 22px 24px; background: #FFFFFF; }
.keybox { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border: 1px solid #DADADA; border-radius: 8px; background: var(--gk-band); }
.keybox code { flex: 1; min-width: 0; font-family: var(--gk-mono); font-size: 15px; color: var(--gk-head); overflow-wrap: anywhere; }
.cluster { display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 79, 168, 0.92); color: #FFFFFF; font-weight: 700; font-size: 13px; box-shadow: 0 0 0 6px rgba(255, 79, 168, 0.22); }
.map-rows { list-style: none; margin: 0; padding: 0; flex: 1 1 0; min-height: 200px; overflow-y: auto; }
.map-rows button { width: 100%; display: flex; flex-direction: column; gap: 2px; padding: 11px 16px; border: 0; border-top: 1px solid #F0F0F0; background: transparent; font-family: inherit; text-align: left; cursor: pointer; }
.map-rows button:hover { background: var(--gk-info); }
.map-row-name { color: var(--gk-head); font-weight: 600; font-size: 14.5px; overflow-wrap: anywhere; }
.map-row-at { font-size: 12.5px; color: #1F5DAF; }
@media (max-width: 900px) {
    .frow { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .frow-h { display: none; }
    .rm-form { margin-left: 0; }
}
@media (max-width: 760px) {
    .file-map { height: 420px !important; }
}

/* ==========================================================================
   Guides (views/site/blog.php, article.php, articles/*)
   ========================================================================== */
.gcard { display: flex; flex-direction: column; gap: 10px; padding: 24px; text-decoration: none; }
.gcard h3 { margin: 0; font-size: 20px; line-height: 1.35; font-weight: 600; color: var(--gk-head); }
.gcard p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--gk-body); }
.gcard .more { margin-top: auto; font-weight: 600; color: var(--gk-btn); font-size: 15px; }
[data-show-kind="geocoding"] > [data-kind="distance"], [data-show-kind="distance"] > [data-kind="geocoding"] { display: none; }
.art { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 300px); gap: 56px; justify-content: space-between; align-items: start; }
.art-side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 20px; }
.prose { font-size: 17px; line-height: 1.8; color: #555555; }
.prose > p:first-child { font-size: 19px; }
.gk .prose h2 { margin: 44px 0 12px; font-size: 28px; line-height: 1.25; font-weight: 400; color: var(--gk-head); scroll-margin-top: 24px; }
.gk .prose h3 { margin: 28px 0 8px; font-size: 19px; line-height: 1.35; font-weight: 700; color: var(--gk-head); }
.gk .prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose code { font-family: var(--gk-mono); font-size: .88em; background: #F1F5FB; color: #1F5DAF; padding: 2px 6px; border-radius: 4px; }
.prose pre { margin: 0 0 18px; padding: 16px 18px; border-radius: 10px; background: var(--gk-code); border: 1px solid var(--gk-code-line); color: #F2F0FF; font-family: var(--gk-mono); font-size: 13.5px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.prose pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.prose a { font-weight: 600; }
.toc { display: flex; flex-direction: column; }
.gk .toc a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--gk-border); color: var(--gk-body); text-decoration: none; font-size: 14.5px; line-height: 1.45; }
.gk .toc a:hover { color: var(--gk-btn); }
.gk .toc a.on { border-left-color: var(--gk-btn); color: var(--gk-head); font-weight: 600; }
.toc-h { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gk-head); }
@media (max-width: 980px) {
    .art { grid-template-columns: minmax(0, 1fr); }
    .art-side { position: static; }
}
@media (max-width: 760px) {
    .prose { font-size: 16.5px; }
    .prose > p:first-child { font-size: 17.5px; }
    .gk .prose h2 { font-size: 24px; margin-top: 36px; }
}
/* help guides (views/site/help.php, help_distance.php): numbered steps with a picture */
.steps { display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 420px); gap: 0 28px; padding: 36px 0; border-bottom: 1px solid var(--gk-line); scroll-margin-top: 24px; }
.step-n { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--gk-blue); background: #FFFFFF; color: var(--gk-btn); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; }
.gk .step h2 { margin: 6px 0 10px; font-size: 26px; line-height: 1.25; font-weight: 400; color: var(--gk-head); }
.gk .step p { margin: 0 0 12px; line-height: 1.75; }
.tips { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.55; }
.tips li { display: flex; gap: 12px; }
.step-vis { display: flex; flex-direction: column; gap: 12px; align-self: start; min-width: 0; }
.vig { border-radius: 12px; background: var(--gk-soft); border: 1px solid #E6EAF1; padding: 18px; display: flex; flex-direction: column; gap: 10px; line-height: normal; }
.vig .card { box-shadow: none; }
/* the four matched columns of the distance guide: in a row only where "Destination lat" fits */
.vig-cols-box { container-type: inline-size; }
.vig-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@container (min-width: 600px) { .vig-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1000px) {
    .step { grid-template-columns: 56px minmax(0, 1fr); }
    .step .step-vis { grid-column: 2; margin-top: 16px; }
}
@media (max-width: 760px) {
    /* the number above its step, the text and the picture full width */
    .step { grid-template-columns: minmax(0, 1fr) !important; }
    .step .step-vis { grid-column: 1 !important; }
    .step-n { width: 40px !important; height: 40px !important; font-size: 16px !important; margin-bottom: 6px; }
}

/* ==========================================================================
   API docs (views/site/help_api.php): sections list, text, dark code column
   ========================================================================== */
/* the sections list stays on screen and scrolls on its own; its grey column
   runs the full height of the docs as the background of .docs */
.docs { display: flex; align-items: flex-start; border-top: 1px solid #ECECEC; background: linear-gradient(to right, #FAFAFA 267px, #ECECEC 267px, #ECECEC 268px, transparent 268px); }
.docs-nav { flex: 0 0 268px; position: sticky; top: 0; height: 100vh; overflow-y: auto; overscroll-behavior: contain; background: #FAFAFA; border-right: 1px solid #ECECEC; padding: 28px 22px 40px; box-sizing: border-box; display: flex; flex-direction: column; gap: 22px; }
.docs-nav .grp { display: flex; flex-direction: column; gap: 2px; }
.docs-nav .grp-h { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gk-head); }
.gk .docs-nav a.dl { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 34px; padding: 0 10px; border-radius: 6px; color: #555555; text-decoration: none; font-size: 14.5px; }
.gk .docs-nav a.dl:hover { background: #EEF4FD; color: #1F5DAF; }
.gk .docs-nav a.dl.on { background: #EEF4FD; color: #1F5DAF; font-weight: 700; }
.doc-none { font-size: 13.5px; line-height: 1.5; color: #767676; }
.verb { font-family: var(--gk-mono); font-size: 11px; font-weight: 700; color: #0D652D; background: #E6F4EA; border-radius: 4px; padding: 1px 6px; }
.dsec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); scroll-margin-top: 8px; }
.dtext { padding: 48px 44px 52px; display: flex; flex-direction: column; gap: 16px; min-width: 0; border-bottom: 1px solid #ECECEC; }
.dcode { background: var(--gk-purple); padding: 48px 28px 52px; display: flex; flex-direction: column; gap: 16px; min-width: 0; border-bottom: 1px solid #332E78; }
.dgroup { grid-column: 1 / -1; padding: 40px 44px 18px; background: #FFFFFF; border-bottom: 1px solid #ECECEC; }
.dh2 { margin: 0; font-size: 30px; line-height: 1.2; font-weight: 300; color: var(--gk-head); }
.endpoint { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; max-width: 100%; padding: 8px 12px; border-radius: 8px; background: #F4F6FA; border: 1px solid #E6EAF1; font-family: var(--gk-mono); font-size: 14px; color: var(--gk-head); overflow-wrap: anywhere; }
.ptable { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ptable th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #767676; padding: 0 12px 8px 0; border-bottom: 1px solid #E5E5E5; }
.ptable td { padding: 12px 12px 12px 0; border-bottom: 1px solid #F0F0F0; vertical-align: top; line-height: 1.55; }
/* drawn content-box: a 170px first column plus its padding */
.ptable th, .ptable td { box-sizing: content-box; }
.dtext .kv, .endpoint { line-height: normal; }
.pname { font-family: var(--gk-mono); font-size: 14px; font-weight: 700; color: var(--gk-head); white-space: nowrap; }
.req { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #C81E78; }
.opt2 { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #767676; }
.cpanel { background: #1B1846; border: 1px solid #4A4496; border-radius: 10px; overflow: hidden; }
.cpanel-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 10px; padding: 6px 10px 0 8px; border-bottom: 1px solid #3A3580; }
.cpanel-t { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #B9B4EC; padding: 0 6px 6px; }
.cpanel pre { margin: 0; padding: 14px 16px 16px; font-family: var(--gk-mono); font-size: 12.8px; line-height: 1.65; color: #F2F0FF; white-space: pre; overflow-x: auto; }
/* one code language and one response format for the whole page */
.cv, .rv { display: none; }
.l-curl .c-curl, .l-python .c-python, .l-js .c-js, .l-php .c-php { display: block; }
.f-geloky .r-geloky, .f-google .r-google { display: block; }
.price-tag { align-self: flex-start; }
/* the docs tables stack whenever their column is narrow: on phones, and on
   small desktops where the code column takes most of the width */
.dtext { container-type: inline-size; }
@container (max-width: 440px) {
    .kv th, .kv td { display: block; width: auto; white-space: normal; }
    .kv th { padding-bottom: 2px; border-bottom: 0; }
    .kv td { padding-top: 0; overflow-wrap: anywhere; }
}
@container (max-width: 520px) {
    .ptable-stack thead { display: none; }
    .ptable-stack tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--gk-line); }
    .ptable-stack td { padding: 0 !important; border: 0 !important; }
    .ptable-stack td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; margin-top: 4px; }
    .ptable-stack td:nth-child(3) { grid-column: 2; grid-row: 1; text-align: right; }
}
@media (max-width: 1180px) {
    .dsec { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
    .docs { flex-direction: column; align-items: stretch; background: none; }
    .docs-nav { flex-basis: auto; position: static; height: auto; overflow: visible; border-right: 0; border-bottom: 1px solid #ECECEC; }
    .dtext, .dgroup { padding-left: 20px; padding-right: 20px; }
}

/* ==========================================================================
   Free tools and place pages (modules/geocoding/views/default)
   ========================================================================== */
/* a value with its copy button, one per row of a card */
.copy-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid #F0F0F0; line-height: normal; }
.copy-row:first-child { border-top: 0; }
.copy-row .lbl { font-size: 13.5px; color: #767676; }
.copy-row .val { font-family: var(--gk-mono); font-size: 14.5px; color: var(--gk-head); overflow-wrap: anywhere; }
.free-map { height: 460px; border-radius: 12px; }
/* a place's latitude and longitude, large */
.big-stat { padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; line-height: normal; min-width: 0; container-type: inline-size; }
.big-stat .l { font-size: 14px; color: #767676; }
/* as large as drawn where there is room; long longitudes like -122.419416 shrink to stay in the card */
.coord-big { font-family: var(--gk-mono); font-size: 26px; font-size: min(26px, 17cqi); font-weight: 600; color: var(--gk-head); letter-spacing: -0.01em; white-space: nowrap; }
/* directory pages: countries by letter, regions as cards, cities by page */
.letter { font-size: 22px; font-weight: 300; color: #C81E78; margin: 0 0 6px; line-height: normal; }
.az { display: flex; flex-wrap: wrap; gap: 4px; }
.gk .az a { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; min-height: 34px; border-radius: 6px; border: 1px solid #E5E5E5; color: var(--gk-btn); font-weight: 700; font-size: 14px; text-decoration: none; background: #FFFFFF; }
.gk .az a:hover { background: #EEF4FD; }
.dir-col { column-width: 220px; column-gap: 32px; }
.dir-col > div { break-inside: avoid; margin: 0 0 22px; }
.gk .dir-col a { display: flex; align-items: center; min-height: 32px; text-decoration: none; font-size: 15px; }
.gk .dir-col a:hover { text-decoration: underline; }
.gk .pair-card { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; text-decoration: none; line-height: normal; }
.pair-card b { color: var(--gk-head); font-size: 15.5px; }
.pair-card span { color: #6B6B6B; font-size: 13.5px; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 0 12px; border-radius: 6px; border: 1px solid #DADADA; background: #FFFFFF; color: var(--gk-btn); font-weight: 600; font-size: 14px; text-decoration: none; }
.pager a:hover { background: #EEF4FD; }
.pager [aria-current] { border-color: var(--gk-btn); background: var(--gk-btn); color: #FFFFFF; }
.pager .gap { border: 0; min-width: 20px; padding: 0; color: #767676; }
/* distances between cities: the figures, and the names on the map */
.big-stat .n { font-size: 32px; font-size: min(32px, 14cqi); line-height: 1.1; font-weight: 600; color: var(--gk-head); white-space: nowrap; }
.leaflet-tooltip.map-tag { background: #FFFFFF; border: 0; border-radius: 6px; padding: 4px 10px; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 13px; font-weight: 700; color: var(--gk-head); box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
.leaflet-tooltip.map-tag::before { display: none; }
/* beyond the world's edge the map carries on as sea */
.tool-map.leaflet-container { background: #AAD3DF; }
/* the reverse tool looks up wherever the map is clicked */
.free-map.pick.leaflet-container { cursor: crosshair; }

/* the small heading above a value, on the contact page */
.spec-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #767676; }

/* ==========================================================================
   Legal texts (views/site/privacy.php, terms.php, cookie.php)
   ========================================================================== */
.ltabs { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.legal { display: grid; grid-template-columns: 250px minmax(0, 760px); gap: 56px; }
.legal-toc { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow-y: auto; }
.gk .legal h2 { margin: 40px 0 12px; font-size: 24px; line-height: 1.3; font-weight: 400; color: var(--gk-head); scroll-margin-top: 24px; }
.gk .legal h2:first-child { margin-top: 0; }
.gk .legal h3 { margin: 22px 0 8px; font-size: 17px; font-weight: 700; color: var(--gk-head); }
.gk .legal article p { margin: 0 0 14px; line-height: 1.8; font-size: 16px; }
.gk .legal article p.legal-lead { font-size: 18px; color: #555555; }
.legal ul, .legal ol { margin: 0 0 14px; padding-left: 22px; line-height: 1.8; font-size: 16px; }
.legal li { margin: 6px 0; }
.legal article a:not(.btn) { overflow-wrap: anywhere; }
/* Five columns do not fit a phone: there, a block for each cookie. */
@media (max-width: 760px) {
    .cookie-table, .cookie-table tbody { display: block; }
    .cookie-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .cookie-table tr { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-bottom: 1px solid #F2F2F2; }
    .cookie-table tr:last-child { border-bottom: 0; }
    .cookie-table td { padding: 0; border: 0; }
    .cookie-table td:nth-child(2) { order: -2; font-weight: 700; color: var(--gk-head); }
    .cookie-table td:nth-child(4) { order: -1; margin-bottom: 4px; }
    .cookie-table td[data-label]::before { content: attr(data-label) ": "; color: #767676; }
}
.inshort { display: flex; gap: 12px; padding: 12px 16px; border-radius: 10px; background: #F0F6FE; color: #3B4A5C; line-height: 1.6; margin: 0 0 14px; }
.inshort b { color: #3B4A5C; }
@media (max-width: 900px) {
    .legal { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .legal-toc { position: static; max-height: none; overflow: visible; }
}

