/* Article detail page — Newsletter aesthetic.
   Maps to reference/Design/Page_Samples_PLAINHTML/Newsletter.html.

   Layout flow:
     §1  Thinking page header (reused; cape-navy)
     §2  Breadcrumb strip (white)
     §3  Article header: hero image, category tag, title, byline,
         rule, share row, rule
     §4  Article body: c720, editorial type
     §5  Article end: rule, signature byline block, share row
     §6  Related articles (3-up, c1200)
*/

/* ── Containers ──────────────────────────────────────────── */

.c1200 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 56px;
}
.c720 {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 784px) {
  .c720 { padding: 0; }
}

/* ── §1 Site header (Thinking-style) ──────────────────────── */

.article-site-header {
  position: relative;
  background: var(--sg-cape-navy);
  color: var(--sg-white);
  margin-top: calc(-1 * var(--sg-nav-height));
  padding: calc(var(--sg-nav-height) + 64px) 0 32px;
  overflow: hidden;
  isolation: isolate;
}
.article-site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 600px at 15% 20%, rgba(26, 86, 219, 0.22), transparent 65%),
    radial-gradient(600px 400px at 85% 75%, rgba(26, 86, 219, 0.12), transparent 70%);
}
.article-site-header__h1 {
  font-family: var(--sg-font-display);
  font-weight: var(--sg-w-bold);
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--sg-white);
  margin: 0;
}
.article-site-header__rule {
  height: 1px;
  background: rgba(255, 255, 255, 0.20);
  max-width: 1200px;
  margin: 32px auto 0;
  width: calc(100% - 112px);
}

/* ── §2 Breadcrumb strip ─────────────────────────────────── */

.article-breadcrumb-wrap {
  background: var(--sg-white);
  border-bottom: 1px solid var(--sg-rule);
}
.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  font-size: 13px;
  color: var(--sg-steel);
  flex-wrap: wrap;
}
.article-breadcrumb__link {
  color: var(--sg-hero-blue);
  text-decoration: none;
}
.article-breadcrumb__link:hover { text-decoration: underline; }
.article-breadcrumb__sep {
  color: var(--sg-steel);
  opacity: 0.6;
}
.article-breadcrumb__current {
  color: var(--sg-ink);
  font-weight: var(--sg-w-semibold);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* ── §3 Article header (hero image + title + share) ──────── */

.article-header {
  background: var(--sg-white);
  padding-top: 48px;
}

.article-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--sg-cream);
  position: relative;
  isolation: isolate;
}
.article-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-hero__caption {
  display: block;
  font-size: 13px;
  color: var(--sg-steel);
  font-style: italic;
  text-align: center;
  margin: 12px 0 0;
}

.article-cat {
  font-size: 11px;
  font-weight: var(--sg-w-semibold);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--sg-hero-blue);
  margin: 24px 0 12px;
}

.article-title {
  font-family: var(--sg-font-display);
  font-weight: var(--sg-w-bold);
  font-size: 40px;
  line-height: 1.2;
  color: var(--sg-ink);
  margin: 0 0 16px;
  text-wrap: pretty;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--sg-steel);
}
.article-meta__author { font-weight: var(--sg-w-semibold); color: var(--sg-ink); }

.article-divider {
  border: 0;
  border-top: 1px solid var(--sg-rule);
  margin: 24px 0;
}

/* Share row */
.article-share-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.article-share-row__label {
  font-size: 12px;
  font-weight: var(--sg-w-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sg-steel);
  margin-right: 4px;
}
.article-share-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}
.article-share-icon {
  color: var(--sg-ink);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  opacity: 0.72;
  transition: opacity 0.15s;
}
.article-share-icon:hover { opacity: 1; }
.article-share-icon svg { display: block; }

/* ── §4 Article body ─────────────────────────────────────── */

.article-body {
  background: var(--sg-white);
  padding-top: 32px;
}

.article-body p {
  font-size: 18px;
  font-weight: var(--sg-w-regular);
  line-height: 1.8;
  color: var(--sg-ink);
  margin: 0 0 24px;
  text-wrap: pretty;
}

