/* ==========================================================================
   CRV SCIENCE - UNIFIED NETWORK DESIGN SYSTEM
   Mimicking https://games.crvscience.com
   Pure lightweight, mobile-first, 60fps responsive CSS
   ========================================================================== */

:root {
  /* Exact Color Palette from games.crvscience.com */
  --bg-main: #0b0f17;
  --bg-card: #131b26;
  --bg-card-hover: #1b2636;
  --bg-surface: #16202e;
  --bg-elevated: #1e293b;
  --border-subtle: #243247;
  --border-active: #38bdf8;
  --border-focus: #38bdf8;
  
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;

  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-indigo: #6366f1;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(56, 189, 248, 0.25);
  --shadow-indigo: 0 0 20px rgba(99, 102, 241, 0.25);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: dark;
  scrollbar-gutter: stable;
  overflow-y: scroll;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

/* Universal Inline Content Links */
p a,
.article-section a:not(.infobox-link):not(.wiki-toc-pill),
.post-body-paragraphs a:not(.infobox-link):not(.wiki-toc-pill),
.article-deck a,
.hub-card-desc a,
.hub-subtitle a,
.article-main-body a:not(.infobox-link):not(.wiki-toc-pill):not(.back-to-index-btn),
.wiki-breadcrumbs-bar a:not(.back-to-index-btn) {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-decoration-color: rgba(56, 189, 248, 0.45);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  font-weight: 600;
  border-radius: 4px;
  padding: 0 3px;
  margin: 0;
  background: rgba(56, 189, 248, 0.07);
  border: 1px solid rgba(56, 189, 248, 0.18);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline;
  cursor: pointer;
}

p a:hover,
.article-section a:not(.infobox-link):not(.wiki-toc-pill):hover,
.post-body-paragraphs a:not(.infobox-link):not(.wiki-toc-pill):hover,
.article-deck a:hover,
.hub-card-desc a:hover,
.hub-subtitle a:hover,
.article-main-body a:not(.infobox-link):not(.wiki-toc-pill):not(.back-to-index-btn):hover,
.wiki-breadcrumbs-bar a:not(.back-to-index-btn):hover {
  color: #ffffff !important;
  background: rgba(56, 189, 248, 0.28);
  border-color: var(--accent-cyan);
  text-decoration-color: #ffffff;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.5);
}

p a:active,
.article-section a:not(.infobox-link):not(.wiki-toc-pill):active,
.post-body-paragraphs a:not(.infobox-link):not(.wiki-toc-pill):active,
.article-deck a:active,
.hub-card-desc a:active,
.hub-subtitle a:active,
.article-main-body a:not(.infobox-link):not(.wiki-toc-pill):not(.back-to-index-btn):active,
.wiki-breadcrumbs-bar a:not(.back-to-index-btn):active {
  color: #7dd3fc !important;
  background: rgba(56, 189, 248, 0.45);
  transform: scale(0.97);
}

/* Container */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ==========================================================================
   Universal Network Header (Shared across Hub and all Subdomains)
   ========================================================================== */
.site-header {
  background: rgba(19, 27, 38, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand-logo {
  flex: 1 1 0%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

/* Subdomain Switcher Navigation */
.network-nav-tabs {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 4px;
  border-radius: var(--radius-full);
}

.network-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.network-nav-link:hover {
  color: var(--text-main);
  background: var(--bg-elevated);
}

.network-nav-link.active {
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.header-actions {
  flex: 1 1 0%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* Security Trust Badge */
.security-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  font-size: 0.75rem;
  font-weight: 600;
  color: #a5b4fc;
}

.security-trust-badge svg {
  color: #818cf8;
}

/* Cart Toggle Button */
.cart-toggle-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.cart-toggle-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.cart-badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
  color: #0b0f17;
  font-size: 0.7rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ==========================================================================
   Root Hub Portal Styles (crvscience.com Menu)
   ========================================================================== */
.hub-main-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hub-hero {
  text-align: center;
  padding: 10px 0 16px;
}

.hub-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.hub-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 6px;
}

.hub-title span {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hub-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.45;
}

/* Section 1: The Top 2 Sites (Shop & Games) */
.primary-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* General Hub Card */
.hub-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.hub-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-active);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
}

.hub-card:active {
  transform: translateY(0);
}

/* Primary Cards (Shop & Games) - Emphasized visual weight */
.hub-card-primary {
  border-color: rgba(56, 189, 248, 0.25);
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(22, 32, 46, 0.8) 100%);
  padding: 22px 20px;
}

.hub-card-primary:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.2);
}

