/*
 * BioCloud Unified Bright Palette & Mobile Responsiveness v2.0 (2026-12-04)
 * Harmonizes all WordPress pages, WooCommerce shop, blog posts, and BioCloud plugins
 * into a crisp, bright, high-contrast light design system with 390px-first mobile UX.
 */

:root {
  --ink: #172b4d;
  --muted: #526580;
  --line: #dce6f5;
  --surface: #ffffff;
  --soft: #f6f9ff;
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --cyan: #38bdf8;
  --shadow: 0 20px 50px rgba(23, 43, 77, 0.07);

  /* Plugin token harmonization (eliminates dark murky teal & grey-beige) */
  --bss-ink: #0f172a;
  --bss-muted: #526580;
  --bss-blue: #2563eb;
  --bss-blue-dark: #1d4ed8;
  --bss-cyan: #0ea5e9;
  --bss-line: #dbe6f5;
  --bss-soft: #f4f8ff;

  --bcw-ink: #0f172a;
  --bcw-muted: #526580;
  --bcw-blue: #2563eb;
  --bcw-navy: #1e3a8a;
  --bcw-cyan: #0ea5e9;
  --bcw-line: #dbe6f5;
  --bcw-soft: #f4f8ff;

  --bcp-ink: #0f172a;
  --bcp-muted: #526580;
  --bcp-line: #dbe6f5;
  --bcp-soft: #f4f8ff;
  --bcp-green: #2563eb;
  --bcp-green-dark: #1d4ed8;
  --bcp-blue: #0284c7;

  --bclt-ink: #0f172a;
  --bclt-muted: #526580;
  --bclt-green: #2563eb;
  --bclt-mint: #dbeafe;
  --bclt-cream: #f6f9ff;
  --bclt-line: #dbe6f5;
  --bclt-shadow: 0 18px 46px rgba(37, 99, 235, 0.08);

  --bctp-ink: #0f172a;
  --bctp-muted: #526580;
  --bctp-teal: #2563eb;
  --bctp-teal-dark: #1d4ed8;
  --bctp-mint: #dbeafe;
  --bctp-lime: #bae6fd;
  --bctp-paper: #f6f9ff;
  --bctp-line: #dbe6f5;
}

html {
  overflow-x: clip;
}

body {
  background: var(--soft);
  color: var(--ink);
  overflow-x: clip;
}

body.home {
  background: #ffffff;
}

/* 1. Global Header, Brand Protection & Mobile Drawer */
.site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #e3ebf8;
  backdrop-filter: saturate(180%) blur(20px);
}

.site-header .brand {
  white-space: nowrap;
  flex-shrink: 0;
  color: #0f172a;
}

.site-header .brand span {
  white-space: nowrap;
  display: inline-block;
}

.site-header .main-menu a {
  white-space: nowrap;
  color: #294366;
  font-weight: 500;
}

.site-header .main-menu a:hover {
  color: #2563eb;
  opacity: 1;
}

.button {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.22);
}

.button:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.30);
}

/* Fix homepage & archive card image overflow */
.article-visual {
  display: block;
  overflow: hidden;
}

