/* ============================================
   WooCommerce Manual - Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* === CSS Variables === */
:root {
  --color-bg: #f8f9fc;
  --color-surface: #ffffff;
  --color-surface-alt: #f1f3f9;
  --color-border: #e2e6ef;
  --color-border-light: #eef0f6;

  --color-text: #1a1d2e;
  --color-text-secondary: #5a6078;
  --color-text-muted: #8b91a8;

  --color-primary: #6c5ce7;
  --color-primary-light: #a29bfe;
  --color-primary-bg: #f0eeff;
  --color-primary-dark: #5a4bd1;

  --color-accent: #00b894;
  --color-accent-light: #55efc4;
  --color-accent-bg: #e8faf5;

  --color-warning: #fdcb6e;
  --color-warning-bg: #fef9e7;
  --color-warning-text: #856404;

  --color-danger: #e17055;
  --color-danger-bg: #fbeae5;
  --color-danger-text: #922b21;

  --color-info: #74b9ff;
  --color-info-bg: #eaf4ff;
  --color-info-text: #1a5276;

  --color-sidebar: #1e1e2e;
  --color-sidebar-text: #ccd0dc;
  --color-sidebar-active: #6c5ce7;
  --color-sidebar-hover: #2a2a3e;

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --shadow-xl: 0 12px 40px rgba(0,0,0,0.12);

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --sidebar-width: 300px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === Sidebar Navigation === */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--color-sidebar);
  overflow-y: auto;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition);
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
}

.sidebar-header {
  padding: 28px 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.sidebar-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.sidebar-logo h1 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.sidebar-logo p {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Search */
.sidebar-search {
  padding: 16px 20px;
  flex-shrink: 0;
}

.sidebar-search input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.82rem;
  outline: none;
  transition: var(--transition);
}

.sidebar-search input::placeholder {
  color: var(--color-text-muted);
}

.sidebar-search input:focus {
  border-color: var(--color-primary);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.sidebar-search-wrapper {
  position: relative;
}

.sidebar-search-wrapper::before {
  content: '🔍';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  opacity: 0.5;
}

/* Navigation */
.sidebar-nav {
  padding: 8px 12px 30px;
  flex: 1;
  overflow-y: auto;
}

.nav-section-title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  padding: 16px 12px 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: var(--color-sidebar-text);
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 400;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  line-height: 1.4;
}

.nav-link:hover {
  background: var(--color-sidebar-hover);
  color: #fff;
}

.nav-link.active {
  background: var(--color-primary);
  color: #fff;
  font-weight: 500;
}

.nav-link .nav-icon {
  font-size: 1rem;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.nav-link .nav-number {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-text-muted);
  min-width: 20px;
  flex-shrink: 0;
}

.nav-link.active .nav-number {
  color: rgba(255,255,255,0.7);
}

/* === Main Content === */
.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 249, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-light);
  padding: 14px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-breadcrumb {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.topbar-breadcrumb span {
  color: var(--color-text);
  font-weight: 500;
}

.topbar-actions {
  display: flex;
  gap: 10px;
}

.btn-topbar {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-topbar:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

/* Content area */
.content-area {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 48px 100px;
}

/* === Hero Section === */
.hero {
  text-align: center;
  padding: 60px 20px 50px;
  margin-bottom: 40px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--color-primary-bg);
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 50px;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* === Typography === */
.section {
  margin-bottom: 56px;
  scroll-margin-top: 80px;
}

.section-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--color-border-light);
}

.section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin-top: 36px;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.section h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  margin-top: 28px;
  margin-bottom: 10px;
}

.section p {
  margin-bottom: 16px;
  color: var(--color-text-secondary);
  line-height: 1.75;
}

.section ul, .section ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.section li {
  margin-bottom: 8px;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

.section li strong {
  color: var(--color-text);
}

/* === Cards === */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.card-icon.purple { background: var(--color-primary-bg); }
.card-icon.green { background: var(--color-accent-bg); }
.card-icon.blue { background: var(--color-info-bg); }
.card-icon.orange { background: var(--color-warning-bg); }
.card-icon.red { background: var(--color-danger-bg); }

.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
}

/* === Alert Boxes === */
.alert {
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 20px;
  display: flex;
  gap: 14px;
  line-height: 1.65;
}

.alert-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.alert-content {
  flex: 1;
}

.alert-content strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

.alert-content p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.alert-info {
  background: var(--color-info-bg);
  border-left: 4px solid var(--color-info);
  color: var(--color-info-text);
}

.alert-success {
  background: var(--color-accent-bg);
  border-left: 4px solid var(--color-accent);
  color: #1a6e50;
}

.alert-warning {
  background: var(--color-warning-bg);
  border-left: 4px solid var(--color-warning);
  color: var(--color-warning-text);
}

.alert-danger {
  background: var(--color-danger-bg);
  border-left: 4px solid var(--color-danger);
  color: var(--color-danger-text);
}

.alert-tip {
  background: var(--color-primary-bg);
  border-left: 4px solid var(--color-primary);
  color: #3b2e8a;
}

/* === Image Placeholders === */
.img-placeholder {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border: 2px dashed var(--color-primary-light);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  margin: 24px 0;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(108, 92, 231, 0.02) 20px,
    rgba(108, 92, 231, 0.02) 40px
  );
}