/* Icon Wrap with Simple Graphics */
.hub-card-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.hub-card:hover .hub-card-icon-wrap {
  transform: scale(1.08);
}

.hub-card-icon-wrap svg {
  width: 28px;
  height: 28px;
}

/* Icon specific accents */
.icon-shop {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.icon-games {
  background: rgba(99, 102, 241, 0.18);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.icon-wiki {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.icon-news {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.icon-learn {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.hub-card-content {
  flex: 1;
  min-width: 0;
}

.hub-subdomain-tag {
  font-size: 0.72rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-weight: 500;
  margin-bottom: 2px;
}

.hub-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-main);
  line-height: 1.2;
}

.hub-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 3px;
}

.hub-card-arrow {
  color: var(--text-dim);
  font-size: 1.25rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  padding-left: 4px;
}

.hub-card:hover .hub-card-arrow {
  color: var(--accent-cyan);
  transform: translateX(4px);
}

/* Section 2: Other Broad Sections (Wiki, News, Learn) */
.secondary-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 12px 0 8px;
}

.secondary-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================================
   Storefront Specific Styles (shop.html)
   ========================================================================== */
.announcement-bar {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.12), rgba(99, 102, 241, 0.12));
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  text-align: center;
  color: var(--text-muted);
}

.announcement-bar strong {
  color: var(--accent-cyan);
}

.announcement-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
}

/* Breadcrumbs */
.breadcrumbs-bar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 16px 4px;
}

.breadcrumbs-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.breadcrumbs-list a {
  color: var(--text-muted);
}

.breadcrumbs-list a:hover {
  color: var(--accent-cyan);
}

.breadcrumbs-separator {
  color: var(--text-dim);
  font-size: 0.75rem;
}

.breadcrumbs-current {
  color: var(--text-main);
  font-weight: 600;
}

/* Product Showcase */
.product-showcase-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 16px 48px;
}

/* The shop index is a catalog; canonical product URLs are dedicated detail
   pages. Keeping the views mutually exclusive avoids a stale featured product. */
.shop-index-page #featured-spotlight,
.shop-index-page #story-section {
  display: none;
}

.canonical-product-page #collection-section {
  display: none;
}

.book-product-page .color-selector-block,
.book-product-page .sku-stock-row,
.book-product-page .purchase-action-container,
.book-product-page .gallery-highlights-grid,
.book-product-page #specs-accordion,
.book-product-page #open-size-guide-btn {
  display: none;
}

