﻿/* ============================================================
   The.Report - Vanilla CSS (replaces Tailwind CDN)
   Implements every utility class used in the PHP templates.
   ============================================================ */

/* --- Design tokens (single light theme; no theme toggle is wired up) --- */
:root, [data-theme="dark"] {
  --background: 273.3 4.1% 93.1%;   /* #EEE9F2 */
  --foreground: 240, 29.41%, 10%;   /* #121221 */
  --card: 0 0% 100%;                /* #FFFFFF */
  --card-foreground: 240, 29.41%, 10%;
  --primary: 271, 24.58%, 53.73%;   /* #8A6CA6 — links */
  --primary-foreground: 0 0% 100%;
  --accent-brand: 241.2 30.95% 32.94%; /* #3B3A6E — buttons */
  --secondary: 273.3 4.1% 93.1%;    /* #EEE9F2 */
  --secondary-foreground: 240, 29.41%, 10%;
  --muted: 273.3 4.1% 93.1%;        /* #EEE9F2 */
  --muted-foreground: 241 15% 46%;
  --accent: 270 24.6% 90%;         /* tint of #C6B8D4 */
  --accent-foreground: 240, 29.41%, 10%;
  --border: 270 15% 75%;           /* tint of #C6B8D4 */
  --ring: 271, 24.58%, 53.73%;
  --tag-bg: 270 30% 92%;           /* tint of #C6B8D4 */
  --tag-text: 241.2 30.95% 32.94%; /* #3B3A6E */
  --success: 128 52% 36%;          /* #2C8B39 */
  --surface-sunken: 270 12% 91%;
  --nav-bg: 0 0% 100%;             /* #FFFFFF — header */
}

/* --- Light mode tokens --- */
[data-theme="light"] {
  --background: 273.3 4.1% 93.1%;   /* #EEE9F2 */
  --foreground: 240, 29.41%, 10%;   /* #121221 */
  --card: 0 0% 100%;                /* #FFFFFF */
  --card-foreground: 240, 29.41%, 10%;
  --primary: 271, 24.58%, 53.73%;   /* #8A6CA6 — links */
  --primary-foreground: 0 0% 100%;
  --accent-brand: 241.2 30.95% 32.94%; /* #3B3A6E — buttons */
  --secondary: 273.3 4.1% 93.1%;    /* #EEE9F2 */
  --secondary-foreground: 240, 29.41%, 10%;
  --muted: 273.3 4.1% 93.1%;        /* #EEE9F2 */
  --muted-foreground: 241 15% 46%;
  --accent: 270 24.6% 90%;         /* tint of #C6B8D4 */
  --accent-foreground: 240, 29.41%, 10%;
  --border: 270 15% 75%;           /* tint of #C6B8D4 */
  --ring: 271, 24.58%, 53.73%;
  --tag-bg: 270 30% 92%;           /* tint of #C6B8D4 */
  --tag-text: 241.2 30.95% 32.94%; /* #3B3A6E */
  --success: 128 52% 36%;          /* #2C8B39 */
  --surface-sunken: 270 12% 91%;
  --nav-bg: 0 0% 100%;             /* #FFFFFF — header */
}

/* Smooth theme switch */
html { color-scheme: light dark; }
body, .bg-card, .nav-bar, .features-section { transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease; }

/* Themed surfaces */
.nav-bar { background-color: hsl(var(--nav-bg)); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.features-section { background-color: hsl(var(--surface-sunken)); }

/* Footer stays pinned to the brand navy regardless of the page background. */
.site-footer { background-color: #121221; color: #ffffff; border-top-color: rgba(255,255,255,0.12); }
.site-footer a,
.site-footer .text-muted-foreground { color: #ffffff; opacity: .8; }
.site-footer a:hover { opacity: 1; }

/* Logo inverts in dark mode */
[data-theme="dark"] .logo-img { filter: brightness(0) invert(1); }
/* Client logos (often dark wordmarks) lighten in dark mode */
[data-theme="dark"] .client-logo { filter: brightness(0) invert(1) opacity(0.92); }

/* Hero background — radial brand-blue glow */
.hero-section { background: hsl(var(--background)); }

/* Theme toggle button */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 0.375rem;
  color: hsl(var(--foreground)); background: transparent; border: 0;
  cursor: pointer; padding: 0;
}
.theme-toggle:hover { background-color: hsl(var(--accent)); }
.theme-toggle svg { width: 1rem; height: 1rem; }
[data-theme="light"] .theme-toggle .theme-icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .theme-icon-sun { display: none; }

/* Hero background decorations (radial brand-blue glow) */
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(800px 400px at 20% 10%, hsl(var(--accent-brand) / 0.18), transparent 60%),
    radial-gradient(600px 400px at 90% 30%, hsl(var(--accent-brand) / 0.10), transparent 55%);
}
.hero-section > .max-w-7xl { position: relative; z-index: 1; }

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; border: 0 solid hsl(var(--border)); }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img, svg { display: inline-block; vertical-align: middle; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: transparent; cursor: pointer; color: inherit; }
input { font: inherit; }
table { border-collapse: collapse; }
ul { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }

