/* ==========================================================================
   pretty.css — visual refresh layer (loaded after brand.css/pages.css).
   Aurora backdrop, gradient-border glass cards, bento stats, section marks.
   CSP-safe: no inline styles; all motion respects prefers-reduced-motion.
   ========================================================================== */
body { position: relative; isolation: isolate; }
body::before {
  content: ""; position: fixed; inset: -20vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38vmax 30vmax at 82% 8%,  rgba(var(--blue-rgb), .20), transparent 62%),
    radial-gradient(34vmax 28vmax at 12% 38%, rgba(var(--tq-rgb), .12), transparent 62%),
    radial-gradient(30vmax 26vmax at 70% 88%, rgba(var(--gold-rgb), .10), transparent 62%);
  animation: aurora 38s ease-in-out infinite alternate;
}
@keyframes aurora { to { transform: translate3d(-3vmax, 2vmax, 0) rotate(4deg) scale(1.06); } }

/* gradient-border glass */
.cm-panel {
  border: 1px solid transparent;
  background:
    linear-gradient(160deg, rgba(10, 52, 96, .92), rgba(5, 30, 58, .92)) padding-box,
    linear-gradient(140deg, rgba(var(--blue-rgb), .55), rgba(var(--gold-rgb), .22) 45%, rgba(var(--tq-rgb), .45)) border-box;
  backdrop-filter: blur(10px);
}
.cm-panel--hover { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.cm-panel--hover:hover { transform: translateY(-5px); box-shadow: 0 22px 56px rgba(0,0,0,.34), 0 0 34px rgba(var(--blue-rgb), .28); }

/* hero */
.page-hero { padding: 76px 20px 44px; }
.page-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--blue-rgb), .6), rgba(var(--gold-rgb), .6), transparent); }
.page-hero h1 { background: linear-gradient(100deg, #fff 10%, #bfe9ff 45%, var(--gold) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero .cm-grid-bg { opacity: .55; mask-image: radial-gradient(70% 90% at 50% 0%, #000, transparent); -webkit-mask-image: radial-gradient(70% 90% at 50% 0%, #000, transparent); }

/* section titles */
.section__head h2::after { content: ""; display: block; width: 54px; height: 3px; margin: 10px auto 0; border-radius: 3px; background: linear-gradient(90deg, var(--blue), var(--gold)); }
.section { padding-block: 64px 8px; }

/* stat bento */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 0 auto 26px; max-width: 900px; }
.stat { padding: 16px 18px; text-align: center; }
.stat b { display: block; font-size: 1.9rem; font-weight: 800; line-height: 1.2; background: linear-gradient(120deg, var(--blue), var(--tq)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: .84rem; }

/* tools: search box, chips row, toolbar */
.searchbar { position: relative; max-width: 680px; margin: 0 auto; }
.searchbar input { width: 100%; padding: 15px 18px; padding-inline-end: 52px; font-size: 1.02rem; border-radius: 16px; border: 1px solid var(--line);
  background: rgba(2, 14, 28, .78); color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s; }
.searchbar input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(var(--blue-rgb), .18), var(--glow-blue); }
.searchbar svg { position: absolute; inset-inline-end: 16px; top: 50%; width: 22px; height: 22px; margin-top: -11px; color: var(--blue); pointer-events: none; }
.hdr-search { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); transition: all .25s; }
.hdr-search:hover { color: var(--text); border-color: var(--blue); box-shadow: var(--glow-blue); }
.hdr-search svg { width: 18px; height: 18px; }

/* reveal stagger for card grids */
.cards > li { animation: rise .6s var(--ease) both; }
.cards > li:nth-child(2) { animation-delay: .05s } .cards > li:nth-child(3) { animation-delay: .1s }
.cards > li:nth-child(4) { animation-delay: .15s } .cards > li:nth-child(5) { animation-delay: .2s } .cards > li:nth-child(n+6) { animation-delay: .25s }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

@media (prefers-reduced-motion: reduce) {
  body::before, .cards > li { animation: none !important; }
  .cm-panel--hover:hover { transform: none; }
}

.pane .searchbar { width: 100%; max-width: none; }

/* tap targets (>=32px) */
.cs-footer a{display:inline-block;padding:8px 6px;min-height:32px;line-height:1.4}
.cs-footer__in div a{padding:8px 6px}
.cm-btn--sm{min-height:36px}
.card__link{display:inline-flex;align-items:center;min-height:36px;padding:0 6px}
.site-footer .ftr a{display:inline-block;padding:8px 6px;min-height:32px;line-height:1.4}
