/* ==========================================================================
   RGB to CMYK Converter - Modern Design System & Innovation Styles
   ========================================================================== */

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --bg-page: #f8fafc;
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --accent-rgb: #3b82f6;
  --accent-cmyk: #06b6d4;
  --accent-red: #ef4444;
  --accent-green: #10b981;
  --accent-blue: #3b82f6;
  --accent-cyan: #00a3e0;
  --accent-magenta: #ec008c;
  --accent-yellow: #eab308;
  --accent-black: #1e293b;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 20px 40px -8px rgba(15, 23, 42, 0.16);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Header & Top Headline
   ========================================================================== */
.header-section {
  background: #ffffff;
  border-bottom: 1px solid #eef2f6;
}

.top-headline {
  text-align: center;
  max-width: 820px;
  margin: 35px auto 20px;
  padding: 0 15px;
}

.top-headline h1 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.top-headline p {
  font-size: 16px;
  line-height: 1.65;
  color: #475569;
  margin: 0 auto;
}

.adsbox {
  margin: 24px auto;
  text-align: center;
  min-height: 60px;
}

/* ==========================================================================
   Converter Main Container
   ========================================================================== */
.converter {
  margin: 25px auto 50px;
  max-width: 1040px;
  position: relative;
}

#clean.tab-content {
  background: #0f172a;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.08);
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

/* Ambient glow matching current color behind the card */
.converter::before {
  content: "";
  position: absolute;
  top: 5%;
  left: 5%;
  right: 5%;
  bottom: 5%;
  background: var(--active-color-glow, rgba(239, 68, 68, 0.25));
  filter: blur(60px);
  z-index: -1;
  opacity: 0.6;
  border-radius: var(--radius-xl);
  transition: background 0.4s ease, opacity 0.4s ease;
  pointer-events: none;
}

.tab-content-inside {
  border: none;
  padding: 32px 36px;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  position: relative;
  z-index: 2;
}

/* Header inside converter */
.clean > h1 {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 20px 0;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.converter-badge-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.converter-mode-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Light background state when color is very bright */
#clean.dark {
  background: #f8fafc;
}

#clean.dark .tab-content-inside {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.04) 100%);
}

#clean.dark .clean > h1 {
  color: #0f172a;
}

#clean.dark .converter-mode-badge {
  background: rgba(15, 23, 42, 0.08);
  color: #334155;
  border-color: rgba(15, 23, 42, 0.12);
}

/* ==========================================================================
   Inputs Wrapper & Panels
   ========================================================================== */
.inputs-wrapper {
  max-width: 100%;
  min-width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.converter-deck {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  width: 100%;
}

@media (max-width: 900px) {
  .converter-deck {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.channel-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  backdrop-filter: blur(16px);
  transition: var(--transition);
  position: relative;
}

.channel-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
}

#clean.dark .channel-card {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

#clean.dark .channel-card:hover {
  border-color: rgba(15, 23, 42, 0.2);
}

.channel-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.channel-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

#clean.dark .channel-title {
  color: #0f172a;
}

.channel-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
}

#clean.dark .channel-pill {
  background: rgba(15, 23, 42, 0.08);
  color: #475569;
}

/* Color input rows */
.color-inputs {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
  justify-content: flex-start;
}

.channel-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.channel-row label {
  font-size: 14px;
  font-weight: 700;
  width: 26px;
  margin: 0;
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  border-radius: 6px;
}

#clean.dark .channel-row label {
  color: #0f172a;
}