/* --- Brand utilities --- */
.text-gradient,
.text-accent-brand {
  color: hsl(var(--accent-brand));
}
.bg-gradient-brand { background: hsl(var(--accent-brand)); }

/* Amplifye-inspired hero */
.hero-headline {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: hsl(var(--foreground));
}
.section-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: hsl(var(--accent-brand));
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.section-heading {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.02em;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.pill-eyebrow {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  border: 1px solid hsl(var(--border));
}
.pill-dot {
  width: 6px; height: 6px; border-radius: 9999px;
  background: hsl(var(--accent-brand));
  box-shadow: 0 0 8px hsl(var(--accent-brand) / 0.8);
}

.btn-brand {
  display: inline-flex; align-items: center; gap: .5rem;
  background: hsl(var(--accent-brand));
  color: hsl(var(--primary-foreground));
  border-radius: .6rem;
  padding: .85rem 1.4rem;
  font-size: .9rem; font-weight: 600;
  border: 1px solid hsl(var(--accent-brand));
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  text-decoration: none;
}
.btn-brand:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -8px hsl(var(--accent-brand) / 0.5); }

.btn-outline {
  display: inline-flex; align-items: center; gap: .5rem;
  background: transparent;
  color: hsl(var(--primary));
  border-radius: .6rem;
  padding: .85rem 1.4rem;
  font-size: .9rem; font-weight: 600;
  border: 1px solid hsl(var(--primary) / 0.5);
  transition: background-color .15s ease, border-color .15s ease;
  text-decoration: none;
}
.btn-outline:hover { background: hsl(var(--primary) / 0.1); border-color: hsl(var(--primary)); }

.btn-primary { background: hsl(var(--accent-brand)); color: hsl(var(--primary-foreground)); }

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 3rem;
  padding-top: 2rem;
}
.hero-stat-value {
  font-size: 2rem; font-weight: 700;
  color: hsl(var(--accent-brand));
  letter-spacing: -0.02em;
}
.hero-stat-label {
  font-size: .8rem;
  color: hsl(var(--muted-foreground));
  margin-top: .25rem;
}

