/* ============================================================
   article.css · Pillar pages, glossary, comparison pages
   Inherits color/font tokens from styles.css
   ============================================================ */

.article-shell {
  background: var(--bg-0);
  color: var(--ivory);
  min-height: 100vh;
}

/* ===== Hero ===== */
.art-hero {
  position: relative;
  padding: clamp(110px, 14vh, 170px) 0 clamp(56px, 8vh, 96px);
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(26, 155, 215, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
  border-bottom: 1px solid var(--line);
}

.art-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 900px;
}

.art-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate-2);
}
.art-crumbs a { color: var(--slate-2); transition: color .2s; }
.art-crumbs a:hover { color: var(--signal-soft); }
.art-crumbs .sep { color: var(--line-2); }
.art-crumbs .current { color: var(--gold-bright); }

.art-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.art-eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--signal);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--signal-glow);
}

.art-h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--ivory);
  margin: 0;
  text-wrap: balance;
}
.art-h1 .gold { color: var(--gold-bright); }
.art-h1 .signal { color: var(--signal-soft); }

.art-lede {
  font-size: clamp(19px, 1.4vw, 23px);
  line-height: 1.55;
  color: var(--ivory-dim);
  max-width: 66ch;
  margin: 0;
  font-weight: 400;
}

.art-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-2);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.art-meta b { color: var(--ivory); font-weight: 500; }
.art-meta .dot { color: var(--line-2); }

/* ===== Body layout ===== */
.art-body {
  padding: clamp(48px, 7vh, 88px) 0 clamp(60px, 8vh, 100px);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(40px, 5vw, 80px);
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

@media (max-width: 880px) {
  .art-body {
    grid-template-columns: 1fr;
  }
  .art-toc { display: none; }
}

/* ===== TOC ===== */
.art-toc {
  position: sticky;
  top: 96px;
  align-self: start;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
}
.art-toc h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0 0 14px;
  font-weight: 500;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.art-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: tocstep;
}
.art-toc li {
  counter-increment: tocstep;
  margin: 10px 0;
  display: flex;
  gap: 10px;
}
.art-toc li::before {
  content: counter(tocstep, decimal-leading-zero);
  color: var(--signal);
  font-size: 11px;
  flex: 0 0 auto;
  padding-top: 2px;
}
.art-toc a {
  color: var(--ivory-dim);
  text-decoration: none;
  line-height: 1.45;
  transition: color .2s;
  font-size: 13px;
  letter-spacing: 0.01em;
  font-family: var(--font-body);
}
.art-toc a:hover { color: var(--signal-soft); }

/* ===== Prose ===== */
.art-prose {
  max-width: 70ch;
  font-size: 17.5px;
  line-height: 1.72;
  color: var(--ivory-dim);
}

.art-prose > section {
  scroll-margin-top: 90px;
  padding-block: 28px 8px;
}
.art-prose > section + section {
  border-top: 1px solid var(--line);
  margin-top: 28px;
}

.art-prose h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.2vw, 34px);
  line-height: 1.2;
  color: var(--ivory);
  margin: 16px 0 18px;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.art-prose h2 .num {
  font-family: var(--font-mono);
  font-size: 0.42em;
  color: var(--gold-bright);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.art-prose h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.5vw, 24px);
  color: var(--ivory);
  margin: 32px 0 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.art-prose p {
  margin: 0 0 18px;
  text-wrap: pretty;
}

.art-prose p > strong { color: var(--ivory); font-weight: 600; }
.art-prose p > em { color: var(--gold-bright); font-style: normal; }

.art-prose a {
  color: var(--signal-soft);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
  transition: text-decoration-color .2s;
}
.art-prose a:hover { text-decoration-color: var(--signal-soft); }

.art-prose ul, .art-prose ol {
  margin: 0 0 22px;
  padding-inline-start: 26px;
}
.art-prose li {
  margin: 8px 0;
  line-height: 1.65;
}
.art-prose ol > li::marker {
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.92em;
}
.art-prose ul > li::marker { color: var(--signal); }

/* Callout */
.art-callout {
  margin: 28px 0;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-right: 3px solid var(--gold);
  background: linear-gradient(135deg, rgba(198, 154, 69, 0.05), transparent 60%);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ivory);
}
.art-callout .lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 10px;
}

.art-pull {
  border-right: 2px solid var(--gold);
  padding: 6px 18px 6px 0;
  margin: 24px 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.35;
  color: var(--ivory);
  font-weight: 400;
}