/* Specific label badges */
.label-r { background: rgba(239, 68, 68, 0.2); color: #fca5a5 !important; }
.label-g { background: rgba(34, 197, 94, 0.2); color: #86efac !important; }
.label-b { background: rgba(59, 130, 246, 0.2); color: #93c5fd !important; }

.label-c { background: rgba(6, 182, 212, 0.2); color: #67e8f9 !important; }
.label-m { background: rgba(236, 72, 153, 0.2); color: #f472b6 !important; }
.label-y { background: rgba(234, 179, 8, 0.2); color: #fde047 !important; }
.label-k { background: rgba(15, 23, 42, 0.4); color: #cbd5e1 !important; border: 1px solid rgba(255,255,255,0.1); }

#clean.dark .label-r { background: #fee2e2; color: #dc2626 !important; }
#clean.dark .label-g { background: #dcfce7; color: #16a34a !important; }
#clean.dark .label-b { background: #dbeafe; color: #2563eb !important; }
#clean.dark .label-c { background: #cffafe; color: #0891b2 !important; }
#clean.dark .label-m { background: #fce7f3; color: #db2777 !important; }
#clean.dark .label-y { background: #fef9c3; color: #ca8a04 !important; }
#clean.dark .label-k { background: #e2e8f0; color: #0f172a !important; }

/* Numeric inputs */
.color-input {
  width: 90px;
  padding: 10px 12px !important;
  border-radius: var(--radius-sm) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  background: rgba(15, 23, 42, 0.4) !important;
  color: #ffffff !important;
  font-family: var(--font-mono);
  font-size: 15px !important;
  font-weight: 600;
  text-align: right;
  transition: var(--transition);
  outline: none !important;
}

.color-input:focus {
  border-color: #3b82f6 !important;
  background: rgba(15, 23, 42, 0.7) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3) !important;
}

#clean.dark .color-input {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

#clean.dark .color-input:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2) !important;
}

/* Range sliders */
.channel-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 9999px;
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: background 0.2s ease;
  margin: 0;
  padding: 0 !important;
  border: none !important;
}

#clean.dark .channel-slider {
  background: rgba(15, 23, 42, 0.12);
}

.channel-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  border: 2px solid #0f172a;
  transition: transform 0.15s ease;
}

.channel-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.channel-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  border: 2px solid #0f172a;
}

/* Channel slider tracks with authentic color gradients */
.slider-r { background: linear-gradient(90deg, #1e293b 0%, #ef4444 100%); }
.slider-g { background: linear-gradient(90deg, #1e293b 0%, #22c55e 100%); }
.slider-b { background: linear-gradient(90deg, #1e293b 0%, #3b82f6 100%); }

.slider-c { background: linear-gradient(90deg, #f1f5f9 0%, #00a3e0 100%); }
.slider-m { background: linear-gradient(90deg, #f1f5f9 0%, #ec008c 100%); }
.slider-y { background: linear-gradient(90deg, #f1f5f9 0%, #ffec00 100%); }
.slider-k { background: linear-gradient(90deg, #f1f5f9 0%, #000000 100%); }

/* Percentage badge next to CMYK inputs */
.cmyk-pct {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  width: 52px;
  text-align: right;
  flex-shrink: 0;
}

#clean.dark .cmyk-pct {
  color: #64748b;
}

/* ==========================================================================
   Swap Button Center Stage
   ========================================================================== */
.swap-action-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.swap-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, border-color 0.2s ease;
  backdrop-filter: blur(8px);
  color: #ffffff;
}

.swap-btn:hover {
  transform: rotate(180deg) scale(1.1);
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.swap-btn svg {
  fill: currentColor;
  width: 24px;
  height: 24px;
}

#clean.dark .swap-btn {
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.15);
  color: #0f172a;
}

#clean.dark .swap-btn:hover {
  background: rgba(15, 23, 42, 0.15);
}

.swap-tooltip {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
}

#clean.dark .swap-tooltip {
  color: #64748b;
}

/* ==========================================================================
   Innovative Live Preview & Analysis Bar
   ========================================================================== */
.preview-analysis-bar {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  backdrop-filter: blur(12px);
  margin-top: 10px;
}

@media (max-width: 900px) {
  .preview-analysis-bar {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

#clean.dark .preview-analysis-bar {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

/* Dual Color Swatches: RGB Screen vs CMYK Print */
.swatch-split-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.swatch-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.swatch-visual-wrap {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 4px 14px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.swatch-visual-wrap:hover {
  transform: scale(1.05);
}

.swatch-visual {
  width: 100%;
  height: 100%;
  transition: background-color 0.15s ease;
}

.swatch-print-sim {
  position: relative;
}

/* Subtle paper texture overlay on print simulation */
.swatch-print-sim::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 10%, transparent 20%),
              radial-gradient(circle, rgba(0,0,0,0.06) 10%, transparent 20%);
  background-size: 4px 4px;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.swatch-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #cbd5e1;
}

#clean.dark .swatch-label {
  color: #475569;
}

/* Color Insights & Coverage */
.color-insights {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.insight-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

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

.insight-label {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}

#clean.dark .insight-label {
  color: #64748b;
}

.insight-val {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

#clean.dark .insight-val {
  color: #0f172a;
}

/* Gamut Badge */
.gamut-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: var(--transition);
}

.gamut-badge.safe {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.gamut-badge.clip {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

#clean.dark .gamut-badge.safe {
  background: #dcfce7;
  color: #15803d;
  border-color: #bbf7d0;
}

#clean.dark .gamut-badge.clip {
  background: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
}

/* Total Ink Coverage (TIC) Bar */
.tic-meter-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.tic-meter-bg {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

#clean.dark .tic-meter-bg {
  background: rgba(15, 23, 42, 0.1);
}

.tic-meter-fill {
  height: 100%;
  width: 0%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #10b981 0%, #3b82f6 60%, #eab308 85%, #ef4444 100%);
  transition: width 0.25s ease;
}

/* Copy Actions & Hex Input */
.quick-action-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hex-picker-field {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  gap: 6px;
}

#clean.dark .hex-picker-field {
  background: #ffffff;
  border-color: #cbd5e1;
}

.hex-input {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background: transparent;
  border: none !important;
  padding: 4px !important;
  width: 78px;
  outline: none !important;
  text-transform: uppercase;
}

#clean.dark .hex-input {
  color: #0f172a;
}

.native-color-picker {
  -webkit-appearance: none;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  background: transparent;
  padding: 0 !important;
}

.native-color-picker::-webkit-color-swatch-wrapper {
  padding: 0;
}

.native-color-picker::-webkit-color-swatch {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.btn-copy-format {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-copy-format:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: translateY(-1px);
}

#clean.dark .btn-copy-format {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.12);
  color: #334155;
}

#clean.dark .btn-copy-format:hover {
  background: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

/* ==========================================================================
   Quick Color Presets Palette
   ========================================================================== */
.preset-palette-wrap {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

#clean.dark .preset-palette-wrap {
  border-top-color: rgba(15, 23, 42, 0.1);
}

.preset-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

#clean.dark .preset-title {
  color: #64748b;
}

.preset-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.preset-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  color: #e2e8f0;
  transition: var(--transition);
}

.preset-chip:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

#clean.dark .preset-chip {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #334155;
}

#clean.dark .preset-chip:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.preset-chip-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  display: inline-block;
}

/* Toast message for copy */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast-notice.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Content Sections, How-to, Tables, FAQs Modernization
   ========================================================================== */
.features {
  padding: 40px 0 60px;
}

.how-to-convert {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
}

.how-to-convert h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  text-align: center;
  margin-top: 0;
  margin-bottom: 28px;
}

.how-to-convert .container-box {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.how-to-convert .col-md-4 {
  float: none;
  flex: 1 1 280px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
  text-align: left;
}

.how-to-convert .col-md-4:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.rc-ic {
  width: 44px;
  height: 44px;
  display: inline-block;
  margin: 0 0 12px 0;
  stroke: #ef4444 !important;
  fill: none !important;
  background: #fee2e2;
  padding: 8px;
  border-radius: 10px;
}

.rc-ic circle,
.rc-ic path {
  fill: none !important;
  stroke: #ef4444 !important;
}

.how-to-convert h3 {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 6px;
  margin-bottom: 8px;
}

/* Content cards & headings */
.section-head h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin-bottom: 12px;
}

.section-head h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 24px;
  margin-bottom: 10px;
}

.section-head p {
  font-size: 15px;
  line-height: 1.7;
  color: #475569;
  text-align: left;
}

.section-head h2,
.section-head h3 {
  text-align: left;
}

.section-head ul {
  padding-left: 24px;
  margin: 16px 0;
  text-align: left;
  list-style-type: disc;
}

.section-head li {
  font-size: 15px;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 8px;
  text-align: left;
}

/* Tables */
.rc-tbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 20px 0;
  font-size: 14px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.rc-tbl th {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  text-align: left;
}

.rc-tbl th:last-child {
  border-right: none;
}

.rc-tbl td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  border-right: 1px solid #f1f5f9;
  color: #334155;
}