.product-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Gallery Column */
.gallery-column {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.main-image-viewport {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

#main-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.3s ease, opacity 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.product-card-img,
.qv-image-box img,
.story-visual-img,
.thumb-button img,
.lightbox-img {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.main-image-viewport::after,
.story-visual-frame::after,
.lightbox-dialog::after {
  content: "© CRV SCIENCE";
  position: absolute;
  bottom: 14px;
  left: 16px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.38);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

.book-product-page #main-product-image {
  object-fit: contain;
}

.main-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.3s ease, opacity 0.15s ease;
}

.main-image-viewport:hover .main-product-img {
  transform: scale(1.02);
}

.gallery-overlay-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(11, 15, 23, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  color: var(--accent-cyan);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.zoom-trigger-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(11, 15, 23, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.zoom-trigger-btn:hover {
  background: var(--accent-cyan);
  color: #0b0f17;
  transform: scale(1.08);
}

/* Thumbnails Strip */
.thumbnails-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.thumb-button {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.thumb-button:hover {
  border-color: var(--border-subtle);
}

.thumb-button.active {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow);
}

.thumb-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-caption-bar {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* Highlights Grid */
.gallery-highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

.highlight-mini-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.highlight-mini-icon {
  color: var(--accent-cyan);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.highlight-mini-text h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
}

.highlight-mini-text p {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Details Column */
.details-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-header-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-brand-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-cyan);
  letter-spacing: 0.04em;
}

.product-rating-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--accent-amber);
}

.rating-stars {
  display: flex;
  gap: 2px;
}

.product-main-title {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.18;
}

.product-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Price Box */
.product-price-box {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.price-current {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text-main);
}

.price-currency {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.price-badge-pod {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.product-description-snippet {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Color & Size Selectors */
.color-selector-block, .size-selector-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.selector-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.selector-label {
  font-weight: 600;
  color: var(--text-main);
}

.selector-current-value {
  color: var(--text-muted);
}

.size-guide-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

.size-guide-link-btn:hover {
  text-decoration: underline;
}

.color-swatch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
}

.swatch-circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #111215;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.size-pills-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.size-pills-grid.book-editions-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.size-pill-btn {
  padding: 10px 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: all var(--transition-fast);
}

.size-pill-btn:hover {
  border-color: var(--border-active);
  background: var(--bg-card-hover);
}

.size-pill-btn.active {
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  box-shadow: var(--shadow-glow);
}

.size-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.size-pill-btn.active .size-name {
  color: var(--accent-cyan);
}

.size-price-diff {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.size-pill-btn.active .size-price-diff {
  color: var(--text-muted);
}

.book-edition-link {
  min-height: 92px;
  padding: 14px 10px;
  color: var(--text-main);
  text-decoration: none;
  border-color: rgba(56, 189, 248, 0.38);
}

.book-edition-link:hover {
  color: #ffffff;
  background: rgba(56, 189, 248, 0.14);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.book-edition-retailer {
  margin-top: 5px;
  color: var(--accent-cyan);
  font-size: 0.7rem;
  font-weight: 700;
}

/* SKU & Stock Row */
.sku-stock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.stock-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-emerald);
  font-family: var(--font-sans);
  font-weight: 600;
}

.stock-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

/* Purchase Actions */
.purchase-action-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.cta-buttons-row {
  display: flex;
  gap: 12px;
}

.quantity-picker {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  height: 48px;
}

.qty-btn {
  width: 36px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.qty-btn:hover {
  color: var(--text-main);
}

.qty-input {
  width: 40px;
  text-align: center;
  background: none;
  border: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1rem;
}

.add-to-cart-btn {
  flex: 1;
  height: 48px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
  color: #0b0f17;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.3);
  transition: all var(--transition-fast);
}

.add-to-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(56, 189, 248, 0.45);
}

.stripe-checkout-direct-btn {
  width: 100%;
  height: 46px;
  background: var(--bg-card);
  border: 1px solid var(--accent-indigo);
  border-radius: var(--radius-sm);
  color: #c7d2fe;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.stripe-checkout-direct-btn:hover {
  background: var(--accent-indigo);
  color: #ffffff;
  box-shadow: var(--shadow-indigo);
}

/* Fulfillment Guarantee */
.fulfillment-badge-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.fulfillment-icon-box {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.fulfillment-text-box h5 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.fulfillment-text-box p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Accordions */
.accordion-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: left;
}

.accordion-icon {
  transition: transform var(--transition-fast);
  color: var(--text-dim);
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}

.accordion-body {
  padding: 0 16px 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: none;
}

.accordion-item.open .accordion-body {
  display: block;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--border-subtle);
}

.specs-table tr:last-child {
  border-bottom: none;
}

.specs-table td {
  padding: 8px 0;
  font-size: 0.8125rem;
}

.specs-table td:first-child {
  color: var(--text-dim);
  width: 40%;
}

.specs-table td:last-child {
  color: var(--text-main);
  font-weight: 500;
}

.care-list {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ==========================================================================
   Catalog Section (All 16 Bella + Canvas Shirts)
   ========================================================================== */
.collection-section {
  max-width: 1100px;
  margin: 32px auto 48px;
  padding: 0 16px;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-header-title {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.section-header-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.form-input {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text-main);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  border-color: var(--accent-cyan);
}

/* Category Filter Strip */
.category-filter-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 20px;
  scrollbar-width: thin;
}

.filter-pill {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  color: var(--text-main);
  background: var(--bg-card-hover);
}

.filter-pill.active {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* 16 Shirts Grid */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-sm);
}

.product-card.selected-card {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 1px var(--accent-cyan), 0 8px 24px rgba(6, 182, 212, 0.15);
}

.product-card-thumb-wrap {
  aspect-ratio: 1 / 1;
  background: #000;
  position: relative;
  overflow: hidden;
  display: block;
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card-book .product-card-thumb-wrap {
  background: linear-gradient(145deg, #111827, #020617);
}

.product-card-book .product-card-img {
  object-fit: contain;
}

.product-card:hover .product-card-img {
  transform: scale(1.04);
}

.product-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(11, 15, 23, 0.85);
  backdrop-filter: blur(6px);
  color: var(--accent-cyan);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.product-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.product-card-body .card-title a {
  color: inherit;
  text-decoration: none;
}

.product-card-summary {
  color: var(--text-muted);
  display: -webkit-box;
  font-size: 0.78rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-page-link {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.35);
  color: var(--accent-cyan);
  text-decoration: none;
}

.card-category {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
}

.card-price {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-main);
}

.card-quick-btn {
  padding: 5px 12px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-cyan);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.card-quick-btn:hover {
  background: var(--accent-cyan);
  color: #0b0f17;
}

/* ==========================================================================
   Science Story Section
   ========================================================================== */
.science-story-section {
  max-width: 1100px;
  margin: 32px auto;
  padding: 0 16px;
}

.story-card-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

.story-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.story-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  width: fit-content;
}

.story-heading {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.2;
}

.story-heading span {
  color: var(--accent-cyan);
}

.story-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.artist-signature-block {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.artist-avatar-ring {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #0b0f17;
}

.artist-details h6 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

.artist-details p {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.story-visual-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #000;
  aspect-ratio: 4 / 3;
}

.story-visual-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

/* ==========================================================================
   Shopping Bag Slide-Over Drawer
   ========================================================================== */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.cart-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.cart-drawer-backdrop.open .cart-drawer-panel {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-title {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-close-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
}

.cart-close-btn:hover {
  color: var(--text-main);
  background: var(--bg-card);
}

/* Free Shipping Meter */
.free-shipping-bar-box {
  padding: 10px 20px;
  background: rgba(56, 189, 248, 0.05);
  border-bottom: 1px solid var(--border-subtle);
}

.shipping-status-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.shipping-status-label strong {
  color: var(--accent-cyan);
}

.progress-track {
  height: 5px;
  background: var(--bg-card);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-indigo));
  transition: width 0.3s ease;
}

/* Cart Items */
.cart-items-container {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.empty-cart-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 16px;
  color: var(--text-dim);
  gap: 12px;
}

.empty-cart-icon {
  width: 48px;
  height: 48px;
  opacity: 0.4;
}

.cart-item-row {
  display: flex;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

.cart-item-variant {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cart-item-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 4px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  height: 26px;
}

.cart-qty-btn {
  width: 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cart-qty-val {
  padding: 0 6px;
  font-size: 0.8rem;
  font-weight: 700;
}

.cart-item-price {
  font-weight: 700;
  font-size: 0.95rem;
}

.cart-item-remove-btn {
  color: var(--text-dim);
  font-size: 0.75rem;
}

.cart-item-remove-btn:hover {
  color: var(--accent-rose);
}

/* Cart Footer */
.cart-drawer-footer {
  padding: 16px 20px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.promo-code-row {
  display: flex;
  gap: 8px;
}

.promo-input {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.promo-apply-btn {
  padding: 6px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
}

.cart-totals-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.85rem;
}

.totals-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.totals-row.final-total {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  border-top: 1px solid var(--border-subtle);
  padding-top: 8px;
  margin-top: 4px;
}

.checkout-action-btn {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, var(--accent-indigo) 0%, #4338ca 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
  transition: all var(--transition-fast);
}

.checkout-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(99, 102, 241, 0.5);
}

.payment-trust-subtext {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.simulate-dispatch-btn {
  text-align: center;
  font-size: 0.75rem;
  color: var(--accent-cyan);
  background: transparent;
  padding: 4px;
  text-decoration: underline;
  opacity: 0.85;
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
}

.modal-dialog-large {
  max-width: 800px;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
}

.modal-close-btn:hover {
  color: var(--text-main);
  background: var(--bg-card);
}

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Quick View Modal */
.qv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.qv-image-box {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.qv-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qv-details-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qv-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
}

.qv-concept {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Size Guide Table */
.unit-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.unit-switch-btns {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 2px;
}

.unit-btn {
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

.unit-btn.active {
  background: var(--accent-cyan);
  color: #0b0f17;
}

.size-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.size-guide-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 0.85rem;
}

.size-guide-table th {
  background: var(--bg-card);
  padding: 10px 8px;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
}

.size-guide-table td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.size-guide-table tr:last-child td {
  border-bottom: none;
}

/* Lightbox */
.lightbox-dialog {
  background: transparent;
  border: none;
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.9);
}

.lightbox-close {
  position: absolute;
  top: -36px;
  right: 0;
  color: #fff;
  font-size: 1.4rem;
  background: rgba(0, 0, 0, 0.6);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Toast */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--accent-cyan);
  box-shadow: var(--shadow-glow);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 400;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.25s ease;
  font-size: 0.85rem;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* Spinner */
.spin-icon {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Universal Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 40px 16px 24px;
  margin-top: auto;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-bio {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 320px;
}

.footer-col h4,
.footer-col h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-links-list a:hover {
  color: var(--accent-cyan);
}

.footer-bottom-bar {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-pod-partner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

/* ==========================================================================
   Wiki & Knowledge Base Redesign
   ========================================================================== */
.wiki-toolbar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.search-bar-wrap {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px 12px 44px;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
  background: var(--bg-card-hover);
}

.search-bar-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.filter-pills-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.filter-pills-row::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.18s ease;
  cursor: pointer;
  outline: none;
}

.filter-pill:hover {
  color: #ffffff;
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.filter-pill:active {
  transform: translateY(0) scale(0.96);
  background: rgba(56, 189, 248, 0.12);
}

.filter-pill.active {
  background: rgba(56, 189, 248, 0.18);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}

.wiki-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.wiki-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  outline: none;
}

.wiki-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7), 0 0 24px rgba(56, 189, 248, 0.3);
}

.wiki-card:active {
  transform: translateY(-1px) scale(0.985);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 14px rgba(56, 189, 248, 0.45);
  background: #1e293b;
  border-color: #7dd3fc;
}

.wiki-card:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

.wiki-card:hover .wiki-card-title {
  color: #38bdf8;
  text-shadow: 0 0 14px rgba(56, 189, 248, 0.4);
}

.wiki-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.wiki-card-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(56, 189, 248, 0.25);
  letter-spacing: 0.04em;
}

.wiki-card-readtime {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.wiki-card-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 8px;
  transition: color 0.15s ease;
}

.wiki-card-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 16px;
}

.wiki-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  margin-top: auto;
  font-size: 0.82rem;
}

