/* Kachouri V5 article system: one editorial grammar for every /article-* route. */
body.is-article{--article-max:1180px;--article-reading:760px;background:var(--bg);color:var(--text)}
body.is-article .article-shell{width:min(calc(100% - 24px),var(--article-max));margin:0 auto;padding:clamp(24px,5vw,64px) 0 72px}
.article-hero-v5{position:relative;overflow:hidden;padding:clamp(28px,5vw,64px);border:1px solid var(--line);border-radius:clamp(26px,4vw,46px);background:linear-gradient(145deg,var(--surface),color-mix(in srgb,var(--accent-soft) 56%,var(--surface)));box-shadow:var(--shadow-soft)}
.article-hero-v5::after{content:"";position:absolute;width:270px;height:270px;right:-90px;top:-100px;border-radius:50%;border:1px solid color-mix(in srgb,var(--accent) 20%,transparent);box-shadow:0 0 0 38px color-mix(in srgb,var(--accent) 4%,transparent),0 0 0 76px color-mix(in srgb,var(--accent-2) 3%,transparent);pointer-events:none}
.article-hero-v5__signal{display:flex;gap:7px;margin-bottom:clamp(32px,5vw,60px)}.article-hero-v5__signal span{display:block;width:8px;height:8px;border-radius:999px;background:var(--accent)}.article-hero-v5__signal span:nth-child(2){background:var(--accent-2);width:30px}.article-hero-v5__signal span:nth-child(3){opacity:.35}
.article-back{display:inline-flex;align-items:center;gap:8px;margin-bottom:18px;color:var(--accent);font-weight:800;text-decoration:none}.article-back::before{content:"←"}
.article-meta-v5{display:flex;flex-wrap:wrap;gap:8px 18px;margin-bottom:18px;color:var(--muted);font-size:.78rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.article-meta-v5 span+span,.article-meta-v5 time+span{position:relative}.article-meta-v5 span+span::before,.article-meta-v5 time+span::before{content:"";position:absolute;left:-10px;top:50%;width:3px;height:3px;border-radius:50%;background:var(--accent);transform:translateY(-50%)}
.article-hero-v5 h1{max-width:900px;margin:0;color:var(--text);font-size:clamp(2.5rem,7.2vw,6rem);line-height:.95;letter-spacing:-.06em;text-wrap:balance}.article-hero-v5 .article-deck{max-width:760px;margin:24px 0 0;color:var(--muted);font-size:clamp(1.05rem,2vw,1.32rem);line-height:1.62}
.article-actions-v5{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px}.article-actions-v5 a,.article-actions-v5 button{appearance:none;border:1px solid var(--line);border-radius:999px;padding:11px 16px;background:var(--surface);color:var(--text);font:inherit;font-weight:800;text-decoration:none;cursor:pointer}.article-actions-v5 a{background:var(--accent);border-color:var(--accent);color:#fff}.article-actions-v5 button:hover,.article-actions-v5 a:hover{transform:translateY(-1px)}
.article-toc-mobile{display:none;margin:16px 0;border:1px solid var(--line);border-radius:20px;background:var(--surface);overflow:hidden}.article-toc-mobile summary{display:flex;justify-content:space-between;gap:16px;padding:16px 18px;font-weight:900;cursor:pointer}.article-toc-mobile summary span{color:var(--muted);font-size:.8rem}.article-toc-mobile nav{display:grid;padding:0 18px 16px}.article-toc-mobile a{padding:9px 0;border-top:1px solid var(--line);color:var(--muted);text-decoration:none;font-size:.92rem}
.article-layout-v5{display:grid;grid-template-columns:minmax(0,var(--article-reading)) minmax(220px,290px);justify-content:center;gap:clamp(34px,6vw,82px);margin-top:clamp(36px,6vw,72px);align-items:start}.article-prose-v5{min-width:0}.article-prose-v5>.article-section:first-child{margin-top:0}
.article-section{position:relative;margin:clamp(44px,7vw,76px) 0 0;padding:clamp(24px,4vw,38px);border:1px solid var(--line);border-radius:clamp(22px,3vw,32px);background:var(--surface);box-shadow:0 18px 55px color-mix(in srgb,var(--text) 5%,transparent)}.article-section__marker{position:absolute;left:28px;top:-5px;width:52px;height:9px;border-radius:999px;background:linear-gradient(90deg,var(--accent),var(--accent-2))}.article-section h2{margin:0 0 24px!important;padding:0!important;border:0!important;color:var(--accent);font-size:clamp(1.75rem,4vw,2.75rem)!important;line-height:1.05!important;letter-spacing:-.04em!important;text-wrap:balance}.article-section h3{margin:32px 0 12px;color:var(--text);font-size:clamp(1.18rem,2vw,1.45rem)}.article-section h4{margin:24px 0 8px;color:var(--text);font-size:1rem}.article-section p{margin:0 0 1.2em;color:var(--muted);font-size:clamp(1rem,1.35vw,1.08rem);line-height:1.78}.article-section>p:last-child{margin-bottom:0}.article-section strong{color:var(--text)}.article-section a{color:var(--accent);text-underline-offset:3px}
.article-section--sources{background:color-mix(in srgb,var(--accent-soft) 40%,var(--surface))}.article-section--sources::before{content:"Sources";display:inline-flex;margin-bottom:14px;padding:6px 9px;border-radius:999px;background:var(--accent-soft);color:var(--accent);font-size:.7rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.article-callout{display:grid;grid-template-columns:38px 1fr;gap:14px;margin:24px 0;padding:20px;border:1px solid var(--line);border-radius:20px;background:var(--bg-soft,var(--surface-2));color:var(--text)}.article-callout__icon{width:36px;height:36px;border-radius:12px;background:var(--accent-soft);position:relative}.article-callout__icon::after{content:"";position:absolute;inset:11px;border:2px solid var(--accent);border-radius:50%}.article-callout__label{margin:0 0 7px!important;color:var(--accent)!important;font-size:.72rem!important;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.article-callout__body>*:last-child{margin-bottom:0!important}.article-callout--note{border-left:4px solid var(--accent)}.article-callout--summary{background:color-mix(in srgb,var(--accent-soft) 48%,var(--surface))}.article-callout--example .article-callout__icon{background:color-mix(in srgb,var(--accent-2) 12%,var(--surface))}.article-callout--example .article-callout__icon::after{border-color:var(--accent-2);border-radius:3px}
.article-list{margin:18px 0 24px;padding:0;list-style:none;counter-reset:item}.article-list li{position:relative;margin:0;padding:12px 0 12px 30px;border-bottom:1px solid var(--line);color:var(--muted);line-height:1.65}.article-list li:last-child{border-bottom:0}.article-list:not(.article-list--ordered) li::before{content:"";position:absolute;left:3px;top:20px;width:9px;height:9px;border:2px solid var(--accent);border-radius:50%}.article-list--ordered li{counter-increment:item}.article-list--ordered li::before{content:counter(item,decimal-leading-zero);position:absolute;left:0;color:var(--accent);font-size:.72rem;font-weight:900}
.article-prose-v5 blockquote{margin:24px 0;padding:20px 22px;border:0;border-left:4px solid var(--accent);border-radius:0 18px 18px 0;background:var(--accent-soft);color:var(--text)}.article-prose-v5 blockquote p{margin:0;color:var(--text);font-style:italic}.article-code{max-width:100%;overflow:auto;margin:24px 0;padding:20px;border-radius:18px;background:#171317;color:#f9f2f7;font:500 .88rem/1.65 var(--mono)}.article-table-wrap{max-width:100%;overflow-x:auto;margin:24px 0;border:1px solid var(--line);border-radius:18px}.article-table-wrap table{width:100%;min-width:620px;border-collapse:collapse;background:var(--surface)}.article-table-wrap th,.article-table-wrap td{padding:14px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;color:var(--muted)}.article-table-wrap th{background:var(--surface-2);color:var(--text);font-size:.82rem;text-transform:uppercase;letter-spacing:.04em}.article-table-wrap tr:last-child td{border-bottom:0}
.article-rail-v5{position:sticky;top:calc(var(--header-h) + 24px);max-height:calc(100dvh - var(--header-h) - 48px);overflow:auto}.article-rail-v5__sticky{padding:20px;border:1px solid var(--line);border-radius:24px;background:var(--surface);box-shadow:var(--shadow-soft)}.article-rail-v5__title{margin:0 0 12px;font-size:.72rem;font-weight:900;letter-spacing:.09em;text-transform:uppercase;color:var(--accent)}.article-rail-v5 nav{display:grid}.article-rail-v5 nav a{padding:10px 0;border-bottom:1px solid var(--line);color:var(--muted);font-size:.86rem;line-height:1.35;text-decoration:none}.article-rail-v5 nav a:last-child{border-bottom:0}.article-rail-v5 nav a:hover,.article-rail-v5 nav a.is-current{color:var(--text);font-weight:800}.article-rail-v5__card{margin-top:18px;padding:16px;border-radius:18px;background:var(--accent-soft)}.article-rail-v5__card span{display:block;margin-bottom:7px;color:var(--accent);font-size:.67rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.article-rail-v5__card strong{display:block;color:var(--text);line-height:1.2}.article-rail-v5__card p{margin:8px 0 0;color:var(--muted);font-size:.82rem;line-height:1.5}
.article-related{margin-top:clamp(52px,8vw,96px);padding:clamp(24px,4vw,42px);border:1px solid var(--line);border-radius:32px;background:color-mix(in srgb,var(--accent-soft) 32%,var(--surface))}.article-related__head p{margin:0;color:var(--accent);font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.09em}.article-related__head h2{max-width:650px;margin:8px 0 24px;color:var(--text);font-size:clamp(1.8rem,4vw,3rem);line-height:1.05;letter-spacing:-.04em}.article-related__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.article-related__card{display:flex;flex-direction:column;min-height:180px;padding:18px;border:1px solid var(--line);border-radius:20px;background:var(--surface);color:var(--text);text-decoration:none}.article-related__card span{color:var(--accent);font-size:.68rem;font-weight:900;text-transform:uppercase}.article-related__card strong{margin:10px 0;font-size:1.05rem;line-height:1.25}.article-related__card small{margin-top:auto;color:var(--muted)}
@media(max-width:980px){.article-layout-v5{grid-template-columns:1fr;max-width:var(--article-reading);margin-inline:auto}.article-rail-v5{display:none}.article-toc-mobile{display:block;max-width:var(--article-reading);margin:16px auto 0}.article-related__grid{grid-template-columns:1fr 1fr}}
@media(max-width:640px){body.is-article .article-shell{width:min(calc(100% - 16px),var(--article-max));padding-top:12px}.article-hero-v5{padding:25px 20px;border-radius:24px}.article-hero-v5::after{width:170px;height:170px;right:-80px;top:-65px}.article-hero-v5__signal{margin-bottom:26px}.article-hero-v5 h1{font-size:clamp(2.25rem,12vw,3.55rem)}.article-meta-v5{gap:7px 13px;font-size:.68rem}.article-actions-v5>*{flex:1;text-align:center;white-space:nowrap}.article-layout-v5{margin-top:28px}.article-section{margin-top:24px;padding:24px 18px;border-radius:22px}.article-section h2{font-size:clamp(1.7rem,8vw,2.25rem)!important}.article-callout{grid-template-columns:30px 1fr;padding:16px;gap:10px}.article-callout__icon{width:30px;height:30px}.article-related{padding:22px 16px;border-radius:24px}.article-related__grid{grid-template-columns:1fr}.article-related__card{min-height:0}}
@media(prefers-reduced-motion:reduce){.article-actions-v5 a,.article-actions-v5 button{transition:none!important}}

/* Neutralise les anciennes règles article des versions antérieures. */
body.is-article #article-root.article-shell{width:min(calc(100% - 24px),var(--article-max))!important;max-width:var(--article-max)!important;margin-inline:auto!important;padding:clamp(24px,5vw,64px) 0 72px!important;background:transparent!important}
body.is-article #article-root article.article-prose-v5{width:auto!important;max-width:none!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;font-family:var(--font-sans)!important;font-size:inherit!important;line-height:inherit!important}
body.is-article #article-root .article-section{width:100%!important;max-width:none!important;margin-inline:0!important}
body.is-article #article-root .article-section h2{margin:0 0 24px!important;padding:0!important;border:0!important;font-family:var(--font-sans)!important;font-size:clamp(1.75rem,4vw,2.75rem)!important;line-height:1.05!important;letter-spacing:-.04em!important;color:var(--accent)!important}
body.is-article #article-root .article-section h2::before{display:none!important;content:none!important}
body.is-article #article-root .article-section h3{margin:32px 0 12px!important;padding:0!important;font-family:var(--font-sans)!important;color:var(--text)!important;text-transform:none!important}
body.is-article #article-root .article-section p{color:var(--muted)!important;font-family:var(--font-sans)!important;font-size:clamp(1rem,1.35vw,1.08rem)!important;line-height:1.78!important;text-align:left!important}
body.is-article #article-root .article-rail-v5{position:sticky!important;right:auto!important;top:calc(var(--header-h) + 24px)!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important;z-index:10!important}
body.is-article #article-root .article-callout{font-family:var(--font-sans)!important}
@media(max-width:980px){body.is-article #article-root .article-rail-v5{display:none!important}body.is-article #article-root.article-shell{padding-inline:0!important}}


/* passage du contenu à l'action */
.article-rail-v5__card--cta a{display:inline-flex;margin-top:13px;padding:9px 12px;border-radius:999px;background:var(--accent);color:#fff!important;font-size:.76rem;font-weight:900;text-decoration:none}
.article-bridge{display:grid;grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);gap:clamp(22px,4vw,48px);margin-top:clamp(46px,7vw,86px);padding:clamp(24px,4vw,42px);border:1px solid var(--line);border-radius:32px;background:linear-gradient(145deg,color-mix(in srgb,var(--accent-soft) 45%,var(--surface)),var(--surface));box-shadow:var(--shadow-soft)}
.article-bridge__eyebrow{margin:0 0 10px;color:var(--accent);font-size:.7rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.article-bridge h2{max-width:580px;margin:0;color:var(--text);font-size:clamp(1.9rem,4vw,3.2rem);line-height:1;letter-spacing:-.05em;text-wrap:balance}.article-bridge__intro>p:not(.article-bridge__eyebrow){max-width:620px;margin:18px 0 0;color:var(--muted);line-height:1.65}.article-bridge__actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:22px}.article-bridge__actions a{display:inline-flex;align-items:center;justify-content:center;padding:11px 15px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--text);font-weight:900;text-decoration:none}.article-bridge__actions .article-bridge__primary{border-color:var(--accent);background:var(--accent);color:#fff}
.article-ecosystem-mini{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.article-ecosystem-mini__card{display:grid;grid-template-columns:112px minmax(0,1fr);min-height:112px;overflow:hidden;border:1px solid var(--line);border-radius:20px;background:linear-gradient(135deg,color-mix(in srgb,var(--surface) 97%,var(--accent) 3%),var(--surface));color:var(--text);text-decoration:none;transition:transform .18s ease,border-color .18s ease}
.article-ecosystem-mini__card:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--accent) 35%,var(--line))}
.article-ecosystem-mini__card img{width:100%;height:100%;min-height:112px;padding:18px;object-fit:contain;object-position:center;background:linear-gradient(145deg,#0e1017,#17151f)}
.article-ecosystem-mini__card:nth-child(1) img{background:linear-gradient(145deg,#f7f7f4,#e9e9e5)}
.article-ecosystem-mini__card:nth-child(2) img{background:linear-gradient(145deg,#130906,#21100a)}
.article-ecosystem-mini__card:nth-child(3) img{background:linear-gradient(145deg,#07152a,#170c36)}
.article-ecosystem-mini__card:nth-child(4) img{background:linear-gradient(145deg,#080808,#161616)}
.article-ecosystem-mini__card span{display:flex;flex-direction:column;justify-content:center;padding:16px 17px}.article-ecosystem-mini__card strong{font-size:.96rem;line-height:1.15}.article-ecosystem-mini__card small{margin-top:6px;color:var(--muted);font-size:.75rem;line-height:1.35}
@media(max-width:900px){.article-bridge{grid-template-columns:1fr}.article-ecosystem-mini__card{grid-template-columns:96px minmax(0,1fr);min-height:96px}.article-ecosystem-mini__card img{min-height:96px;padding:15px}}
@media(max-width:560px){.article-bridge{padding:20px 16px;border-radius:24px}.article-bridge__actions a{width:100%}.article-ecosystem-mini{grid-template-columns:1fr;gap:10px}.article-ecosystem-mini__card{grid-template-columns:92px minmax(0,1fr);min-height:92px;border-radius:18px}.article-ecosystem-mini__card img{min-height:92px;padding:14px}.article-ecosystem-mini__card span{padding:13px 14px}}
/* Kachouri: correctifs articles et mobile-first. */

/* Boutons: le texte doit rester lisible malgré les anciennes règles globales sur les liens. */
body.is-article #article-root .article-actions-v5 a,
body.is-article #article-root .article-actions-v5 a:visited,
body.is-article #article-root .article-bridge__actions .article-bridge__primary,
body.is-article #article-root .article-bridge__actions .article-bridge__primary:visited,
body.is-article #article-root .article-rail-v5__card--cta a,
body.is-article #article-root .article-rail-v5__card--cta a:visited{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
body.is-article #article-root .article-actions-v5 button{
  color:var(--text)!important;
  -webkit-text-fill-color:var(--text)!important;
}
body.is-article #article-root .article-actions-v5 a:focus-visible,
body.is-article #article-root .article-actions-v5 button:focus-visible{
  outline:3px solid color-mix(in srgb,var(--accent) 36%,transparent);
  outline-offset:3px;
}

/* Sommaire desktop: le CTA reste visible, seule la liste défile si elle est très longue. */
@media(min-width:981px){
  body.is-article #article-root .article-rail-v5{
    position:sticky!important;
    top:calc(var(--header-h) + 22px)!important;
    max-height:none!important;
    overflow:visible!important;
  }
  body.is-article #article-root .article-rail-v5__sticky{
    display:flex;
    flex-direction:column;
    max-height:calc(100dvh - var(--header-h) - 44px);
    overflow:hidden;
  }
  body.is-article #article-root .article-rail-v5 nav{
    position:relative;
    min-height:0;
    max-height:clamp(180px,42dvh,420px);
    overflow-y:auto;
    overscroll-behavior:contain;
    padding-right:6px;
    scrollbar-width:none;
    mask-image:linear-gradient(to bottom,#000 0,#000 calc(100% - 18px),transparent 100%);
  }
  body.is-article #article-root .article-rail-v5 nav::-webkit-scrollbar{width:0;height:0}
  body.is-article #article-root .article-rail-v5__card--cta{
    flex:0 0 auto;
    margin-top:14px;
  }
}

/* Les ancres ne doivent pas disparaître sous le header et la barre article. */
body.is-article #article-root .article-section,
body.is-article #article-root .article-section h2[id]{
  scroll-margin-top:calc(var(--header-h) + 72px);
}

/* Tablettes: le sommaire devient natif dans le flux, sans barre collante. */
@media(max-width:980px){
  body.is-article .article-context{
    position:relative!important;
    top:auto!important;
    z-index:30!important;
    background:color-mix(in srgb,var(--bg) 96%,transparent)!important;
    backdrop-filter:none!important;
  }
  body.is-article .article-context__inner{
    min-height:0!important;
    padding-block:10px!important;
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr)!important;
    align-items:center!important;
    gap:10px 14px!important;
  }
  body.is-article .article-context__inner>details{
    min-width:0;
    justify-self:end;
  }
  body.is-article .article-context__inner>span{display:none!important}
  body.is-article .article-context details>div{
    left:auto!important;
    right:0!important;
    width:min(280px,calc(100vw - 32px));
  }
  body.is-article #article-root .article-toc-mobile{
    width:100%;
    margin-top:18px;
  }
  body.is-article #article-root .article-toc-mobile nav{
    max-height:52dvh;
    overflow:auto;
    overscroll-behavior:contain;
  }
}

/* Mobile-first: vraies gouttières, cartes respirantes et actions non tassées. */
@media(max-width:640px){
  body.is-article #article-root.article-shell{
    width:calc(100% - 32px)!important;
    padding-top:16px!important;
    padding-bottom:56px!important;
  }
  body.is-article .article-context .section-shell{
    width:calc(100% - 28px)!important;
  }
  body.is-article .article-context__inner>a,
  body.is-article .article-context__inner summary{
    font-size:.82rem!important;
    line-height:1.25!important;
  }
  body.is-article #article-root .article-hero-v5{
    padding:28px 22px 24px!important;
    border-radius:26px!important;
  }
  body.is-article #article-root .article-hero-v5__brand{
    width:52px!important;
    right:16px!important;
    top:16px!important;
    opacity:.09!important;
  }
  body.is-article #article-root .article-back{margin-bottom:16px!important}
  body.is-article #article-root .article-meta-v5{
    padding-right:42px;
    margin-bottom:15px!important;
  }
  body.is-article #article-root .article-hero-v5 h1{
    font-size:clamp(2.1rem,10.7vw,3.25rem)!important;
    line-height:.98!important;
    letter-spacing:-.05em!important;
  }
  body.is-article #article-root .article-hero-v5 .article-deck{
    margin-top:18px!important;
    font-size:1rem!important;
    line-height:1.62!important;
  }
  body.is-article #article-root .article-actions-v5{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:9px!important;
    margin-top:22px!important;
  }
  body.is-article #article-root .article-actions-v5>*{
    min-width:0!important;
    width:100%!important;
    padding:11px 12px!important;
    white-space:normal!important;
    text-align:center!important;
    line-height:1.2!important;
  }
  body.is-article #article-root .article-actions-v5>a:first-child{
    grid-column:1/-1;
  }
  body.is-article #article-root .article-layout-v5{
    width:100%!important;
    margin-top:24px!important;
  }
  body.is-article #article-root .article-prose-v5{
    width:100%!important;
    min-width:0!important;
  }
  body.is-article #article-root .article-section{
    margin-top:20px!important;
    padding:26px 22px!important;
    border-radius:24px!important;
  }
  body.is-article #article-root .article-section__marker{
    left:22px!important;
    width:44px!important;
  }
  body.is-article #article-root .article-section h2{
    font-size:clamp(1.6rem,7.4vw,2.12rem)!important;
    line-height:1.08!important;
    margin-bottom:18px!important;
  }
  body.is-article #article-root .article-section h3{
    margin-top:26px!important;
    font-size:1.18rem!important;
  }
  body.is-article #article-root .article-section p,
  body.is-article #article-root .article-section li{
    font-size:1rem!important;
    line-height:1.72!important;
    overflow-wrap:anywhere!important;
    hyphens:auto;
  }
  body.is-article #article-root .article-list li{
    padding-left:34px!important;
    padding-right:2px!important;
  }
  body.is-article #article-root .article-list:not(.article-list--ordered) li::before{
    left:4px!important;
  }
  body.is-article #article-root .article-callout{
    grid-template-columns:34px minmax(0,1fr)!important;
    padding:17px 16px!important;
    gap:11px!important;
  }
  body.is-article #article-root .article-table-wrap{
    margin-inline:-4px!important;
    max-width:calc(100% + 8px)!important;
  }
  body.is-article #article-root .article-bridge,
  body.is-article #article-root .article-related{
    margin-top:38px!important;
    padding:22px 18px!important;
    border-radius:24px!important;
  }
  body.is-article #article-root .article-bridge h2,
  body.is-article #article-root .article-related__head h2{
    font-size:clamp(1.65rem,7.6vw,2.3rem)!important;
  }
}

