/* ==========================================================================
   QUANTUM27 MASTER DESIGN SYSTEM (SIGNAL & CIRCUIT + ADMIN27 COLLAPSIBLE SIDEBAR)
   100% Unified Across All Pages: Home, Blog/Catalog, Article, Tools, About, Advisory
   Fonts: Space Grotesk, DM Sans, DM Mono, Georgia
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --paper: #f8fafc;
  --card: #ffffff;
  --card-subtle: #f1f5f9;
  --sidebar-bg: #f8fafc;
  --sidebar-border: #e2e8f0;
  --sidebar-hover: rgba(0, 0, 0, 0.04);
  --sidebar-active: rgba(37, 99, 235, 0.08);

  --lime: #10b981;
  --orange: #ff7047;
  --blue: #2563eb;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --cyan: #06b6d4;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --display: 'Space Grotesk', -apple-system, sans-serif;
  --mono: 'DM Mono', monospace;

  /* Compatibility aliases */
  --bg-page: var(--paper);
  --bg-surface: var(--card);
  --text-main: var(--ink);
  --text-body: var(--ink);
  --text-muted: var(--muted);
  --border-neutral: var(--line);
}

body.dark,
[data-theme="dark"] {
  --ink: #f8fafc;
  --muted: #94a3b8;
  --line: #1e293b;
  --paper: #09101d;
  --card: #0e1828;
  --card-subtle: #132034;
  --sidebar-bg: #070d18;
  --sidebar-border: #1e293b;
  --sidebar-hover: rgba(255, 255, 255, 0.06);
  --sidebar-active: rgba(56, 189, 248, 0.12);

  --primary: #38bdf8;
  --primary-hover: #0ea5e9;
  --blue: #38bdf8;
  --cyan: #38bdf8;

  --bg-page: #09101d;
  --bg-surface: #0e1828;
  --text-main: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --border-neutral: #1e293b;
}

/* Global Topic Tags */
.topic-tag {
  font-family: var(--mono, 'DM Mono', monospace);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}
.tag-cloud {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.22);
}
.dark .tag-cloud, [data-theme="dark"] .tag-cloud {
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.3);
}
.tag-cyber {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
  border: 1px solid rgba(124, 58, 237, 0.22);
}
.dark .tag-cyber, [data-theme="dark"] .tag-cyber {
  background: rgba(124, 58, 237, 0.2);
  color: #c084fc;
  border-color: rgba(192, 132, 252, 0.3);
}
.tag-ai {
  background: rgba(8, 145, 178, 0.1);
  color: #0891b2;
  border: 1px solid rgba(8, 145, 178, 0.22);
}
.dark .tag-ai, [data-theme="dark"] .tag-ai {
  background: rgba(8, 145, 178, 0.2);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}
.tag-quantum {
  background: rgba(99, 102, 241, 0.1);
  color: #4f46e5;
  border: 1px solid rgba(99, 102, 241, 0.22);
}
.dark .tag-quantum, [data-theme="dark"] .tag-quantum {
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
  border-color: rgba(129, 140, 248, 0.3);
}

/* Sidebar Ad Themes */
.ad-card-purple {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #9333ea 100%) !important;
}
.ad-card-dark {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%) !important;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   OVERALL SITE LAYOUT WITH MINIMIZABLE/MAXIMIZABLE LEFT SIDEBAR
   ========================================================================== */

.site-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Left Navigation Sidebar - Permanently hidden per specification */
.site-sidebar,
.sidebar-backdrop,
.mobile-sidebar-btn,
#siteSidebar,
#sidebarBackdrop,
#mobileSidebarBtn,
#sidebarCollapseToggle {
  display: none !important;
}

.sidebar-top {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--sidebar-border);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 700 17px var(--display);
  letter-spacing: -0.5px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-brand-name {
  display: inline-block;
  transition: opacity 0.15s ease;
}

.brand-slash {
  color: var(--orange);
}

.sidebar-toggle-btn {
  background: none;
  border: 1px solid var(--sidebar-border);
  border-radius: 4px;
  color: var(--muted);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 16px;
}

.sidebar-toggle-btn:hover {
  color: var(--ink);
  background: var(--sidebar-hover);
  border-color: var(--muted);
}

.toggle-icon {
  display: inline-block;
  transition: transform 0.22s ease;
  line-height: 1;
}

/* Sidebar Nav Items */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px;
}

.sidebar-group-label {
  font: 700 9px var(--mono);
  color: var(--muted);
  letter-spacing: 0.9px;
  padding: 6px 10px;
  text-transform: uppercase;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.15s ease;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-item:hover {
  color: var(--ink);
  background: var(--sidebar-hover);
}

.sidebar-item.active {
  color: var(--ink);
  font-weight: 700;
  background: var(--sidebar-active);
  border-left: 3px solid var(--orange);
}

.item-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: inherit;
}

.item-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-badge {
  font: 600 10px var(--mono);
  padding: 1px 6px;
  border-radius: 10px;
  background: var(--sidebar-hover);
  color: var(--muted);
  flex-shrink: 0;
}

