/*
Theme Name: OpenClaw Portal
Theme URI: https://openclaw.ru
Author: OpenClaw Community
Author URI: https://openclaw.ru
Description: Русскоязычный community-портал по OpenClaw и AI-агентам. Кастомная тема с поддержкой CPT, ACF, bbPress, фильтрации и модерации пользовательского контента.
Version: 1.0.3
Requires at least: 6.5
Tested up to: 6.9.4
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: openclaw
Tags: custom-post-types, community, knowledge-base, education, translation-ready
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Brand */
  --oc-coral: #FF4D4F;
  --oc-coral-hover: #E04345;
  --oc-coral-light: #FFE5E5;
  --oc-coral-rgb: 255, 77, 79;

  /* Text */
  --oc-navy: #0F172A;
  --oc-navy-light: #1E293B;
  --oc-gray: #64748B;
  --oc-gray-light: #CBD5E1;
  --oc-gray-vlight: #E2E8F0;

  /* Backgrounds */
  --oc-bg: #F5F7FA;
  --oc-bg-alt: #F1F5F9;
  --oc-bg-card: #FFFFFF;
  --oc-bg-blue: #EAF1FB;
  --oc-bg-blue2: #DCE7F5;

  /* Shadows */
  --oc-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --oc-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --oc-shadow-md: 0 4px 6px rgba(15, 23, 42, 0.07), 0 2px 4px rgba(15, 23, 42, 0.04);
  --oc-shadow-lg: 0 10px 15px rgba(15, 23, 42, 0.08), 0 4px 6px rgba(15, 23, 42, 0.03);

  /* Layout */
  --oc-container: 1200px;
  --oc-container-wide: 1400px;
  --oc-gap: 24px;
  --oc-radius: 8px;
  --oc-radius-lg: 12px;
  --oc-radius-xl: 16px;

  /* Typography */
  --oc-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --oc-font-display: 'Manrope', 'Inter', sans-serif;
  --oc-font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Transitions */
  --oc-transition: 0.2s ease;
  --oc-transition-slow: 0.3s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--oc-font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--oc-navy);
  background-color: var(--oc-bg);
  overflow-x: hidden;
}

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

a {
  color: var(--oc-coral);
  text-decoration: none;
  transition: color var(--oc-transition);
}

a:hover {
  color: var(--oc-coral-hover);
}

ul, ol {
  list-style: none;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--oc-font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--oc-navy);
}

h1 { font-size: 2.5rem; letter-spacing: -0.02em; }
h2 { font-size: 1.875rem; letter-spacing: -0.015em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--oc-navy-light);
}

.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-gray { color: var(--oc-gray); }
.text-center { text-align: center; }
.text-coral { color: var(--oc-coral); }

.lead {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--oc-gray);
}

code, pre {
  font-family: var(--oc-font-mono);
  font-size: 0.875rem;
}

code {
  background: var(--oc-bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--oc-coral);
}

pre {
  background: var(--oc-navy);
  color: #E2E8F0;
  padding: 20px 24px;
  border-radius: var(--oc-radius);
  overflow-x: auto;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--oc-container);
  margin: 0 auto;
  padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
}

.container--wide {
  max-width: var(--oc-container-wide);
}

.container--narrow {
  max-width: 800px;
}

.section {
  padding: 64px 0;
}

.section--alt {
  background: var(--oc-bg-alt);
}

.section--dark {
  background: var(--oc-navy);
  color: #fff;
}

.section--blue {
  background: var(--oc-bg-blue);
}

.section-header {
  margin-bottom: 40px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  color: var(--oc-gray);
  max-width: 600px;
}

.section-header--center {
  text-align: center;
}

.section-header--center p {
  margin-left: auto;
  margin-right: auto;
}

/* Grid */
.grid {
  display: grid;
  gap: var(--oc-gap);
  align-items: stretch;
}

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

.flex {
  display: flex;
  align-items: center;
  gap: 12px;
}

.flex--between {
  justify-content: space-between;
}

.flex--wrap {
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--oc-font);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  border: 2px solid transparent;
  border-radius: var(--oc-radius);
  cursor: pointer;
  transition: all var(--oc-transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--oc-coral);
  color: #fff;
  border-color: var(--oc-coral);
}

.btn--primary:hover {
  background: var(--oc-coral-hover);
  border-color: var(--oc-coral-hover);
  color: #fff;
  box-shadow: 0 4px 12px rgba(var(--oc-coral-rgb), 0.3);
}

.btn--secondary {
  background: transparent;
  color: var(--oc-navy);
  border-color: var(--oc-gray-light);
}

.btn--secondary:hover {
  background: var(--oc-bg-alt);
  border-color: var(--oc-navy);
  color: var(--oc-navy);
}

.btn--outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

.btn--sm {
  padding: 8px 16px;
  font-size: 0.8125rem;
}

.btn--lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn--icon {
  padding: 10px;
  border-radius: 50%;
}

.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  border-radius: 16px;
  white-space: nowrap;
}

.badge--beginner {
  background: #DCFCE7;
  color: #166534;
}

.badge--intermediate {
  background: #FEF3C7;
  color: #92400E;
}

.badge--advanced {
  background: #FFE5E5;
  color: #B91C1C;
}

.badge--coral {
  background: var(--oc-coral-light);
  color: var(--oc-coral);
}

.badge--blue {
  background: var(--oc-bg-blue);
  color: #1E40AF;
}

.badge--gray {
  background: var(--oc-bg-alt);
  color: var(--oc-gray);
}

.badge--verified {
  background: #DCFCE7;
  color: #166534;
}

.badge--recommended {
  background: #FEF3C7;
  color: #92400E;
}

.badge--type-skill {
  background: #EEF2FF;
  color: #4338CA;
}

.badge--type-case {
  background: #ECFDF3;
  color: #027A48;
}

.badge--type-knowledge {
  background: #EFF6FF;
  color: #1D4ED8;
}

.badge--type-solution {
  background: #FFF7ED;
  color: #C2410C;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--oc-bg-card);
  border: 1px solid var(--oc-gray-vlight);
  border-radius: var(--oc-radius-lg);
  padding: 24px;
  transition: all var(--oc-transition);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.card:hover {
  box-shadow: var(--oc-shadow-md);
  border-color: var(--oc-gray-light);
}

.card__header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 0;
}

.card__badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.card__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__title a {
  color: var(--oc-navy);
}

.card__title a:hover {
  color: var(--oc-coral);
}

.card__excerpt {
  font-size: 0.9375rem;
  color: var(--oc-gray);
  line-height: 1.6;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1 1 auto;
}

.card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--oc-gray);
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--oc-gray-vlight);
  flex-wrap: wrap;
}

.card__meta-main,
.card__stats,
.single-stats {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.card__meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

button.card__meta-item,
button.single-meta__item {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font: inherit;
  cursor: pointer;
  transition: color var(--oc-transition), opacity var(--oc-transition), transform var(--oc-transition);
}

button.card__meta-item:hover,
button.single-meta__item:hover {
  color: var(--oc-coral);
  transform: translateY(-1px);
}

button.card__meta-item.is-liked,
button.single-meta__item.is-liked {
  color: var(--oc-coral);
}

button.card__meta-item.is-liked,
button.card__meta-item.is-loading,
button.single-meta__item.is-liked,
button.single-meta__item.is-loading {
  cursor: default;
}

button.card__meta-item:disabled,
button.single-meta__item:disabled {
  opacity: 0.9;
}

.card__type-badge svg,
.card__stats svg,
.single-stats svg {
  flex-shrink: 0;
}

.card__meta-item svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

.card__footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--oc-gray-vlight);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.card__type-badge {
  gap: 6px;
}

.card__type-badge svg {
  width: 14px;
  height: 14px;
}

.card__tag {
  font-size: 0.75rem;
  padding: 2px 8px;
  background: var(--oc-bg-alt);
  border-radius: 4px;
  color: var(--oc-gray);
}

.card--featured {
  border-left: 3px solid var(--oc-coral);
}

.card--horizontal {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.card--skill {
  text-align: left;
}

.card--solution .card__problem {
  background: var(--oc-coral-light);
  border-radius: var(--oc-radius);
  padding: 12px 16px;
  margin-bottom: 12px;
  font-size: 0.9375rem;
  color: var(--oc-coral-hover);
}

/* Step Card (for onboarding) */
.step-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  background: var(--oc-bg-card);
  border: 1px solid var(--oc-gray-vlight);
  border-radius: var(--oc-radius-lg);
  transition: all var(--oc-transition);
}

.step-card:hover {
  box-shadow: var(--oc-shadow-md);
  transform: translateY(-2px);
}

.step-card__number {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--oc-coral);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--oc-font-display);
  font-size: 1.25rem;
  font-weight: 800;
}

.step-card__content h4 {
  margin-bottom: 4px;
}

.step-card__content p {
  font-size: 0.9375rem;
  color: var(--oc-gray);
  margin-bottom: 0;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--oc-gray-vlight);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding-top: env(safe-area-inset-top, 0px);
}

.site-header .container {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  height: 72px;
  gap: 16px;
  overflow: visible;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--oc-navy);
  font-family: var(--oc-font-display);
  font-weight: 800;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.site-logo__text {
  display: block;
  white-space: nowrap;
}

.site-logo__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
}