/* Très petits écrans: rien ne doit toucher le bord. */
@media(max-width:390px){
  body.is-article #article-root.article-shell{width:calc(100% - 24px)!important}
  body.is-article #article-root .article-hero-v5{padding-inline:19px!important}
  body.is-article #article-root .article-section{padding-inline:19px!important}
  body.is-article #article-root .article-actions-v5{grid-template-columns:1fr!important}
  body.is-article #article-root .article-actions-v5>a:first-child{grid-column:auto}
}

/* Garde-fous mobiles généraux pour les pages déjà construites. */
@media(max-width:640px){
  body .section-shell,
  body .page-shell,
  body .content-shell{
    width:min(calc(100% - 28px),var(--container,1180px));
  }
  main,main section,main article{min-width:0}
  main img,main svg,main video{max-width:100%;height:auto}
}

/* Outils de lecture intégrés à la trame article. */
body.is-article #article-root .article-hero-v5 h1{
  color:var(--accent)!important;
}
body.is-article #article-root .article-save-primary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
body.is-article #article-root .article-save-primary[aria-pressed="true"]{
  background:color-mix(in srgb,var(--accent) 12%,var(--surface));
  border-color:color-mix(in srgb,var(--accent) 55%,var(--line));
  color:var(--accent)!important;
  -webkit-text-fill-color:var(--accent)!important;
}

