/* SCPress platform stylesheet - layout and presentation structure are core-owned. */
:root,
[data-theme="light"] {
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-slot: rgba(241, 245, 249, 0.9);
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  --primary: #4f46e5;
  --primary-glow: rgba(79, 70, 229, 0.2);
  --accent: #0284c7;
  --border: #e2e8f0;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 0 0 1px var(--border);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Fluid Viewport Default Insets: 0px = 100% Full Viewport Canvas */
  --sc-space-top: 0px;
  --sc-space-bottom: 0px;
  --sc-space-left: 0px;
  --sc-space-right: 0px;
  --sc-content-padding: 2.5rem;
}

.sc-article-share {
  position: relative;
  z-index: 10;
  isolation: isolate;
  overflow: visible;
}
.sc-engagement-share-card { position: relative; z-index: 30; overflow: visible; }
.sc-article-share .sc-share-icon-links { position: relative; z-index: 1; overflow: visible; }
.sc-article-share .sc-share-icon {
  width: 36px;
  height: 36px;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: var(--share-icon-bg, var(--bg-card));
  color: var(--share-icon-color, var(--text-main));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background-color .18s ease;
}
.sc-article-share .sc-share-icon[data-share-network="facebook"] { --share-icon-bg: #1877f2; --share-icon-color: #fff; color: #fff !important; }
.sc-article-share .sc-share-icon[data-share-network="twitter"] { --share-icon-bg: transparent; --share-icon-color: #111827; color: #111827 !important; }
.sc-article-share .sc-share-icon[data-share-network="linkedin"] { --share-icon-bg: transparent; --share-icon-color: #0a84ff; color: #0a84ff !important; }
.sc-article-share .sc-share-icon[data-share-network="whatsapp"] { --share-icon-bg: #25d366; --share-icon-color: #fff; color: #fff !important; }
[data-theme="dark"] .sc-article-share .sc-share-icon[data-share-network="twitter"] { --share-icon-color: #f8fafc; color: #f8fafc !important; }
[data-theme="dark"] .sc-article-share .sc-share-icon[data-share-network="linkedin"] { --share-icon-color: #38bdf8; color: #38bdf8 !important; }
.sc-article-share .sc-share-icon[data-share-network="facebook"] svg path,
.sc-article-share .sc-share-icon[data-share-network="twitter"] svg path,
.sc-article-share .sc-share-icon[data-share-network="linkedin"] svg path,
.sc-article-share .sc-share-icon[data-share-network="whatsapp"] svg path { fill: var(--share-icon-color) !important; }
.sc-article-share .sc-share-icon:is(:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.sc-article-share .sc-share-icon:is(:hover, :focus-visible) {
  z-index: 2;
  transform: translateY(-2px) scale(1.15);
  filter: saturate(1.12);
}

[data-theme="dark"] {
  --bg-body: #090a0f;
  --bg-card: rgba(18, 20, 29, 0.85);
  --bg-card-hover: rgba(28, 32, 48, 0.95);
  --bg-slot: rgba(14, 16, 24, 0.7);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.35);
  --accent: #38bdf8;
  --border: rgba(255, 255, 255, 0.08);
  --shadow-card: 0 4px 24px -2px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border);
}

.sc-archive-engagement {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: var(--text-dim);
  font-size: 0.78rem;
  line-height: 1;
}
.sc-archive-engagement > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.sc-archive-engagement svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

html,
body {
  width: 100%;
  min-height: 100vh;
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* =========================================================
   FLUID VIEWPORT GRID SHELL
   ========================================================= */
.sc-viewport-shell {
  display: grid;
  grid-template-rows: var(--sc-space-top, 0px) 1fr var(--sc-space-bottom, 0px);
  grid-template-columns: var(--sc-space-left, 0px) minmax(0, 1fr) var(--sc-space-right, 0px);
  column-gap: var(--sc-layout-gap, 0px);
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  transition: grid-template-rows 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    grid-template-columns 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sc-viewport-shell.sc-layout-has-top {
  grid-template-rows: max(var(--sc-space-top, 0px), 70px) 1fr var(--sc-space-bottom, 0px);
}

/* TOP SLOT (Header Bar) */
.sc-layout-has-top .sc-slot-top {
  position: fixed;
  inset: 0 0 auto 0;
  height: max(var(--sc-space-top, 0px), 70px);
  width: 100%;
  overflow: visible;
  z-index: 1100;
}

.sc-card > .sc-card-featured-visual {
  flex: 0 0 auto;
}
.sc-slot-top {
  position: sticky;
  top: 0;
  grid-row: 1;
  grid-column: 1 / -1;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.75rem;
  z-index: 1100;
}

.sc-slot-top > .sc-futuristic-header {
  width: 100%;
  margin: 0;
}

/* BOTTOM SLOT (Footer Bar) */
.sc-slot-bottom {
  grid-row: 3;
  grid-column: 1 / -1;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.75rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  z-index: 40;
}

/* LEFT SIDEBAR SLOT */
.sc-slot-left {
  grid-row: 2;
  grid-column: 1;
  position: sticky;
  top: max(var(--sc-space-top, 70px), 0px);
  bottom: max(var(--sc-space-bottom, 0px), 0px);
  margin-top: auto;
  margin-bottom: auto;
  align-self: center;
  height: fit-content;
  height: -moz-fit-content;
  max-height: 450px;
  background: var(--bg-slot);
  backdrop-filter: blur(8px);
  border-right: var(--sc-sidebar-border-width, 1px) solid var(--border);
  border-radius: 0 var(--sc-sidebar-radius, 0px) var(--sc-sidebar-radius, 0px) 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  padding: 6px 12px;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--sc-sidebar-widget-gap, 14px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* RIGHT SIDEBAR SLOT */
.sc-slot-right {
  grid-row: 2;
  grid-column: 3;
  position: sticky;
  top: max(var(--sc-space-top, 70px), 0px);
  bottom: max(var(--sc-space-bottom, 0px), 0px);
  margin-top: auto;
  margin-bottom: auto;
  align-self: center;
  height: fit-content;
  height: -moz-fit-content;
  max-height: 450px;
  background: var(--bg-slot);
  backdrop-filter: blur(8px);
  border-left: var(--sc-sidebar-border-width, 1px) solid var(--border);
  border-radius: var(--sc-sidebar-radius, 0px) 0 0 var(--sc-sidebar-radius, 0px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  padding: 6px 12px;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--sc-sidebar-widget-gap, 14px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sc-slot-left > *,
.sc-slot-right > * {
  flex-shrink: 0 !important;
  min-height: min-content !important;
  box-sizing: border-box !important;
}

.sc-slot-left,
.sc-slot-right {
  overflow: visible !important;
  padding: 0 !important;
}

.sc-sidebar-scroll-container {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--sc-sidebar-widget-gap, 14px) !important;
  width: 100% !important;
  max-height: inherit !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: thin;
  padding: 1.25rem 1rem !important;
  box-sizing: border-box !important;
  border-radius: inherit !important;
}

.sc-sidebar-toggle {
  position: fixed;
  z-index: 1202;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--sc-sidebar-toggle-size, 34px);
  height: var(--sc-sidebar-toggle-size, 34px);
  padding: 0;
  color: var(--sc-sidebar-toggle-color, var(--text-main));
  background: var(--sc-sidebar-toggle-background, var(--bg-card, #fff));
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}
.sc-sidebar-toggle[hidden] { display: none !important; }
[data-theme="dark"] .sc-sidebar-toggle,
html[data-theme="dark"] .sc-sidebar-toggle,
body[data-theme="dark"] .sc-sidebar-toggle {
  color: var(--text-main, #f8fafc) !important;
  background: var(--bg-card, #12141d) !important;
  border-color: var(--border, #334155) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .42) !important;
}
[data-theme="dark"] .sc-sidebar-toggle:hover,
html[data-theme="dark"] .sc-sidebar-toggle:hover,
body[data-theme="dark"] .sc-sidebar-toggle:hover,
[data-theme="dark"] .sc-sidebar-toggle:focus-visible,
html[data-theme="dark"] .sc-sidebar-toggle:focus-visible,
body[data-theme="dark"] .sc-sidebar-toggle:focus-visible {
  color: var(--text-main, #f8fafc) !important;
  background: var(--bg-card-hover, #1c2030) !important;
  border-color: var(--primary, #6366f1) !important;
}
.sc-sidebar-toggle { top: var(--sc-sidebar-toggle-top, 64px); }
.sc-sidebar-toggle-left:not(.sc-slot-left *) { left: max(6px, calc(var(--sc-space-left, 0px) - 14px)); }
.sc-sidebar-toggle-right:not(.sc-slot-right *) { right: max(6px, calc(var(--sc-space-right, 0px) - 14px)); }
.sc-slot-left {
  width: var(--sc-space-left-expanded, 280px);
}
.sc-slot-right {
  width: var(--sc-space-right-expanded, 280px);
}
.sc-sidebar-toggle img { width: 100%; height: 100%; object-fit: contain; }
.sc-sidebar-toggle-symbol { font-size: calc(1em + 2px); font-weight: 800; line-height: 1; }
.sc-sidebar-toggle-label { font-size: .7em; font-weight: 700; line-height: 1; }
.sc-sidebar-left-collapsed .sc-slot-left:not(.sc-sidebar-float-mode),
.sc-sidebar-right-collapsed .sc-slot-right:not(.sc-sidebar-float-mode) {
  overflow: visible !important;
  z-index: 100 !important;
  pointer-events: none !important;
}
.sc-sidebar-left-collapsed .sc-slot-left .sc-sidebar-scroll-container,
.sc-sidebar-right-collapsed .sc-slot-right .sc-sidebar-scroll-container {
  visibility: hidden !important;
  pointer-events: none !important;
}
.sc-sidebar-slide-side.sc-sidebar-left-collapsed .sc-slot-left { transform: translateX(-100%); }
.sc-sidebar-slide-side.sc-sidebar-right-collapsed .sc-slot-right { transform: translateX(100%); }
.sc-sidebar-slide-top.sc-sidebar-left-collapsed .sc-slot-left,
.sc-sidebar-slide-top.sc-sidebar-right-collapsed .sc-slot-right { transform: translateY(-100%); }

/* Sidebar navigation uses the same menu data and features as header menus, in a vertical stack. */
.sc-sidebar-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  position: relative;
  width: 100%;
  margin: 0 0 12px;
}
.sc-sidebar-nav .sc-nav-dropdown-wrap { position: relative; width: 100%; }
.sc-sidebar-nav .sc-nav-dropdown-wrap.sc-nav-megamenu-wrap { position: relative; }
.sc-sidebar-nav .sc-sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: var(--radius-md, 8px);
  color: var(--text-main);
  text-decoration: none;
  line-height: 1.25;
  box-sizing: border-box;
}
.sc-sidebar-nav .sc-sidebar-nav-link:hover,
.sc-sidebar-nav .sc-sidebar-nav-link.active {
  color: var(--primary);
  background: var(--bg-card-hover);
}
.sc-sidebar-left-nav .sc-nav-dropdown-flyout,
.sc-sidebar-left-nav .sc-nav-megamenu-panel {
  top: 0;
  left: 100%;
  right: auto;
  margin: 0 0 0 6px;
}
.sc-sidebar-right-nav .sc-nav-dropdown-flyout,
.sc-sidebar-right-nav .sc-nav-megamenu-panel {
  top: 0;
  left: auto;
  right: 100%;
  margin: 0 6px 0 0;
}
.sc-sidebar-nav .sc-nav-megamenu-panel {
  width: min(640px, calc(100vw - 320px));
  min-width: min(300px, calc(100vw - 320px));
  max-width: 640px;
  padding: 12px;
  flex-direction: column;
  gap: 6px;
  transform: translateY(10px);
}
.sc-sidebar-left-nav .sc-nav-dropdown-wrap:hover .sc-nav-megamenu-panel,
.sc-sidebar-left-nav .sc-nav-dropdown-wrap:focus-within .sc-nav-megamenu-panel,
.sc-sidebar-right-nav .sc-nav-dropdown-wrap:hover .sc-nav-megamenu-panel,
.sc-sidebar-right-nav .sc-nav-dropdown-wrap:focus-within .sc-nav-megamenu-panel {
  transform: translateY(0);
}

.sc-menu-preview-vertical {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: min(280px, 100%);
  padding: 6px 12px;
}
.sc-menu-preview-vertical .sc-preview-link {
  min-height: 32px;
  padding: 6px 12px;
  border-radius: var(--radius-md, 8px);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

/* MAIN FLUID CANVAS (Takes 100% of available viewport space) */
.sc-slot-canvas {
  grid-row: 2;
  grid-column: 2;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 100%;
  padding: var(--sc-content-padding);
  display: flex;
  flex-direction: column;
  gap: var(--sc-content-element-gap, 0px);
  position: relative;
}

/* If a slot has 0px height or width, hide it completely */
.sc-slot-hidden {
  display: none !important;
}

/* =========================================================
   FLOATING CORNER HUD (Quick Controls when Header is 0px)
   ========================================================= */
.sc-layout-has-top .sc-futuristic-header {
  position: relative;
  z-index: 1101;
  width: 100%;
  min-height: max(var(--sc-space-top), 70px);
  height: auto;
  box-sizing: border-box;
  padding: 6px 12px;
  margin: 0;
}

.sc-header-controls {
  position: static;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  min-width: 0;
}

.sc-header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  min-width: 0;
  margin-left: auto;
}

.sc-header-actions .sc-market-header-cart {
  position: relative;
  display: inline-flex;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  margin: 0 8px 0 0;
  padding: 0;
  line-height: 1;
}

.sc-header-actions .sc-header-search {
  transform: translateX(-6px);
}

.sc-market-header-cart svg {
  display: block;
  flex: none;
}

.sc-market-header-cart-badge {
  position: absolute;
  top: -2px;
  right: -1px;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 1px solid var(--bg-body, #fff);
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}
.sc-futuristic-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 2.25rem;
}

.sc-futuristic-header .sc-brand-badge {
  margin-bottom: 0;
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0px;
}

.sc-brand-title {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.2;
}

.sc-brand-tagline {
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.2;
}

/* =========================================================
   FUTURISTIC DROPDOWN CONTROLS
   ========================================================= */
.sc-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.sc-dropdown-trigger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  color: var(--text-main);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.sc-dropdown-trigger-btn:hover {
  border-color: var(--primary);
  box-shadow: 0 0 16px var(--primary-glow);
  transform: translateY(-1px);
}

.sc-trigger-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.sc-trigger-label {
  display: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.sc-trigger-chevron {
  display: none;
}

/* Expanded State: Only show name, icon collapsed */
.sc-dropdown-wrapper.active .sc-dropdown-trigger-btn {
  width: auto;
  height: 38px;
  padding: 0 1.15rem;
  border-radius: 9999px;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.sc-dropdown-wrapper.active .sc-trigger-avatar {
  display: none;
}

.sc-dropdown-wrapper.active .sc-trigger-label {
  display: inline-block;
}

.sc-dropdown-wrapper.active .sc-trigger-chevron {
  display: none;
}

/* Floating Glass Dropdown Panel */
.sc-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  width: 270px;
  border-radius: 18px;
  padding: 0.55rem;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.2s;
}

[data-theme="light"] .sc-dropdown-menu {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 20px 45px -8px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

[data-theme="dark"] .sc-dropdown-menu {
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 50px -8px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.sc-dropdown-wrapper.active .sc-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* User Card in Dropdown */
.sc-dd-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(125, 125, 125, 0.04);
}

.sc-dd-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 0 12px var(--primary-glow);
  flex-shrink: 0;
}

.sc-dd-userinfo {
  overflow: hidden;
}

.sc-dd-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.sc-dd-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  margin-top: 2px;
}

.sc-dd-divider {
  height: 1px;
  background: var(--border);
  margin: 0.45rem 0.35rem;
  opacity: 0.6;
}

/* Dropdown Menu Items */
.sc-dd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.sc-dd-item:hover {
  background: rgba(99, 102, 241, 0.08);
}

[data-theme="dark"] .sc-dd-item:hover {
  background: rgba(255, 255, 255, 0.07);
}

.sc-dd-item-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.sc-dd-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(125, 125, 125, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.sc-dd-item:hover .sc-dd-icon {
  background: rgba(99, 102, 241, 0.16);
  color: var(--primary);
}

.sc-dd-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
}

.sc-dd-subtext {
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.2;
  margin-top: 2px;
}

/* Interactive Theme Switch inside Dropdown */
.sc-dd-theme-row:hover .sc-theme-icon-slot {
  background: rgba(245, 158, 11, 0.18);
  color: #f59e0b;
}

.sc-mini-switch {
  width: 36px;
  height: 20px;
  border-radius: 9999px;
  background: rgba(125, 125, 125, 0.25);
  position: relative;
  transition: background-color 0.25s ease;
  flex-shrink: 0;
}

.sc-mini-switch.active {
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.sc-mini-switch-knob {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  position: absolute;
  top: 2px;
  left: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sc-mini-switch.active .sc-mini-switch-knob {
  transform: translateX(16px);
}

/* Danger Item (Logout) */
.sc-dd-danger:hover {
  background: rgba(239, 68, 68, 0.09) !important;
}

.sc-dd-danger:hover .sc-dd-icon {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #ef4444 !important;
}

.sc-dd-danger:hover .sc-dd-label {
  color: #ef4444;
}
.sc-canvas-hud,
.sc-hud {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
}

.sc-hud-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease;
}

.sc-hud-link:hover {
  color: var(--text-main);
}

/* Day / Night Mode Toggle */
.sc-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(125, 125, 125, 0.1);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sc-theme-toggle:hover {
  color: var(--text-main);
  background: rgba(125, 125, 125, 0.2);
  border-color: var(--primary);
  transform: scale(1.05);
}

[data-theme="dark"] .sc-theme-toggle .sc-icon-sun {
  display: block;
}

[data-theme="dark"] .sc-theme-toggle .sc-icon-moon {
  display: none;
}

[data-theme="light"] .sc-theme-toggle .sc-icon-sun {
  display: none;
}

[data-theme="light"] .sc-theme-toggle .sc-icon-moon {
  display: block;
}

/* =========================================================
   CANVAS CONTENT & TYPOGRAPHY
   ========================================================= */
.sc-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0px;
  margin-bottom: 1.5rem;
}

.sc-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  box-shadow: 0 0 16px var(--primary-glow);
}

.sc-canvas-hero {
  margin-bottom: 2.5rem;
}

h1,
h2,
h3,
h4,
h5,
h6,
.sc-heading,
.sc-canvas-title,
.sc-brand-title {
  font-family: var(--font-heading, var(--font-sans));
  font-weight: var(--heading-weight, 800);
  letter-spacing: var(--heading-tracking, -0.03em);
  text-shadow: var(--heading-shadow, none);
}

h1,
.sc-canvas-title {
  font-size: var(--font-size-h1, 38px);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

h2 {
  font-size: var(--font-size-h2, 28px);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

h3 {
  font-size: var(--font-size-h3, 22px);
  line-height: 1.3;
}

p,
.sc-canvas-desc,
.sc-card p {
  font-family: var(--font-sans);
  font-size: var(--font-size-base, 15px);
}

[data-theme="dark"] .sc-canvas-title {
  background: linear-gradient(180deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .sc-canvas-title {
  color: #0f172a;
}

.sc-canvas-desc {
  color: var(--text-muted);
  max-width: 700px;
}

.sc-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 2rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.sc-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
}

.sc-card p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.sc-card a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Dynamic Widget Zone Grid inside Canvas */
.sc-widget-zone {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.sc-widget-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

@media (max-width: 900px) {
  .sc-viewport-shell {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto auto auto !important;
    column-gap: 0;
    row-gap: var(--sc-layout-gap, 0px);
  }

  .sc-slot-left,
  .sc-slot-right {
    grid-column: 1 !important;
  }

  .sc-slot-top { grid-row: 1 !important; grid-column: 1 !important; }
  .sc-layout-has-top .sc-slot-top { position: sticky; inset: auto; top: 0; height: auto; min-height: max(var(--sc-space-top, 0px), 70px); }
  .sc-slot-left { grid-row: 2 !important; }
  .sc-slot-canvas { grid-row: 3 !important; grid-column: 1 !important; min-width: 0; max-width: 100%; }
  .sc-slot-right { grid-row: 4 !important; }
  .sc-slot-bottom { grid-row: 5 !important; grid-column: 1 !important; }

  .sc-slot-left,
  .sc-slot-right {
    max-height: 550px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .sc-sidebar-left-collapsed .sc-slot-left,
  .sc-sidebar-right-collapsed .sc-slot-right {
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    border-width: 0;
  }
}

.sc-mobile-nav-toggle {
  display: none;
}

@media (max-width: 768px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .sc-viewport-shell,
  .sc-slot-canvas {
    min-width: 0;
    max-width: 100%;
  }

  .sc-slot-canvas {
    padding: 12px;
  }

  .sc-slot-top {
    gap: 8px;
    padding: 0 12px;
  }

  .sc-top-brand-badge {
    flex: 0 1 auto;
    min-width: 0;
    max-width: calc(100vw - 145px);
  }

  .sc-top-brand-badge .sc-brand-title,
  .sc-top-brand-badge .sc-brand-tagline {
    white-space: nowrap;
  }

  .sc-mobile-nav-toggle {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-main);
    cursor: pointer;
  }

  .sc-layout-has-top .sc-top-nav-toggle {
    display: inline-flex;
  }

  .sc-layout-has-top .sc-header-nav-toggle {
    display: inline-flex !important;
  }

  .sc-layout-has-top .sc-header-nav {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 1000;
    width: min(320px, calc(100vw - 24px));
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  }

  .sc-layout-has-top .sc-futuristic-header.sc-mobile-nav-open .sc-header-nav { display: flex; }

  .sc-layout-has-top .sc-top-nav-wrap {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    max-height: calc(100dvh - var(--sc-space-top, 64px));
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 12px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  }

  .sc-layout-has-top .sc-slot-top.sc-mobile-nav-open .sc-top-nav-wrap {
    display: flex;
  }

  .sc-layout-has-top .sc-top-nav-wrap > .sc-hud-link,
  .sc-layout-has-top .sc-top-nav-wrap .sc-nav-dropdown-wrap > .sc-hud-link {
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    white-space: normal;
  }

  .sc-layout-has-top .sc-top-nav-wrap .sc-nav-dropdown-flyout,
  .sc-layout-has-top .sc-top-nav-wrap .sc-nav-megamenu-panel {
    position: static;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    transform: none;
    box-shadow: none;
  }

  .sc-layout-fluid .sc-futuristic-header {
    position: relative;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
  }

  .sc-layout-fluid .sc-futuristic-header > div {
    gap: 6px !important;
  }

  .sc-layout-fluid .sc-header-nav-toggle {
    display: inline-flex;
  }

  .sc-layout-fluid .sc-header-nav {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 1000;
    width: min(320px, calc(100vw - 24px));
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  }

  .sc-layout-fluid .sc-futuristic-header.sc-mobile-nav-open .sc-header-nav {
    display: flex;
  }

  .sc-layout-fluid .sc-header-nav > .sc-hud-link,
  .sc-layout-fluid .sc-header-nav .sc-nav-dropdown-wrap > .sc-hud-link {
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    white-space: normal;
  }

  .sc-layout-fluid .sc-header-nav .sc-nav-dropdown-flyout,
  .sc-layout-fluid .sc-header-nav .sc-nav-megamenu-panel {
    position: static;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    transform: none;
    box-shadow: none;
  }

  .sc-archive-card > div:not(.sc-card-featured-visual) {
    padding: 6px 12px !important;
  }

  .sc-article-container {
    min-width: 0;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .sc-widget-zone {
    grid-template-columns: minmax(0, 1fr);
  }

  img,
  video,
  iframe {
    max-width: 100%;
  }
}

/* =========================================================
   FORM CONTROLS, INPUTS, TEXTAREAS & BUTTONS (Theme UI)
   ========================================================= */
.sc-control-group {
  margin-bottom: 1.25rem;
}

.sc-control-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.sc-input,
.sc-textarea,
.sc-select {
  width: 100%;
  padding: 0.85rem 1.15rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-main);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .sc-input,
[data-theme="light"] .sc-textarea,
[data-theme="light"] .sc-select {
  background: #ffffff;
  border-color: #cbd5e1;
}

[data-theme="dark"] .sc-input,
[data-theme="dark"] .sc-textarea,
[data-theme="dark"] .sc-select {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.sc-input::placeholder,
.sc-textarea::placeholder {
  color: var(--text-dim);
  opacity: 0.85;
}

.sc-input:hover,
.sc-textarea:hover,
.sc-select:hover {
  border-color: var(--text-dim);
}

.sc-input:focus,
.sc-textarea:focus,
.sc-select:focus {
  border-color: var(--primary) !important;
  background: var(--bg-card) !important;
  box-shadow: 0 0 0 3px var(--primary-glow) !important;
}

.sc-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Modern Action Buttons */
.sc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.sc-btn-primary {
  background: linear-gradient(135deg, var(--primary), #4338ca);
  color: #ffffff !important;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.sc-btn-primary:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px var(--primary-glow);
  filter: brightness(1.08);
}

.sc-btn-primary:active {
  transform: translateY(0);
}

.sc-btn-secondary {
  background: var(--bg-card);
  color: var(--text-main) !important;
  border-color: var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sc-btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-dim);
  transform: translateY(-1px);
}

.sc-btn-sm {
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  border-radius: 999px;
}

/* Badges */
.sc-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.sc-badge-primary {
  background: var(--primary-glow);
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.sc-badge-muted {
  background: var(--bg-slot);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.sc-badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Comment Box Polish */
#respond {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 2.25rem !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#respond:focus-within {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 8px 30px -4px rgba(0, 0, 0, 0.08), 0 0 0 1px var(--primary-glow);
}

.sc-comment-item {
  border-radius: var(--radius-md) !important;
  transition: all 0.2s ease !important;
  border: 1px solid var(--border);
  background: var(--bg-card);
  margin-bottom: 0 !important;
}

.sc-comment-item:hover {
  border-color: rgba(99, 102, 241, 0.35) !important;
}

#sc-comments-list {
  gap: 6px !important;
}

/* Comment Replies Indentation, Tight Spacing and Italic Font */
.sc-comment-reply {
  margin-top: -2px !important;
  border-left: 3px solid var(--primary, #6366f1) !important;
  background: rgba(99, 102, 241, 0.02);
}

.sc-comment-reply .sc-comment-content {
  font-style: italic !important;
  color: var(--text-muted, #94a3b8) !important;
  opacity: 0.88 !important;
}

@media (max-width: 640px) {
  .sc-comment-reply {
    margin-left: 18px !important;
    width: calc(100% - 18px) !important;
  }
}

/* Comment Action Buttons (Day & Night) */
.sc-comment-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  padding: 4px 9px !important;
  border-radius: 6px !important;
  border: 1px solid transparent !important;
  cursor: pointer !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
  outline: none !important;
  user-select: none !important;
}

.sc-comment-btn svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.sc-comment-btn:hover svg {
  transform: scale(1.12);
}

/* Day / Light Mode */
:root, [data-theme="light"] {
  --sc-cbtn-edit-color: #4f46e5;
  --sc-cbtn-edit-bg: rgba(99, 102, 241, 0.08);
  --sc-cbtn-edit-border: rgba(99, 102, 241, 0.28);
  --sc-cbtn-edit-hover-bg: rgba(99, 102, 241, 0.16);
  --sc-cbtn-edit-hover-border: rgba(99, 102, 241, 0.55);

  --sc-cbtn-delete-color: #dc2626;
  --sc-cbtn-delete-bg: rgba(239, 68, 68, 0.08);
  --sc-cbtn-delete-border: rgba(239, 68, 68, 0.28);
  --sc-cbtn-delete-hover-bg: rgba(239, 68, 68, 0.16);
  --sc-cbtn-delete-hover-border: rgba(239, 68, 68, 0.55);

  --sc-cbtn-reply-color: #059669;
  --sc-cbtn-reply-bg: rgba(16, 185, 129, 0.08);
  --sc-cbtn-reply-border: rgba(16, 185, 129, 0.28);
  --sc-cbtn-reply-hover-bg: rgba(16, 185, 129, 0.16);
  --sc-cbtn-reply-hover-border: rgba(16, 185, 129, 0.55);
}

/* Night / Dark Mode */
[data-theme="dark"], html[data-theme="dark"], body[data-theme="dark"] {
  --sc-cbtn-edit-color: #818cf8;
  --sc-cbtn-edit-bg: rgba(99, 102, 241, 0.14);
  --sc-cbtn-edit-border: rgba(129, 140, 248, 0.38);
  --sc-cbtn-edit-hover-bg: rgba(99, 102, 241, 0.26);
  --sc-cbtn-edit-hover-border: rgba(129, 140, 248, 0.7);

  --sc-cbtn-delete-color: #f87171;
  --sc-cbtn-delete-bg: rgba(239, 68, 68, 0.14);
  --sc-cbtn-delete-border: rgba(248, 113, 113, 0.38);
  --sc-cbtn-delete-hover-bg: rgba(239, 68, 68, 0.26);
  --sc-cbtn-delete-hover-border: rgba(248, 113, 113, 0.7);

  --sc-cbtn-reply-color: #34d399;
  --sc-cbtn-reply-bg: rgba(16, 185, 129, 0.14);
  --sc-cbtn-reply-border: rgba(52, 211, 153, 0.38);
  --sc-cbtn-reply-hover-bg: rgba(16, 185, 129, 0.26);
  --sc-cbtn-reply-hover-border: rgba(52, 211, 153, 0.7);
}

.sc-comment-btn-edit {
  color: var(--sc-cbtn-edit-color) !important;
  background: var(--sc-cbtn-edit-bg) !important;
  border-color: var(--sc-cbtn-edit-border) !important;
}
.sc-comment-btn-edit:hover {
  background: var(--sc-cbtn-edit-hover-bg) !important;
  border-color: var(--sc-cbtn-edit-hover-border) !important;
  color: var(--sc-cbtn-edit-color) !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.sc-comment-btn-delete {
  color: var(--sc-cbtn-delete-color) !important;
  background: var(--sc-cbtn-delete-bg) !important;
  border-color: var(--sc-cbtn-delete-border) !important;
}
.sc-comment-btn-delete:hover {
  background: var(--sc-cbtn-delete-hover-bg) !important;
  border-color: var(--sc-cbtn-delete-hover-border) !important;
  color: var(--sc-cbtn-delete-color) !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

.sc-comment-btn-reply {
  color: var(--sc-cbtn-reply-color) !important;
  background: var(--sc-cbtn-reply-bg) !important;
  border-color: var(--sc-cbtn-reply-border) !important;
}
.sc-comment-btn-reply:hover {
  background: var(--sc-cbtn-reply-hover-bg) !important;
  border-color: var(--sc-cbtn-reply-hover-border) !important;
  color: var(--sc-cbtn-reply-color) !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

/* =========================================================
   MEGA MENU & INTERACTIVE DROPDOWNS
   ========================================================= */
.sc-header-nav,
.sc-top-nav-wrap {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  position: relative;
}

.sc-hud-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.2rem;
  line-height: 1;
}

.sc-hud-link:hover {
  color: var(--primary);
}

.sc-hud-link.active {
  color: var(--text-main);
  font-weight: 700;
}

.sc-hud-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 999px;
  box-shadow: 0 0 8px var(--primary-glow);
}

/* Dropdown Wrapper & Parent Link */
.sc-nav-dropdown-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.sc-dropdown-parent {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.sc-nav-arrow {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-dim);
  flex-shrink: 0;
}

.sc-nav-dropdown-wrap:hover .sc-nav-arrow,
.sc-nav-dropdown-wrap:focus-within .sc-nav-arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

/* Nav Item Badge */
.sc-nav-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  display: inline-block;
  vertical-align: middle;
}

/* Nav Item Icon */
.sc-nav-item-icon {
  width: 16px;
  height: 16px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  display: inline-block;
}

/* SCPress menu glyphs and accessible icon-only links */
.sc-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 1.05em;
  line-height: 1;
}
.sc-icon-only-link {
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  padding: 6px 12px;
}
.sc-icon-only-link .sc-nav-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Hover bridge invisible spacer */
.sc-nav-dropdown-flyout::before,
.sc-nav-megamenu-panel::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 14px;
}

/* ---------------------------------------------------------
   1. STANDARD FLYOUT DROPDOWN
   --------------------------------------------------------- */
.sc-nav-dropdown-flyout {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  margin-top: 0.65rem;
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sc-nav-dropdown-wrap:hover .sc-nav-dropdown-flyout,
.sc-nav-dropdown-wrap:focus-within .sc-nav-dropdown-flyout {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sc-flyout-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-main);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.sc-flyout-item:hover {
  background: var(--bg-card-hover);
  transform: translateX(3px);
}

.sc-flyout-thumb {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.sc-flyout-content {
  flex: 1;
  min-width: 0;
}

.sc-flyout-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  line-height: 1.3;
}

.sc-flyout-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 0.15rem;
}

/* ---------------------------------------------------------
   2. FULL MEGA MENU PANEL (Wider, Taller, Always Centered)
   --------------------------------------------------------- */
/* Position contexts */
.sc-futuristic-header,
.sc-top-bar-header {
  position: relative;
}

.sc-header-nav,
.sc-top-nav-wrap {
  position: static;
}

/* For Mega Menu wraps, use position: static so the panel centers relative to the header canvas */
.sc-nav-dropdown-wrap.sc-nav-megamenu-wrap {
  position: static;
}

.sc-nav-megamenu-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(14px);
  width: min(1120px, calc(100% - 2rem));
  max-width: 1120px;
  min-width: 720px;
  margin-top: 0.75rem;
  background: var(--bg-card);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl, 20px);
  padding: 1.75rem 2rem;
  box-shadow: 0 28px 64px -12px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.05);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
  z-index: 9999;
  display: flex;
  gap: 1.75rem;
  align-items: stretch;
}

.sc-nav-dropdown-wrap:hover .sc-nav-megamenu-panel,
.sc-nav-dropdown-wrap.sc-megamenu-active .sc-nav-megamenu-panel,
.sc-nav-dropdown-wrap:focus-within .sc-nav-megamenu-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Hover bridge invisible spacer */
.sc-nav-megamenu-panel::before {
  content: '';
  position: absolute;
  top: -24px;
  left: 0;
  right: 0;
  height: 30px;
}

/* Spotlight Side Banner Column (Wider, Taller, Prominent) */
.sc-megamenu-spotlight {
  width: 270px;
  min-width: 260px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 16px);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-shrink: 0;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.05);
}

.sc-megamenu-spotlight-img {
  width: 100%;
  height: 155px;
  object-fit: cover;
  border-radius: var(--radius-md, 12px);
  margin-bottom: 1.15rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sc-megamenu-spotlight-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.sc-megamenu-spotlight-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Mega Menu Multi-column Grid (Generous Spacing) */
.sc-megamenu-grid {
  display: grid;
  gap: 1.1rem;
  flex: 1;
  min-width: 420px;
  align-content: start;
}

/* Mega Menu Card (Taller, Longer, Modern) */
.sc-megamenu-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 6px 12px;
  min-height: 150px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 14px);
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.sc-megamenu-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(99, 102, 241, 0.45);
  transform: translateY(-2.5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(99, 102, 241, 0.2);
}

.sc-megamenu-card-thumb {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md, 10px);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sc-megamenu-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sc-megamenu-card-body {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

.sc-megamenu-card-title {
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.25;
}

.sc-megamenu-card:hover .sc-megamenu-card-title span {
  color: var(--primary);
}

.sc-megamenu-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================================================
   SCPress Block Suite Frontend Styles
   ========================================================= */
.sc-post-body,
.sc-page-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-main);
}

.sc-post-body p,
.sc-page-body p {
  margin-bottom: 1.4rem;
}

.sc-post-body h1,
.sc-post-body h2,
.sc-post-body h3,
.sc-post-body h4,
.sc-page-body h1,
.sc-page-body h2,
.sc-page-body h3,
.sc-page-body h4 {
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-top: 2rem;
  margin-bottom: 0.9rem;
  line-height: 1.3;
}

/* 1. Text Blocks */
.sc-content-list {
  padding-left: 1.6rem;
  margin-bottom: 1.5rem;
}

.sc-content-list li {
  margin-bottom: 0.4rem;
}

.sc-block-quote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  margin: 1.75rem 0;
  background: rgba(99, 102, 241, 0.04);
  border-radius: 0 var(--radius-md, 8px) var(--radius-md, 8px) 0;
}

.sc-block-quote p {
  font-style: italic;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.sc-block-quote cite {
  font-size: 0.88rem;
  color: var(--text-dim);
  font-style: normal;
  display: block;
}

.sc-block-details {
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 8px);
  background: var(--bg-card);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.sc-block-details summary {
  font-weight: 700;
  cursor: pointer;
  color: var(--text-main);
}

.sc-block-details .sc-details-content {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.sc-block-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
  border: 1px solid var(--border);
}

.sc-block-table th,
.sc-block-table td {
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  text-align: left;
}

.sc-block-table th {
  background: var(--bg-subtle);
  font-weight: 700;
}

.sc-block-code,
.sc-block-pre,
.sc-block-verse {
  background: #0f172a;
  color: #e2e8f0;
  padding: 1.25rem;
  border-radius: var(--radius-md, 8px);
  font-family: monospace;
  font-size: 0.9rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  white-space: pre-wrap;
}

.sc-block-pre {
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.sc-block-verse {
  background: rgba(99, 102, 241, 0.04);
  color: var(--text-main);
  border-left: 3px solid var(--accent);
  font-style: italic;
  font-family: inherit;
}

/* 2. Media Blocks */
.sc-img-figure {
  margin: 2rem 0;
  text-align: center;
}

.sc-img-figure img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg, 12px);
  box-shadow: var(--shadow-md, 0 4px 15px rgba(0, 0, 0, 0.06));
}

.sc-img-figure figcaption {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.6rem;
}

.sc-block-gallery {
  margin: 2rem 0;
}

.sc-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.sc-gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md, 8px);
}

.sc-block-cover {
  position: relative;
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  margin: 2rem 0;
}

.sc-cover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.sc-cover-inner {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 650px;
}

.sc-cover-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: #fff !important;
}

.sc-cover-sub {
  font-size: 1.15rem;
  opacity: 0.95;
  color: #e2e8f0;
}

.sc-block-mediatext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .sc-block-mediatext {
    grid-template-columns: 1fr;
  }
}

.sc-mediatext-media img {
  width: 100%;
  border-radius: var(--radius-md, 8px);
}

.sc-block-audio,
.sc-block-video {
  margin: 1.5rem 0;
}

.sc-block-file {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 8px);
  margin: 1.5rem 0;
}

/* 3. Layout & Structure */
.sc-block-button-wrap {
  margin: 1.75rem 0;
}

.sc-preview-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.sc-block-columns {
  display: grid;
  gap: 1.75rem;
  margin: 2rem 0;
}

.sc-cols-2 {
  grid-template-columns: 1fr 1fr;
}

.sc-cols-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.sc-inline-media {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 6px 0;
}

.sc-inline-media img,
.sc-inline-media video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.sc-block-columns > .sc-column-box {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

.sc-block-columns .sc-inline-media {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 6px 0;
}

.sc-block-columns .sc-column-box img,
.sc-block-columns .sc-column-box video {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
}

.sc-block-columns .sc-inline-media img,
.sc-block-columns .sc-inline-media video {
  width: 100%;
}

@media (max-width: 768px) {

  .sc-cols-2,
  .sc-cols-3 {
    grid-template-columns: 1fr;
  }
}

.sc-block-container {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 12px);
  padding: 2rem;
  margin: 2rem 0;
  background: var(--bg-subtle);
}

.sc-block-callout {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md, 8px);
  border-left: 4px solid var(--primary);
  background: rgba(99, 102, 241, 0.06);
  margin: 1.75rem 0;
}

.sc-callout-warning {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.06);
}

.sc-callout-tip {
  border-left-color: #10b981;
  background: rgba(16, 185, 129, 0.06);
}

.sc-callout-success {
  border-left-color: #22c55e;
  background: rgba(34, 197, 94, 0.06);
}

.sc-block-divider-wrap {
  margin: 2.5rem 0;
}

.sc-block-divider {
  border: none;
  border-top: 1px solid var(--border);
}

.sc-block-spacer {
  width: 100%;
}

/* 4 & 5. Dynamic & Embeds */
.sc-block-toc,
.sc-block-authorbox,
.sc-block-latestposts,
.sc-block-categories,
.sc-block-searchbar,
.sc-block-socialicons,
.sc-block-embed {
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 8px);
  padding: 1.5rem;
  margin: 2rem 0;
  background: var(--bg-card);
}
.sc-block-embed iframe {
  width: 100%;
  border-radius: var(--radius-md, 8px);
}

/* =========================================================
   COOKIE CONSENT BANNER (DAY / NIGHT RESPONSIVE)
   ========================================================= */
.sc-cookie-banner-wrap {
  background: var(--bg-card, rgba(255, 255, 255, 0.94));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-main, #0f172a);
  border: 1px solid var(--border, rgba(0, 0, 0, 0.1));
  border-radius: var(--radius-lg, 16px);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-card, 0 20px 45px -12px rgba(15, 23, 42, 0.16));
  font-family: var(--font-sans, inherit);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, opacity 0.3s ease, transform 0.3s ease;
}
.sc-cookie-banner-text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted, #475569);
  transition: color 0.25s ease;
}
.sc-cookie-banner-link {
  color: var(--primary, #4f46e5);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: 0.35rem;
  transition: color 0.2s ease;
}
.sc-cookie-banner-link:hover {
  color: var(--accent, #6366f1);
}
.sc-cookie-btn-decline {
  padding: 0.5rem 1.15rem;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid var(--border, rgba(0, 0, 0, 0.15));
  background: transparent;
  color: var(--text-muted, #64748b);
  cursor: pointer;
  transition: all 0.2s ease;
}
.sc-cookie-btn-decline:hover {
  background: var(--bg-card-hover, rgba(0, 0, 0, 0.05));
  color: var(--text-main, #0f172a);
  border-color: var(--text-dim, #94a3b8);
}
.sc-cookie-btn-accept {
  padding: 0.5rem 1.35rem;
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: var(--radius-sm, 8px);
  border: none;
  background: var(--primary, #4f46e5);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--primary-glow, rgba(79, 70, 229, 0.3));
  transition: all 0.2s ease;
}
.sc-cookie-btn-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--primary-glow, rgba(79, 70, 229, 0.45));
  filter: brightness(1.08);
}
[data-theme="dark"] .sc-cookie-banner-wrap {
  border-color: var(--border, rgba(255, 255, 255, 0.12));
}
[data-theme="dark"] .sc-cookie-banner-text {
  color: var(--text-muted, #94a3b8);
}
[data-theme="dark"] .sc-cookie-banner-link {
  color: var(--accent, #818cf8);
}
[data-theme="dark"] .sc-cookie-btn-decline {
  border-color: var(--border, rgba(255, 255, 255, 0.18));
  color: var(--text-muted, #94a3b8);
}
[data-theme="dark"] .sc-cookie-btn-decline:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}


/* Header notification dropdown */
.sc-notification-wrapper { position: relative; display: inline-flex; align-items: center; }
.sc-notification-dropdown { position: absolute; z-index: 1200; top: calc(100% + 8px); right: 0; width: min(360px, calc(100vw - 24px)); max-height: min(70vh, 520px); overflow-y: auto; padding: 6px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-card, #fff); color: var(--text-main, #334155); box-shadow: 0 12px 32px rgba(15, 23, 42, .16); opacity: 0; visibility: hidden; transform: translateY(-5px); pointer-events: none; transition: opacity .16s ease, transform .16s ease, visibility .16s ease; }
.sc-notification-wrapper.active .sc-notification-dropdown { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.sc-notification-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0 10px; border-bottom: 1px solid var(--border); }
.sc-notification-heading span { color: #dc2626; font-size: .78rem; font-weight: 700; }
.sc-notification-section-label { padding: 8px 0 4px; color: var(--text-muted, #64748b); font-size: .73rem; font-weight: 700; }
.sc-notification-item { display: flex; flex-direction: column; gap: 2px; padding: 6px 0; color: inherit; text-decoration: none; border-bottom: 1px solid var(--border); }
.sc-notification-item:hover { color: var(--primary, #4f46e5); }
.sc-notification-item strong { font-size: .84rem; }
.sc-notification-item span,.sc-notification-empty { color: var(--text-muted, #64748b); font-size: .78rem; line-height: 1.4; }
.sc-notification-item.is-unread { border-left: 3px solid #dc2626; padding-left: 8px; }
.sc-notification-empty { padding: 8px 0; }
.sc-notification-footer { display: block; padding: 8px 0 6px; color: var(--primary, #4f46e5); font-size: .8rem; font-weight: 700; text-align: center; text-decoration: none; }
@media (max-width: 520px) { .sc-notification-dropdown { position: fixed; top: 70px; right: 12px; } }

/* SC Social sidebar presets use the active SCPress day/night color tokens. */
.sc-social-sidebar-widget {
  box-sizing: border-box;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 6px 12px;
  color: var(--text-main, #343a40);
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-md, 12px);
  overflow-wrap: anywhere;
}
.sc-social-sidebar-widget h3 { margin: 0 0 6px; color: var(--text-main, #343a40); font-size: .95rem; font-weight: 700; }
.sc-social-sidebar-widget p { margin: 0 0 6px; }
.sc-social-sidebar-welcome-row { display: grid; justify-items: center; gap: 6px; min-width: 0; text-align: center; }
.sc-social-sidebar-welcome-row .sc-social-sidebar-avatar { width: 56px; height: 56px; flex-basis: 56px; font-size: 1.2rem; }
.sc-social-sidebar-welcome-row > strong { max-width: 100%; text-align: center; }
.sc-social-sidebar-welcome-row small, .sc-social-sidebar-subtle, .sc-social-sidebar-item small,
.sc-social-sidebar-trend small, .sc-social-sidebar-activity small { color: var(--text-dim, #64748b); font-size: .78rem; }
.sc-social-sidebar-welcome-row strong { color: var(--text-main, #343a40); overflow: hidden; text-overflow: ellipsis; }
.sc-social-sidebar-subtle { text-decoration: none; }
.sc-social-sidebar-avatar, .sc-social-sidebar-activity-avatar {
  position: relative;
  display: inline-flex;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 50%;
  background: var(--bg-card-hover, #f1f5f9);
  color: var(--text-main, #343a40);
  font-weight: 700;
  text-decoration: none;
}
.sc-social-sidebar-avatar img, .sc-social-sidebar-activity-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.sc-social-sidebar-trend, .sc-social-sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  margin-top: 6px;
  padding: 6px 12px;
  color: var(--text-main, #343a40);
  background: var(--bg-card-hover, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-sm, 8px);
  text-decoration: none;
}
.sc-social-sidebar-trend:hover, .sc-social-sidebar-item:hover { border-color: var(--primary, #4f46e5); }
.sc-social-sidebar-trend strong { color: var(--primary, #4f46e5); }
.sc-social-sidebar-trend small { white-space: nowrap; }
.sc-social-sidebar-item > span { display: grid; min-width: 0; }
.sc-social-sidebar-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-social-sidebar-item > b { color: var(--primary, #4f46e5); }
.sc-social-sidebar-activity { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; padding: 6px 12px; border: 1px solid var(--border, #e2e8f0); border-radius: var(--radius-sm, 8px); }
.sc-social-sidebar-activity-avatar { flex-basis: 30px; width: 30px; height: 30px; }
.sc-social-sidebar-activity > div:last-child { min-width: 0; }
.sc-social-sidebar-activity p { margin: 0 0 3px; color: var(--text-dim, #64748b); font-size: .82rem; }
.sc-social-sidebar-activity a { display: block; overflow: hidden; color: var(--text-main, #343a40); font-size: .82rem; font-weight: 600; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.sc-social-sidebar-activity small { display: block; margin-top: 3px; }
.sc-social-sidebar-empty { color: var(--text-dim, #64748b); font-size: .82rem; }
.sc-social-sidebar-widget-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; }
.sc-social-sidebar-widget-header h3 { margin: 0; }
.sc-social-sidebar-slider-controls { display: inline-flex; align-items: center; gap: 4px; }
.sc-social-slider-btn { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border: 1px solid var(--border, #e2e8f0); border-radius: 6px; background: var(--bg-card-hover, #f8fafc); color: var(--text-main, #343a40); font-size: 13px; font-weight: 700; line-height: 1; cursor: pointer; transition: all 0.15s ease; user-select: none; }
.sc-social-slider-btn:hover { background: var(--primary, #4f46e5); color: #fff; border-color: var(--primary, #4f46e5); }
.sc-social-sidebar-slider { position: relative; width: 100%; min-width: 0; max-width: 100%; overflow: hidden; border-radius: var(--radius-sm, 8px); }
.sc-social-sidebar-slides { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: stretch; width: 100%; margin: 0; padding: 0; transform: translateX(0); transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); will-change: transform; }
.sc-social-sidebar-slide { display: block; flex: 0 0 100%; min-width: 100%; max-width: 100%; width: 100%; box-sizing: border-box; margin: 0; padding: 0; }
.sc-social-sidebar-slide > .sc-social-sidebar-trend,
.sc-social-sidebar-slide > .sc-social-sidebar-activity { width: 100%; box-sizing: border-box; margin: 0; }
.sc-social-sidebar-slider-dots { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 8px 0 0; }
.sc-social-slider-dot { width: 6px; height: 6px; padding: 0; border: none; border-radius: 50%; background: var(--border, #cbd5e1); cursor: pointer; transition: all 0.2s ease; }
.sc-social-slider-dot.is-active { width: 14px; border-radius: 3px; background: var(--primary, #4f46e5); }
@media (prefers-reduced-motion: reduce) { .sc-social-sidebar-slides { transition: none; } }
.sc-social-sidebar-accordion { padding: 0; }
.sc-social-sidebar-accordion > summary { padding: 6px 12px; color: var(--text-main, #343a40); cursor: pointer; font-weight: 700; list-style-position: inside; }
.sc-social-sidebar-accordion-body { padding: 0 6px 6px; }
.sc-social-sidebar-person { display:flex; align-items:center; gap:6px; min-width:0; margin-top:6px; padding:6px; color:var(--text-main, #343a40); border:1px solid var(--border, #e2e8f0); border-radius:var(--radius-sm, 8px); text-decoration:none; }
.sc-social-sidebar-person-avatar { position:relative; display:inline-flex; flex:0 0 30px; width:30px; height:30px; align-items:center; justify-content:center; overflow:visible; border-radius:50%; color:var(--text-main, #343a40); background:var(--bg-card-hover, #f1f5f9); font-weight:700; }
.sc-social-sidebar-person-avatar img { width:100%; height:100%; object-fit:cover; }
.sc-social-sidebar-avatar .sc-social-online-eye, .sc-social-sidebar-activity-avatar .sc-social-online-eye, .sc-social-sidebar-person-avatar .sc-social-online-eye { right:0; bottom:0; width:12px; height:12px; border-width:1px; }
.sc-social-sidebar-avatar .sc-social-online-eye svg, .sc-social-sidebar-activity-avatar .sc-social-online-eye svg, .sc-social-sidebar-person-avatar .sc-social-online-eye svg { width:8px; height:8px; }
.sc-social-sidebar-person > span:last-child { display:grid; min-width:0; }
.sc-social-sidebar-person strong, .sc-social-sidebar-person small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sc-social-sidebar-person small { color:var(--text-dim, #64748b); font-size:.76rem; }
.sc-social-follow-tab-list { display:flex!important; flex-direction:row!important; align-items:center!important; gap:6px!important; padding:0!important; margin:0 0 10px!important; }
.sc-social-follow-tab { display:inline-flex!important; align-items:center!important; justify-content:center!important; font-size:.82rem!important; font-weight:600!important; font-family:inherit!important; min-height:30px!important; padding:5px 12px!important; line-height:1.3!important; border:1px solid var(--border, #cbd5e1)!important; border-radius:8px!important; background:var(--bg-card, #ffffff)!important; color:var(--text-main, #334155)!important; cursor:pointer!important; transition:all 0.15s ease!important; }
.sc-social-follow-tab:hover { background:var(--bg-card-hover, #f1f5f9)!important; border-color:var(--primary, #6366f1)!important; color:var(--primary, #6366f1)!important; }
.sc-social-follow-tab.is-active { border-color:var(--primary, #4f46e5)!important; background:var(--primary, #4f46e5)!important; color:#ffffff!important; box-shadow:0 2px 6px rgba(15,23,42,.15)!important; }
.sc-social-follow-panel[hidden] { display:none!important; }
.sc-social-follow-panel { min-width:0; padding-top:6px; }
.sc-social-follow-carousel { display:grid; gap:6px; min-width:0; }
.sc-social-follow-carousel-controls { display:flex; align-items:center; justify-content:space-between; gap:6px; }
.sc-social-follow-carousel-controls .sc-social-sidebar-slider-dots { flex:1; margin:0; }
.sc-social-follow-carousel .sc-social-slider-btn { flex:0 0 28px; width:28px; height:28px; border-radius:50%; }
.sc-social-follow-viewport { min-width:0; overflow:hidden; }
.sc-social-follow-viewport .sc-social-sidebar-slides { align-items:stretch; }
.sc-social-follow-viewport .sc-social-sidebar-slide { min-width:100%; }
.sc-social-follow-viewport .sc-social-sidebar-person { min-height:54px; align-items:center; margin-top:0; padding:6px 12px; border-radius:10px; background:var(--bg-card-hover, #f8fafc); }
.sc-social-sidebar-link { display:flex; align-items:center; justify-content:space-between; gap:6px; margin-top:6px; padding:6px 12px; color:var(--text-main, #343a40); border:1px solid var(--border, #e2e8f0); border-radius:var(--radius-sm, 8px); text-decoration:none; }
.sc-social-sidebar-link:hover, .sc-social-sidebar-person:hover { border-color:var(--primary, #4f46e5); }
.sc-social-sidebar-link small { color:var(--text-dim, #64748b); white-space:nowrap; }
.sc-social-sidebar-sponsored-label { display:grid; gap:6px; margin-top:6px; }
.sc-social-sidebar-sponsored-label textarea { width:100%; min-height:100px; box-sizing:border-box; }
.sc-social-sidebar-settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.sc-social-sidebar-settings-zone { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); }
.sc-social-sidebar-settings-zone legend { padding: 0 6px; font-weight: 700; }
.sc-social-sidebar-settings-zone label { display: flex; align-items: center; gap: 6px; }
.sc-social-sidebar-settings-zone details { padding-top: 6px; border-top: 1px solid var(--border); }
.sc-social-sidebar-settings-zone summary { cursor: pointer; font-weight: 600; }
.sc-social-sidebar-settings-zone details label { margin-top: 6px; }
@media (max-width: 900px) {
  .sc-social-sidebar-widget { margin-bottom: 6px; }
  .sc-social-sidebar-settings-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .sc-sidebar-nav .sc-nav-dropdown-flyout,
  .sc-sidebar-nav .sc-nav-megamenu-panel {
    position: static;
    inset: auto;
    width: 100%;
    min-width: 0;
    max-width: none;
    max-height: 0;
    margin: 0;
    padding: 0 6px;
    overflow: hidden;
    transform: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: none;
  }
  .sc-sidebar-nav .sc-nav-megamenu-panel { gap: 6px; }
  .sc-sidebar-nav .sc-nav-dropdown-wrap:hover > .sc-nav-dropdown-flyout,
  .sc-sidebar-nav .sc-nav-dropdown-wrap:focus-within > .sc-nav-dropdown-flyout,
  .sc-sidebar-nav .sc-nav-dropdown-wrap:hover > .sc-nav-megamenu-panel,
  .sc-sidebar-nav .sc-nav-dropdown-wrap:focus-within > .sc-nav-megamenu-panel {
    max-height: 70vh;
    margin-top: 6px;
    padding: 6px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}


/* Theme-aware scrollbars (day/night) */
:root, [data-theme="light"] { color-scheme: light; --sc-scrollbar-track: var(--bg-body, #f8fafc); }
[data-theme="dark"] { color-scheme: dark; --sc-scrollbar-track: var(--bg-body, #090a0f); }
html, body, * { scrollbar-color: var(--sc-scrollbar-thumb-light, #94a3b8) var(--sc-scrollbar-track); }
html[data-theme="dark"], html[data-theme="dark"] body, html[data-theme="dark"] *,
body[data-theme="dark"], body[data-theme="dark"] * { scrollbar-color: var(--sc-scrollbar-thumb-dark, #475569) var(--sc-scrollbar-track); }


/* WebKit scrollbar parts (needed because ::-webkit-scrollbar rules disable scrollbar-color) */
*::-webkit-scrollbar, html::-webkit-scrollbar, body::-webkit-scrollbar, .sc-slot-left::-webkit-scrollbar, .sc-slot-right::-webkit-scrollbar { width: 8px; height: 8px; background: var(--sc-scrollbar-track); }
*::-webkit-scrollbar-track, html::-webkit-scrollbar-track, body::-webkit-scrollbar-track, .sc-slot-left::-webkit-scrollbar-track, .sc-slot-right::-webkit-scrollbar-track { background: var(--sc-scrollbar-track); }
*::-webkit-scrollbar-corner, html::-webkit-scrollbar-corner, body::-webkit-scrollbar-corner { background: var(--sc-scrollbar-track); }
*::-webkit-scrollbar-thumb, html::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb, .sc-slot-left::-webkit-scrollbar-thumb, .sc-slot-right::-webkit-scrollbar-thumb { background: var(--sc-scrollbar-thumb-light, #94a3b8); border-radius: 8px; }
html[data-theme="dark"]::-webkit-scrollbar-thumb, html[data-theme="dark"] body::-webkit-scrollbar-thumb, html[data-theme="dark"] *::-webkit-scrollbar-thumb,
body[data-theme="dark"]::-webkit-scrollbar-thumb, body[data-theme="dark"] *::-webkit-scrollbar-thumb,
[data-theme="dark"] .sc-slot-left::-webkit-scrollbar-thumb, [data-theme="dark"] .sc-slot-right::-webkit-scrollbar-thumb { background: var(--sc-scrollbar-thumb-dark, #475569); }
html[data-theme="dark"]::-webkit-scrollbar-track, html[data-theme="dark"] body::-webkit-scrollbar-track, html[data-theme="dark"] *::-webkit-scrollbar-track,
body[data-theme="dark"]::-webkit-scrollbar-track, body[data-theme="dark"] *::-webkit-scrollbar-track { background: var(--sc-scrollbar-track); }

.sc-hub-page { max-width: 1100px; margin: 0 auto; padding: 6px 12px; color: var(--text-main, #343a40); }
.sc-hub-page-header { margin: 0 0 12px; }
.sc-hub-page-header h1 { margin: 0; font-size: 1.6rem; }
.sc-hub-page-header p { margin: 4px 0 0; color: var(--text-muted, #64748b); }
.sc-hub-page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.sc-hub-page-card { display: grid; align-content: start; gap: 8px; padding: 6px 12px; border: 1px solid var(--border, #e2e8f0); border-radius: 10px; background: var(--bg-card, #fff); color: var(--text-main, #343a40); text-decoration: none; }
.sc-hub-page-card:hover { border-color: var(--primary, #4f46e5); }
.sc-hub-page-card > img, .sc-hub-page-card-placeholder { display: grid; width: 100%; height: 130px; place-items: center; overflow: hidden; border-radius: 7px; background: var(--bg-body, #f8fafc); object-fit: cover; font-size: 2rem; }
.sc-hub-page-card-copy { display: grid; gap: 4px; }
.sc-hub-page-card-copy > span, .sc-hub-page-empty { color: var(--text-muted, #64748b); }
.sc-frontend-edit-handle { display:inline-flex!important; flex:0 0 30px; align-items:center; justify-content:center; width:30px; height:30px; min-width:30px; padding:6px; border:1px solid var(--border,#dbe3ef); border-radius:8px; background:var(--bg-card,#fff); color:var(--text-main,#343a40); text-decoration:none; box-shadow:0 1px 3px rgba(15,23,42,.06); }
.sc-frontend-edit-handle:hover, .sc-frontend-edit-handle:focus-visible { border-color:var(--primary,#4f46e5); color:var(--primary,#4f46e5); outline:none; }
.sc-frontend-edit-handle svg { display:block; flex:0 0 16px; width:16px; height:16px; min-width:16px; fill:none; stroke:currentColor; stroke-width:2.1; stroke-linecap:round; stroke-linejoin:round; }

/* Wide, image-forward mega menu: one parent column and up to three child columns. */
.sc-nav-megamenu-panel {
  width: min(66vw, 1400px);
  min-width: min(860px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: min(78vh, 860px);
  overflow: auto;
  padding: 6px 12px;
  gap: 12px;
  background: var(--bg-card, #fff);
  color: var(--text-main, #343a40);
}
.sc-megamenu-spotlight {
  box-sizing: border-box;
  width: 200px;
  min-width: 200px;
  padding: 6px 12px;
  background: var(--bg-card, #fff);
  color: var(--text-main, #343a40);
}
.sc-megamenu-spotlight-img {
  width: 150px;
  height: 150px;
  max-width: 100%;
  margin-bottom: 6px;
}
.sc-megamenu-grid {
  min-width: 0;
  gap: 12px;
}
.sc-megamenu-card {
  min-width: 0;
  min-height: 0;
  padding: 6px 12px;
  gap: 6px;
  flex-direction: column;
}
.sc-megamenu-card-thumb {
  box-sizing: border-box;
  width: 150px;
  height: 150px;
  min-width: 150px;
  flex: 0 0 150px;
  align-self: center;
}
.sc-megamenu-card-body { min-width: 0; width: 100%; }
@media (max-width: 900px) {
  .sc-nav-megamenu-panel {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    max-height: 78vh;
    flex-direction: column;
    padding: 6px 12px;
  }
  .sc-megamenu-spotlight { width: 100%; min-width: 0; }
}
@media (max-width: 600px) {
  .sc-megamenu-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .sc-megamenu-card-thumb { width: 150px; height: 150px; }
}
@media (max-width: 900px) {
  .sc-nav-megamenu-panel { position: static; inset: auto; margin: 6px 0; transform: none; }
  .sc-nav-dropdown-wrap:hover .sc-nav-megamenu-panel,
  .sc-nav-dropdown-wrap.sc-megamenu-active .sc-nav-megamenu-panel,
  .sc-nav-dropdown-wrap:focus-within .sc-nav-megamenu-panel { transform: none; }
}
/* On desktop, anchor the mega menu to its trigger so it stays centered below it. */
@media (min-width: 901px) {
  /* The centered header nav uses transform, so raise its stacking context above page content. */
  .sc-futuristic-header > .sc-header-controls > .sc-header-nav { z-index: 10000; }
  .sc-nav-dropdown-wrap.sc-nav-megamenu-wrap { position: relative; }
  .sc-nav-dropdown-wrap.sc-nav-megamenu-wrap > .sc-nav-megamenu-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    right: auto;
    width: min(66vw, 1400px);
    min-width: min(860px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    max-height: min(78vh, 860px);
    margin: 0;
    transform: translateX(-50%);
    transition-property: opacity, visibility;
  }
  .sc-nav-dropdown-wrap:hover > .sc-nav-megamenu-panel,
  .sc-nav-dropdown-wrap.sc-megamenu-active > .sc-nav-megamenu-panel,
  .sc-nav-dropdown-wrap:focus-within > .sc-nav-megamenu-panel { transform: translateX(-50%); }
}
.sc-megamenu-spotlight { width: 200px; min-width: 200px; }
.sc-megamenu-grid { min-width: 0; gap: 12px; align-content: start; padding: 6px 0; }
.sc-megamenu-spotlight-img { width: 150px; height: 150px; max-width: 100%; object-fit: cover; }
.sc-megamenu-card-thumb {
  width: 100%;
  height: auto;
  min-width: 0;
  flex: 0 0 auto;
  align-self: stretch;
  aspect-ratio: 1 / 1;
}
@media (max-width: 900px) {
  .sc-nav-dropdown-wrap.sc-nav-megamenu-wrap > .sc-nav-megamenu-panel {
    position: static;
    inset: auto;
    width: 100%;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    max-height: 78vh;
    margin: 0;
    transform: none;
    transition-property: opacity, visibility;
  }
  .sc-nav-dropdown-wrap:hover > .sc-nav-megamenu-panel,
  .sc-nav-dropdown-wrap.sc-megamenu-active > .sc-nav-megamenu-panel,
  .sc-nav-dropdown-wrap:focus-within > .sc-nav-megamenu-panel { transform: none; }
  .sc-megamenu-spotlight { width: 100%; min-width: 0; }
}

/* Compact mobile layout for the rich site footer. */
.sc-rich-footer {
  box-sizing: border-box;
  min-width: 0;
}

.sc-rich-footer-main {
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 24px 12px 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px 12px;
  align-items: start;
  box-sizing: border-box;
}

.sc-rich-footer-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.sc-rich-footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.sc-rich-footer-newsletter-row {
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
  padding: 3px;
  background: var(--sc-ft-input-bg);
  border: 1px solid var(--sc-ft-input-border);
  border-radius: 6px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
  box-sizing: border-box;
}

.sc-rich-footer-email {
  flex: 1 1 0;
  width: 100%;
  min-width: 0;
  padding: 6px 12px;
  color: var(--sc-ft-input-text);
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
}

.sc-rich-footer-submit {
  flex: 0 0 auto;
  padding: 6px 12px;
  color: var(--sc-ft-btn-text);
  background: var(--sc-ft-btn-bg);
  border: 0;
  border-radius: 5px;
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.sc-rich-footer-map {
  position: relative;
  z-index: 0;
  isolation: isolate;
  width: 100%;
  max-width: 290px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  background: #000;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.sc-rich-footer-sub {
  padding: 12px;
  color: var(--sc-ft-sub-text);
  background: var(--sc-ft-sub-bg);
  border-top: 1px solid rgba(255,255,255,0.03);
  text-align: center;
  font-size: 0.85rem;
}

.sc-rich-footer-sub-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px 12px;
}

.sc-rich-footer-copyright {
  grid-column: 1;
  justify-self: start;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sc-rich-footer-language {
  position: relative;
  flex: 0 0 auto;
  color: #343a40;
}
.sc-rich-footer-language > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 2px 7px;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #eef2ff);
  color: #343a40;
  box-shadow: 0 2px 7px rgba(79, 70, 229, .1);
  cursor: pointer;
  list-style: none;
  font-size: 11px;
  font-weight: 800;
}
.sc-rich-footer-language > summary::-webkit-details-marker { display: none; }
.sc-rich-footer-language[open] > summary { border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99, 102, 241, .14); }
.sc-rich-footer-country-flag { display: inline-grid; place-items: center; width: 22px; height: 16px; }

/* Give the site header controls clear accents in night mode. */
[data-theme="dark"] .sc-site-menu-trigger { color: #c4b5fd !important; }
[data-theme="dark"] .sc-site-menu-trigger:hover,
[data-theme="dark"] .sc-site-menu-trigger[aria-expanded="true"] { color: #ddd6fe !important; }
[data-theme="dark"] .sc-frontend-edit-handle { color: #4ade80 !important; border-color: rgba(74, 222, 128, .42) !important; }
[data-theme="dark"] .sc-frontend-edit-handle:hover,
[data-theme="dark"] .sc-frontend-edit-handle:focus-visible { color: #86efac !important; border-color: #4ade80 !important; }
[data-theme="dark"] .sc-header-actions a[href*="/search"],
[data-theme="dark"] .sc-header-actions .sc-header-search,
[data-theme="dark"] .sc-header-search,
[data-theme="dark"] a[aria-label="Search"] { color: #38bdf8 !important; }
[data-theme="dark"] .sc-header-actions a[href*="/search"] svg,
[data-theme="dark"] .sc-header-search svg,
[data-theme="dark"] a[aria-label="Search"] svg { color: #38bdf8 !important; stroke: #38bdf8 !important; }
[data-theme="dark"] .sc-market-header-cart,
[data-theme="dark"] .sc-market-header-cart svg { color: #38bdf8 !important; stroke: #38bdf8 !important; }
[data-theme="dark"] #scNotificationButton { color: #fbbf24 !important; }
[data-theme="dark"] #scNotificationButton svg { color: #fbbf24 !important; }
[data-theme="dark"] #scHeaderMenuBtn .sc-trigger-avatar { background: linear-gradient(135deg, #6366f1, #a855f7); }
[data-theme="dark"] #scHeaderMenuBtn .sc-trigger-avatar svg { color: #fff !important; }
.sc-rich-footer-country-flag img { display: none; width: 22px; height: 16px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(15, 23, 42, .12); }
.sc-rich-footer-country-flag.has-image img { display: block; }
.sc-rich-footer-country-flag.has-image .sc-rich-footer-country-fallback { display: none; }
.sc-rich-footer-country-fallback {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.sc-rich-footer-language-chevron { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
.sc-rich-footer-language-menu {
  position: absolute;
  z-index: 100;
  bottom: calc(100% + 10px);
  left: 0;
  width: min(320px, calc(100vw - 24px));
  max-height: min(420px, 70vh);
  overflow-y: auto;
  border: 1px solid #dbe2ef;
  border-radius: 12px;
  background: #fff;
  color: #343a40;
  box-shadow: 0 16px 36px rgba(15, 23, 42, .2);
  text-align: left;
}
.sc-rich-footer-language-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 12px; background: linear-gradient(105deg, #eef2ff, #f0f9ff); color: #303c53; }
.sc-rich-footer-language-heading strong { font-size: 12px; }
.sc-rich-footer-language-heading small { font-size: 10px; color: #566582; }
.sc-rich-footer-language-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 6px; }
.sc-rich-footer-language-option { display: flex; align-items: center; gap: 7px; width: 100%; min-width: 0; padding: 6px 8px; border: 0; border-radius: 7px; background: #fff; color: #343a40; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.sc-rich-footer-language-option:hover, .sc-rich-footer-language-option:focus-visible { background: #eff6ff; outline: none; }
.sc-rich-footer-language-option.is-current { background: #eef2ff; color: #4338ca; }
.sc-rich-footer-language-option img { flex: 0 0 auto; width: 22px; height: 16px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(15, 23, 42, .12); }
.sc-rich-footer-language-extra-flag { display: inline-grid; flex: 0 0 22px; place-items: center; width: 22px; height: 16px; font-size: 15px; }
.sc-rich-footer-language-option > span:not(.sc-rich-footer-language-check) { display: grid; min-width: 0; line-height: 1.2; }
.sc-rich-footer-language-option strong { font-size: 11px; }
.sc-rich-footer-language-option small { overflow: hidden; color: #64748b; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.sc-rich-footer-language-check { margin-left: auto; font-size: 13px; }
.sc-rich-footer-language-option:disabled { opacity: .65; cursor: wait; }
.sc-rich-footer-language-status:not(:empty) { padding: 6px 12px; color: #374151; font-size: 11px; }
.sc-rich-footer-language:focus-within > summary { outline: 2px solid #6366f1; outline-offset: 2px; }

.sc-rich-footer-links {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px 18px;
  font-size: 0.8rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .sc-rich-footer-sub-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
  }
  .sc-rich-footer-copyright,
  .sc-rich-footer-links {
    justify-self: center;
    text-align: center;
    justify-content: center;
  }
}
.sc-rich-footer-menu-toggle { display: none; }

.sc-rich-footer-sub-sticky {
  position: fixed;
  z-index: 9990;
  left: 0;
  right: 0;
  bottom: 0;
  box-sizing: border-box;
  padding: 6px 12px;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.14);
}

@media (max-width: 600px) {
  .sc-rich-footer-sub-sticky {
    left: 50%;
    right: auto;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    transform: translateX(-50%);
  }

  .sc-rich-footer-sub-sticky .sc-rich-footer-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 6px;
    border: 1px solid color-mix(in srgb, var(--sc-ft-sub-text) 30%, transparent);
    border-radius: 50%;
    background: var(--sc-ft-sub-bg);
    color: var(--sc-ft-sub-text);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.22);
  }

  .sc-rich-footer-menu-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .sc-rich-footer-sub-sticky .sc-rich-footer-sub-content {
    display: none;
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    width: min(320px, calc(100vw - 24px));
    box-sizing: border-box;
    flex-direction: column;
    align-items: stretch;
    gap: 6px 12px;
    padding: 6px 12px;
    border: 1px solid color-mix(in srgb, var(--sc-ft-sub-text) 25%, transparent);
    border-radius: 10px;
    background: var(--sc-ft-sub-bg);
    color: var(--sc-ft-sub-text);
    text-align: center;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
    transform: translateX(-50%);
  }

  .sc-rich-footer-sub-sticky.is-open .sc-rich-footer-sub-content { display: flex; }
  .sc-rich-footer-sub-sticky .sc-rich-footer-links { justify-content: center; }
}

@media (max-width: 850px) {
  .sc-rich-footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .sc-rich-footer {
    width: 100% !important;
    max-width: 100%;
    margin-right: 0 !important;
    margin-left: 0 !important;
    margin-bottom: 0 !important;
    overflow-x: clip;
  }

  .sc-rich-footer-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 18px 12px;
  }

  .sc-rich-footer-col {
    width: 100%;
  }

  .sc-rich-footer-newsletter-row {
    flex-wrap: wrap;
  }

  .sc-rich-footer-email {
    flex-basis: 100%;
  }

  .sc-rich-footer-submit {
    width: 100%;
  }

  .sc-rich-footer-map {
    max-width: 100%;
  }
}

/* Treat a floating content panel as its own viewport for the rich footer. */
@media (min-width: 901px) {
  .sc-slot-canvas.sc-content-floating-mode {
    container-type: inline-size;
  }

  .sc-slot-canvas.sc-content-floating-mode .sc-rich-footer {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: auto !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    overflow-x: clip;
  }

  .sc-slot-canvas.sc-content-floating-mode .sc-rich-footer-main {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@container (max-width: 760px) {
  .sc-slot-canvas.sc-content-floating-mode .sc-rich-footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container (max-width: 480px) {
  .sc-slot-canvas.sc-content-floating-mode .sc-rich-footer-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .sc-slot-canvas.sc-content-floating-mode .sc-rich-footer-newsletter-row {
    flex-wrap: wrap;
  }

  .sc-slot-canvas.sc-content-floating-mode .sc-rich-footer-email,
  .sc-slot-canvas.sc-content-floating-mode .sc-rich-footer-submit {
    flex-basis: 100%;
    width: 100%;
  }

  .sc-slot-canvas.sc-content-floating-mode .sc-rich-footer-map {
    max-width: 100%;
  }
}



.sc-archive-readmore-arrow {
  width: 36px;
  height: 36px;
  padding: 6px;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.sc-archive-readmore-arrow:hover {
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  transform: translateX(2px);
}