.img-placeholder-icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
  position: relative;
}

.img-placeholder-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
  position: relative;
}

.img-placeholder-desc {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  max-width: 500px;
  margin: 0 auto 14px;
  line-height: 1.6;
  position: relative;
}

.img-placeholder-file {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(108, 92, 231, 0.1);
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  position: relative;
}

/* Actual image (when placed) */
.img-placeholder img,
.main-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border-light);
  display: block;
  margin: 0 auto;
}

.img-wrapper {
  margin: 32px 0;
  padding: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.img-caption {
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  font-style: italic;
}

.img-placeholder.has-image {
  border: none;
  padding: 0;
  background: none;
}

.img-placeholder.has-image::before {
  display: none;
}

/* === Field Explanation Blocks === */
.field-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.field-block-header {
  padding: 20px 24px;
  background: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition);
}

.field-block-header:hover {
  background: #eaecf4;
}

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

.field-block-title h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.field-badge {
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.field-badge.required {
  background: var(--color-danger-bg);
  color: var(--color-danger);
}

.field-badge.recommended {
  background: var(--color-primary-bg);
  color: var(--color-primary);
}

.field-badge.optional {
  background: var(--color-surface-alt);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.field-block-toggle {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  transition: transform var(--transition);
}

.field-block.open .field-block-toggle {
  transform: rotate(180deg);
}

.field-block-body {
  padding: 24px;
  display: none;
}

.field-block.open .field-block-body {
  display: block;
}

.field-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border-light);
}

.field-meta-item {
  font-size: 0.82rem;
}

.field-meta-label {
  color: var(--color-text-muted);
  font-weight: 500;
  display: block;
  margin-bottom: 2px;
}

.field-meta-value {
  color: var(--color-text);
  font-weight: 500;
}

/* === Steps === */
.step {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  position: relative;
}

.step::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: -16px;
  width: 2px;
  background: var(--color-border-light);
}

.step:last-child::before {
  display: none;
}

.step-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step-content {
  flex: 1;
  padding-top: 6px;
}

.step-content h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  margin-top: 0;
  color: var(--color-text);
}

.step-content p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* === Checklist === */
.checklist {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
}

.checklist-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

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

.checklist-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 1px;
  cursor: pointer;
}

.checklist-item.checked {
  text-decoration: line-through;
  opacity: 0.6;
}

/* === Example Block === */
.example-block {
  background: linear-gradient(135deg, #fafafa, #f5f3ff);
  border: 1px solid var(--color-primary-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 24px 0;
}

.example-block-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 18px;
}

.example-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(108, 92, 231, 0.1);
}

.example-field:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.example-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.example-value code {
  background: rgba(108, 92, 231, 0.1);
  color: var(--color-primary-dark);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

/* === Table === */
.table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

thead {
  background: var(--color-surface-alt);
}

th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 2px solid var(--color-border);
  white-space: nowrap;
}

td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text-secondary);
}

tr:hover {
  background: var(--color-surface-alt);
}

/* === Code inline === */
code {
  background: var(--color-surface-alt);
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--color-primary-dark);
}

/* === Path indicator === */
.path-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  margin: 12px 0;
  box-shadow: var(--shadow-sm);
}

.path-indicator .arrow {
  color: var(--color-primary);
  font-weight: 700;
}

/* === Comparison Grid === */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}

.comparison-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--color-border-light);
}

.comparison-card h4 {
  margin-top: 0;
  margin-bottom: 12px;
}

.do-card {
  border-left: 4px solid var(--color-accent);
}

.dont-card {
  border-left: 4px solid var(--color-danger);
}

.do-card h4::before { content: '✅ '; }
.dont-card h4::before { content: '❌ '; }

/* === Progress indicator for sections === */
.section-progress {
  position: fixed;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  z-index: 50;
}

.progress-dot {
  width: 8px;
  height: 8px;
  background: var(--color-border);
  border-radius: 50%;
  margin: 6px 0;
  transition: var(--transition);
  cursor: pointer;
}

.progress-dot.active {
  background: var(--color-primary);
  transform: scale(1.3);
}

/* === Back to top === */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 200;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

/* === Mobile Menu Toggle === */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 1100;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.3rem;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 900;
}

/* === Print styles === */
@media print {
  .sidebar, .topbar, .back-to-top, .mobile-menu-toggle, .section-progress {
    display: none !important;
  }
  .main-content {
    margin-left: 0 !important;
  }
  .content-area {
    max-width: 100%;
    padding: 20px;
  }
  .field-block-body {
    display: block !important;
  }
  .img-placeholder {
    break-inside: avoid;
  }
}

/* === Responsive === */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .mobile-overlay.active {
    display: block;
  }
  .topbar {
    padding: 14px 24px 14px 70px;
  }
  .content-area {
    padding: 30px 24px 80px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .section-progress {
    display: none;
  }
}

@media (max-width: 600px) {
  .content-area {
    padding: 20px 16px 80px;
  }
  .hero {
    padding: 40px 10px 30px;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
  .hero-meta {
    flex-direction: column;
    gap: 8px;
  }
  .card {
    padding: 20px;
  }
  .field-block-body {
    padding: 18px;
  }
  .example-block {
    padding: 20px;
  }
  .checklist {
    padding: 20px;
  }
}