.article-reading-dock{
  position:fixed;
  right:max(18px,calc((100vw - var(--article-max))/2 - 78px));
  top:50%;
  z-index:84;
  display:grid;
  gap:8px;
  width:132px;
  padding:10px;
  border:1px solid color-mix(in srgb,var(--accent) 26%,var(--line));
  border-radius:22px;
  background:color-mix(in srgb,var(--surface) 95%,transparent);
  box-shadow:var(--shadow-soft);
  backdrop-filter:blur(14px);
  transform:translateY(-50%);
}
.article-reading-dock__progress{
  --reading-progress:0deg;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  min-height:28px;
  padding:5px 7px 7px;
  color:var(--muted);
  font-size:.72rem;
  font-weight:800;
}
.article-reading-dock__progress i{
  width:20px;
  height:20px;
  flex:0 0 20px;
  border-radius:50%;
  background:conic-gradient(var(--accent) var(--reading-progress),var(--line) 0);
  -webkit-mask:radial-gradient(circle at center,transparent 48%,#000 51%);
  mask:radial-gradient(circle at center,transparent 48%,#000 51%);
}
.article-reading-dock__save,
.article-reading-dock__library,
.article-reading-dock__top{
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:9px 10px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface);
  color:var(--text);
  font:inherit;
  font-size:.77rem;
  font-weight:800;
  line-height:1.15;
  text-align:center;
  text-decoration:none;
  cursor:pointer;
}
.article-reading-dock__top{font-size:1rem;opacity:.35;pointer-events:none}
.article-reading-dock__top.is-visible{opacity:1;pointer-events:auto}
.article-reading-dock__save[aria-pressed="true"]{
  background:var(--accent);
  border-color:var(--accent);
  color:#fff;
}
.article-reading-dock__save[aria-pressed="true"] .article-reading-dock__icon{font-size:0}
.article-reading-dock__save[aria-pressed="true"] .article-reading-dock__icon::after{content:"✓";font-size:.9rem}
.article-reading-dock__library:hover,
.article-reading-dock__save:hover,
.article-reading-dock__top:hover{transform:translateY(-1px)}

/* Un article possède son propre contrôle de retour en haut. */
body.is-article .site-footer + .back-to-top,
body.is-article footer .back-to-top,
body.is-article > .back-to-top{display:none!important}

@media(max-width:1320px){
  .article-reading-dock{right:14px;width:118px}
}

@media(max-width:1100px){
  body.is-article{padding-bottom:104px}
  .article-reading-dock{
    left:50%;
    right:auto;
    top:auto;
    bottom:max(12px,env(safe-area-inset-bottom));
    width:min(calc(100% - 32px),560px);
    grid-template-columns:54px minmax(0,1fr) minmax(94px,.62fr) 48px;
    align-items:stretch;
    gap:7px;
    padding:7px;
    border-radius:20px;
    transform:translateX(-50%);
  }
  .article-reading-dock__progress{
    min-height:48px;
    justify-content:center;
    padding:5px;
    border-radius:15px;
    background:color-mix(in srgb,var(--accent-soft) 60%,var(--surface));
  }
  .article-reading-dock__progress span{display:none}
  .article-reading-dock__progress i{width:24px;height:24px;flex-basis:24px}
  .article-reading-dock__save,
  .article-reading-dock__library,
  .article-reading-dock__top{
    min-height:48px;
    border-radius:15px;
    font-size:.82rem;
  }
  .article-reading-dock__library{padding-inline:10px}
  .article-reading-dock__top{padding:0;font-size:1.15rem}
}

@media(max-width:640px){
  body.is-article{padding-bottom:98px}
  .article-reading-dock{
    width:calc(100% - 28px);
    bottom:max(10px,env(safe-area-inset-bottom));
    grid-template-columns:44px minmax(0,1fr) 78px 44px;
    gap:6px;
    padding:6px;
    border-radius:19px;
  }
  .article-reading-dock__progress,
  .article-reading-dock__save,
  .article-reading-dock__library,
  .article-reading-dock__top{min-height:46px}
  .article-reading-dock__save{font-size:.8rem;padding-inline:8px}
  .article-reading-dock__library{font-size:.72rem;padding-inline:6px;gap:3px}
  .article-reading-dock__library>span:first-child{display:none}

  body.is-article #article-root .article-hero-v5,
  body.is-article #article-root .article-section,
  body.is-article #article-root .article-bridge,
  body.is-article #article-root .article-related{
    padding-left:24px!important;
    padding-right:24px!important;
  }
  body.is-article #article-root .article-section__marker{left:24px!important}
  body.is-article #article-root .article-toc-mobile summary{padding:18px 20px!important}
  body.is-article #article-root .article-toc-mobile nav{padding:0 20px 18px!important}
}