.rc-tbl td:last-child {
  border-right: none;
}

.rc-tbl tr:last-child td {
  border-bottom: none;
}

.rc-tbl tr:hover td {
  background: #f8fafc;
}

.rc-sw {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  vertical-align: middle;
  margin-right: 8px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Code block */
.rc-code {
  background: #0f172a;
  color: #f8fafc;
  border-left: 4px solid #ef4444;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.9;
  overflow-x: auto;
  margin: 16px 0;
}

/* FAQ Section */
.rc-faq {
  max-width: 860px;
  margin: 20px auto 0 auto;
}

.rc-faq h2 {
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.rc-faq details {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  margin: 12px 0;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
  overflow: hidden;
}

.rc-faq details:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.rc-faq details[open] {
  border-color: #3b82f6;
  box-shadow: 0 8px 24px -4px rgba(59, 130, 246, 0.12);
}

.rc-faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  color: #0f172a;
  outline: none;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  list-style: none;
  transition: color 0.2s ease;
}

.rc-faq summary::-webkit-details-marker {
  display: none;
}

.rc-faq summary::after {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-right: 2.5px solid #64748b;
  border-bottom: 2.5px solid #64748b;
  transform: rotate(45deg);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  flex-shrink: 0;
  margin-left: 12px;
}

.rc-faq details[open] summary {
  color: #1d4ed8;
}

.rc-faq details[open] summary::after {
  transform: rotate(-135deg);
  border-color: #1d4ed8;
}

.rc-faq summary:hover {
  color: #2563eb;
}

.rc-faq summary:hover::after {
  border-color: #2563eb;
}

.rc-faq p {
  padding: 0 22px 20px 22px;
  margin: 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.75;
}

/* Callout below FAQ */
.rc-faq > p:last-child {
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px 24px;
  text-align: center;
  margin-top: 28px;
  font-weight: 500;
  color: #475569;
}

.rc-faq > p:last-child a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.rc-faq > p:last-child a:hover {
  text-decoration: underline;
}

/* Figures & Responsive Images */
.rc-fig {
  text-align: center;
  margin: 24px auto 36px auto;
  max-width: 600px;
}

.rc-fig svg {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.1);
  border: 1px solid #e2e8f0;
}