.article-body p.lead {
  font-size: 21px;
  line-height: 1.55;
  font-weight: var(--sg-w-regular);
  color: var(--sg-ink);
  margin-bottom: 28px;
}

.article-body h2 {
  font-family: var(--sg-font-display);
  font-weight: var(--sg-w-bold);
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--sg-ink);
  margin: 40px 0 16px;
}

.article-body h3 {
  font-family: var(--sg-font-display);
  font-weight: var(--sg-w-bold);
  font-size: 20px;
  line-height: 1.3;
  color: var(--sg-ink);
  margin: 28px 0 12px;
}

.article-body a {
  color: var(--sg-hero-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.article-body a:hover { text-decoration-thickness: 2px; }

.article-body ul,
.article-body ol {
  padding-left: 22px;
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.8;
  color: var(--sg-ink);
}
.article-body li { margin-bottom: 8px; }

.article-body strong { font-weight: var(--sg-w-semibold); }
.article-body em { font-style: italic; }

.article-body blockquote.pull-quote {
  border-left: 4px solid var(--sg-hero-blue);
  padding: 0 0 0 24px;
  margin: 32px 0;
  font-size: 22px;
  font-weight: var(--sg-w-medium);
  font-style: italic;
  line-height: 1.5;
  color: var(--sg-ink);
}
.article-body blockquote.pull-quote p { font-size: inherit; line-height: inherit; margin: 0; color: inherit; }

.article-body figure {
  margin: 32px 0;
}
.article-body figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--sg-rule);
}
.article-body figcaption {
  font-size: 13px;
  color: var(--sg-steel);
  font-style: italic;
  text-align: center;
  margin-top: 10px;
}

.article-body hr {
  border: 0;
  border-top: 1px solid var(--sg-rule);
  margin: 40px 0;
}

/* ── §5 Article end (signature + share) ──────────────────── */

.article-end {
  background: var(--sg-white);
  padding: 48px 0 80px;
}
.article-end__rule {
  border: 0;
  border-top: 1px solid var(--sg-rule);
  margin: 0 0 24px;
}
.article-end__byline { margin-bottom: 24px; }
.article-end__byline-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.article-end__monogram {
  font-family: var(--sg-font-display);
  font-size: 24px;
  font-weight: var(--sg-w-bold);
  color: var(--sg-hero-blue);
  line-height: 1;
}
.article-end__name {
  font-size: 15px;
  font-weight: var(--sg-w-semibold);
  color: var(--sg-ink);
}
.article-end__bio {
  font-size: 14px;
  color: var(--sg-steel);
  margin: 0;
}

/* ── §6 Related articles ─────────────────────────────────── */

.article-related {
  background: var(--sg-cream);
  padding: 80px 0;
}
.article-related__h2 {
  font-family: var(--sg-font-display);
  font-weight: var(--sg-w-bold);
  font-size: 24px;
  line-height: 1.2;
  color: var(--sg-ink);
  margin: 0 0 32px;
}
.article-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* The related cards reuse .article-card from page-thinking.css. */

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 1080px) {
  .c1200 { padding: 0 32px; }
  .article-site-header__rule { width: calc(100% - 64px); }
  .article-title { font-size: 32px; }
  .article-related__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .c1200 { padding: 0 24px; }
  .article-site-header { padding-top: calc(var(--sg-nav-height) + 40px); }
  .article-site-header__h1 { font-size: 40px; }
  .article-site-header__rule { width: calc(100% - 48px); }
  .article-header { padding-top: 32px; }
  .article-title { font-size: 28px; }
  .article-body { padding-top: 24px; }
  .article-body p, .article-body ul, .article-body ol { font-size: 17px; }
  .article-body p.lead { font-size: 19px; }
  .article-body h2 { font-size: 22px; margin-top: 32px; }
  .article-body blockquote.pull-quote { font-size: 19px; padding-left: 18px; }
  .article-end { padding: 40px 0 56px; }
  .article-related { padding: 56px 0; }
  .article-related__grid { grid-template-columns: 1fr; }
}
