/* ============================================================
   AILatest Grant · 2026 visual refresh ("Ink & Signal")
   Loaded LAST on the landing pages (china.html / global.html /
   global-* / notices / reports / topics / nssf-2026). Pure visual
   layer: no layout-affecting changes to SPA views, data tables or
   drawers beyond spacing/colour/typography. Remove the <link> to
   roll back instantly.
   ============================================================ */
:root{
  --t-ink:#0b1430; --t-ink-2:#334263; --t-ink-3:#6a7693;
  --t-blue:#2f5bff; --t-blue-d:#1d43d6; --t-cyan:#22c3ee; --t-violet:#7c5cff;
  --t-line:#e6eaf3; --t-page:#f5f7fb; --t-card:#fff;
  --t-radius:16px; --t-radius-sm:11px;
  --t-shadow:0 1px 2px rgba(11,20,48,.04),0 6px 24px rgba(11,20,48,.06);
  --t-shadow-hover:0 2px 6px rgba(11,20,48,.06),0 18px 44px rgba(31,64,180,.14);
  --t-font:"Inter","SF Pro Text",-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Noto Sans SC","Microsoft YaHei",sans-serif;
}
.grant-saas{
  --gs-ink:var(--t-ink); --gs-ink-2:var(--t-ink-2); --gs-ink-3:var(--t-ink-3);
  --gs-blue:var(--t-blue); --gs-blue-d:var(--t-blue-d); --gs-blue-bg:#eef2ff; --gs-blue-bg-2:#e0e8ff;
  --gs-line:var(--t-line); --gs-page:var(--t-page); --gs-radius:var(--t-radius);
  --gs-shadow:var(--t-shadow); --gs-shadow-lg:var(--t-shadow-hover);
  font-family:var(--t-font);
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
body.grant-saas.grant-redesign{background:var(--t-page) !important}
html body.grant-saas .wrap{max-width:1180px}
::selection{background:rgba(47,91,255,.18)}

/* ---------- top nav: glass bar, never clips ---------- */
html body.grant-saas .gs-nav{background:rgba(255,255,255,.78);backdrop-filter:saturate(180%) blur(18px);-webkit-backdrop-filter:saturate(180%) blur(18px);border-bottom:1px solid rgba(11,20,48,.07)}
html body.grant-saas .nav-in{height:64px;gap:14px}
html body.grant-saas .brand .txt b{font-size:17px;letter-spacing:-.025em}
html body.grant-saas .brand .txt b .brand-grant{background:linear-gradient(90deg,var(--t-blue),var(--t-violet));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
html body.grant-saas .brand::before{content:"";width:28px;height:28px;border-radius:9px;flex:none;background:conic-gradient(from 210deg,var(--t-blue),var(--t-violet),var(--t-cyan),var(--t-blue));box-shadow:0 4px 12px rgba(47,91,255,.35),inset 0 0 0 5px rgba(255,255,255,.9)}
html body.grant-saas .nav-links{gap:0;overflow:hidden;mask-image:linear-gradient(90deg,#000 92%,transparent);-webkit-mask-image:linear-gradient(90deg,#000 92%,transparent)}
html body.grant-saas .nav-links a{font-size:13.5px;font-weight:560;padding:8px 11px;border-radius:9px;color:var(--t-ink-2)}
html body.grant-saas .nav-links a:hover{background:rgba(47,91,255,.07);color:var(--t-blue)}
html body.grant-saas .nav-links a.is-new::after{content:"NEW";margin-left:5px;font-size:9.5px;font-weight:800;letter-spacing:.04em;color:#fff;background:linear-gradient(90deg,#ff5d5d,#ff8a3d);border-radius:5px;padding:1px 4px;vertical-align:2px}
html body.grant-saas .nav-right{gap:8px}
html body.grant-saas .site-switch{border-radius:99px;border-color:var(--t-line);font-weight:600}
html body.grant-saas .gs-btn{border-radius:10px;font-weight:650}
html body.grant-saas .gs-btn.solid{background:linear-gradient(180deg,#3a66ff,var(--t-blue));box-shadow:0 1px 0 rgba(255,255,255,.25) inset,0 6px 16px rgba(47,91,255,.28)}
html body.grant-saas .gs-btn.solid:hover{background:linear-gradient(180deg,var(--t-blue),var(--t-blue-d))}
html body.grant-saas .gs-btn.ghost{border-color:var(--t-line)}
/* tools menu injected by ailatest-tools-nav.js */
.ail-tools a.ail-studio,.ail-tools summary{border-color:var(--t-line) !important}
@media (max-width:1320px){html body.grant-saas .nav-links a[data-nav-optional]{display:none}}
@media (max-width:1180px){.ail-tools .ail-label-long{display:none}}
/* language pill */
html body.grant-saas .t-lang{display:inline-flex;align-items:center;border:1px solid var(--t-line);border-radius:99px;padding:2px;background:#fff;flex:none}
html body.grant-saas .t-lang a{font-size:12px;font-weight:700;color:var(--t-ink-3);padding:4px 9px;border-radius:99px;line-height:1.2;cursor:pointer}
html body.grant-saas .t-lang a[aria-current="true"]{background:var(--t-ink);color:#fff}
html body.grant-saas .t-lang a:not([aria-current="true"]):hover{color:var(--t-blue)}
/* mobile menu */
html body.grant-saas .t-burger{display:none;width:38px;height:38px;border-radius:10px;border:1px solid var(--t-line);background:#fff;align-items:center;justify-content:center;cursor:pointer;flex:none;padding:0}
html body.grant-saas .t-burger span,html body.grant-saas .t-burger span::before,html body.grant-saas .t-burger span::after{display:block;width:16px;height:1.8px;background:var(--t-ink);border-radius:2px;position:relative;content:""}
html body.grant-saas .t-burger span::before{position:absolute;top:-5px}
html body.grant-saas .t-burger span::after{position:absolute;top:5px}
@media (max-width:1020px){
  html body.grant-saas .t-burger{display:inline-flex}
  html body.grant-saas .gs-nav.t-open .nav-links{display:flex !important;flex-direction:column;position:absolute;left:0;right:0;top:64px;background:#fff;border-bottom:1px solid var(--t-line);box-shadow:0 18px 40px rgba(11,20,48,.12);padding:10px 18px 16px;mask-image:none;-webkit-mask-image:none}
  html body.grant-saas .gs-nav.t-open .nav-links a{padding:12px 10px;font-size:15px;border-bottom:1px solid #f0f2f7;border-radius:0;display:block !important}
}
@media (max-width:640px){
  html body.grant-saas .nav-in{gap:8px}
  html body.grant-saas .site-switch{display:none}
  html body.grant-saas .nav-right .gs-btn.solid{display:none}
  .ail-tools details{display:none}
}

/* ---------- hero: deep ink with signal glow ---------- */
html body.grant-saas .gs-hero{position:relative;isolation:isolate;color:#fff;
  background:
    radial-gradient(900px 480px at 82% 18%,rgba(124,92,255,.38),transparent 60%),
    radial-gradient(760px 420px at 8% 110%,rgba(34,195,238,.22),transparent 62%),
    radial-gradient(600px 380px at 55% -10%,rgba(47,91,255,.45),transparent 65%),
    linear-gradient(180deg,#070d22 0%,#0b1636 60%,#0d1a40 100%)}
html body.grant-saas .gs-hero::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background-image:linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px);
  background-size:44px 44px;mask-image:radial-gradient(ellipse 80% 70% at 50% 40%,#000 30%,transparent 80%);-webkit-mask-image:radial-gradient(ellipse 80% 70% at 50% 40%,#000 30%,transparent 80%)}
html body.grant-saas .gs-hero::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:70px;z-index:-1;background:linear-gradient(180deg,transparent,rgba(245,247,251,.0))}
html body.grant-saas .gs-hero-in{padding-top:84px;padding-bottom:88px;grid-template-columns:minmax(0,1fr)}
html body.grant-saas .gs-hero h1{color:#fff;font-size:56px;line-height:1.08;letter-spacing:-.035em;font-weight:800;text-wrap:balance}
html:lang(zh-CN) body.grant-saas .gs-hero h1{letter-spacing:-.01em}
html body.grant-saas .gs-hero h1 .grad{background:linear-gradient(92deg,#8fb0ff 0%,#6ee7ff 55%,#c4b5ff 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
html body.grant-saas .hero-sub{color:rgba(220,229,255,.78);font-size:17.5px;max-width:520px;margin-top:20px}
html body.grant-saas .t-hero-eyebrow{display:inline-flex;align-items:center;gap:8px;margin-bottom:22px;padding:6px 12px 6px 6px;border-radius:99px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);color:#dbe4ff;font-size:12.5px;font-weight:600;text-decoration:none;backdrop-filter:blur(8px);transition:.2s}
html body.grant-saas .t-hero-eyebrow:hover{background:rgba(255,255,255,.14);color:#fff}
html body.grant-saas .t-hero-eyebrow b{background:linear-gradient(90deg,#ff6b6b,#ff9f43);color:#fff;font-size:10.5px;letter-spacing:.04em;border-radius:99px;padding:3px 8px;font-weight:800}
html body.grant-saas .t-hero-eyebrow i{font-style:normal;opacity:.7}
html body.grant-saas .gs-searchbar{max-width:600px;margin-top:30px;border:1px solid rgba(255,255,255,.6);border-radius:18px;padding:12px 12px 12px 14px;box-shadow:0 0 0 6px rgba(255,255,255,.06),0 24px 60px rgba(0,0,0,.35)}
html body.grant-saas .gs-searchbar #q{font-size:15.5px}
html body.grant-saas .gs-searchbar .bar-tools .gs-btn{border-radius:12px;padding:10px 24px}
html body.grant-saas .t-hero-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px;align-items:center}
html body.grant-saas .t-hero-chips small{color:rgba(220,229,255,.6);font-size:12px;margin-right:2px}
html body.grant-saas .t-hero-chips button{appearance:none;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.06);color:#e6ecff;font-size:12.5px;font-weight:550;border-radius:99px;padding:5px 12px;cursor:pointer;transition:.15s}
html body.grant-saas .t-hero-chips button:hover{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.3)}
html body.grant-saas .gs-hero .ai-scope-panel{color:var(--t-ink)}
html body.grant-saas .t-hero-stats{display:flex;gap:28px;margin-top:34px;flex-wrap:wrap}
html body.grant-saas .t-hero-stats div{display:flex;flex-direction:column}
html body.grant-saas .t-hero-stats b{font-size:24px;font-weight:800;letter-spacing:-.02em;color:#fff;font-variant-numeric:tabular-nums}
html body.grant-saas .t-hero-stats small{font-size:12px;color:rgba(220,229,255,.62);margin-top:2px}

/* ---------- sections ---------- */
html body.grant-saas #home-view > section{padding-top:76px}
html body.grant-saas #home-view h2{font-size:30px;letter-spacing:-.025em}
html body.grant-saas .gs-sec-head{align-items:flex-end;margin-bottom:24px}
html body.grant-saas .gs-sec-head .more{border-radius:99px;padding:7px 14px;background:#fff;border:1px solid var(--t-line);text-decoration:none !important;transition:.15s}
html body.grant-saas .gs-sec-head .more:hover{border-color:var(--t-blue)}
html body.grant-saas .t-eyebrow{display:block;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--t-blue);margin-bottom:8px}

/* feature cards: float over hero edge */
html body.grant-saas #features{padding-top:0 !important;position:relative;z-index:2}
html body.grant-saas .feats{margin-top:-44px;gap:14px}
html body.grant-saas .feat{border-radius:var(--t-radius);border-color:rgba(11,20,48,.06);box-shadow:var(--t-shadow);padding:24px 22px 20px;position:relative;overflow:hidden}
html body.grant-saas .feat::before{content:"";position:absolute;left:0;top:0;right:0;height:3px;background:linear-gradient(90deg,var(--t-blue),var(--t-violet),var(--t-cyan));opacity:0;transition:.2s}
html body.grant-saas .feat:hover{transform:translateY(-4px);box-shadow:var(--t-shadow-hover);border-color:rgba(47,91,255,.18)}
html body.grant-saas .feat:hover::before{opacity:1}
html body.grant-saas .feat b{font-size:16px;letter-spacing:-.01em}
html body.grant-saas .feat p{font-size:13.2px;line-height:1.65}
html body.grant-saas .feat .go{font-weight:700}

/* agencies */
html body.grant-saas .agencies{gap:12px}
html body.grant-saas .agency{border-radius:var(--t-radius);border-color:rgba(11,20,48,.06);box-shadow:0 1px 2px rgba(11,20,48,.03);padding:22px 10px 18px}
html body.grant-saas .agency:hover{transform:translateY(-4px);box-shadow:var(--t-shadow-hover);border-color:rgba(47,91,255,.2)}
html body.grant-saas .agency .logo{width:50px;height:50px;border-radius:15px;box-shadow:0 6px 16px rgba(11,20,48,.14),inset 0 0 0 1px rgba(255,255,255,.18)}
html body.grant-saas .agency .logo.flag{border-radius:50%;box-shadow:none}
html body.grant-saas .agency .live.num{background:linear-gradient(180deg,#eafaf3,#dcf5ea);color:#0b8a5c}

/* NSSF 2026 spotlight (china.html) */
html body.grant-saas .t-spot{margin-top:28px;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:0;border-radius:20px;overflow:hidden;background:#fff;border:1px solid rgba(11,20,48,.06);box-shadow:var(--t-shadow)}
html body.grant-saas .t-spot-main{padding:28px 30px;background:radial-gradient(500px 220px at 0% 0%,rgba(160,48,40,.08),transparent 70%),#fff}
html body.grant-saas .t-spot-main .tag{display:inline-flex;gap:6px;align-items:center;font-size:12px;font-weight:700;color:#a03028;background:#fdf0ee;border-radius:99px;padding:4px 10px}
html body.grant-saas .t-spot-main h3{margin:14px 0 8px;font-size:23px;line-height:1.3;letter-spacing:-.015em;color:var(--t-ink);border:0}
html body.grant-saas .t-spot-main p{margin:0;color:var(--t-ink-3);font-size:13.5px;line-height:1.7}
html body.grant-saas .t-spot-main .acts{display:flex;gap:10px;margin-top:18px;flex-wrap:wrap}
html body.grant-saas .t-spot-main .acts a{display:inline-flex;align-items:center;gap:6px;font-size:13.5px;font-weight:700;border-radius:11px;padding:9px 16px}
html body.grant-saas .t-spot-main .acts a.pri{background:var(--t-ink);color:#fff}
html body.grant-saas .t-spot-main .acts a.pri:hover{background:#1b2856}
html body.grant-saas .t-spot-main .acts a.sec{border:1px solid var(--t-line);color:var(--t-ink)}
html body.grant-saas .t-spot-main .acts a.sec:hover{border-color:var(--t-blue);color:var(--t-blue)}
html body.grant-saas .t-spot-nums{display:grid;grid-template-columns:1fr 1fr;background:linear-gradient(160deg,#0b1636,#1a2a66);color:#fff}
html body.grant-saas .t-spot-nums div{padding:20px 22px;border-left:1px solid rgba(255,255,255,.08);border-top:1px solid rgba(255,255,255,.08);display:flex;flex-direction:column;justify-content:center}
html body.grant-saas .t-spot-nums b{font-size:28px;font-weight:800;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
html body.grant-saas .t-spot-nums small{font-size:12px;color:rgba(220,229,255,.7);margin-top:2px}
@media (max-width:860px){html body.grant-saas .t-spot{grid-template-columns:1fr}}

/* recommend panel / hot list / table */
html body.grant-saas .rec-panel{border-radius:20px !important;border-color:rgba(11,20,48,.06) !important;box-shadow:var(--t-shadow) !important}
html body.grant-saas .table-card{border-radius:18px;border-color:rgba(11,20,48,.06)}
html body.grant-saas .table-card thead th{background:#f7f9fd;letter-spacing:.06em}
html body.grant-saas #projects .row-link:hover{background:#f4f7ff}
html body.grant-saas .grant-hot-list{border-radius:18px}

/* pricing */
html body.grant-saas .plan{border-radius:20px;border-color:rgba(11,20,48,.07)}
html body.grant-saas .plan.pop{box-shadow:0 0 0 2px var(--t-blue),var(--t-shadow-hover)}

/* footer */
html body.grant-saas .gs-footer{background:#0b1430;border-top:0;color:#aab4d0;margin-top:96px}
html body.grant-saas .foot-in{color:#aab4d0;padding-top:34px;padding-bottom:34px}
html body.grant-saas .foot-in a{color:#cfd7ee}
html body.grant-saas .foot-in a:hover{color:#fff}

/* inner SPA views: keep layout, refresh surfaces */
body.grant-saas #entry-view,body.grant-saas #results{max-width:1180px;width:min(1180px,100%)}
html body.grant-saas .back-btn{border-radius:10px}

@media (max-width:1020px){
  html body.grant-saas .gs-hero-in{padding-top:56px;padding-bottom:76px;grid-template-columns:1fr}
  html body.grant-saas .gs-hero h1{font-size:42px}
}
@media (max-width:640px){
  html body.grant-saas .wrap{padding:0 18px}
  html body.grant-saas .gs-hero-in{padding-top:40px;padding-bottom:64px}
  html body.grant-saas .gs-hero h1{font-size:33px}
  html body.grant-saas .hero-sub{font-size:15.5px}
  html body.grant-saas #home-view h2{font-size:24px}
  html body.grant-saas .agencies{grid-template-columns:repeat(2,1fr) !important}
  html body.grant-saas .t-hero-stats{gap:18px}
  html body.grant-saas .t-spot-main{padding:22px 20px}
}
@media (prefers-reduced-motion:reduce){html body.grant-saas *{transition:none !important}}

/* ---------- standalone content pages (notices/reports/topics/nssf) ---------- */
.t-page{font-family:var(--t-font);color:var(--t-ink);-webkit-font-smoothing:antialiased}

/* ============================================================
   2026-10-11 polish pass (cloud deploy)
   ============================================================ */
/* hero title: break only at the phrase boundary */
@media (min-width:641px){html body.grant-saas .gs-hero h1 .t-nb{white-space:nowrap}}
html:lang(en) body.grant-saas .gs-hero h1{font-size:50px}
@media (max-width:1020px){html:lang(en) body.grant-saas .gs-hero h1{font-size:40px}}
@media (max-width:640px){html:lang(en) body.grant-saas .gs-hero h1{font-size:32px}}
/* search icon: hero sets color:#fff, the bar is white → icon was invisible */
html body.grant-saas .gs-hero .gs-searchbar{color:var(--t-ink)}
html body.grant-saas .gs-searchbar svg.mag{color:var(--t-blue);opacity:.8;margin-left:4px}
/* nav: wider bar so links never clip; NEW badge never cut */
html body.grant-saas .gs-nav .wrap.nav-in{max-width:1320px}
html body.grant-saas .nav-links{min-width:0;flex:1 1 auto;mask-image:none;-webkit-mask-image:none}
html body.grant-saas .nav-links a{white-space:nowrap;flex:none}
html body.grant-saas .nav-links a.is-new{display:inline-flex;align-items:center}
html body.grant-saas .nav-links a.is-new::after{vertical-align:0;line-height:1.35;flex:none}
@media (max-width:1500px){html body.grant-saas .nav-links a[data-nav-optional]{display:none}}
@media (max-width:1400px){html body.grant-saas .nav-links a{padding:8px 8px;font-size:13px}html body.grant-saas .nav-right{gap:6px}}
@media (max-width:1280px){html body.grant-saas .nav-links a[href="/notices.html"]{display:none}}
html body.grant-saas .nav-links a.t-mobile-only{display:none}
@media (max-width:1020px){html body.grant-saas .gs-nav.t-open .nav-links a.t-mobile-only{display:block !important}html body.grant-saas .gs-nav.t-open .nav-links a[href="/notices.html"]{display:block !important}}
@media (max-width:640px){
  html body.grant-saas .nav-in{height:58px}
  html body.grant-saas .brand .txt b{font-size:15.5px}
  html body.grant-saas .brand::before{width:24px;height:24px;border-radius:8px}
  html body.grant-saas .ail-tools{display:none !important}
  html body.grant-saas .nav-right .gs-btn.ghost{padding:7px 11px;font-size:13px}
  html body.grant-saas .t-lang a{padding:4px 7px}
  html body.grant-saas .gs-nav.t-open .nav-links{top:58px}
}
@media (max-width:380px){html body.grant-saas .brand .txt b{font-size:14.5px}}
@media (max-width:640px){html body.grant-saas .t-hero-stats{display:grid;grid-template-columns:auto auto auto;gap:14px}html body.grant-saas .t-hero-stats b{font-size:18px}html body.grant-saas .t-hero-stats small{font-size:11px}}

/* ============================================================
   2026-10-12 hero: decorative globe removed; hero ends at the stats row
   ============================================================ */
html body.grant-saas .globe-zone,html body.grant-saas .gs-globe-badge{display:none !important}
html body.grant-saas .gs-hero-in{display:block;grid-template-columns:minmax(0,1fr);min-height:0;padding-top:76px;padding-bottom:84px}
html body.grant-saas .gs-hero-in > div:first-child{max-width:760px}
html body.grant-saas .t-hero-stats{margin-bottom:0}
@media (max-width:1020px){html body.grant-saas .gs-hero-in{padding-top:52px;padding-bottom:76px}}
@media (max-width:640px){html body.grant-saas .gs-hero-in{padding-top:36px;padding-bottom:70px}}
