/* The article page in the new look (only with ?v=2 until approved, 2026-10-17).
   The top: crumbs, title, lead, author and the picture in its own proportions.
   Reading: one calm column; contents on the left (desktop) or a "Contents" pill with a sheet (phones, tablets). */
.art-v2,.av2-sheet,.av2-bar,.av2-progress{--av2-acc:#CE1414;--av2-ink:#2D2D2D;--av2-soft:#5E584C;--av2-mute:#867E6C;--av2-line:rgba(45,45,45,.14);--av2-top:104px}
body:has(.art-v2 a.breadcrumbs-item[href*="/category/elements"]) .art-v2,
body:has(.art-v2 a.breadcrumbs-item[href*="/category/elements"]) .av2-bar,
body:has(.art-v2 a.breadcrumbs-item[href*="/category/elements"]) .av2-sheet,
body:has(.art-v2 a.breadcrumbs-item[href*="/category/elements"]) .av2-progress{--av2-acc:#1A4F9C;--av2-mute:#5A6B88}

/* ---------- the top ---------- */
.av2-hero{padding-top:clamp(12px,2vw,30px);padding-bottom:0;text-align:left}
/* first line: breadcrumbs on the left, date and reading time on the right */
.av2-top{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:6px 32px;margin:0 0 clamp(14px,1.8vw,24px)}
.av2-hero .breadcrumbs{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;margin:0;min-width:0;flex:1 1 420px;font-size:13px;font-weight:400;line-height:1.5;letter-spacing:.01em}
.av2-hero .breadcrumbs-item{color:#676052;transition:color .4s ease}
.av2-hero a.breadcrumbs-item:hover{color:var(--av2-acc)}
.av2-hero .breadcrumbs-sep{color:#BFB8A8}
.av2-hero .breadcrumbs-current{color:var(--av2-acc)}
.article-page.art-v2 h1.av2-h1{margin:0;max-width:20ch;font-size:clamp(32px,4.6vw,78px);font-weight:400;line-height:1.03;letter-spacing:-.032em;text-transform:none;color:var(--av2-ink);text-wrap:balance}
.av2-lead{margin:clamp(16px,1.8vw,26px) 0 0;padding-top:clamp(14px,1.4vw,20px);border-top:1px solid var(--av2-line);max-width:none;font-size:clamp(17px,1.35vw,20px);line-height:1.5;color:var(--av2-soft);text-wrap:pretty}
.av2-byline{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:18px 48px;margin-top:clamp(16px,1.8vw,26px);padding:clamp(16px,1.6vw,22px) 0;border-top:1px solid var(--av2-line);border-bottom:1px solid var(--av2-line)}
.av2-byline .av2-author{flex:0 1 auto}
.av2-author{display:flex;flex-direction:column;gap:12px;margin:0 0 28px;padding-bottom:22px;border-bottom:1px solid var(--av2-line)}
.av2-author__who{display:flex;align-items:center;gap:14px;color:var(--av2-ink)}
.av2-author__who img{width:56px;height:56px;border-radius:50%;object-fit:cover;object-position:center top;flex:none}
.av2-author__who span{display:flex;flex-direction:column;gap:4px}
.av2-author__who b{font-weight:600;font-size:15px;letter-spacing:.05em;transition:color .4s ease}
.av2-author__who small{font-size:13px;color:var(--av2-mute);letter-spacing:.06em}
.av2-author__who:hover b{color:var(--av2-acc)}
.av2-author__links{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px}
.av2-author__links .s-link{display:flex;transition:opacity .3s ease}
.av2-author__links .s-link:hover{opacity:.6}
.av2-author__links .s-link img{width:18px;height:18px;object-fit:contain}
.av2-author__links .s-email{font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:#676052;transition:color .4s ease}
.av2-author__links .s-email:hover{color:var(--av2-acc)}
.av2-meta{display:flex;align-items:center;gap:10px;margin:0;font-size:11px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--av2-mute);white-space:nowrap}
.av2-img{margin:0 0 clamp(28px,3.4vw,52px)}
.av2-img img{display:block;width:100%;height:auto;max-width:none;object-fit:contain;background:rgba(45,45,45,.04)}
.av2-img a{display:block}
/* desktop: the right column runs to the window edge, the picture stops at the page margin like the header */
@media (min-width:1200px){.art-v2 .article-section .right .av2-img{margin-right:5.5vw}}

/* ---------- the body: the old sidebar keeps only the contents ---------- */
.art-v2 .article-section{text-align:left;padding-top:clamp(20px,2.4vw,36px)}
/* phones and tablets: the contents also sit once before the text, as a short outline */
@media (max-width:1199px){.art-v2 .article-section .title{margin-bottom:clamp(36px,6vw,56px)!important}.art-v2 .av2-toc a{font-size:15px;padding:10px 0 10px 12px}}

.article-page.art-v2 .article-section .content{max-width:700px!important;margin:0 auto 56px!important;font-size:18px;line-height:1.68;color:var(--av2-ink);overflow-x:visible!important}
.art-v2 .article-section .content p{margin-bottom:1.15em}
.art-v2 .article-section .content p[id]{scroll-margin-top:var(--av2-top)}
/* the opening subtitle reads as the lead */
.article-page.art-v2 .article-section .content>h2:first-child{margin:0 0 1.4em;font-size:clamp(21px,1.9vw,27px);line-height:1.38;font-weight:400;letter-spacing:-.01em;color:var(--av2-ink);text-wrap:pretty}
.article-page.art-v2 .article-section .content h2{margin-top:1.8em;font-size:clamp(24px,2.2vw,32px);line-height:1.2;letter-spacing:-.015em}
/* chapter headings: a small numbered label over a calm sentence-case title */
.article-page.art-v2 .article-section .content h3{margin:2.6em 0 .7em;font-size:clamp(23px,2vw,30px);line-height:1.22;font-weight:400;letter-spacing:-.015em;text-transform:none;scroll-margin-top:var(--av2-top);text-wrap:balance}
.art-v2 .article-section .content [data-av2-k]::before{content:attr(data-av2-k);display:block;margin-bottom:12px;font-size:11px;font-weight:600;line-height:1.3;letter-spacing:.2em;text-transform:uppercase;color:var(--av2-acc)}
.art-v2 .article-section .content h4{margin:1.8em 0 .5em;font-size:19px;line-height:1.35;font-weight:600}
.art-v2 .article-section .content :not(.article-cta-block)>strong,.art-v2 .article-section .content :not(.article-cta-block)>b{font-weight:600}
/* links: one quiet underline in the accent colour */
.art-v2 .article-section .content a:not(.article-cta-block a){display:inline;text-decoration:underline!important;text-decoration-color:color-mix(in srgb,var(--av2-acc) 45%,transparent);text-decoration-thickness:1px;text-underline-offset:3px}
.art-v2 .article-section .content a:not(.article-cta-block a)::before{display:none}
.art-v2 .article-section .content a:not(.article-cta-block a):hover{color:var(--av2-acc);text-decoration-color:currentColor}
/* lists */
.art-v2 .article-section .content ul,.art-v2 .article-section .content ol{margin:0 0 1.3em 1.2em;padding:0}
.art-v2 .article-section .content ul li{list-style:disc}
.art-v2 .article-section .content ol li{list-style:decimal}
.art-v2 .article-section .content li{margin-bottom:.55em;padding-left:.3em}
.art-v2 .article-section .content li::marker{color:var(--av2-acc)}
/* the key sentence (a paragraph that is all bold) and the pull quote */
.art-v2 .article-section .content p.av2-key{margin:2em 0;padding:4px 0 4px 22px;border-left:2px solid var(--av2-acc);font-size:clamp(19px,1.5vw,21px);line-height:1.5}
.art-v2 .article-section .content p.av2-key strong{font-weight:500}
.art-v2 .article-section .content .pull-quote{margin:1.6em 0;font-size:clamp(23px,2vw,30px);line-height:1.3;font-weight:400;font-style:normal;letter-spacing:-.015em;color:var(--av2-ink);text-wrap:balance}
.art-v2 .article-section .content .pull-quote::before{content:"\201C";display:block;height:.5em;color:var(--av2-acc);font-size:1.8em;line-height:1}
/* tables can be wide: on phones and tablets they scroll sideways inside the column (wrapper made by article-v2.js) */
.art-v2 .article-section .content table{font-size:14px}
.art-v2 .av2-tscroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;margin:0 0 24px}
.art-v2 .av2-tscroll table{margin-bottom:0!important}
@media (max-width:767px){
  .art-v2 .av2-tscroll{margin-right:-5vw;padding-right:5vw}
  .art-v2 .av2-tscroll table{min-width:620px}
  .art-v2 .article-section .content table th,.art-v2 .article-section .content table td{font-size:13px;word-break:normal;overflow-wrap:normal;hyphens:none}
}
.art-v2 .article-section .content img{border-radius:0}
/* the FAQ block and the call to action keep their look, only the type follows the column */
.art-v2 .article-section .article-faq h3{margin-top:0;font-size:clamp(28px,3vw,40px)}
.art-v2 .article-section .article-faq h3[data-av2-k]::before{margin-bottom:14px}
/* the call to action keeps the site's own look (beige block, red line, uppercase links): only the size is reset to the old 16px */
.article-page.art-v2 .article-section .content .article-cta-block{font-size:16px;line-height:1.5}
/* share: a quiet row under the text */
.art-v2 .article-section .social-list{max-width:700px;margin:0 auto;background:transparent!important;padding:20px 0 0;border-top:1px solid var(--av2-line);align-items:center;font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--av2-mute)}
.art-v2 .article-section .social-list li:first-of-type{margin-right:18px!important}
/* share icons: the SVGs draw their glyphs at different sizes in the same 20x20 box (Telegram 10 high, X 16), so each is scaled to one optical size */
.art-v2 .article-section .social-list img{transform-origin:50% 50%}
.art-v2 .article-section .social-list img[src$="/s-1.svg"]{transform:scale(1.15)}
.art-v2 .article-section .social-list img[src$="/s-2.svg"]{transform:scale(.86)}
.art-v2 .article-section .social-list img[src$="/s-4.svg"]{transform:scale(1.42)}
.art-v2 .article-section .social-list img[src$="/s-6.svg"]{transform:scale(.98)}

/* ---------- contents: desktop column ---------- */
.av2-toc[hidden]{display:none!important}
@media (min-width:1200px){
  .art-v2 .article-section .title{top:var(--av2-top)!important;max-height:calc(100vh - var(--av2-top) - 24px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;padding-right:8px}
  .art-v2 .article-section .title::-webkit-scrollbar{display:none}
}
/* the memoir articles (SV Group, Medpresso, PERETZ ...) centre the old sidebar in the window (top:50%, translateY(-50%), padding-top 80px);
   in the new layout the contents start beside the picture, so that is undone here */
@media (min-width:1200px){
  .article-page.art-v2[data-alias] .article-section .title{top:var(--av2-top)!important;transform:none!important;padding-top:0!important;max-height:calc(100vh - var(--av2-top) - 24px)!important}
}
.article-page.art-v2[data-alias] .article-section .title{padding-top:0!important}
.av2-toc{font-size:13px;line-height:1.4}
.av2-toc__hd{display:flex;justify-content:space-between;align-items:baseline;margin:0 0 12px;font-size:11px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:var(--av2-mute)}
.av2-toc__hd b{font-weight:600;color:var(--av2-acc);letter-spacing:.12em;font-variant-numeric:tabular-nums}
.av2-toc__bar{position:relative;height:2px;margin:0 0 10px;background:var(--av2-line);overflow:hidden}
.av2-toc__bar i{position:absolute;inset:0;background:var(--av2-acc);transform-origin:0 50%;transform:scaleX(var(--av2-p,0))}
.av2-toc ol{list-style:none;margin:0;padding:0;counter-reset:none}
.av2-toc li{margin:0;list-style:none}
.av2-toc a{position:relative;display:grid;grid-template-columns:26px 1fr;gap:0 8px;padding:9px 0 9px 12px;color:var(--av2-mute);text-decoration:none;transition:color .35s ease}
.av2-toc a::before{content:"";position:absolute;left:0;top:9px;bottom:9px;width:2px;background:var(--av2-acc);transform:scaleY(0);transition:transform .45s cubic-bezier(.19,1,.22,1)}
.av2-toc a span{font-size:11px;font-weight:600;letter-spacing:.1em;padding-top:2px;font-variant-numeric:tabular-nums}
.av2-toc a:hover{color:var(--av2-ink)}
.av2-toc li.is-done a{color:var(--av2-soft)}
.av2-toc li.is-on a{color:var(--av2-ink)}
.av2-toc li.is-on a span{color:var(--av2-acc)}
.av2-toc li.is-on a::before{transform:none}

/* ---------- contents: phones and tablets ---------- */
.av2-progress{position:fixed;left:0;right:0;top:0;height:2px;z-index:1001;pointer-events:none;background:var(--av2-acc,#CE1414);transform-origin:0 50%;transform:scaleX(var(--av2-p,0))}
.av2-bar{position:fixed;left:0;right:0;top:var(--av2-hb,60px);z-index:900;display:flex;align-items:center;gap:12px;width:100%;height:46px;padding:0 5vw;border:0;border-bottom:1px solid var(--av2-line);background:rgba(249,246,240,.92);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:var(--av2-ink);font:400 14px/1.2 "SF Pro Display",system-ui,sans-serif;text-align:left;
  opacity:0;transform:translateY(-8px);pointer-events:none;transition:opacity .35s ease,transform .45s cubic-bezier(.19,1,.22,1)}
.av2-bar.is-on{opacity:1;transform:none;pointer-events:auto}
.av2-bar b{flex:none;font-size:11px;font-weight:600;letter-spacing:.12em;color:var(--av2-acc);font-variant-numeric:tabular-nums}
.av2-bar span{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.av2-bar i{flex:none;width:9px;height:9px;margin:-4px 2px 0 0;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg)}
.av2-bar em{position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--av2-acc);transform-origin:0 50%;transform:scaleX(var(--av2-p,0))}
body:has(.art-v2 a.breadcrumbs-item[href*="/category/elements"]) .av2-bar{background:rgba(238,244,251,.92)}
@media (min-width:1200px){.av2-bar,.av2-sheet,.av2-veil{display:none!important}}

.av2-veil{position:fixed;inset:0;z-index:1002;background:rgba(18,12,15,.38);opacity:0;pointer-events:none;transition:opacity .35s ease}
.av2-sheet{position:fixed;left:0;right:0;bottom:0;z-index:1003;max-height:78vh;display:flex;flex-direction:column;padding:10px 20px calc(18px + env(safe-area-inset-bottom));border-radius:18px 18px 0 0;background:#F9F6F0;color:var(--av2-ink,#2D2D2D);box-shadow:0 -20px 50px rgba(20,10,12,.18);transform:translateY(105%);transition:transform .5s cubic-bezier(.19,1,.22,1);visibility:hidden}
.av2-sheet::before{content:"";align-self:center;width:38px;height:4px;margin:0 0 14px;border-radius:2px;background:rgba(45,45,45,.18)}
html.av2-open .av2-veil{opacity:1;pointer-events:auto}
html.av2-open .av2-sheet{transform:none;visibility:visible}
.av2-sheet .av2-toc__hd{padding:0 2px}
.av2-sheet ol{overflow-y:auto;overscroll-behavior:contain;margin:0 -20px;padding:0 20px}
.av2-sheet a{padding:13px 0 13px 12px;font-size:16px;border-bottom:1px solid var(--av2-line,rgba(45,45,45,.14))}
.av2-sheet li:last-child a{border-bottom:0}
body:has(.art-v2 a.breadcrumbs-item[href*="/category/elements"]) .av2-sheet{background:#EEF4FB}

@media (max-width:767px){
  .article-page.art-v2 .article-section .content{font-size:17px;line-height:1.64}
  .av2-byline{padding-top:14px}
  .av2-meta{font-size:11px;letter-spacing:.12em}
  .av2-hero .breadcrumbs{font-size:12px}
  .av2-hero .breadcrumbs-current{flex-basis:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
  .av2-img{margin-left:-5vw;margin-right:-5vw}
}
@media (prefers-reduced-motion:reduce){.av2-bar,.av2-sheet,.av2-toc a::before{transition:none}}