.site-logo__icon img {
  display: block;
  width: 100%;
  height: auto;
}

/* Primary navigation */
.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.primary-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav__list li {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Mobile auth block - hidden on desktop */
.primary-nav__mobile-auth {
  display: none;
}

.primary-nav a,
.primary-nav button {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--oc-navy-light);
  border: none;
  background: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--oc-transition);
  text-decoration: none;
  font-family: var(--oc-font);
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav button:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
  background: var(--oc-bg-alt);
  color: var(--oc-coral);
}

.primary-nav .menu-item-has-children {
  position: relative;
}

.primary-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--oc-gray-vlight);
  border-radius: var(--oc-radius);
  box-shadow: var(--oc-shadow-lg);
  padding: 8px;
  z-index: 100;
  list-style: none;
  margin: 0;
}

.primary-nav .menu-item-has-children:hover > .sub-menu {
  display: block;
}

.primary-nav .sub-menu a {
  padding: 8px 12px;
  font-size: 0.875rem;
  border-radius: 6px;
  display: block;
}

.primary-nav .sub-menu a:hover {
  background: var(--oc-bg-alt);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

/* Prevent logo from shrinking too much */
.header-search-toggle {
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--oc-gray);
  transition: all var(--oc-transition);
}

.header-search-toggle:hover {
  background: var(--oc-bg-alt);
  color: var(--oc-navy);
}

/* Mobile menu toggle */
.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 8px;
  color: var(--oc-navy);
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: var(--oc-transition);
}

/* Search Overlay */
.search-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
}

.search-overlay.active {
  display: flex;
}

.search-overlay__inner {
  width: 100%;
  max-width: 640px;
  background: #fff;
  border-radius: var(--oc-radius-xl);
  padding: 8px;
  box-shadow: var(--oc-shadow-lg);
}

.search-overlay__input {
  width: 100%;
  padding: 16px 20px;
  border: none;
  font-size: 1.125rem;
  font-family: var(--oc-font);
  outline: none;
  border-radius: var(--oc-radius-lg);
  background: transparent;
}

.search-overlay__hints {
  padding: 12px 20px;
  border-top: 1px solid var(--oc-gray-vlight);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.search-overlay__hint {
  font-size: 0.8125rem;
  padding: 4px 10px;
  background: var(--oc-bg-alt);
  border-radius: 4px;
  color: var(--oc-gray);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--oc-navy);
  color: #fff;
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(var(--oc-coral-rgb), 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(30, 64, 175, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  position: relative;
  z-index: 1;
}

/* Hero 2-column grid */
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: center;
}

.hero__content {
  max-width: 680px;
}

/* Mascot area */
.hero__mascot {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: mascotEntrance 1s ease-out 0.3s both;
  overflow: visible;
}

/* ─── Entrance Animations ─── */
@keyframes mascotEntrance {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero__badge {
  animation: fadeInUp 0.6s ease-out both;
}

.hero h1 {
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero__subtitle {
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero .btn-group {
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero__stats {
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

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

/* ─── Section entrance (scroll) ─── */
.section {
  animation: sectionFadeIn 0.5s ease-out both;
}

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

/* Cards hover lift */
.card {
  transition: all 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
}

/* Step cards hover */
.step-card {
  transition: all 0.25s ease;
}
.step-card:hover {
  transform: translateY(-4px);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 24px;
}

.hero__badge .dot {
  width: 6px;
  height: 6px;
  background: #34D399;
  border-radius: 50%;
}

.hero h1 {
  font-size: 3.25rem;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero h1 span {
  color: var(--oc-coral);
}

.hero__subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 540px;
}

.hero__stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__stat-value {
  font-family: var(--oc-font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  display: block;
}

.hero__stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  padding: 16px 0;
  font-size: 0.8125rem;
  color: var(--oc-gray);
}

.breadcrumbs a {
  color: var(--oc-gray);
}

.breadcrumbs a:hover {
  color: var(--oc-coral);
}

.breadcrumbs .separator {
  margin: 0 8px;
  opacity: 0.4;
}

.breadcrumbs .current {
  color: var(--oc-navy);
  font-weight: 500;
}

/* ============================================================
   ARCHIVE PAGES
   ============================================================ */
.archive-header {
  padding: 48px 0 32px;
  background: #fff;
  border-bottom: 1px solid var(--oc-gray-vlight);
}

.archive-header h1 {
  margin-bottom: 8px;
}

.archive-header .lead {
  max-width: 600px;
}

.archive-content {
  padding: 40px 0 64px;
}

/* Filters */
.filters-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--oc-gray-vlight);
}

.filter-group {
  position: relative;
}

.filter-select {
  appearance: none;
  padding: 8px 36px 8px 14px;
  border: 1px solid var(--oc-gray-light);
  border-radius: 6px;
  font-family: var(--oc-font);
  font-size: 0.875rem;
  color: var(--oc-navy);
  background: #fff url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2364748B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center no-repeat;
  cursor: pointer;
  transition: border-color var(--oc-transition);
}

.filter-select:hover,
.filter-select:focus {
  border-color: var(--oc-coral);
  outline: none;
}

.filter-search {
  flex: 1;
  min-width: 200px;
  padding: 8px 14px 8px 36px;
  border: 1px solid var(--oc-gray-light);
  border-radius: 6px;
  font-family: var(--oc-font);
  font-size: 0.875rem;
  background: #fff url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 21L16.65 16.65M19 11C19 15.4183 15.4183 19 11 19C6.58172 19 3 15.4183 3 11C3 6.58172 6.58172 3 11 3C15.4183 3 19 6.58172 19 11Z' stroke='%2364748B' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") left 10px center no-repeat;
  transition: border-color var(--oc-transition);
}

.filter-search:focus {
  border-color: var(--oc-coral);
  outline: none;
}

.filter-toggle {
  padding: 8px 14px;
  border: 1px solid var(--oc-gray-light);
  border-radius: 6px;
  background: #fff;
  font-family: var(--oc-font);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--oc-transition);
  color: var(--oc-navy);
}

.filter-toggle:hover,
.filter-toggle.active {
  background: var(--oc-coral-light);
  border-color: var(--oc-coral);
  color: var(--oc-coral);
}

.results-count {
  font-size: 0.875rem;
  color: var(--oc-gray);
  margin-left: auto;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 80px 20px;
}

.no-results h3 {
  margin-bottom: 8px;
}

.no-results p {
  color: var(--oc-gray);
  margin-bottom: 24px;
}

/* ============================================================
   SINGLE POST / ARTICLE
   ============================================================ */
.single-header {
  padding: 48px 0 32px;
  background: #fff;
  border-bottom: 1px solid var(--oc-gray-vlight);
}

.single-header__badges {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.single-header h1 {
  margin-bottom: 16px;
  max-width: 800px;
}

.single-header .lead {
  max-width: 700px;
  margin-bottom: 24px;
}

.single-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.875rem;
  color: var(--oc-gray);
  flex-wrap: wrap;
}

.single-meta__item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.single-meta__item svg {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

.single-meta__author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.single-meta__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

/* Single content layout */
.single-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding: 48px 0 64px;
}

.single-content {
  min-width: 0;
}

.single-content h2 {
  margin: 2rem 0 1rem;
  padding-top: 1rem;
}

.single-content h3 {
  margin: 1.5rem 0 0.75rem;
}

.single-content ul,
.single-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.single-content ul { list-style: disc; }
.single-content ol { list-style: decimal; }

.single-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.single-content img {
  border-radius: var(--oc-radius);
  margin: 1.5rem 0;
}

.single-content blockquote {
  border-left: 4px solid var(--oc-coral);
  padding: 16px 20px;
  margin: 1.5rem 0;
  background: var(--oc-bg-alt);
  border-radius: 0 var(--oc-radius) var(--oc-radius) 0;
}

.single-content blockquote p:last-child {
  margin-bottom: 0;
}

/* Sidebar */
.single-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
}

.sidebar-widget {
  background: var(--oc-bg-card);
  border: 1px solid var(--oc-gray-vlight);
  border-radius: var(--oc-radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}

.sidebar-widget__title {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--oc-gray-vlight);
}

.sidebar-widget.is-empty {
  display: none;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.info-list__item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--oc-gray-vlight);
  font-size: 0.9375rem;
}

.info-list__item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.info-list__label {
  color: var(--oc-gray);
}

.info-list__value {
  color: var(--oc-navy);
  text-align: right;
  font-weight: 600;
}

.info-downloads {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.btn--block {
  width: 100%;
  justify-content: center;
}

/* TOC */
.toc {
  font-size: 0.875rem;
}

.toc__list {
  padding: 0;
}

.toc__item {
  margin-bottom: 8px;
}

.toc__item a {
  color: var(--oc-gray);
  display: block;
  padding: 4px 0;
  border-left: 2px solid transparent;
  padding-left: 12px;
  transition: all var(--oc-transition);
}

.toc__item a:hover,
.toc__item a.active {
  color: var(--oc-coral);
  border-left-color: var(--oc-coral);
}

.toc__item--child {
  margin-left: 16px;
}

/* ============================================================
   GUIDE STEPS
   ============================================================ */
.guide-step {
  background: var(--oc-bg-card);
  border: 1px solid var(--oc-gray-vlight);
  border-radius: var(--oc-radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.guide-step__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.guide-step__num {
  width: 36px;
  height: 36px;
  background: var(--oc-coral);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.guide-step__title {
  font-size: 1.125rem;
  font-weight: 700;
}

.guide-step__content {
  padding-left: 52px;
}

.guide-step__content p {
  margin-bottom: 0.75rem;
}

/* Requirements box */
.requirements-box {
  background: var(--oc-bg-blue);
  border-radius: var(--oc-radius);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.requirements-box h4 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.requirements-box ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.requirements-box li {
  margin-bottom: 4px;
  font-size: 0.9375rem;
  color: var(--oc-navy-light);
}

/* Errors accordion */
.error-item {
  border: 1px solid var(--oc-gray-vlight);
  border-radius: var(--oc-radius);
  margin-bottom: 8px;
  overflow: hidden;
}

.error-item__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  background: #fff;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--oc-font);
  color: var(--oc-navy);
  transition: background var(--oc-transition);
}

.error-item__header:hover {
  background: var(--oc-bg-alt);
}

.error-item__header::before {
  content: '⚠️';
  font-size: 1rem;
}

.error-item__header::after {
  content: '';
  margin-left: auto;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat;
  transition: transform var(--oc-transition);
}

.error-item.open .error-item__header::after {
  transform: rotate(180deg);
}

.error-item__body {
  display: none;
  padding: 0 16px 16px;
  font-size: 0.9375rem;
}

.error-item.open .error-item__body {
  display: block;
}

/* ============================================================
   SOLUTION SINGLE
   ============================================================ */
.problem-box {
  background: var(--oc-coral-light);
  border-left: 4px solid var(--oc-coral);
  border-radius: 0 var(--oc-radius) var(--oc-radius) 0;
  padding: 20px 24px;
  margin-bottom: 32px;
}

.problem-box h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--oc-coral-hover);
}

.problem-box p {
  color: var(--oc-coral-hover);
  margin-bottom: 0;
}

/* ============================================================
   RELATED MATERIALS
   ============================================================ */
.related-section {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--oc-gray-vlight);
}

.related-section h3 {
  margin-bottom: 24px;
}

/* ============================================================
   ADVANTAGES / FEATURES
   ============================================================ */
.advantage-card {
  text-align: center;
  padding: 32px 24px;
}

.advantage-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--oc-bg-blue);
  border-radius: var(--oc-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.advantage-card h4 {
  margin-bottom: 8px;
}

.advantage-card p {
  font-size: 0.9375rem;
  color: var(--oc-gray);
  margin-bottom: 0;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--oc-bg-blue);
  border-radius: var(--oc-radius-xl);
  padding: 48px;
  text-align: center;
  margin: 0 20px;
}

.cta-section h2 {
  margin-bottom: 12px;
}

.cta-section p {
  color: var(--oc-gray);
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   SUBMIT PAGE
   ============================================================ */
.submit-notice {
  max-width: 980px;
  margin: 0 auto 20px;
  border-radius: var(--oc-radius);
  padding: 12px 14px;
  font-size: 0.9375rem;
  border: 1px solid transparent;
}

.submit-notice--success {
  background: #ECFDF3;
  border-color: #A7F3D0;
  color: #065F46;
}

.submit-notice--error {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #991B1B;
}

.submit-shell {
  max-width: 980px;
  margin: 0 auto;
  background: var(--oc-bg-card);
  border: 1px solid var(--oc-gray-vlight);
  border-radius: var(--oc-radius-xl);
  box-shadow: var(--oc-shadow-sm);
  overflow: hidden;
}

.submit-type-selector {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--oc-gray-vlight);
  background: #fff;
}

.submit-type-card {
  appearance: none;
  background: #fff;
  border: 0;
  border-right: 1px solid var(--oc-gray-vlight);
  border-bottom: 3px solid transparent;
  min-height: 86px;
  padding: 18px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  transition: all var(--oc-transition);
  color: var(--oc-gray);
  font-family: var(--oc-font);
  font-size: 1rem;
  font-weight: 600;
}

.submit-type-card:last-child {
  border-right: 0;
}

.submit-type-card:hover {
  background: #fff;
  color: var(--oc-navy);
}

.submit-type-card.active {
  color: var(--oc-coral);
  background: #FFF4F4;
  border-bottom-color: var(--oc-coral);
}

.submit-type-card__icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  color: currentColor;
}

