/* Page shell of an AI ranking (post type iwm_ranking, single-iwm_ranking.php). Hand-written.
   The report itself is styled by css/classement-ia.css (generated in scalar). Square corners, index-document palette. */

body.single-iwm_ranking{margin:0;background:#f6f5f3}
body.single-iwm_ranking .iwm-editorial{background:#f6f5f3;overflow-x:clip}

/* Logo bar: logo back to the site, FR/EN as links (the page reloads in the other language, forms included) */
.iwm-rank--bar .topbar{padding:20px 0 0}
.iwm-rank .lang a{display:inline-block;padding:4px 10px;font-size:12px;font-weight:600;letter-spacing:.04em;color:var(--muted);text-decoration:none;line-height:1.5}
.iwm-rank .lang a[aria-current="page"]{background:var(--ink);color:var(--bg)}
.iwm-rank .lang a:focus-visible,.iwm-rank .brand:focus-visible{outline:2px solid var(--focus);outline-offset:2px}

/* Hero: no fixed menu bar on this page, so no 96px clearance */
html body.single-iwm_ranking .iwm-editorial .iwm-rank .hero{padding-top:clamp(32px,6vw,64px)}

/* Full study offer (lead magnet widget) */
.iwm-rank--offer{padding:48px 0 0}
.iwm-rank--offer .wrap > *{margin-left:0;margin-right:0;max-width:none}

/* Analysis article */
.iwm-rank--article{padding:40px 0 0}
.iwm-rank .rank-article{display:grid;gap:8px;padding:24px;border:1px solid var(--line);background:var(--surface);color:var(--ink);text-decoration:none}
.iwm-rank .rank-article .eyebrow{margin:0}
.iwm-rank .rank-article-title{font-family:var(--display);font-weight:600;font-size:clamp(1.25rem,2.6vw,1.5rem);line-height:1.2;letter-spacing:-.01em}
.iwm-rank .rank-article-dek{color:var(--ink-2);max-width:62ch}
.iwm-rank .rank-article-cta{display:inline-flex;align-items:center;gap:8px;font-weight:600;margin-top:4px}
.iwm-rank .rank-article:hover{border-color:var(--ink)}
.iwm-rank .rank-article:hover .rank-article-cta{text-decoration:underline}
.iwm-rank .rank-article:focus-visible{outline:2px solid var(--focus);outline-offset:2px}

/* Bottom sections keep the page column */
html body.single-iwm_ranking .iwm-rank--bottom .wrap,html body.single-iwm_ranking .iwm-rank--news .wrap{max-width:960px;margin:0 auto;padding:0 16px}
@media (min-width:720px){html body.single-iwm_ranking .iwm-rank--bottom .wrap,html body.single-iwm_ranking .iwm-rank--news .wrap{padding:0 32px}}

/* Author */
.iwm-rank--author{padding:48px 0 72px}
.iwm-rank .rank-author{display:grid;grid-template-columns:72px minmax(0,1fr);gap:20px;align-items:start;border-top:1px solid var(--line);padding-top:32px}
.iwm-rank .rank-author-photo{width:72px;height:72px;object-fit:cover;display:block;background:var(--ink)}
.iwm-rank .rank-author .eyebrow{margin:0 0 6px}
.iwm-rank .rank-author-name{font-family:var(--display);font-weight:600;font-size:1.2rem;margin:0 0 6px}
.iwm-rank .rank-author-bio{color:var(--ink-2);margin:0;max-width:70ch}
@media (max-width:520px){.iwm-rank .rank-author{grid-template-columns:56px minmax(0,1fr);gap:14px}.iwm-rank .rank-author-photo{width:56px;height:56px}}
