/* ════════════════════════════════════════════════════════════════
   ARTICLE LAYER — blog post pages
   ────────────────────────────────────────────────────────────────
   Load order on every post:  style.css → article.css → glass.css
   Holds only what style.css does not: the page hero, the article
   body, the table of contents, and the skim devices (highlight,
   underline, key takeaways, checklists, stat rows).
   ════════════════════════════════════════════════════════════════ */

/* ── Page hero ────────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(165deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  padding: 120px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 800px 500px at 50% 100%, rgba(201, 168, 76, 0.07) 0%, transparent 70%);
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
}
.page-hero-inner { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; }
.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.3);
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 28px;
  animation: fadeInDown 0.8s 0.2s both;
}
.page-hero-badge-text {
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(30px, 4.5vw, 54px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s 0.4s both;
}
.page-hero h1 .gold { color: var(--gold); }
.page-hero-sub {
  font-size: clamp(15px, 1.8vw, 19px);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  max-width: 660px;
  margin: 0 auto;
  animation: fadeInUp 0.8s 0.6s both;
}

/* ── Article shell ────────────────────────────────────────────── */
.article-section { padding: 56px 24px 100px; }
.article-inner { max-width: 760px; margin: 0 auto; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--navy-dim);
  flex-wrap: wrap;
}
.article-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-ink, #7A5C1C);
  background: rgba(201, 168, 76, 0.12);
  padding: 6px 14px;
  border-radius: 100px;
}
.article-date,
.article-reading-time { font-size: 14px; color: var(--ink-muted, rgba(20, 30, 52, 0.7)); }

/* ── Table of contents ───────────────────────────────────────── */
.article-toc {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.5) 100%);
  border: 1px solid rgba(201, 168, 76, 0.28);
  border-radius: 16px;
  padding: 26px 30px;
  margin: 0 0 40px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 30px -16px rgba(27, 42, 74, 0.2);
}
.article-toc-title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-ink, #7A5C1C);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.article-toc-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(201, 168, 76, 0.35);
}
.article-toc ol {
  list-style: none;
  counter-reset: toc;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.article-toc li { counter-increment: toc; margin: 0; }
.article-toc a {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 15.5px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.article-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-ink, #7A5C1C);
  flex-shrink: 0;
  min-width: 22px;
}
.article-toc a:hover {
  background: rgba(201, 168, 76, 0.12);
  color: var(--navy-dark);
}

/* ── Body copy ───────────────────────────────────────────────── */
.article-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
  margin: 52px 0 18px;
  position: relative;
  padding-bottom: 12px;
  scroll-margin-top: 110px;
}
.article-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}
.article-content h3 {
  font-family: var(--font-heading);
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin: 34px 0 12px;
  scroll-margin-top: 110px;
}
.article-content p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-body, rgba(20, 30, 52, 0.78));
  margin-bottom: 20px;
}
.article-content ul,
.article-content ol { margin: 0 0 22px 22px; }
.article-content li {
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--ink-body, rgba(20, 30, 52, 0.78));
  margin-bottom: 10px;
}
.article-content strong { color: var(--ink, rgba(20, 30, 52, 0.92)); font-weight: 700; }
.article-content em { font-style: italic; }

/* Underline — brand gold rule under the words, not a browser default */
.article-content u,
.article-content .ul {
  text-decoration: none;
  border-bottom: 2px solid rgba(201, 168, 76, 0.75);
  padding-bottom: 1px;
}

/* Highlight — the marker pen. Gold wash, navy ink, still 10:1 */
.article-content mark {
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.16) 40%, rgba(201, 168, 76, 0.38) 40%);
  color: var(--ink, rgba(20, 30, 52, 0.92));
  padding: 1px 3px;
  border-radius: 2px;
  font-weight: 600;
}

.article-content a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.article-content a:hover { color: var(--gold-ink, #7A5C1C); }

/* ── Tables ──────────────────────────────────────────────────── */
.article-table-wrap { overflow-x: auto; margin: 26px 0 30px; }
.article-content table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  min-width: 420px;
}
.article-content table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  padding: 14px 18px;
  text-align: left;
}
.article-content table td {
  padding: 12px 18px;
  font-size: 15px;
  color: var(--ink-body, rgba(20, 30, 52, 0.78));
  border-bottom: 1px solid var(--navy-dim);
}
.article-content table tr:nth-child(even) td { background: rgba(240, 230, 211, 0.45); }
.article-content table tr:last-child td { border-bottom: none; }

/* ── Callouts ────────────────────────────────────────────────── */
.article-content .info-box {
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-left: 4px solid var(--gold);
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  margin: 30px 0;
}
.article-content .info-box p { margin-bottom: 0; font-size: 16px; }
.article-content .info-box p + p { margin-top: 12px; }

