/* @section: google-fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ═══════════════════════════════════════════════════════════════════════════
   ODIN PORTAL — Design System v2
   Deep Navy · Royal Blue · Glassmorphism · Ambient Depth
   ═══════════════════════════════════════════════════════════════════════════ */

/* @section: design-tokens */
:root {
  /* ── Brand palette ────────────────────────────────────────────────── */
  --navy:          #061424;          /* site-header background            */
  --navy-mid:      #0a1f35;          /* secondary navy surface            */
  --navy-border:   rgba(255,255,255,.08); /* borders inside navy areas    */
  --royal:         #1E6BFF;          /* active tab / avatar / accent      */
  --royal-dim:     #1557d6;          /* royal hover                       */
  --orange:        #F26D21;          /* BMC brand / CTA                   */
  --orange-dim:    #d95e18;          /* orange hover                      */
  --orange-glow:   rgba(242,109,33,.12); /* ambient card shadow           */
  --white:         #FFFFFF;
  --charcoal:      #1a2332;          /* slate-900 — softened, not ink-black */
  --heading:       #1e293b;          /* slate-800 — dashboard titles      */
  --text-primary:  #334155;          /* slate-700 — body copy             */
  --text-muted:    #64748B;          /* slate-500                         */
  --text-slate:    #94A3B8;          /* slate-400 — metadata labels       */
  --border:        #E2E8F0;
  --grey-bg:       #F8FAFC;
  --canvas:        #F1F5F9;          /* page background                   */

  /* ── Typography scale ─────────────────────────────────────────────── */
  --font-sans:     'Inter', 'Public Sans', ui-sans-serif, system-ui,
                   -apple-system, BlinkMacSystemFont, "Segoe UI",
                   Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono:     'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
  --tracking-meta: 0.11em;           /* metadata label letter-spacing     */

  /* ── Glassmorphism tokens ─────────────────────────────────────────── */
  --glass-bg:      rgba(255,255,255,.72);
  --glass-blur:    blur(18px);
  --glass-border:  rgba(255,255,255,.35);
  --glass-shadow:  0 4px 32px rgba(15,23,42,.07);

  /* ── Radii & spacing ─────────────────────────────────────────────── */
  --radius-sm:     6px;
  --radius:        10px;
  --radius-lg:     14px;
  --radius-xl:     20px;
  --shadow-sm:     0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow:        0 4px 16px rgba(15,23,42,.10);
  --transition:    .18s ease;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--canvas);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  letter-spacing: -.01em;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }

/* ── Layout helpers ─────────────────────────────────────────────────────── */
.container     { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm  { max-width: 860px;  margin: 0 auto; padding: 0 24px; }
.container-xs  { max-width: 600px;  margin: 0 auto; padding: 0 24px; }
.flex          { display: flex; }
.flex-col      { display: flex; flex-direction: column; }
.flex-1        { flex: 1; }
.flex-wrap     { flex-wrap: wrap; }
.items-center  { align-items: center; }
.items-start   { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-2  { gap: 8px; }  .gap-3  { gap: 12px; } .gap-4  { gap: 16px; }
.gap-5  { gap: 20px; } .gap-6  { gap: 24px; } .gap-8  { gap: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.min-w-0   { min-width: 0; }
.w-full    { width: 100%; }
.ml-auto   { margin-left: auto; }
.shrink-0  { flex-shrink: 0; }
.hidden    { display: none !important; }
.mt-2  { margin-top: 8px; }   .mt-3  { margin-top: 12px; } .mt-4  { margin-top: 16px; }
.mt-5  { margin-top: 20px; }  .mt-6  { margin-top: 24px; } .mt-8  { margin-top: 32px; }
.mb-2  { margin-bottom: 8px; } .mb-3  { margin-bottom: 12px; } .mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; } .mb-8  { margin-bottom: 32px; }

/* ═══════════════════════════════════════════════════════════════════════════
   SITE HEADER — Deep Navy
   ═══════════════════════════════════════════════════════════════════════════ */

/* @section: site-header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid var(--navy-border);
  box-shadow: 0 2px 24px rgba(0,0,0,.28);
}
.site-header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.header-logo svg path { /* BMC logo on dark bg */ }
.header-logo-wordmark {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
}
.header-logo-divider {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,.15);
}
.header-logo-product {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,.6);
  letter-spacing: .04em;
}

/* Header right: admin btn + user avatar — no env badge */
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* ── .header-env-badge hidden by default; kept for JS fallback ── */
.header-env-badge { display: none !important; }

/* @section: user-avatar */
/* Seamless avatar — no capsule box, sits directly on navy bar */
.user-avatar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: var(--radius);
  border: none;
  background: transparent;
  transition: background var(--transition);
  cursor: pointer;
}
.user-avatar-btn:hover { background: rgba(255,255,255,.08); }

