/* =====================================================
   Corsell — Docs Page
   ===================================================== */

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

.cdocs-wrap {
  font-family: 'Jost', sans-serif;
  color: #2C2416;
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 40px 100px;
  box-sizing: border-box;
}

/* Header */
.cdocs-hero {
  border-bottom: 2px solid #C8A96E;
  padding-bottom: 32px;
  margin-bottom: 56px;
}
.cdocs-hero-label {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #C8A96E;
  margin: 0 0 10px;
}
.cdocs-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: 0.06em;
  color: #2C2416;
  margin: 0 0 12px;
  line-height: 1;
}
.cdocs-hero p {
  font-size: 14px;
  font-weight: 300;
  color: #6B5B45;
  margin: 0;
  max-width: 560px;
  line-height: 1.7;
}

/* Secoes */
.cdocs-section {
  margin-bottom: 56px;
}
.cdocs-section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.1em;
  color: #2C2416;
  margin: 0 0 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(200,169,110,0.3);
}

/* Shortcode block */
.cdocs-shortcode {
  background: #F5F0E8;
  border: 1px solid rgba(200,169,110,0.4);
  border-left: 4px solid #C8A96E;
  border-radius: 8px;
  padding: 14px 18px;
  margin: 12px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #5A3E1B;
  word-break: break-all;
  position: relative;
}
.cdocs-shortcode span.attr { color: #B06000; }
.cdocs-shortcode span.val  { color: #1A6B3C; }

/* Steps */
.cdocs-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}
.cdocs-steps li {
  counter-increment: step;
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #4A3828;
}
.cdocs-steps li::before {
  content: counter(step);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  color: #C8A96E;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: rgba(200,169,110,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* Badge de campo */
.cdocs-field {
  display: inline-block;
  background: rgba(200,169,110,0.15);
  border: 1px solid rgba(200,169,110,0.4);
  border-radius: 4px;
  padding: 1px 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #5A3E1B;
  white-space: nowrap;
}

/* Foto specs */
.cdocs-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 16px;
}
.cdocs-photo-card {
  background: #F5F0E8;
  border: 1px solid rgba(200,169,110,0.3);
  border-radius: 12px;
  padding: 20px;
}
.cdocs-photo-card h4 {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #C8A96E;
  margin: 0 0 10px;
}
.cdocs-photo-preview {
  width: 100%;
  border-radius: 8px;
  background: #EDE8DC;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  overflow: hidden;
  position: relative;
}
.cdocs-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cdocs-photo-meta {
  font-size: 12px;
  color: #6B5B45;
  line-height: 1.8;
}
.cdocs-photo-meta strong {
  color: #2C2416;
  font-weight: 600;
}

/* Design system — cores */
.cdocs-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}
.cdocs-color-chip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 120px;
}
.cdocs-color-swatch {
  height: 56px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.cdocs-color-name {
  font-size: 11px;
  font-weight: 600;
  color: #2C2416;
  letter-spacing: 0.05em;
}
.cdocs-color-hex {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #8B7355;
}

/* Typography */
.cdocs-type-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(200,169,110,0.15);
}
.cdocs-type-sample {
  flex: 1;
  min-width: 0;
}
.cdocs-type-meta {
  font-size: 11px;
  color: #8B7355;
  white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
  text-align: right;
  line-height: 1.6;
}

/* Sanfona (accordion) */
.cdocs-accordion {
  border: 1px solid rgba(200,169,110,0.3);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 16px;
}
.cdocs-acc-item {
  border-bottom: 1px solid rgba(200,169,110,0.2);
}
.cdocs-acc-item:last-child { border-bottom: none; }

.cdocs-acc-trigger {
  width: 100%;
  background: #F5F0E8;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}
.cdocs-acc-trigger:hover { background: #EDE8DC; }

.cdocs-acc-title {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #2C2416;
  letter-spacing: 0.05em;
}
.cdocs-acc-file {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #8B7355;
  margin-top: 2px;
}
.cdocs-acc-arrow {
  font-size: 10px;
  color: #C8A96E;
  transition: transform 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
  flex-shrink: 0;
}
.cdocs-acc-item.is-open .cdocs-acc-arrow {
  transform: rotate(180deg);
}

.cdocs-acc-body {
  display: none;
  padding: 20px 20px 24px;
  background: #fff;
}
.cdocs-acc-item.is-open .cdocs-acc-body {
  display: block;
}

.cdocs-acc-body p {
  font-size: 13px;
  color: #4A3828;
  line-height: 1.7;
  margin: 0 0 12px;
}
.cdocs-acc-body ul {
  margin: 8px 0 0;
  padding-left: 20px;
}
.cdocs-acc-body ul li {
  font-size: 13px;
  color: #4A3828;
  line-height: 1.7;
  margin-bottom: 4px;
}

/* Info box */
.cdocs-info {
  background: rgba(200,169,110,0.1);
  border: 1px solid rgba(200,169,110,0.35);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 13px;
  color: #5A3E1B;
  line-height: 1.65;
  margin: 16px 0;
}
.cdocs-info strong { color: #2C2416; }

/* Warning box */
.cdocs-warn {
  background: rgba(180,80,20,0.07);
  border: 1px solid rgba(180,80,20,0.25);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 13px;
  color: #7A3010;
  line-height: 1.65;
  margin: 16px 0;
}

@media (max-width: 768px) {
  .cdocs-wrap { padding: 40px 20px 80px; }
  .cdocs-photo-grid { grid-template-columns: 1fr; }
  .cdocs-colors { gap: 12px; }
  .cdocs-color-chip { width: 90px; }
}