.wiki-read-link {
  color: var(--accent-cyan);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s ease;
}

.wiki-card:hover .wiki-read-link {
  color: #7dd3fc;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.wiki-read-link .link-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.wiki-card:hover .link-arrow,
.news-card:hover .link-arrow,
.news-lead-hero-card:hover .link-arrow {
  transform: translateX(6px);
}

/* Wiki Article Reader Mode */
.wiki-reader-wrap {
  display: none;
  margin-bottom: 48px;
}

.wiki-reader-wrap.active {
  display: block;
}

.wiki-breadcrumbs-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  margin-bottom: 24px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

/* Return Buttons (Wiki & News) */
.back-to-index-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-cyan);
  font-weight: 700;
  cursor: pointer;
  padding: 10px 18px;
  background: rgba(56, 189, 248, 0.12);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(56, 189, 248, 0.4);
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important;
  user-select: none;
  font-size: 0.88rem;
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.back-to-index-btn:hover {
  background: var(--accent-cyan);
  color: #0b0f17 !important;
  border-color: var(--accent-cyan);
  transform: translateX(-4px);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.6), 0 4px 14px rgba(0, 0, 0, 0.4);
}

.back-to-index-btn:active {
  transform: translateX(-2px) scale(0.95);
  background: #0284c7;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
}