.submit-type-card__icon svg {
  width: 100%;
  height: 100%;
}

.submit-type-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
}

.submit-form {
  padding: 30px;
}

.submit-material-form {
  position: relative;
  display: grid;
  gap: 20px;
}

.submit-guest-note {
  margin: 20px 30px 0;
  border: 1px solid #BFDBFE;
  background: #EFF6FF;
  color: #1E3A8A;
  border-radius: var(--oc-radius);
  padding: 12px 14px;
  font-size: 0.9375rem;
}

.submit-field label {
  display: block;
  margin-bottom: 10px;
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--oc-navy);
}

.submit-field label span {
  text-transform: none;
  font-weight: 600;
  color: var(--oc-gray);
  font-size: 0.9375rem;
}

.submit-field input[type="text"],
.submit-field input[type="email"],
.submit-field input[type="url"],
.submit-field input[type="file"],
.submit-field textarea,
.submit-field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--oc-gray-light);
  border-radius: 14px;
  background: #fff;
  color: var(--oc-navy);
  font-family: var(--oc-font);
  font-size: 1.05rem;
  transition: border-color var(--oc-transition), box-shadow var(--oc-transition);
}

.submit-field textarea {
  min-height: 140px;
  resize: vertical;
}

.submit-field input[type="file"] {
  padding: 11px 14px;
}

.submit-field input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: 0;
  border-radius: 10px;
  background: #EEF2F8;
  color: var(--oc-navy);
  font-family: var(--oc-font);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
}

.submit-field input:focus,
.submit-field textarea:focus,
.submit-field select:focus {
  border-color: var(--oc-coral);
  outline: none;
  box-shadow: 0 0 0 3px var(--oc-coral-light);
}

.submit-grid {
  display: grid;
  gap: 16px;
}

.submit-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.submit-help {
  margin: 8px 0 0;
  font-size: 0.875rem;
  color: var(--oc-gray);
  line-height: 1.5;
}

.submit-help--markers {
  margin-top: 12px;
  margin-bottom: 8px;
}

.submit-field--honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.submit-marker-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.submit-marker-chip {
  appearance: none;
  border: 1px solid var(--oc-gray-light);
  background: #fff;
  color: var(--oc-navy);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.8125rem;
  line-height: 1.25;
  cursor: pointer;
  transition: border-color var(--oc-transition), background-color var(--oc-transition), color var(--oc-transition);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.submit-marker-chip:hover {
  border-color: var(--oc-coral);
  color: var(--oc-coral);
  background: #FFF7F7;
}

.submit-marker-chip:focus-visible {
  outline: none;
  border-color: var(--oc-coral);
  box-shadow: 0 0 0 3px var(--oc-coral-light);
}

.submit-actions {
  border-top: 1px solid var(--oc-gray-vlight);
  margin-top: 6px;
  padding-top: 24px;
  display: flex;
  justify-content: flex-end;
}

.submit-actions .btn {
  min-width: 300px;
  justify-content: center;
  gap: 10px;
}

@media (max-width: 900px) {
  .submit-shell {
    border-radius: var(--oc-radius-lg);
  }

  .submit-type-selector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .submit-type-card {
    min-height: 72px;
    font-size: 0.9375rem;
  }

  .submit-type-card:nth-child(2n) {
    border-right: 0;
  }

  .submit-form {
    padding: 20px 16px;
  }

  .submit-guest-note {
    margin: 16px 16px 0;
  }

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

  .submit-actions .btn {
    width: 100%;
    min-width: 0;
  }
}

/* ============================================================
   PROFILE PAGE
   ============================================================ */
.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 48px 0;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--oc-gray-vlight);
}

.profile-info h1 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.profile-info .text-gray {
  font-size: 0.9375rem;
}

.profile-stats {
  display: flex;
  gap: 24px;
  margin-top: 12px;
}

.profile-stat {
  font-size: 0.875rem;
  color: var(--oc-gray);
}

.profile-stat strong {
  color: var(--oc-navy);
  font-weight: 700;
}

/* ============================================================
   KNOWLEDGE BASE
   ============================================================ */
.kb-search {
  max-width: 600px;
  margin: 0 auto 40px;
}

.kb-search input {
  width: 100%;
  padding: 16px 24px;
  border: 2px solid var(--oc-gray-vlight);
  border-radius: var(--oc-radius-lg);
  font-size: 1.125rem;
  font-family: var(--oc-font);
  transition: border-color var(--oc-transition);
}

.kb-search input:focus {
  border-color: var(--oc-coral);
  outline: none;
}

.kb-category {
  margin-bottom: 40px;
}

.kb-category h3 {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--oc-gray-vlight);
}

.kb-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--oc-gray-vlight);
}

.kb-item:last-child {
  border-bottom: none;
}

.kb-item__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--oc-coral);
  margin-top: 2px;
}

.kb-item a {
  font-weight: 600;
  color: var(--oc-navy);
  font-size: 1rem;
}

.kb-item a:hover {
  color: var(--oc-coral);
}

