/* ==========================================================================
   Clean theme - CoreUpload (coreupload.com). Same reference system as the other uploader sites
   (modelled on gethostlogic.com): one type stack, one brand blue, flat white
   surfaces with hairline borders, no drop shadows, no gradients, plain-text
   menu. Imported LAST from refresh.css.
   ========================================================================== */

:root {
  --hl-font: "Google Sans", "Google Sans Text", Roboto, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --hl-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --hl-bg: #f8fafd;
  --hl-surface: #ffffff;
  --hl-tint: #f0f4f9;
  --hl-soft: #d3e3fd;
  --hl-border: #c4c7c5;
  --hl-line: #e1e3e1;
  --hl-ink: #1f1f1f;
  --hl-copy: #444746;
  --hl-muted: #5f6368;
  --hl-brand: #0b57d0;
  --hl-brand-hover: #0842a0;
  --hl-on-brand: #ffffff;
  --hl-radius: 8px;
  --hl-radius-card: 12px;

  /* refresh.css + site.css tokens -> reference */
  --site-brand: var(--hl-brand);
  --site-brand-deep: var(--hl-brand-hover);
  --site-brand-soft: var(--hl-soft);
  --site-brand-glow: transparent;
  --site-ink: var(--hl-ink);
  --site-ink-soft: var(--hl-copy);
  --site-muted: var(--hl-muted);
  --site-line: var(--hl-line);
  --site-line-soft: var(--hl-line);
  --site-bg: var(--hl-bg);
  --site-surface: var(--hl-surface);
  --site-violet: var(--hl-brand);
  --site-shadow-sm: none;
  --site-shadow-soft: none;
  --site-shadow: none;
  --site-shadow-lg: none;
}

/* ---------- base ---------------------------------------------------------- */
html, body, body.cu-site { background: var(--hl-bg) !important; }
body, body.cu-site {
  font-family: var(--hl-font) !important;
  font-size: 16px;
  line-height: 1.7;
  color: var(--hl-copy) !important;
  -webkit-font-smoothing: antialiased;
}
body *:not(code):not(pre):not(kbd):not(samp):not(.bi):not([class^="bi-"]):not([class*=" bi-"]):not(i) {
  font-family: var(--hl-font) !important;
}
code, kbd, pre, samp, .font-mono { font-family: var(--hl-mono) !important; }
:not(pre) > code { overflow-wrap: anywhere; }

h1, h2, h3, h4, h5, h6, .cu-site h1, .cu-site h2, .cu-site h3, .cu-site h4 {
  color: var(--hl-ink) !important;
  font-weight: 800 !important;
  letter-spacing: -0.035em !important;
}
h1, .cu-hero h1 {
  font-size: clamp(2.125rem, 1.4rem + 2.4vw, 2.88rem) !important;
  line-height: 1.12 !important;
}
.cu-section-heading h2, .cu-final h2, h2.text-3xl, h2.text-4xl, h2.sm\:text-4xl {
  font-size: clamp(1.5rem, 1.15rem + 1.2vw, 1.92rem) !important;
  line-height: 1.2 !important;
}
.cu-hero h1 em { color: var(--hl-brand) !important; font-style: normal; }
.cu-lead { color: var(--hl-copy) !important; font-size: 1.0625rem !important; line-height: 1.8 !important; }
.cu-hero-note, .cu-small, .cu-section-heading > p, .cu-feature p, .cu-resource-grid p,
.cu-highlights span, .cu-live-content > p, .cu-live-bar > span:last-child, .cu-package-hash,
.cu-footer-grid p, .cu-demo-tools p, .cu-resource-grid span { color: var(--hl-copy) !important; }
.cu-text-link, .cu-resource-grid b, .cu-site .text-primary { color: var(--hl-brand) !important; }
.cu-highlights strong, .cu-footer-grid nav strong { color: var(--hl-ink) !important; }

