/* =========================================================
   LEMAN CYBER SECURITY — Articles / Ressources
   Editorial layout, sticky TOC, luxe-cabinet typography
   ========================================================= */

/* ============================================
   READING PROGRESS BAR
   ============================================ */
.read-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--brand);
  z-index: 200;
  transition: width 0.08s linear;
}

/* ============================================
   PAGE STRUCTURE
   ============================================ */
.art-page {
  padding-top: clamp(5rem, 8vw, 7rem);  /* clears fixed nav */
}

/* ============================================
   BREADCRUMB
   ============================================ */
.crumb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.crumb a {
  color: var(--ink-3);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.crumb a:hover {
  color: var(--brand-ink);
  border-bottom-color: var(--brand-line);
}
.crumb-sep {
  color: var(--ink-4);
}
.crumb-cur {
  color: var(--ink-2);
}

/* ============================================
   ARTICLE HEADER
   ============================================ */
.art-head {
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  position: relative;
}
.art-head .eyebrow {
  margin-bottom: 1.25rem;
}
.art-title {
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin-bottom: 1.5rem;
}
.art-lede {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.55;
  font-weight: 300;
  color: var(--ink-2);
  max-width: 56ch;
  text-wrap: pretty;
}

/* meta row : author / date / reading time */
.art-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.art-meta-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.art-meta-item strong {
  color: var(--ink);
  font-weight: 500;
}
.art-meta-dot {
  width: 4px; height: 4px;
  background: var(--brand);
  border-radius: 50%;
}
.art-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.3rem 0.7rem;
  background: var(--brand-soft);
  color: var(--brand-ink);
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
}

/* ============================================
   TWO-COLUMN LAYOUT : SIDEBAR (TOC) + CONTENT
   ============================================ */
.art-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

/* ----- TOC ----- */
.art-toc {
  position: sticky;
  top: 6rem;
  align-self: start;
}
.art-toc-h {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.art-toc-h::before {
  content: '';
  width: 18px; height: 1px;
  background: var(--brand);
}
.art-toc ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-left: 0;
  border-left: 1px solid var(--line);
}
.art-toc li {
  padding-left: 1rem;
  position: relative;
}
.art-toc a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.45;
  display: block;
  transition: color 0.15s;
}
.art-toc a:hover { color: var(--ink); }
.art-toc a.is-on {
  color: var(--brand-ink);
}
.art-toc a.is-on::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 0.1em;
  bottom: 0.1em;
  width: 1px;
  background: var(--brand);
}

/* ============================================
   ARTICLE BODY
   ============================================ */
.art-body {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
}
.art-body > * + * { margin-top: 1.35rem; }

.art-body p {
  max-width: none;
  color: var(--ink-2);
}

/* drop cap on the very first paragraph */
.art-body > .lede-p {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 300;
  text-wrap: pretty;
}
.art-body > .lede-p::first-letter {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--brand-ink);
  font-style: italic;
  float: left;
  font-size: 4.4rem;
  line-height: 0.85;
  margin: 0.4rem 0.65rem 0 -0.05rem;
}

.art-body h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.15;
  color: var(--ink);
  margin-top: 3.25rem;
  position: relative;
  padding-top: 2rem;
  letter-spacing: -0.015em;
  scroll-margin-top: 6rem;
}
.art-body h2::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 56px;
  height: 1px;
  background: var(--brand);
}
.art-body h2 .h2-n {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--brand);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.6rem;
  font-style: normal;
}

.art-body h3 {
  font-size: clamp(1.2rem, 1.7vw, 1.35rem);
  line-height: 1.25;
  color: var(--ink);
  margin-top: 2.25rem;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  scroll-margin-top: 6rem;
}

.art-body em,
.art-body i { color: var(--brand-ink); font-style: italic; }
.art-body strong { color: var(--ink); font-weight: 500; }

/* links inside body */
.art-body a:not(.btn):not(.btn-link):not(.cta-card a) {
  color: var(--brand-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--brand-line);
  padding-bottom: 1px;
  transition: border-color 0.15s, color 0.15s;
}
.art-body a:not(.btn):not(.btn-link):not(.cta-card a):hover {
  border-bottom-color: var(--brand);
}