/* Chat mockup */
.chat-mock {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 14px;
  padding: 0;
  box-shadow: 0 30px 60px -20px hsl(0 0% 0% / 0.4);
  overflow: hidden;
}
.chat-mock-header {
  display: flex; align-items: center; gap: .4rem;
  padding: .8rem 1rem;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--surface-sunken));
}
.chat-dot { width: 10px; height: 10px; border-radius: 9999px; display: inline-block; }
.chat-dot-r { background: #ff5f57; }
.chat-dot-y { background: #febc2e; }
.chat-dot-g { background: #28c840; }
.chat-mock-title { margin-left: .75rem; font-size: .8rem; color: hsl(var(--muted-foreground)); }
.chat-mock-body { padding: 1.25rem; display: flex; flex-direction: column; gap: .75rem; }
.chat-bubble {
  padding: .85rem 1rem;
  border-radius: 12px;
  font-size: .9rem;
  line-height: 1.5;
  max-width: 85%;
}
.chat-user {
  align-self: flex-end;
  background: hsl(var(--accent-brand));
  color: hsl(var(--primary-foreground));
  border-bottom-right-radius: 4px;
}
.chat-assistant {
  align-self: flex-start;
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  border-bottom-left-radius: 4px;
}
.chat-typing {
  align-self: flex-start; display: inline-flex; gap: 4px;
  background: hsl(var(--secondary)); padding: .8rem 1rem; border-radius: 12px;
}
.chat-typing span {
  width: 6px; height: 6px; border-radius: 9999px;
  background: hsl(var(--secondary-foreground));
  animation: chat-pulse 1.2s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-pulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

/* Feature cards — white background */
.feature-card {
  background: #ffffff;
  border: 1px solid hsl(270 15% 75%);
  color: hsl(240, 29.41%, 10%);
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color .2s ease, transform .2s ease;
}
.feature-card:hover { border-color: hsl(var(--accent-brand) / 0.4); transform: translateY(-2px); }
.feature-card .text-foreground { color: hsl(240, 29.41%, 10%); }
.feature-card .text-muted-foreground { color: hsl(241 15% 46%); }
.feature-letter {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: hsl(var(--accent-brand) / 0.15);
  color: hsl(var(--accent-brand));
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; margin-bottom: 1rem;
}

/* Hubs section — dark sunken container with light cards inside */
.hubs-section {
  background-color: hsl(var(--surface-sunken));
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
}

/* Hub cards — light surface */
.hub-card {
  background: #ffffff;
  border: 1px solid hsl(270 15% 75%);
  color: hsl(240, 29.41%, 10%);
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  height: 100%;
}
.hub-card h3 { color: hsl(240, 29.41%, 10%); }
.hub-card .text-foreground { color: hsl(240, 29.41%, 10%); }
.hub-card .text-muted-foreground { color: hsl(241 15% 46%); }
.hub-card:hover {
  border-color: hsl(var(--accent-brand) / 0.5);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -12px hsl(var(--accent-brand) / 0.35);
}

/* Auth card — light surface */
.auth-card {
  background: #ffffff;
  border: 1px solid hsl(270 15% 75%);
  color: hsl(240, 29.41%, 10%);
  border-radius: 1rem;
  padding: 2rem;
}
.auth-card h1, .auth-card label, .auth-card .text-foreground { color: hsl(240, 29.41%, 10%); }
.auth-card .text-muted-foreground { color: hsl(241 15% 46%); }
.auth-card input,
.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"] {
  background: #ffffff !important;
  border: 1px solid hsl(270 15% 75%) !important;
  color: hsl(240, 29.41%, 10%) !important;
}
.auth-card input:focus,
.auth-card input[type="text"]:focus,
.auth-card input[type="email"]:focus,
.auth-card input[type="password"]:focus {
  border-color: hsl(var(--accent-brand)) !important;
  box-shadow: 0 0 0 3px hsl(var(--accent-brand) / 0.2) !important;
  outline: none !important;
}
.auth-card .h-px { background-color: hsl(270 15% 75%); }
.hub-logo-wrap {
  height: 44px;
  display: flex; align-items: center;
  margin-bottom: 1rem;
}
.hub-logo-wrap .client-logo { max-height: 32px; max-width: 140px; object-fit: contain; }

/* Consent banner */
.consent-banner {
  position: fixed;
  left: 50%; bottom: 1rem;
  transform: translateX(-50%);
  width: min(calc(100% - 2rem), 720px);
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
  border-radius: 14px;
  padding: 1rem 1.25rem;
  box-shadow: 0 25px 50px -12px hsl(0 0% 0% / 0.4);
  z-index: 100;
}
.consent-inner {
  display: flex; flex-direction: column; gap: .9rem;
}
@media (min-width: 768px) {
  .consent-inner { flex-direction: row; align-items: center; gap: 1.5rem; }
}
.consent-text strong { display: block; font-size: .9rem; margin-bottom: .25rem; color: hsl(var(--foreground)); }
.consent-text p { font-size: .8rem; color: hsl(var(--muted-foreground)); line-height: 1.5; margin: 0; }
.consent-actions { display: flex; gap: .5rem; flex-shrink: 0; }
.consent-btn {
  border-radius: .55rem;
  padding: .55rem 1rem;
  font-size: .85rem; font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}
.consent-btn-ghost { background: transparent; color: hsl(var(--foreground)); border-color: hsl(var(--border)); }
.consent-btn-ghost:hover { background: hsl(var(--accent)); }
.consent-btn-primary { background: hsl(var(--accent-brand)); color: hsl(var(--primary-foreground)); }
.consent-btn-primary:hover { opacity: .9; }

.shadow-card { box-shadow: 0 1px 3px 0 rgba(0,0,0,0.04), 0 1px 2px -1px rgba(0,0,0,0.04); }
.shadow-card-hover { box-shadow: 0 4px 12px -2px rgba(0,0,0,0.08), 0 2px 6px -2px rgba(0,0,0,0.04); }
.shadow-elevated { box-shadow: 0 10px 30px -8px rgba(0,0,0,0.1); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* --- Layout --- */
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-md { max-width: 28rem; }
.max-w-\[240px\] { max-width: 240px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.min-h-screen { min-height: 100vh; }
.w-full { width: 100%; }
.w-fit { width: fit-content; }
.w-56 { width: 14rem; }
.w-8 { width: 2rem; }
.w-4 { width: 1rem; }
.w-3 { width: 0.75rem; }
.w-3\.5 { width: 0.875rem; }
.h-3 { height: 0.75rem; }
.h-3\.5 { height: 0.875rem; }
.h-4 { height: 1rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-14 { height: 3.5rem; }
.h-36 { height: 9rem; }
.h-full { height: 100%; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.block { display: block; }
.hidden { display: none; }
.grid { display: grid; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* gaps */
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* grid */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* spacing */
.p-1 { padding: 0.25rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pl-10 { padding-left: 2.5rem; }
.pr-4 { padding-right: 1rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-1\.5 { padding-top: 0.375rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.pb-8 { padding-bottom: 2rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-6 { margin-top: 1.5rem; }
.ml-1 { margin-left: 0.25rem; }

.space-y-1\.5 > * + * { margin-top: 0.375rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-12 > * + * { margin-top: 3rem; }

/* position */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.top-3 { top: 0.75rem; }
.top-1\/2 { top: 50%; }
.left-3 { left: 0.75rem; }
.right-3 { right: 0.75rem; }
.-translate-y-1\/2 { transform: translateY(-50%); }
.z-40 { z-index: 40; }
.overflow-hidden { overflow: hidden; }

/* borders & radius */
.border { border-width: 1px; border-style: solid; border-color: hsl(var(--border)); }
.border-t { border-top-width: 1px; border-top-style: solid; border-top-color: hsl(var(--border)); }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: hsl(var(--border)); }
.border-y { border-top-width: 1px; border-bottom-width: 1px; border-style: solid; border-color: hsl(var(--border)); }
.border-border { border-color: hsl(var(--border)); }
.last\:border-0:last-child { border-width: 0; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* colors - bg */
.bg-card { background-color: #ffffff; color: hsl(240, 29.41%, 10%); border-color: hsl(270 15% 75%); }
.bg-secondary .bg-card { color: hsl(240, 29.41%, 10%) !important; }
.bg-background { background-color: hsl(var(--background)); }
.bg-secondary { background-color: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); }
.bg-secondary\/50 { background-color: #ffffff; color: hsl(240, 29.41%, 10%); }

/* Padding above grids inside hubs/features sections */
.hubs-section .grid,
.features-section .grid { padding-top: 2.5rem; }
.bg-accent { background-color: hsl(var(--accent)); }
.bg-accent\/50 { background-color: hsl(var(--accent) / 0.5); }
.bg-primary { background-color: hsl(var(--primary)); }
.bg-tag-bg { background-color: hsl(var(--tag-bg)); }
.bg-white\/80 { background-color: rgba(255,255,255,0.8); }
.bg-white\/20 { background-color: rgba(255,255,255,0.2); }
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

/* colors - text */
.text-foreground { color: hsl(var(--foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-primary { color: hsl(var(--primary)); }
.text-tag-text, .bg-card .text-tag-text { color: hsl(var(--tag-text)) !important; }
.text-success { color: hsl(var(--success)); }
.text-white { color: #fff; }
.text-emerald-600 { color: #059669; }
.text-violet-600 { color: #7c3aed; }
.text-amber-600 { color: #d97706; }
.text-white\/80 { color: rgba(255,255,255,0.8); }
.placeholder\:text-muted-foreground::placeholder { color: hsl(var(--muted-foreground)); }

/* font sizes */
.text-\[10px\] { font-size: 10px; line-height: 14px; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.leading-none { line-height: 1; }
.leading-snug { line-height: 1.375; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.uppercase { text-transform: uppercase; }
.capitalize { text-transform: capitalize; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.no-underline { text-decoration: none; }
.hover\:underline:hover { text-decoration: underline; }

/* object */
.object-contain { object-fit: contain; }

/* gradient backgrounds for cards */
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-from), var(--tw-to)); }
.from-blue-500.to-blue-600   { --tw-from: #3b82f6; --tw-to: #2563eb; }
.from-emerald-500.to-emerald-600 { --tw-from: #10b981; --tw-to: #059669; }
.from-violet-500.to-violet-600 { --tw-from: #8b5cf6; --tw-to: #7c3aed; }
.from-amber-500.to-amber-600 { --tw-from: #f59e0b; --tw-to: #d97706; }
.from-rose-500.to-rose-600 { --tw-from: #f43f5e; --tw-to: #e11d48; }
.from-sky-500.to-sky-600 { --tw-from: #0ea5e9; --tw-to: #0284c7; }
.from-indigo-500.to-indigo-600 { --tw-from: #6366f1; --tw-to: #4f46e5; }
.from-gray-500.to-gray-600 { --tw-from: #6b7280; --tw-to: #4b5563; }

/* transitions */
.transition-all { transition: all 200ms ease; }
.transition-colors { transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease; }
.transition-opacity { transition: opacity 200ms ease; }
.duration-200 { transition-duration: 200ms; }

/* hover/group */
.hover\:bg-accent:hover { background-color: hsl(var(--accent)); }
.hover\:bg-accent\/50:hover { background-color: hsl(var(--accent) / 0.5); }
.hover\:text-foreground:hover { color: hsl(var(--foreground)); }
.hover\:text-primary:hover { color: hsl(var(--primary)); }
.hover\:opacity-90:hover { opacity: 0.9; }
.hover\:-translate-y-0\.5:hover { transform: translateY(-2px); }
.hover\:shadow-card-hover:hover { box-shadow: 0 4px 12px -2px rgba(0,0,0,0.08), 0 2px 6px -2px rgba(0,0,0,0.04); }

.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:text-primary { color: hsl(var(--primary)); }
.opacity-0 { opacity: 0; }

/* focus */
.outline-none { outline: none; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px hsl(var(--ring) / 0.4); }
.focus\:ring-ring:focus { box-shadow: 0 0 0 2px hsl(var(--ring) / 0.4); }

/* inputs */
input[type="text"], input[type="search"], input:not([type]) {
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}

/* responsive */
@media (min-width: 768px) {
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:hidden { display: none; }
  .md\:block { display: block; }
}
@media (min-width: 1024px) {
  .lg\:block { display: block; }
}
@media (min-width: 1280px) {
  .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

/* --- Additional utilities for redesigned templates --- */
.pt-20 { padding-top: 5rem; }
.pb-24 { padding-bottom: 6rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.gap-12 { gap: 3rem; }
.max-w-6xl { max-width: 72rem; }
.flex-col { flex-direction: column; }

/* responsive */
@media (min-width: 768px) {
  .md\:border-y-remove { border-top-width: 0; border-bottom-width: 0; }
  .md\:pb-24 { padding-bottom: 6rem; }
  .md\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .md\:flex-row { flex-direction: row; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

/* Hub page hero overrides (scoped to hub.php header) */
header.bg-secondary\/50 h1 { color: hsl(240, 29.41%, 10%) !important; }
header.bg-secondary\/50 input[name="search"] {
  background: #ffffff !important;
  color: hsl(240, 29.41%, 10%) !important;
  border: 1px solid hsl(270 15% 75%) !important;
}
header.bg-secondary\/50 input[name="search"]::placeholder { color: hsl(241 15% 46%) !important; }

/* Ensure text on white cards is dark (cards are forced white globally) */
.bg-card .text-foreground,
.bg-card h1, .bg-card h2, .bg-card h3, .bg-card p, .bg-card li, .bg-card span,
.bg-secondary\/50 .text-foreground,
.bg-secondary\/50 h1, .bg-secondary\/50 h2, .bg-secondary\/50 h3, .bg-secondary\/50 p, .bg-secondary\/50 li {
  color: hsl(240, 29.41%, 10%) !important;
}
.bg-card .text-muted-foreground,
.bg-secondary\/50 .text-muted-foreground {
  color: hsl(241 15% 46%) !important;
}

/* Legal pages (privacy policy, terms & conditions) */
.legal-content { color: hsl(240, 29.41%, 10%); line-height: 1.6; }
.legal-content h1, .legal-content h2, .legal-content h3 { color: hsl(240, 29.41%, 10%); }
.legal-content p { margin: 0.75rem 0; color: hsl(241 15% 19%); }
.legal-content ol { list-style: decimal; padding-left: 1.5rem; margin: 0.5rem 0; }
.legal-content ol ol { list-style: lower-alpha; }
.legal-content a { color: hsl(271, 24.58%, 53.73%); text-decoration: underline; }
.legal-content a:hover { color: hsl(241.2 30.95% 32.94%); }
.legal-content ol ol ol { list-style: lower-roman; }
.legal-content > ol > li { margin-top: 1rem; }
.legal-content li { margin: 0.4rem 0; color: hsl(241 15% 19%); }
.legal-content strong { color: hsl(240, 29.41%, 10%); }
.legal-content table { background: #fff; color: hsl(240, 29.41%, 10%); }
.legal-content table th { background: hsl(270 30% 92%); color: hsl(240, 29.41%, 10%); }

/* Legal table */
.legal-content .legal-table { width: 100%; border-collapse: collapse; }
.legal-content .legal-table th, .legal-content .legal-table td { border: 1px solid hsl(270 15% 75%); padding: 0.5rem 0.75rem; text-align: left; color: hsl(240, 29.41%, 10%); }
.legal-content .legal-table th { background: hsl(270 30% 92%); font-weight: 600; }

/* Topic cards */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 640px) { .topics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .topics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .topics-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.topic-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  background: #ffffff;
  border: 1px solid hsl(270 15% 75%);
  border-radius: 14px;
  padding: 1rem 1.125rem;
  color: hsl(240, 29.41%, 10%);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease, background .2s ease;
  overflow: hidden;
}
.topic-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, hsl(var(--accent-brand) / 0.08), transparent 60%);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.topic-card:hover {
  border-color: hsl(var(--accent-brand) / 0.55);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -14px hsl(var(--accent-brand) / 0.45);
}
.topic-card:hover::before { opacity: 1; }

.topic-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--accent-brand) / 0.12);
  color: hsl(var(--accent-brand));
  transition: background .2s ease, transform .2s ease;
}
.topic-card:hover .topic-icon {
  background: hsl(var(--accent-brand) / 0.18);
  transform: scale(1.05);
}
.topic-icon svg { width: 22px; height: 22px; }

.topic-body { flex: 1; min-width: 0; }
.topic-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: hsl(240, 29.41%, 10%);
  line-height: 1.2;
  margin-bottom: 0.15rem;
}
.topic-meta {
  font-size: 0.75rem;
  color: hsl(241 15% 46%);
}
.topic-arrow {
  flex: none;
  color: hsl(var(--accent-brand));
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .2s ease, transform .2s ease;
  font-size: 1.1rem;
  line-height: 1;
}
.topic-card:hover .topic-arrow { opacity: 1; transform: translateX(0); }

/* Form fields inside white cards (admin upload form, etc.) — cards are forced white globally,
   so inputs must use a white background and dark text regardless of theme. */
.bg-card input[type="text"],
.bg-card input[type="email"],
.bg-card input[type="password"],
.bg-card input[type="number"],
.bg-card input[type="date"],
.bg-card input[type="search"],
.bg-card input[type="url"],
.bg-card input[type="file"],
.bg-card select,
.bg-card textarea {
  background-color: #ffffff !important;
  color: hsl(240, 29.41%, 10%) !important;
  border-color: hsl(270 15% 75%) !important;
}
.bg-card input::placeholder,
.bg-card textarea::placeholder { color: hsl(241 15% 46%) !important; }

/* Chat widget — live AI resource-search assistant, shared by the homepage mock and the /chat.php page */
.chat-widget-window {
  display: flex;
  flex-direction: column;
  height: 58vh;
  max-height: 520px;
  min-height: 340px;
}
/* Compact variant used in the homepage hero — visible on all breakpoints, smaller on mobile */
.chat-widget-window--home {
  height: 300px;
  max-height: none;
  min-height: 0;
}
@media (min-width: 768px) {
  .chat-widget-window--home { height: 460px; }
}
/* Even shorter variant for the Salesforce hub header, so the hero row stays
   close to its original (chat-less) height and doesn't push the resource
   grid far down the page. */
.chat-widget-window--salesforce {
  height: 220px;
  max-height: none;
  min-height: 0;
}
.chat-widget-body {
  flex: 1;
  overflow-y: auto;
  scroll-behavior: smooth;
}
.chat-widget-input-bar {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1rem;
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--surface-sunken));
}
.chat-widget-input {
  flex: 1;
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
  border-radius: .6rem;
  padding: .7rem .9rem;
  font-size: .9rem;
  outline: none;
}
.chat-widget-input:focus { border-color: hsl(var(--ring)); box-shadow: 0 0 0 3px hsl(var(--ring) / 0.2); }
.chat-widget-send { padding: .7rem 1.1rem; }
.chat-widget-send:disabled, .chat-widget-input:disabled { opacity: .6; cursor: not-allowed; }

.chat-widget-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-top: .75rem;
}
.chat-widget-suggestion {
  font-size: .8rem;
  font-weight: 500;
  color: hsl(var(--primary));
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
  padding: .5rem 1rem;
  transition: background-color .15s ease, border-color .15s ease;
}
.chat-widget-suggestion:hover { background: hsl(var(--accent)); border-color: hsl(var(--primary) / 0.5); }

.chat-widget-resources {
  align-self: flex-start;
  max-width: 85%;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.chat-widget-resources-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin-left: .2rem;
}
.chat-widget-resource-card {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 10px;
  padding: .6rem .85rem;
  transition: border-color .15s ease, transform .15s ease;
}
.chat-widget-resource-card:hover { border-color: hsl(var(--accent-brand) / 0.5); transform: translateY(-1px); }
.chat-widget-resource-title { font-size: .85rem; font-weight: 600; color: hsl(var(--foreground)); }
.chat-widget-resource-meta { font-size: .75rem; color: hsl(var(--muted-foreground)); }
.bg-card select option { background-color: #ffffff !important; color: hsl(240, 29.41%, 10%) !important; }
.mt-4 { margin-top: 1rem; }

/* ============================================================
   Filter sidebar (all clients): a checkbox-list panel with a "Filters"
   title, a search field, and collapsible sections with result counts
   per option. Checkbox/hover/focus accents follow each page's own
   --primary, so brand-themed hubs (MuleSoft, Data 360) pick up their
   own colour automatically.
   ============================================================ */
.filters-sidebar { width: 300px; }
.filters-title {
  font-size: 18px;
  font-weight: 700;
  color: #181818;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #E6E6E6;
}
.filters-search {
  position: relative;
  margin-bottom: 18px;
}
.filters-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: #99999A;
  pointer-events: none;
}
.filters-search input {
  width: 100%;
  padding: 9px 12px 9px 36px;
  font-size: 13px;
  color: #181818;
  background: #ffffff;
  border: 1px solid #D1DADD;
  border-radius: 10px;
  outline: none;
}
.filters-search input::placeholder { color: #99999A; }
.filters-search input:focus {
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.15);
}
.filters-clear {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: hsl(var(--primary));
  margin-bottom: 16px;
}
.filters-clear:hover { text-decoration: underline; }

.filter-group {
  border-bottom: 1px solid #E6E6E6;
  padding-bottom: 14px;
  margin-bottom: 14px;
}
.filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: #181818;
  padding-bottom: 10px;
}
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group summary::marker { content: ""; }
.chevron {
  width: 14px;
  height: 14px;
  color: #99999A;
  transition: transform .2s ease;
  transform: rotate(180deg);
}
.filter-group:not([open]) .chevron { transform: rotate(0deg); }

.filter-options { display: flex; flex-direction: column; }
.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 4px;
  border-radius: 6px;
}
.filter-option:hover { background: hsl(var(--primary) / 0.08); }
.filter-checkbox {
  flex: none;
  width: 17px;
  height: 17px;
  border: 1.5px solid #C5C5C5;
  border-radius: 4px;
  background: #ffffff;
  position: relative;
}
.filter-checkbox.is-checked {
  background: hsl(var(--primary));
  border-color: hsl(var(--primary));
}
.filter-checkbox.is-checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.filter-option-label {
  flex: 1;
  font-size: 14px;
  color: #181818;
}
.filter-option-count {
  flex: none;
  font-size: 13px;
  color: #99999A;
}

/* ============================================================
   Per-client hub templates (scoped via .client-theme--<slug> on
   hub.php's hero+main wrapper — see includes/client_theme.php).
   ============================================================ */

/* MuleSoft: brand blue/navy, modelled on mulesoft.com/integration-resources.
   Values below (hero wash, card shadow/radius, button colors) are taken
   directly from MuleSoft's own production CSS, not approximated. */
.client-theme--mulesoft {
  --primary: 207 100% 42%;      /* #0176D3 */
  --accent-brand: 207 100% 42%; /* #0176D3 */
  --ring: 207 100% 42%;
  --tag-bg: 207 90% 95%;        /* light blue tint */
  --tag-text: 213 94% 19%;      /* #032D60 navy */
  --accent: 207 90% 93%;
  background-color: #ffffff;
}
.client-theme--mulesoft main { background-color: #ffffff; }

/* Hero: MuleSoft's own ".blue-gradient.light-font" is a flat pale-blue
   wash (rgba(234,245,254,.5) over white), not a diagonal gradient. */
header.hub-hero--mulesoft {
  background-color: #F5FAFE;
  border-bottom: none;
}
header.hub-hero--mulesoft h1 {
  font-size: 33px !important;
  line-height: 39px !important;
  font-weight: 700 !important;
  color: #032D60 !important;
  margin-bottom: 10px !important;
}
header.hub-hero--mulesoft p,
header.hub-hero--mulesoft .text-muted-foreground {
  color: #032D60 !important;
  opacity: 0.85;
}
header.hub-hero--mulesoft img.h-8 {
  height: 56px;
}

/* Resource grid gutters: MuleSoft's tiles use generous 40px row gaps */
.mulesoft-grid { gap: 1.75rem; }

/* Card: no thumbnail, no border — a plain elevated tile (title, summary,
   CTA button), matching MuleSoft's actual resource-list markup. */
.asset-card--mulesoft {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 36px 32px;
  height: 100%;
  transition: box-shadow .2s ease;
}
.group:hover .asset-card--mulesoft {
  box-shadow: 0 10px 44px rgba(0, 0, 0, 0.16);
}
.asset-card--mulesoft-body {
  margin-bottom: 24px;
}
.asset-title--mulesoft {
  font-size: 21px;
  line-height: 1.3;
  font-weight: 700;
  color: #181818;
  margin-bottom: 12px;
}
.asset-desc--mulesoft {
  font-size: 15px;
  line-height: 1.5;
  color: #55565A;
  margin-bottom: 18px;
}
.asset-meta--mulesoft {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 12px;
  color: #99999A;
  margin-bottom: 18px;
}
.asset-meta--mulesoft span:not(:last-child)::after {
  content: "·";
  margin-left: 10px;
  color: #c5c5c5;
}
.asset-cta--mulesoft {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: #0176D3;
  background: transparent;
  border: 2px solid #0176D3;
  border-radius: 4px;
  padding: 8px 20px;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.group:hover .asset-cta--mulesoft {
  background: #EAF5FE;
  color: #032D60;
  border-color: #032D60;
}

/* Data 360: Salesforce blue/navy, modelled on salesforce.com/eu/data/resources.
   Values below (hero navy, card shadow, badge/link colors) are taken directly
   from Salesforce's own production CSS, not approximated. */
.client-theme--data360 {
  --primary: 207 100% 42%;      /* #0176D3 */
  --accent-brand: 207 100% 42%; /* #0176D3 */
  --ring: 207 100% 42%;
  --tag-bg: 207 90% 95%;        /* light blue tint */
  --tag-text: 213 94% 19%;      /* #032D60 navy */
  --accent: 207 90% 93%;
  background-color: #ffffff;
}
.client-theme--data360 main { background-color: #ffffff; }

/* Hero: Salesforce's own data-resources marquee is a dark navy band with
   white text, not a light tint. #001639 is the actual rendered colour
   (colour-picked directly from the live page). */
header.hub-hero--data360 {
  background-color: #001639;
  border-bottom: none;
}
header.hub-hero--data360 h1 {
  font-size: 40px !important;
  line-height: 48px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin-bottom: 12px !important;
}
header.hub-hero--data360 .text-foreground {
  color: #ffffff !important;
}
header.hub-hero--data360 p,
header.hub-hero--data360 .text-muted-foreground {
  color: #ffffff !important;
  opacity: 0.7;
}
/* Client logo: shown on its own full-width white bar above the navy hero,
   like salesforce.com's own nav bar, since most client wordmarks aren't
   designed to sit directly on a dark navy fill. */
.logo-banner--data360 {
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Resource grid gutters: Salesforce's card grid uses ~40px/24px gaps */
.data360-grid { gap: 2.5rem 1.5rem; }

/* Card: image-topped tile with a pill badge and a plain underlined text
   link as the CTA (not a button), matching Salesforce's card markup. */
.asset-card--data360 {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.08), 0 8px 12px -2px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  height: 100%;
  transition: box-shadow .2s ease;
}
.group:hover .asset-card--data360 {
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.12), 0 12px 20px -2px rgba(0, 0, 0, 0.2);
}
.asset-thumb--data360 {
  aspect-ratio: 16 / 9;
  width: 100%;
  position: relative;
  overflow: hidden;
  background-color: #EAF5FE;
}
.asset-thumb--data360-img {
  position: absolute;
  inset: 0;
  background-color: #EAF5FE;
  background-size: cover;
  background-position: center;
  transition: transform .3s ease;
}
.group:hover .asset-thumb--data360-img { transform: scale(1.08); }
.asset-card--data360-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  padding: 28px;
}
.asset-badge--data360 {
  display: inline-block;
  background: #EAF5FE;
  color: #032D60;
  font-size: 12px;
  font-weight: 700;
  line-height: 24px;
  padding: 0 12px;
  border-radius: 12px;
  margin-bottom: 16px;
}
.asset-title--data360 {
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.004em;
  font-weight: 700;
  color: #181818;
  margin-bottom: 12px;
}
.asset-desc--data360 {
  font-size: 16px;
  line-height: 1.6;
  color: #444B4D;
}
.asset-cta--data360 {
  display: inline-block;
  align-self: flex-start;
  margin-top: 20px;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: #0176D3;
  text-decoration: underline;
  transition: color .15s ease;
}
.group:hover .asset-cta--data360 { color: #032D60; }

/* Salesforce: a persistent chat dock — fixed to the right edge of the
   viewport on desktop, a rounded bottom sheet on mobile — modelled on
   https://insyte.amplifye.ai/docusign-emea-ai/index.html's docked chat
   widget. The filter sidebar is narrowed and the main content gets right
   padding reserved on desktop so neither sits underneath the dock. */
.filters-sidebar--salesforce { width: 220px; }

@media (min-width: 1024px) {
  .main--salesforce { padding-right: 340px; }
}

.chat-dock--salesforce {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 56px;
  bottom: 0;
  right: 0;
  width: 320px;
  border: none;
  border-left: 1px solid hsl(var(--border));
  border-radius: 0;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.08);
  z-index: 30;
}
@media (min-width: 1024px) {
  .chat-dock--salesforce .chat-mock-header { display: none; }
}
@media (max-width: 1023px) {
  .chat-dock--salesforce {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 60vh;
    border-left: none;
    border-top: 1px solid hsl(var(--border));
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.14);
  }
}

/* Samsara: matches samsara.com/resources — a plain white page (no coloured
   hero on that page) set in their FK Grotesk / "Samsara Sans" type family.
   Those are proprietary fonts, so this uses Space Grotesk, the closest
   free Google Font (same foundry/designer, same grotesque lineage) as a
   stand-in. Font and background only — layout/cards stay the shared
   default design. */
.client-theme--samsara {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  background-color: #ffffff;
}
.client-theme--samsara main { background-color: #ffffff; }