/* Step list (for HowTo content) */
.art-steps {
  list-style: none;
  margin: 28px 0;
  padding: 0;
  counter-reset: stp;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.art-steps li {
  counter-increment: stp;
  padding: 20px 24px 20px 24px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  align-items: start;
}
.art-steps li::before {
  content: counter(stp, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--gold-bright);
  letter-spacing: 0.05em;
  align-self: center;
}
.art-steps li h4 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ivory);
  margin: 0 0 6px;
  font-weight: 600;
}
.art-steps li p {
  margin: 0;
  color: var(--ivory-dim);
  font-size: 15.5px;
  line-height: 1.6;
}
.art-steps li .q {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 8px;
}

/* Comparison table */
.art-compare {
  border: 1px solid var(--line);
  margin: 28px 0;
  font-size: 15.5px;
}
.art-compare .row {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  border-bottom: 1px solid var(--line);
}
.art-compare .row:last-child { border-bottom: none; }
.art-compare .row > div {
  padding: 16px 20px;
  border-left: 1px solid var(--line);
}
.art-compare .row > div:first-child { border-left: none; }
.art-compare .row.head > div {
  background: var(--bg-2);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory);
}
.art-compare .row.head > div:nth-child(2) { color: var(--slate-2); }
.art-compare .row.head > div:nth-child(3) { color: var(--gold-bright); }
.art-compare .row .axis {
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.art-compare .row .left  { color: var(--slate-2); }
.art-compare .row .right { color: var(--ivory); }

@media (max-width: 720px) {
  .art-compare .row {
    grid-template-columns: 1fr;
  }
  .art-compare .row > div { border-left: none; border-top: 1px solid var(--line); }
  .art-compare .row > div:first-child { border-top: none; }
}

/* Glossary list */
.glossary-list {
  display: grid;
  gap: 20px;
}
.glossary-item {
  padding: 22px 24px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  scroll-margin-top: 96px;
}
.glossary-item h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0 0 8px;
  color: var(--ivory);
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.glossary-item h3 .en {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--signal);
  text-transform: uppercase;
  font-weight: 500;
}
.glossary-item p {
  margin: 0;
  color: var(--ivory-dim);
  font-size: 15.5px;
  line-height: 1.65;
}

.glossary-az {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 20px 0 36px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.glossary-az a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
  color: var(--ivory-dim);
  text-decoration: none;
  transition: all .15s;
}
.glossary-az a:hover {
  border-color: var(--signal);
  color: var(--signal-soft);
  background: rgba(26, 155, 215, 0.05);
}

/* FAQ inline (reused styling, lighter than os-window) */
.art-faq {
  margin: 36px 0 24px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.art-faq h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2vw, 30px);
  color: var(--ivory);
  margin: 0 0 22px;
}
.art-faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.art-faq details summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ivory);
  font-weight: 500;
}
.art-faq details summary::-webkit-details-marker { display: none; }
.art-faq details summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--gold-bright);
  font-size: 22px;
  transition: transform .2s;
}
.art-faq details[open] summary::after { content: "−"; }
.art-faq details .a {
  margin-top: 14px;
  color: var(--ivory-dim);
  font-size: 15.5px;
  line-height: 1.65;
}

/* Related cards */
.art-related {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(50px, 7vh, 80px) 0;
}
.art-related .head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}
.art-related h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  margin: 0;
  color: var(--ivory);
}
.art-related .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 48px);
}
.art-rel-card {
  display: block;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  text-decoration: none;
  color: inherit;
  transition: all .2s;
  position: relative;
}
.art-rel-card:hover {
  border-color: var(--signal);
  background: var(--bg-3);
  transform: translateY(-2px);
}
.art-rel-card .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 12px;
}
.art-rel-card h4 {
  font-family: var(--font-display);
  font-size: 19px;
  margin: 0 0 8px;
  color: var(--ivory);
  font-weight: 600;
  line-height: 1.3;
}
.art-rel-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ivory-dim);
  margin: 0 0 14px;
}
.art-rel-card .arrow {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--gold-bright);
}

/* CTA strip */
.art-cta {
  background: linear-gradient(135deg, var(--bg-2), var(--bg-1));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(48px, 7vh, 80px) 0;
}
.art-cta .inner {
  max-width: 1000px;
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
@media (max-width: 720px) {
  .art-cta .inner { grid-template-columns: 1fr; }
}
.art-cta h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.2vw, 32px);
  margin: 0 0 8px;
  color: var(--ivory);
  line-height: 1.2;
  text-wrap: balance;
}
.art-cta p {
  margin: 0;
  color: var(--ivory-dim);
  font-size: 16px;
  line-height: 1.55;
  max-width: 60ch;
}

/* Article footer */
.art-footer {
  background: var(--bg-0);
  border-top: 1px solid var(--line);
  padding: 40px 0 30px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-2);
  text-align: center;
}
.art-footer a { color: var(--ivory-dim); }
.art-footer a:hover { color: var(--gold-bright); }
.art-footer .line {
  margin: 0 12px;
  color: var(--line-2);
}