.kb-item p {
  font-size: 0.875rem;
  color: var(--oc-gray);
  margin-bottom: 0;
  margin-top: 4px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--oc-navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 calc(32px + env(safe-area-inset-bottom, 0px));
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .site-logo {
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9375rem;
  transition: color var(--oc-transition);
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination,
.navigation.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 40px 0;
}

.navigation.pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.pagination .page-numbers,
.navigation.pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--oc-gray-vlight);
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--oc-navy);
  text-decoration: none;
  transition: all var(--oc-transition);
}

.pagination .page-numbers:hover,
.navigation.pagination .page-numbers:hover {
  background: var(--oc-bg-alt);
  border-color: var(--oc-gray-light);
}

.pagination .page-numbers.current,
.navigation.pagination .page-numbers.current {
  background: var(--oc-coral);
  border-color: var(--oc-coral);
  color: #fff;
}

.pagination .page-numbers.dots,
.navigation.pagination .page-numbers.dots {
  border: none;
}

/* ============================================================
   FORMS (Gravity Forms styling)
   ============================================================ */
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="url"],
.gform_wrapper textarea,
.gform_wrapper select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--oc-gray-light);
  border-radius: var(--oc-radius);
  font-family: var(--oc-font);
  font-size: 0.9375rem;
  transition: border-color var(--oc-transition);
}

.gform_wrapper input:focus,
.gform_wrapper textarea:focus,
.gform_wrapper select:focus {
  border-color: var(--oc-coral);
  outline: none;
  box-shadow: 0 0 0 3px var(--oc-coral-light);
}

.gform_wrapper .gform_button {
  background: var(--oc-coral);
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: var(--oc-radius);
  font-family: var(--oc-font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--oc-transition);
}

.gform_wrapper .gform_button:hover {
  background: var(--oc-coral-hover);
}

/* ============================================================
   COMMENTS (WP native)
   ============================================================ */
.comments-area {
  margin-top: 8px;
}

.comments-title {
  font-size: 2rem;
  margin-bottom: 20px;
}

.comments-area .comment-list,
.comments-area .comment-list .children {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comments-area .comment-list > li {
  margin-bottom: 14px;
}

.comments-area .comment-body {
  background: var(--oc-bg-card);
  border: 1px solid var(--oc-gray-vlight);
  border-radius: var(--oc-radius-lg);
  padding: 16px 18px;
}

.comments-area .comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.comments-area .comment-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-style: normal;
  font-weight: 700;
  color: var(--oc-navy);
}

.comments-area .comment-author .avatar {
  border-radius: 50%;
}

.comments-area .comment-metadata,
.comments-area .comment-metadata a {
  font-size: 0.8125rem;
  color: var(--oc-gray);
}

.comments-area .comment-content p:last-child {
  margin-bottom: 0;
}

.comments-area .reply {
  margin-top: 10px;
}

.comments-area .reply a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid var(--oc-gray-light);
  border-radius: 8px;
  color: var(--oc-navy-light);
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}

.comments-area .reply a:hover {
  border-color: var(--oc-coral);
  color: var(--oc-coral);
  background: var(--oc-coral-light);
}

.comments-area .children {
  margin-top: 12px;
  margin-left: 22px;
  border-left: 2px solid var(--oc-gray-vlight);
  padding-left: 12px;
}

.comments-area .comment-respond {
  margin-top: 32px;
  padding-top: 30px;
  border-top: 1px solid var(--oc-gray-vlight);
}

.comments-area .comment-reply-title {
  font-size: 2.25rem;
  margin-bottom: 12px;
}

.comments-area .comment-notes,
.comments-area .logged-in-as {
  color: var(--oc-gray);
  font-size: 1rem;
  margin-bottom: 14px;
}

.comments-area .logged-in-as a {
  color: var(--oc-coral);
}

.comments-area .required-field-message {
  display: block;
  margin-top: 6px;
}

.comments-area .comment-form {
  display: block;
}

.comments-area .comment-form p {
  margin-bottom: 14px;
}

.comments-area .comment-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--oc-navy-light);
}

.comments-area .comment-form input[type="text"],
.comments-area .comment-form input[type="email"],
.comments-area .comment-form input[type="url"],
.comments-area .comment-form input[type="password"],
.comments-area .comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--oc-gray-light);
  border-radius: var(--oc-radius);
  font-family: var(--oc-font);
  font-size: 0.9375rem;
  color: var(--oc-navy);
  background: #fff;
  transition: border-color var(--oc-transition), box-shadow var(--oc-transition);
}

.comments-area .comment-form textarea {
  min-height: 180px;
  resize: vertical;
}

.comments-area .comment-form input:focus,
.comments-area .comment-form textarea:focus {
  border-color: var(--oc-coral);
  outline: none;
  box-shadow: 0 0 0 3px var(--oc-coral-light);
}

.comments-area .comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.comments-area .comment-form-cookies-consent input[type="checkbox"] {
  margin-top: 4px;
}

.comments-area .comment-form-cookies-consent label {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--oc-gray);
}

.comments-area .form-submit {
  margin-top: 16px;
}

.comments-area .form-submit .btn {
  min-width: 180px;
}

.comments-area .comment-awaiting-moderation {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #FEF3C7;
  color: #92400E;
  font-size: 0.75rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .comments-title {
    font-size: 1.5rem;
  }

  .comments-area .comment-reply-title {
    font-size: 1.75rem;
  }

  .comments-area .children {
    margin-left: 10px;
    padding-left: 10px;
  }

  .comments-area .form-submit .btn {
    width: 100%;
    min-width: 0;
  }
}

/* ============================================================
   BBPRESS OVERRIDES
   ============================================================ */
.single-content--bbpress {
  min-width: 0;
}

.single-content--bbpress > #bbpress-forums {
  font-family: var(--oc-font);
  background: var(--oc-bg-card);
  border: 1px solid var(--oc-gray-vlight);
  border-radius: var(--oc-radius-lg);
  box-shadow: var(--oc-shadow-sm);
  padding: 24px;
  overflow-x: auto;
}

.single-content--bbpress #bbpress-forums a {
  color: var(--oc-coral);
  transition: color var(--oc-transition);
}

.single-content--bbpress #bbpress-forums a:hover {
  color: var(--oc-coral-hover);
}

.single-content--bbpress #bbpress-forums ul.bbp-forums,
.single-content--bbpress #bbpress-forums ul.bbp-topics,
.single-content--bbpress #bbpress-forums ul.bbp-replies {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  border: 1px solid var(--oc-gray-vlight);
  border-radius: var(--oc-radius-lg);
  overflow: hidden;
  background: #fff;
}

.single-content--bbpress #bbpress-forums li {
  margin: 0;
}

.single-content--bbpress #bbpress-forums .bbp-forum-title,
.single-content--bbpress #bbpress-forums .bbp-topic-title {
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.35;
  color: var(--oc-navy);
}

.single-content--bbpress #bbpress-forums .bbp-forum-info,
.single-content--bbpress #bbpress-forums .bbp-topic-meta,
.single-content--bbpress #bbpress-forums .bbp-reply-header {
  font-size: 0.8125rem;
  color: var(--oc-gray);
}

.single-content--bbpress #bbpress-forums li.bbp-header,
.single-content--bbpress #bbpress-forums li.bbp-footer {
  background: var(--oc-bg-alt);
  border: 0;
  padding: 14px 16px;
}

.single-content--bbpress #bbpress-forums li.bbp-header ul,
.single-content--bbpress #bbpress-forums li.bbp-footer ul {
  display: grid;
  grid-template-columns: minmax(460px, 3fr) minmax(90px, 0.7fr) minmax(110px, 0.8fr) minmax(170px, 1.2fr);
  gap: 12px;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--oc-gray);
  white-space: normal;
  line-height: 1.35;
}

.single-content--bbpress #bbpress-forums li.bbp-body ul.forum,
.single-content--bbpress #bbpress-forums li.bbp-body ul.topic {
  display: grid;
  grid-template-columns: minmax(460px, 3fr) minmax(90px, 0.7fr) minmax(110px, 0.8fr) minmax(170px, 1.2fr);
  gap: 12px;
  align-items: center;
  border: 0;
  border-top: 1px solid var(--oc-gray-vlight);
  padding: 16px 20px;
  transition: background var(--oc-transition);
}

.single-content--bbpress #bbpress-forums li.bbp-header ul > li,
.single-content--bbpress #bbpress-forums li.bbp-body ul.forum > li,
.single-content--bbpress #bbpress-forums li.bbp-body ul.topic > li {
  float: none !important;
  width: auto !important;
  margin: 0;
}

.single-content--bbpress #bbpress-forums li.bbp-body ul.forum:nth-child(even),
.single-content--bbpress #bbpress-forums li.bbp-body ul.topic:nth-child(even) {
  background: #fbfcfe;
}

.single-content--bbpress #bbpress-forums li.bbp-body ul.forum:hover,
.single-content--bbpress #bbpress-forums li.bbp-body ul.topic:hover {
  background: var(--oc-bg-alt);
}

.single-content--bbpress #bbpress-forums .bbp-forum-content,
.single-content--bbpress #bbpress-forums .bbp-topic-content,
.single-content--bbpress #bbpress-forums .bbp-reply-content {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--oc-navy-light);
}

.single-content--bbpress #bbpress-forums .bbp-forum-info {
  width: 100% !important;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.single-content--bbpress #bbpress-forums .bbp-topic-title {
  width: 100% !important;
  max-width: none;
  display: block;
}

