/* =====================================================================
   GK TOOLS — GT.1.0 royal skin for /ai/, /activity-finder/, /zone-finder/
   Loads AFTER each page's own CSS. Pure presentation: no markup or JS
   hooks are changed, every selector below already exists on the pages
   (plus the new .ga-top-links nav). Palette matches the v2 website:
   royal navy #14202e · gold #f6cf5a→#b97a1e · ivory #f7f3ea.
   Designed & developed by Zaini Developers.
   ===================================================================== */

/* ---------------------------------------------------------------- tokens */
body.ga{
  --navy:#14202e;--navy-2:#182636;--navy-deep:#0f1922;
  --gold-l:#e9c068;--grad:linear-gradient(135deg,#f6cf5a 0%,#e3a83a 45%,#b97a1e 100%);
  --sh-gold:0 14px 30px -14px rgba(185,131,48,.8);
  background:var(--navy-deep);
}

/* ================================================================ HOME (AI + Activity Finder) */
body[data-view=home].ga{background:var(--navy-deep)}
.ga-home-blur{display:none!important}
.ga-home-bg{
  background:
    radial-gradient(1000px 520px at 50% -160px,rgba(227,168,58,.30),transparent 62%),
    radial-gradient(760px 480px at 88% 108%,rgba(32,56,84,.85),transparent 64%),
    radial-gradient(640px 420px at 6% 96%,rgba(23,42,62,.9),transparent 60%),
    linear-gradient(180deg,#0e1820 0%,#14202e 52%,#101a26 100%);
  animation:none;transform:none;inset:0;height:auto;width:auto;aspect-ratio:auto;
  -webkit-mask-image:none;mask-image:none;left:0;right:0;top:0;bottom:0;
}
.ga-home-bg::after{
  background:
    repeating-linear-gradient(115deg,rgba(233,192,104,.05) 0 1px,transparent 1px 90px),
    radial-gradient(60% 50% at 50% 38%,rgba(233,192,104,.07),transparent 70%);
}
.ga-home h1{color:#f6f3ec;text-shadow:0 2px 24px rgba(0,0,0,.35)}
.ga-home h1 span{background:linear-gradient(180deg,#f6cf5a 10%,#e3a83a 55%,#c9962b 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
.ga-home-sub{color:#b9c4cf}
.ga-home-note{color:#8fa0b1}
.ga-home-note svg{color:var(--gold-l)}
.ga-home-in .ga-link{color:var(--gold-l)}
/* gold hairline crown above the headline */
.ga-home-in::before{content:"";display:block;width:54px;height:3px;margin:0 auto 18px;border-radius:3px;background:linear-gradient(90deg,transparent,#e9c068 30%,#e9c068 70%,transparent)}

/* ask bar on navy — brighter ring */
.ga-ask--hero{border-color:rgba(233,192,104,.65);box-shadow:0 30px 80px -30px rgba(0,0,0,.75),0 0 0 1px rgba(233,192,104,.2)}
.ga-ask--hero:focus-within{border-color:#e9c068;box-shadow:0 0 0 6px rgba(227,168,58,.2),0 30px 80px -30px rgba(0,0,0,.75)}

/* suggestion cards → dark royal glass */
.ga-card{background:linear-gradient(160deg,rgba(255,255,255,.085),rgba(255,255,255,.035));border-color:rgba(255,255,255,.13);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 20px 44px -30px rgba(0,0,0,.8)}
.ga-card span{color:#f1ece1}
.ga-card svg{color:var(--gold-l)}
.ga-card i{border-color:var(--gold-l)}
.ga-card:hover{border-color:rgba(233,192,104,.55);box-shadow:0 26px 54px -28px rgba(185,131,48,.5);background:linear-gradient(160deg,rgba(255,255,255,.12),rgba(255,255,255,.05))}

/* AF zone chips on the navy hero */
.gf-zchips a{background:rgba(16,25,34,.55);border-color:rgba(233,192,104,.28);color:#f1ece1;box-shadow:none}
.gf-zchips a:hover{border-color:#e9c068;background:rgba(16,25,34,.8)}
.gf-zchips span{background:rgba(255,255,255,.1);color:var(--gold-l)}
.gf-zchips i{color:var(--gold-l)}

/* ================================================================ TOP BAR */
.ga-top{padding-top:max(env(safe-area-inset-top,0px),6px)}
body[data-view=home] .ga-top{background:linear-gradient(180deg,rgba(10,16,22,.85),rgba(10,16,22,0))}
.ga-brand b{color:#f6f3ec}
.ga-brand small{color:#9fb0c1}
.ga-pill{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.16);color:#f1ece1;box-shadow:none}
.ga-pill svg{color:var(--gold-l)}
.ga-pill:hover{box-shadow:0 12px 26px -16px rgba(0,0,0,.65);border-color:rgba(233,192,104,.5)}
/* new centre nav (added markup, styled only here) */
.ga-top-links{display:flex;align-items:center;justify-content:center;gap:2px;flex:1;min-width:0;margin:0 14px;flex-wrap:wrap}
.ga-top-links a{padding:9px 14px;border-radius:999px;color:#cfd9e4;font-weight:600;font-size:.86rem;white-space:nowrap;transition:background .2s,color .2s}
.ga-top-links a:hover{color:#fff;background:rgba(255,255,255,.09)}
.ga-top-links a.is-here{color:#1a1204;background:var(--grad);box-shadow:var(--sh-gold)}
@media (max-width:1060px){.ga-top-links a{padding:8px 10px;font-size:.8rem}}
@media (max-width:900px){.ga-top-links{display:none}}

/* ================================================================ APP (chat · search activity · finder) */
.ga-app-bg{background:
  radial-gradient(900px 480px at 85% -120px,rgba(227,168,58,.16),transparent 60%),
  radial-gradient(700px 520px at -60px 108%,rgba(32,56,84,.8),transparent 62%),
  linear-gradient(180deg,#0e1820,#14202e 60%,#101a26)}
.ga-app-bg::after{background:repeating-linear-gradient(115deg,rgba(233,192,104,.04) 0 1px,transparent 1px 110px)}

/* sidebar → royal navy */
.ga-side .ga-nav{color:#e8ecf2}
.ga-side .ga-nav:hover{background:rgba(255,255,255,.08)}
.ga-side .ga-nav.is-on{background:var(--grad);color:#1a1204;font-weight:700;box-shadow:var(--sh-gold)}
.ga-side .ga-nav.is-on svg{color:#1a1204}
.ga-side .ga-nav svg{color:var(--gold-l)}
.ga-nav em{background:rgba(255,255,255,.1);color:var(--gold-l)}
.ga-nav.is-on em{background:rgba(0,0,0,.18);color:#1a1204}
.ga-side-h{color:var(--gold-l);text-transform:uppercase;font-size:.74rem;letter-spacing:.1em}
.ga-side-h svg{color:var(--gold-l)}
.ga-saved a{color:#b9c4cf}
.ga-saved li:hover{background:rgba(255,255,255,.07)}
.ga-saved li.is-on{background:rgba(255,255,255,.12);box-shadow:none}
.ga-saved li.is-on a{color:#fff}
.ga-saved button{color:#8fa0b1}
.ga-saved-empty{color:#8fa0b1}
.gf-zlist a{color:#b9c4cf}
.gf-zlist a:hover{background:rgba(255,255,255,.07)}
.gf-zlist a.is-on{background:rgba(255,255,255,.12);color:#fff;box-shadow:none}
.gf-zlist em{color:var(--gold-l)}
.ga-side-cta{background:rgba(255,255,255,.06);border-color:rgba(233,192,104,.4);color:#fff}
.ga-side-cta b{color:#fff}
.ga-side-cta span{color:#9fb0c1}
.ga-side-cta:hover{border-color:#e9c068;background:rgba(255,255,255,.1)}
/* mobile drawer */
@media (max-width:980px){
  .ga-side{background:#101c29;box-shadow:24px 0 70px -28px rgba(0,0,0,.85);border-right:1px solid rgba(233,192,104,.22)}
}

/* chat / panel surfaces: ivory card with a navy crown header */
.ga-chat,.ga-act{background:rgba(252,251,247,.97);border-color:rgba(16,25,34,.35);box-shadow:0 40px 90px -45px rgba(0,0,0,.85)}
.ga-chat-h,.gf-head{background:linear-gradient(135deg,#182636,#101a26);border-bottom:1px solid rgba(233,192,104,.45)}
.ga-ch-brand b{color:#f6f3ec}
.ga-ch-brand small{color:#9fb0c1}
.ga-chat-h .ga-ib,.gf-head .ga-ib{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.16);color:var(--gold-l)}
.ga-chat-h .ga-ib:hover,.gf-head .ga-ib:hover{background:rgba(233,192,104,.2);border-color:rgba(233,192,104,.5)}
.gf-head .gf-search{border-color:rgba(255,255,255,.2);background:rgba(255,255,255,.95)}
.gf-head select{border-color:rgba(255,255,255,.2)}
/* user bubbles → navy; bot stays ivory */
.ga-msg--user .ga-bub{background:linear-gradient(135deg,#1d2d40,#14202e);color:#f1ece1}
.ga-msg--user .ga-bub time{color:rgba(241,236,225,.55)}
.ga-msg--bot .ga-bub{border-color:#e7e2d6}
.ga-msg-me{background:var(--grad);color:#1a1204}
/* activity header inside the white panel keeps ink text — only the rule goes gold */
.ga-rule{background:linear-gradient(90deg,#e3a83a,#c9962b)}
.ga-act .ga-menu{background:#fff;border-color:#e7e2d6;color:#9a6c22}

/* ================================================================ small screens & tablets */
@media (max-width:980px){
  .ga-cards{gap:10px}
}
@media (max-aspect-ratio:4/5){
  /* the old photo layout reserved half the screen — the royal stage doesn't need it */
  .ga-home{align-items:center}
  .ga-home-bg{height:auto;bottom:0;background-size:auto;background-position:center}
  .ga-home-in{justify-content:center;min-height:100dvh;padding-top:calc(var(--top) + 16px)}
}
@media (max-width:640px){
  .ga-home-in::before{margin-bottom:12px}
  .ga-card{background:linear-gradient(160deg,rgba(255,255,255,.1),rgba(255,255,255,.05))}
  .gf-zchips{gap:6px}
  .gf-zchips a{padding:7px 11px;font-size:.8rem}
}
@media (max-width:380px){
  .ga-home h1{font-size:2rem}
  .ga-home-sub{font-size:.92rem}
  .gf-zchips a span{display:none}
}

/* =====================================================================
   ZONE FINDER (/zone-finder/) — royal plaque header + polish
   ===================================================================== */
.zf{background:
  radial-gradient(1000px 420px at 50% -140px,rgba(24,38,54,.12),transparent 60%),
  linear-gradient(180deg,#f3efe7 0,#f7f4ee 420px)}
.zf-head{max-width:860px;background:linear-gradient(150deg,#182636,#0f1922);border:1px solid rgba(233,192,104,.32);border-radius:26px;padding:40px 30px 34px;box-shadow:0 36px 80px -44px rgba(16,25,34,.9);position:relative;overflow:hidden}
.zf-head::before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,transparent,#e9c068 25%,#f6cf5a 50%,#e9c068 75%,transparent)}
.zf-head::after{content:"";position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(115deg,rgba(233,192,104,.05) 0 1px,transparent 1px 80px)}
.zf-head h1{color:#f6f3ec;position:relative;z-index:1}
.zf-head h1 em{color:#e9c068}
.zf-head p{color:#b9c4cf;position:relative;z-index:1}
.zf-kicker{background:rgba(255,255,255,.08);border-color:rgba(233,192,104,.4);color:#e9c068;position:relative;z-index:1}
.zf-card{border-radius:26px;box-shadow:0 30px 80px -40px rgba(16,25,34,.45);border-color:#e6dfd0}
.zf-card:before{background:linear-gradient(90deg,#c9962b,#f6cf5a,#c9962b)}
.zf-prog i.on{background:linear-gradient(90deg,#e3a83a,#c9962b)}
.zf-opt.is-sel{border-color:#c9962b;background:#fdf6e7;box-shadow:0 0 0 3px rgba(227,168,58,.25)}
.zf-btn{background:linear-gradient(135deg,#f6cf5a,#e3a83a 45%,#b97a1e);color:#1a1204;box-shadow:0 12px 26px -12px rgba(185,131,48,.75)}
.zf-btn.ghost{background:#fff;color:#1c1a16}
.zf-acts .go{background:#14202e}
.zf-pick.is-best{border-color:#c9962b;background:linear-gradient(180deg,#fdf8ec,#fff);box-shadow:0 24px 50px -34px rgba(185,131,48,.6)}
.zf-tag.best{background:linear-gradient(135deg,#e3a83a,#b97a1e);color:#fff}
.zf-trust div{border-radius:16px}
.zf-trust b{color:#14202e}
@media (max-width:600px){
  .zf-head{padding:30px 18px 26px;border-radius:22px}
  .zf-visas output{font-size:2rem;min-width:48px}
  .zf-visas button{width:42px;height:42px}
  .zf-res-head h2{font-size:1.55rem}
  .zf-btn{padding:12px 18px}
  .zf-nav{flex-wrap:wrap}
}
@media (max-width:380px){.zf-opts{grid-template-columns:1fr}.zf-opt{padding:12px 13px}}

/* =====================================================================
   GT.1.1 — all-device hardening: top bar never wraps/collides, centre
   nav steps aside before it fights the page's own pills, hero headline
   never rides under the fixed bar on short / landscape screens.
   ===================================================================== */
.ga-top{flex-wrap:nowrap;gap:10px}
.ga-brand{min-width:0;flex:0 1 auto}
.ga-brand span{min-width:0;overflow:hidden}
.ga-brand small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ga-top-r{flex:0 0 auto;flex-wrap:nowrap}
/* the centre nav is a desktop convenience — hide it before the row gets tight
   (Activity Finder carries two extra pills, so give it room) */
@media (max-width:1140px){.ga-top-links{display:none}}

/* home hero: on short or landscape screens keep the headline clear of the bar */
@media (max-height:640px) and (min-aspect-ratio:1/1){
  .ga-home{align-items:center}
  .ga-home-bg{height:auto;inset:0}
  .ga-home-in{min-height:0;justify-content:center;padding-top:calc(var(--top) + 18px);padding-bottom:18px}
  .ga-home h1{font-size:clamp(1.9rem,5vw,3rem)}
  .ga-home h1 span,.gf .ga-home h1 span{white-space:normal}
  .ga-home-in::before{margin-bottom:10px}
  .ga-cards{margin-top:14px}
}
/* phones in portrait: the page's own hamburger drawer drives nav (centre nav already hidden) */
@media (max-width:640px){
  .ga-top{gap:8px}
  .ga-brand img{width:42px}
  .gf-zchips{max-width:100%}
}

/* GT.1.2 — the home hero must never clip its headline under the fixed bar.
   The bar's height is reserved as border-box padding on the section itself,
   so flex-centring only happens in the space BELOW the bar; a tall column
   (e.g. Activity Finder's zone chips) can only grow downward into page
   scroll, never upward under the header. */
.ga-home{align-items:flex-start!important;min-height:100dvh;height:auto;overflow:visible;box-sizing:border-box;padding-top:calc(var(--top) + 18px);padding-bottom:26px;display:flex}
.ga-home-in{margin-top:auto;margin-bottom:auto}
.ga-home-in{padding-top:0!important;padding-bottom:0!important;min-height:0!important;justify-content:center!important}
.ga-home-bg{position:fixed}

/* =====================================================================
   GT.1.3 — view fixes found in the live audit
   ===================================================================== */
/* 1) Activity Finder search / zone / detail / saved views: the page gives
      the fixed bar a light blur there — our white brand text vanished.
      Make the bar royal navy glass in every non-home view instead. */
body.ga:not([data-view=home]) .ga-top{background:rgba(12,19,27,.92);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-bottom:1px solid rgba(233,192,104,.25)}
body.ga:not([data-view=home]) .ga-brand b{color:#f6f3ec}
body.ga:not([data-view=home]) .ga-brand small{color:#9fb0c1}

/* 2) GK AI relocates the top-bar contents (incl. our nav links) into the
      panel headers. In the navy chat header they read fine; in the WHITE
      "Search Activity" header the light links washed out and wrapped.
      Scope the colours to their surface and keep the row tidy. */
.ga-act-h .ga-top-links{flex:0 1 auto;justify-content:flex-end;gap:2px;margin:0 6px}
.ga-act-h .ga-top-links a{color:#4c5563;font-size:.8rem;padding:7px 10px}
.ga-act-h .ga-top-links a:hover{background:#f3efe6;color:#14202e}
.ga-act-h .ga-top-links a.is-here{color:#1a1204}
.ga-chat-h .ga-top-links{flex:0 1 auto;gap:2px;margin:0 6px}
.ga-chat-h .ga-top-links a{font-size:.8rem;padding:7px 10px}
@media (max-width:1280px){.ga-act-h .ga-top-links,.ga-chat-h .ga-top-links{display:none}}

/* 3) finder consistency: ink-black accents → royal navy */
.gf-types button.is-on{background:#14202e;border-color:#14202e}
.gf-more{border-color:#14202e;color:#14202e}
.gf-btn--dark{background:#14202e;border-color:#14202e}
.zf-acts .go:hover{background:#1d2d40}