@media(max-width:390px){
  body.is-article #article-root.article-shell{width:calc(100% - 28px)!important}
  body.is-article #article-root .article-hero-v5,
  body.is-article #article-root .article-section,
  body.is-article #article-root .article-bridge,
  body.is-article #article-root .article-related{
    padding-left:22px!important;
    padding-right:22px!important;
  }
  .article-reading-dock{width:calc(100% - 20px);grid-template-columns:42px minmax(0,1fr) 74px 42px}
  .article-reading-dock__save{font-size:.76rem}
  .article-reading-dock__library{font-size:.68rem}
}

@media(prefers-reduced-motion:reduce){
  .article-reading-dock__library,
  .article-reading-dock__save,
  .article-reading-dock__top{transition:none!important}
}


/* Repères éditoriaux de vérification, composant natif de la trame article */
.article-evidence{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;margin:0 auto 18px;max-width:1180px;background:var(--line);border:1px solid var(--line);border-radius:20px;overflow:hidden}
.article-evidence>div{background:var(--surface);padding:16px 18px;min-width:0}.article-evidence span{display:block;font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-bottom:5px}.article-evidence strong{display:block;font-size:.9rem;line-height:1.35;color:var(--text)}
@media(max-width:760px){.article-evidence{grid-template-columns:1fr 1fr;margin-inline:var(--mobile-gutter,18px)}.article-evidence>div{padding:14px}}
@media(max-width:430px){.article-evidence{grid-template-columns:1fr}}

/* ================================================================
   KACHOURI V5.2 - articles plus compacts et outils non intrusifs
   ================================================================ */
body.is-article #article-root .article-hero-v5 h1{
  max-width:18ch!important;
  font-size:clamp(2.4rem,4vw,3.8rem)!important;
  line-height:.98!important;
  letter-spacing:-.045em!important;
  color:var(--text)!important;
}

body.is-article .article-context{top:var(--header-h,72px)!important}
body.is-article .article-context__inner{
  width:min(calc(100% - 32px),1180px)!important;
  min-height:46px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:10px!important;
  padding-block:6px!important;
}
.article-context__path{display:flex;min-width:0;align-items:center;gap:9px}
.article-context__back{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-weight:750}
.article-context__separator{color:var(--line);font-size:.78rem}
.article-context__path details{min-width:0}
.article-context__path summary{display:flex;align-items:center;gap:5px;white-space:nowrap;font-weight:750}
.article-context__time{
  margin-left:2px!important;
  padding:5px 9px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface);
  color:var(--muted)!important;
  font-size:.7rem!important;
  font-weight:750;
  line-height:1;
  white-space:nowrap;
}

.article-reading-dock{
  top:auto!important;
  right:max(18px,env(safe-area-inset-right))!important;
  bottom:max(20px,env(safe-area-inset-bottom))!important;
  width:148px!important;
  transform:none!important;
  transition:opacity .18s ease,transform .18s ease!important;
}
.article-reading-dock.is-suppressed{opacity:0!important;visibility:hidden!important;transform:translateY(10px)!important;pointer-events:none!important}
.article-reading-dock__save svg,.article-reading-dock__library svg,.article-reading-dock__top svg{width:17px;height:17px;flex:0 0 17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.article-reading-dock__save,.article-reading-dock__library{white-space:nowrap!important;gap:9px!important;padding-inline:12px!important}
.article-reading-dock__save span,.article-reading-dock__library span{white-space:nowrap!important}
.article-reading-dock__top{padding:8px!important}

@media(max-width:1399px){.article-reading-dock{display:none!important}}
@media(max-width:760px){
  body.is-article #article-root .article-hero-v5 h1{max-width:100%!important;font-size:clamp(2.1rem,9.2vw,2.9rem)!important;line-height:1!important}
  body.is-article .article-context__inner{width:calc(100% - 28px)!important;padding-block:7px!important}
  .article-context__path{flex:0 1 auto;width:auto;justify-content:flex-start;gap:8px}
  .article-context__separator{display:none}
  .article-context__path summary{font-size:.76rem!important}
  .article-context__time{display:inline-flex!important}
}
body.is-article #article-root .article-save-primary svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

/* V5.2 mobile-first: le dock flottant reste un confort desktop.
   Sur mobile et tablette, les actions sont deja presentes dans le hero et le bloc Ma lecture. */
@media(max-width:1079px){
  body.is-article{padding-bottom:0!important}
  .article-reading-dock{display:none!important}
}

/* KACHOURI V5.3.5 - dossiers lies: styles embarques avec les pages article */
body.is-article #article-root .article-dossiers{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:14px;
  width:min(100%,var(--article-reading));
  margin:clamp(36px,6vw,58px) auto 0;
  padding:18px 20px;
  border:1px solid var(--line);
  border-radius:20px;
  background:color-mix(in srgb,var(--accent-soft) 24%,var(--surface));
}
body.is-article #article-root .article-dossiers>div{
  min-width:0;
}
body.is-article #article-root .article-dossiers>div span{
  display:block;
  color:var(--accent);
  font-size:.68rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
