/* article.css — extension to service.css for article pages */

.s-article {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 18px 64px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--s-ink-2);
}
@container spage (min-width: 640px) {
  .s-article { padding: 56px 28px 80px; font-size: 17px; }
}
@container spage (min-width: 960px) {
  .s-article { padding: 80px 40px 96px; }
}

.s-art-head { margin-bottom: 32px; }
.s-art-h1 {
  font-family: var(--s-display);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--s-ink);
  margin: 0 0 18px;
  text-wrap: balance;
}
@container spage (min-width: 640px) { .s-art-h1 { font-size: 52px; } }
@container spage (min-width: 960px) { .s-art-h1 { font-size: 64px; } }
.s-art-lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--s-ink-2);
  margin: 0 0 16px;
  text-wrap: pretty;
}
.s-art-lead strong { color: var(--s-ink); }
.s-art-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-family: var(--s-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--s-ink-mute);
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--s-line);
}

.s-disclosure {
  background: var(--s-paper);
  border: 1px solid var(--s-line-2);
  border-left: 3px solid var(--s-accent);
  border-radius: 4px;
  padding: 16px 18px;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.55;
}
.s-disclosure p { margin: 0 0 10px; }
.s-disclosure p:last-child { margin-bottom: 0; }
.s-disclosure strong { color: var(--s-ink); }
.s-disclosure a { color: var(--s-accent); text-decoration: underline; }

.s-art-hero {
  margin: 32px 0 28px;
  background: var(--s-paper-2);
  border-radius: 4px;
  overflow: hidden;
}
.s-art-hero img {
  width: 100%;
  height: auto;
  display: block;
}
.s-art-hero figcaption {
  font-family: var(--s-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--s-ink-mute);
  padding: 10px 14px;
  background: var(--s-paper);
}

.s-toc {
  background: var(--s-paper);
  border: 1px solid var(--s-line);
  border-radius: 4px;
  padding: 22px 24px;
  margin: 28px 0;
}
.s-toc-h {
  font-family: var(--s-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--s-accent);
  margin: 0 0 12px;
  font-weight: 600;
}
.s-toc ol {
  list-style: decimal-leading-zero inside;
  padding: 0;
  margin: 0;
  columns: 1;
}
@container spage (min-width: 640px) { .s-toc ol { columns: 2; column-gap: 28px; } }
.s-toc li {
  font-size: 14px;
  padding: 4px 0;
  break-inside: avoid;
}
.s-toc a { color: var(--s-ink); text-decoration: none; }
.s-toc a:hover { color: var(--s-accent); text-decoration: underline; }

.s-takeaways {
  background: var(--s-ink);
  color: var(--s-bg);
  border-radius: 4px;
  padding: 28px;
  margin: 32px 0;
}
.s-takeaways h2 {
  font-family: var(--s-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--s-bg);
}
.s-takeaways ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.s-takeaways li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(236, 235, 229, 0.92);
}
.s-takeaways li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--s-accent);
  border-radius: 50%;
}
.s-takeaways strong { color: var(--s-bg); }

.s-art-section {
  margin: 48px 0;
  scroll-margin-top: 80px;
}
.s-art-section h2 {
  font-family: var(--s-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--s-ink);
  margin: 0 0 18px;
  padding-top: 12px;
  border-top: 2px solid var(--s-ink);
  text-wrap: balance;
}
@container spage (min-width: 640px) { .s-art-section h2 { font-size: 34px; } }
.s-art-section h3 {
  font-family: var(--s-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--s-ink);
  margin: 28px 0 10px;
}
.s-art-section p {
  margin: 0 0 16px;
}
.s-art-section em { color: var(--s-accent); font-style: italic; }
.s-art-section a {
  color: var(--s-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.s-art-section a:hover { background: var(--s-accent); color: var(--s-bg); text-decoration: none; }

.s-table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 14px;
  border: 1px solid var(--s-line-2);
  background: var(--s-bg);
}
.s-table th, .s-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--s-line);
  vertical-align: top;
}
.s-table th {
  background: var(--s-paper);
  font-family: var(--s-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--s-ink);
  font-weight: 600;
}
.s-table tbody tr:hover { background: var(--s-paper); }