/* tailwind utilities the pages use for grey/navy text and tinted fills */
.text-slate-950, .text-slate-900, .text-slate-800 { color: var(--hl-ink) !important; }
.text-slate-700, .text-slate-600 { color: var(--hl-copy) !important; }
.text-slate-500, .text-slate-400 { color: var(--hl-muted) !important; }
.text-blue-600, .text-blue-700, .text-cyan-700, .text-teal-700, .text-indigo-600 { color: var(--hl-brand) !important; }
.bg-slate-50, .bg-slate-100 { background-color: var(--hl-tint) !important; }
.bg-blue-50, .bg-cyan-50, .bg-indigo-50, .bg-teal-50 { background-color: var(--hl-soft) !important; }

/* eyebrow */
.cu-eyebrow {
  color: var(--hl-brand) !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase;
}
.cu-eyebrow > span { background: var(--hl-brand) !important; }

/* ---------- no grey drop shadows, no gradients ---------------------------- */
.shadow, .shadow-sm, .shadow-md, .shadow-lg, .shadow-xl, .shadow-2xl,
.cu-live-card, .cu-feature:hover, .cu-nav, .cu-site .btn, .cu-site .demo-gallery-link,
.demo-card, .card, .code-panel, .surface-panel {
  box-shadow: none !important;
}
.cu-hero, [class*="bg-gradient"], [class*="bg-[linear-gradient"], [class*="bg-[radial-gradient"] {
  background-image: none !important;
}