/* Domain Dots */
.domain-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-blue { background: #38bdf8; }
.dot-green { background: #10b981; }
.dot-orange { background: #ff7047; }
.dot-cyan { background: #06b6d4; }
.dot-purple { background: #a855f7; }
.dot-amber { background: #f59e0b; }
.dot-indigo { background: #6366f1; }

/* ==========================================================================
   MINIMIZED SIDEBAR STATE (.sidebar-collapsed)
   ========================================================================== */

html.sidebar-collapsed .site-sidebar {
  width: 60px;
}

html.sidebar-collapsed .sidebar-brand-name {
  display: none;
}

html.sidebar-collapsed .sidebar-group-label {
  display: none;
}

html.sidebar-collapsed .item-text {
  display: none;
}

html.sidebar-collapsed .item-badge {
  display: none;
}

html.sidebar-collapsed .sidebar-item {
  justify-content: center;
  padding: 10px 0;
}

html.sidebar-collapsed .toggle-icon {
  transform: rotate(180deg);
}

/* Main Area */
.site-main-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition: all 0.22s ease;
}

/* ==========================================================================
   TOPBAR
   ========================================================================== */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 90;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-wrap {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}

.nav-left-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-sidebar-btn {
  display: none;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  padding: 4px;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 700 17px var(--display);
}

.brand-badge {
  font: 700 9px var(--mono);
  letter-spacing: 0.8px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 112, 71, 0.12);
  color: var(--orange);
  border: 1px solid rgba(255, 112, 71, 0.25);
  margin-left: 4px;
}

.main-nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  align-items: center;
}

.main-nav a {
  padding: 16px 0;
  transition: color 0.15s ease;
  position: relative;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--ink);
}

.main-nav a.active {
  color: var(--ink);
  font-weight: 700;
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--orange);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button,
.menu-toggle {
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 20px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.icon-button:hover {
  color: var(--orange);
  background: rgba(0, 0, 0, 0.04);
}

body.dark .icon-button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle {
  display: none;
}

/* ==========================================================================
   CONTAINER & EDITORIAL COMPONENTS
   ========================================================================== */

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
  width: 100%;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 480px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 60px;
}

.eyebrow {
  font: 500 11px var(--mono);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
}

.eyebrow-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--orange);
  border-radius: 50%;
  margin-right: 8px;
}

.hero h1 {
  font: 700 clamp(44px, 5.8vw, 76px)/0.96 var(--display);
  letter-spacing: -3.5px;
  margin: 0 0 24px;
  color: var(--ink);
}

.hero h1 em {
  font: 400 0.9em var(--serif);
  letter-spacing: -2px;
}

.hero-intro {
  font-size: 16px;
  color: var(--muted);
  max-width: 440px;
  margin: 0 0 28px;
  line-height: 1.6;
}

.text-link {
  font-weight: 700;
  font-size: 14px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 6px;
  display: inline-flex;
  align-items: center;
  transition: border-color 0.15s;
}

.text-link span {
  color: var(--orange);
  margin-left: 7px;
}

.text-link:hover {
  border-color: var(--orange);
}

.hero-aside {
  height: 320px;
  position: relative;
  display: grid;
  place-items: center;
}

.issue-card {
  z-index: 2;
  background: var(--ink);
  color: var(--paper);
  width: 260px;
  min-height: 235px;
  padding: 27px 28px;
  transform: rotate(5deg);
  box-shadow: 14px 14px 0 var(--lime);
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.issue-card:hover {
  transform: rotate(2deg) scale(1.02);
}

.issue-label,
.issue-date {
  font: 10px var(--mono);
  color: #afbdb4;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.issue-card p {
  font: 20px/1.25 var(--serif);
  margin: 24px 0;
  color: #f7faf8;
}

.issue-line {
  width: 35px;
  border-top: 2px solid var(--orange);
  display: block;
  margin-bottom: 16px;
}

.hero-orbit {
  border: 1px solid var(--orange);
  border-radius: 50%;
  position: absolute;
  pointer-events: none;
}

.orbit-one {
  width: 330px;
  height: 210px;
  transform: rotate(28deg);
  opacity: 0.45;
}

.orbit-two {
  width: 290px;
  height: 160px;
  transform: rotate(-30deg);
  border-color: var(--blue);
  opacity: 0.45;
}

.orbit-three {
  height: 250px;
  width: 130px;
  border-color: var(--lime);
  opacity: 0.5;
}

.hero-chip {
  position: absolute;
  right: 4%;
  bottom: 0;
  background: var(--lime);
  color: #17201f;
  padding: 10px 14px;
  font: 600 10px var(--mono);
  transform: rotate(-4deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 3;
}

/* ==========================================================================
   FEATURED & LATEST STORIES
   ========================================================================== */

.featured,
.latest {
  padding-top: 40px;
  padding-bottom: 80px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-heading h2 {
  font: 600 36px var(--display);
  letter-spacing: -1.6px;
  margin: 0;
  color: var(--ink);
}

.section-number {
  font: 11px var(--mono);
  color: var(--muted);
}

.featured-story {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: var(--card);
  min-height: 380px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.featured-story:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.featured-image {
  min-height: 380px;
  background-size: cover;
  background-position: center;
  background-color: #1a221f;
}

.image-ai {
  background-image: linear-gradient(135deg, rgba(6, 23, 37, 0.35), rgba(216, 42, 61, 0.45)),
    url('https://images.unsplash.com/photo-1635070041078-e363dbe005cb?auto=format&fit=crop&w=1200&q=85');
}

.image-interface {
  background-image: linear-gradient(135deg, rgba(237, 102, 72, 0.3), rgba(20, 33, 78, 0.45)),
    url('https://images.unsplash.com/photo-1558655146-9f40138edfeb?auto=format&fit=crop&w=800&q=80');
}

.image-data {
  background-image: linear-gradient(120deg, rgba(8, 38, 64, 0.2), rgba(19, 111, 118, 0.5)),
    url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=800&q=80');
}

.featured-content {
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
}

.story-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font: 10px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.category {
  color: var(--orange);
  font-weight: 600;
}

.featured-content h3 {
  font: 600 30px/1.12 var(--display);
  letter-spacing: -1.3px;
  margin: 18px 0 14px;
  color: var(--ink);
}

.featured-content h3 a:hover {
  color: var(--orange);
}

.featured-content > p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  max-width: 420px;
  line-height: 1.6;
}

.author-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
  font-size: 12px;
}

.author-row strong,
.author-row span {
  display: block;
}

.author-row span {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

.avatar {
  display: grid;
  place-items: center;
  background: var(--orange);
  border-radius: 50%;
  height: 34px;
  width: 34px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.bookmark {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 4px;
  transition: color 0.15s;
}

.bookmark:hover,
.bookmark.saved {
  color: var(--orange);
}

.latest {
  padding-top: 0;
}

.latest-heading {
  border-top: 1px solid var(--line);
  padding-top: 48px;
}

.filter-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  padding: 8px 14px;
  font: 500 11px var(--mono);
  cursor: pointer;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
}

.filter-button span {
  color: var(--orange);
  margin-left: 10px;
}

.filter-bar {
  display: none;
  gap: 8px;
  margin: -4px 0 24px;
  flex-wrap: wrap;
}

.filter-bar.visible {
  display: flex;
}

.filter-chip {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: none;
  color: var(--muted);
  padding: 6px 14px;
  font: 11px var(--mono);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1080px) and (min-width: 681px) {
  .stories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.story-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.story-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
  border-color: var(--orange, #ff7047);
}

.story-image {
  height: 185px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: #1a221f;
}

.read-time {
  position: absolute;
  right: 12px;
  top: 12px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 4px 8px;
  font: 10px var(--mono);
  font-weight: 600;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.story-body {
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.story-body h3 {
  font: 600 20px/1.2 var(--display);
  letter-spacing: -0.7px;
  margin: 12px 0 24px;
  color: var(--ink);
}

.story-body h3 a:hover {
  color: var(--orange);
}

.mini-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  margin-top: auto;
}

.avatar-small {
  height: 24px;
  width: 24px;
  font-size: 8px;
}

.load-more {
  display: block;
  margin: 40px auto 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 0 0 6px;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s;
}

.load-more:hover {
  border-color: var(--orange);
}

.load-more span {
  color: var(--orange);
  margin-left: 7px;
}

/* ==========================================================================
   CATALOG PAGE (/pages/blog.html)
   ========================================================================== */

.catalog-page {
  padding-top: 48px;
  padding-bottom: 90px;
}

.catalog-header {
  margin-bottom: 40px;
}

.catalog-header h1 {
  font: 700 clamp(36px, 5vw, 56px)/1 var(--display);
  letter-spacing: -2px;
  margin: 0 0 16px;
  color: var(--ink);
}

.catalog-desc {
  font-size: 16px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 28px;
  line-height: 1.6;
}

.catalog-controls {
  margin-bottom: 20px;
}

.catalog-search-wrap {
  position: relative;
  max-width: 480px;
}

.catalog-search-wrap .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.catalog-search-wrap input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  font: 13px var(--sans);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  outline: 0;
  transition: border-color 0.15s;
}

.catalog-search-wrap input:focus {
  border-color: var(--orange);
}

.catalog-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  font: 11px var(--mono);
  color: var(--muted);
}

.editorial-empty-card {
  grid-column: 1 / -1;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 56px 40px;
  text-align: center;
  border-radius: 4px;
  margin: 20px 0;
}

.editorial-empty-card .empty-badge {
  font: 600 11px var(--mono);
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  display: inline-block;
}

.editorial-empty-card h3 {
  font: 600 26px var(--display);
  letter-spacing: -1px;
  margin: 0 0 14px;
  color: var(--ink);
}

.editorial-empty-card p {
  color: var(--muted);
  font-size: 14px;
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* ==========================================================================
   ARTICLE READER (/pages/article.html)
   ========================================================================== */

.reader-page {
  padding-top: 48px;
  padding-bottom: 100px;
}

.article-reader {
  max-width: 780px;
  margin: 0 auto;
}

.reader-breadcrumb {
  font: 11px var(--mono);
  color: var(--muted);
  margin-bottom: 24px;
}

.reader-breadcrumb a:hover {
  color: var(--orange);
}

.reader-meta {
  margin-bottom: 16px;
}

.reader-title {
  font: 700 clamp(34px, 4.8vw, 52px)/1.05 var(--display);
  letter-spacing: -2px;
  margin: 0 0 24px;
  color: var(--ink);
}

.reader-author-row {
  padding: 16px 0 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.reader-prose {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
}

.reader-prose p {
  margin: 0 0 24px;
}

.reader-prose h2 {
  font: 600 28px/1.2 var(--display);
  letter-spacing: -1px;
  margin: 44px 0 16px;
  color: var(--ink);
}

.reader-prose h3 {
  font: 600 22px/1.3 var(--display);
  letter-spacing: -0.5px;
  margin: 32px 0 12px;
  color: var(--ink);
}

.reader-prose ul,
.reader-prose ol {
  margin: 0 0 24px;
  padding-left: 24px;
}

.reader-prose li {
  margin-bottom: 8px;
}

.reader-prose blockquote {
  border-left: 3px solid var(--orange);
  margin: 28px 0;
  padding: 12px 24px;
  font: italic 18px/1.6 var(--serif);
  color: var(--ink);
  background: rgba(0, 0, 0, 0.02);
}

body.dark .reader-prose blockquote {
  background: rgba(255, 255, 255, 0.03);
}

.reader-prose pre {
  background: var(--ink);
  color: var(--paper);
  padding: 20px 24px;
  border-radius: 4px;
  overflow-x: auto;
  font: 13px/1.5 var(--mono);
  margin: 28px 0;
}

.reader-prose code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 6px;
  border-radius: 3px;
}

body.dark .reader-prose code {
  background: rgba(255, 255, 255, 0.1);
}

.reader-footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   TOPICS & NEWSLETTER & FOOTER
   ========================================================================== */

.topics-section {
  background: var(--ink);
  color: var(--paper);
  padding: 75px 0 90px;
}

.topics-section .eyebrow {
  color: #a6b0a9;
}

.topics-section h2 {
  color: var(--paper);
}

.topic-list {
  border-top: 1px solid #38453f;
  margin-top: 20px;
}

.topic-list a {
  display: grid;
  grid-template-columns: 70px 1fr 30px;
  align-items: center;
  border-bottom: 1px solid #38453f;
  padding: 20px 0;
  font: 500 22px var(--display);
  letter-spacing: -0.5px;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.topic-list a:hover {
  color: var(--lime);
  padding-left: 6px;
}

.topic-list span,
.topic-list b {
  font: 11px var(--mono);
  color: #87948b;
}

.topic-list b {
  color: var(--orange);
  text-align: right;
  font-size: 15px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  background: var(--paper);
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 11px;
  color: var(--muted);
}

.footer-inner .brand {
  color: var(--ink);
  font-size: 15px;
}

.footer-inner .brand-mark {
  width: 24px;
  height: 24px;
  font-size: 12px;
}

.footer-links {
  display: flex;
  gap: 18px;
  margin-left: auto;
}

.footer-links a:hover {
  color: var(--orange);
}

.copyright {
  font: 10px var(--mono);
}

/* ==========================================================================
   LIVE INSTANT SEARCH MODAL & RESULTS CONTAINER
   ========================================================================== */

.search-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(18, 23, 21, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
}

.search-modal.open {
  display: flex;
}

.search-dialog {
  background: var(--paper);
  width: min(680px, calc(100% - 40px));
  padding: 36px 40px;
  position: relative;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}

.search-dialog h2 {
  font: 600 30px var(--display);
  letter-spacing: -1.3px;
  margin: 0 0 20px;
  color: var(--ink);
}

.search-dialog input {
  width: 100%;
  border: 0;
  border-bottom: 2px solid var(--orange);
  background: none;
  padding: 12px 0;
  color: var(--ink);
  font: 18px var(--sans);
  outline: 0;
}

.close-search {
  position: absolute;
  top: 20px;
  right: 22px;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 26px;
  cursor: pointer;
}

.search-hint {
  color: var(--muted);
  font-size: 11px;
  margin-top: 10px;
  margin-bottom: 0;
}

.search-hint kbd {
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--mono);
}

.search-results-box {
  max-height: 380px;
  overflow-y: auto;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.search-result-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
  margin-bottom: 6px;
  border: 1px solid transparent;
}

.search-result-item:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--line);
}

body.dark .search-result-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.search-result-meta {
  display: flex;
  gap: 8px;
  font: 10px var(--mono);
  color: var(--muted);
  text-transform: uppercase;
}

.search-result-title {
  font: 600 16px var(--display);
  color: var(--ink);
  letter-spacing: -0.3px;
}

.search-result-summary {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}

.search-empty-prompt {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 24px 0;
}

/* ==========================================================================
   RESPONSIVE DESIGN (<= 900px)
   ========================================================================== */

@media (max-width: 900px) {
  .site-sidebar {
    position: fixed;
    left: -260px;
    width: 250px !important;
    transition: left 0.25s ease;
    z-index: 1500;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
  }
  .site-sidebar.drawer-open {
    left: 0;
  }
  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1400;
  }
  .sidebar-backdrop.active {
    display: block;
  }
  .mobile-sidebar-btn {
    display: flex;
  }
  .topbar-brand {
    display: flex;
  }
  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 56px;
    background: var(--paper);
    padding: 15px 20px 25px;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav a {
    padding: 10px 0;
  }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
  }
  .menu-toggle span {
    height: 1.5px;
    width: 18px;
    background: var(--ink);
    display: block;
  }
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 40px;
    min-height: auto;
  }
  .hero-aside {
    height: 280px;
    margin-top: 30px;
  }
  .featured-story {
    grid-template-columns: 1fr;
  }
  .featured-image {
    min-height: 220px;
  }
  .stories-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   TOPBAR NAVIGATION DROPDOWNS (KNOWLEDGE DOMAINS & SUBDOMAINS)
   ========================================================================== */

.main-nav {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  align-items: center;
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 16px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: color 0.15s ease;
}

.nav-dropdown-trigger:hover,
.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown:focus-within .nav-dropdown-trigger {
  color: var(--ink);
}

.nav-dropdown-trigger.active {
  color: var(--ink);
  font-weight: 700;
}

.nav-dropdown-trigger.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--orange);
}