.back-to-index-btn:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

.back-to-index-btn .back-arrow {
  display: inline-block;
  font-size: 1.15rem;
  transition: transform 0.18s ease;
}

.back-to-index-btn:hover .back-arrow {
  transform: translateX(-4px);
}

/* Footer Return Link */
.footer-return-link {
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: all 0.15s ease;
  cursor: pointer;
}

.footer-return-link:hover {
  color: #ffffff;
  text-decoration-color: #ffffff;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6));
  transform: translateX(-3px);
}

.footer-return-link:active {
  transform: translateX(-1px) scale(0.97);
  color: #38bdf8;
}

.article-reader-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 32px;
  align-items: start;
}

.article-main-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.article-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 20px;
}

.article-headline {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 10px;
}

.article-deck {
  font-size: 1.04rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 14px;
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-dim);
  flex-wrap: wrap;
}

/* Wiki Section Jump-to Bar */
.wiki-toc-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.wiki-toc-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-right: 4px;
}

.wiki-toc-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none !important;
  transition: all 0.16s ease;
}

.wiki-toc-pill:hover {
  color: var(--accent-cyan) !important;
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  transform: translateY(-1px);
}

.wiki-sections-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.article-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.article-section h3,
.wiki-section-heading {
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-top: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.article-section-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.wiki-subheading {
  font-size: 1.06rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-top: 10px;
  margin-bottom: -4px;
  line-height: 1.35;
}

.wiki-subsubheading,
.wiki-minorheading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-top: 6px;
  margin-bottom: -4px;
}

