/* ─── NEWS ARTICLE — AG Branding theme ─── */
@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --cream: #FFF8F0;
  --peach: #FFE8D6;
  --coral: #FF6B6B;
  --coral-light: #FF8E8E;
  --sunset: #FFA94D;
  --sunset-light: #FFC078;
  --sky: #4ECDC4;
  --sky-light: #7EDDD6;
  --lavender: #C084FC;
  --lavender-light: #D8B4FE;
  --ink: #1A1A2E;
  --ink-light: #4A4A6A;
  --white: #FFFFFF;
  --glass: rgba(255,255,255,0.7);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

/* ─── NAVBAR ─── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,248,240,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--peach);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
/* ─── BREADCRUMBS ─── */
.breadcrumbs {
  width: fit-content; margin: 100px auto 0;
  padding: 0 24px;
  font-size: 0.8rem; color: var(--ink-light); opacity: 0.7;
}
.breadcrumbs a { color: var(--coral); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { margin: 0 6px; }
.breadcrumbs .separator { margin: 0 6px; }
.breadcrumbs .current { color: var(--ink-light); }

/* ─── CONTAINER ─── */
.container { max-width: 700px; margin: 32px auto; padding: 0 24px 48px; }

/* ─── ARTICLE HEADER ─── */
.article-category {
  display: inline-block; font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--coral); margin-bottom: 12px;
}
.article-header h1 {
  font-family: 'Unbounded', sans-serif; font-size: 1.6rem;
  font-weight: 700; line-height: 1.3; color: var(--ink);
  margin-bottom: 16px;
}
.article-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 0.8rem; color: var(--ink-light); opacity: 0.7;
}
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-light); opacity: 0.4; }

