/* =========================================================
   OXY Blog Article — clean, single-source layout
   Tokens shared with resources-redesign.css
   brand:#90594E ink:#231d1b muted:#746967 paper:#fffdfa wash:#f8f4f1 line:#e8dfda
   ========================================================= */

.article-page .page-header,
.article-page .legacy-article { display: none !important; }

.article-page .clean-article {
  font-family: Heebo, Arial, sans-serif;
  color: #231d1b;
  background: #fffdfa;
  scroll-behavior: smooth;
}
.article-page .clean-article * { box-sizing: border-box; }

/* ---------- Cover ---------- */
.article-page .article-cover {
  padding: 84px 0 64px;
  background: #2b2422;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.article-page .article-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px 320px at 88% -10%, rgba(144, 89, 78, .35), transparent 70%);
  pointer-events: none;
}
.article-page .article-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 260px at 6% 118%, rgba(144, 89, 78, .22), transparent 72%);
  pointer-events: none;
}
.article-page .article-cover__inner { max-width: 900px; margin: auto; position: relative; z-index: 1; }
.article-page .article-return {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 26px; color: #eed5cf; font-size: 14px; font-weight: 700;
  text-decoration: none; transition: transform .25s, color .25s, gap .25s;
}
.article-page .article-return i { transition: transform .25s; }
.article-page .article-return:hover { color: #fff; transform: translateX(-4px); }
.article-page .article-return:hover i { transform: translateX(-3px); }
.article-page .article-tag {
  display: inline-flex; padding: 7px 12px; border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px; color: #edc9c1; font-size: 12px; font-weight: 800;
  letter-spacing: 1.4px; text-transform: uppercase;
  transition: background .25s, border-color .25s, transform .25s;
}
.article-page .article-tag:hover {
  background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); transform: translateY(-2px);
}
.article-page .article-cover h1 {
  max-width: 850px; margin: 18px 0; color: #fff;
  font-size: clamp(36px, 5vw, 62px); line-height: 1.08; letter-spacing: -1.4px;
}
.article-page .article-intro { max-width: 700px; margin: 0; color: #ddd2ce; font-size: 18px; line-height: 1.72; }
.article-page .article-byline {
  display: flex; gap: 20px; flex-wrap: wrap; margin-top: 26px;
  padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16);
  color: #f0cfc8; font-size: 13px; font-weight: 600;
}
.article-page .article-byline span { transition: color .25s; }
.article-page .article-byline span:hover { color: #fff; }
.article-page .article-byline i { margin-right: 6px; color: #d9a89c; }

/* ---------- In-page quick nav (table of contents) ---------- */
.article-page .article-toc {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,253,250,.92); backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid #e8dfda;
}
.article-page .article-toc__inner {
  max-width: 900px; margin: auto; display: flex; gap: 6px;
  overflow-x: auto; padding: 14px 15px; scrollbar-width: none;
}
.article-page .article-toc__inner::-webkit-scrollbar { display: none; }
.article-page .article-toc a {
  flex: none; padding: 8px 14px; border-radius: 999px;
  color: #594e4a; font-size: 13px; font-weight: 700;
  text-decoration: none; white-space: nowrap;
  transition: background .25s, color .25s, transform .25s;
}
.article-page .article-toc a:hover { background: #f2e5e1; color: #90594E; transform: translateY(-2px); }

/* ---------- Body ---------- */
.article-page .article-layout { max-width: 1120px; margin: 0 auto; padding: 62px 15px 88px; }
.article-page .article-body { max-width: 760px; margin: auto; }
.article-page .article-body > p { color: #655956; font-size: 17px; line-height: 1.82; }
.article-page .article-body h2 {
  scroll-margin-top: 76px;
  margin: 50px 0 16px; font-size: clamp(26px, 3.1vw, 34px);
  line-height: 1.22; letter-spacing: -.4px; color: #231d1b;
  position: relative; padding-left: 18px;
}
.article-page .article-body h2::before {
  content: ""; position: absolute; left: 0; top: .18em; bottom: .18em;
  width: 4px; border-radius: 3px; background: #90594E;
}
.article-page .article-body h2:first-child { margin-top: 0; }

/* ---------- Takeaways ---------- */
.article-page .article-takeaways {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 34px 0;
}
.article-page .takeaway {
  padding: 22px; border: 1px solid #e8dfda; border-radius: 8px; background: #fff;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.article-page .takeaway:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 32px rgba(71,47,41,.12);
  border-color: #d9beb7;
}
.article-page .takeaway i {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 15px;
  border-radius: 8px; background: #f2e5e1; color: #90594E; font-size: 17px;
  transition: transform .35s, background .3s, color .3s;
}
.article-page .takeaway:hover i {
  transform: scale(1.12) rotate(-6deg);
  background: #90594E; color: #fff;
}
.article-page .takeaway h3 { margin: 0 0 8px; font-size: 18px; transition: color .25s; }
.article-page .takeaway:hover h3 { color: #90594E; }
.article-page .takeaway p { margin: 0; font-size: 14px; line-height: 1.65; color: #746967; }

/* ---------- Stat strip ---------- */
.article-page .article-stats {
  display: flex; gap: 28px; flex-wrap: wrap;
  margin: 40px 0; padding: 26px 28px; border-radius: 10px;
  background: #2b2422; color: #fff;
}
.article-page .article-stats div { min-width: 120px; transition: transform .3s; }
.article-page .article-stats div:hover { transform: translateY(-4px); }
.article-page .article-stats strong { display: block; font-size: 28px; color: #edc9c1; letter-spacing: -.5px; transition: color .25s; }
.article-page .article-stats div:hover strong { color: #fff; }
.article-page .article-stats small { display: block; margin-top: 3px; font-size: 13px; color: #cdbfba; }

/* ---------- Info grid (contributing-factor cards) ---------- */
.article-page .info-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0 38px;
}
.article-page .info-card {
  padding: 22px; border: 1px solid #e8dfda; border-radius: 8px; background: #fff;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.article-page .info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 32px rgba(71,47,41,.12);
  border-color: #d9beb7;
}
.article-page .info-card i {
  display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 15px;
  border-radius: 8px; background: #f2e5e1; color: #90594E; font-size: 15px;
  transition: transform .35s, background .3s, color .3s;
}
.article-page .info-card:hover i {
  transform: scale(1.12) rotate(6deg);
  background: #90594E; color: #fff;
}
.article-page .info-card h3 { margin: 0 0 8px; color: #231d1b; font-size: 18px; transition: color .25s; }
.article-page .info-card:hover h3 { color: #90594E; }
.article-page .info-card p { margin: 0; color: #746967; font-size: 14px; line-height: 1.65; }

/* ---------- Lists ---------- */
.article-page .article-list { margin: 24px 0; padding: 0; list-style: none; }
.article-page .article-list li {
  position: relative; margin: 12px 0; padding: 6px 10px 6px 30px;
  border-radius: 6px;
  color: #655956; font-size: 16px; line-height: 1.6;
  transition: background .25s, color .25s, transform .25s;
}
.article-page .article-list li:hover {
  background: #f8f4f1;
  color: #231d1b;
  transform: translateX(4px);
}
.article-page .article-list li::before {
  content: "\f00c"; position: absolute; left: 8px; top: 10px; color: #90594E;
  font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 11px;
  transition: transform .25s;
}
.article-page .article-list li:hover::before { transform: scale(1.25); }

/* ---------- Callout ---------- */
.article-page .article-callout {
  margin-top: 46px; padding: 32px; border-left: 4px solid #90594E; border-radius: 0 10px 10px 0; background: #f8f4f1;
  transition: box-shadow .3s, transform .3s;
}
.article-page .article-callout:hover { box-shadow: 0 18px 34px rgba(71,47,41,.1); transform: translateY(-3px); }
.article-page .article-callout h2 { margin: 0 0 9px; font-size: 26px; padding-left: 0; }
.article-page .article-callout h2::before { content: none; }
.article-page .article-callout p { margin: 0 0 20px; color: #655956; }
.article-page .article-callout a {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 18px; border-radius: 5px;
  background: #90594E; color: #fff; font-size: 14px; font-weight: 800; text-decoration: none;
  transition: background .25s, transform .25s, box-shadow .25s;
}
.article-page .article-callout a:hover {
  background: #75463d; color: #fff; transform: translateX(3px);
  box-shadow: 0 10px 22px rgba(144,89,78,.32);
}
.article-page .article-callout a i { transition: transform .25s; }
.article-page .article-callout a:hover i { transform: translateX(4px); }

/* ---------- Related articles ---------- */
.article-page .article-related { background: #f8f4f1; padding: 70px 0 82px; border-top: 1px solid #e8dfda; }
.article-page .article-related .container { max-width: 1120px; margin: auto; }
.article-page .related-eyebrow {
  display: inline-flex; padding: 7px 13px; border-radius: 999px; background: #f2e5e1;
  color: #90594E; font-size: 12px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase;
}
.article-page .article-related h2 { margin: 14px 0 30px; font-size: clamp(26px, 3vw, 36px); color: #231d1b; letter-spacing: -.5px; }
.article-page .related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.article-page .related-card {
  display: flex; flex-direction: column; border: 1px solid #e8dfda; border-radius: 10px;
  background: #fff; overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.article-page .related-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 40px rgba(71,47,41,.16);
  border-color: #d9beb7;
}
.article-page .related-card__img {
  height: 150px; background-size: cover; background-position: center;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.article-page .related-card:hover .related-card__img { transform: scale(1.08); }
.article-page .related-card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.article-page .related-card__body > span:first-child {
  color: #90594E; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
}
.article-page .related-card__body h3 { margin: 9px 0 14px; font-size: 18px; line-height: 1.3; color: #231d1b; transition: color .25s; }
.article-page .related-card:hover .related-card__body h3 { color: #90594E; }
.article-page .related-card__link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 7px;
  color: #90594E; font-size: 13px; font-weight: 800;
  transition: gap .25s;
}
.article-page .related-card:hover .related-card__link { gap: 11px; }
.article-page .related-card--all {
  align-items: flex-start; justify-content: center; background: #2b2422; color: #fff;
  transition: background .3s, transform .3s, box-shadow .3s;
}
.article-page .related-card--all:hover { background: #352b28; }
.article-page .related-card--all .related-card__body { justify-content: center; height: 100%; }
.article-page .related-card--all h3 { color: #fff; }
.article-page .related-card--all:hover h3 { color: #f0cfc8; }
.article-page .related-card--all .related-card__link { color: #edc9c1; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .article-page .info-grid,
  .article-page .article-takeaways,
  .article-page .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .article-page .article-cover { padding: 56px 0 46px; }
  .article-page .article-cover h1 { font-size: 34px; }
  .article-page .article-layout { padding: 46px 20px 64px; }
  .article-page .article-body > p { font-size: 16px; }
  .article-page .info-grid,
  .article-page .article-takeaways,
  .article-page .related-grid { grid-template-columns: 1fr; }
  .article-page .article-stats { gap: 18px 26px; }
  .article-page .article-toc { position: static; }
}