.single-content--bbpress #bbpress-forums .bbp-forum-content {
  width: 100% !important;
  max-width: none !important;
  margin-top: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--oc-gray);
}

.single-content--bbpress #bbpress-forums .bbp-forum-info,
.single-content--bbpress #bbpress-forums .bbp-topic-title,
.single-content--bbpress #bbpress-forums .bbp-forum-freshness,
.single-content--bbpress #bbpress-forums .bbp-topic-freshness {
  min-width: 0;
  overflow-wrap: anywhere;
}

.single-content--bbpress #bbpress-forums .bbp-forum-topic-count,
.single-content--bbpress #bbpress-forums .bbp-forum-reply-count,
.single-content--bbpress #bbpress-forums .bbp-topic-voice-count,
.single-content--bbpress #bbpress-forums .bbp-topic-reply-count {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--oc-navy);
}

.single-content--bbpress #bbpress-forums .bbp-forum-freshness,
.single-content--bbpress #bbpress-forums .bbp-topic-freshness {
  text-align: right;
  line-height: 1.4;
  justify-self: end;
  min-width: 0;
}

.single-content--bbpress #bbpress-forums li.bbp-header .bbp-forum-freshness,
.single-content--bbpress #bbpress-forums li.bbp-header .bbp-topic-freshness {
  white-space: normal;
  justify-self: end;
  text-align: right;
  padding-right: 2px;
  min-width: 0;
}

.single-content--bbpress #bbpress-forums li.bbp-header .bbp-forum-freshness,
.single-content--bbpress #bbpress-forums li.bbp-header .bbp-topic-freshness {
  font-size: 0;
}

.single-content--bbpress #bbpress-forums li.bbp-header .bbp-forum-freshness::before,
.single-content--bbpress #bbpress-forums li.bbp-header .bbp-topic-freshness::before {
  content: "Последняя запись";
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--oc-gray);
  white-space: nowrap;
}

.single-content--bbpress #bbpress-forums li.bbp-body .bbp-forum-freshness,
.single-content--bbpress #bbpress-forums li.bbp-body .bbp-topic-freshness {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.single-content--bbpress #bbpress-forums .bbp-forum-freshness a,
.single-content--bbpress #bbpress-forums .bbp-topic-freshness a {
  font-weight: 600;
}

.single-content--bbpress #bbpress-forums .bbp-topic-content ul,
.single-content--bbpress #bbpress-forums .bbp-reply-content ul {
  list-style: disc;
  margin: 0.75rem 0;
  padding-left: 1.25rem;
}

.single-content--bbpress #bbpress-forums .bbp-topic-content ol,
.single-content--bbpress #bbpress-forums .bbp-reply-content ol {
  list-style: decimal;
  margin: 0.75rem 0;
  padding-left: 1.25rem;
}

.single-content--bbpress #bbpress-forums .bbp-topic-content li,
.single-content--bbpress #bbpress-forums .bbp-reply-content li {
  margin-bottom: 0.35rem;
}

.single-content--bbpress #bbpress-forums .bbp-author-avatar img.avatar {
  border-radius: 50%;
  border: 2px solid var(--oc-bg-alt);
}

.single-content--bbpress #bbpress-forums .bbp-template-notice {
  border-radius: var(--oc-radius);
  border: 1px solid #BEE3F8;
  background: #EFF6FF;
  color: #1E3A8A;
  margin: 0 0 18px;
  padding: 12px 14px;
}

.single-content--bbpress #bbpress-forums div.bbp-template-notice p {
  margin: 0;
  font-size: 0.875rem;
  color: inherit;
}

.single-content--bbpress #bbpress-forums #bbp-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  width: 100%;
  max-width: 100%;
}

.single-content--bbpress #bbpress-forums #bbp_search_form,
.single-content--bbpress #bbpress-forums #bbp-search-form > form {
  width: 100%;
  max-width: 100%;
}

.single-content--bbpress #bbpress-forums #bbp-search-form > div,
.single-content--bbpress #bbpress-forums #bbp_search_form > div,
.single-content--bbpress #bbpress-forums #bbp-search-form div,
.single-content--bbpress #bbpress-forums #bbp_search_form div {
  float: none;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.single-content--bbpress #bbpress-forums #bbp_search {
  width: 100%;
  min-width: 180px;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
}

.single-content--bbpress #bbpress-forums #bbp_search_submit {
  margin: 0;
  flex: 0 0 auto;
}

.single-content--bbpress #bbpress-forums input[type="text"],
.single-content--bbpress #bbpress-forums input[type="email"],
.single-content--bbpress #bbpress-forums input[type="url"],
.single-content--bbpress #bbpress-forums input[type="password"],
.single-content--bbpress #bbpress-forums textarea,
.single-content--bbpress #bbpress-forums select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--oc-gray-light);
  border-radius: var(--oc-radius);
  font-family: var(--oc-font);
  font-size: 0.9375rem;
  color: var(--oc-navy);
  background: #fff;
  transition: border-color var(--oc-transition), box-shadow var(--oc-transition);
}

.single-content--bbpress #bbpress-forums input:focus,
.single-content--bbpress #bbpress-forums textarea:focus,
.single-content--bbpress #bbpress-forums select:focus {
  border-color: var(--oc-coral);
  outline: none;
  box-shadow: 0 0 0 3px var(--oc-coral-light);
}

.single-content--bbpress #bbpress-forums fieldset.bbp-form {
  border: 1px solid var(--oc-gray-vlight);
  border-radius: var(--oc-radius-lg);
  background: #fff;
  margin-bottom: 20px;
  padding: 20px;
}

.single-content--bbpress #bbpress-forums fieldset.bbp-form legend {
  padding: 0 8px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--oc-navy);
}

.single-content--bbpress #bbpress-forums fieldset.bbp-form label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--oc-navy-light);
}

.single-content--bbpress #bbpress-forums .button,
.single-content--bbpress #bbpress-forums button,
.single-content--bbpress #bbpress-forums input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--oc-coral);
  border-radius: var(--oc-radius);
  background: var(--oc-coral);
  color: #fff;
  font-family: var(--oc-font);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 10px 18px;
  cursor: pointer;
  transition: background var(--oc-transition), border-color var(--oc-transition), box-shadow var(--oc-transition);
}

.single-content--bbpress #bbpress-forums .button:hover,
.single-content--bbpress #bbpress-forums button:hover,
.single-content--bbpress #bbpress-forums input[type="submit"]:hover {
  background: var(--oc-coral-hover);
  border-color: var(--oc-coral-hover);
  box-shadow: 0 4px 12px rgba(var(--oc-coral-rgb), 0.25);
}

.single-content--bbpress #bbpress-forums .bbp-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 18px;
}

.single-content--bbpress #bbpress-forums .bbp-pagination-count {
  font-size: 0.8125rem;
  color: var(--oc-gray);
}

.single-content--bbpress #bbpress-forums .bbp-pagination-links {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.single-content--bbpress #bbpress-forums .bbp-pagination-links a,
.single-content--bbpress #bbpress-forums .bbp-pagination-links span.current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--oc-gray-vlight);
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--oc-navy);
}

.single-content--bbpress #bbpress-forums .bbp-pagination-links a:hover {
  background: var(--oc-bg-alt);
  border-color: var(--oc-gray-light);
}

.single-content--bbpress #bbpress-forums .bbp-pagination-links span.current {
  background: var(--oc-coral);
  border-color: var(--oc-coral);
  color: #fff;
}

.single-content--bbpress #bbpress-forums #subscription-toggle a,
.single-content--bbpress #bbpress-forums #favorite-toggle a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid var(--oc-gray-light);
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  color: var(--oc-navy);
  background: #fff;
  text-decoration: none;
}

.single-content--bbpress #bbpress-forums .bbp-topic-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.single-content--bbpress #bbpress-forums .bbp-topic-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.single-content--bbpress #bbpress-forums .bbp-breadcrumb {
  float: left;
  margin: 0 0 12px;
}

.single-content--bbpress #bbpress-forums .bbp-topic-tags .bbp-topic-meta {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

.single-content--bbpress #bbpress-forums #subscription-toggle,
.single-content--bbpress #bbpress-forums #favorite-toggle {
  float: right !important;
  clear: none !important;
  position: static;
  margin: 0 0 12px 12px;
  display: inline-flex;
  align-items: center;
}

.single-content--bbpress #bbpress-forums #subscription-toggle span,
.single-content--bbpress #bbpress-forums #favorite-toggle span {
  display: inline-flex;
}

.single-content--bbpress #bbpress-forums .bbp-topic-tags #subscription-toggle,
.single-content--bbpress #bbpress-forums .bbp-topic-tags #favorite-toggle {
  margin-left: auto;
}

.single-content--bbpress #bbpress-forums p.bbp-forum-subscription,
.single-content--bbpress #bbpress-forums p.bbp-topic-subscription {
  clear: both;
  margin: 0 0 10px;
  display: flex;
  justify-content: flex-end;
}

.single-content--bbpress #bbpress-forums .bbp-template-notice,
.single-content--bbpress #bbpress-forums #bbp-search-form,
.single-content--bbpress #bbpress-forums .bbp-pagination,
.single-content--bbpress #bbpress-forums ul.bbp-forums,
.single-content--bbpress #bbpress-forums ul.bbp-topics,
.single-content--bbpress #bbpress-forums ul.bbp-replies {
  clear: both;
}

