/**
 * Ceramispot Blog Article Styles
 * Extracted from single-post.php inline styles + .csp-* compatibility classes
 * @version 1.0.0
 */

/* ═══ TOKENS ═══ */
:root {
  --csp-terra: #c96a3a;
  --csp-terra-l: #d97f52;
  --csp-terra-p: #f5e3d8;
  --csp-terra-bg: #fdf6f0;
  --csp-brown: #3d2510;
  --csp-brown-m: #7a4e2c;
  --csp-stone: #9a8070;
  --csp-text: #2d1a08;
  --csp-text-m: #5a3a20;
  --csp-text-l: #8a6a50;
  --csp-cream: #faf7f4;
  --csp-cream2: #f3ede6;
  --csp-cream3: #e8ddd2;
  --csp-white: #fff;
}

/* ═══ .csp-* COMPAT CLASSES (for raw-paste workflow) ═══ */

.csp-article-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 36px;
  max-width: 1060px;
  margin: 0 auto;
  padding: 32px clamp(16px, 3vw, 40px) 60px;
  align-items: start;
}

.csp-toc {
  position: sticky;
  top: 100px;
  align-self: start;
  order: -1;
}

.csp-toc-inner {
  background: var(--csp-white);
  border: 1.5px solid var(--csp-cream3);
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow: 0 2px 16px rgba(61, 37, 16, .08);
}

.csp-toc-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--csp-stone);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.csp-toc-h3 {
  padding-left: 20px;
  font-size: 11px;
}

.csp-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.csp-toc ul a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--csp-text-l);
  line-height: 1.4;
  transition: all .15s;
  border-left: 2px solid transparent;
  margin-left: -2px;
  text-decoration: none;
}

.csp-toc ul a:hover {
  color: var(--csp-terra);
  background: var(--csp-terra-bg);
}

.csp-toc ul a.active {
  color: var(--csp-terra);
  font-weight: 600;
  border-left-color: var(--csp-terra);
  background: var(--csp-terra-bg);
}

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

.csp-content h2 {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  color: var(--csp-brown);
  margin: 32px 0 12px;
  line-height: 1.3;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--csp-terra-p);
}

.csp-content h2:first-child {
  margin-top: 0;
}

.csp-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--csp-brown);
  margin: 24px 0 10px;
  line-height: 1.35;
}

.csp-content p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--csp-text-m);
  margin-bottom: 16px;
}

.csp-content a {
  color: var(--csp-terra);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--csp-terra-p);
  text-underline-offset: 3px;
  transition: all .15s;
}

.csp-content a:hover {
  text-decoration-color: var(--csp-terra);
}

.csp-content strong {
  color: var(--csp-brown);
  font-weight: 600;
}

.csp-content ul,
.csp-content ol {
  margin: 0 0 16px 20px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--csp-text-m);
}

.csp-content li {
  margin-bottom: 6px;
}

.csp-content li::marker {
  color: var(--csp-terra);
}

.csp-content blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--csp-terra);
  background: var(--csp-terra-bg);
  border-radius: 0 12px 12px 0;
  font-size: 15px;
  color: var(--csp-text-m);
  font-style: italic;
  line-height: 1.7;
}

.csp-content img {
  border-radius: 12px;
  margin: 20px 0;
  box-shadow: 0 2px 16px rgba(61, 37, 16, .08);
}

.csp-info-box {
  border-left: 4px solid var(--csp-terra);
  background: var(--csp-terra-bg);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14px;
  color: var(--csp-text-m);
  line-height: 1.7;
}

.csp-info-box strong {
  color: var(--csp-brown);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  .csp-article-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .csp-toc {
    position: relative;
    top: 0;
    margin-bottom: 24px;
    order: -1;
  }
}