.user-avatar-circle {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--royal);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  color: #fff;
  letter-spacing: .02em;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(30,107,255,.35);
}
.user-avatar-name {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  white-space: nowrap;
  font-family: var(--font-sans);
}
/* OKTA subtitle hidden per design spec */
.user-avatar-status { display: none !important; }

/* Admin entry button — semi-translucent hover, no hard border */
.btn-admin-entry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  border: none;
  background: transparent;
  transition: background var(--transition), color var(--transition);
}
.btn-admin-entry:hover {
  background: rgba(255,255,255,.10);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PAGE LAYOUT
   ═══════════════════════════════════════════════════════════════════════════ */

.page-main {
  padding-top: 40px;
  padding-bottom: 72px;
  min-height: calc(100vh - 68px);
}

/* @section: page-hero */
.page-hero {
  margin-bottom: 36px;
}
.page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--royal);
  margin-bottom: 8px;
}
.page-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--heading);          /* slate-800 — softened from ink-black */
  letter-spacing: -.025em;
  line-height: 1.25;
  margin-bottom: 6px;
  font-family: var(--font-sans);
}
.section-sub {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 400;
}

/* ── Section block ──────────────────────────────────────────────────────── */
.section-block { margin-bottom: 52px; }
.section-block:last-child { margin-bottom: 0; }
.section-header {
  margin-bottom: 20px;    /* mb-4 equivalent breathing room below header row */
  padding-bottom: 8px;    /* extra breathing room: text rows don't crowd nav  */
}
.section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);       /* slate-500 — not hard black */
  letter-spacing: .1em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GLASSMORPHISM CARD BASE
   ═══════════════════════════════════════════════════════════════════════════ */

/* @section: glass-card */
.card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FILTER TABS — Royal-blue underline style (replaces orange pill)
   ═══════════════════════════════════════════════════════════════════════════ */

/* @section: filter-tabs */
.app-grid-shell {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Tab bar row */
.app-category-strip {
  display: flex;
  align-items: flex-end;
  gap: 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.app-category-strip::-webkit-scrollbar { display: none; }

/* Individual tab chip — text-based, no background pill */
.app-category-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  border: none;
  background: transparent;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--transition), border-color var(--transition);
}
.app-category-chip:hover {
  color: var(--charcoal);
}
/* Active state: royal blue underline, no background fill */
.app-category-chip.app-chip-active {
  color: var(--royal);
  border-bottom-color: var(--royal);
  background: transparent;
}

/* Per-card category label */
.product-card-category {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-slate);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRODUCT CARDS — v2 with Icon Slot + Compact Metadata
   ═══════════════════════════════════════════════════════════════════════════ */

/* @section: product-cards */
.product-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 22px 20px 20px;
  /* ── Flex column with space-between so all CTA buttons align to
     the same baseline regardless of description text length ── */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  /* Ambient orange-tinted radial glow */
  box-shadow:
    var(--glass-shadow),
    0 0 25px var(--orange-glow);
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}
.product-card::before {
  /* micro-border top-edge shimmer — frosted glass highlight */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,.55);
  pointer-events: none;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 32px rgba(15,23,42,.13),
    0 0 40px rgba(242,109,33,.2);
}

/* Card content area grows to push button to bottom */
.product-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  margin-bottom: 14px;
}

/* Ensure the grid rows stretch cells to equal height */
.product-grid-balanced {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

/* Category label row — spans all 4 columns as a section divider */
.product-cat-label-row {
  grid-column: 1 / -1;
  padding-top: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRODUCT LIST — v3 vertical scroll layout
   ═══════════════════════════════════════════════════════════════════════════ */

/* Fixed-height scroll viewport with thin custom scrollbar */
.product-list-scroll {
  max-height: 600px;
  overflow-y: auto;
  overflow-x: hidden;
  /* thin scrollbar — webkit + Firefox */
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  border-radius: var(--radius-xl);
}
.product-list-scroll::-webkit-scrollbar {
  width: 5px;
}
.product-list-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.product-list-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 99px;
}

/* Wrapper div (#product-grid) — vertical stack, no gap jank */
.product-list-scroll > #product-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px; /* breathing room beside scrollbar */
}

/* One horizontal row per product — 3-zone grid:
   [identity 200px] [viz 220px] [right fills remaining] */
.product-row {
  display: grid;
  grid-template-columns: 200px 220px 1fr;
  align-items: center;
  gap: 20px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 16px 20px;
  box-shadow: var(--glass-shadow), 0 0 20px var(--orange-glow);
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}
.product-row::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,.55);
  pointer-events: none;
}
.product-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(15,23,42,.12), 0 0 36px rgba(242,109,33,.18);
}