.article-section p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.wiki-list {
  margin: 4px 0 4px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.68;
}

.wiki-list li strong {
  color: var(--text-main);
}

.wiki-list-subitem {
  margin-left: 18px;
}

.wiki-blockquote {
  margin: 6px 0;
  padding: 12px 16px;
  background: rgba(56, 189, 248, 0.05);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.wiki-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 8px 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
}

.wiki-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  line-height: 1.5;
  text-align: left;
}

.wiki-data-table th {
  background: var(--bg-surface);
  color: var(--text-main);
  font-weight: 700;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.wiki-data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  color: var(--text-muted);
  vertical-align: top;
}

.wiki-data-table tbody tr:last-child td {
  border-bottom: none;
}

.wiki-data-table tbody tr:hover {
  background: rgba(56, 189, 248, 0.04);
}

.article-section-body sub,
.article-section-body sup {
  font-size: 0.72em;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

.article-section-body sub {
  bottom: -0.25em;
}

.article-section-body sup {
  top: -0.48em;
}

.wiki-formula {
  margin: 14px 0;
  padding: 14px 18px;
  overflow-x: auto;
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-cyan);
  border-radius: var(--radius-sm);
  font-family: "Cambria Math", "STIX Two Math", "Times New Roman", serif;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}

.article-main-body a.wiki-link-missing,
.article-main-body a.wiki-link-missing:visited {
  color: #f87171;
  background: rgba(248, 113, 113, 0.08);
  border-color: rgba(248, 113, 113, 0.35);
  text-decoration-color: rgba(248, 113, 113, 0.75);
  text-decoration-style: dashed;
}

