/* Blog articles in the current www.ethyai.app design (render-wf.mjs): the site's Webflow template, its black hero and
 * white article, Geist and PP Supply Mono, the magenta gradient. This sheet only styles what the template lacks: the
 * article's question box in the hero, and our article blocks inside the site's .rich-text. Tokens mirror the site's
 * own (:root of the Webflow CSS); links use the deep magenta for contrast on white. */

:root {
  --wf-ink: #060606;
  --wf-ink-70: #060606b3;
  --wf-ink-50: #06060680;
  --wf-line: #0606061a;
  --wf-line2: #0606060d;
  --wf-paper: #ffffff;
  --wf-tint: #f8f6f9;
  --wf-pink: #f350f7;
  --wf-pink-deep: #bd23c2;
  --wf-pink-bg: #f592f91a;
  --wf-pink-line: #f592f94d;
  --wf-grad: linear-gradient(45deg, #ab00ce, #f350f7);
  --wf-night: #0d0d0f;
  --wf-night-line: #ffffff1f;
  --wf-white-70: #ffffffb3;
  --wf-white-50: #ffffff80;
  --wf-sans: Geist, sans-serif;
  --wf-mono: Ppsupplymono, Arial, sans-serif;
  --wf-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── the hero's cover: the article's question, typed into Ethy ─── */
.wf-asker { display: grid; gap: 28px; width: 100%; padding: 28px 28px 24px; border-radius: 18px; background: var(--wf-night); border: 1px solid var(--wf-night-line); color: #fff; text-decoration: none; transition: border-color 0.3s, transform 0.4s var(--wf-ease); }
.wf-asker:hover { border-color: #f350f773; transform: translateY(-2px); }
.wf-asker:focus-visible { outline: 2px solid var(--wf-pink); outline-offset: 4px; }
.wf-asker__bar { display: flex; align-items: center; gap: 10px; font: 400 15px/1 var(--wf-sans); }
.wf-asker__bar img { width: 28px; height: 28px; border-radius: 50%; }
.wf-asker__bar b { font-weight: 500; }
.wf-asker__bar .gradient-text { margin-left: auto; font: 400 12px/1 var(--wf-mono); text-transform: uppercase; }
.wf-asker__q { font: 400 clamp(24px, 3vw, 40px)/1.2 var(--wf-sans); letter-spacing: -0.03em; color: #fff; text-wrap: balance; }
.wf-asker__caret { display: inline-block; width: 3px; height: 1em; margin-left: 4px; vertical-align: -0.12em; background: var(--wf-pink); animation: wf-caret 0.9s steps(1) infinite; }
.wf-asker__go { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.wf-asker__note { font: 400 14px/1.4 var(--wf-sans); color: var(--wf-white-50); }
.wf-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 20px; border-radius: 6px; background: #fff; color: var(--wf-ink); font: 400 14px/1 var(--wf-mono); text-transform: uppercase; letter-spacing: -0.02em; white-space: nowrap; transition: background-color 0.2s, color 0.2s; }
.wf-asker:hover .wf-btn { background: var(--wf-pink); color: #fff; }
.wf-ic { width: 15px; height: 15px; flex: none; }
@keyframes wf-caret { 50% { opacity: 0; } }

/* ─── the article, inside the site's .rich-text (a flex column with 24px gaps) ─── */
.wf-post { display: grid; grid-template-columns: minmax(0, 760px) 280px; justify-content: space-between; gap: 64px; width: 100%; color: var(--wf-ink-70); font: 400 18px/1.6 var(--wf-sans); letter-spacing: -0.012em; }
.wf-post__main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.wf-post__aside { position: sticky; top: 120px; align-self: start; display: grid; gap: 20px; }
/* the site clips its sections with overflow: hidden, which makes them scroll boxes and stops anything sticky; clip
   draws the same and lets the contents list follow the reader */
.page-wrapper:has(.wf-post), .page-section:has(.wf-post) { overflow: clip; }
.wf-post .wf-toc--side { padding-top: 0; border-top: 0; }
.wf-post .wf-toc--side ol { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.wf-post .wf-toc--inline { display: none; }
.wf-post .wf-side { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; padding: 18px; border-radius: 14px; background: var(--wf-night); color: #fff; text-decoration: none; transition: border-color 0.3s; border: 1px solid var(--wf-night-line); }
.wf-post .wf-side:hover { border-color: #f350f773; }
.wf-post .wf-side, .wf-post .wf-side * { text-decoration: none; }
.wf-post .wf-side img { width: 36px; height: 36px; border-radius: 50%; }
.wf-post .wf-side b { display: block; color: #fff; font: 500 16px/1.3 var(--wf-sans); }
.wf-post .wf-side > span > span { display: block; margin-top: 4px; color: var(--wf-white-50); font: 400 13px/1.4 var(--wf-sans); }
.wf-post .wf-side .wf-btn { grid-column: 1 / -1; justify-content: center; min-height: 44px; }
.wf-post .wf-side:hover .wf-btn { background: var(--wf-pink); color: #fff; }
.wf-post h2 { margin: 40px 0 0; color: var(--wf-ink); font: 400 clamp(26px, 2.6vw, 34px)/1.15 var(--wf-sans); letter-spacing: -0.03em; scroll-margin-top: 110px; text-wrap: balance; }
.wf-post h3 { margin: 12px 0 0; color: var(--wf-ink); font: 500 21px/1.3 var(--wf-sans); letter-spacing: -0.015em; text-transform: none; }
.wf-post p, .wf-post li { font: 400 18px/1.6 var(--wf-sans); letter-spacing: -0.012em; color: var(--wf-ink-70); }
.wf-post b, .wf-post strong { color: var(--wf-ink); font-weight: 500; }
.wf-post em { font-style: normal; font-weight: 500; color: var(--wf-ink); }
.wf-post a { color: var(--wf-pink-deep); font-weight: 400; text-decoration: underline; text-decoration-color: var(--wf-pink-line); text-underline-offset: 3px; transition: text-decoration-color 0.2s; }
.wf-post a:hover { text-decoration-color: currentColor; }
.wf-post ul:not([class]), .wf-post ol:not([class]) { display: grid; gap: 10px; margin: 0; padding-left: 22px; }
.wf-post ul:not([class]) li::marker { color: var(--wf-pink); }
.wf-post ol:not([class]) li::marker { color: var(--wf-pink-deep); font: 400 14px var(--wf-mono); }
.wf-post code { padding: 2px 6px; border-radius: 4px; background: var(--wf-tint); color: var(--wf-ink); font: 400 0.86em var(--wf-mono); }
/* code samples: a dark block that scrolls sideways on its own, never past the column */
.wf-post pre { max-width: 100%; margin: 0 0 24px; padding: 18px 20px; overflow-x: auto; border-radius: 12px; background: var(--wf-night); border: 1px solid var(--wf-night-line); -webkit-overflow-scrolling: touch; }
.wf-post pre code { display: block; padding: 0; border-radius: 0; background: none; color: #f2f2f2; font: 400 13.5px/1.65 var(--wf-mono); white-space: pre; tab-size: 4; }
.wf-post blockquote { margin: 0; padding: 16px 0; border: 0; border-top: 1px solid var(--wf-line); border-bottom: 1px solid var(--wf-line); font-size: 19px; }

/* labels in the site's mono, with its gradient */
.answer__k { margin: 0; font: 400 12px/1 var(--wf-mono) !important; text-transform: uppercase; letter-spacing: -0.02em; background-image: var(--wf-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.wf-post .answer { display: grid; gap: 10px; padding: 22px 24px; border-radius: 14px; background: var(--wf-pink-bg); border: 1px solid var(--wf-pink-line); }
.wf-post .answer p:last-child { color: var(--wf-ink); font-size: 19px; line-height: 1.55; }

.wf-toc { display: grid; gap: 12px; padding: 18px 0; border-top: 1px solid var(--wf-line); border-bottom: 1px solid var(--wf-line); }
.wf-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 28px; margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.wf-toc li { counter-increment: toc; display: flex; gap: 10px; font-size: 15px !important; line-height: 1.4 !important; }
.wf-toc li::before { content: counter(toc, decimal-leading-zero); flex: none; padding-top: 3px; font: 400 11px/1 var(--wf-mono); color: var(--wf-ink-50); }
.wf-post .wf-toc a { color: var(--wf-ink); text-decoration: none; }
.wf-post .wf-toc a:hover { color: var(--wf-pink-deep); }

.wf-post .callout { display: grid; gap: 6px; padding: 18px 20px; border-radius: 12px; background: var(--wf-tint); border: 1px solid var(--wf-line); }
.wf-post .callout b { color: var(--wf-ink); }
.wf-post .callout p { font-size: 16.5px; }

.wf-post .stat { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 22px; align-items: baseline; margin: 0; padding: 22px 0; border-top: 1px solid var(--wf-line); border-bottom: 1px solid var(--wf-line); }
.wf-post .stat b { grid-row: span 2; font: 400 clamp(40px, 4.4vw, 56px)/1 var(--wf-sans); letter-spacing: -0.045em; font-variant-numeric: tabular-nums; color: var(--wf-ink); }
.wf-post .stat p { color: var(--wf-ink); font-size: 17px; }
.wf-post .stat small { font: 400 11px/1.4 var(--wf-mono); text-transform: uppercase; color: var(--wf-ink-50); }

/* a question to try, and the call to action: small pieces of the night hero */
.wf-post .ask, .wf-post .post__cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 22px; align-items: center; margin: 0; padding: 20px 20px 20px 22px; border-radius: 14px; background: var(--wf-night); color: #fff; }
.wf-post .ask__k { grid-column: 1 / -1; margin: 0; font: 400 11px/1 var(--wf-mono) !important; text-transform: uppercase; background-image: var(--wf-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.wf-post .ask__q { margin: 0; color: #fff; font-size: 19px; line-height: 1.4; }
.wf-post .ask__n { grid-column: 1; margin: 0; color: var(--wf-white-50); font-size: 13px !important; }
.wf-post .ask .btn, .wf-post .post__cta .btn { grid-column: 2; grid-row: 2 / span 2; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 6px; background: #fff; color: var(--wf-ink); font: 400 13px/1 var(--wf-mono); text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background-color 0.2s, color 0.2s; }
.wf-post .post__cta .btn { grid-row: auto; }
.wf-post .ask .btn:hover, .wf-post .post__cta .btn:hover { background: var(--wf-pink); color: #fff; }
.wf-post .post__cta b { display: block; color: #fff; font-size: 19px; }
.wf-post .post__cta p { margin-top: 6px; color: var(--wf-white-70); font-size: 15.5px; }

.wf-post .steps { display: grid; margin: 0; padding: 0; list-style: none; counter-reset: s; border-top: 1px solid var(--wf-line); }
.wf-post .steps li { counter-increment: s; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 0; padding: 16px 0; border-bottom: 1px solid var(--wf-line); }
.wf-post .steps li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; font: 400 12px/1.9 var(--wf-mono); color: var(--wf-pink-deep); }
.wf-post .steps p { font-size: 16.5px; }

.wf-post .tbl { overflow-x: auto; border-radius: 12px; border: 1px solid var(--wf-line); }
.wf-post .tbl table { width: 100%; border-collapse: collapse; font: 400 15px/1.45 var(--wf-sans); }
.wf-post .tbl th, .wf-post .tbl td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--wf-line2); }
.wf-post .tbl tr:last-child th, .wf-post .tbl tr:last-child td { border-bottom: 0; }
.wf-post .tbl thead th { background: var(--wf-tint); color: var(--wf-ink-50); font: 400 11px/1.3 var(--wf-mono); text-transform: uppercase; }
.wf-post .tbl tbody th { color: var(--wf-ink); font-weight: 500; }
.wf-post .tbl td { color: var(--wf-ink-70); font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* charts drawn from data (charts.mjs), in the site's colours */
.wf-post .fig { display: grid; gap: 12px; width: 100%; max-width: 100%; margin: 0; }
.wf-post .fig__plot { padding: 18px 16px 10px; border-radius: 14px; border: 1px solid var(--wf-line); background: var(--wf-paper); }
.wf-post .fig figcaption { display: grid; gap: 4px; margin: 0; text-align: left; font: 400 14.5px/1.45 var(--wf-sans); color: var(--wf-ink-70); }
.wf-post .fig figcaption small { font: 400 11px/1.4 var(--wf-mono); text-transform: uppercase; color: var(--wf-ink-50); }
.ch { display: block; width: 100%; height: auto; overflow: visible; }
.ch--m { display: none; }
.ch-grid { stroke: var(--wf-line2); stroke-width: 1; }
.ch-x, .ch-y, .ch-legend text, .ch-bar__l, .ch-bar__v, .ch-mark text { font: 400 11px var(--wf-mono); fill: var(--wf-ink-50); }
.ch-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ch-line--acc { stroke: var(--wf-pink-deep); }
.ch-line--ink { stroke: var(--wf-ink); }
.ch-line--dim { stroke: var(--wf-ink-50); stroke-dasharray: 4 4; }
.ch-area { fill: var(--wf-pink-bg); }
.ch-dot--acc, .ch-key--acc, .ch-mark--in circle { fill: var(--wf-pink-deep); }
.ch-dot--ink, .ch-key--ink, .ch-mark--out circle { fill: var(--wf-ink); }
.ch-dot--dim, .ch-key--dim { fill: var(--wf-ink-50); }
.ch-mark circle { stroke: var(--wf-paper); stroke-width: 2; }
.ch-bar rect { fill: #0606062e; }
.ch-bar.is-on rect { fill: var(--wf-pink-deep); }
.ch-bar.is-on .ch-bar__l { fill: var(--wf-ink); }

.wf-post .prompt { overflow: hidden; border-radius: 12px; border: 1px solid var(--wf-line); }
.wf-post .prompt__h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--wf-line2); background: var(--wf-tint); font-size: 14px; }
.wf-post .prompt__copy { height: 30px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--wf-line); background: var(--wf-paper); font: 400 11px/1 var(--wf-mono); text-transform: uppercase; color: var(--wf-ink-70); cursor: pointer; }
.wf-post .prompt__copy:hover { border-color: var(--wf-ink); color: var(--wf-ink); }
.wf-post .prompt__t { margin: 0; padding: 14px 16px 16px; font: 400 14.5px/1.6 var(--wf-mono) !important; color: var(--wf-ink) !important; white-space: pre-wrap; }

.wf-post .checks { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.wf-post .checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; }
.wf-post .checks .wf-ic { width: 18px; height: 18px; margin-top: 0.3em; color: var(--wf-pink-deep); }

.wf-post .qa { border-top: 1px solid var(--wf-line); }
.wf-post .qa details { border-bottom: 1px solid var(--wf-line); }
.wf-post .qa summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0; color: var(--wf-ink); font: 500 18px/1.35 var(--wf-sans); letter-spacing: -0.015em; cursor: pointer; list-style: none; }
.wf-post .qa summary::-webkit-details-marker { display: none; }
.wf-post .qa__mark { position: relative; flex: none; width: 14px; height: 14px; }
.wf-post .qa__mark::before, .wf-post .qa__mark::after { content: ''; position: absolute; left: 0; right: 0; top: 6.5px; height: 1.5px; background: var(--wf-ink); transition: transform 0.3s var(--wf-ease); }
.wf-post .qa__mark::after { transform: rotate(90deg); }
.wf-post .qa details[open] .qa__mark::after { transform: rotate(0deg); }
.wf-post .qa details p { padding: 0 0 20px; font-size: 16.5px; }

.wf-post .sources { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: src; }
.wf-post .sources li { counter-increment: src; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 2px 0; font-size: 15px; line-height: 1.45; }
.wf-post .sources li::before { content: counter(src); grid-row: span 2; font: 400 12px/1.7 var(--wf-mono); color: var(--wf-ink-50); }
.wf-post .sources span { font: 400 11px/1.4 var(--wf-mono); text-transform: uppercase; color: var(--wf-ink-50); }

.wf-post .author { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 24px; padding: 22px; border-radius: 14px; border: 1px solid var(--wf-line); background: var(--wf-tint); }
.wf-post .author img { width: 48px; height: 48px; border-radius: 50%; }
.wf-post .author b { display: block; color: var(--wf-ink); }
.wf-post .author p { margin-top: 6px; font-size: 15.5px; }
.wf-post .post__risk { font-size: 13px !important; line-height: 1.6 !important; color: var(--wf-ink-50) !important; }

@media (prefers-reduced-motion: reduce) {
  .wf-asker__caret { animation: none; }
  .wf-asker, .wf-btn { transition: none; }
}

@media (max-width: 1100px) {
  .wf-post { grid-template-columns: minmax(0, 1fr); }
  .wf-post__aside { display: none; }
  .wf-post .wf-toc--inline { display: grid; }
}

@media (max-width: 767px) {
  .wf-asker { gap: 22px; padding: 20px 18px 18px; border-radius: 14px; }
  .wf-asker__bar .gradient-text { display: none; }
  .wf-asker__go { flex-direction: column-reverse; align-items: stretch; }
  .wf-btn { justify-content: center; }
  .wf-post, .wf-post p, .wf-post li { font-size: 17px; }
  .wf-post h2 { font-size: 26px; margin-top: 28px; }
  .wf-toc ol { grid-template-columns: minmax(0, 1fr); }
  .wf-post .ask, .wf-post .post__cta { grid-template-columns: minmax(0, 1fr); }
  .wf-post .ask .btn, .wf-post .post__cta .btn { grid-column: 1; grid-row: auto; justify-self: start; }
  .wf-post .stat { grid-template-columns: minmax(0, 1fr); }
  .wf-post .stat b { grid-row: auto; }
  .ch--d { display: none; }
  .ch--m { display: block; }
  .wf-post .tbl th, .wf-post .tbl td { min-width: 8.5em; padding: 11px 14px; }
  .wf-post .tbl td:last-child { min-width: 13em; }
}
