/* ============================================================
   Web Text Expander — single article (reading) page
   Loaded after site.css; relies on its tokens + base layers.
   ============================================================ */

/* ---------- Article header ---------- */
.article-head { background: var(--bg); border-bottom: 1px solid var(--line); }
.article-head .wrap { max-width: 820px; padding-top: 52px; padding-bottom: 46px; }
.breadcrumb { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.breadcrumb a { color: var(--ink-3); transition: color .15s; }
.breadcrumb a:hover { color: var(--teal-deep); }
.breadcrumb svg { width: 14px; height: 14px; opacity: .6; }
.article-head .cat {
  display: inline-flex; align-items: center; align-self: flex-start; margin: 22px 0 0;
}
.article-head h1 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.05; margin: 16px 0 0; max-width: 760px; }
.article-head .standfirst { font-size: 20px; color: var(--ink-2); line-height: 1.55; margin-top: 20px; max-width: 720px; text-wrap: pretty; }

/* ---------- Reading column ---------- */
.article-body { background: var(--bg); }
.article-body .wrap { max-width: 820px; padding-top: 50px; padding-bottom: 28px; }

.prose { color: var(--ink-2); font-size: 17px; line-height: 1.72; }
.prose p { margin: 0 0 22px; text-wrap: pretty; }
.prose p.lede { font-size: 19px; color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--teal-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1.5px; transition: color .15s; }
.prose a:hover { color: var(--teal); }
.prose .demo-trigger { font-size: 15px; }
.prose img { max-width: 100%; height: auto; border-radius: var(--r-lg); border: 1px solid var(--line); margin: 8px 0 22px; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--r-lg); margin: 8px 0 22px; display: block; }
.prose li img { display: block; margin: 10px 0 4px; }

/* numbered + plain section headings */
.prose h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.15; color: var(--ink); margin: 56px 0 18px; }
.prose h2.num { display: flex; align-items: center; gap: 14px; }
.prose h2 .n { width: 40px; height: 40px; border-radius: 11px; background: var(--teal-tint); color: var(--teal-deep); font-family: var(--font-display); font-weight: 700; font-size: 19px; display: grid; place-items: center; flex: none; }
.prose h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--ink); margin: 40px 0 14px; }

/* sub-label (How it works / Advantages / Drawbacks / Best for) */
.sub-label { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-deep); margin: 26px 0 12px; }

/* bullet lists */
.prose ul { margin: 0 0 22px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 5px; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
/* ordered lists */
.prose ol { margin: 0 0 22px; padding-left: 24px; display: flex; flex-direction: column; gap: 10px; }
.prose ol li { padding-left: 4px; }
.prose ol li::marker { color: var(--teal-deep); font-weight: 700; }

/* callout (Example / Read more / Tip) */
.callout { background: var(--bg-tint); border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: var(--r-md); padding: 15px 20px; margin: 8px 0 22px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.callout .lbl { font-family: var(--font-mono); font-weight: 700; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--teal-deep); margin-right: 8px; }
.callout p { margin: 0; }
.callout p + p { margin-top: 10px; }
.callout.callout-warning { background: #fdf3e7; border-color: #f0d6ad; border-left-color: #d98a2b; }

/* ---------- Comparison table ---------- */
.cmp-table-wrap { margin: 28px 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow-x: auto; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.cmp-table th { text-align: left; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); background: var(--bg-tint); padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cmp-table td { padding: 16px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; line-height: 1.5; }
.cmp-table tr:last-child td { border-bottom: 0; }
.cmp-table td:first-child, .cmp-table th:first-child { font-weight: 700; color: var(--ink); }
.cmp-table tr.hl td { background: var(--teal-tint); }
.cmp-table tr.hl td:first-child { color: var(--teal-ink); box-shadow: inset 3px 0 0 var(--teal); }
.stars-txt { color: var(--gold); letter-spacing: 1px; font-size: 13px; }

/* ---------- FAQ (static, no accordion) ---------- */
.faq-static { margin-top: 6px; }
.faq-static .qa { padding: 24px 0; border-bottom: 1px solid var(--line); }
.faq-static .qa:first-child { border-top: 1px solid var(--line); }
.faq-static .qa h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--ink); margin: 0 0 10px; }
.faq-static .qa p { color: var(--ink-3); font-size: 16px; line-height: 1.62; margin: 0; }

/* ---------- Article footer nav ---------- */
.article-foot { background: var(--bg); text-align: center; padding: 32px 0 84px; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .article-head .wrap { padding-top: 36px; padding-bottom: 34px; }
  .prose { font-size: 16px; }
  .prose h2 .n { width: 34px; height: 34px; font-size: 17px; }
}