.nav-arrow {
  font-size: 9px;
  display: inline-block;
  transition: transform 0.2s ease;
  opacity: 0.7;
}

.nav-dropdown:hover .nav-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-dropdown-menu {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 255px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  padding: 6px 0;
  z-index: 1000;
}

.nav-dropdown:hover > .nav-dropdown-menu,
.nav-dropdown:focus-within > .nav-dropdown-menu,
.nav-dropdown.is-open > .nav-dropdown-menu {
  display: block !important;
}

.dropdown-header {
  font-size: 10px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  padding: 8px 16px 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}

.nav-dropdown-menu a {
  display: block;
  padding: 7px 16px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease, padding-left 0.12s ease;
  white-space: normal;
  line-height: 1.4;
}

.nav-dropdown-menu a:hover {
  background: var(--card);
  color: var(--orange);
  padding-left: 20px;
}

.dropdown-footer {
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 4px;
}

.dropdown-footer a {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--orange);
}

/* ==========================================================================
   HOMEPAGE SECURITY ADVISORIES STREAM (CVD)
   ========================================================================== */

.advisories-section {
  padding-top: 56px;
  padding-bottom: 56px;
  border-top: 1px solid var(--line);
}

.advisories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.advisory-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.advisory-card:hover {
  transform: translateY(-2px);
  border-color: var(--orange);
}