.article-main-body a.wiki-link-missing:hover {
  color: #ffffff !important;
  background: rgba(239, 68, 68, 0.3);
  border-color: #f87171;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.4);
}

/* Taxonomy Infobox */
.taxonomy-infobox {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: sticky;
  top: 80px;
}

.infobox-title-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.infobox-title-bar h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.infobox-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  table-layout: fixed;
}

.infobox-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.infobox-key {
  color: var(--text-dim);
  font-weight: 600;
  width: 36%;
}

.infobox-val {
  color: var(--text-main);
  line-height: 1.45;
}

.infobox-crosslink {
  padding: 16px;
  background: rgba(56, 189, 248, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.84rem;
}

.infobox-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--accent-cyan) !important;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  cursor: pointer;
}

.infobox-link:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: var(--accent-cyan);
  color: #ffffff !important;
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.35);
}

.infobox-link:active {
  transform: translateX(2px) scale(0.97);
  background: rgba(56, 189, 248, 0.35);
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.2);
}

.infobox-game-link {
  color: #a5b4fc !important;
  border-color: rgba(99, 102, 241, 0.3);
}

.infobox-game-link:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: #818cf8;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

.infobox-game-link:active {
  transform: translateX(2px) scale(0.97);
  background: rgba(99, 102, 241, 0.35);
}

.infobox-link .link-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.infobox-link:hover .link-arrow {
  transform: translateX(5px);
}

/* ==========================================================================
   News & Blog Redesign
   ========================================================================== */
.news-lead-hero-card {
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(22, 32, 46, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none !important;
  outline: none;
}

.news-lead-hero-card:hover {
  border-color: var(--accent-cyan);
  background: linear-gradient(145deg, var(--bg-card-hover) 0%, rgba(30, 41, 59, 0.95) 100%);
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.7), 0 0 28px rgba(56, 189, 248, 0.3);
}

.news-lead-hero-card:active {
  transform: translateY(-1px) scale(0.99);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 16px rgba(56, 189, 248, 0.45);
  border-color: #7dd3fc;
}

.news-lead-hero-card:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

.news-lead-hero-card:hover .lead-hero-title {
  color: #38bdf8;
  text-shadow: 0 0 14px rgba(56, 189, 248, 0.4);
}

.news-lead-hero-card:hover .wiki-read-link {
  color: #7dd3fc;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.lead-hero-tag-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
}

.lead-hero-tag {
  background: var(--accent-amber);
  color: #0b0f17;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}

.lead-hero-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  transition: color 0.15s ease;
}

.lead-hero-deck {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important;
  cursor: pointer;
  outline: none;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65), 0 0 24px rgba(56, 189, 248, 0.3);
}

.news-card:active {
  transform: translateY(-1px) scale(0.985);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 14px rgba(56, 189, 248, 0.45);
  background: #1e293b;
  border-color: #7dd3fc;
}

.news-card:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

.news-card:hover .news-card-title {
  color: #38bdf8;
  text-shadow: 0 0 14px rgba(56, 189, 248, 0.4);
}

.news-card:hover .wiki-read-link {
  color: #7dd3fc;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.news-card-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.news-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  transition: color 0.15s ease;
}

.news-card-summary {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

/* Post Reader */
.post-reader-wrap {
  display: none;
  max-width: 860px;
  margin: 0 auto 48px;
}

.post-reader-wrap.active {
  display: block;
}

.post-reader-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 24px;
  margin-bottom: 28px;
}