/* ─── FEATURED IMAGE ─── */
.featured-image {
  margin: 28px 0; border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.featured-image img { width: 100%; height: auto; display: block; }
.featured-image figcaption {
  padding: 10px 16px; font-size: 0.75rem; color: var(--ink-light);
  opacity: 0.6; background: var(--white);
}

/* ─── ARTICLE BODY ─── */
.article-body { font-size: 1rem; }
.article-body p { margin-bottom: 1.2em; }
.article-body strong { font-weight: 600; color: var(--ink); }
.article-body h2 {
  font-family: 'Unbounded', sans-serif; font-size: 1.2rem;
  font-weight: 600; margin: 2em 0 0.8em; color: var(--ink);
}
.article-body h3 {
  font-family: 'Unbounded', sans-serif; font-size: 1rem;
  font-weight: 500; margin: 1.5em 0 0.6em; color: var(--ink);
}
.article-body ul, .article-body ol { margin-bottom: 1.2em; padding-left: 1.5em; }
.article-body li { margin-bottom: 0.4em; }
.article-body hr { border: none; border-top: 1px solid var(--peach); margin: 2em 0; }
.article-body a { color: var(--coral); text-decoration: underline; }

/* ─── BLOCKQUOTE ─── */
.article-body blockquote {
  margin: 1.5em 0; padding: 20px 24px;
  background: var(--white); border-radius: 14px;
  border-left: 4px solid var(--coral);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.article-body blockquote p { margin-bottom: 0.4em; font-style: italic; color: var(--ink-light); }
.article-body blockquote cite { font-size: 0.8rem; color: var(--ink-light); opacity: 0.6; font-style: normal; }

/* ─── HIGHLIGHT BOX ─── */
.highlight-box {
  margin: 1.5em 0; padding: 24px 28px;
  background: linear-gradient(135deg, #FFF0E6, #FFE8D6);
  border-radius: 16px; border: 1px solid var(--peach);
}
.highlight-box h3 { margin-top: 0; font-size: 0.95rem; }
.highlight-box p { margin-bottom: 0; font-size: 0.95rem; }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--white); border-top: 1px solid var(--peach);
  padding: 48px 24px 32px;
}
.footer-inner {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
}
.footer-col h4 {
  font-family: 'Unbounded', sans-serif; font-size: 0.75rem;
  font-weight: 600; color: var(--ink); letter-spacing: 1px;
  margin-bottom: 12px;
}
.footer-col p { font-size: 0.85rem; color: var(--ink-light); line-height: 1.6; }
.footer-col a { color: var(--coral); text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-bottom {
  max-width: 1000px; margin: 32px auto 0; padding-top: 20px;
  border-top: 1px solid var(--peach);
  font-size: 0.75rem; color: var(--ink-light); opacity: 0.6; text-align: center;
}

/* ─── FOOTER GRID CLASS for old inline footers ─── */
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 600px) {
  .container { padding: 0 16px 32px; }
  .breadcrumbs { padding: 0 16px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 24px !important; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .site-footer { padding: 32px 16px 24px; }
  .highlight-box { padding: 18px 20px; }
}

/* ─── FIXED NAV OFFSET ─── */
body { padding-top: 76px; }

/* ─── COMPAT: old templates (meta-14000-ai, anthropic-karpathy) ─── */

/* Article image without figure wrapper */
img.featured-image {
  width: 100%; max-width: 700px; display: block;
  margin: 28px auto; border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.article-image {
  margin: 28px 0; border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.article-image img { width: 100%; height: auto; display: block; }
.article-image figcaption {
  padding: 10px 16px; font-size: 0.75rem; color: var(--ink-light);
  opacity: 0.6; background: var(--white);
}

/* Article body alternative class */
.article-content { font-size: 1rem; }
.article-content p { margin-bottom: 1.2em; }
.article-content strong { font-weight: 600; color: var(--ink); }
.article-content h2 {
  font-family: 'Unbounded', sans-serif; font-size: 1.2rem;
  font-weight: 600; margin: 2em 0 0.8em; color: var(--ink);
}
.article-content h3 {
  font-family: 'Unbounded', sans-serif; font-size: 1rem;
  font-weight: 500; margin: 1.5em 0 0.6em; color: var(--ink);
}
.article-content ul, .article-content ol { margin-bottom: 1.2em; padding-left: 1.5em; }
.article-content li { margin-bottom: 0.4em; }
.article-content blockquote {
  margin: 1.5em 0; padding: 20px 24px;
  background: var(--white); border-radius: 14px;
  border-left: 4px solid var(--coral);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.article-content blockquote p { margin-bottom: 0.4em; font-style: italic; color: var(--ink-light); }
.article-content blockquote cite { font-size: 0.8rem; color: var(--ink-light); opacity: 0.6; font-style: normal; }

/* Flat article (anthropic style) */
article h1 {
  font-family: 'Unbounded', sans-serif; font-size: 1.6rem;
  font-weight: 700; line-height: 1.3; color: var(--ink);
  margin-bottom: 16px;
}
article .meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 0.8rem; color: var(--ink-light); opacity: 0.7; margin-bottom: 24px;
}
article .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-light); opacity: 0.4; }
article .meta .tag {
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--coral);
}
article .lead { font-size: 1.05rem; line-height: 1.6; color: var(--ink-light); margin-bottom: 1.5em; }
article p { margin-bottom: 1.2em; }
article h2 {
  font-family: 'Unbounded', sans-serif; font-size: 1.2rem;
  font-weight: 600; margin: 2em 0 0.8em; color: var(--ink);
}
article ul, article ol { margin-bottom: 1.2em; padding-left: 1.5em; }
article li { margin-bottom: 0.4em; }
article blockquote {
  margin: 1.5em 0; padding: 20px 24px;
  background: var(--white); border-radius: 14px;
  border-left: 4px solid var(--coral);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
article blockquote p { margin-bottom: 0.4em; font-style: italic; color: var(--ink-light); }
article blockquote cite { font-size: 0.8rem; color: var(--ink-light); opacity: 0.6; font-style: normal; }
article .highlight-box .box-title { font-family: 'Unbounded', sans-serif; font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; }

/* Plain footer */
footer:not(.site-footer) {
  background: var(--white); border-top: 1px solid var(--peach);
  padding: 48px 24px 32px;
}
footer:not(.site-footer) .footer-inner {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr; gap: 40px;
}
footer:not(.site-footer) .footer-brand span {
  font-family: 'Unbounded', sans-serif; font-size: 0.95rem;
  font-weight: 600; color: var(--ink);
}
footer:not(.site-footer) .footer-brand span::before { content: '✦ '; color: var(--coral); }
footer:not(.site-footer) .footer-brand p { font-size: 0.85rem; color: var(--ink-light); margin-top: 8px; }
footer:not(.site-footer) .footer-links { display: flex; flex-direction: column; gap: 8px; }
footer:not(.site-footer) .footer-links a { color: var(--coral); text-decoration: none; font-size: 0.85rem; }
footer:not(.site-footer) .footer-links a:hover { text-decoration: underline; }
footer:not(.site-footer) .footer-copy {
  max-width: 1000px; margin: 32px auto 0; padding-top: 20px;
  border-top: 1px solid var(--peach);
  font-size: 0.75rem; color: var(--ink-light); opacity: 0.6; text-align: center;
}