.single-content--bbpress #bbpress-forums .bbp-topic-meta #subscription-toggle,
.single-content--bbpress #bbpress-forums .bbp-topic-meta #favorite-toggle {
  margin-left: auto;
}

.single-content--bbpress #bbpress-forums #subscription-toggle a:hover,
.single-content--bbpress #bbpress-forums #favorite-toggle a:hover {
  border-color: var(--oc-coral);
  background: var(--oc-coral-light);
  color: var(--oc-coral-hover);
}

.single-content--bbpress #bbpress-forums #bbp-reply-form .bbp-submit-wrapper button {
  background: var(--oc-coral);
  color: #fff;
  border: none;
  border-radius: var(--oc-radius);
  padding: 10px 24px;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 900px) {
  .single-content--bbpress > #bbpress-forums {
    padding: 16px;
    overflow-x: visible;
  }

  .single-content--bbpress #bbpress-forums li.bbp-body ul.forum,
  .single-content--bbpress #bbpress-forums li.bbp-body ul.topic {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "main main main"
      "topics replies fresh";
    gap: 10px 10px;
    padding: 12px 14px;
    align-items: start;
  }

  .single-content--bbpress #bbpress-forums #bbp-search-form {
    flex-direction: column;
    align-items: stretch;
  }

  .single-content--bbpress #bbpress-forums #bbp_search_form,
  .single-content--bbpress #bbpress-forums #bbp-search-form > form,
  .single-content--bbpress #bbpress-forums #bbp-search-form > div,
  .single-content--bbpress #bbpress-forums #bbp_search_form > div,
  .single-content--bbpress #bbpress-forums #bbp-search-form div,
  .single-content--bbpress #bbpress-forums #bbp_search_form div {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    max-width: 100%;
  }

  .single-content--bbpress #bbpress-forums #bbp_search,
  .single-content--bbpress #bbpress-forums #bbp_search_submit {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .single-content--bbpress #bbpress-forums #bbp-search-form > * {
    min-width: 0;
  }

  .single-content--bbpress #bbpress-forums .bbp-pagination {
    flex-direction: column;
    align-items: flex-start;
  }

  .single-content--bbpress #bbpress-forums li.bbp-header {
    display: none;
  }

  .single-content--bbpress #bbpress-forums .bbp-forum-info,
  .single-content--bbpress #bbpress-forums .bbp-topic-title {
    grid-area: main;
    min-width: 0;
    width: 100% !important;
  }

  .single-content--bbpress #bbpress-forums .bbp-forum-info,
  .single-content--bbpress #bbpress-forums .bbp-topic-title,
  .single-content--bbpress #bbpress-forums .bbp-forum-content,
  .single-content--bbpress #bbpress-forums .bbp-topic-content {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .single-content--bbpress #bbpress-forums .bbp-forum-freshness,
  .single-content--bbpress #bbpress-forums .bbp-topic-freshness {
    grid-area: fresh;
    text-align: right;
    font-size: 0.8125rem;
    justify-self: end;
    align-self: center;
  }

  .single-content--bbpress #bbpress-forums .bbp-forum-topic-count,
  .single-content--bbpress #bbpress-forums .bbp-topic-voice-count,
  .single-content--bbpress #bbpress-forums .bbp-forum-reply-count,
  .single-content--bbpress #bbpress-forums .bbp-topic-reply-count {
    min-width: 0;
    padding: 6px 8px;
    border-radius: 8px;
    background: var(--oc-bg-alt);
    justify-self: stretch;
  }

  .single-content--bbpress #bbpress-forums .bbp-forum-topic-count,
  .single-content--bbpress #bbpress-forums .bbp-topic-voice-count {
    grid-area: topics;
  }

  .single-content--bbpress #bbpress-forums .bbp-forum-reply-count,
  .single-content--bbpress #bbpress-forums .bbp-topic-reply-count {
    grid-area: replies;
  }

  .single-content--bbpress #bbpress-forums .bbp-forum-topic-count::before,
  .single-content--bbpress #bbpress-forums .bbp-topic-voice-count::before,
  .single-content--bbpress #bbpress-forums .bbp-forum-reply-count::before,
  .single-content--bbpress #bbpress-forums .bbp-topic-reply-count::before {
    display: block;
    margin-bottom: 2px;
    font-size: 0.625rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--oc-gray);
  }

  .single-content--bbpress #bbpress-forums .bbp-forum-topic-count::before {
    content: "Темы";
  }

  .single-content--bbpress #bbpress-forums .bbp-topic-voice-count::before {
    content: "Участ.";
  }

  .single-content--bbpress #bbpress-forums .bbp-forum-reply-count::before {
    content: "Сообщ.";
  }

  .single-content--bbpress #bbpress-forums .bbp-topic-reply-count::before {
    content: "Ответы";
  }

  .single-content--bbpress #bbpress-forums .bbp-topic-meta #subscription-toggle,
  .single-content--bbpress #bbpress-forums .bbp-topic-meta #favorite-toggle {
    margin-left: 0;
  }

  .single-content--bbpress #bbpress-forums .bbp-topic-tags #subscription-toggle,
  .single-content--bbpress #bbpress-forums .bbp-topic-tags #favorite-toggle {
    margin-left: 0;
  }

  .single-content--bbpress #bbpress-forums .bbp-breadcrumb {
    float: none;
    margin-bottom: 10px;
  }

  .single-content--bbpress #bbpress-forums #subscription-toggle,
  .single-content--bbpress #bbpress-forums #favorite-toggle {
    float: none !important;
    margin: 0 0 10px;
  }

  .single-content--bbpress #bbpress-forums p.bbp-forum-subscription,
  .single-content--bbpress #bbpress-forums p.bbp-topic-subscription {
    justify-content: flex-start;
  }
}

/* ============================================================
   AD ZONES (placeholders for future monetization)
   ============================================================ */
.ad-zone {
  display: none; /* Hidden until ads are activated */
}

