/* Radius OS - Blog ARTICLE / post page ("The Frontline" reader)
   Loads after styles.css. One clean reading column, a left sticky
   scroll-spy table of contents, an AI-summarize block, no right rail.
   No grey text, no em dashes, no eyebrow labels above headings. */

/* subpage nav: light page, solid nav from the top */
body.article-page .nav { background: rgba(244, 247, 244, 0.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom-color: var(--line-soft); }
body.article-page .nav__logo { background: var(--grad-blue); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
body.article-page .nav__logo b { color: transparent; -webkit-text-fill-color: transparent; }
body.article-page .nav__link { color: var(--ink); }
body.article-page .nav__link:hover, body.article-page .nav__link.active { background: rgba(20, 33, 63, 0.05); }
body.article-page .nav__login { color: var(--body); }
body.article-page .nav .btn--sm { background: var(--grad-blue); color: #fff; }
body.article-page .nav .btn--sm:hover { background: var(--grad-emerald); color: var(--ink); }

/* ============ HERO ============ */
.art-hero { padding: clamp(104px, 13vh, 132px) 0 0; }
.art-hero .wrap { width: min(1240px, calc(100% - 48px)); display: grid; grid-template-columns: 1fr minmax(0, 720px) 1fr; column-gap: 40px; row-gap: 0; align-items: start; }
.art-hero__head { grid-column: 2; }
.art-cover { grid-column: 2; }
.art-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--cobalt); margin-bottom: 22px; transition: gap .2s var(--ease); }
.art-back:hover { gap: 12px; }
.art-back .icon { width: 15px; height: 15px; transform: rotate(180deg); }
.art-title { font-size: clamp(34px, 4.4vw, 52px); font-weight: 690; letter-spacing: -0.026em; line-height: 1.08; color: var(--ink); text-wrap: balance; }
.art-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 22px; font-size: 14px; color: var(--mute); }
.art-meta__author { display: inline-flex; align-items: center; gap: 10px; }
.art-meta__ava { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(150deg, var(--cobalt), var(--cobalt-dp)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.art-meta__author b { color: var(--ink); font-weight: 640; }
.art-meta__author span { display: block; font-size: 13px; color: var(--mute); }
.art-meta__sep { width: 4px; height: 4px; border-radius: 50%; background: var(--emerald); }
.art-meta__item { display: inline-flex; align-items: center; gap: 6px; }
.art-meta__item .icon { width: 15px; height: 15px; color: var(--mute); }

.art-cover { margin: clamp(28px, 4vh, 44px) 0 0; }
.art-cover__img { position: relative; aspect-ratio: 16 / 8; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 64px -34px rgba(20, 33, 63, 0.4); }

/* ============ BODY: sticky TOC + reading column ============ */
.art-body { width: min(1240px, calc(100% - 48px)); display: grid; grid-template-columns: 1fr minmax(0, 720px) 1fr; column-gap: 40px; align-items: start; padding: clamp(40px, 6vh, 64px) 0 clamp(60px, 8vh, 96px); }
.art-content { grid-column: 2; }

.art-toc { grid-column: 1; justify-self: end; width: 220px; position: sticky; top: 100px; max-height: calc(100vh - 132px); overflow: auto; }
.art-toc__label { font-size: 13.5px; font-weight: 700; letter-spacing: -0.005em; text-transform: none; color: var(--mute); margin-bottom: 15px; }
.art-toc__toggle { display: none; }
.art-toc__list { display: flex; flex-direction: column; gap: 3px; border-left: 2px solid var(--line); }
.art-toc a { display: block; padding: 8px 0 8px 16px; margin-left: -2px; border-left: 2px solid transparent; font-size: 14.5px; line-height: 1.4; color: var(--body); transition: color .2s var(--ease), border-color .2s var(--ease); }
.art-toc a:hover { color: var(--ink); }
.art-toc a.on { color: var(--cobalt); border-left-color: var(--cobalt); font-weight: 640; }

/* ============ AI SUMMARIZE BLOCK (replaces the written summary) ============ */
.art-ai { background: linear-gradient(155deg, #EEF3FB 0%, #E7EEF8 100%); border: 1px solid var(--line-soft); border-radius: 16px; padding: 22px 24px; margin-bottom: 34px; }
.art-ai__head { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.art-ai__spark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(150deg, var(--cobalt), var(--emerald)); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.art-ai__spark .icon { width: 17px; height: 17px; }
.art-ai__head b { font-size: 15.5px; font-weight: 660; color: var(--ink); }
.art-ai__head span { font-size: 13.5px; color: var(--body); }
.art-ai__btns { display: flex; flex-wrap: wrap; gap: 9px; }
.art-ai__btn { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line-soft); border-radius: 10px; padding: 9px 14px; font-size: 14px; font-weight: 580; color: var(--ink); box-shadow: 0 1px 3px rgba(20, 33, 63, 0.05); transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease); }
.art-ai__btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(20, 33, 63, 0.28); border-color: rgba(51, 84, 158, 0.4); }
.art-ai__btn i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.art-ai__btn .icon { width: 15px; height: 15px; margin-left: 1px; color: var(--mute); }
.ai-chatgpt { background: #10A37F; }
.ai-claude { background: #CC785C; }
.ai-gemini { background: #4285F4; }
.ai-grok { background: #111319; }

/* ============ ARTICLE CONTENT (Deel-style body) ============ */
.art-content { color: var(--ink); }
.art-content > *:first-child { margin-top: 0; }
.art-lead { font-size: 20px; line-height: 1.62; color: var(--ink); font-weight: 440; margin-bottom: 8px; letter-spacing: -0.01em; }
.art-content p { font-size: 17.5px; line-height: 1.72; letter-spacing: -0.006em; color: var(--ink); margin: 21px 0; }
.art-content h2 { font-size: clamp(27px, 3vw, 34px); font-weight: 680; letter-spacing: -0.022em; line-height: 1.1; color: var(--ink); margin: 58px 0 6px; scroll-margin-top: 96px; text-wrap: balance; }
.art-content h3 { font-size: 22px; font-weight: 660; letter-spacing: -0.014em; line-height: 1.2; color: var(--ink); margin: 40px 0 4px; scroll-margin-top: 96px; }
.art-content a:not(.art-ai__btn):not(.btn) { color: var(--cobalt); font-weight: 560; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; text-decoration-color: rgba(51, 84, 158, 0.35); transition: text-decoration-color .2s var(--ease); }
.art-content a:not(.art-ai__btn):not(.btn):hover { text-decoration-color: var(--cobalt); }
.art-content ul, .art-content ol { margin: 20px 0; padding-left: 4px; display: flex; flex-direction: column; gap: 11px; }
.art-content li { position: relative; list-style: none; padding-left: 30px; font-size: 17.5px; line-height: 1.62; color: var(--ink); }
.art-content ul li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); }
.art-content ol { counter-reset: n; }
.art-content ol li { counter-increment: n; }
.art-content ol li::before { content: counter(n); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: rgba(51, 84, 158, 0.12); color: var(--cobalt-dp); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.art-content strong { color: var(--ink); font-weight: 660; }

/* pull-quote (Deel/Stan style) */
.art-quote { margin: 38px 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--emerald); }
.art-quote p { font-size: 24px; line-height: 1.36; font-weight: 500; font-style: italic; color: var(--ink); margin: 0; }
.art-quote cite { display: block; margin-top: 12px; font-size: 14px; font-style: normal; font-weight: 600; color: var(--mute); }

/* in-article figure/image */
.art-fig { margin: 38px 0; }
.art-fig__img { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-soft); }
.art-fig figcaption { margin-top: 11px; font-size: 13px; line-height: 1.5; color: var(--mute); }

/* callout */
.art-callout { margin: 32px 0; padding: 20px 22px; background: rgba(47, 107, 235, 0.08); border: 1px solid rgba(47, 107, 235, 0.2); border-radius: 14px; }
.art-callout p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink); }

/* ============ END OF ARTICLE: find out more + CTA ============ */
.art-end { margin-top: 52px; padding-top: 34px; border-top: 1px solid var(--line-soft); }
.art-end__h { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; text-transform: none; color: var(--ink); margin-bottom: 16px; }
.art-links { display: flex; flex-direction: column; gap: 10px; margin-bottom: 34px; }
.art-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 13px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.art-link:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(20, 33, 63, 0.28); }
.art-link > span { display: flex; flex-direction: column; gap: 3px; }
.art-link b { font-size: 15.5px; font-weight: 640; color: var(--ink); }
.art-link > span span { font-size: 13.5px; color: var(--body); }
.art-link .icon { width: 18px; height: 18px; color: var(--cobalt); flex: none; }
.art-cta { text-align: center; padding: 34px 28px; background: linear-gradient(150deg, var(--cobalt), var(--cobalt-dp)); border-radius: 18px; overflow: hidden; position: relative; }
.art-cta::after { content: ""; position: absolute; inset: 0; background: radial-gradient(52% 90% at 100% 0%, rgba(47, 107, 235, 0.28), transparent 60%); pointer-events: none; }
.art-cta h3 { position: relative; font-size: 23px; font-weight: 680; color: #fff; letter-spacing: -0.015em; }
.art-cta p { position: relative; margin: 8px auto 18px; max-width: 34rem; font-size: 15.5px; line-height: 1.55; color: rgba(240, 245, 251, 0.9); }
.art-cta .btn { position: relative; background: #fff; color: var(--cobalt-dp); }
.art-cta .btn:hover { background: var(--grad-emerald); color: var(--ink); }

/* placeholders (brand-tinted, real images drop in later) */
.ph { display: flex; align-items: center; justify-content: center; position: relative; }
.art-cover__img .ph, .art-fig__img .ph { position: absolute; inset: 0; }
.ph .icon { width: 40px; height: 40px; color: rgba(255, 255, 255, 0.85); }
.ph--ai { background: linear-gradient(150deg, #2F6BEB, #1E3ABA); }
.ph--hv { background: linear-gradient(150deg, #3A5CA6, #1E3ABA); }
.ph--cobalt { background: linear-gradient(140deg, #6E9BD9, #3A62AB); }

/* ============ RESPONSIVE ============ */
@media (max-width: 991px) {
  .art-hero .wrap, .art-body { grid-template-columns: minmax(0, 720px); justify-content: center; }
  .art-hero__head, .art-cover, .art-content, .art-toc { grid-column: 1; }
  .art-toc { justify-self: stretch; width: auto; position: static; max-height: none; overflow: visible; margin-bottom: 8px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px; }
  .art-toc__label { display: none; }
  .art-toc__toggle { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0; text-align: left; font: inherit; font-size: 13px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink); }
  .art-toc__toggle .icon { width: 18px; height: 18px; color: var(--cobalt); transition: transform .2s var(--ease); }
  .art-toc.is-collapsible:not(.open) .art-toc__list { display: none; }
  .art-toc.open .art-toc__toggle .icon { transform: rotate(180deg); }
  .art-toc__list { margin-top: 4px; }
  .art-toc a { min-height: 44px; display: flex; align-items: center; }
}
@media (max-width: 560px) {
  .art-hero { padding-top: 96px; }
  .art-hero .wrap, .art-body { width: calc(100% - 40px); }
  .art-back { min-height: 44px; margin-bottom: 14px; }
  .art-title { font-size: clamp(31px, 9vw, 38px); }
  .art-meta { gap: 8px 12px; margin-top: 18px; }
  .art-meta__sep { display: none; }
  .art-cover { margin-top: 24px; }
  .art-cover__img { aspect-ratio: 4 / 3; border-radius: 14px; }
  .art-body { padding-top: 28px; padding-bottom: 64px; }
  .art-toc { padding: 8px 16px; margin-bottom: 22px; }
  .art-ai { padding: 18px; margin-bottom: 28px; }
  .art-ai__head { align-items: flex-start; }
  .art-ai__btns { gap: 8px; }
  .art-ai__btn { min-height: 44px; flex: 1 1 calc(50% - 4px); justify-content: center; }
  .art-lead { font-size: 18px; }
  .art-content p, .art-content li { font-size: 16.5px; }
  .art-content h2 { margin-top: 44px; }
  .art-content h3 { margin-top: 32px; }
  .art-quote { margin: 30px 0; padding-left: 20px; }
  .art-quote p { font-size: 21px; }
  .art-callout { padding: 18px; }
  .art-link { min-height: 64px; padding: 14px 16px; }
  .art-cta { padding: 28px 20px; }
  .art-cta .btn { min-height: 48px; }

  /* The shared newsletter row has fixed desktop field widths. Keep this
     page's footer inside the visual viewport and large enough for touch. */
  body.article-page .footer__news { align-items: stretch; }
  body.article-page .footer__form { width: 100%; min-width: 0; flex-direction: column; }
  body.article-page .footer__form input { width: 100%; min-width: 0; min-height: 48px; font-size: 16px; }
  body.article-page .footer__form button { width: 100%; min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .art-back, .art-ai__btn, .art-link { transition: none; }
}
