/* ============================================================
   main.css — Gold Standard: Global Framework & Layout Scaffolding
   Project: DataOrbix / Elment Hub
   Load Order: theme.css → main.css → app-components.css
   ============================================================
   Owns: CSS reset, element defaults, typography, navigation shell,
   standard grids, flex patterns, icon mechanics, responsive system,
   animations/keyframes, accessibility, print styles.
   ============================================================ */


/* ── §1  CSS RESET ─────────────────────────────────────────── */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}

img,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* ── §2  GLOBAL ELEMENT DEFAULTS ──────────────────────────── */

body {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* ── §3  TYPOGRAPHY BASE ───────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--text-primary);
}

strong, b {
  font-weight: 700;
  color: var(--text-primary);
}

small {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

ul, ol {
  list-style: none;
}

hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: var(--spacing-xl) 0;
}

/* ── §4  ACCESSIBILITY & FOCUS ─────────────────────────────── */

/* Keyboard focus ring — only visible during keyboard navigation */
*:focus-visible {
  outline: none;
  box-shadow: var(--ix-focus-ring);
}

/* Remove default outline for mouse users */
*:focus:not(:focus-visible) {
  outline: none;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--spacing-md);
  z-index: var(--z-toast);
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm) var(--spacing-md);
  font-weight: 600;
  font-size: var(--font-size-sm);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--spacing-md);
}

/* Screen reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}


/* ── §5  LAYOUT SCAFFOLDING ────────────────────────────────── */

.container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  width: 100%;
}

.container--narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.container--wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* Platform wrapper */
.platform-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
}

/* Main content area — offset for fixed nav */
main,
.main-content,
[class*="-main"],
.platform-main {
  padding-top: var(--nav-height);
}

/* Section padding standard */
section {
  padding: var(--spacing-3xl) 0;
}


/* ── §6  GRID SYSTEM ───────────────────────────────────────── */

/* Standard responsive auto-grid */
.grid {
  display: grid;
  gap: var(--spacing-xl);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Auto-fit responsive grid */
.grid--auto-sm { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid--auto-md { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--auto-lg { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }

/* Asymmetric layouts */
.grid--1-2 { grid-template-columns: 1fr 2fr; }
.grid--2-1 { grid-template-columns: 2fr 1fr; }
.grid--1-3 { grid-template-columns: 1fr 3fr; }
.grid--3-1 { grid-template-columns: 3fr 1fr; }


/* ── §7  FLEX PATTERNS ─────────────────────────────────────── */

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

.gap-xs  { gap: var(--spacing-xs); }
.gap-sm  { gap: var(--spacing-sm); }
.gap-md  { gap: var(--spacing-md); }
.gap-lg  { gap: var(--spacing-lg); }
.gap-xl  { gap: var(--spacing-xl); }
.gap-2xl { gap: var(--spacing-2xl); }


/* ── §8  NAVIGATION (Global Shell) ────────────────────────── */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background-color: rgba(17, 17, 17, 0.96);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  min-height: var(--nav-height);
  transition: background-color var(--transition-base), border-color var(--transition-base);
}

/* Light mode navbar */
body[data-theme="light"] .navbar {
  background-color: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
}

/* Light mode navbar — scrolled: frosted-glass effect to match dark theme */
body[data-theme="light"] .navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 0 rgba(255, 255, 255, 0.6) inset !important;
}

/* Landing page: floating pill navbar */
body[data-page="landing"] .navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: var(--max-content-width);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
}

body[data-page="landing"] .navbar.navbar-scrolled {
  top: 10px;
  background: rgba(18, 18, 20, 0.80);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.30);
  transform: translateX(-50%) scale(1.02);
}

body[data-theme="light"][data-page="landing"] .navbar {
  background-color: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid var(--border-color) !important;
  backdrop-filter: blur(12px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(160%) !important;
}

/* Light mode landing navbar — scrolled: frosted-glass pill */
body[data-theme="light"][data-page="landing"] .navbar.navbar-scrolled {
  background: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.08), 0 1px 0 rgba(255, 255, 255, 0.7) inset !important;
}

.nav-container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-shrink: 0;
  height: var(--nav-height);
}

.nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--nav-height);
  width: auto;
}

.nav-logo-img {
  height: 100%;
  width: auto;
  max-height: 40px;
  object-fit: contain;
}

.brand-text-container {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.brand-tagline {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  font-weight: 400;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  flex: 1;
  justify-content: center;
  margin: 0 var(--spacing-md);
  min-height: var(--nav-height);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  flex-shrink: 0;
  min-height: var(--nav-height);
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--font-size-sm);
  transition: var(--transition-surface), color var(--transition-fast);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-md);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.nav-link:hover {
  color: var(--text-primary);
  background-color: var(--item-hover-bg);
}

.nav-link.active {
  color: var(--text-primary);
  background-color: var(--item-hover-bg-alt);
  font-weight: 600;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
  margin-left: var(--spacing-md);
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: var(--radius-full);
  transition: var(--transition-base);
}