.ad-zone--active {
  display: block;
  text-align: center;
  padding: 16px;
  margin: 24px 0;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hidden { display: none !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.mb-4 { margin-bottom: 32px !important; }
.mt-4 { margin-top: 32px !important; }
.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }


.code-block {
  position: relative;
  margin-bottom: 1.5rem;
}

.code-block pre {
  margin-bottom: 0;
  padding-top: 56px;
}

.code-copy {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity var(--oc-transition), transform var(--oc-transition), background var(--oc-transition);
}

.code-block:hover .code-copy,
.code-copy:focus-visible {
  opacity: 1;
  transform: translateY(0);
}

.code-copy.copied {
  background: rgba(22, 101, 52, 0.92);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .single-layout { grid-template-columns: 1fr; }
  .single-sidebar { position: static; }
  .hero h1 { font-size: 2.5rem; }
  .hero__stats { gap: 24px; }
  .hero__grid { grid-template-columns: 1fr 260px; gap: 32px; }
}

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

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }

  /* Hero stacks vertically on mobile — mascot on top */
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .hero__mascot {
    order: -1;
    max-width: 200px;
    margin: 0 auto;
  }
  .hero__content {
    max-width: 100%;
  }
  .hero__subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .hero .btn-group {
    justify-content: center;
  }
  .hero__stats {
    justify-content: center;
  }

  .hero { padding: 48px 0 64px; }
  .hero h1 { font-size: 2rem; }
  .hero__subtitle { font-size: 1.0625rem; }
  .hero__stats { flex-direction: column; gap: 16px; }

  .section { padding: 40px 0; }
  .cta-section { padding: 32px 20px; margin: 0; border-radius: var(--oc-radius); }

  .primary-nav { display: none; }
  .mobile-toggle { display: flex; flex-direction: column; justify-content: center; }

  /* Hide auth buttons on mobile - they go into mobile menu */
  .header-actions .header-auth-btn {
    display: none !important;
  }

  /* Mobile auth block inside nav - hidden by default, shown in mobile menu */
  .primary-nav__mobile-auth {
    display: none;
  }

  .mobile-nav.active .primary-nav__mobile-auth {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--oc-gray-vlight);
  }

  /* Keep search and burger visible */
  .header-actions .header-search-toggle,
  .header-actions .mobile-toggle {
    display: flex !important;
  }

  /* Prevent header overflow */
  .site-header .container {
    gap: 8px;
  }

  .mobile-nav.active .primary-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--oc-gray-vlight);
    padding: 16px;
    box-shadow: var(--oc-shadow-lg);
    z-index: 999;
  }

  .mobile-nav.active .primary-nav__list {
    flex-direction: column;
    width: 100%;
  }

  .mobile-nav.active .primary-nav .sub-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 16px;
    display: block;
    list-style: none;
  }

  .filters-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-search {
    min-width: unset;
  }

  .results-count {
    margin-left: 0;
  }

  .profile-header {
    flex-direction: column;
    text-align: center;
  }

  .card--horizontal {
    flex-direction: column;
  }

  .archive-header {
    padding: 32px 0 24px;
  }

  .single-header {
    padding: 32px 0 24px;
  }

  .single-meta {
    flex-wrap: wrap;
    gap: 12px;
  }

  .guide-step__content {
    padding-left: 0;
  }

  .code-copy {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .btn-group {
    flex-direction: column;
  }

  .btn-group .btn {
    width: 100%;
  }

  .step-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .submit-type-selector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .site-header,
  .site-footer,
  .single-sidebar,
  .related-section,
  .filters-bar,
  .pagination,
  .btn,
  .ad-zone { display: none !important; }

  body { background: #fff; color: #000; }
  .single-layout { grid-template-columns: 1fr; }
  a { color: #000; text-decoration: underline; }
}

/* ============================================================
   WORDPRESS OVERRIDES
   Override WP core/block-library/global-styles that may inject
   competing styles in WP 6.x+
   ============================================================ */

/* Reset WP default body styles */
body.openclaw-theme,
body.is-front,
body.is-singular {
  background-color: var(--oc-bg) !important;
  color: var(--oc-navy) !important;
  font-family: var(--oc-font) !important;
  font-size: 1rem !important;
  line-height: 1.7 !important;
}

/* Override WP link colors */
body a {
  color: var(--oc-coral);
  text-decoration: none;
}
body a:hover {
  color: var(--oc-coral-hover);
}
body a:where(:not(.wp-element-button)) {
  text-decoration: none;
}

/* Override WP heading styles */
body h1, body h2, body h3, body h4, body h5, body h6 {
  font-family: var(--oc-font-display) !important;
  color: var(--oc-navy) !important;
}

/* Override WP button styles */
.btn.btn--primary {
  background-color: var(--oc-coral) !important;
  color: #fff !important;
  border-color: var(--oc-coral) !important;
}
.btn.btn--primary:hover {
  background-color: var(--oc-coral-hover) !important;
  border-color: var(--oc-coral-hover) !important;
}
.btn.btn--secondary {
  background-color: transparent !important;
  color: var(--oc-navy) !important;
  border-color: var(--oc-gray-light) !important;
}
.btn.btn--secondary:hover {
  background-color: var(--oc-bg-alt) !important;
  border-color: var(--oc-navy) !important;
}
.btn.btn--outline-white {
  background-color: transparent !important;
  color: #fff !important;
  border-color: rgba(255,255,255,0.3) !important;
}
.btn.btn--outline-white:hover {
  background-color: rgba(255,255,255,0.1) !important;
  border-color: #fff !important;
  color: #fff !important;
}

/* Override WP list defaults inside nav */
.primary-nav ul,
.primary-nav li,
.primary-nav__list,
.primary-nav__list li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Fix hero section always dark */
.hero {
  background-color: var(--oc-navy) !important;
  color: #fff !important;
}
.hero h1 {
  color: #fff !important;
}
.hero h1 span {
  color: var(--oc-coral) !important;
}

/* Fix search overlay always hidden by default */
.search-overlay {
  display: none !important;
}
.search-overlay.active {
  display: flex !important;
}

/* Fix grid display */
.grid {
  display: grid !important;
}

/* Fix footer */
.site-footer {
  background-color: var(--oc-navy) !important;
}
.site-footer a {
  color: rgba(255,255,255,0.5);
}
.site-footer a:hover {
  color: #fff;
}

/* Ensure WP admin bar doesn't break sticky header */
.admin-bar .site-header {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

/* Mobile nav override */
.site-header.mobile-nav.active .primary-nav {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: calc(72px + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--oc-gray-vlight);
  padding: 16px;
  box-shadow: var(--oc-shadow-lg);
  z-index: 999;
}

.site-header.mobile-nav.active .primary-nav__list {
  flex-direction: column;
  width: 100%;
}

.site-header.mobile-nav.active .primary-nav .sub-menu {
  position: static;
  box-shadow: none;
  border: none;
  padding-left: 16px;
  display: block;
}


/* ============================================================
   HEADER NAV REFINEMENTS
   ============================================================ */
.primary-nav {
  flex: 0 0 auto;
  justify-content: center;
  min-width: 0;
}

.primary-nav__list {
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.primary-nav__list .menu-item--cta {
  margin-left: 6px;
}

.header-cta-link {
  background: var(--oc-coral) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding-inline: 16px !important;
  box-shadow: 0 10px 24px rgba(255, 82, 82, 0.16);
}

.header-cta-link:hover {
  background: #ff4343 !important;
  color: #fff !important;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.mobile-toggle {
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--oc-gray-vlight);
  border-radius: 10px;
  background: #fff;
  color: var(--oc-navy);
  font-size: 1rem;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(15,23,42,0.06);
  transition: border-color var(--oc-transition), box-shadow var(--oc-transition);
}

.mobile-toggle:hover {
  border-color: var(--oc-coral);
  box-shadow: 0 2px 12px rgba(15,23,42,0.1);
}

.mobile-toggle__icon {
  display: block;
  flex-shrink: 0;
}

.mobile-toggle span:not(.mobile-toggle__icon) {
  display: none;
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1400;
  pointer-events: none;
}

.mobile-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  opacity: 0;
  transition: opacity var(--oc-transition);
}

.mobile-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(90vw, 360px);
  height: 100%;
  background: #fff;
  box-shadow: -16px 0 40px rgba(15, 23, 42, 0.16);
  padding: calc(18px + env(safe-area-inset-top, 0px)) 20px 24px;
  transform: translateX(100%);
  transition: transform var(--oc-transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-drawer.active {
  pointer-events: auto;
}

.mobile-drawer.active .mobile-drawer__overlay {
  opacity: 1;
}

.mobile-drawer.active .mobile-drawer__panel {
  transform: translateX(0);
}

.mobile-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-drawer__title {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--oc-navy);
}

.mobile-drawer__close {
  border: none;
  background: var(--oc-bg-alt);
  color: var(--oc-navy);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-drawer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-drawer__list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--oc-navy);
  background: var(--oc-bg-alt);
  font-weight: 600;
}

.mobile-drawer__list .mobile-drawer__cta {
  background: var(--oc-coral);
  color: #fff;
  justify-content: center;
}

body.mobile-nav-open {
  overflow: hidden;
}


@media (min-width: 769px) {
  .site-header .container {
    grid-template-columns: max-content 1fr max-content;
  }

  .primary-nav {
    width: 100%;
  }

  .header-actions {
    min-width: 40px;
  }
}

@media (max-width: 1080px) {
  .site-header .container {
    gap: 12px;
  }

  .primary-nav a,
  .primary-nav button {
    padding-inline: 10px;
    font-size: 0.875rem;
  }
}

@media (max-width: 768px) {
  .primary-nav {
    display: none !important;
  }

  .header-actions .header-search-toggle,
  .header-actions .mobile-toggle {
    display: inline-flex !important;
  }

  .site-header .container {
    display: flex;
    height: 80px;
    overflow: visible;
  }

  .hero .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .hero .btn-group .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__stats {
    display: flex;
    flex-direction: row !important;
    flex-wrap: nowrap;
    gap: 12px;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 4px 2px 8px;
    margin: 0 -2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .hero__stats::-webkit-scrollbar {
    display: none;
  }

  .hero__stats > div {
    flex: 0 0 150px;
    min-height: 108px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 20px;
    padding: 18px 16px;
    background: rgba(255,255,255,0.02);
    text-align: left;
  }

  .hero__stat-value {
    display: block;
    margin-bottom: 8px;
  }

  .hero__stat-label {
    display: block;
    white-space: normal;
  }
}


/* ============================================================
   HEADER ALIGNMENT + MOBILE HORIZONTAL SECTIONS
   ============================================================ */
@media (min-width: 769px) {
  .site-header .container {
    grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
  }

  .primary-nav {
    justify-self: center;
    width: auto;
  }

  .header-actions {
    justify-self: end;
    min-width: max-content;
  }
}

@media (max-width: 768px) {
  .start-steps-grid,
  .advantages-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    padding: 4px 2px 12px;
    margin: 0 -2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .start-steps-grid::-webkit-scrollbar,
  .advantages-grid::-webkit-scrollbar {
    display: none;
  }

  .start-steps-grid > *,
  .advantages-grid > * {
    flex: 0 0 86%;
    max-width: 86%;
  }

  .start-steps-grid .step-card,
  .advantages-grid .advantage-card {
    height: 100%;
  }
}

@media (max-width: 480px) {
  .start-steps-grid > *,
  .advantages-grid > * {
    flex-basis: 88%;
    max-width: 88%;
  }

  .step-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}


/* ============================================================
   FINAL HEADER CENTERING + MOBILE HORIZONTAL CARDS FIX
   ============================================================ */
@media (min-width: 769px) {
  .site-header .container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    height: 72px;
    gap: 20px;
  }

  .site-logo {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    margin-right: 0;
  }

  .primary-nav {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: auto;
    max-width: none;
    justify-content: flex-start;
    z-index: 1;
    flex: 0 0 auto;
    margin-left: auto;
    min-width: 0;
  }

  .primary-nav__list {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 6px;
  }

  .header-actions {
    position: relative;
    z-index: 2;
    margin-left: 12px;
    flex: 0 0 auto;
    min-width: 40px;
  }
}

@media (max-width: 768px) {
  .start-steps-grid,
  .advantages-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 16px;
    padding: 4px 2px 12px;
    margin: 0 -2px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .start-steps-grid > *,
  .advantages-grid > * {
    flex: 0 0 84%;
    width: 84%;
    min-width: 84%;
    max-width: 84%;
    scroll-snap-align: start;
  }

  .step-card,
  .advantage-card {
    min-height: 100%;
  }
}


/* ============================================================
   MOBILE HEADER ACTIONS + CAROUSEL CONTROLS
   ============================================================ */
@media (max-width: 768px) {
  .site-header .container {
    display: flex !important;
    align-items: center;
    gap: 12px;
    min-height: 80px;
  }

  .site-logo {
    flex: 0 1 auto;
    min-width: 0;
  }

  .site-header .site-logo__text {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1rem;
  }

  .header-actions {
    margin-left: auto;
    justify-content: flex-end;
    gap: 12px;
    flex: 0 0 auto;
  }

  .header-actions .header-search-toggle {
    flex: 0 0 44px;
  }

  .mobile-toggle {
    display: inline-flex !important;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  }

  .mobile-toggle__icon {
    display: block;
  }

  .mobile-carousel {
    position: relative;
  }

  .mobile-carousel__controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 0 0 12px;
  }

  .mobile-carousel__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--oc-gray-light);
    border-radius: 999px;
    background: #fff;
    color: var(--oc-navy);
    font-size: 1.125rem;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  }

  .mobile-carousel__button:disabled {
    opacity: 0.4;
  }

  .mobile-carousel--no-controls .mobile-carousel__controls {
    display: none !important;
  }

  .start-steps-grid,
  .advantages-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 16px;
    padding: 4px 8% 12px;
    margin: 0;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 8%;
  }

  .start-steps-grid > *,
  .advantages-grid > * {
    flex: 0 0 84%;
    width: 84%;
    min-width: 84%;
    max-width: 84%;
    scroll-snap-align: center;
  }
}