.advisory-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.advisory-id-badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--orange);
  background: rgba(255, 112, 71, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 112, 71, 0.25);
}

.advisory-cvss {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.cvss-high {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.cvss-med {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.advisory-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 10px;
  color: var(--ink);
}

.advisory-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.advisory-meta-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.advisory-status-tag {
  color: #10b981;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.advisory-status-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

/* ==========================================================================
   BLOG & ARTICLE ADVERTISING RAIL (GOOGLE & MICROSOFT ADVERTISING READY)
   ========================================================================== */

.catalog-page.container,
.reader-page.container {
  max-width: 1280px;
}

.blog-layout-with-ads {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  margin-top: 24px;
  width: 100%;
}

.blog-main-column {
  flex: 1;
  min-width: 0;
}

.blog-ads-rail {
  width: 320px;
  flex-shrink: 0;
  position: sticky;
  top: 76px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 1060px) {
  .blog-layout-with-ads {
    flex-direction: column;
  }
  .blog-ads-rail {
    width: 100%;
    position: static;
    margin-top: 40px;
  }
}

.ad-slot-box {
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.ad-slot-box:hover {
  border-color: var(--orange);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.ad-slot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 10px;
  font-family: var(--mono);
  letter-spacing: 0.8px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.ad-slot-badge {
  background: rgba(255, 112, 71, 0.12);
  color: var(--orange);
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 9px;
  border: 1px solid rgba(255, 112, 71, 0.25);
}

.ad-placeholder-content {
  min-height: 250px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(125, 125, 125, 0.05);
  border-radius: 6px;
  padding: 24px 16px;
  box-sizing: border-box;
  text-align: center;
}

.ad-placeholder-content.skyscraper {
  min-height: 600px;
}

.ad-partner-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.partner-chip {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 3px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ad-slot-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.ad-slot-subtitle {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 14px;
  max-width: 250px;
}

.ad-integration-code {
  font-size: 10px;
  font-family: var(--mono);
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 4px;
  max-width: 100%;
  word-break: break-all;
}

/* Mobile responsive menu with dropdowns */
@media (max-width: 900px) {
  .main-nav {
    max-height: 80vh;
    overflow-y: auto;
  }
  .main-nav .nav-dropdown {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  .main-nav .nav-dropdown-trigger {
    width: 100%;
    padding: 8px 0;
    justify-content: space-between;
  }
  .main-nav .nav-dropdown-menu {
    display: none;
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 10px 12px;
    min-width: auto;
  }
  .main-nav .nav-dropdown.is-open > .nav-dropdown-menu {
    display: block !important;
  }
  .main-nav .dropdown-header {
    display: none;
  }
  .main-nav .nav-dropdown-menu a {
    padding: 5px 0;
    font-size: 12px;
    color: var(--muted);
  }
  .main-nav .nav-dropdown-menu a:hover {
    color: var(--orange);
    background: transparent;
    padding-left: 4px;
  }
}


/* Dedicated Domain Hub Dropdown Card */
.dropdown-hub-item {
  padding: 6px 12px 10px;
  border-bottom: 1px solid var(--line, #e3ded5);
  margin-bottom: 6px;
}
.dropdown-domain-hub {
  display: flex !important;
  flex-direction: column;
  gap: 3px;
  padding: 10px 14px !important;
  background: rgba(255, 112, 71, 0.08) !important;
  border: 1px solid var(--orange, #ff7047) !important;
  border-radius: 6px;
  text-decoration: none !important;
  transition: all 0.15s ease;
}
.dropdown-domain-hub:hover {
  background: var(--orange, #ff7047) !important;
  padding-left: 16px !important;
}
.dropdown-domain-hub:hover .domain-hub-name,
.dropdown-domain-hub:hover .domain-hub-desc,
.dropdown-domain-hub:hover .domain-hub-tag {
  color: #020b14 !important;
}
.domain-hub-tag {
  display: inline-block;
  font-size: 9px;
  font-family: var(--mono, 'DM Mono', monospace);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--orange, #ff7047);
  font-weight: 700;
}
.domain-hub-name {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--ink, #111110) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dark .domain-hub-name {
  color: #f8fafc !important;
}
.domain-hub-desc {
  font-size: 11px !important;
  color: var(--muted, #5e5d59) !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
}
.dark .domain-hub-desc {
  color: #94a3b8 !important;
}

/* ==========================================================================
   ENTERPRISE HOMEPAGE HERO CARD & TELEMETRY STRIP (Quantum27 Modern Standard)
   ========================================================================== */

.home-latest-header {
  margin-top: 28px !important;
  margin-bottom: 32px !important;
}

.home-hero-card {
  background: transparent;
  border: none;
  border-radius: 18px;
  padding: 0;
  box-shadow: none;
  position: relative;
  overflow: visible;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dark .home-hero-card,
[data-theme="dark"] .home-hero-card {
  background: transparent;
  border: none;
  box-shadow: none;
}

.home-hero-card::before {
  display: none;
}

.home-hero-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.home-hero-top-row .eyebrow {
  margin: 0;
  font-family: var(--mono, 'DM Mono', monospace);
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--orange, #ff7047);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange, #ff7047);
  display: inline-block;
}

/* Pulsing Live Telemetry Badge */
.live-status-pill {
  font-size: 11px !important;
  font-family: var(--mono, 'DM Mono', monospace) !important;
  color: var(--orange, #ff7047) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  background: rgba(255, 112, 71, 0.08) !important;
  padding: 5px 12px !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 112, 71, 0.28) !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange, #ff7047);
  display: inline-block;
  box-shadow: 0 0 0 rgba(255, 112, 71, 0.5);
  animation: pulseDotAnim 2s infinite ease-in-out;
}

@keyframes pulseDotAnim {
  0% { box-shadow: 0 0 0 0 rgba(255, 112, 71, 0.7); }
  70% { box-shadow: 0 0 0 7px rgba(255, 112, 71, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 112, 71, 0); }
}

/* Hero Typography */
.home-hero-title {
  font-size: 38px !important;
  font-weight: 800 !important;
  letter-spacing: -1px !important;
  line-height: 1.15 !important;
  margin: 0 0 12px 0 !important;
  color: var(--ink, #111110) !important;
  font-family: var(--display, 'Space Grotesk', sans-serif) !important;
}

.dark .home-hero-title {
  color: #f8fafc !important;
}

.home-hero-subtitle {
  font-size: 16px !important;
  color: var(--muted, #5e5d59) !important;
  line-height: 1.6 !important;
  max-width: 820px !important;
  margin: 0 !important;
  font-family: var(--sans, 'DM Sans', sans-serif) !important;
}

.dark .home-hero-subtitle {
  color: #94a3b8 !important;
}

/* Statistics Strip */
.home-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line, #e3ded5);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 14px;
  background: var(--paper, #f8f6f0);
  border: 1px solid var(--line, #e3ded5);
  border-radius: 8px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.dark .stat-item {
  background: #111821;
  border-color: #263342;
}

.stat-item:hover {
  border-color: var(--orange, #ff7047);
  transform: translateY(-1px);
}

.stat-number {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink, #111110);
  font-family: var(--display, 'Space Grotesk', sans-serif);
  line-height: 1.2;
}

.dark .stat-number {
  color: #ffffff;
}

.stat-label {
  font-size: 11px;
  font-family: var(--mono, 'DM Mono', monospace);
  color: var(--muted, #5e5d59);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.dark .stat-label {
  color: #94a3b8;
}

/* Framework Alignment Badges */
.home-frameworks-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--mono, 'DM Mono', monospace);
  font-size: 11px;
}

.frameworks-heading {
  color: var(--ink, #111110);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 4px;
}

.dark .frameworks-heading {
  color: #e2e8f0;
}

.framework-tag {
  background: var(--paper, #f8f6f0);
  border: 1px solid var(--line, #e3ded5);
  color: var(--muted, #5e5d59);
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.dark .framework-tag {
  background: #111821;
  border-color: #263342;
  color: #cbd5e1;
}

.framework-tag:hover {
  border-color: var(--orange, #ff7047);
  color: var(--orange, #ff7047);
}

@media (max-width: 900px) {
  .home-hero-card {
    padding: 24px 20px;
  }
  .home-hero-title {
    font-size: 28px !important;
  }
  .home-stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media (max-width: 540px) {
  .home-hero-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .home-stats-strip {
    grid-template-columns: 1fr;
  }
}


/* =========================================================================
   QUANTUM27 MODERN PORTAL STYLING (HERO, RECENT ARTICLES & DUAL SIDEBAR)
   ========================================================================= */
.brand-atom-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: block;
}
.brand-highlight {
  color: var(--orange, #ff7047);
}
.theme-switch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 9px;
  border: 1px solid var(--line, #e2e8f0);
  background: var(--card, #ffffff);
  color: var(--ink, #17201f);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.dark .theme-switch-btn {
  background: #111a2e;
  border-color: #1e293b;
  color: #f8fafc;
}
.theme-switch-btn:hover {
  border-color: var(--primary, #2563eb);
  color: var(--primary, #2563eb);
  background: rgba(37, 99, 235, 0.06);
}
.hero-banner-section {
  max-width: 1320px;
  margin: 24px auto 36px;
  padding: 0 24px;
}
.hero-edge-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(6, 182, 212, 0.03) 50%, #ffffff 100%);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  position: relative;
  min-height: 400px;
  transition: all 0.25s ease;
}
.dark .hero-edge-card,
[data-theme="dark"] .hero-edge-card {
  background: linear-gradient(135deg, #07152b 0%, #0a2042 50%, #051022 100%);
  border-color: #1e3a64;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18), 0 0 35px rgba(37, 99, 235, 0.12);
}
.hero-edge-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #7c3aed 0%, #2563eb 50%, #00f0ff 100%);
  z-index: 3;
}
.hero-content-col {
  flex: 1 1 56%;
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}
.hero-graphic-col {
  flex: 1 1 44%;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 60% 50%, rgba(37, 99, 235, 0.08) 0%, rgba(6, 182, 212, 0.04) 45%, transparent 75%);
}
.dark .hero-graphic-col,
[data-theme="dark"] .hero-graphic-col {
  background: radial-gradient(circle at 60% 50%, rgba(0, 240, 255, 0.12) 0%, rgba(37, 99, 235, 0.08) 45%, transparent 75%);
}
.hero-cyber-visual {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-article-title {
  font: 800 34px/1.25 var(--display, 'Space Grotesk', sans-serif);
  color: var(--ink, #0f172a);
  margin: 0 0 14px;
  letter-spacing: -0.6px;
}
.hero-article-title a {
  color: var(--ink, #0f172a);
  text-decoration: none;
  transition: color 0.15s ease;
}
.hero-article-title a:hover {
  color: var(--primary, #2563eb);
}
.dark .hero-article-title,
.dark .hero-article-title a,
[data-theme="dark"] .hero-article-title,
[data-theme="dark"] .hero-article-title a {
  color: #ffffff;
}
.dark .hero-article-title a:hover,
[data-theme="dark"] .hero-article-title a:hover {
  color: #38bdf8;
}
.hero-article-subtitle,
.hero-intro {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted, #475569);
  margin: 0 0 24px;
  max-width: 600px;
}
.dark .hero-article-subtitle,
.dark .hero-intro,
[data-theme="dark"] .hero-article-subtitle,
[data-theme="dark"] .hero-intro {
  color: #94a3b8;
}
.hero-meta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-author-group {
  display: none !important;
}
.hero-article-date {
  color: var(--muted, #64748b);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dark .hero-article-date,
[data-theme="dark"] .hero-article-date {
  color: #94a3b8;
}
.btn-hero-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
  transition: all 0.2s ease;
}
.btn-hero-read-more:hover {
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.6);
  transform: translateX(3px);
}
.hero-admin-notice,
.admin-curation-link {
  display: none !important;
}
.card-author,
.mini-author,
.reader-author-row {
  display: none !important;
}
.portal-layout {
  max-width: 1320px;
  margin: 0 auto 64px;
  padding: 0 24px;
  display: flex;
  gap: 36px;
  align-items: flex-start;
}
.portal-main-col {
  flex: 1 1 68%;
  min-width: 0;
}
.portal-sidebar-col {
  width: 330px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.portal-section-title {
  font: 700 22px/1.2 var(--display, 'Space Grotesk', sans-serif);
  color: var(--ink, #17201f);
  margin: 0 0 6px;
  letter-spacing: -0.4px;
}
.dark .portal-section-title { color: #f8fafc; }
.accent-underline {
  width: 44px;
  height: 3.5px;
  background: linear-gradient(90deg, #2563eb 0%, #00f0ff 100%);
  border-radius: 2px;
}
.portal-section-subtitle {
  font-size: 13px;
  color: var(--muted, #64748b);
  margin: 6px 0 20px;
}
.dark .portal-section-subtitle { color: #94a3b8; }
.recent-articles-stream {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.portal-article-card {
  display: flex;
  align-items: stretch;
  background: var(--card, #ffffff);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.dark .portal-article-card {
  background: #111a2e !important;
  border-color: #1e293b !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}
.portal-article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(37, 99, 235, 0.45);
}
.dark .portal-article-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
}
.card-thumb-link {
  width: 190px;
  flex-shrink: 0;
  overflow: hidden;
  background: #071527;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.portal-article-card:hover .card-thumb-img {
  transform: scale(1.05);
}
.card-body {
  flex: 1 1 auto;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}
.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.topic-tag {
  font-family: var(--mono, 'DM Mono', monospace);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tag-cloud {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.22);
}
.dark .tag-cloud {
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.3);
}
.tag-cyber {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
  border: 1px solid rgba(124, 58, 237, 0.22);
}
.dark .tag-cyber {
  background: rgba(124, 58, 237, 0.2);
  color: #c084fc;
  border-color: rgba(192, 132, 252, 0.3);
}
.tag-ai {
  background: rgba(8, 145, 178, 0.1);
  color: #0891b2;
  border: 1px solid rgba(8, 145, 178, 0.22);
}
.dark .tag-ai {
  background: rgba(8, 145, 178, 0.2);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}
.tag-quantum {
  background: rgba(99, 102, 241, 0.1);
  color: #4f46e5;
  border: 1px solid rgba(99, 102, 241, 0.22);
}
.dark .tag-quantum {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border-color: rgba(165, 180, 252, 0.3);
}
.card-date {
  color: var(--muted, #64748b);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.dark .card-date { color: #94a3b8; }
.card-title {
  font: 700 16.5px/1.35 var(--display, 'Space Grotesk', sans-serif);
  color: var(--ink, #17201f);
  margin: 2px 0 0;
}
.dark .card-title { color: #f8fafc; }
.card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}
.card-title a:hover {
  color: var(--primary, #2563eb);
}
.dark .card-title a:hover {
  color: #38bdf8;
}
.card-excerpt {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted, #64748b);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dark .card-excerpt { color: #94a3b8; }
.portal-load-more-row {
  margin-top: 24px;
  text-align: center;
}
.btn-explore-archive {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 8px;
  border: 1px solid var(--line, #e2e8f0);
  background: var(--card, #ffffff);
  color: var(--ink, #17201f);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}
.dark .btn-explore-archive {
  background: #111a2e;
  border-color: #1e293b;
  color: #f8fafc;
}
.btn-explore-archive:hover {
  border-color: var(--primary, #2563eb);
  color: var(--primary, #2563eb);
  background: rgba(37, 99, 235, 0.05);
  transform: translateY(-1px);
}
.btn-explore-archive:hover .btn-arrow {
  transform: translateX(3px);
}
.ad-cards-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}
.ad-card {
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 110px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  color: #ffffff;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ad-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}
.ad-card-azure {
  background: linear-gradient(135deg, #005a9e 0%, #0078d4 50%, #0284c7 100%);
}
.ad-card-github {
  background: linear-gradient(135deg, #181717 0%, #24292e 50%, #6e40c9 100%);
}
.ad-card-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.ad-brand-info {
  display: flex;
  flex-direction: column;
}
.ad-brand-name {
  font: 700 15px/1.2 var(--display, 'Space Grotesk', sans-serif);
  color: #ffffff;
}
.ad-brand-tagline {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.82);
}
.ad-cta-btn {
  align-self: flex-start;
  background: #ffffff;
  color: #0f172a !important;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: all 0.15s ease;
}
.ad-cta-btn:hover {
  background: #f1f5f9;
  transform: translateX(2px);
}
.popular-topics-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 20px;
  background: var(--card, #ffffff);
  border: 1px solid var(--line, #e2e8f0);
  color: var(--ink, #17201f);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
}
.dark .topic-pill {
  background: #111a2e;
  border-color: #1e293b;
  color: #cbd5e1;
}
.topic-pill:hover,
.topic-pill.active {
  background: rgba(37, 99, 235, 0.08);
  border-color: var(--primary, #2563eb);
  color: var(--primary, #2563eb);
  transform: translateY(-1px);
}
.dark .topic-pill:hover,
.dark .topic-pill.active {
  background: rgba(56, 189, 248, 0.12);
  border-color: #38bdf8;
  color: #38bdf8 !important;
}
.site-footer {
  border-top: 1px solid var(--line, #e2e8f0);
  background: var(--card, #ffffff);
  padding: 56px 0 36px;
  margin-top: 40px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.dark .site-footer {
  background: #070d18 !important;
  border-top-color: #1e293b !important;
}
.footer-grid {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 36px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 800 19px var(--display, 'Space Grotesk', sans-serif);
  color: var(--ink, #17201f);
  text-decoration: none;
  margin-bottom: 8px;
}
.dark .footer-brand { color: #ffffff; }
.footer-tagline {
  font-size: 13px;
  color: var(--muted, #64748b);
  margin: 0 0 14px;
}
.dark .footer-tagline { color: #94a3b8; }
.footer-motto {
  font-family: var(--mono, 'DM Mono', monospace);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary, #2563eb);
  margin-bottom: 12px;
}
.dark .footer-motto { color: #38bdf8; }
.footer-copyright {
  font-size: 12px;
  color: var(--muted, #64748b);
  margin: 0;
}
.dark .footer-copyright { color: #64748b; }
.footer-heading {
  font: 700 13px var(--mono, 'DM Mono', monospace);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--ink, #17201f);
  margin: 0 0 16px;
}
.dark .footer-heading { color: #f8fafc; }
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 13px;
  color: var(--muted, #64748b);
  text-decoration: none;
  transition: color 0.15s ease;
}
.dark .footer-links a { color: #94a3b8; }
.footer-links a:hover {
  color: var(--primary, #2563eb);
}
.dark .footer-links a:hover { color: #38bdf8; }
.social-icons-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line, #e2e8f0);
  background: var(--paper, #f5f7f3);
  color: var(--muted, #64748b);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.15s ease;
}
.dark .social-icon-btn {
  background: #111a2e;
  border-color: #1e293b;
  color: #94a3b8;
}
.social-icon-btn:hover {
  border-color: var(--primary, #2563eb);
  color: var(--primary, #2563eb);
  transform: translateY(-2px);
}
.dark .social-icon-btn:hover {
  color: #38bdf8;
  border-color: #38bdf8;
}
.footer-legal-links {
  font-size: 11.5px;
  color: var(--muted, #64748b);
  line-height: 1.6;
}
.dark .footer-legal-links { color: #64748b; }
.footer-legal-links a {
  color: inherit;
  text-decoration: none;
}
.footer-legal-links a:hover {
  color: var(--primary, #2563eb);
}


/* ==========================================================================
   ENTERPRISE BRANDING & UNIFORM THEME OVERRIDES
   - Author names & avatars removed across all pages
   - Article counts removed across all pages
   - Admin links removed across all pages
   - Consistent light & dark themes for Home, Domain, and Reader pages
   ========================================================================== */

/* Unconditional Hiding of Author and Admin Artifacts */
.hero-author-group,
.card-author,
.reader-author-row,
.author-row,
.author-meta,
.hero-author-name,
#leadCardAuthor,
#leadCardAvatar,
#articleAuthorName,
#articleAuthorAvatar,
#articleAuthorRole,
.mini-author .avatar,
.mini-author span:not(.bookmark),
.hero-admin-notice,
.admin-curation-link,
#filteredCountBadge {
  display: none !important;
}

/* Light Theme Precision Overrides */
html:not(.dark):not([data-theme="dark"]) .hero-edge-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.04) 0%, rgba(6, 182, 212, 0.02) 50%, #ffffff 100%) !important;
  border: 1px solid var(--line, #e2e8f0) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04) !important;
}

html:not(.dark):not([data-theme="dark"]) .hero-article-title,
html:not(.dark):not([data-theme="dark"]) .hero-article-title a {
  color: var(--ink, #0f172a) !important;
}

html:not(.dark):not([data-theme="dark"]) .hero-intro,
html:not(.dark):not([data-theme="dark"]) .hero-article-subtitle {
  color: var(--muted, #475569) !important;
}

html:not(.dark):not([data-theme="dark"]) .domain-hero {
  background: #ffffff !important;
  border: 1px solid var(--line, #e2e8f0) !important;
}

html:not(.dark):not([data-theme="dark"]) .domain-stats-strip {
  background: #ffffff !important;
  border: 1px solid var(--line, #e2e8f0) !important;
}

html:not(.dark):not([data-theme="dark"]) .stat-item h3 {
  color: #0f172a !important;
}

html:not(.dark):not([data-theme="dark"]) .story-card {
  background: #ffffff !important;
  border: 1px solid var(--line, #e2e8f0) !important;
}

/* Dark Theme Consistency */
.dark .hero-edge-card,
[data-theme="dark"] .hero-edge-card {
  background: linear-gradient(135deg, #07152b 0%, #0a2042 50%, #051022 100%) !important;
  border-color: #1e3a64 !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18), 0 0 35px rgba(37, 99, 235, 0.12) !important;
}

.dark .hero-article-title,
.dark .hero-article-title a,
[data-theme="dark"] .hero-article-title,
[data-theme="dark"] .hero-article-title a {
  color: #ffffff !important;
}

.dark .hero-intro,
.dark .hero-article-subtitle,
[data-theme="dark"] .hero-intro,
[data-theme="dark"] .hero-article-subtitle {
  color: #94a3b8 !important;
}

.dark .domain-hero,
[data-theme="dark"] .domain-hero {
  background: linear-gradient(135deg, #0e1828 0%, #09101d 100%) !important;
  border-color: #1e293b !important;
}

.dark .domain-stats-strip,
[data-theme="dark"] .domain-stats-strip {
  background: #0e1828 !important;
  border-color: #1e293b !important;
}

.dark .stat-item h3,
[data-theme="dark"] .stat-item h3 {
  color: #f8fafc !important;
}

.dark .story-card,
[data-theme="dark"] .story-card {
  background: #0e1828 !important;
  border-color: #1e293b !important;
}