body.is-article #article-root .article-dossiers>div strong{
  display:block;
  margin-top:5px;
  color:var(--text);
  font-size:1rem;
  line-height:1.35;
}
body.is-article #article-root .article-dossiers nav{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
body.is-article #article-root .article-dossiers nav a{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:42px;
  padding:9px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface);
  color:var(--text);
  font-size:.82rem;
  font-weight:850;
  line-height:1.25;
  text-decoration:none;
}
body.is-article #article-root .article-dossiers nav a:hover{
  border-color:color-mix(in srgb,var(--accent) 42%,var(--line));
  color:var(--accent);
}
body.is-article #article-root .article-dossiers nav a span{
  color:var(--accent);
}
@media(min-width:760px){
  body.is-article #article-root .article-dossiers{
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
  }
  body.is-article #article-root .article-dossiers nav{
    justify-content:flex-end;
  }
}
@media(max-width:640px){
  body.is-article #article-root .article-dossiers{
    width:100%;
    margin-top:30px;
    padding:16px;
    border-radius:18px;
  }
  body.is-article #article-root .article-dossiers nav a{
    width:100%;
    justify-content:space-between;
  }
}

/* KACHOURI V5.3.6 - synthese structuree en 30 secondes */
.article-callout--quick-summary{
  border-color:color-mix(in srgb,var(--accent) 34%,var(--line));
  background:linear-gradient(145deg,color-mix(in srgb,var(--accent) 8%,var(--surface)),var(--surface));
}
.article-callout--quick-summary .article-callout__icon::before{
  content:"";
  position:absolute;
  left:10px;
  top:8px;
  width:14px;
  height:17px;
  border:2px solid var(--accent);
  border-radius:8px 8px 5px 5px;
  clip-path:polygon(0 0,100% 0,100% 75%,65% 75%,50% 100%,35% 75%,0 75%);
}
.article-callout--quick-summary .article-callout__icon::after{display:none}
.article-callout--quick-summary .article-list{
  margin:8px 0 0;
}
.article-callout--quick-summary .article-list li{
  padding-top:10px;
  padding-bottom:10px;
}
.article-callout--quick-summary .article-list strong{
  color:var(--text);
}


/* KACHOURI V5.3.12 - securites responsives editoriales */
.article-prose-v5 img,.article-section img,.article-related img{display:block;max-width:100%;height:auto}
.article-prose-v5 figure,.article-section figure{max-width:100%;margin:24px 0}
.article-prose-v5 pre,.article-prose-v5 code,.article-prose-v5 table,.article-prose-v5 iframe,.article-prose-v5 embed,.article-prose-v5 object{max-width:100%}
.article-prose-v5 a{overflow-wrap:anywhere}
@media(max-width:760px){
  .article-shell{width:min(calc(100% - 20px),var(--article-max))}
  .article-section{padding:20px}
  .article-code{padding:16px;font-size:.84rem}
  .article-table-wrap{border-radius:16px}
  .article-table-wrap table{min-width:560px}
}
@media(max-width:480px){
  .article-hero-v5{padding:22px}
  .article-actions-v5{display:grid;grid-template-columns:1fr}
  .article-actions-v5 a,.article-actions-v5 button{justify-content:center}
  .article-related{padding:20px;border-radius:24px}
}

/* v5.4.5 — chronology cards used only when an article opts into :::timeline */
.article-timeline{
  display:grid;
  gap:14px;
  margin:28px 0 30px;
}
.article-timeline__item{
  display:grid;
  grid-template-columns:minmax(128px, .72fr) minmax(0, 4fr);
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:20px;
  background:var(--surface);
}
.article-timeline__date{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:122px;
  padding:20px;
  background:var(--accent-soft);
  color:var(--accent);
  font-size:1rem;
  line-height:1.35;
  text-align:center;
}
.article-timeline__date strong{font-weight:800}
.article-timeline__content{
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(0, 1.2fr);
}
.article-timeline__applies,
.article-timeline__action{
  padding:20px 22px;
}
.article-timeline__action{
  border-left:1px solid var(--line);
  background:var(--accent-soft);
}
.article-timeline__label{
  margin:0 0 8px!important;
  color:var(--text)!important;
  font-size:.74rem!important;
  font-weight:800;
  line-height:1.2!important;
  letter-spacing:.055em;
  text-transform:uppercase;
}
.article-timeline__applies>p:last-child,
.article-timeline__action>p:last-child{
  margin:0!important;
  color:var(--muted)!important;
  font-size:.98rem!important;
  line-height:1.62!important;
}
@media (max-width:760px){
  .article-timeline{gap:12px;margin:22px 0 26px}
  .article-timeline__item{grid-template-columns:1fr;border-radius:18px}
  .article-timeline__date{
    justify-content:flex-start;
    min-height:0;
    padding:12px 16px;
    text-align:left;
  }
  .article-timeline__date strong{
    display:inline-flex;
    width:auto;
    padding:6px 10px;
    border:1px solid var(--line);
    border-radius:999px;
    background:var(--surface);
  }
  .article-timeline__content{grid-template-columns:1fr}
  .article-timeline__applies,.article-timeline__action{padding:17px 18px}
  .article-timeline__action{border-top:1px solid var(--line);border-left:0}
}

/* ================================================================
   KACHOURI V5.6.1 - titre article plus editorial
   Portee volontairement limitee aux pages article.
   ================================================================ */
body.is-article #article-root .article-hero-v5 h1{
  max-width:100%!important;
  text-wrap:pretty!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  hyphens:none!important;
}

@media(min-width:981px){
  body.is-article #article-root .article-hero-v5 h1{
    max-width:none!important;
    font-size:clamp(3rem,3.55vw,3.55rem)!important;
    line-height:1.01!important;
    letter-spacing:-.042em!important;
  }
  body.is-article #article-root .article-hero-v5 .article-deck{
    max-width:860px!important;
  }
}

@media(min-width:761px) and (max-width:980px){
  body.is-article #article-root .article-hero-v5 h1{
    max-width:100%!important;
    font-size:clamp(2.45rem,5.3vw,3.2rem)!important;
    line-height:1!important;
  }
}

@media(max-width:760px){
  body.is-article #article-root .article-hero-v5 h1{
    max-width:100%!important;
    font-size:clamp(2.1rem,9.2vw,2.9rem)!important;
    line-height:1!important;
    letter-spacing:-.045em!important;
    text-wrap:pretty!important;
    word-break:normal!important;
    hyphens:none!important;
  }
}