@media (min-width: 769px) {
  .mobile-carousel__controls {
    display: none;
  }
}


/* ============================================================
   MOBILE BURGER + LOOP CAROUSEL TUNING
   ============================================================ */
@media (max-width: 768px) {
  .site-header .container {
    padding-right: max(10px, env(safe-area-inset-right));
  }

  .header-actions {
    margin-left: auto;
    margin-right: 0;
    padding-right: 0;
    gap: 10px;
  }

  .header-actions .header-search-toggle,
  .mobile-toggle {
    flex-shrink: 0;
  }

  .mobile-toggle {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .mobile-carousel {
    overflow: hidden;
  }

  .mobile-carousel__controls {
    justify-content: flex-end;
    margin-bottom: 14px;
  }

  .start-steps-grid + .mobile-carousel__controls {
    justify-content: flex-end;
  }

  .start-steps-grid,
  .advantages-grid {
    padding-inline: 10%;
    scroll-padding-inline: 10%;
  }

  .start-steps-grid > *,
  .advantages-grid > * {
    flex-basis: 80%;
    width: 80%;
    min-width: 80%;
    max-width: 80%;
    scroll-snap-align: center;
  }

  .advantage-card,
  .step-card {
    min-height: 100%;
  }

  .mobile-carousel[data-carousel] .mobile-carousel__controls {
    width: 100%;
    justify-content: flex-end;
  }

  .mobile-carousel--autoplay .mobile-carousel__controls {
    display: none !important;
  }
}


/* ============================================================
   DESKTOP SAFETY FOR ADVANTAGES CAROUSEL
   ============================================================ */
@media (min-width: 769px) {
  .advantages-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    overflow: visible;
    padding: 0;
    margin: 0;
  }

  .advantages-grid > [data-clone] {
    display: none !important;
  }
}

/* ============================================================
   HERO GALAXY EFFECT — Stars, Ring & Floating Icons
   ============================================================ */

.hero-galaxy {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  overflow: visible;  /* stars must bleed out */
}

/* Star canvas — much larger than mascot, centered */
.hero-galaxy__stars {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 260%;
  height: 260%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

/* Mascot wrapper — sits on top */
.hero-galaxy__mascot {
  position: relative;
  z-index: 3;
}

/* ─── Floating Icons ─── */
.hero-galaxy__icons {
  position: absolute;
  inset: -12%;
  z-index: 2;
  pointer-events: none;
}

.hero-galaxy__icon {
  position: absolute;
  color: rgba(255, 255, 255, 0.18);
  width: 38px;
  height: 38px;
  will-change: transform, filter;
  transition: color 1.5s ease, filter 1.5s ease;
}

.hero-galaxy__icon svg {
  width: 100%;
  height: 100%;
}

/* 7 icons — asymmetric positions around mascot, all same size */
.hero-galaxy__icon--laptop   { top: 0%;  left: 5%;  animation: gFloatA 11s ease-in-out infinite; }
.hero-galaxy__icon--phone    { top: -5%; right: 30%; animation: gFloatB 13s ease-in-out infinite -2.5s; }
.hero-galaxy__icon--table    { bottom: 20%; right: -2%; animation: gFloatC 10s ease-in-out infinite -5s; }
.hero-galaxy__icon--code     { bottom: 0%; left: 18%; animation: gFloatD 12s ease-in-out infinite -3.5s; }
.hero-galaxy__icon--terminal { top: 28%;  left: -6%; animation: gFloatE 9.5s ease-in-out infinite -7s; }
.hero-galaxy__icon--spark    { top: 55%;  left: 0%;  animation: gFloatF 10.5s ease-in-out infinite -4s; }
.hero-galaxy__icon--api      { top: 8%;   right: 0%; animation: gFloatG 14s ease-in-out infinite -1s; }

/* Each icon has a unique gentle float path */
@keyframes gFloatA {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  20%  { transform: translate(5px, -10px) rotate(3deg); }
  55%  { transform: translate(-6px, -5px) rotate(-2deg); }
  80%  { transform: translate(3px, -12px) rotate(1deg); }
}
@keyframes gFloatB {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  30%  { transform: translate(-5px, -8px) rotate(-4deg); }
  60%  { transform: translate(4px, -13px) rotate(2deg); }
  85%  { transform: translate(-2px, -4px) rotate(-1deg); }
}
@keyframes gFloatC {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(7px, -6px) rotate(2deg); }
  50%  { transform: translate(-3px, -11px) rotate(-3deg); }
  75%  { transform: translate(5px, -3px) rotate(1deg); }
}
@keyframes gFloatD {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  35%  { transform: translate(-4px, -9px) rotate(-2deg); }
  65%  { transform: translate(6px, -7px) rotate(4deg); }
  90%  { transform: translate(-2px, -12px) rotate(-2deg); }
}
@keyframes gFloatE {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  22%  { transform: translate(3px, -7px) rotate(5deg); }
  48%  { transform: translate(-5px, -12px) rotate(-2deg); }
  78%  { transform: translate(2px, -4px) rotate(2deg); }
}
@keyframes gFloatF {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  28%  { transform: translate(6px, -5px) rotate(-3deg); }
  56%  { transform: translate(-4px, -10px) rotate(3deg); }
  82%  { transform: translate(2px, -7px) rotate(-1deg); }
}
@keyframes gFloatG {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  18%  { transform: translate(-7px, -5px) rotate(-3deg); }
  42%  { transform: translate(3px, -10px) rotate(2deg); }
  72%  { transform: translate(-4px, -8px) rotate(-4deg); }
}

/* ─── Neon glow colors ─── */
.hero-galaxy__icon.neon-glow[data-neon="cyan"]    { color: #00f0ff; filter: drop-shadow(0 0 8px rgba(0,240,255,0.5)); }
.hero-galaxy__icon.neon-glow[data-neon="magenta"] { color: #ff3cac; filter: drop-shadow(0 0 8px rgba(255,60,172,0.5)); }
.hero-galaxy__icon.neon-glow[data-neon="green"]   { color: #39ff8e; filter: drop-shadow(0 0 8px rgba(57,255,142,0.5)); }
.hero-galaxy__icon.neon-glow[data-neon="blue"]    { color: #4d8dff; filter: drop-shadow(0 0 8px rgba(77,141,255,0.5)); }
.hero-galaxy__icon.neon-glow[data-neon="yellow"]  { color: #ffe14d; filter: drop-shadow(0 0 8px rgba(255,225,77,0.5)); }
.hero-galaxy__icon.neon-glow[data-neon="purple"]  { color: #b44dff; filter: drop-shadow(0 0 8px rgba(180,77,255,0.5)); }
.hero-galaxy__icon.neon-glow[data-neon="orange"]  { color: #ff8c42; filter: drop-shadow(0 0 8px rgba(255,140,66,0.5)); }

/* ─── Mobile: all 7 icons, uniform 26px ─── */
@media (max-width: 768px) {
  .hero-galaxy {
    max-width: 200px;
  }

  .hero-galaxy__icons {
    inset: -18%;
  }

  .hero-galaxy__icon {
    width: 26px;
    height: 26px;
  }

  .hero-galaxy__icon--laptop   { top: 2%;   left: -2%; }
  .hero-galaxy__icon--phone    { top: -8%;  right: 20%; }
  .hero-galaxy__icon--table    { bottom: 15%; right: -6%; }
  .hero-galaxy__icon--code     { bottom: -2%; left: 10%; }
  .hero-galaxy__icon--terminal { top: 30%;  left: -10%; }
  .hero-galaxy__icon--spark    { top: 55%;  left: -4%; }
  .hero-galaxy__icon--api      { top: 8%;   right: -4%; }
}

/* ─── Respect reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  .hero-galaxy__stars {
    display: none;
  }
  .hero-galaxy__icon {
    animation: none !important;
  }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