/* lists */
.art-body ul,
.art-body ol {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.art-body ul li,
.art-body ol li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--ink-2);
  line-height: 1.6;
}
.art-body ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.85em;
  width: 14px; height: 1px;
  background: var(--brand);
}
.art-body ol {
  counter-reset: ol;
}
.art-body ol li {
  counter-increment: ol;
  padding-left: 2.5rem;
}
.art-body ol li::before {
  content: counter(ol, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0.05em;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--brand);
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* ============================================
   CALLOUTS / INFO BOXES
   ============================================ */
.callout {
  margin-block: 2rem;
  padding: 1.5rem 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  border-left: 3px solid var(--brand);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.2rem;
  align-items: start;
}
.callout-glyph {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-ink);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 500;
  flex-shrink: 0;
}
.callout-body {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
}
.callout-body strong { display: block; margin-bottom: 0.35rem; color: var(--ink); font-weight: 500; font-family: var(--serif); font-size: 1.05rem; font-style: italic; }
.callout-body p { margin: 0; color: var(--ink-2); }
.callout-body > p + p { margin-top: 0.6rem; }

.callout.is-warn {
  border-left-color: var(--amber);
  background: oklch(0.98 0.02 70);
}
.callout.is-warn .callout-glyph {
  background: oklch(0.93 0.04 70);
  color: oklch(0.40 0.10 70);
}
.callout.is-critical {
  border-left-color: var(--red);
}
.callout.is-critical .callout-glyph {
  background: var(--brand-soft);
  color: var(--brand);
}
.callout.is-tip {
  border-left-color: var(--green);
  background: oklch(0.97 0.018 150);
}
.callout.is-tip .callout-glyph {
  background: oklch(0.92 0.04 150);
  color: oklch(0.35 0.09 150);
}

/* ============================================
   BIG NUMBERS / INLINE STATS
   ============================================ */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-card);
  margin-block: 2rem;
  overflow: hidden;
}
.stat-cell {
  padding: 1.5rem 1.4rem;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.stat-cell:last-child { border-right: none; }
.stat-n {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--brand-ink);
  font-style: italic;
  letter-spacing: -0.015em;
  line-height: 1;
}
.stat-lbl {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.4;
}
.stat-src {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-top: 0.2rem;
}

/* ============================================
   PULL QUOTE
   ============================================ */
.pull-quote {
  margin-block: 2.5rem;
  padding: 1rem 0 1rem 2rem;
  border-left: 3px solid var(--brand);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.4;
  color: var(--ink);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.01em;
  max-width: 56ch;
}
.pull-quote cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-style: normal;
}

/* ============================================
   COMPARISON TABLE (clean Swiss)
   ============================================ */
.art-table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 2rem;
  font-size: 14.5px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.art-table th,
.art-table td {
  padding: 0.95rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.art-table th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--bg-soft);
  font-weight: 500;
}
.art-table td {
  color: var(--ink-2);
  line-height: 1.55;
}
.art-table td strong { color: var(--ink); font-weight: 500; }
.art-table tr:last-child td { border-bottom: none; }
.art-table td.cell-strong {
  font-family: var(--serif);
  font-style: italic;
  color: var(--brand-ink);
  font-size: 15.5px;
}

/* ============================================
   STEP / NUMBERED LIST (vertical timeline)
   ============================================ */
.art-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-block: 2rem;
  border-left: 1px solid var(--line);
  padding-left: 0;
  list-style: none;
}
.art-step {
  position: relative;
  padding: 1.25rem 0 1.5rem 2rem;
  border-bottom: 1px solid var(--line);
}
.art-step:last-child { border-bottom: none; }
.art-step::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 1.6rem;
  width: 9px;
  height: 9px;
  background: var(--bg);
  border: 1.5px solid var(--brand);
  border-radius: 50%;
}
.art-step-n {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  display: block;
  margin-bottom: 0.4rem;
}
.art-step h4 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.art-step p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ============================================
   KEY TAKEAWAYS CARD
   ============================================ */
.key-card {
  margin-top: 4rem;
  padding: clamp(1.75rem, 3vw, 2.4rem);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  position: relative;
}
.key-card::before {
  content: '';
  position: absolute;
  top: -1px; left: 24px;
  width: 80px; height: 2px;
  background: var(--brand);
}
.key-card .eyebrow { margin-bottom: 1rem; }
.key-card h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.key-card h3 em { color: var(--brand-ink); }
.key-list {
  list-style: none;
  display: grid;
  gap: 0.9rem;
  padding: 0;
}
.key-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-2);
  padding: 0;
}
.key-list li::before { display: none; }
.key-list .k-n {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  flex-shrink: 0;
}