/* Left zone — BMC mark + title + version */
.product-row-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

/* Centre zone — micro-vis SVG, always flex-centred */
.product-row-viz {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.product-row-viz .card-microvis {
  width: 100%;
  max-width: 220px;
  height: 36px;
}

/* Right zone — description + CTA button pinned to row-end */
.product-row-right {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.product-row-desc {
  flex: 1;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted);
  /* clamp to 2 lines, never wraps CTA */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
/* Orange CTA — fixed width so every row aligns identically */
.product-row-cta {
  flex-shrink: 0;
  white-space: nowrap;
  min-width: 190px;
  text-align: center;
}

/* Beacon accent treatment on list row */
.product-row.card-beacon::before {
  border-color: rgba(59,130,246,.18);
}

/* ── Responsive collapses ── */
@media (max-width: 900px) {
  .product-row {
    grid-template-columns: 1fr 160px;
    grid-template-rows: auto auto;
  }
  .product-row-identity { grid-column: 1; grid-row: 1; }
  .product-row-viz       { grid-column: 2; grid-row: 1; justify-content: flex-end; }
  .product-row-right     { grid-column: 1 / -1; grid-row: 2; }
  .product-row-cta       { min-width: 160px; }
}
@media (max-width: 560px) {
  .product-row {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .product-row-identity,
  .product-row-viz,
  .product-row-right {
    grid-column: 1;
    grid-row: unset;
  }
  .product-row-viz { justify-content: flex-start; }
  .product-row-right { flex-direction: column; align-items: flex-start; }
  .product-row-cta { min-width: unset; width: 100%; }
  .product-list-scroll { max-height: none; overflow-y: visible; }
}

/* Icon + title row */
.product-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* @section: product-icon-slot */
/* Unified BMC brand logo slot — replaces individual product emoji icons */
.product-bmc-slot {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .85;
}
.product-bmc-slot svg { width: 20px; height: auto; display: block; }

/* Legacy icon slots kept for product-hub detail page */
.product-icon-slot {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
}
.product-icon-beacon    { background: linear-gradient(135deg,#eff6ff,#dbeafe); }
.product-icon-airflow   { background: linear-gradient(135deg,#f0fdf4,#dcfce7); }
.product-icon-fabric    { background: linear-gradient(135deg,#fdf4ff,#f3e8ff); }
.product-icon-platform  { background: linear-gradient(135deg,#fff7ed,#ffedd5); }

.product-card-title-wrap { min-width: 0; flex: 1; }
.product-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--heading);          /* slate-800 — softened heading token */
  letter-spacing: -.015em;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-sans);
}

/* @section: compact-metadata */
/* Compact single-line: "v2.4 • GET YOUR DATA AI-READY"
   text-xs · slate-400 · tracking-widest · uppercase — locked */
.product-card-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.product-meta-text {
  font-size: 10px;                 /* text-xs */
  font-weight: 500;
  color: var(--text-slate);        /* slate-400 */
  letter-spacing: var(--tracking-meta); /* tracking-widest */
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-sans);
}

.product-card-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

/* badge in card header */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge-active   { background: #ECFDF5; color: #059669; border: 1px solid #A7F3D0; }
.badge-inactive { background: #F9FAFB; color: #9CA3AF; border: 1px solid #E5E7EB; }
.badge-orange   { background: #FFF7ED; color: #C2410C; border: 1px solid #FED7AA; }

/* ═══════════════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius);
  font-size: 12px; font-weight: 700;
  letter-spacing: .03em;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 2px 8px rgba(242,109,33,.25);
}
.btn-primary:hover { background: var(--orange-dim); box-shadow: 0 4px 14px rgba(242,109,33,.35); transform: translateY(-1px); }
.btn-royal {
  background: var(--royal);
  color: #fff;
  box-shadow: 0 2px 8px rgba(30,107,255,.25);
}
.btn-royal:hover { background: var(--royal-dim); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--grey-bg); color: var(--charcoal); }
.btn-disabled {
  background: #F1F5F9;
  color: #94A3B8;
  border: 1px solid var(--border);
  cursor: not-allowed;
  box-shadow: none;
  opacity: .9;
}
.btn-disabled:hover,
.btn-disabled:focus {
  background: #F1F5F9;
  color: #94A3B8;
  transform: none;
  box-shadow: none;
}
.product-card-cta {
  width: 100%;
  margin-top: 4px;
}
.btn-full { width: 100%; }
.btn-sm { padding: 6px 11px; font-size: 11px; }
.btn-lg { padding: 12px 22px; font-size: 14px; }
.btn-icon { padding: 8px; border-radius: var(--radius-sm); }

/* ── Card micro-visualizations — all 4 products ────────────────────────── */
/* Shared base: identical h-8 (32px) height, full-width, transparent bg     */
.card-microvis {
  display: block;
  width: 100%;
  height: 32px;          /* h-8 — uniform across all four cards */
  margin: 6px 0 8px;
  flex-shrink: 0;
  background: transparent;
  border: none;
  overflow: visible;
}
/* Beacon sparkline is taller for the wave amplitude to read well */
.beacon-sparkline {
  height: 44px;
  margin: 4px 0 6px;
}
/* Card accent bar — top micro-border override for Beacon */
.product-card.card-beacon::before {
  border-top-color: rgba(30,107,255,.3);
}

/* ═══════════════════════════════════════════════════════════════════════════
   NEWSLETTER + ARCHIVE — Dark navy panel
   ═══════════════════════════════════════════════════════════════════════════ */

/* Outer dark-navy wrapper — full bleed section separator */
.chronicles-panel {
  background: #0b192e;
  border-radius: var(--radius-xl);
  padding: 28px 28px 24px;
  box-shadow: 0 4px 32px rgba(0,0,0,.25);
  position: relative;
  overflow: hidden;
}
/* Ambient radial glow inside dark panel */
.chronicles-panel::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,107,255,.09) 0%, transparent 68%);
  pointer-events: none;
}

.newsletter-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.newsletter-hero {
  background: transparent;
  border-radius: var(--radius-lg);
  padding: 0;
  position: relative;
}
.newsletter-archive {
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
/* Override text colours inside dark panel */
.chronicles-panel .newsletter-hero-eyebrow { color: rgba(255,255,255,.4); }
.chronicles-panel .newsletter-hero-title   { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 10px; line-height: 1.35; }
.chronicles-panel .newsletter-hero-summary { font-size: 13px; color: rgba(255,255,255,.58); line-height: 1.7; margin-bottom: 22px; }
.chronicles-panel .section-title           { color: rgba(255,255,255,.38); }
/* Archive list inside dark panel */
.chronicles-panel .archive-item a,
.chronicles-panel .archive-item button {
  color: rgba(255,255,255,.62);
}
.chronicles-panel .archive-item a:hover,
.chronicles-panel .archive-item button:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}
/* Search inside dark panel */
.chronicles-panel .search-input {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.14);
  color: rgba(255,255,255,.85);
}
.chronicles-panel .search-input::placeholder { color: rgba(255,255,255,.3); }
.chronicles-panel .search-input:focus {
  border-color: var(--royal);
  background: rgba(255,255,255,.1);
  box-shadow: 0 0 0 3px rgba(30,107,255,.18);
}
.chronicles-panel .search-icon { color: rgba(255,255,255,.3); }
.chronicles-panel .search-shortcut {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.12);
  color: rgba(255,255,255,.45);
}
.chronicles-panel .archive-section-title {
  color: rgba(255,255,255,.35);
  border-bottom-color: rgba(255,255,255,.1);
}
.chronicles-panel .badge-active {
  background: rgba(30,107,255,.18);
  color: #7eb3ff;
  border-color: rgba(30,107,255,.25);
}
.newsletter-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.45);
  margin-bottom: 12px;
}
.newsletter-hero-title   { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 10px; line-height: 1.35; }
.newsletter-hero-summary { font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.7; margin-bottom: 20px; }

/* Archive list */
.archive-list { display: flex; flex-direction: column; gap: 2px; }
.archive-item { list-style: none; }
.archive-item a, .archive-item button {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; width: 100%; padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 500; color: var(--text-muted);
  transition: all var(--transition); text-align: left;
  background: transparent; border: 0;
}
.archive-item a:hover, .archive-item button:hover {
  background: var(--grey-bg); color: var(--charcoal);
}

/* @section: search-input */
/* Elevated search — soft radius · crisp padding · royal focus ring · ⌘K badge */
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-input {
  width: 100%;
  padding: 9px 76px 9px 38px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);           /* soft, not sharp */
  font-size: 13px;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: #fff;
  outline: none;
  /* gentle resting elevation */
  box-shadow: 0 1px 3px rgba(15,23,42,.06), 0 1px 1px rgba(15,23,42,.04);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-input:focus {
  border-color: var(--royal);
  /* high-contrast interactive focus ring */
  box-shadow: 0 0 0 3.5px rgba(30,107,255,.14),
              0 1px 4px rgba(15,23,42,.08);
}
.search-input::placeholder {
  color: var(--text-slate);
  font-weight: 400;
}
.search-icon {
  position: absolute; left: 11px;
  color: var(--text-slate);
  pointer-events: none;
  line-height: 0;
}
/* ⌘K shortcut badge — system-font glyphs for pixel-perfect rendering */
.search-shortcut {
  position: absolute; right: 8px;
  display: inline-flex; align-items: center; gap: 1px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--grey-bg);
  border: 1px solid #D1D5DB;
  font-size: 10.5px; font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .01em;
  pointer-events: none;
  white-space: nowrap;
  /* Use the system SF Pro / Segoe UI glyph stack for ⌘ */
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
               "Segoe UI", system-ui, sans-serif;
  user-select: none;
  line-height: 1.4;
}

/* Archive section title row */
.archive-section-title {
  font-size: 11px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 12px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════════════════
   TEAM DIRECTORY
   ═══════════════════════════════════════════════════════════════════════════ */

.team-section {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}
.team-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; cursor: pointer; user-select: none;
}
.team-title-row {
  display: flex; align-items: center; gap: 10px;
}
.team-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg,#eff6ff,#dbeafe);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.team-title { font-size: 14px; font-weight: 700; color: var(--charcoal); }
.team-count-chip {
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(30,107,255,.08); color: var(--royal);
  border: 1px solid rgba(30,107,255,.15);
}

.team-panel {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}
.team-panel.open { max-height: 4000px; }

.focus-filter-bar {
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.focus-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 999px;
  font-size: 10px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; cursor: pointer;
  border: 1px solid #E2E8F0;
  background: transparent; color: #64748B;
  transition: all var(--transition);
}
.focus-pill:hover {
  background: #F8FAFC; border-color: #CBD5E1; color: #334155;
}
.focus-pill.active {
  background: var(--royal); border-color: var(--royal);
  color: #fff; box-shadow: 0 2px 8px rgba(30,107,255,.25);
}
.focus-pill-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.fp-odin .focus-pill-dot        { background: var(--royal); }
.fp-beacon .focus-pill-dot      { background: #3B82F6; }
.fp-agent-fabric .focus-pill-dot{ background: #9333EA; }
.fp-airflow .focus-pill-dot     { background: #10B981; }
.fp-devops .focus-pill-dot      { background: #F59E0B; }
.fp-ux .focus-pill-dot          { background: #EC4899; }
.fp-ixd .focus-pill-dot         { background: #14B8A6; }

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1px;
  background: var(--border);
}
.member-card {
  background: #fff;
  padding: 18px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.member-card:hover { background: #FAFBFF; }
.member-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #fff;
  margin-bottom: 6px; flex-shrink: 0;
}
.fc-odin         .member-avatar { background: var(--royal); }
.fc-beacon       .member-avatar { background: #3B82F6; }
.fc-agent-fabric .member-avatar { background: #9333EA; }
.fc-airflow      .member-avatar { background: #10B981; }
.fc-devops       .member-avatar { background: #F59E0B; }
.fc-ux           .member-avatar { background: #EC4899; }
.fc-ixd          .member-avatar { background: #14B8A6; }
.member-name  { font-size: 12px; font-weight: 700; color: var(--charcoal); }
.member-title { font-size: 11px; color: var(--text-muted); line-height: 1.4; }

.member-search-bar { padding: 14px 22px; border-bottom: 1px solid var(--border); }
.team-stats { padding: 12px 22px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.team-vis-label { font-size: 11px; color: var(--text-muted); }
.team-empty { padding: 40px; text-align: center; color: var(--text-muted); font-size: 13px; }

/* ═══════════════════════════════════════════════════════════════════════════
   PRODUCT HUB (detail page) — 3-column split grid
   ═══════════════════════════════════════════════════════════════════════════ */

.product-hub { padding-top: 32px; }

/* 3-col grid: main (2fr) + sidebar (1fr) — collapses to 1 col on mobile */
.product-hub-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 320px;
  gap: 24px;
  align-items: start;
}
/* Main spans first 2 columns */
.product-hub-main {
  min-width: 0;
  grid-column: 1 / 3;
}
.product-hub-sidebar { min-width: 0; }

/* ── Sidebar action buttons ─────────────────────────────────────────── */
.hub-sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
/* Primary orange — full-width */
.btn-hub-launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
  background: var(--orange);
  border: none;
  box-shadow: 0 2px 8px rgba(242,109,33,.28);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}
.btn-hub-launch:hover {
  background: var(--orange-dim);
  box-shadow: 0 4px 14px rgba(242,109,33,.38);
  transform: translateY(-1px);
}
/* Secondary outline — request access */
.btn-hub-access {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 9px 16px;
  border-radius: var(--radius);
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;                   /* slate-700 */
  background: #fff;
  border: 1.5px solid #CBD5E1;      /* slate-300 */
  transition: background var(--transition), border-color var(--transition);
  cursor: pointer;
}
.btn-hub-access:hover {
  background: #F8FAFC;              /* slate-50 */
  border-color: #94A3B8;
}

/* ── Editor toolbar strip ───────────────────────────────────────────── */
/* Uniform light-slate background, no separators, uniform icon boxes */
.editor-toolbar-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  padding: 8px 10px;
  background: #F8FAFC;              /* slate-50 */
  border-bottom: 1px solid #E2E8F0; /* slate-200 */
}
.editor-tool-btn {
  /* uniform 28×28 bounding box — pixel-perfect center alignment */
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: #64748B;                   /* slate-500 */
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  flex-shrink: 0;
}
.editor-tool-btn.wide {
  width: auto;
  padding: 0 8px;
  font-size: 11px;
  letter-spacing: .02em;
}
.editor-tool-btn:hover {
  background: #E2E8F0;              /* slate-200 */
  border-color: #CBD5E1;
  color: #1E293B;
}

/* Editor content area — clean rectangular, no pill shapes */
.hub-editor-content {
  min-height: 200px;
  outline: none;
  padding: 16px 18px;
  padding-bottom: 40px;             /* pb-10: prevents extension overlay on text */
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-primary);
  font-family: var(--font-sans);
  border: none;
  background: #fff;
}
.hub-editor-content:empty::before {
  content: attr(placeholder);
  color: var(--text-slate);
}

/* ── Editor rich-text typography — scoped to .hub-editor-content ──────── */
/* Maps editor heading/list nodes to visible CSS display outcomes          */
.hub-editor-content h1 {
  font-size: 1.875rem;   /* text-3xl */
  font-weight: 700;      /* font-bold */
  line-height: 1.25;
  display: block;
  margin: 1rem 0;
  color: var(--heading, #1e293b);
}
.hub-editor-content h2 {
  font-size: 1.5rem;     /* text-2xl */
  font-weight: 600;      /* font-semibold */
  line-height: 1.3;
  display: block;
  margin: 0.875rem 0;
  color: var(--heading, #1e293b);
}
.hub-editor-content h3 {
  font-size: 1.25rem;    /* text-xl */
  font-weight: 500;      /* font-medium */
  line-height: 1.4;
  display: block;
  margin: 0.75rem 0;
  color: var(--heading, #1e293b);
}
.hub-editor-content ul {
  list-style: disc;
  padding-left: 1.25rem; /* pl-5 */
  margin: 0.5rem 0;      /* my-2 */
}
.hub-editor-content ol {
  list-style: decimal;
  padding-left: 1.25rem; /* pl-5 */
  margin: 0.5rem 0;      /* my-2 */
}
.hub-editor-content li {
  margin: 0.25rem 0;
  line-height: 1.7;
}
.hub-editor-content strong,
.hub-editor-content b {
  font-weight: 700;
}
.hub-editor-content em,
.hub-editor-content i {
  font-style: italic;
}
.hub-editor-content u {
  text-decoration: underline;
}
.hub-editor-content p {
  margin: 0.375rem 0;
  line-height: 1.8;
}

/* ── Product Details panel — read-only preview, both roles ─────────────── */
/* No header, transparent bg, inherits pale gray page canvas, no white box  */
.hub-details-panel {
  background: transparent;
  border: 1.5px solid #E2E8F0;      /* slate-200 — matches editor frame */
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0;
  box-shadow: none;
}
/* Admin-only label shown above the read-only rich content body */
.hub-details-header {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 20px 0;
  border-bottom: 1px solid #F1F5F9;
}
.hub-details-panel-body {
  /* Re-uses .hub-editor-content typography rules for identical rendering */
  min-height: 48px;
  padding: 18px 20px;
  padding-bottom: 4px;
  background: transparent;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-primary);
  font-family: var(--font-sans);
  /* Ensure empty placeholder isn't shown in read-only mode */
  outline: none;
}
.hub-details-panel-body:empty {
  display: none;
}

/* Editor container — clean rectangular borders */
.hub-editor-block {
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1.5px solid #E2E8F0;      /* slate-200 */
  border-radius: var(--radius);     /* md — not pill */
  overflow: hidden;
  margin-top: 24px;
  box-shadow: none;
}
/* Editor header row */
.hub-editor-header {
  padding: 10px 14px;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #F8FAFC;
}
/* Popover — clean rectangular */
.hub-editor-popover {
  position: absolute; z-index: 50;
  background: #fff;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow);
  display: none;
  gap: 6px;
  align-items: center;
  min-width: 280px;
}
.hub-editor-popover.open { display: flex; }
.hub-editor-popover input {
  flex: 1;
  padding: 7px 10px;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-sm);
  font-size: 12px;
  outline: none;
}
.hub-editor-popover input:focus { border-color: var(--royal); }

.hub-back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  background: none; border: none; padding: 0;
  margin-bottom: 20px; transition: color var(--transition);
}
.hub-back-btn:hover { color: var(--charcoal); }

.product-hub-title {
  font-size: 28px; font-weight: 800;
  color: var(--charcoal); letter-spacing: -.02em;
  line-height: 1.2; margin-bottom: 0;
}
.product-hub-actions {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; margin-bottom: 20px;
}

/* Sidebar cards */
.hub-sidebar-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--glass-shadow), 0 0 20px var(--orange-glow);
}
.hub-sidebar-card-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.hub-sidebar-icon {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(135deg,#eff6ff,#dbeafe);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hub-sidebar-title { font-size: 12px; font-weight: 700; color: var(--charcoal); }
.hub-sidebar-body  { padding: 12px 16px; display: flex; flex-direction: column; gap: 6px; }

/* Info rows */
.hub-info-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 5px 0;
  border-bottom: 1px solid #F1F5F9;
  font-size: 12px;
}
.hub-info-row:last-child { border-bottom: none; }
.hub-info-label { color: var(--text-muted); font-weight: 500; }
.hub-info-value { color: var(--charcoal); font-weight: 600; }

/* Quick links */
.hub-link-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 0; border-bottom: 1px solid #F1F5F9; font-size: 12px;
}
.hub-link-row:last-child { border-bottom: none; }
.hub-link-row a {
  color: var(--royal); font-weight: 600;
  transition: color var(--transition);
}
.hub-link-row a:hover { color: var(--royal-dim); text-decoration: underline; }

/* Video card */
.hub-video-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-top: 24px;
  box-shadow: var(--glass-shadow), 0 0 20px var(--orange-glow);
}
.hub-video-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 12px; font-weight: 700; color: var(--charcoal);
}
.hub-video-container {
  position: relative; width: 100%; padding-bottom: 56.25%; background: #0a0f1e;
}
.hub-video-container iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.hub-video-nourl {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: rgba(255,255,255,.3); font-size: 13px;
}

/* hub-details-card removed from DOM — CSS rules removed to avoid dead weight */
/* hub-editor-block, editor-tool-btn, hub-editor-content defined above (lines ~968-1055) */
.hub-editor-popover {
  position: absolute; z-index: 50;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px;
  box-shadow: var(--shadow);
  display: none; gap: 6px; align-items: center;
  min-width: 280px;
}
.hub-editor-popover.open { display: flex; }
.hub-editor-popover input {
  flex: 1; padding: 7px 10px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 12px; outline: none;
}
.hub-editor-popover input:focus { border-color: var(--royal); }

/* ═══════════════════════════════════════════════════════════════════════════
   NEWSLETTER READER
   ═══════════════════════════════════════════════════════════════════════════ */

.newsletter-reader {
  margin-top: 24px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}
.newsletter-reader-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
#newsletter-frame { width: 100%; height: 520px; border: 0; display: block; background: #fff; }

/* ═══════════════════════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════════════════════ */

.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(6,20,36,.55);
  backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-backdrop.open { display: flex; }
.modal-box {
  background: #fff;
  border-radius: var(--radius-xl);
  width: 100%; max-width: 480px;
  box-shadow: 0 24px 60px rgba(0,0,0,.22);
  overflow: hidden;
}
.modal-header {
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.modal-title   { font-size: 16px; font-weight: 800; color: var(--charcoal); }
.modal-sub     { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.modal-close   { background: none; border: none; color: var(--text-muted); font-size: 18px; padding: 2px; flex-shrink: 0; }
.modal-body    { padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; }
.modal-footer  { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }
.form-group    { display: flex; flex-direction: column; gap: 5px; }
.form-label    { font-size: 12px; font-weight: 700; color: var(--charcoal); letter-spacing: .02em; }
.form-control  {
  padding: 9px 12px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 13px;
  color: var(--text-primary); background: #fff; outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus { border-color: var(--royal); box-shadow: 0 0 0 3px rgba(30,107,255,.1); }

/* ═══════════════════════════════════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════════════════════════════════ */

.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 300;
  background: var(--charcoal); color: #fff;
  padding: 12px 18px; border-radius: var(--radius-lg);
  font-size: 13px; font-weight: 500;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transform: translateY(20px); opacity: 0;
  transition: all .25s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.toast-dot { width: 6px; height: 6px; border-radius: 50%; background: #10B981; flex-shrink: 0; }
.toast.error .toast-dot { background: #EF4444; }

/* ═══════════════════════════════════════════════════════════════════════════
   SAVE STATUS
   ═══════════════════════════════════════════════════════════════════════════ */

.save-status {
  font-size: 11px; font-weight: 600;
  color: var(--text-slate); display: flex; align-items: center; gap: 4px;
}
.save-status.saved { color: #059669; }

/* ═══════════════════════════════════════════════════════════════════════════
   SITE FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(8px);
}
.footer-text { font-size: 12px; color: var(--text-muted); }
.footer-link { color: var(--orange); }
.footer-link:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════════════════
   SPINNER / LOADING
   ═══════════════════════════════════════════════════════════════════════════ */

@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--border);
  border-top-color: var(--royal);
  animation: spin .65s linear infinite;
}
.spinner-dark { border-color: rgba(255,255,255,.15); border-top-color: #fff; }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
  /* 3-col hub collapses: main full-width, sidebar below */
  .product-hub-layout {
    grid-template-columns: 1fr;
  }
  .product-hub-main { grid-column: 1; }
}
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .product-grid-balanced { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .newsletter-layout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .newsletter-layout { grid-template-columns: 1fr; }
  .chronicles-panel { padding: 20px 18px; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .site-header-inner { flex-wrap: wrap; gap: 8px; }
  .product-hub-title { font-size: 22px; }
  .user-avatar-name, .user-avatar-status { display: none; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .grid-4 { grid-template-columns: 1fr; }
  .product-grid-balanced { grid-template-columns: 1fr; }
  .page-main { padding-top: 28px; padding-bottom: 48px; }
  .product-hub { padding-top: 20px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RICH INTRO  @section: rich-intro
   Transparent read mode · admin hover-reveal pencil · inline edit card
   ═══════════════════════════════════════════════════════════════════════════ */

/* Outer wrapper — no visual weight in read mode */
.rich-intro-outer {
  position: relative;
}

/* Prose display ─────────────────────────────────────────────────────────── */
.rich-intro-prose {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-primary);      /* slate-700 — body prose */
  background: transparent;
  padding: 0;
}

/* Body text rhythm */
.rich-intro-prose p      { margin-bottom: .6rem; }
.rich-intro-prose p:last-child { margin-bottom: 0; }
.rich-intro-prose strong { color: var(--charcoal); font-weight: 600; }
.rich-intro-prose h3     { font-size: 13px; font-weight: 700; letter-spacing: .08em;
                             text-transform: uppercase; color: var(--charcoal);
                             margin-bottom: .5rem; }
.rich-intro-prose ul     { padding-left: 1.25rem; margin-bottom: .6rem; }
.rich-intro-prose ul li  { color: var(--charcoal); font-weight: 500; margin-bottom: .25rem; }
.rich-intro-prose hr     { border: none; border-top: 1px solid var(--border); margin: .75rem 0; }

/* Inline links — slate-900 + underline per spec */
.odin-intro-link,
.rich-intro-prose a {
  color: var(--charcoal);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--border);
  transition: color var(--transition), text-decoration-color var(--transition);
}
.odin-intro-link:hover,
.rich-intro-prose a:hover {
  color: var(--royal);
  text-decoration-color: var(--royal);
}

/* Admin hover-reveal edit button ─────────────────────────────────────────── */
.rich-intro-edit-btn {
  display: none;              /* JS overrides to inline-flex for admins */
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transition), color var(--transition);
}
.rich-intro-outer:hover .rich-intro-edit-btn { opacity: 1; }
.rich-intro-edit-btn:hover { color: var(--charcoal); border-color: #cbd5e1; }

/* Edit-mode card ─────────────────────────────────────────────────────────── */
.rich-intro-editor-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* Toolbar row */
.rich-intro-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--grey-bg);
  flex-wrap: wrap;
}

/* Toolbar buttons */
.ri-tbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 5px;
  font-size: 13px;
  font-family: var(--font-sans);
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.ri-tbtn:hover { background: var(--border); color: var(--charcoal); }

/* Separator */
.ri-sep {
  display: inline-block;
  width: 1px; height: 18px;
  background: var(--border);
  margin: 0 4px;
}

/* Editable area */
.rich-intro-editable {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-primary);
  outline: none;
  caret-color: var(--royal);
}
.rich-intro-editable:focus { outline: none; }
.rich-intro-editable a { color: var(--royal); text-decoration: underline; }

/* Action row */
.rich-intro-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 16px;
  border-top: 1px solid var(--border);
  background: var(--grey-bg);
}

.ri-discard {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.ri-discard:hover { background: var(--border); color: var(--charcoal); }

.ri-save {
  padding: 6px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  background: var(--royal);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}
.ri-save:hover { background: var(--royal-dim); }

/* ── Unified hub description block: hover-reveal edit pencil ─────────── */
.hub-desc-block {
  position: relative;
  min-height: 48px;
}
/* Always show a faint pencil hint so admin knows it's editable */
.hub-desc-block .hub-desc-edit-btn {
  opacity: 0.25;
  transition: opacity 0.2s;
}
/* Full opacity on hover */
.hub-desc-block:hover .hub-desc-edit-btn {
  opacity: 1;
}
