/* ──────────────────────────────────────────────────────────────
   article.css — shared styling for long-form guide pages
   (eggs.php, breeds.php). Matches the tokens used across the
   modern public pages.
   ────────────────────────────────────────────────────────────── */

:root {
  --p-primary:  #2C5F2D;
  --p-primary2: #4A8F4B;
  --p-dark:     #1A3A1B;
  --p-accent:   #FF8C42;
  --p-accent2:  #FF6B1A;
  --p-bg:       #F8F6F1;
  --p-card:     #ffffff;
  --p-border:   #E5E0D8;
  --p-text:     #1f2937;
  --p-muted:    #6b7280;
  --p-shadow:   0 10px 30px rgba(0,0,0,.10);
  --p-font-display: 'Fraunces', serif;
  --p-font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--p-bg);
  color: var(--p-text);
  font-family: var(--p-font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.art-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 20px 72px;
}

/* ── Breadcrumb ── */
.art-crumbs {
  font-size: 14px;
  color: var(--p-muted);
  margin: 8px 0 20px;
}
.art-crumbs a { color: var(--p-primary); text-decoration: none; }
.art-crumbs a:hover { text-decoration: underline; }
.art-crumbs span { margin: 0 6px; opacity: .6; }

/* ── Hero ── */
.art-hero {
  background: linear-gradient(135deg, var(--p-primary) 0%, var(--p-primary2) 100%);
  color: #fff;
  border-radius: 20px;
  padding: 38px 34px;
  margin-bottom: 30px;
  box-shadow: var(--p-shadow);
}
.art-hero h1 {
  font-family: var(--p-font-display);
  font-weight: 800;
  font-size: clamp(28px, 4.4vw, 42px);
  line-height: 1.15;
  margin: 0 0 12px;
}
.art-hero p {
  margin: 0;
  font-size: 17px;
  opacity: .94;
  max-width: 62ch;
}
.art-meta {
  margin-top: 16px;
  font-size: 13.5px;
  opacity: .85;
}

/* ── Table of contents ── */
.art-toc {
  background: var(--p-card);
  border: 1px solid var(--p-border);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 30px;
}
.art-toc h2 {
  font-family: var(--p-font-display);
  font-size: 16px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--p-muted);
  margin: 0 0 12px;
}
.art-toc ol { margin: 0; padding-left: 20px; }
.art-toc li { margin: 5px 0; }
.art-toc a { color: var(--p-primary); text-decoration: none; font-weight: 500; }
.art-toc a:hover { text-decoration: underline; }

/* ── Sections ── */
.art-section {
  background: var(--p-card);
  border: 1px solid var(--p-border);
  border-radius: 16px;
  padding: 28px 30px;
  margin-bottom: 22px;
  scroll-margin-top: 24px;
}
.art-section h2 {
  font-family: var(--p-font-display);
  font-size: clamp(22px, 3vw, 28px);
  color: var(--p-dark);
  margin: 0 0 14px;
  line-height: 1.25;
}
.art-section h3 {
  font-family: var(--p-font-display);
  font-size: 19px;
  color: var(--p-primary);
  margin: 24px 0 8px;
}
.art-section p { margin: 0 0 14px; }
.art-section ul, .art-section ol { margin: 0 0 14px; padding-left: 22px; }
.art-section li { margin: 6px 0; }
.art-section a { color: var(--p-primary); font-weight: 500; }

.art-lede {
  font-size: 17.5px;
  color: #374151;
}

/* ── Tables ── */
.art-table-scroll { overflow-x: auto; margin: 0 0 16px; }
table.art-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
}
table.art-table caption {
  caption-side: top;
  text-align: left;
  font-size: 14px;
  color: var(--p-muted);
  padding-bottom: 8px;
}
table.art-table th,
table.art-table td {
  border: 1px solid var(--p-border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
table.art-table thead th {
  background: #F3F1EA;
  font-weight: 700;
  color: var(--p-dark);
}
table.art-table tbody tr:nth-child(even) { background: #FBFAF7; }

/* ── Callout ── */
.art-note {
  border-left: 4px solid var(--p-accent);
  background: #FFF7F0;
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  margin: 0 0 16px;
}
.art-note strong { color: var(--p-accent2); }

/* ── FAQ ── */
.art-faq details {
  border: 1px solid var(--p-border);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 10px;
  background: #fff;
}
.art-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--p-dark);
  list-style: none;
}
.art-faq summary::-webkit-details-marker { display: none; }
.art-faq summary::before {
  content: '+';
  display: inline-block;
  width: 18px;
  color: var(--p-accent);
  font-weight: 700;
}
.art-faq details[open] summary::before { content: '−'; }
.art-faq details p { margin: 10px 0 2px; }

/* ── CTA ── */
.art-cta {
  background: var(--p-dark);
  color: #fff;
  border-radius: 16px;
  padding: 28px 30px;
  text-align: center;
  margin-top: 8px;
}
.art-cta h2 { font-family: var(--p-font-display); margin: 0 0 8px; color: #fff; }
.art-cta p { margin: 0 0 18px; opacity: .9; }
.art-btn {
  display: inline-block;
  background: var(--p-accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  margin: 4px 6px;
}
.art-btn:hover { background: var(--p-accent2); }
.art-btn.ghost {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.5);
}

@media (max-width: 640px) {
  .art-hero { padding: 28px 22px; }
  .art-section { padding: 22px 20px; }
}