.article-series{margin-top:clamp(44px,7vw,84px);padding:clamp(24px,4vw,38px);border:1px solid var(--line);border-radius:30px;background:linear-gradient(180deg,color-mix(in srgb,var(--accent-soft) 34%,var(--surface)),var(--surface))}
.article-series__head{display:grid;gap:8px;margin-bottom:18px}
.article-series__head p:first-child{margin:0;color:var(--accent);font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.09em}
.article-series__head h2{margin:0;font-size:clamp(1.7rem,4vw,2.7rem);line-height:1.05;letter-spacing:-.04em}
.article-series__head p:last-child{margin:0;color:var(--muted);max-width:62ch;line-height:1.62}
.article-series__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.article-series__card{display:grid;gap:8px;align-content:start;min-height:168px;padding:18px;border:1px solid var(--line);border-radius:22px;background:var(--surface);color:var(--text);text-decoration:none;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.article-series__card:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--accent) 30%,var(--line));box-shadow:0 18px 42px rgba(54,20,37,.08)}
.article-series__card.is-current{border-color:color-mix(in srgb,var(--accent) 34%,var(--line));background:color-mix(in srgb,var(--accent-soft) 20%,var(--surface))}
.article-series__step{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:14px;background:color-mix(in srgb,var(--accent-soft) 66%,var(--surface));color:var(--accent);font-size:.82rem;font-weight:900}
.article-series__card strong{font-size:1.02rem;line-height:1.34}
.article-series__card small{color:var(--muted);line-height:1.55}
.article-series__actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px}
.article-series__actions a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border-radius:999px;border:1px solid var(--line);color:var(--text);text-decoration:none;font-weight:800}
.article-series__actions .article-series__primary{background:var(--accent);border-color:var(--accent);color:#fff}
@media(max-width:700px){.article-series__grid{grid-template-columns:1fr}.article-series__card{min-height:0}.article-series__actions a{width:100%}}


/* Article UX compact strip: metadata + auteur MyProID */
.article-evidence--compact{
  max-width:1180px;
  margin:0 auto 12px;
  display:grid;
  grid-template-columns:1.05fr 1.35fr .95fr .95fr;
  gap:0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface);
}
.article-evidence--compact .article-evidence__item{
  min-width:0;
  min-height:46px;
  padding:8px 12px;
  display:flex;
  align-items:center;
  gap:8px;
  background:var(--surface);
  border-left:1px solid var(--line);
}
.article-evidence--compact .article-evidence__item:first-child{border-left:0}
.article-evidence--compact .article-evidence__item>span{
  flex:0 0 auto;
  margin:0;
  color:var(--muted);
  font-size:.59rem;
  font-weight:760;
  letter-spacing:.07em;
  line-height:1.1;
  text-transform:uppercase;
}
.article-evidence--compact .article-evidence__item>strong,
.article-evidence--compact .article-evidence__source-link strong,
.article-evidence--compact .article-author-link strong{
  min-width:0;
  margin:0;
  color:var(--text);
  font-size:.78rem;
  font-weight:790;
  line-height:1.2;
}
.article-author-link,
.article-evidence__source-link{
  min-width:0;
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--text);
  text-decoration:none;
}
.article-author-link img{
  width:24px;
  height:25px;
  flex:0 0 24px;
  border-radius:7px;
  object-fit:cover;
}
.article-author-link__arrow,
.article-evidence__source-link>span{color:var(--accent);font-size:.72rem;font-weight:850}
.article-author-link:hover strong,
.article-evidence__source-link:hover strong{color:var(--accent)}
.article-author-link:focus-visible,
.article-evidence__source-link:focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 28%,transparent);outline-offset:3px;border-radius:7px}
@media(max-width:760px){
  .article-evidence--compact{grid-template-columns:1fr 1fr;margin-inline:var(--mobile-gutter,18px)}
  .article-evidence--compact .article-evidence__item{min-height:44px;padding:7px 10px}
  .article-evidence--compact .article-evidence__item:nth-child(odd){border-left:0}
  .article-evidence--compact .article-evidence__item:nth-child(n+3){border-top:1px solid var(--line)}
  .article-evidence--compact .article-evidence__item>span{font-size:.56rem}
  .article-evidence--compact .article-evidence__item>strong,
  .article-evidence--compact .article-evidence__source-link strong,
  .article-evidence--compact .article-author-link strong{font-size:.74rem}
}
@media(max-width:360px){
  .article-evidence--compact{margin-inline:12px}
  .article-evidence--compact .article-evidence__item{gap:6px;padding-inline:8px}
  .article-author-link img{width:21px;height:22px;flex-basis:21px}
}

/* ==================================================================
   Article UX consolidation 2026-09-22
   Quick summary, reading guide and editorial evidence
   ================================================================== */
body.is-article #article-root .article-layout-v5{
  margin-top:clamp(28px,4.5vw,52px);
}

/* À retenir en 30 secondes: compact, readable and intentionally calm. */
body.is-article #article-root .article-callout--quick-summary{
  grid-template-columns:30px minmax(0,1fr);
  gap:11px;
  margin:18px 0 26px;
  padding:15px 16px;
  border-radius:17px;
  box-shadow:none;
  background:linear-gradient(135deg,color-mix(in srgb,var(--accent) 6%,var(--surface)),var(--surface));
}
body.is-article #article-root .article-callout--quick-summary .article-callout__icon{
  width:30px;
  height:30px;
  border-radius:10px;
  background:color-mix(in srgb,var(--accent) 10%,var(--surface));
}
body.is-article #article-root .article-callout--quick-summary .article-callout__icon::before{
  left:8px;
  top:7px;
  width:12px;
  height:14px;
  border-width:1.7px;
}
body.is-article #article-root .article-callout--quick-summary .article-callout__label{
  margin:1px 0 5px!important;
  font-size:.66rem!important;
  letter-spacing:.075em;
}
body.is-article #article-root .article-callout--quick-summary .article-list{
  margin:2px 0 0;
}
body.is-article #article-root .article-callout--quick-summary .article-list li{
  padding:8px 0 8px 23px;
  font-size:.92rem;
  line-height:1.55;
}
body.is-article #article-root .article-callout--quick-summary .article-list:not(.article-list--ordered) li::before{
  left:3px;
  top:15px;
  width:7px;
  height:7px;
  border-width:1.5px;
}

/* Reading guide: denser hierarchy, current section remains immediately visible. */
body.is-article #article-root .article-rail-v5__sticky{
  padding:14px;
  border-radius:18px;
  box-shadow:0 12px 32px color-mix(in srgb,var(--text) 4%,transparent);
}
body.is-article #article-root .article-rail-v5__heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:7px;
}
body.is-article #article-root .article-rail-v5__title{
  margin:0;
  font-size:.67rem;
  letter-spacing:.08em;
}
body.is-article #article-root .article-rail-v5__heading>span{
  flex:0 0 auto;
  color:var(--muted);
  font-size:.62rem;
  font-weight:760;
}
body.is-article #article-root .article-rail-v5 nav a{
  position:relative;
  padding:8px 8px 8px 10px;
  border-bottom:0;
  border-top:1px solid color-mix(in srgb,var(--line) 78%,transparent);
  border-radius:8px;
  font-size:.79rem;
  line-height:1.32;
  transition:background .15s ease,color .15s ease,padding-left .15s ease;
}
body.is-article #article-root .article-rail-v5 nav a:first-child{border-top:0}
body.is-article #article-root .article-rail-v5 nav a:hover{
  background:color-mix(in srgb,var(--accent) 4%,var(--surface));
}
body.is-article #article-root .article-rail-v5 nav a.is-current{
  padding-left:13px;
  background:color-mix(in srgb,var(--accent) 7%,var(--surface));
  color:var(--text);
  font-weight:820;
}
body.is-article #article-root .article-rail-v5 nav a.is-current::before{
  content:"";
  position:absolute;
  left:4px;
  top:9px;
  bottom:9px;
  width:2px;
  border-radius:999px;
  background:var(--accent);
}
body.is-article #article-root .article-rail-v5__card--cta{
  margin-top:11px;
  padding:12px;
  border:1px solid color-mix(in srgb,var(--accent) 14%,var(--line));
  border-radius:14px;
  background:color-mix(in srgb,var(--accent) 5%,var(--surface));
}
body.is-article #article-root .article-rail-v5__card--cta span{
  margin-bottom:4px;
  font-size:.61rem;
}
body.is-article #article-root .article-rail-v5__card--cta strong{
  font-size:.84rem;
  line-height:1.25;
}
body.is-article #article-root .article-rail-v5__card--cta a{
  min-height:34px;
  margin-top:9px;
  padding:7px 10px;
  font-size:.7rem;
}

/* Mobile TOC follows the same compact grammar. */
body.is-article #article-root .article-toc-mobile{
  border-radius:15px;
  box-shadow:none;
}
body.is-article #article-root .article-toc-mobile summary{
  min-height:44px;
  padding:11px 13px!important;
  align-items:center;
  font-size:.83rem;
}
body.is-article #article-root .article-toc-mobile summary span{
  font-size:.67rem;
}
body.is-article #article-root .article-toc-mobile nav{
  padding:0 13px 10px!important;
}
body.is-article #article-root .article-toc-mobile a{
  padding:8px 0;
  font-size:.82rem;
}

/* Sources and revision history: restore a complete article-native visual system. */
body.is-article #article-root .article-evidence-detail{
  width:min(100%,var(--article-max));
  margin:clamp(34px,5.5vw,66px) auto 0;
  padding:clamp(18px,2.6vw,28px);
  border:1px solid var(--line);
  border-radius:24px;
  background:var(--surface);
  box-shadow:0 18px 50px color-mix(in srgb,var(--text) 4%,transparent);
}
body.is-article #article-root .article-evidence-detail__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:16px;
}
body.is-article #article-root .article-evidence-detail__head>div{
  min-width:0;
}
body.is-article #article-root .article-evidence-detail__head p:first-child{
  margin:0 0 5px;
  color:var(--accent);
  font-size:.65rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