.article-visual img,
.article-card img.wp-post-image {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

/* Global Bright Footer */
.site-footer {
  background: linear-gradient(180deg, #f3f7ff 0%, #edf3fe 100%) !important;
  border-top: 1px solid #dce6f5 !important;
  color: #475b78 !important;
}

.footer-column h3 {
  color: #172b4d !important;
}

.footer-bottom {
  border-top-color: #dce6f5 !important;
  color: #5e718d !important;
}

/* Balanced headings & crisp subpage heroes */
.landing-hero h1,
.shop-hero h1,
.archive-page h1,
.single-article h1,
.bss h1,
.bcw h1,
.bcp h1,
.bclt-hero h1 {
  text-wrap: balance;
}

.landing-page {
  background: radial-gradient(ellipse at 85% 0%, rgba(191, 219, 254, 0.38), transparent 46%),
              linear-gradient(180deg, #f5f9ff 0%, #ffffff 36%, #f7faff 100%);
}

.landing-hero > p:not(.eyebrow),
.shop-hero > div:first-child > p:not(.eyebrow) {
  color: #4b5e7a;
  font-weight: 450;
}

/* Non-home .services-section bright blue parity */
.services-section {
  background: radial-gradient(ellipse at 86% 7%, #695de3 0, transparent 47%),
              linear-gradient(125deg, #214dbd, #2f6dd8 62%, #5b5bd6);
}

/* WooCommerce Shop 3-card chooser & bright cards */
.shop-solution-chooser {
  border: 1px solid #dce7f7;
  box-shadow: 0 14px 38px rgba(37, 99, 235, 0.06);
}

.shop-solution-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.shop-solution-grid a {
  background: linear-gradient(145deg, #f6f9ff, #eef4ff);
  border: 1px solid #dbe7fa;
}

.shop-solution-grid a:hover {
  background: #e6f0ff;
  border-color: #93c5fd;
}

/* 2. Standard Services Plugin (.bss-*) — Luminous Light Redesign & Header Clearance */
.bss-hero,
.bss-detail-hero {
  padding-top: 116px !important;
  padding-bottom: 84px !important;
  color: #0f172a !important;
  background: radial-gradient(circle at 84% 16%, rgba(96, 165, 250, 0.25), transparent 32%),
              radial-gradient(circle at 12% 8%, rgba(165, 180, 252, 0.20), transparent 28%),
              linear-gradient(145deg, #eef5ff 0%, #f8fbff 54%, #eef2ff 100%) !important;
  border-bottom: 1px solid #dbe7f8;
}

.bss-hero:after,
.bss-detail-hero:after {
  border-color: rgba(37, 99, 235, 0.10) !important;
}

.bss-breadcrumb {
  color: #556987 !important;
  margin-bottom: 26px !important;
}

.bss-breadcrumb a:hover {
  color: #2563eb !important;
}

.bss-hero h1,
.bss-detail-hero h1 {
  color: #0f172a !important;
}

.bss-hero h1 em,
.bss-detail-hero h1 em {
  color: #2563eb !important;
}

.bss-lead {
  color: #475569 !important;
}

.bss-button {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.24) !important;
}

.bss-text-link {
  color: #1d4ed8 !important;
}

.bss-hero-panel,
.bss-hero-art,
.bss-facts {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid #d4e2f7 !important;
  color: #0f172a !important;
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.10) !important;
}

.bss-hero-art:before {
  background: radial-gradient(circle at 78% 18%, rgba(59, 130, 246, 0.12), transparent 38%) !important;
}

.bss-art-head,
.bss-art-foot,
.bss-hero-panel strong,
.bss-mini-file strong,
.bss-scope-node strong,
.bss-facts dd {
  color: #0f172a !important;
}

.bss-art-head span,
.bss-art-foot span,
.bss-hero-panel small,
.bss-mini-file small,
.bss-facts dt {
  color: #526580 !important;
}

.bss-art-head b {
  background: #dbeafe !important;
  color: #1d4ed8 !important;
}

.bss-mini-file,
.bss-scope-node,
.bss-deliver-tags span {
  background: #f5f9ff !important;
  border-color: #cfe0f8 !important;
  color: #1e3a8a !important;
}

.bss-hero-panel span {
  color: #2563eb !important;
}

.bss-hero-panel div,
.bss-facts div {
  border-color: #e2ecf9 !important;
}

.bss-band,
.bss-final {
  color: #0f172a !important;
  background: radial-gradient(circle at 88% 12%, rgba(96, 165, 250, 0.18), transparent 32%),
              linear-gradient(145deg, #f0f6ff 0%, #f8faff 58%, #eef3ff 100%) !important;
  border-block: 1px solid #dbe7f8;
}

.bss-section-head-light .bss-eyebrow {
  color: #2563eb !important;
}

.bss-section-head-light > p,
.bss-final > div > p:not(.bss-eyebrow) {
  color: #475569 !important;
}

.bss-rule-grid {
  background: #dbe7f8 !important;
  border-color: #dbe7f8 !important;
}

.bss-rule-grid article {
  background: #ffffff !important;
}

.bss-rule-grid span {
  color: #2563eb !important;
}

.bss-rule-grid h3 {
  color: #0f172a !important;
}

.bss-rule-grid p {
  color: #475569 !important;
}

.bss-delivery {
  background: linear-gradient(145deg, #eff6ff, #f8fbff) !important;
  border: 1px solid #cfe0f8 !important;
  color: #0f172a !important;
}

.bss-delivery .bss-eyebrow {
  color: #2563eb !important;
}

.bss-delivery li,
.bss-delivery p,
.bss-delivery h3 {
  color: #1e293b !important;
  border-color: #dbe7f8 !important;
}

.bss-check-list li:before,
.bss-intake > div > div > li:before {
  color: #2563eb !important;
}

/* 3. RNA-seq Cloud Workbench (.bcw-*) — Luminous Light Redesign & Header Clearance */
.bcw-hero {
  padding-top: 116px !important;
  padding-bottom: 86px !important;
  color: #0f172a !important;
  background: radial-gradient(circle at 82% 16%, rgba(96, 165, 250, 0.24), transparent 32%),
              radial-gradient(circle at 12% 10%, rgba(165, 180, 252, 0.20), transparent 30%),
              linear-gradient(145deg, #eef5ff 0%, #f8fbff 56%, #eef2ff 100%) !important;
  border-bottom: 1px solid #dbe7f8;
}

.bcw-hero h1 {
  color: #0f172a !important;
}

.bcw-hero h1 em {
  color: #2563eb !important;
}

.bcw-lead {
  color: #475569 !important;
}

.bcw-button {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.24) !important;
}

.bcw-text-link {
  color: #1d4ed8 !important;
}

.bcw-pills span {
  background: #ffffff !important;
  border-color: #cbdff8 !important;
  color: #1e40af !important;
}

.bcw-console {
  background: #ffffff !important;
  border: 1px solid #d4e2f7 !important;
  color: #0f172a !important;
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.10) !important;
}

.bcw-console-head {
  background: #f4f8ff;
  border-bottom-color: #e2ecf9 !important;
  border-radius: 14px 14px 0 0;
}

.bcw-console-head b {
  color: #0f172a !important;
}

.bcw-console-head small {
  color: #526580 !important;
}

.bcw-console-head i {
  background: #3b82f6 !important;
}

.bcw-console-body > p {
  color: #2563eb !important;
  font-weight: 700;
}

.bcw-console li {
  border-top-color: #edf2fa !important;
}

.bcw-console li > span {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  font-weight: 700;
}

.bcw-console li b {
  color: #0f172a !important;
}

.bcw-console li small {
  color: #526580 !important;
}

.bcw-console li em {
  color: #64748b !important;
}

.bcw-console li.done em {
  color: #0284c7 !important;
  font-weight: 700;
}

.bcw-console li.active {
  background: #eff6ff !important;
}

.bcw-console li.active span {
  background: #2563eb !important;
  color: #ffffff !important;
}

.bcw-console li.active em {
  color: #2563eb !important;
  font-weight: 700;
}

.bcw-stack span {
  background: #f1f5f9 !important;
  color: #334155 !important;
}

.bcw-dark,
.bcw-apply {
  color: #0f172a !important;
  background: radial-gradient(circle at 86% 14%, rgba(96, 165, 250, 0.18), transparent 32%),
              linear-gradient(145deg, #f0f6ff 0%, #f8fbff 58%, #eef3ff 100%) !important;
  border-block: 1px solid #dbe7f8;
}

.bcw-section-head-light .bcw-eyebrow,
.bcw-card-label {
  color: #2563eb !important;
}

.bcw-card-label-warm {
  color: #d97706 !important;
}

.bcw-section-head-light > p,
.bcw-apply p,
.bcw-apply li {
  color: #475569 !important;
}

.bcw-scope-grid article {
  background: #ffffff !important;
  border: 1px solid #dbe7f8 !important;
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(37, 99, 235, 0.06);
}

.bcw-check li,
.bcw-minus li {
  border-top-color: #edf2fa !important;
  color: #334155 !important;
}

.bcw-check li:before,
.bcw-apply > div > div > li:before,
.bcw-plan-grid li:before {
  color: #2563eb !important;
}

/* 4. Compute Products & Server Pricing (.bcp-*) — Bright Redesign & Interactive Pricing Cards */
.bcp-hero,
.bcp-detail-hero {
  padding-top: 114px !important;
  padding-bottom: 84px !important;
  color: #0f172a !important;
  background: radial-gradient(circle at 82% 18%, rgba(96, 165, 250, 0.25), transparent 30%),
              radial-gradient(circle at 10% 10%, rgba(165, 180, 252, 0.18), transparent 28%),
              linear-gradient(145deg, #eef5ff 0%, #f8fbff 54%, #eef2ff 100%) !important;
  border-bottom: 1px solid #dbe7f8;
}

.bcp-hero:after,
.bcp-detail-hero:after {
  border-color: rgba(37, 99, 235, 0.10) !important;
}

.bcp-breadcrumb {
  color: #556987 !important;
  margin-bottom: 26px !important;
}

.bcp-hero h1,
.bcp-detail-hero h1 {
  color: #0f172a !important;
}

.bcp-hero h1 em,
.bcp-detail-hero h1 em {
  color: #2563eb !important;
}

.bcp-lead {
  color: #475569 !important;
}

.bcp-button,
.bcp-pricing-actions .bcp-button {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22) !important;
}

.bcp-text-link {
  color: #1d4ed8 !important;
}

.bcp-facts,
.bcp-hero-panel {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid #d4e2f7 !important;
  color: #0f172a !important;
  box-shadow: 0 20px 48px rgba(37, 99, 235, 0.09) !important;
}

.bcp-facts dd {
  color: #0f172a !important;
}

.bcp-facts dt {
  color: #526580 !important;
}

.bcp-band,
.bcp-final,
.bcp-intake {
  color: #0f172a !important;
  background: linear-gradient(145deg, #f0f6ff 0%, #f8fbff 58%, #eef3ff 100%) !important;
  border-block: 1px solid #dbe7f8;
}

.bcp-choice-grid article {
  background: #ffffff !important;
  border: 1px solid #dbe7f8;
  border-radius: 12px;
  color: #0f172a !important;
}

.bcp-choice-grid h3 {
  color: #0f172a !important;
}

.bcp-choice-grid p,
.bcp-final > div > p:not(.bcp-eyebrow) {
  color: #475569 !important;
}

.bcp-delivery {
  background: linear-gradient(145deg, #eff6ff, #f8fbff) !important;
  border: 1px solid #cfe0f8 !important;
  color: #0f172a !important;
}

.bcp-delivery .bcp-eyebrow {
  color: #2563eb !important;
}

.bcp-file-list li,
.bcp-upgrade-grid p {
  color: #334155 !important;
  border-color: #dbe7f8 !important;
}

.bcp-upgrade-grid div {
  background: #ffffff !important;
  border-color: #dbe7f8 !important;
  border-radius: 10px;
}

.bcp-number-list span {
  background: #dbeafe !important;
  color: #1d4ed8 !important;
}

.bcp-check-list li:before {
  color: #2563eb !important;
}

/* Interactive Mobile-First Server Pricing Tabs & Cards */
.bcp-tier-switcher {
  margin: 0 0 26px;
}

.bcp-tier-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bcp-tier-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border-radius: 14px;
  background: #eef4ff;
  border: 1px solid #d5e3f8;
  margin-bottom: 22px;
}

.bcp-tier-tabs label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 10px;
  color: #3b5275;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

#bcpTabShared:checked ~ .bcp-tier-tabs label[for="bcpTabShared"],
#bcpTabDedicated:checked ~ .bcp-tier-tabs label[for="bcpTabDedicated"],
#bcpTabGpu:checked ~ .bcp-tier-tabs label[for="bcpTabGpu"] {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
}

.bcp-tier-panel {
  display: none;
}

#bcpTabShared:checked ~ .bcp-panel-shared,
#bcpTabDedicated:checked ~ .bcp-panel-dedicated,
#bcpTabGpu:checked ~ .bcp-panel-gpu {
  display: block;
}

.bcp-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.bcp-tier-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #dbe7f8;
  box-shadow: 0 10px 28px rgba(23, 43, 77, 0.05);
}

.bcp-tier-card.is-featured {
  border-color: #60a5fa;
  background: linear-gradient(160deg, #ffffff 55%, #f0f7ff 100%);
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.10);
}

.bcp-tier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bcp-tier-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}

.bcp-tier-badge.is-gpu {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.bcp-tier-spec {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
}

.bcp-tier-prices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #edf2fa;
}

.bcp-tier-prices.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bcp-tier-prices div {
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8faff;
}

.bcp-tier-prices small {
  display: block;
  color: #64748b;
  font-size: 11px;
  margin-bottom: 2px;
}

.bcp-tier-prices strong {
  display: block;
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.bcp-tier-prices strong.is-promo {
  color: #ea580c;
}

.bcp-tier-prices s {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 500;
  margin-right: 3px;
}

.bcp-tier-note {
  margin: 14px 0 0;
  color: #526580;
  font-size: 13px;
}

.bcp-quote-sheet-details {
  margin-top: 22px;
  border: 1px solid #dbe7f8;
  border-radius: 14px;
  background: #f8fbff;
  padding: 4px 18px;
}

.bcp-quote-sheet-details summary {
  cursor: pointer;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 700;
  list-style: none;
}

.bcp-quote-sheet-details summary::-webkit-details-marker {
  display: none;
}

.bcp-quote-sheet-details summary::after {
  content: "展开原图 ▾";
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e0ecff;
}

.bcp-quote-sheet-details[open] summary::after {
  content: "收起原图 ▴";
}

.bcp-quote-sheet-details .bcp-price-figure {
  padding: 8px 0 18px;
}

/* 5. Research Planners (.bclt-*), Hotspot (.bhr), Ferroptosis (.ftc), Target (.bctp-*), Data Query (.bcdq) */
.bclt-entry {
  background: linear-gradient(145deg, #eff6ff, #f8fbff) !important;
  border-color: #cbdff8 !important;
}

.bclt-hero {
  background: radial-gradient(circle at 90% 0, rgba(147, 197, 253, 0.42), transparent 38%),
              linear-gradient(135deg, #f8fbff, #eef5ff) !important;
  border-color: #d4e2f7 !important;
}

.bclt-lead,
.bclt-shell label,
.bclt-check-grid legend,
.bclt-privacy-card p {
  color: #334155 !important;
}

.bclt-result-bridge {
  background: linear-gradient(135deg, #eff6ff, #ffffff) !important;
  border-color: #bfdbfe !important;
}

.bclt-consult {
  background: linear-gradient(145deg, #eff6ff, #f5f8ff) !important;
  border: 1px solid #cfe0f8;
  color: #0f172a !important;
}

.bclt-consult h2,
.bclt-consult p,
.bclt-consult li,
.bclt-review-details,
.bclt-review-details summary {
  color: #1e293b !important;
}

.bctp-hero,
.bhr-hero,
.bhr-page-hero,
.ftc-hero,
.ftc-page-hero {
  padding-top: 112px !important;
  color: #0f172a !important;
  background: radial-gradient(circle at 84% 16%, rgba(96, 165, 250, 0.25), transparent 34%),
              linear-gradient(145deg, #eef5ff 0%, #f8fbff 56%, #eef2ff 100%) !important;
  border-bottom: 1px solid #dbe7f8;
}

.bctp-hero h1,
.bhr-hero h1,
.bhr-page-hero h1,
.ftc-hero h1,
.ftc-page-hero h1,
.bhr-breadcrumb a,
.ftc-breadcrumb a,
.bhr-hero-note a,
.ftc-hero-note a,
.bctp-text-link {
  color: #0f172a !important;
}

.bctp-steps,
.bctp-service-section,
.bhr-final,
.ftc-final,
.bhr-answer-direct,
.ftc-answer-direct {
  background: linear-gradient(145deg, #eff6ff, #f8fbff) !important;
  color: #0f172a !important;
  border: 1px solid #dbe7f8;
}

.bhr-final h2,
.ftc-final h2 {
  color: #0f172a !important;
}

.bhr,
.ftc {
  --paper: #f6f9ff !important;
  --paper-2: #edf4ff !important;
  --teal: #2563eb !important;
  --ink: #0f172a !important;
}

.bcdq {
  --dq-ink: #0f172a !important;
  --dq-teal: #2563eb !important;
  --dq-soft: #eff6ff !important;
  --dq-line: #dbe6f5 !important;
  background: #f6f9ff !important;
}

/* Brighten /wordpress/bio-tool-try-it-out/ & inline teal callouts */
.single-content a[href*="/single-cell-tools"],
.single-content a[href*="#try-"] {
  border-radius: 10px;
}

/* 6. Blog Posts (.single-article, .single-content) — Bright Code Cards & Clean Tables */
.single-article {
  border: 1px solid #e3ecf8;
  box-shadow: 0 18px 48px rgba(23, 43, 77, 0.06);
}

.single-content {
  color: #1e293b;
}

.single-content pre {
  background: #f8fafc !important;
  color: #0f172a !important;
  border: 1px solid #dbe5f3;
  border-radius: 14px;
  box-shadow: inset 0 1px 0 #ffffff;
}

.single-content pre code {
  color: inherit !important;
  background: transparent !important;
}

.copy-code {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  color: #1d4ed8 !important;
  font-weight: 600;
}

.copy-code:hover {
  background: #dbeafe !important;
}

.single-content table {
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
}

.single-content th {
  background: #f1f6ff;
  color: #172b4d;
  border-color: #dbe6f5;
  font-weight: 700;
}

.single-content td {
  border-color: #e5edf8;
}

.article-toc {
  background: #f4f8ff;
  border: 1px solid #dbe7f8;
}

.article-support {
  background: linear-gradient(135deg, #eff6ff, #f7faff);
  border: 1px solid #d4e3fa;
}

/* 7. Comprehensive Mobile Breakpoints (<= 960px and <= 780px / 390px phone) */
@media (max-width: 1180px) and (min-width: 781px) {
  #siteHeader .nav-shell {
    gap: 12px;
    width: calc(100% - 28px);
  }
  #siteHeader .main-menu {
    gap: 12px;
    font-size: 13px;
  }
  #siteHeader .nav-actions > a.button {
    display: none !important;
  }
}

@media (max-width: 960px) {
  .bcp-tier-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  /* Bulletproof 390px header: never let WooCommerce or plugins unhide desktop CTA button */
  #siteHeader .nav-shell {
    width: calc(100% - 24px) !important;
    height: 62px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    align-items: center !important;
    gap: 6px !important;
  }

  #siteHeader .brand {
    font-size: 17px;
    gap: 8px;
  }

  #siteHeader .nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  #siteHeader .nav-actions > a,
  #siteHeader .nav-actions > a.button,
  body.woocommerce-page #siteHeader .nav-actions > a.button,
  body.woocommerce #siteHeader .nav-actions > a.button {
    display: none !important;
  }

  #siteHeader .main-menu {
    background: #ffffff !important;
    border-bottom: 1px solid #dce6f5;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.10);
  }

  /* Ensure every page clears the 62px fixed header comfortably */
  .bss-hero,
  .bss-detail-hero,
  .bcw-hero,
  .bcp-hero,
  .bcp-detail-hero,
  .bctp-hero,
  .bhr-hero,
  .bhr-page-hero,
  .ftc-hero,
  .ftc-page-hero {
    padding-top: 88px !important;
    padding-bottom: 50px !important;
  }

  .landing-hero {
    padding-top: 96px !important;
    padding-bottom: 44px !important;
  }

  .woocommerce-shop main,
  .woocommerce-shop .site-main,
  .woocommerce-shop #primary,
  .woocommerce-page main {
    width: calc(100% - 28px) !important;
    padding-top: 78px !important;
    padding-bottom: 56px !important;
  }

  .shop-hero {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 18px 0 26px !important;
  }

  /* Balanced, readable mobile headings without single-character orphans */
  .landing-hero h1,
  .shop-hero h1,
  .archive-page .section-heading h1,
  .bss h1,
  .bcw h1,
  .bcp h1 {
    font-size: clamp(28px, 7.8vw, 36px) !important;
    line-height: 1.22 !important;
    letter-spacing: -0.03em !important;
  }

  /* Single blog post mobile polish */
  .single-page,
  .archive-page {
    padding-top: 86px !important;
    padding-bottom: 56px !important;
  }

  .single-page.section-shell,
  .archive-page .section-shell {
    width: calc(100% - 24px) !important;
  }

  .single-article {
    padding: 26px 18px !important;
    border-radius: 20px !important;
  }

  .single-article > h1 {
    font-size: clamp(24px, 6.8vw, 32px) !important;
    line-height: 1.28 !important;
    letter-spacing: -0.025em !important;
  }

  .single-cover {
    margin: 22px 0 0 !important;
    border-radius: 14px !important;
  }

  .single-content {
    margin-top: 24px !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
  }

  .single-content h2 {
    font-size: 22px !important;
    margin: 30px 0 12px !important;
  }

  .single-content h3 {
    font-size: 18px !important;
    margin: 22px 0 10px !important;
  }

  .single-content pre {
    padding: 16px 14px !important;
    font-size: 13px !important;
  }

  .article-support {
    margin-top: 32px !important;
    padding: 20px 18px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
  }

  .article-support .button {
    width: 100%;
  }

  .post-navigation {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .post-navigation div:last-child {
    text-align: left !important;
  }

  /* Interactive Server Pricing on Mobile */
  .bcp-tier-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
  }

  .bcp-tier-tabs label {
    padding: 8px 6px;
    font-size: 13px;
    text-align: center;
  }

  .bcp-tier-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .bcp-tier-card {
    padding: 16px;
  }

  .bcp-tier-spec {
    font-size: 16px;
  }

  .woocommerce ul.products {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}
