/* Smile V2 — CMS pages editorial styling.
   Targets body.page-cms so it scopes to /content/* without leaking elsewhere.
   Reuses the design tokens already loaded via smile-v2-tokens.css. */

body.page-cms {
  background: #FAF7F2;
}

body.page-cms #wrapper,
body.page-cms .container,
body.page-cms .container-large {
  background: transparent;
}

body.page-cms .page-content {
  max-width: 760px;
  margin: 56px auto 80px;
  padding: 48px 56px 56px;
  background: #fff;
  border: 1px solid rgba(44, 40, 35, 0.08);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(44, 40, 35, 0.04);
  color: #2C2823;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15.5px;
  line-height: 1.68;
}

body.page-cms .page-content h1,
body.page-cms .page-content h2,
body.page-cms .page-content h3,
body.page-cms .page-content .page-heading {
  font-family: 'Playfair Display', Georgia, serif;
  color: #2C2823;
  letter-spacing: -0.01em;
  font-weight: 400;
}

body.page-cms .page-content h1,
body.page-cms .page-content .page-heading {
  font-size: clamp(34px, 4vw, 44px);
  line-height: 1.12;
  margin: 0 0 12px;
  padding: 0 0 18px;
  border-bottom: 1px solid #E8C5C5;
}

body.page-cms .page-content h2 {
  font-size: 22px;
  line-height: 1.25;
  margin: 36px 0 12px;
  color: #6B2C2C;
}

body.page-cms .page-content h3 {
  font-size: 17px;
  line-height: 1.3;
  margin: 24px 0 8px;
  font-weight: 500;
}

body.page-cms .page-content p {
  margin: 0 0 16px;
}

body.page-cms .page-content em {
  color: #6B6360;
  font-style: italic;
}

body.page-cms .page-content strong {
  color: #2C2823;
  font-weight: 600;
}

body.page-cms .page-content a {
  color: #6B2C2C;
  text-decoration: underline;
  text-decoration-color: rgba(107, 44, 44, 0.32);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

body.page-cms .page-content a:hover,
body.page-cms .page-content a:focus-visible {
  color: #B8924F;
  text-decoration-color: currentColor;
}

body.page-cms .page-content ul,
body.page-cms .page-content ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

body.page-cms .page-content li {
  margin: 0 0 8px;
}

body.page-cms .page-content ul li::marker {
  color: #B8924F;
}

body.page-cms .page-content ol li::marker {
  color: #B8924F;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
}

body.page-cms .page-content blockquote {
  margin: 24px 0;
  padding: 12px 0 12px 22px;
  border-left: 3px solid #E8C5C5;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 17px;
  color: #4A453F;
}

body.page-cms .page-content hr {
  margin: 36px 0;
  border: 0;
  height: 1px;
  background: rgba(44, 40, 35, 0.1);
}

body.page-cms .page-content code,
body.page-cms .page-content pre {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 13px;
  background: #FAF7F2;
  padding: 1px 6px;
  border-radius: 3px;
  color: #6B2C2C;
}

body.page-cms .page-content pre {
  padding: 14px 18px;
  margin: 18px 0;
  overflow-x: auto;
}

body.page-cms .page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14px;
}

body.page-cms .page-content table th,
body.page-cms .page-content table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(44, 40, 35, 0.08);
}

body.page-cms .page-content table th {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
  color: #6B6360;
}

/* "Updated" italic date paragraph (we use <p><em>Última actualización...</em></p>) */
body.page-cms .page-content h1 + p em,
body.page-cms .page-content .page-heading + p em {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #B8924F;
}

@media (max-width: 720px) {
  body.page-cms .page-content {
    margin: 24px 16px 48px;
    padding: 28px 24px 32px;
  }
  body.page-cms .page-content h2 { font-size: 19px; margin-top: 28px; }
  body.page-cms .page-content { font-size: 15px; }
}

/* Print: ditch the card chrome, keep typography */
@media print {
  body.page-cms .page-content {
    box-shadow: none;
    border: 0;
    padding: 0;
    max-width: none;
    margin: 0;
  }
}

/* build: 20260530-cms-1 */