body.is-article #article-root .article-evidence-detail__head h2{
  margin:0;
  color:var(--text);
  font-size:clamp(1.45rem,2.7vw,2.15rem);
  line-height:1.04;
  letter-spacing:-.035em;
}
body.is-article #article-root .article-evidence-detail__head p:last-child{
  max-width:68ch;
  margin:7px 0 0;
  color:var(--muted);
  font-size:.79rem;
  line-height:1.48;
}
body.is-article #article-root .article-evidence-detail__count{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:5px 9px;
  border:1px solid color-mix(in srgb,var(--accent) 18%,var(--line));
  border-radius:999px;
  background:color-mix(in srgb,var(--accent) 4%,var(--surface));
  color:var(--muted);
  font-size:.68rem;
  font-weight:780;
}
body.is-article #article-root .article-evidence-detail__grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
body.is-article #article-root .article-evidence-source{
  min-width:0;
  display:grid;
  grid-template-rows:auto auto auto 1fr;
  align-content:start;
  gap:6px;
  padding:13px 14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:color-mix(in srgb,var(--surface-2) 44%,var(--surface));
}
body.is-article #article-root .article-evidence-source>div{
  display:grid;
  gap:4px;
  min-width:0;
}
body.is-article #article-root .article-evidence-source>div>span{
  width:max-content;
  max-width:100%;
  padding:3px 6px;
  border-radius:999px;
  background:color-mix(in srgb,var(--accent) 7%,var(--surface));
  color:var(--accent);
  font-size:.58rem;
  font-weight:850;
  letter-spacing:.055em;
  line-height:1.25;
  text-transform:uppercase;
}
body.is-article #article-root .article-evidence-source>div>strong{
  color:var(--text);
  font-size:.86rem;
  line-height:1.3;
  overflow-wrap:anywhere;
}
body.is-article #article-root .article-evidence-source>p{
  margin:0;
  color:var(--muted);
  font-size:.72rem;
  line-height:1.42;
}
body.is-article #article-root .article-evidence-source .article-evidence-source__meta{
  color:color-mix(in srgb,var(--muted) 88%,var(--text));
  font-size:.66rem;
  overflow-wrap:anywhere;
}
body.is-article #article-root .article-evidence-source>a{
  align-self:end;
  display:inline-flex;
  align-items:center;
  gap:5px;
  width:max-content;
  max-width:100%;
  margin-top:2px;
  color:var(--accent);
  font-size:.7rem;
  font-weight:820;
  text-decoration:none;
}
body.is-article #article-root .article-evidence-source>a:hover{text-decoration:underline}
body.is-article #article-root .article-evidence-source>a:focus-visible{
  outline:3px solid color-mix(in srgb,var(--accent) 28%,transparent);
  outline-offset:3px;
  border-radius:6px;
}
body.is-article #article-root #article-sources-title,
body.is-article #article-root #article-revisions-title{
  scroll-margin-top:calc(var(--header-h) + 74px);
}

body.is-article #article-root .article-revision-list{
  display:grid;
  gap:7px;
  margin:0;
  padding:0;
  list-style:none;
}
body.is-article #article-root .article-revision-list>li{
  display:grid;
  grid-template-columns:120px minmax(0,1fr);
  gap:13px;
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:13px;
  background:color-mix(in srgb,var(--surface-2) 40%,var(--surface));
}
body.is-article #article-root .article-revision-list time{
  color:var(--muted);
  font-size:.7rem;
  font-weight:760;
  line-height:1.4;
}
body.is-article #article-root .article-revision-list>li>div{
  display:grid;
  gap:3px;
}
body.is-article #article-root .article-revision-list span{
  color:var(--accent);
  font-size:.61rem;
  font-weight:850;
  letter-spacing:.05em;
  text-transform:uppercase;
}
body.is-article #article-root .article-revision-list p{
  margin:0;
  color:var(--muted);
  font-size:.76rem;
  line-height:1.48;
}

@media(max-width:760px){
  body.is-article #article-root .article-callout--quick-summary{
    grid-template-columns:26px minmax(0,1fr);
    gap:9px;
    padding:13px 14px;
  }
  body.is-article #article-root .article-callout--quick-summary .article-callout__icon{
    width:26px;
    height:26px;
  }
  body.is-article #article-root .article-callout--quick-summary .article-callout__icon::before{
    left:7px;top:6px;width:10px;height:13px;
  }
  body.is-article #article-root .article-evidence-detail{
    width:calc(100% - 24px);
    margin-top:34px;
    padding:15px 13px;
    border-radius:18px;
  }
  body.is-article #article-root .article-evidence-detail__head{
    align-items:flex-start;
    display:grid;
    gap:9px;
    margin-bottom:12px;
  }
  body.is-article #article-root .article-evidence-detail__count{
    justify-self:start;
  }
  body.is-article #article-root .article-evidence-detail__grid{
    grid-template-columns:1fr;
  }
  body.is-article #article-root .article-evidence-source{
    padding:12px;
  }
  body.is-article #article-root .article-revision-list>li{
    grid-template-columns:1fr;
    gap:5px;
  }
}

@media(prefers-reduced-motion:reduce){
  body.is-article #article-root .article-rail-v5 nav a{transition:none}
}

/* Compatibility resets for the legacy article-wide heading/link rules. */
body.is-article #article-root .article-evidence-detail__head h2{
  margin:0!important;
  padding:0!important;
}
body.is-article #article-root .article-evidence-detail__head h2::before{
  display:none!important;
  content:none!important;
}
body.is-article #article-root .article-rail-v5 nav a,
body.is-article #article-root .article-rail-v5 nav a:visited{
  color:var(--muted)!important;
  -webkit-text-fill-color:var(--muted)!important;
}
body.is-article #article-root .article-rail-v5 nav a:hover,
body.is-article #article-root .article-rail-v5 nav a.is-current,
body.is-article #article-root .article-rail-v5 nav a.is-current:visited{
  color:var(--text)!important;
  -webkit-text-fill-color:var(--text)!important;
}

/* ==================================================================
   Article UX consolidation 2 - knowledge cues and verification ledger
   ================================================================== */
body.is-article #article-root .article-callout--quick-summary{
  grid-template-columns:26px minmax(0,1fr);
  gap:10px;
  padding:13px 14px;
  border-color:color-mix(in srgb,var(--accent) 24%,var(--line));
  background:linear-gradient(135deg,color-mix(in srgb,var(--accent) 4%,var(--surface)),var(--surface));
}
body.is-article #article-root .article-callout--quick-summary .article-callout__icon{
  width:26px;
  height:26px;
  border-radius:9px;
}
body.is-article #article-root .article-callout--quick-summary .article-callout__icon::before{
  left:7px;
  top:6px;
  width:10px;
  height:12px;
}
body.is-article #article-root .article-callout--quick-summary .article-callout__label{
  margin:0 0 7px!important;
  color:var(--text)!important;
  font-size:.64rem!important;
  letter-spacing:.085em;
}
body.is-article #article-root .article-quick-summary{
  display:grid;
  gap:0;
  border-top:1px solid color-mix(in srgb,var(--line) 78%,transparent);
}
body.is-article #article-root .article-quick-summary__item{
  display:grid;
  grid-template-columns:28px 76px minmax(0,1fr);
  gap:8px;
  align-items:start;
  padding:10px 0;
  border-bottom:1px solid color-mix(in srgb,var(--line) 78%,transparent);
}
body.is-article #article-root .article-quick-summary__item:last-child{border-bottom:0;padding-bottom:2px}
body.is-article #article-root .article-quick-summary__index{
  color:color-mix(in srgb,var(--accent) 78%,var(--muted));
  font-size:.6rem;
  font-weight:850;
  letter-spacing:.04em;
  line-height:1.65;
}
body.is-article #article-root .article-quick-summary__item>strong{
  color:var(--text);
  font-size:.79rem;
  line-height:1.5;
}
body.is-article #article-root .article-quick-summary__item>p{
  margin:0!important;
  color:var(--muted)!important;
  font-size:.86rem!important;
  line-height:1.52!important;
}

/* Reading rail: quieter, denser and easier to scan on long articles. */
body.is-article #article-root .article-rail-v5__sticky{
  padding:12px;
  border-radius:17px;
  box-shadow:0 10px 28px color-mix(in srgb,var(--text) 3%,transparent);
}
body.is-article #article-root .article-rail-v5__heading{
  margin-bottom:5px;
  padding:1px 2px 7px;
  border-bottom:1px solid color-mix(in srgb,var(--line) 82%,transparent);
}
body.is-article #article-root .article-rail-v5__title{
  color:var(--text);
  font-size:.64rem;
  letter-spacing:.08em;
}
body.is-article #article-root .article-rail-v5__heading>span{
  font-size:.59rem;
}
body.is-article #article-root .article-rail-v5 nav{
  padding-right:2px;
}
body.is-article #article-root .article-rail-v5 nav a{
  padding:6px 7px 6px 9px;
  border-top:0;
  border-bottom:1px solid color-mix(in srgb,var(--line) 72%,transparent);
  border-radius:7px;
  font-size:.74rem;
  line-height:1.26;
}
body.is-article #article-root .article-rail-v5 nav a:last-child{border-bottom:0}
body.is-article #article-root .article-rail-v5 nav a.is-current{
  padding-left:12px;
}
body.is-article #article-root .article-rail-v5 nav a.is-current::before{
  left:4px;
  top:7px;
  bottom:7px;
  width:2px;
}
body.is-article #article-root .article-rail-v5__card--cta{
  margin-top:8px;
  padding:10px;
  border-radius:12px;
}
body.is-article #article-root .article-rail-v5__card--cta span{margin-bottom:3px;font-size:.57rem}
body.is-article #article-root .article-rail-v5__card--cta strong{font-size:.78rem}
body.is-article #article-root .article-rail-v5__card--cta a{min-height:31px;margin-top:7px;padding:6px 9px;font-size:.66rem}