.respimage img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  max-width: 100%;
  height: auto;
}

/* Social share section */
.section-container {
  padding: 40px 0 20px;
  background: transparent;
  border: none;
}

.share-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 36px 24px;
  margin: 0 auto;
  text-align: center;
  max-width: 680px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

.share-card h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0 0 8px 0;
  text-align: center;
}

.share-card p {
  font-size: 15px;
  color: #64748b;
  margin: 0 0 24px 0;
  text-align: center;
}

.social-media-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.social-media-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  min-width: 110px;
  padding: 0 22px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

.social-media-buttons img,
.social-media-buttons svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.fbbt {
  background: #1877f2;
  color: #ffffff !important;
}

.fbbt:hover {
  background: #0d65d9;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(24, 119, 242, 0.3);
}

.twbt {
  background: #0f172a;
  color: #ffffff !important;
}

.twbt:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.3);
}

.pnbt {
  background: #e60023;
  color: #ffffff !important;
}

.pnbt:hover {
  background: #ad081b;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(230, 0, 35, 0.3);
}

.pinterest-bottom-share {
  display: inline-flex;
  align-items: center;
}

.footer {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 36px 0;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

.footer a {
  color: #475569;
  text-decoration: none;
}

.footer a:hover {
  color: #0f172a;
  text-decoration: underline;
}