.article-content .takeaway {
  background: linear-gradient(150deg, rgba(27, 42, 74, 0.95) 0%, rgba(15, 26, 48, 0.9) 100%);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 34px 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 16px 40px -20px rgba(15, 26, 48, 0.5);
}
.article-content .takeaway-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 10px;
  display: block;
}
.article-content .takeaway p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 16.5px;
  margin-bottom: 0;
}
.article-content .takeaway strong { color: var(--white); }
.article-content .takeaway mark {
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.22) 40%, rgba(201, 168, 76, 0.44) 40%);
  color: var(--white);
}
.article-content .takeaway u,
.article-content .takeaway .ul { border-bottom-color: var(--gold); }
/* Navy body links would vanish on the navy takeaway panel */
.article-content .takeaway a {
  color: var(--gold-light);
  text-decoration-color: rgba(223, 194, 119, 0.6);
}
.article-content .takeaway a:hover { color: #FFFFFF; }

/* ── Checklist ───────────────────────────────────────────────── */
.article-content .checklist { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.article-content .checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.42) 100%);
  border: 1px solid rgba(27, 42, 74, 0.1);
  border-radius: 10px;
  padding: 13px 16px;
  margin: 0;
  font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.article-content .checklist li > span { flex: 1; min-width: 0; line-height: 1.7; }
.article-content .checklist li::before {
  content: '';
  width: 19px;
  height: 19px;
  border-radius: 5px;
  flex-shrink: 0;
  margin-top: 4px;
  background:
    linear-gradient(45deg, transparent 44%, var(--gold) 44%, var(--gold) 56%, transparent 56%) no-repeat 3px 8px / 8px 8px,
    linear-gradient(-45deg, transparent 44%, var(--gold) 44%, var(--gold) 56%, transparent 56%) no-repeat 7px 4px / 11px 11px,
    rgba(201, 168, 76, 0.14);
  border: 1px solid rgba(201, 168, 76, 0.4);
}

/* ── Stat row ────────────────────────────────────────────────── */
.article-content .stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 30px 0 34px;
}
.article-content .stat-cell {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.46) 100%);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 14px;
  padding: 20px 18px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.article-content .stat-cell .v {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  display: block;
}
.article-content .stat-cell .l {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-muted, rgba(20, 30, 52, 0.7));
  margin-top: 6px;
  display: block;
}

/* ── Figures ─────────────────────────────────────────────────── */
.article-content figure { margin: 32px 0; }
.article-content figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(27, 42, 74, 0.1);
  box-shadow: 0 18px 44px -22px rgba(15, 26, 48, 0.4);
}
.article-content figcaption {
  font-size: 13.5px;
  color: var(--ink-muted, rgba(20, 30, 52, 0.7));
  margin-top: 10px;
  text-align: center;
  font-style: italic;
}

/* ── Article FAQ ─────────────────────────────────────────────── */
.article-faq { margin-top: 52px; }
.article-faq-item {
  border: 1px solid rgba(27, 42, 74, 0.12);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 12px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.74) 0%, rgba(255, 255, 255, 0.44) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.article-faq-item h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
  line-height: 1.45;
}
.article-faq-item p { font-size: 16px; margin-bottom: 0; }

/* ── Next reads ──────────────────────────────────────────────── */
.article-next { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--navy-dim); }
.article-next h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--dark);
  margin: 0 0 18px;
  padding: 0;
}
.article-next h2::after { display: none; }
.article-next-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.article-next-grid a {
  display: block;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(27, 42, 74, 0.12);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.4) 100%);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  line-height: 1.5;
  transition: border-color 0.2s, transform 0.2s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.article-next-grid a:hover { border-color: rgba(201, 168, 76, 0.6); transform: translateY(-2px); }
/* Higher specificity so the grid also wins inside the four original posts,
   which carry their own page-local .article-content a rule. */
.article-content .article-next-grid a { text-decoration: none; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .page-hero { padding: 92px 20px 52px; }
  .page-hero h1 { font-size: clamp(26px, 6vw, 40px); }
}
@media (max-width: 768px) {
  .article-section { padding: 44px 20px 76px; }
  .article-toc { padding: 22px 20px; }
  .article-content h2 { font-size: clamp(22px, 5vw, 28px); margin-top: 44px; }
  .article-content .takeaway { padding: 20px 20px; }
}
@media (max-width: 480px) {
  .article-section { padding: 36px 16px 60px; }
  .article-content p { font-size: 16px; }
  .article-content li { font-size: 15.5px; }
  .article-toc a { font-size: 15px; }
  .article-content .stat-cell .v { font-size: 25px; }
}