/* ============================================
   IN-ARTICLE CTA CARD
   ============================================ */
.cta-card {
  margin-top: 3.5rem;
  padding: clamp(2rem, 4vw, 2.75rem);
  background: var(--bg-ink);
  color: oklch(0.92 0.005 70);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 20%, oklch(0.48 0.16 25 / 0.18) 0%, transparent 50%);
  pointer-events: none;
}
.cta-card > * { position: relative; }
.cta-card .eyebrow {
  color: oklch(0.85 0.05 25);
  margin-bottom: 1rem;
}
.cta-card .eyebrow::before { background: oklch(0.85 0.05 25); }
.cta-card h3 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: oklch(0.96 0.005 70);
  margin-bottom: 0.9rem;
  line-height: 1.15;
}
.cta-card h3 em {
  color: oklch(0.82 0.07 25);
  font-style: italic;
}
.cta-card p {
  color: oklch(0.78 0.008 70);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 56ch;
  margin: 0 0 1.5rem 0;
}
.cta-card .btn-primary {
  background: var(--bg);
  color: var(--ink);
}
.cta-card .btn-primary:hover {
  background: var(--brand);
  color: #fff;
}
.cta-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  align-items: center;
}
.cta-card-actions .btn-link {
  color: oklch(0.85 0.05 25);
}
.cta-card-actions .btn-link:hover {
  border-bottom-color: oklch(0.85 0.05 25);
}

/* ============================================
   AUTHOR FOOTER (after the body)
   ============================================ */
.art-author {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.25rem;
  align-items: start;
}
.art-author-photo {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--bg-soft);
  overflow: hidden;
  border: 1px solid var(--line);
}
.art-author-photo img { width: 100%; height: 100%; object-fit: cover; }
.art-author-body {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.art-author-body strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 400;
  margin-bottom: 0.2rem;
}
.art-author-body em {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-style: normal;
  margin-bottom: 0.6rem;
}

/* ============================================
   SOURCES / REFERENCES
   ============================================ */
.art-sources {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.art-sources h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.art-sources h4::before {
  content: '';
  width: 18px; height: 1px;
  background: var(--brand);
}
.art-sources ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  counter-reset: src;
}
.art-sources li {
  counter-increment: src;
  position: relative;
  padding-left: 2.3rem;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-3);
}
.art-sources li::before {
  content: counter(src, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--brand);
  letter-spacing: 0.06em;
}
.art-sources a {
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.art-sources a:hover {
  color: var(--brand-ink);
  border-bottom-color: var(--brand-line);
}

/* ============================================
   RELATED ARTICLES
   ============================================ */
.related-sec {
  background: var(--bg-soft);
  padding-block: clamp(4rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
}
.related-sec .sec-h {
  margin-bottom: 2.5rem;
  max-width: var(--max-w);
}
.related-sec .sec-h h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.related-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.18s, transform 0.18s;
  position: relative;
  min-height: 200px;
}
.related-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.related-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
}
.related-tag::before {
  content: '';
  width: 16px; height: 1px;
  background: var(--brand);
}
.related-card h4 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.related-card h4 em { color: var(--brand-ink); }
.related-card p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0 0 1rem 0;
  flex: 1;
}
.related-arrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.18s;
}
.related-card:hover .related-arrow { gap: 12px; }

/* ============================================
   ARTICLE INDEX (ressources.html)
   ============================================ */