.post-reader-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  margin: 12px 0 10px;
}

.post-body-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 1.03rem;
  line-height: 1.76;
  color: var(--text-muted);
}

.post-body-paragraphs h2 {
  font-size: 1.38rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.32;
  margin-top: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.post-body-paragraphs h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: #e2e8f0;
  line-height: 1.35;
  margin-top: 10px;
  margin-bottom: -4px;
}

.post-body-paragraphs h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--accent-cyan);
  line-height: 1.35;
  margin-top: 8px;
  margin-bottom: -4px;
}

.post-body-paragraphs ul,
.post-body-paragraphs ol {
  margin: 4px 0 6px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.99rem;
  line-height: 1.68;
}

.post-body-paragraphs li strong {
  color: var(--text-main);
}

.post-body-paragraphs blockquote {
  margin: 8px 0;
  padding: 14px 18px;
  background: rgba(56, 189, 248, 0.05);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.post-body-paragraphs sub,
.post-body-paragraphs sup {
  font-size: 0.72em;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

.post-body-paragraphs sub {
  bottom: -0.25em;
}

.post-body-paragraphs sup {
  top: -0.48em;
}

.post-body-paragraphs sup.citation-ref {
  color: var(--accent-cyan);
  font-weight: 600;
  margin-left: 1px;
}

.news-mechanistic-primer {
  margin: 8px 0 12px;
  padding: 14px 18px;
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-left: 3px solid var(--accent-cyan);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.news-mechanistic-primer-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-cyan);
}

.news-mechanistic-primer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.news-references-section {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.news-references-list {
  font-size: 0.82rem !important;
  line-height: 1.55 !important;
  color: var(--text-dim) !important;
  gap: 6px !important;
  word-break: break-word;
}

.post-cta-card {
  margin-top: 36px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   Responsive & Mobile First Optimizations
   CRITICAL: On mobile, Shop and Games must be immediately visible!
   ========================================================================== */
@media (max-width: 900px) {
  .article-reader-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .taxonomy-infobox {
    position: static;
  }
  .product-layout-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .gallery-column {
    position: static;
  }
  .collection-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .story-card-container {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .wiki-grid, .news-grid {
    grid-template-columns: 1fr;
  }
  .article-headline {
    font-size: 1.5rem;
  }
  .post-reader-title {
    font-size: 1.6rem;
  }
  .news-lead-hero-card {
    padding: 20px;
  }
  /* Mobile Header */
  .header-inner {
    height: 54px;
  }
  
  .network-nav-tabs {
    gap: 2px;
    padding: 2px;
  }
  
  .network-nav-link {
    padding: 4px 8px;
    font-size: 0.75rem;
  }

  /* Hub Mobile Optimization: Shop & Games above the fold */
  .hub-main-container {
    padding: 12px 14px 32px;
    gap: 14px;
  }

  .hub-hero {
    padding: 4px 0 8px;
  }

  .hub-title {
    font-size: 1.65rem;
  }

  .hub-subtitle {
    font-size: 0.85rem;
  }

  .primary-cards-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hub-card-primary {
    padding: 14px 16px;
  }

  .hub-card-icon-wrap {
    width: 44px;
    height: 44px;
  }

  .hub-card-icon-wrap svg {
    width: 24px;
    height: 24px;
  }

  .hub-card-title {
    font-size: 1.15rem;
  }

  .hub-card-desc {
    font-size: 0.78rem;
  }

  /* Secondary cards on mobile */
  .secondary-cards-grid {
    gap: 8px;
  }

  .hub-card-secondary {
    padding: 12px 14px;
  }

  /* Product details mobile */
  .product-main-title {
    font-size: 1.7rem;
  }

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

  .cta-buttons-row {
    flex-direction: column;
  }

  .quantity-picker {
    width: 100%;
    justify-content: center;
  }

  .collection-grid {
    grid-template-columns: 1fr;
  }

  .qv-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
}
