/* Editorial pages share the woschn type, colours and footer with the main site. */
:root {
  --primary: #4000ff;
  --primary-dark: #3200cc;
  --ink: #19171f;
  --muted: #5c5868;
  --soft: #f5f3f9;
  --border: #dfdce8;
  --gutter: clamp(24px, 4vw, 64px);
  --section-space: clamp(64px, 8vw, 104px);
  --ease: cubic-bezier(.25, 1, .5, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body { font-family: var(--font-brand); font-size: 18px; line-height: 1.7; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
main { overflow-wrap: break-word; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
a { color: var(--primary); text-underline-offset: 4px; }
::selection { background: var(--primary); color: #fff; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 5px; }
h1, h2, h3 { font-weight: 700; line-height: 1.15; letter-spacing: -.03em; text-wrap: balance; }
p { text-wrap: pretty; }
.container { width: min(1200px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 16px 32px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 1.0625rem; font-weight: 700; line-height: 1.4; text-align: center; text-decoration: none; transition: transform 200ms var(--ease), background 200ms var(--ease); }
.btn:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn:active { transform: none; }
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 300; padding: 16px 24px; background: #fff; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.p-header { position: fixed; inset: 0 0 auto; z-index: 200; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px max(var(--gutter), calc((100vw - 1280px) / 2)); background: #fff; border-bottom: 1px solid var(--border); }
.logo { display: inline-flex; flex-shrink: 0; }
.logo img { width: 120px; height: auto; }
.p-header nav { display: flex; align-items: center; justify-content: flex-end; gap: 24px; min-width: 0; }
.back-link { color: var(--ink); font-size: 1rem; text-decoration: none; padding-block: 12px; }
.back-link:hover { text-decoration: underline; }
.header-cta { min-height: 48px; font-size: .9375rem; padding: 12px 24px; }
.article-hero { padding: clamp(136px, 13vw, 176px) 0 64px; text-align: center; }
.breadcrumb { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; list-style: none; font-size: .9375rem; color: var(--muted); margin-bottom: 32px; }
.breadcrumb a { display: inline-block; padding-block: 8px; color: inherit; }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; color: var(--muted); }
.eyebrow { color: var(--primary); font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.article-hero h1 { max-width: 1000px; margin: 16px auto 24px; font-size: clamp(2.5rem, 5.5vw, 4.75rem); }
.article-hero h1 span { color: var(--primary); }
.article-intro { max-width: 62ch; margin-inline: auto; color: var(--muted); font-size: clamp(1.125rem, 1.7vw, 1.375rem); line-height: 1.6; }
.article-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; font-size: .9375rem; color: var(--muted); }
.reading-layout { display: grid; grid-template-columns: 224px minmax(0, 760px); gap: clamp(40px, 6vw, 80px); align-items: start; justify-content: center; padding-bottom: var(--section-space); }
.article-toc { position: sticky; top: 112px; padding-top: 8px; font-size: 1rem; }
.article-toc p { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.article-toc ol { list-style: none; border-left: 1px solid var(--border); }
.article-toc a { display: block; min-height: 44px; padding: 10px 16px; color: var(--muted); text-decoration: none; line-height: 1.5; }
.article-toc a:hover { color: var(--primary); background: var(--soft); }
.article-body { min-width: 0; font-size: clamp(1.125rem, 1.4vw, 1.25rem); line-height: 1.75; }
.article-body p, .article-body li { color: var(--muted); }
.article-body strong { color: var(--ink); font-weight: 700; }
.article-summary { padding: clamp(24px, 4vw, 40px); background: var(--soft); border-radius: 16px; margin-bottom: 56px; }
.article-summary .eyebrow { color: var(--primary); margin-bottom: 12px; }
.article-section + .article-section { margin-top: 56px; }
.article-section h2 { margin-bottom: 24px; font-size: clamp(1.75rem, 2.8vw, 2.5rem); }
.article-section h3 { margin: 32px 0 16px; font-size: 1.375rem; }
.article-section p + p { margin-top: 24px; }
.article-section ul, .article-section ol { padding-left: 24px; margin-top: 24px; }
.article-section li + li { margin-top: 12px; }
.article-note { margin-top: 32px; padding: 8px 0 8px 24px; border-left: 3px solid var(--primary); }
.article-note p { color: var(--ink); }
.article-steps { list-style: none; counter-reset: steps; padding: 0 !important; }
.article-steps li { position: relative; padding: 0 0 24px 56px; border-bottom: 1px solid var(--border); }
.article-steps li + li { margin-top: 24px; }
.article-steps li::before { counter-increment: steps; content: counter(steps, decimal-leading-zero); position: absolute; left: 0; top: 0; font-weight: 700; color: var(--primary); }
.article-steps strong { display: block; margin-bottom: 4px; }
.article-faq { margin-top: 64px; }
.article-faq h2 { font-size: clamp(1.75rem, 2.8vw, 2.5rem); margin-bottom: 24px; }
.article-faq details { border-top: 1px solid var(--border); }
.article-faq details:last-child { border-bottom: 1px solid var(--border); }
.article-faq summary { position: relative; list-style: none; padding: 24px 40px 24px 0; font-size: 1.125rem; line-height: 1.5; font-weight: 700; cursor: pointer; }
.article-faq summary::-webkit-details-marker { display: none; }
.article-faq summary::after { content: '+'; position: absolute; top: 24px; right: 4px; color: var(--primary); font-size: 1.5rem; }
.article-faq details[open] summary::after { content: '−'; }
.article-faq details p { font-size: 1.0625rem; padding-bottom: 24px; }
.comparison-scroll { max-width: 100%; margin: 24px 0; overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; }
.comparison-table { width: 100%; min-width: 620px; border-collapse: collapse; text-align: left; font-size: 1rem; line-height: 1.6; }
.comparison-table caption { padding: 24px; font-weight: 700; text-align: left; }
.comparison-table th, .comparison-table td { padding: 20px 24px; vertical-align: top; border-top: 1px solid var(--border); }
.comparison-table thead th { background: var(--ink); color: #fff; }
.comparison-table tbody th { width: 22%; font-weight: 700; }
.comparison-table td { width: 39%; color: var(--muted); }
.comparison-table td:last-child { background: var(--soft); color: var(--ink); }
.table-hint { font-size: .9375rem; }
.article-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin: 32px 0 24px; padding: 32px 0; border-block: 1px solid var(--border); }
.article-stats dt { color: var(--primary); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; line-height: 1.1; margin-bottom: 12px; }
.article-stats dd { font-size: 1rem; color: var(--muted); line-height: 1.5; }
.article-stats dd strong { display: block; margin-bottom: 4px; }
.data-source { font-size: .9375rem; }
.related-section { background: var(--soft); padding-block: var(--section-space); }
.related-heading { margin-bottom: 32px; }
.related-heading h2 { font-size: clamp(2rem, 3vw, 3rem); margin-top: 12px; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.related-link { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding: 32px 0; border-block: 1px solid var(--border); color: var(--ink); text-decoration: none; }
.related-link h3 { font-size: clamp(1.5rem, 2.3vw, 2rem); }
.related-link p { color: var(--muted); font-size: 1.0625rem; max-width: 48ch; }
.related-link span { color: var(--primary); font-size: 1rem; font-weight: 700; margin-top: auto; }
.related-link:hover h3 { color: var(--primary); }
.article-cta { padding-block: var(--section-space); text-align: center; }
.article-cta h2 { max-width: 20ch; margin: 0 auto 24px; font-size: clamp(2rem, 4vw, 3.5rem); }
.article-cta p { max-width: 54ch; margin: 0 auto 32px; color: var(--muted); font-size: 1.125rem; }
.article-cta .cta-note { margin: 16px 0 0; max-width: none; font-size: .9375rem; }
.cookie-banner { position: fixed; bottom: 20px; left: 20px; z-index: 99999; width: min(360px, calc(100% - 40px)); max-height: calc(100dvh - 40px); overflow: auto; padding: 20px; background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 8px 32px #19171f1f; font-size: .875rem; line-height: 1.5; }
.cookie-title { color: var(--primary); font-weight: 700; margin-bottom: 8px; }
.cookie-banner p { color: var(--muted); margin-bottom: 16px; }
.cookie-actions { display: flex; gap: 8px; }
.cookie-actions button { flex: 1; min-height: 48px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--ink); font-size: .875rem; }
.cookie-actions .cookie-accept { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 700; }
@media (max-width: 960px) {
  .reading-layout { grid-template-columns: minmax(0, 760px); gap: 32px; }
  .article-toc { position: static; padding-top: 0; }
  .article-toc ol { display: flex; flex-wrap: wrap; gap: 0 16px; border-left: 0; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
  .article-toc a { padding-inline: 0; }
  .article-hero { padding-bottom: 40px; }
}
@media (max-width: 640px) {
  .p-header { padding: 16px 24px; gap: 16px; }
  .logo img { width: 88px; }
  .back-link { display: none; }
  .header-cta { padding: 12px 16px; font-size: .875rem; }
  .article-hero h1 { font-size: clamp(2.25rem, 8.5vw, 3rem); }
  .article-summary { margin-bottom: 40px; }
  .article-section + .article-section { margin-top: 40px; }
  .article-steps li { padding-left: 48px; }
  .article-stats { gap: 24px; }
  .related-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .related-link + .related-link { border-top: 0; }
  .article-cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
