/* ═══════════════════════════════════════════════════════
   Article — Blog Post Template with Sidebar
   Editorial · Readable · Warm · Design System v3
   ═══════════════════════════════════════════════════════ */

/* ── Hero ── */
.art-hero {
  padding: clamp(6rem,12vw,9rem) 0 clamp(2rem,4vw,3rem);
  background: var(--cream);
}
.art-breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  color: var(--quiet);
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}
.art-breadcrumb a { color: var(--quiet); text-decoration: none; }
.art-breadcrumb a:hover { color: var(--gold); }
.art-breadcrumb .sep { color: var(--line); }
.art-cat {
  display: inline-block;
  padding: .25rem .8rem;
  border-radius: var(--r-pill);
  background: var(--gold-bg);
  border: 1px solid rgba(159,118,27,.1);
  font-size: .68rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.art-hero h1 {
  max-width: 720px;
  margin-bottom: .8rem;
  font-size: clamp(1.8rem,4.5vw,2.8rem);
  line-height: 1.15;
}
.art-excerpt {
  max-width: 640px;
  font-size: clamp(.95rem,1.3vw,1.05rem);
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 1rem;
}
.art-meta {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  font-size: .82rem;
  color: var(--quiet);
}

/* ── Cover ── */
.art-cover {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px 2rem;
}
.art-cover img {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  aspect-ratio: 16/9;
  object-fit: cover;
  border: 1px solid var(--line);
}

/* ── Shell: content + sidebar ── */
.art-body {
  padding: clamp(2rem,4vw,3rem) 0 clamp(3rem,6vw,5rem);
  background: var(--white);
}
.art-shell {
  display: grid;
  grid-template-columns: minmax(0, 720px) 300px;
  gap: 56px;
  align-items: start;
  max-width: 1140px;
}

/* ── Content column ── */
.art-content p {
  font-size: 1rem;
  line-height: 1.78;
  color: var(--ink-2);
  margin-bottom: 1.4em;
}
.art-content h2 {
  font-family: var(--serif);
  font-size: clamp(1.3rem,2.5vw,1.7rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 2.5em 0 .8em;
  color: var(--ink);
  letter-spacing: -.02em;
  scroll-margin-top: 80px;
}
.art-content h3 {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 2em 0 .6em;
  color: var(--ink);
}
.art-content h4 {
  font-size: .95rem;
  font-weight: 700;
  margin: 1.5em 0 .5em;
  color: var(--ink);
}
.art-content strong { color: var(--ink); font-weight: 600; }
.art-content a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.art-content a:hover { color: var(--ink); }
.art-content ul, .art-content ol { margin: 0 0 1.4em 1.2rem; color: var(--ink-2); }
.art-content li { margin-bottom: .5em; font-size: 1rem; line-height: 1.7; }
.art-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.4rem;
  margin: 1.5em 0;
  background: var(--cream);
  border-radius: 0 var(--r) var(--r) 0;
  font-style: italic;
  color: var(--muted);
  line-height: 1.65;
}
.art-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r);
  margin: 1.5em 0;
  border: 1px solid var(--line);
}
.art-content code { background: var(--cream); padding: 2px 6px; border-radius: 4px; font-size: .88em; }
.art-content pre { background: var(--cream); padding: 1rem; border-radius: var(--r); overflow-x: auto; margin: 1.5em 0; border: 1px solid var(--line); }
.art-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .9rem; }
.art-content th, .art-content td { padding: .6rem .8rem; border: 1px solid var(--line); text-align: left; }
.art-content th { background: var(--cream); font-weight: 700; font-size: .82rem; }

/* Tags inline */
.art-tags-inline {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 2rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.art-tag {
  padding: .25rem .7rem;
  border-radius: var(--r-pill);
  background: var(--cream);
  border: 1px solid var(--line);
  font-size: .7rem;
  font-weight: 600;
  color: var(--quiet);
}

/* Cluster box */
.art-cluster-box {
  padding: 1.4rem 1.6rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--r);
  margin: 2rem 0;
}
.art-cluster-box h3 { font: 700 .9rem var(--sans); color: var(--gold); margin: 0 0 .6rem; }
.art-cluster-box a { color: var(--ink); font-weight: 600; text-decoration: none; }
.art-cluster-box a:hover { color: var(--gold); }
.art-cluster-box ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.art-cluster-box li { margin: .4rem 0; font-size: .88rem; color: var(--muted); }

/* Back link */
.art-back { text-align: center; margin-top: 2rem; }
.art-back a { font-size: .85rem; font-weight: 600; color: var(--gold); text-decoration: none; }
.art-back a:hover { text-decoration: underline; }

/* ── Sidebar ── */
.art-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Sidebar cards */
.art-sb-card {
  padding: 1.2rem 1.4rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.art-sb-card h4 {
  font: 700 .82rem var(--sans);
  color: var(--ink);
  margin: 0 0 .8rem;
  letter-spacing: 0;
}

/* TOC */
.art-toc nav {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.art-toc a {
  display: block;
  padding: .35rem 0;
  font-size: .78rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  transition: color .2s;
}
.art-toc a:last-child { border-bottom: none; }
.art-toc a:hover { color: var(--gold); }

/* Sidebar CTA */
.art-sb-cta { border-color: var(--gold-bg); }
.art-sb-cta-k {
  display: block;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.art-sb-cta h4 { font: 700 .95rem/1.2 var(--serif); margin-bottom: .3rem; }
.art-sb-cta p { font-size: .78rem; color: var(--muted); line-height: 1.5; margin: 0 0 .8rem; }
.art-sb-cta-btn {
  display: block;
  text-align: center;
  padding: .6rem 1rem;
  border-radius: var(--r-pill);
  color: #fff;
  font: 700 .78rem var(--sans);
  text-decoration: none;
  transition: transform .2s;
}
.art-sb-cta-btn:hover { transform: translateY(-1px); }

/* Sidebar related */
.art-sb-related {
  display: block;
  padding: .5rem 0;
  border-bottom: 1px solid var(--line-2);
  text-decoration: none;
  transition: color .2s;
}
.art-sb-related:last-child { border-bottom: none; }
.art-sb-related span {
  font-size: .78rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.4;
}
.art-sb-related:hover span { color: var(--gold); }

/* Sidebar author */
.art-sb-author {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: .8rem;
  align-items: center;
}
.art-sb-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}
.art-sb-author strong { display: block; font: 700 .82rem var(--sans); color: var(--ink); }
.art-sb-author span { font-size: .7rem; color: var(--quiet); }
.art-sb-author-link {
  grid-column: 1 / -1;
  font-size: .75rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  margin-top: .2rem;
}
.art-sb-author-link:hover { text-decoration: underline; }

/* Sidebar contact */
.art-sb-contact p { font-size: .78rem; color: var(--muted); line-height: 1.5; margin: 0 0 .6rem; }
.art-sb-contact-btn {
  font-size: .75rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
}
.art-sb-contact-btn:hover { text-decoration: underline; }

/* ── Preview bar ── */
.art-preview-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: #EF4444;
  color: #fff;
  text-align: center;
  padding: 8px;
  font: 600 .82rem var(--sans);
  z-index: 9999;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .art-shell {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .art-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .art-toc { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .art-hero { padding-top: 5rem; }
  .art-sidebar { grid-template-columns: 1fr; }
  .art-content table { display: block; overflow-x: auto; }
}