/* Landing page: logo-only navbar variant */
.navbar[data-page-type="landing"] .nav-container {
  justify-content: center;
  position: relative;
  height: 76px;
}

.navbar[data-page-type="landing"] .nav-brand { flex: unset; justify-content: center; }

.navbar[data-page-type="landing"] .nav-menu,
.navbar[data-page-type="landing"] .nav-actions,
.navbar[data-page-type="landing"] .nav-toggle { display: none !important; }

.navbar[data-page-type="landing"] .nav-logo { height: 64px; }
.navbar[data-page-type="landing"] .nav-logo-img { max-height: 64px; height: 64px; }


/* ── §9  FOOTER ────────────────────────────────────────────── */

footer,
.site-footer {
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  padding: var(--spacing-xl) 0;
}


/* ── §10  UNIVERSAL ICON MECHANICS ─────────────────────────── */
/*
   All SVG icons default to --icon-color (muted grey at rest).
   Hovering any interactive ancestor (card, row, link, button)
   forces child icons to --icon-hover instantly via !important.
*/

/* Default SVG icon state */
svg {
  stroke: var(--icon-color);
  transition: var(--transition-icon);
  fill: none;
}

/* Semantic wildcard: any interactive parent hover → icon brightens */
a:hover svg,
button:hover svg,
[role="button"]:hover svg,
.card:hover svg,
.do-pillar:hover svg,
.do-surface-card:hover svg,
.nav-link:hover svg,
.workflow-step:hover svg,
.capability-card:hover svg,
.metric-card:hover svg,
.domain-card:hover svg,
.info-card:hover svg,
.primary-action-card:hover svg,
.mapping-domain-card:hover svg,
.compliance-item:hover svg,
.checklist-item:hover svg,
li:hover svg {
  stroke: var(--icon-hover) !important;
}

/* Icon wrapper utility */
.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-wrap svg {
  width: var(--icon-size-md);
  height: var(--icon-size-md);
  stroke: var(--icon-color);
  stroke-width: 1.5px;
  fill: none;
  transition: var(--do-transition-icon);
}

.icon-sm svg { width: var(--icon-size-sm); height: var(--icon-size-sm); }
.icon-lg svg { width: var(--icon-size-lg); height: var(--icon-size-lg); }


/* ── §11  SECTION SHELLS ───────────────────────────────────── */

/* ── §11a  SURFACE CARD — Inter-card vertical rhythm ───────────
   Padding/border/bg live in app-components.css §3.
   Only the between-card gap lives here so every page inherits it.
   ──────────────────────────────────────────────────────────── */
.do-surface-card {
  margin-bottom: 2rem;
}

.do-surface-card:last-child {
  margin-bottom: 0;
}

/* Standard content section */
.section-gradient {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  margin: var(--spacing-2xl) var(--spacing-lg);
  padding: var(--spacing-3xl) var(--spacing-2xl);
  border-top: 1px solid var(--border-color);
  border-right: none;
  border-bottom: none;
  border-left: none;
  overflow: hidden;
  position: relative;
  transition: background var(--transition-slow);
}

.section-header {
  text-align: left;
  margin-bottom: var(--spacing-3xl);
  margin-top: var(--spacing-xl);
  max-width: 800px;
  opacity: 0;
  transform: translateY(20px);
  animation: fade-in-up 0.8s ease-out 0.2s both;
}