.s-warning {
  background: #fff4e6;
  border: 1px solid #f0c891;
  border-left: 3px solid #b25928;
  border-radius: 4px;
  padding: 16px 18px;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.55;
}
.s-warning p { margin: 0; color: var(--s-ink); }
.s-warning a { color: var(--s-accent); text-decoration: underline; }

.s-checklist {
  list-style: none;
  padding: 0;
  margin: 22px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: chk;
}
.s-checklist li {
  position: relative;
  padding: 14px 16px 14px 56px;
  background: var(--s-paper);
  border-radius: 4px;
  font-size: 14.5px;
  line-height: 1.55;
  counter-increment: chk;
}
.s-checklist li::before {
  content: counter(chk, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 14px;
  font-family: var(--s-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--s-accent);
  font-weight: 600;
}
.s-checklist strong { color: var(--s-ink); }

.s-glossary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px 18px;
  margin: 22px 0;
  padding: 22px;
  background: var(--s-paper);
  border-radius: 4px;
  border: 1px solid var(--s-line);
}
@container spage (min-width: 640px) {
  .s-glossary { grid-template-columns: 180px 1fr; }
}
.s-glossary dt {
  font-family: var(--s-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--s-ink);
  padding-top: 6px;
  border-top: 1px solid var(--s-line);
}
.s-glossary dt:first-child, .s-glossary dt:first-of-type { border-top: 0; padding-top: 0; }
.s-glossary dd {
  margin: 0;
  font-size: 14px;
  color: var(--s-ink-2);
  line-height: 1.55;
  padding-top: 6px;
  border-top: 1px solid var(--s-line);
}
.s-glossary dd:first-of-type { border-top: 0; padding-top: 0; }

.s-faq-dl {
  margin: 22px 0;
  padding: 0;
}
.s-faq-dl dt {
  font-family: var(--s-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--s-ink);
  margin: 22px 0 8px;
  padding-top: 18px;
  border-top: 1px solid var(--s-line);
}
.s-faq-dl dt:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.s-faq-dl dd {
  margin: 0 0 0;
  font-size: 15px;
  color: var(--s-ink-2);
  line-height: 1.6;
}

.s-related {
  list-style: none;
  padding: 0;
  margin: 22px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.s-related li {
  padding: 14px 16px;
  background: var(--s-paper);
  border-radius: 4px;
  font-size: 14.5px;
  line-height: 1.55;
  border-left: 3px solid var(--s-accent);
}

.s-art-foot {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 2px solid var(--s-ink);
}
.s-art-byline {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.s-art-byline-av {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 6px;
  background: var(--s-ink);
  color: var(--s-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--s-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
}
.s-art-byline strong {
  font-family: var(--s-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--s-ink);
  display: block;
  margin-bottom: 4px;
}
.s-art-byline span {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--s-ink-mute);
}
.s-art-update {
  padding: 14px 16px;
  background: var(--s-paper);
  border-radius: 4px;
  font-size: 13px;
  color: var(--s-ink-mute);
  line-height: 1.5;
}
.s-art-update p { margin: 0; }
.s-art-update strong { color: var(--s-ink); }

/* Decorative hero block — used when no AI image is available */
.s-art-hero-deco {
  position: relative;
  margin: 32px 0 28px;
  height: 200px;
  border-radius: 4px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 70% at 30% 30%, rgba(178, 89, 40, 0.45), transparent 60%),
    radial-gradient(ellipse 60% 60% at 80% 70%, rgba(31, 70, 89, 0.35), transparent 60%),
    var(--s-ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.s-art-hero-deco::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg,
    transparent 0 18px,
    rgba(236, 235, 229, 0.04) 18px 19px);
}
.s-art-hero-deco-mark {
  position: relative;
  z-index: 1;
  font-family: var(--s-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(236, 235, 229, 0.55);
  padding: 6px 14px;
  border: 0.5px solid rgba(236, 235, 229, 0.25);
  border-radius: 999px;
}
@container spage (min-width: 640px) { .s-art-hero-deco { height: 280px; } }
@container spage (min-width: 960px) { .s-art-hero-deco { height: 360px; } }