/* The markdown bibliography remains the human-readable source list.
   This second layer is a compact evidence ledger, not a duplicate wall of cards. */
body.is-article #article-root .article-evidence-detail--sources{
  padding:clamp(17px,2.3vw,24px);
  border-radius:20px;
  box-shadow:none;
  background:linear-gradient(145deg,color-mix(in srgb,var(--accent) 3%,var(--surface)),var(--surface));
}
body.is-article #article-root .article-evidence-detail--sources .article-evidence-detail__head{
  align-items:start;
  margin-bottom:13px;
}
body.is-article #article-root .article-evidence-detail--sources .article-evidence-detail__head h2{
  font-size:clamp(1.35rem,2.35vw,1.9rem);
}
body.is-article #article-root .article-evidence-detail--sources .article-evidence-detail__head p:last-child{
  max-width:76ch;
  font-size:.76rem;
}
body.is-article #article-root .article-evidence-overview{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:7px;
  margin:0 0 10px;
}
body.is-article #article-root .article-evidence-overview>div{
  min-width:0;
  display:grid;
  grid-template-columns:auto 1fr;
  grid-template-areas:"label value" "hint hint";
  align-items:center;
  gap:2px 8px;
  padding:9px 10px;
  border:1px solid color-mix(in srgb,var(--line) 84%,transparent);
  border-radius:11px;
  background:color-mix(in srgb,var(--surface-2) 34%,var(--surface));
}
body.is-article #article-root .article-evidence-overview span{
  grid-area:label;
  color:var(--muted);
  font-size:.59rem;
  font-weight:800;
  line-height:1.2;
}
body.is-article #article-root .article-evidence-overview strong{
  grid-area:value;
  justify-self:end;
  color:var(--text);
  font-size:.92rem;
  line-height:1;
}
body.is-article #article-root .article-evidence-overview small{
  grid-area:hint;
  color:color-mix(in srgb,var(--muted) 84%,var(--text));
  font-size:.57rem;
  line-height:1.3;
}
body.is-article #article-root .article-evidence-ledger{
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--surface);
}
body.is-article #article-root .article-evidence-ledger>summary{
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:9px 12px;
  cursor:pointer;
  list-style:none;
}
body.is-article #article-root .article-evidence-ledger>summary::-webkit-details-marker{display:none}
body.is-article #article-root .article-evidence-ledger>summary>span{
  min-width:0;
  display:grid;
  gap:2px;
}
body.is-article #article-root .article-evidence-ledger>summary strong{
  color:var(--text);
  font-size:.76rem;
  line-height:1.25;
}
body.is-article #article-root .article-evidence-ledger>summary small{
  color:var(--muted);
  font-size:.62rem;
  line-height:1.3;
}
body.is-article #article-root .article-evidence-ledger>summary>b{
  flex:0 0 auto;
  color:var(--accent);
  font-size:.64rem;
  font-weight:850;
}
body.is-article #article-root .article-evidence-ledger>summary::after{
  content:"⌄";
  flex:0 0 auto;
  color:var(--muted);
  font-size:.82rem;
  transform:translateY(-1px);
}
body.is-article #article-root .article-evidence-ledger[open]>summary::after{content:"⌃"}
body.is-article #article-root .article-evidence-ledger[open]>summary{
  border-bottom:1px solid var(--line);
}
body.is-article #article-root .article-evidence-ledger__list{
  display:grid;
  padding:0 12px 4px;
}
body.is-article #article-root .article-evidence-source{
  display:grid;
  grid-template-columns:28px minmax(0,1fr) auto;
  grid-template-rows:auto;
  align-items:center;
  gap:9px;
  padding:10px 0;
  border:0;
  border-bottom:1px solid color-mix(in srgb,var(--line) 78%,transparent);
  border-radius:0;
  background:transparent;
}
body.is-article #article-root .article-evidence-source:last-child{border-bottom:0}
body.is-article #article-root .article-evidence-source__index{
  color:color-mix(in srgb,var(--muted) 72%,var(--text));
  font-size:.59rem;
  font-weight:800;
}
body.is-article #article-root .article-evidence-source__main{
  min-width:0;
  display:grid;
  grid-template-columns:max-content minmax(0,1fr);
  gap:2px 7px;
  align-items:center;
}
body.is-article #article-root .article-evidence-source__main>span{
  padding:2px 5px;
  border-radius:999px;
  background:color-mix(in srgb,var(--accent) 7%,var(--surface));
  color:var(--accent);
  font-size:.53rem;
  font-weight:850;
  letter-spacing:.04em;
  text-transform:uppercase;
}
body.is-article #article-root .article-evidence-source__main>strong{
  min-width:0;
  overflow:hidden;
  color:var(--text);
  font-size:.75rem;
  line-height:1.3;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body.is-article #article-root .article-evidence-source__main>p{
  grid-column:1 / -1;
  margin:0;
  color:var(--muted);
  font-size:.59rem;
  line-height:1.35;
  overflow-wrap:anywhere;
}
body.is-article #article-root .article-evidence-source>a{
  align-self:center;
  margin:0;
  padding:6px 8px;
  border:1px solid color-mix(in srgb,var(--accent) 18%,var(--line));
  border-radius:999px;
  background:color-mix(in srgb,var(--accent) 3%,var(--surface));
  color:var(--accent);
  font-size:.61rem;
  text-decoration:none;
}
body.is-article #article-root .article-evidence-source>a:hover{
  background:color-mix(in srgb,var(--accent) 7%,var(--surface));
  text-decoration:none;
}

@media(max-width:980px){
  body.is-article #article-root .article-evidence-overview{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
  body.is-article #article-root .article-callout--quick-summary{grid-template-columns:1fr;padding:13px}
  body.is-article #article-root .article-callout--quick-summary .article-callout__icon{display:none}
  body.is-article #article-root .article-quick-summary__item{grid-template-columns:24px 64px minmax(0,1fr);gap:6px;padding:9px 0}
  body.is-article #article-root .article-quick-summary__item>p{font-size:.82rem!important;line-height:1.47!important}
  body.is-article #article-root .article-evidence-detail--sources{width:calc(100% - 16px);padding:14px 12px}
  body.is-article #article-root .article-evidence-overview{grid-template-columns:1fr 1fr;gap:6px}
  body.is-article #article-root .article-evidence-overview>div{padding:8px}
  body.is-article #article-root .article-evidence-overview small{display:none}
  body.is-article #article-root .article-evidence-ledger>summary{align-items:flex-start}
  body.is-article #article-root .article-evidence-ledger>summary small{display:none}
  body.is-article #article-root .article-evidence-source{grid-template-columns:23px minmax(0,1fr);gap:7px;padding:10px 0}
  body.is-article #article-root .article-evidence-source__main{grid-template-columns:max-content minmax(0,1fr)}
  body.is-article #article-root .article-evidence-source__main>strong{white-space:normal;overflow:visible;text-overflow:clip}
  body.is-article #article-root .article-evidence-source>a{grid-column:2;justify-self:start;padding:4px 7px}
}
@media(max-width:640px){
  body.is-article #article-root .article-callout--quick-summary{
    grid-template-columns:minmax(0,1fr)!important;
    gap:0!important;
    padding:13px!important;
  }
  body.is-article #article-root .article-callout--quick-summary .article-callout__body{
    min-width:0!important;
    width:100%!important;
  }
  body.is-article #article-root .article-callout--quick-summary .article-callout__label{
    overflow-wrap:normal!important;
    word-break:normal!important;
  }
  body.is-article #article-root .article-quick-summary__item{
    grid-template-columns:24px minmax(0,1fr)!important;
    grid-template-areas:"index label" "text text";
    gap:3px 7px!important;
  }
  body.is-article #article-root .article-quick-summary__index{grid-area:index}
  body.is-article #article-root .article-quick-summary__item>strong{grid-area:label}
  body.is-article #article-root .article-quick-summary__item>p{
    grid-area:text;
    min-width:0!important;
    overflow-wrap:break-word!important;
    word-break:normal!important;
    hyphens:none!important;
  }
}