.section-title {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.section-subtitle {
  font-size: var(--font-size-xl);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: var(--spacing-lg);
}

/* Named sections */
.capabilities,
.workflow,
.compliance,
.cta {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  border-right: none;
  border-bottom: none;
  border-left: none;
  margin: var(--spacing-2xl) var(--spacing-lg);
  padding: var(--spacing-3xl) var(--spacing-2xl);
  border-radius: var(--radius-xl);
  transition: background var(--transition-slow);
  position: relative;
  overflow: hidden;
}


/* ── §12  ANIMATION KEYFRAMES ──────────────────────────────── */

@keyframes fade-in-up {
  0%   { opacity: 0; transform: translate3d(0, 30px, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(50px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.05); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes scroll-bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) rotate(45deg) translateY(0); }
  40% { transform: translateX(-50%) rotate(45deg) translateY(-10px); }
  60% { transform: translateX(-50%) rotate(45deg) translateY(-5px); }
}

/* Animation utility classes */
.animate-fade-in-up  { animation: fadeInUp 0.8s ease-out forwards; }
.animate-fade-in-down { animation: fadeInDown 0.8s ease-out forwards; }
.animate-fade-in-left { animation: fadeInLeft 0.8s ease-out forwards; }
.animate-fade-in-right { animation: fadeInRight 0.8s ease-out forwards; }
.animate-slide-in-up  { animation: slideInUp 0.6s ease-out forwards; }
.animate-pulse        { animation: pulse 2s infinite; }
.animate-float        { animation: float 3s ease-in-out infinite; }

/* Stagger delays for grid children */
.stagger > *:nth-child(1) { animation-delay: 0.1s; }
.stagger > *:nth-child(2) { animation-delay: 0.2s; }
.stagger > *:nth-child(3) { animation-delay: 0.3s; }
.stagger > *:nth-child(4) { animation-delay: 0.4s; }
.stagger > *:nth-child(5) { animation-delay: 0.5s; }
.stagger > *:nth-child(6) { animation-delay: 0.6s; }


/* ── §13  UTILITY CLASSES ──────────────────────────────────── */

/* Text */
.text-primary   { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted     { color: var(--text-muted) !important; }
.text-disabled  { color: var(--text-disabled) !important; }
.text-sm   { font-size: var(--font-size-sm); }
.text-xs   { font-size: var(--font-size-xs); }
.text-lg   { font-size: var(--font-size-lg); }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.08em; }
.tracking-widest { letter-spacing: 0.14em; }

/* Background */
.bg-primary     { background-color: var(--bg-primary) !important; }
.bg-surface     { background-color: var(--bg-surface) !important; }
.bg-sub-surface { background-color: var(--bg-sub-surface) !important; }

/* Border */
.border         { border: 1px solid var(--border-color); }
.border-top     { border-top: 1px solid var(--border-color); }
.border-bottom  { border-bottom: 1px solid var(--border-color); }
.rounded        { border-radius: var(--radius-md); }
.rounded-sm     { border-radius: var(--radius-sm); }
.rounded-lg     { border-radius: var(--radius-lg); }
.rounded-full   { border-radius: var(--radius-full); }

/* Spacing */
.p-sm  { padding: var(--spacing-sm); }
.p-md  { padding: var(--spacing-md); }
.p-lg  { padding: var(--spacing-lg); }
.p-xl  { padding: var(--spacing-xl); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

/* Display */
.hidden        { display: none !important; }
.block         { display: block; }
.inline-flex   { display: inline-flex; }
.w-full        { width: 100%; }
.relative      { position: relative; }
.overflow-hidden { overflow: hidden; }


/* ── §14  RESPONSIVE BREAKPOINTS ───────────────────────────── */

@media (max-width: 1200px) {
  .container { padding: 0 var(--spacing-md); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .grid--1-2,
  .grid--2-1,
  .grid--1-3,
  .grid--3-1 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  h1 { font-size: var(--font-size-4xl); }
  h2 { font-size: var(--font-size-3xl); }
  h3 { font-size: var(--font-size-2xl); }

  section { padding: var(--spacing-2xl) 0; }

  .section-gradient,
  .capabilities,
  .workflow,
  .compliance,
  .cta {
    margin: var(--spacing-md) var(--spacing-sm);
    padding: var(--spacing-2xl) var(--spacing-lg);
  }

  .grid--2 { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: 1fr; }
  .grid--auto-lg { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

  /* Nav mobile */
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-md);
    gap: var(--spacing-xs);
  }

  .nav-menu.is-open { display: flex; }

  .nav-toggle { display: flex; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--spacing-sm); }

  .section-gradient,
  .capabilities,
  .workflow,
  .compliance,
  .cta {
    margin: var(--spacing-sm) 0;
    padding: var(--spacing-xl) var(--spacing-md);
    border-radius: var(--radius-md);
  }
}


/* ── §15  PRINT STYLES ─────────────────────────────────────── */

@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
  }

  .navbar,
  .nav-toggle,
  footer { display: none !important; }

  main { padding-top: 0 !important; }

  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: var(--font-size-xs);
    color: #555;
  }

  h1, h2, h3 { page-break-after: avoid; }
  img { page-break-inside: avoid; }
}


/* ── §16  APP PAGE FOOTER ──────────────────────────────────── */

/* Minimal footer that sits below main content on app pages */
.app-page-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--spacing-md, 12px) var(--spacing-lg, 24px);
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface);
}

/* ── §17  DORI NAV TRIGGER VISIBILITY ──────────────────────── */

/* Hide the DORI chat icon on the home/landing page */
body[data-page="home"] .dori-nav-trigger { display: none !important; }


/* ── §17  FOOTER THEME TOGGLE ──────────────────────────────── */

/* Inline button group for 3-state theme control in the footer */
.footer-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: var(--spacing-sm, 8px);
}

.footer-theme-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: var(--font-size-xs, 12px);
  font-weight: 500;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: var(--radius-sm, 4px);
  transition: color var(--transition-fast, 0.15s ease), background var(--transition-fast, 0.15s ease);
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1.4;
  font-family: var(--font-family-primary);
}

.footer-theme-btn:hover {
  color: var(--text-secondary);
  background: var(--item-hover-bg);
}

.footer-theme-btn.is-active {
  color: var(--text-primary);
  background: var(--item-hover-bg);
}

/* Subtle separator between buttons */
.footer-theme-btn + .footer-theme-btn {
  border-left: 1px solid var(--border-color);
  border-radius: 0 var(--radius-sm, 4px) var(--radius-sm, 4px) 0;
}

.footer-theme-btn:first-child { border-radius: var(--radius-sm, 4px) 0 0 var(--radius-sm, 4px); }
