/* =========================================================
   News page (article view)
   ========================================================= */

/* Article masthead ----------------------------------------- */
.art-mast {
  background: var(--cream);
  padding: 56px 0 0;
}
.art-mast .crumbs {
  color: var(--ink-3);
  margin-bottom: 32px;
}
.art-mast .crumbs a { color: var(--ink-2); }
.art-mast .crumbs a:hover { color: var(--agi-red); }
.art-mast .crumbs .now { color: var(--agi-red); }
.art-mast .crumbs .sep { color: var(--ink-3); }

.art-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.art-meta-row .cat {
  background: var(--agi-red);
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 500;
}
.art-meta-row .dot { color: var(--ink-3); opacity: 0.6; }

.art-headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 5.4vw, 80px);
  line-height: 0.99;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 28px;
  text-wrap: balance;
  max-width: 1100px;
}
.art-headline em { font-style: italic; color: var(--agi-red); font-weight: 400; }
.art-deck {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 24px;
  line-height: 1.4;
  color: var(--ink-2);
  max-width: 880px;
  margin: 0 0 48px;
  text-wrap: balance;
}

.art-byline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.art-author {
  display: flex;
  align-items: center;
  gap: 16px;
}
.art-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--agi-red), var(--agi-orange));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  overflow: hidden;
  flex: 0 0 auto;
}
.art-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-author .info { display: flex; flex-direction: column; gap: 2px; }
.art-author .name { font-weight: 600; font-size: 15px; color: var(--ink); }
.art-author .role { font-size: 13px; color: var(--ink-3); }
.art-byline-right {
  display: flex;
  gap: 32px;
  align-items: center;
}
.art-stat { display: flex; flex-direction: column; gap: 2px; }
.art-stat .v { font-family: var(--serif); font-weight: 500; font-size: 18px; color: var(--ink); }
.art-stat .l { font-size: 11.5px; font-family: var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.art-share {
  display: flex; gap: 8px;
}
.art-share a {
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  transition: all .25s;
}
.art-share a:hover {
  border-color: var(--agi-red);
  color: var(--agi-red);
  background: rgba(178, 47, 40, 0.06);
}

/* Hero illustration ---------------------------------------- */
.art-hero-illu {
  margin-top: 56px;
  margin-bottom: 0;
  position: relative;
  aspect-ratio: 1200 / 480;
  background: linear-gradient(140deg, #2A3210 0%, #5E6B27 50%, #B22F28 100%);
  border-radius: 0;
  overflow: hidden;
}
.art-hero-illu svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.art-hero-illu .caption {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  display: flex;
  justify-content: space-between;
  z-index: 2;
}

/* Article body --------------------------------------------- */
.article-body {
  background: var(--paper);
  padding: 88px 0 100px;
  position: relative;
}
.article-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 720px) 1fr;
  gap: 48px;
}
.toc {
  position: sticky;
  top: 120px;
  align-self: start;
  border-left: 2px solid var(--line);
  padding: 4px 0 4px 16px;
}
.toc-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--agi-red);
  margin: 0 0 18px;
  font-weight: 500;
}
.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.toc-list a {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink-2);
  display: block;
  padding-left: 0;
  transition: color .2s, padding .2s;
}
.toc-list a:hover, .toc-list a.active {
  color: var(--agi-red);
  padding-left: 6px;
}

.prose {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.72;
  color: var(--ink);
  max-width: 720px;
}
.prose p { margin: 0 0 22px; }
.prose p.dropcap::first-letter {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 76px;
  float: left;
  line-height: 0.85;
  margin: 6px 12px 0 0;
  color: var(--agi-red);
}
.prose h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 56px 0 22px;
  color: var(--ink);
  text-wrap: balance;
}
.prose h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  margin: 36px 0 14px;
}
.prose blockquote {
  margin: 40px 0;
  padding: 0 0 0 32px;
  border-left: 3px solid var(--agi-red);
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.4;
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
}
.prose blockquote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--ink-3);
  font-weight: 400;
}
.prose ul, .prose ol {
  padding-left: 0;
  margin: 0 0 28px;
  list-style: none;
}
.prose ul li, .prose ol li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  line-height: 1.55;
  font-size: 18px;
}
.prose ul li::before {
  content: "›";
  color: var(--agi-red);
  font-weight: 600;
  font-size: 22px;
  line-height: 1;
  position: absolute;
  left: 0;
  top: 0;
}
.prose ol { counter-reset: li; }
.prose ol li {
  counter-increment: li;
}
.prose ol li::before {
  content: counter(li, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--agi-red);
  font-weight: 500;
  letter-spacing: 0.05em;
  position: absolute;
  left: 0;
  top: 6px;
}
.prose strong { font-weight: 600; color: var(--ink); }
.prose a { color: var(--agi-red); border-bottom: 1px solid currentColor; }
.prose a:hover { color: var(--agi-red-dark); }

.callout {
  margin: 40px 0;
  padding: 28px 32px;
  background: var(--cream);
  border-radius: 14px;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
}
.callout-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--agi-yellow);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.callout-body h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--agi-red);
  margin: 0 0 8px;
  font-weight: 500;
}
.callout-body p {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  color: var(--ink-2);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 48px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-row > div {
  padding: 28px 24px 28px 0;
  border-right: 1px solid var(--line);
}
.stat-row > div:last-child { border-right: none; }
.stat-row > div:not(:first-child) { padding-left: 28px; }
.stat-row .v {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--agi-red);
  margin: 0 0 8px;
}
.stat-row .l {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
}

.aside {
  position: sticky;
  top: 120px;
  align-self: start;
}
.aside-card {
  padding: 24px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 16px;
}
.aside-card h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--agi-red);
  margin: 0 0 14px;
  font-weight: 500;
}
.aside-card .topic {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
  color: var(--ink);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  transition: color .2s;
}
.aside-card .topic:last-child { border-bottom: none; }
.aside-card .topic:hover { color: var(--agi-red); }
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag-cloud a {
  padding: 5px 11px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  transition: all .2s;
}
.tag-cloud a:hover { background: var(--agi-red); color: #fff; border-color: var(--agi-red); }

/* Article footer / next read ------------------------------- */
.art-foot {
  background: var(--cream);
  padding: 80px 0 100px;
}
.author-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  align-items: center;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 80px;
}
.author-card .avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--agi-red), var(--agi-orange));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 40px;
  overflow: hidden;
  flex: 0 0 auto;
}
.author-card .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.author-card .info h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  margin: 0 0 6px;
  color: var(--ink);
}
.author-card .info p {
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 580px;
}
.author-card .credentials {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.next-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 36px;
  gap: 24px;
}
.next-head .eyebrow { margin-bottom: 16px; }
.next-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Responsive ----------------------------------------------- */
@media (max-width: 1100px) {
  .article-grid { grid-template-columns: 1fr; gap: 40px; }
  .toc, .aside { position: static; }
  .toc { display: none; }
  .next-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .art-headline { font-size: 36px; }
  .art-deck { font-size: 18px; }
  .art-hero-illu { aspect-ratio: 1200 / 540; }
  .prose { font-size: 17px; }
  .prose blockquote { font-size: 21px; padding-left: 20px; }
  .stat-row { grid-template-columns: 1fr; }
  .stat-row > div { border-right: none; border-bottom: 1px solid var(--line); padding-left: 0 !important; }
  .stat-row > div:last-child { border-bottom: none; }
  .author-card { grid-template-columns: 1fr; text-align: left; }
  .next-grid { grid-template-columns: 1fr; }
  .art-byline-right { width: 100%; justify-content: space-between; }
}