/* ---------- header + menu --------------------------------------------------- */
.cu-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 250, 253, 0.94) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hl-border) !important;
}
.cu-brand, .cu-brand:hover { color: var(--hl-ink) !important; }
.cu-brand small { color: var(--hl-muted) !important; }
.cu-brand-icon { background: var(--hl-brand) !important; color: #fff !important; border-radius: 10px !important; }
.cu-nav .site-nav-link {
  color: var(--hl-copy) !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  padding: 8px 10px !important;
  border-radius: var(--hl-radius) !important;
  background: transparent !important;
}
.cu-nav .site-nav-link:hover { color: var(--hl-ink) !important; background: var(--hl-tint) !important; }
.cu-nav .site-nav-link.is-active { color: var(--hl-ink) !important; background: transparent !important; }
.cu-nav-download, .cu-nav .cu-nav-download {
  background: var(--hl-brand) !important;
  color: var(--hl-on-brand) !important;
  border-radius: var(--hl-radius) !important;
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  padding: 8px 17px !important;
}
.cu-nav-download:hover { background: var(--hl-brand-hover) !important; }
.cu-menu { border-color: var(--hl-border) !important; color: var(--hl-ink) !important; border-radius: var(--hl-radius) !important; }
.cu-nav { border-color: var(--hl-border) !important; }
@media (min-width: 1024px) { .cu-nav { background: transparent !important; border: 0 !important; } }

/* ---------- buttons -------------------------------------------------------- */
.cu-button, .cu-site .btn-primary, .btn-primary {
  background: var(--hl-brand) !important;
  border: 1px solid var(--hl-brand) !important;
  color: var(--hl-on-brand) !important;
  border-radius: var(--hl-radius) !important;
  font-weight: 700 !important;
  background-image: none !important;
}
.cu-button:hover, .cu-site .btn-primary:hover, .btn-primary:hover {
  background: var(--hl-brand-hover) !important;
  border-color: var(--hl-brand-hover) !important;
}
.cu-button-secondary, .btn-secondary, .btn-outline-primary, .btn-outline-secondary {
  background: var(--hl-surface) !important;
  border: 1px solid var(--hl-border) !important;
  color: var(--hl-ink) !important;
  border-radius: var(--hl-radius) !important;
  font-weight: 700 !important;
}
.cu-button-secondary:hover, .btn-secondary:hover, .btn-outline-primary:hover, .btn-outline-secondary:hover {
  background: var(--hl-tint) !important;
  color: var(--hl-ink) !important;
}
a:focus-visible, button:focus-visible { outline: 2px solid var(--hl-brand) !important; outline-offset: 2px; }

/* ---------- surfaces ------------------------------------------------------- */
.cu-feature, .cu-live-card, .cu-demo-link, .demo-card, .card, .surface-panel {
  background: var(--hl-surface) !important;
  border: 1px solid var(--hl-border) !important;
  border-radius: var(--hl-radius-card) !important;
}
.cu-feature:hover, .cu-demo-link:hover { border-color: var(--hl-brand) !important; background: var(--hl-surface) !important; }
.cu-feature-icon, .cu-site .demo-gallery-num { background: var(--hl-soft) !important; color: var(--hl-brand) !important; }
.cu-live-bar, .cu-live-foot { border-color: var(--hl-line) !important; }
.cu-live-foot { background: var(--hl-bg) !important; color: var(--hl-copy) !important; }
.cu-live-dot { background: var(--hl-brand) !important; }
.cu-highlights, .cu-resource-grid > a { border-color: var(--hl-line) !important; }
.cu-section-tint { background: var(--hl-bg) !important; }
.cu-demo-link { color: var(--hl-copy) !important; }
.cu-demo-link span:last-child { color: var(--hl-muted) !important; }

/* hero: flat page colour */
.cu-hero {
  background: var(--hl-bg) !important;
  border-bottom: 1px solid var(--hl-line) !important;
}

/* code sample: neutral dark, not navy */
.cu-code { background: #1f1f1f !important; color: #e3e3e3 !important; border-radius: var(--hl-radius-card) !important; }
.cu-code > div { color: #9aa0a6 !important; }
.cu-code > a { color: #a8c7fa !important; }

/* closing band: light and bordered, like the reference - not navy */
.cu-final {
  background: var(--hl-surface) !important;
  border: 1px solid var(--hl-border) !important;
  border-radius: var(--hl-radius-card) !important;
  color: var(--hl-copy) !important;
}
.cu-final h2 { color: var(--hl-ink) !important; }
.cu-final p, .cu-final .cu-eyebrow { color: var(--hl-copy) !important; }
.cu-final .cu-eyebrow { color: var(--hl-brand) !important; }

/* demo library tools */
.cu-demo-tools { background: var(--hl-surface) !important; border-color: var(--hl-border) !important; border-radius: var(--hl-radius-card) !important; }
.cu-demo-tools label { color: var(--hl-copy) !important; }
.cu-demo-tools input, .cu-demo-tools select { border-color: var(--hl-border) !important; border-radius: var(--hl-radius) !important; color: var(--hl-ink) !important; }

/* ---------- footer ---------------------------------------------------------- */
.cu-footer { background: var(--hl-bg) !important; border-top: 1px solid var(--hl-border) !important; color: var(--hl-copy) !important; }
.cu-footer a { color: var(--hl-copy) !important; }
.cu-footer a:hover { color: var(--hl-brand) !important; }
.cu-footer-bottom { border-top-color: var(--hl-line) !important; color: var(--hl-muted) !important; }

/* ---------- demo pages -------------------------------------------------------- */
/* demo titles are page headings, not hero headlines */
h1.demo-card-header, .demo-card h1 { font-size: clamp(1.625rem, 1.3rem + 1vw, 2rem) !important; line-height: 1.2 !important; }
/* code samples: neutral dark, not navy */
.code-panel, .code-panel pre, pre.code { background: #1f1f1f !important; color: #e3e3e3 !important; border-radius: var(--hl-radius-card) !important; border: 0 !important; }
.code-panel *:not(code) { border-color: rgba(255,255,255,.08) !important; }
.mu-demo-code-bar, .cu-demo-code-bar, [class*="demo-code-bar"], .pkg-code, .pkg-code pre, .mu-demo-code, .cu-demo-code {
  background: #1f1f1f !important; border-color: rgba(255,255,255,.08) !important;
}