.idx-head {
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(3rem, 5vw, 4rem);
}
.idx-h {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  max-width: 18ch;
}
.idx-lede {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  font-weight: 300;
  color: var(--ink-2);
  max-width: 56ch;
}
.idx-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.idx-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  align-items: start;
  transition: padding 0.2s;
  position: relative;
}
.idx-row:hover {
  padding-left: 0.5rem;
}
.idx-n {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--brand);
  padding-top: 0.4rem;
}
.idx-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.idx-row .idx-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.2rem;
}
.idx-row h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
  line-height: 1.15;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.012em;
  max-width: 30ch;
}
.idx-row h2 em { color: var(--brand-ink); }
.idx-row p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 52ch;
  margin: 0;
}
.idx-row .idx-arrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-ink);
  padding-top: 0.4rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.18s;
  white-space: nowrap;
}
.idx-row:hover .idx-arrow { gap: 12px; }

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 920px) {
  .art-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-width: 0;
  }
  .art-toc {
    position: static;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    margin-bottom: 1rem;
  }
  .art-toc ol {
    border-left: none;
    padding-left: 0;
    flex-direction: column;
    gap: 0.4rem;
  }
  .art-toc li { padding-left: 0; }
  .art-toc a { font-size: 14px; }
  .art-toc a.is-on::before { display: none; }
  .art-toc a.is-on { color: var(--brand-ink); font-weight: 500; }

  .art-body {
    font-size: 16.5px;
    max-width: none;
    min-width: 0;
  }
  .art-body > .lede-p {
    font-size: 1.15rem;
  }
  .art-body > .lede-p::first-letter {
    font-size: 3.5rem;
    margin: 0.3rem 0.5rem 0 0;
  }

  .idx-row {
    grid-template-columns: 50px 1fr;
    gap: 1rem;
  }
  .idx-row .idx-arrow {
    grid-column: 2;
    padding-top: 0.4rem;
  }

  .stat-row {
    grid-template-columns: 1fr 1fr;
  }
  .stat-cell:nth-child(2n) { border-right: none; }
  .stat-cell {
    border-bottom: 1px solid var(--line);
  }
  .stat-cell:nth-last-child(-n+2) {
    border-bottom: none;
  }

  /* tables — wrap in scrollable container behaviour */
  .art-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    width: 100%;
  }
  .art-table thead,
  .art-table tbody { display: table; width: max-content; min-width: 100%; }
  .art-table tr { display: table-row; }
  .art-table th,
  .art-table td {
    display: table-cell;
    min-width: 140px;
    font-size: 13.5px;
    padding: 0.8rem 0.9rem;
  }
}

/* tablet narrow */
@media (max-width: 700px) {
  .stat-row { grid-template-columns: 1fr; }
  .stat-cell {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .stat-cell:last-child { border-bottom: none; }
  .stat-cell:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stat-cell:last-child { border-bottom: none; }

  .callout {
    padding: 1.25rem 1.25rem;
    gap: 0.8rem 1rem;
  }
  .pull-quote {
    padding-left: 1.25rem;
    font-size: 1.15rem;
  }
  .key-card { padding: 1.5rem 1.25rem; }
  .key-card h3 { font-size: 1.3rem; }
  .cta-card { padding: 1.75rem 1.25rem; }
  .cta-card h3 { font-size: 1.4rem; }

  .art-step {
    padding-left: 1.5rem;
  }

  .art-title {
    font-size: clamp(1.9rem, 7.5vw, 2.6rem);
    line-height: 1.05;
    letter-spacing: -0.015em;
  }
  .art-lede {
    font-size: 1.05rem;
  }

  .art-body h2 {
    font-size: clamp(1.4rem, 5vw, 1.75rem);
    padding-top: 1.6rem;
  }
  .art-body h2 .h2-n { font-size: 10px; }
  .art-body h3 { font-size: 1.1rem; }

  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .crumb { font-size: 10px; gap: 0.4rem; }

  .idx-row {
    grid-template-columns: 36px 1fr;
    padding: 1.5rem 0;
  }
  .idx-n { font-size: 11px; padding-top: 0.25rem; }
  .idx-row h2 { font-size: 1.25rem; }

  .art-author { grid-template-columns: 1fr; }
  .art-author-photo { width: 56px; height: 56px; }

  .art-meta {
    gap: 0.6rem 1.25rem;
    font-size: 11px;
  }
  .art-meta-tag { font-size: 9.5px; }

  .art-body > .lede-p::first-letter {
    font-size: 3rem;
  }

  .callout-glyph {
    width: 26px; height: 26px;
    font-size: 0.95rem;
  }
  .callout-body { font-size: 14.5px; }
  .callout-body strong { font-size: 1rem; }

  .key-list .k-n { padding: 0.2rem 0.45rem; font-size: 10px; }
}

/* ============================================
   SAFETY — long words / URLs / no overflow
   ============================================ */
.art-body,
.art-body p,
.art-body li,
.art-body h2,
.art-body h3,
.art-body strong,
.art-body em,
.art-title,
.art-lede,
.callout-body,
.callout-body p,
.key-list li,
.related-card,
.related-card p,
.related-card h4,
.idx-row h2,
.idx-row p,
.pull-quote,
.cta-card p,
.cta-card h3,
.art-toc a,
.crumb,
.art-meta {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* art-body grid-child safety to prevent intrinsic min-width blow-out */
.art-body { min-width: 0; }
.art-layout > * { min-width: 0; }

/* clip any rogue absolute overflow at the page level */
.art-page { overflow-x: clip; }
