/* VisualTech v2 — content layer for the blog (index + articles, generated by tools/build_blog.py), legal pages and 404.
   Loaded after /assets/v2/chrome.css (tokens, base, buttons, header, footer; generated by tools/build_chrome.py).
   Written by hand. Tokens only (no new colours), chamfer instead of round cards, reading measure 68ch (--v2-measure),
   transform / opacity transitions only (01-base switches them off under prefers-reduced-motion).
   Blog markup reference: tools/build_blog.py (card(), render_article(), render_index()). */

/* ---------- page frame ---------- */
/* top spacing and H1 scale = the service / pages template (.v2-svc-hero in src/service/service.css): header + 16px,
   header + 24px from 1200px; H1 34px on phones, 60px on desktop. The breadcrumb comes first, the H1 sits at y≈148 on phones. */
.editorial-page{--ed-h1:clamp(2.125rem,1.25rem + 3.5vw,3.75rem)}
.editorial-page main{display:block;padding-top:calc(var(--header-h) + var(--v2-space-4));padding-bottom:var(--v2-section-y)}
@media (min-width:1200px){.editorial-page main{padding-top:calc(var(--header-h) + var(--v2-space-5))}}
.editorial-page .container{width:min(100% - 2 * var(--v2-gutter),var(--v2-container));margin-inline:auto}
.editorial-page main [tabindex="-1"]:focus{outline:none;box-shadow:none}
html:not(.v2-js) .editorial-page main{padding-top:var(--v2-space-4)}
@media (min-width:900px){html:not(.v2-js) .editorial-page main{padding-top:calc(var(--header-h) + var(--v2-space-4))}}
@media (min-width:1200px){html:not(.v2-js) .editorial-page main{padding-top:calc(var(--header-h) + var(--v2-space-5))}}
.blog-hero h1,.article-head h1,.legal-hero h1,.error-copy h1{font-size:var(--ed-h1);line-height:var(--v2-lh-tight);letter-spacing:-.038em;text-wrap:balance}
/* phones: the breadcrumb already says where you are, so the eyebrow goes (as on the service pages) */
@media (max-width:479.98px){:is(.blog-hero,.article-head,.legal-hero)>.kicker{display:none}}

/* ---------- chamfered surfaces (same drawing as .v2-card): a hairline polygon under a filled polygon ---------- */
/* light theme: the panels sit on the paper with a short soft shadow that follows the chamfer (--v2-elev is a filter;
   none in the dark theme). Colours come only from tokens (src/home/css/00-tokens.css, docs/v2/LIGHT-THEME.md). */
.post-card,.key-takeaways,.article-cta,.toc,.legal-navigation,.error-visual,.article-inline,.article-author,.side-service,.blog-services__list a{--c:var(--v2-chamfer);position:relative;isolation:isolate;filter:var(--v2-elev,none)}
:is(.post-card,.key-takeaways,.article-cta,.toc,.legal-navigation,.error-visual,.article-inline,.article-author,.side-service,.blog-services__list a)::before,
:is(.post-card,.key-takeaways,.article-cta,.toc,.legal-navigation,.error-visual,.article-inline,.article-author,.side-service,.blog-services__list a)::after{content:"";position:absolute;z-index:-1;pointer-events:none}
:is(.post-card,.key-takeaways,.article-cta,.toc,.legal-navigation,.error-visual,.article-inline,.article-author,.side-service,.blog-services__list a)::before{inset:0;background:var(--v2-hairline-strong);
  clip-path:polygon(0 0,calc(100% - var(--c)) 0,100% var(--c),100% 100%,0 100%);transition:background-color var(--v2-dur-2) var(--v2-ease-out)}
:is(.post-card,.key-takeaways,.article-cta,.toc,.legal-navigation,.error-visual,.article-inline,.article-author,.side-service,.blog-services__list a)::after{inset:1px;background:var(--v2-top-edge),var(--v2-surface-2);
  clip-path:polygon(0 0,calc(100% - var(--c) + .6px) 0,100% calc(var(--c) - .6px),100% 100%,0 100%)}
/* no paper shadow on the panels that can hold the largest text of the first screen: Chrome measures text inside a
   filter: drop-shadow() layer at the filtered layer's size, so the light theme moved LCP off the H1 (legal TOC, 404) */
:is(.legal-navigation,.error-visual){filter:none}

/* ---------- small shared pieces ---------- */
.nobr{white-space:nowrap}
.breadcrumb{margin-bottom:var(--v2-space-5);font-size:var(--v2-fs-small);line-height:1.3;color:var(--v2-text-3)}
.breadcrumb ol{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:0;list-style:none}
.breadcrumb li{display:inline-flex;align-items:center;min-width:0}
.breadcrumb li+li::before{content:"";flex:none;width:6px;height:6px;margin:0 12px;border-top:1.5px solid var(--v2-text-3);border-right:1.5px solid var(--v2-text-3);transform:rotate(45deg)}
.breadcrumb a{display:inline-flex;align-items:center;min-height:44px;color:var(--v2-text-2);text-decoration:none}
.breadcrumb [aria-current]{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--v2-text-3)}
@media (max-width:599.98px){.breadcrumb li:last-child{max-width:calc(100vw - 2 * var(--v2-gutter) - 150px)}}

.kicker{display:inline-flex;align-items:center;gap:var(--v2-space-3);font:500 var(--v2-fs-small)/1.3 var(--font-body);color:var(--v2-text-2)}
.kicker>span:empty{flex:none;width:10px;height:10px;background:var(--v2-signal);clip-path:polygon(0 0,calc(100% - 3px) 0,100% 3px,100% 100%,0 100%)}
.kicker a{display:inline-flex;align-items:center;min-height:44px;margin-block:-12px;color:var(--v2-accent);text-decoration:none}

.tag{display:inline-flex;align-items:center;gap:var(--v2-space-2);font:500 var(--v2-fs-micro)/1.3 var(--font-body);letter-spacing:.01em;color:var(--v2-accent)}
.tag::before{content:"";flex:none;width:6px;height:6px;background:var(--v2-signal)}

/* ---------- text covers (.bc; tools/build_blog.py text_cover()) ----------
   No picture: the category, a short phrase and one to four tags strung on the brand thread, drawn only with tokens,
   so a cover is as intended on the paper theme as on the dark one, costs no request and cannot be a slow LCP.
   Every size is a container unit of the cover (cqi), so the same markup reads at 290px (grid), 390px (related),
   ~720px (featured) and 780px (article). The background drawing tells the category apart: a grid (choosing guides),
   dots (technologies), ruled lines (SEO, speed and costs). Decorative (aria-hidden): the real title sits beside it.
   Cards: --v2-surface-3 inside the card face; the article cover: --v2-surface-2 on the page. Text >= 4.5:1 on both. */
.bc{--bc-bg:var(--v2-surface-3);--bc-chip:var(--v2-surface-2);position:relative;container-type:inline-size;aspect-ratio:40 / 21;overflow:hidden;
  background:radial-gradient(70% 95% at 100% 100%,rgb(var(--v2-blue-rgb) / calc(.30 * var(--v2-tint-k))),rgb(var(--v2-blue-rgb) / 0) 72%),var(--bc-bg);color:var(--v2-text)}
.bc--hero{--bc-bg:var(--v2-surface-2);--bc-chip:var(--v2-surface-3)}
.bc--lg .bc__phrase{font-size:9.4cqi}
.bc__in{position:absolute;inset:0;isolation:isolate;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:2.4cqi;padding:5.4cqi 6cqi 5.6cqi}
.bc__in::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(var(--v2-hairline) 1px,transparent 1px),linear-gradient(90deg,var(--v2-hairline) 1px,transparent 1px);background-size:6cqi 6cqi;background-position:-1px -1px;
  -webkit-mask-image:linear-gradient(100deg,transparent 28%,#000 88%);mask-image:linear-gradient(100deg,transparent 28%,#000 88%)}
.bc[data-cat="tehnologii"] .bc__in::before{background:radial-gradient(circle,var(--v2-hairline-strong) 1px,transparent 1.5px);background-size:3.6cqi 3.6cqi}
.bc[data-cat="seo"] .bc__in::before{background:linear-gradient(var(--v2-hairline) 1px,transparent 1px);background-size:100% 4.4cqi}
:where(.bc) p{margin:0}
.bc__kicker{display:flex;align-items:center;gap:.75em;font-family:var(--font-body);font-weight:600;font-size:.75rem;font-size:max(.75rem,1.9cqi);line-height:1.2;letter-spacing:.07em;text-transform:uppercase;color:var(--v2-text-2)}
.bc__kicker::before{content:"";flex:none;width:.75em;height:.75em;background:var(--v2-signal);clip-path:polygon(0 0,calc(100% - .25em) 0,100% .25em,100% 100%,0 100%)}
.bc__phrase{align-self:end;max-width:12.5em;font-family:var(--font-heading);font-weight:600;font-size:1.75rem;font-size:8.2cqi;line-height:1.02;letter-spacing:-.035em;color:var(--v2-text);text-wrap:balance}
/* the tags: one row of chips on the thread. The row spans the whole cover (negative margin + the same padding), so
   the thread enters at the left edge and leaves at the right (and fades out there, mask). The row is exactly one
   chip tall (2.3em + the 2px border): on a narrow cover a chip that does not fit wraps into the hidden second row,
   so a chip is shown whole or not at all, never cut at the edge */
.bc__tags{--f:max(.75rem,1.9cqi);--pad:6cqi;position:relative;display:flex;flex-wrap:wrap;align-items:center;align-content:flex-start;gap:24px 1.8cqi;
  font-size:var(--f);height:calc(2.3em + 2px);margin-top:3cqi;margin-inline:calc(-1 * var(--pad));padding-inline:var(--pad);overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - var(--pad)),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - var(--pad)),transparent)}
.bc__tags::before,.bc__tags::after{content:"";position:absolute;z-index:-1;left:0;right:0;top:50%;height:1px;background:var(--v2-thread-rest)}
.bc__tags::after{background:var(--v2-signal);opacity:0;transition:opacity var(--v2-dur-2) var(--v2-ease-out)}
.bc__tags span{flex:none;display:inline-flex;align-items:center;gap:.5em;padding:.55em .65em;border:1px solid var(--v2-hairline-strong);background:var(--bc-chip);
  font:500 var(--f)/1.2 var(--font-body);color:var(--v2-text-2);white-space:nowrap}
.bc__tags span::before{content:"";flex:none;width:.45em;height:.45em;background:var(--v2-signal)}
/* a narrow cover (the 5-up «Citește și» row on the service pages, about 220px) keeps the phrase and the tags and
   drops the category line, so a two-line phrase never touches it */
@container (max-width:250px){.bc__kicker{display:none}.bc__in{grid-template-rows:minmax(0,1fr) auto}}
/* optional illustration (assets/blog/illus/<slug>-240|480|960.webp, transparent, reads on both themes). It is a grid
   cell of its own, never a layer under the text: a right column beside the phrase, between the category line and
   the tag row, which both keep the full width (so the category never wraps because of the picture). contain:size
   means the picture never sizes the grid; it fills the cell it is given (object-fit:contain), so the phrase, the
   category and the tags are never overlapped. The phrase is a step smaller, so three lines still fit the column.
   Under 250px (the 4-up grid around 1100px) the category line is dropped and the picture sits beside the phrase,
   above the tags. Only under 220px is there no room beside the phrase, so the picture is left out there (a lazy
   image that is not displayed is not downloaded). */
.bc.has-art .bc__in{grid-template-columns:minmax(0,1fr) var(--bc-art,34cqi);column-gap:3cqi}
.bc.has-art .bc__kicker{grid-column:1 / -1;grid-row:1}
.bc.has-art .bc__phrase{grid-column:1;grid-row:2;max-width:none;font-size:7.6cqi}
.bc--lg.has-art .bc__phrase{font-size:8.6cqi}
.bc.has-art .bc__tags{grid-column:1 / -1;grid-row:3}
.bc__art{grid-column:2;grid-row:2;align-self:stretch;justify-self:stretch;display:block;width:100%;height:100%;min-width:0;min-height:0;contain:size;aspect-ratio:auto;
  object-fit:contain;object-position:100% 50%;pointer-events:none;transition:transform var(--v2-dur-2) var(--v2-ease-out)}
@container (max-width:250px){.bc.has-art .bc__phrase,.bc__art{grid-row:1}.bc.has-art .bc__tags{grid-row:2}}
@container (max-width:220px){.bc.has-art .bc__in{grid-template-columns:minmax(0,1fr)}.bc.has-art .bc__phrase{font-size:8.2cqi}.bc__art{display:none}}
/* the «Citește și» covers on the service pages are lower (480:268). Under 320px (from about 900px wide, and the
   5-up row from 1200px) they drop the category line (the service page already says what the guides are about):
   the picture sits beside the phrase in a 30cqi column, the tags keep the full width below. A three-line phrase
   then never reaches the top edge, and a 220px cover still has a picture of about 60px */
@container (max-width:320px){
  .bc--svc.has-art .bc__kicker{display:none}
  .bc--svc.has-art .bc__in{grid-template-columns:minmax(0,1fr) 30cqi;grid-template-rows:minmax(0,1fr) auto}
  .bc--svc.has-art .bc__phrase{grid-row:1;font-size:8.4cqi}
  .bc--svc.has-art .bc__tags{grid-row:2}
  .bc--svc .bc__art{display:block;grid-column:2;grid-row:1;object-position:100% 50%}
}

/* ---------- article cards (index grid, featured, related) ---------- */
.blog-grid,.related-grid{display:grid;gap:var(--v2-space-5)}
.post-card{display:flex;flex-direction:column;min-width:0}
.post-cover{position:relative;margin:1px 1px 0;overflow:hidden;
  clip-path:polygon(0 0,calc(100% - var(--c) + .6px) 0,100% calc(var(--c) - .6px),100% 100%,0 100%)}
.post-body{display:flex;flex-direction:column;align-items:flex-start;gap:var(--v2-space-3);flex:1;padding:var(--v2-space-5) var(--v2-space-5) var(--v2-space-5)}
.post-title{font-size:clamp(1.0625rem,1rem + .3vw,1.25rem);line-height:1.25;letter-spacing:-.015em;text-wrap:pretty}
.post-title a{color:var(--v2-text);text-decoration:none;text-decoration-thickness:1px;text-underline-offset:4px}
/* the title link covers the whole card; the service link below stays clickable above it */
.post-title a::after{content:"";position:absolute;inset:0;z-index:1}
.post-title a:focus-visible{box-shadow:none}
.post-title a:focus-visible::after{box-shadow:var(--v2-focus);border-radius:var(--v2-radius-xs)}
.post-desc{font-size:.9375rem;line-height:1.55;color:var(--v2-text-2)}
.post-meta{display:flex;flex-wrap:wrap;align-items:center;gap:0 var(--v2-space-2);margin-top:auto;padding-top:var(--v2-space-2);font-size:var(--v2-fs-micro);line-height:1.4;color:var(--v2-text-3);font-variant-numeric:tabular-nums}
.post-service{position:relative;z-index:2;width:100%;padding-top:var(--v2-space-3);border-top:1px solid var(--v2-hairline);font-size:var(--v2-fs-micro);line-height:1.4;color:var(--v2-text-3)}
.post-service a{display:flex;align-items:center;width:fit-content;min-height:32px;color:var(--v2-accent);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
/* phones: the grid and related covers become a band as tall as their text (category, phrase, tags),
   so thirteen articles do not make a 9000px page */
@media (max-width:599.98px){
  .blog-grid,.related-grid{gap:var(--v2-space-3)}
  :is(.blog-grid,.related-grid) .post-card{--c:14px}
  :is(.blog-grid,.related-grid) .bc{aspect-ratio:auto}
  :is(.blog-grid,.related-grid) .bc__in{position:relative;inset:auto;grid-template-rows:auto auto auto;gap:10px;padding:14px 16px 16px}
  :is(.blog-grid,.related-grid) .bc__phrase{font-size:min(7.6cqi,1.5rem)}
  :is(.blog-grid,.related-grid) .bc__tags{--f:.75rem;--pad:16px;gap:8px}
  /* the band grows with its text: the picture sits beside the category and the phrase, as tall as both (the phrase
     row is at least two lines tall, so a one-line phrase does not shrink the picture) */
  :is(.blog-grid,.related-grid) .bc.has-art{--bc-art:22cqi}
  :is(.blog-grid,.related-grid) .bc.has-art .bc__in{grid-template-rows:auto minmax(50px,auto) auto}
  :is(.blog-grid,.related-grid) .bc.has-art .bc__kicker{grid-column:1}
  :is(.blog-grid,.related-grid) .bc.has-art .bc__phrase{align-self:start;font-size:min(7.2cqi,1.5rem)}
  :is(.blog-grid,.related-grid) .bc__art{grid-row:1 / 3}
  :is(.blog-grid,.related-grid) .post-body{gap:var(--v2-space-2);padding:var(--v2-space-4)}
  :is(.blog-grid,.related-grid) .post-title{font-size:1.0625rem;line-height:1.3}
  :is(.blog-grid,.related-grid) .post-desc{font-size:.875rem}
}
@media (min-width:600px){.blog-grid,.related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  /* card covers: 16:10, so the phrase has air above the tag row even when it takes two lines */
  :is(.blog-grid,.related-grid) .bc{aspect-ratio:16 / 10}}
@media (min-width:900px){.related-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:1100px){.blog-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.blog-grid[data-count="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* ---------- blog index ---------- */
.blog-hero{display:grid;gap:var(--v2-space-4);justify-items:start;max-width:46rem;margin-bottom:var(--v2-space-6)}
.blog-hero>p:not(.kicker){max-width:var(--v2-measure);font-size:var(--v2-fs-lead);line-height:1.55;color:var(--v2-text-2)}

/* "Sari la:" row: plain in-page links to the three sections (they never filtered anything, so no chip / active state) */
.blog-jump{display:flex;flex-wrap:wrap;align-items:center;gap:0 var(--v2-space-5);margin:0 0 var(--v2-space-6);font-size:var(--v2-fs-small);line-height:1.3}
.blog-jump__label{color:var(--v2-text-3)}
.blog-jump ul{display:contents;margin:0;padding:0;list-style:none}
.blog-jump a{display:inline-flex;align-items:center;min-height:44px;color:var(--v2-accent);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}

/* featured: the newest choosing guide, large cover */
.blog-feature{margin-bottom:var(--v2-space-8)}
.post-card.is-featured{--c:var(--v2-chamfer-lg)}
.post-card.is-featured .post-body{gap:var(--v2-space-4);padding:var(--v2-space-5) var(--v2-space-5) var(--v2-space-6)}
.post-card.is-featured .post-title{font-size:clamp(1.5rem,1.1rem + 1.5vw,2.25rem);line-height:1.12;letter-spacing:-.025em;text-wrap:balance}
.post-card.is-featured .post-desc{font-size:var(--v2-fs-lead);line-height:1.55;max-width:34em}
.post-card.is-featured .post-service{font-size:var(--v2-fs-small)}
@media (min-width:900px){
  .post-card.is-featured{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);align-items:stretch}
  .post-card.is-featured .post-cover{height:100%;margin:1px 0 1px 1px;min-height:340px;clip-path:none}
  .post-card.is-featured .bc{height:100%;aspect-ratio:auto}
  .post-card.is-featured .post-body{justify-content:center;padding:var(--v2-space-7) var(--v2-space-7) var(--v2-space-7) var(--v2-space-6)}
  .post-card.is-featured .post-meta{margin-top:0}
}

.blog-section{margin-top:var(--v2-space-8)}
.blog-section:first-of-type{margin-top:0}
.blog-section-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:var(--v2-space-2) var(--v2-space-6);margin-bottom:var(--v2-space-5);
  padding-top:var(--v2-space-5);border-top:1px solid var(--v2-hairline)}
.blog-section-head h2{font-size:clamp(1.5rem,1.2rem + 1.1vw,2.125rem);line-height:1.15;letter-spacing:-.02em}
.blog-section-head p{max-width:36em;color:var(--v2-text-2)}

/* services band */
.blog-services{display:grid;gap:var(--v2-space-5);margin-top:var(--v2-space-9)}
.blog-services__head{display:grid;gap:var(--v2-space-3);justify-items:start;align-content:start}
.blog-services__head h2{font-size:clamp(1.5rem,1.2rem + 1.1vw,2.125rem);line-height:1.15;letter-spacing:-.02em}
.blog-services__head p{color:var(--v2-text-2);max-width:30em}
.blog-services__all{display:inline-flex;align-items:center;min-height:44px;font-weight:600;color:var(--v2-accent);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.blog-services__list{display:grid;gap:var(--v2-space-3);margin:0;padding:0;list-style:none}
.blog-services__list a{--c:14px;display:grid;gap:var(--v2-space-1);height:100%;padding:var(--v2-space-4) var(--v2-space-5);text-decoration:none}
.svc-name{font:600 1.0625rem/1.3 var(--font-heading);letter-spacing:-.01em;color:var(--v2-text)}
.svc-price{font-size:var(--v2-fs-small);line-height:1.45;color:var(--v2-text-2)}
@media (min-width:600px){.blog-services__list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1100px){
  .blog-services{grid-template-columns:minmax(0,4fr) minmax(0,8fr);gap:var(--v2-space-8)}
}

.blog-index-page .article-cta{margin-top:var(--v2-space-8)}

/* ---------- article header ---------- */
.article-head{display:grid;gap:var(--v2-space-4);justify-items:start;max-width:52rem;margin-bottom:var(--v2-space-6)}
.article-lead{max-width:var(--v2-measure);font-size:var(--v2-fs-lead);line-height:1.55;color:var(--v2-text-2);text-wrap:pretty}
.article-meta{display:flex;flex-wrap:wrap;align-items:center;gap:var(--v2-space-1) var(--v2-space-2);padding-top:var(--v2-space-3);font-size:var(--v2-fs-small);line-height:1.4;color:var(--v2-text-3);font-variant-numeric:tabular-nums}
.article-meta>span:first-child{color:var(--v2-text-2);font-weight:600}

/* the article's text cover (.bc--hero, see above), the last child of the header: under the meta line up to 999px
   (2:1, at most 30rem wide), beside the title from 1000px, in the same column as the contents sidebar below it, so
   the text starts right after the header. Dark theme: a chamfered plate. Light theme (--v2-screen-k:0): an embedded
   panel, no chamfer, 6px corners and a 1px ring drawn by ::before, and no shadow (a filter here made Chrome count the
   cover as larger than it is for LCP). Same box in both themes. */
.article-cover{--k:var(--v2-screen-k);--c:calc(var(--v2-chamfer-lg) * var(--k));position:relative;isolation:isolate;justify-self:stretch;max-width:30rem;margin-top:var(--v2-space-2);padding:1px}
.article-cover>.bc{aspect-ratio:2 / 1}
/* under 1000px, with an illustration: the phrase is narrower (the picture takes the right column), so the cover
   grows with its text instead of letting a three-line phrase run into the category line; at least 2:1 as before */
@media (max-width:999.98px){
  .article-cover>.bc.has-art{--bc-art:34cqi;aspect-ratio:auto}
  .article-cover>.bc.has-art>.bc__in{position:relative;inset:auto;min-height:50cqi;grid-template-rows:auto minmax(25cqi,auto) auto}
  /* the picture spans the category line and the phrase (same idea as the phone band), so its size does not
     depend on how many lines the phrase takes: about 100px on a 335px cover, 150px on the 480px one */
  .article-cover .bc.has-art .bc__kicker{grid-column:1}
  .article-cover .bc.has-art .bc__phrase{align-self:center}
  .article-cover .bc__art{grid-row:1 / 3}
}
@media (min-width:1000px){
  /* beside the title: a poster as tall as the header (category line to meta line), so its top meets the category
     and its foot the meta line, instead of a small card floating at an arbitrary height */
  .article-head{grid-template-columns:minmax(0,1fr) 272px;column-gap:clamp(40px,5vw,80px);max-width:none;margin-bottom:var(--v2-space-7)}
  .article-head>:not(.article-cover){grid-column:1;max-width:52rem}
  .article-cover{grid-column:2;grid-row:1 / span 4;align-self:stretch;max-width:none;margin:0;min-height:15rem}
  .article-cover>.bc{aspect-ratio:auto;height:100%}
  .article-cover .bc__phrase{font-size:10.5cqi}
  /* the illustration sits in the poster's upper part, right above the phrase and on the same left edge (one column,
     four rows). It always has the same size (52cqi, about 145px), whatever the length of the title beside it: a
     short title makes the poster taller (the cover is in the flow, its row has a 52cqi floor); a long one leaves air
     under the category line. So the phrase stays the hero and the poster is not an empty plate above it. */
  .article-cover>.bc.has-art>.bc__in{position:relative;inset:auto;min-height:100%}
  .article-cover .bc.has-art .bc__in{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(52cqi,1fr) auto auto}
  .article-cover .bc.has-art .bc__phrase{grid-row:3;font-size:10.5cqi}
  .article-cover .bc.has-art .bc__tags{grid-row:4}
  .article-cover .bc__art{grid-column:1;grid-row:2;align-self:end;height:52cqi;object-position:0 100%}
}
@media (min-width:1200px){.article-head{grid-template-columns:minmax(0,780px) 280px;justify-content:space-between}}
.article-cover::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--v2-hairline-strong);border-radius:calc(6px * (1 - var(--k)));
  clip-path:polygon(0 0,calc(100% - var(--c)) 0,100% var(--c),100% 100%,0 100%)}
.article-cover>.bc{border-radius:calc(5px * (1 - var(--k)));
  clip-path:polygon(0 0,calc(100% - var(--c) + .6px * var(--k)) 0,100% calc(var(--c) - .6px * var(--k)),100% 100%,0 100%)}

/* ---------- reading layout: text column + sticky contents on the right from 1000px ---------- */
.article-reading{display:grid;gap:var(--v2-space-6)}
.article-main{min-width:0;max-width:calc(var(--v2-measure) * 1.0625)}
.reading-sidebar{min-width:0}
.article-reading>.reading-sidebar{display:none}
@media (min-width:1000px){
  .article-reading{grid-template-columns:minmax(0,1fr) 272px;column-gap:clamp(40px,5vw,80px);align-items:start}
  .article-main{max-width:none}
  .article-reading>.reading-sidebar{display:grid;gap:var(--v2-space-4);position:sticky;top:calc(var(--header-h) + 24px);max-height:calc(100dvh - var(--header-h) - 48px);overflow-y:auto;overscroll-behavior:contain;padding:2px}
  .article-main>.toc{display:none}
}
@media (min-width:1200px){.article-reading{grid-template-columns:minmax(0,780px) 280px;justify-content:space-between}}

/* contents on phones and tablets: closed by default, one tap opens it */
.toc{margin-bottom:var(--v2-space-6);padding:0 var(--v2-space-5)}
.toc summary,.legal-navigation summary{display:flex;align-items:center;justify-content:space-between;gap:var(--v2-space-3);min-height:52px;cursor:pointer;list-style:none;
  font:600 var(--v2-fs-small)/1.3 var(--font-body);color:var(--v2-text)}
.toc summary::-webkit-details-marker,.legal-navigation summary::-webkit-details-marker{display:none}
.toc summary::after,.legal-navigation summary::after{content:"";flex:none;width:8px;height:8px;margin-right:var(--v2-space-3);border-right:2px solid var(--v2-text-3);border-bottom:2px solid var(--v2-text-3);
  transform:translateY(-2px) rotate(45deg);transition:transform var(--v2-dur-2) var(--v2-ease-out)}
.toc[open] summary::after,.legal-navigation[open] summary::after{transform:translateY(2px) rotate(-135deg)}
.toc ol,.toc-side ol{display:grid;margin:0;padding:0;list-style:none;counter-reset:toc}
.toc ol{padding-bottom:var(--v2-space-2);border-top:1px solid var(--v2-hairline)}
.toc li,.toc-side li{counter-increment:toc}
.toc a,.toc-side a{position:relative;display:flex;align-items:baseline;gap:var(--v2-space-3);min-height:40px;padding-block:9px;font-size:var(--v2-fs-small);line-height:1.4;color:var(--v2-text-2);text-decoration:none}
.toc a::before,.toc-side a::before{content:counter(toc,decimal-leading-zero);flex:none;min-width:2ch;font:500 var(--v2-fs-micro)/1.4 var(--font-heading);font-variant-numeric:tabular-nums;color:var(--v2-text-3)}

/* desktop contents: a thread on the left, the current section lights it */
.toc-side{display:grid;gap:var(--v2-space-2)}
.toc-side__title{font:600 var(--v2-fs-micro)/1.3 var(--font-body);letter-spacing:.04em;text-transform:uppercase;color:var(--v2-text-3)}
.toc-side ol{border-left:1px solid var(--v2-hairline-strong)}
.toc-side a{padding-left:var(--v2-space-4);padding-block:7px;min-height:36px}
.toc-side a::after{content:"";position:absolute;left:-1px;top:6px;bottom:6px;width:2px;background:var(--v2-signal);transform:scaleY(0);transform-origin:top;transition:transform var(--v2-dur-2) var(--v2-ease-out)}
.toc-side a[aria-current]{color:var(--v2-text)}
.toc-side a[aria-current]::before{color:var(--v2-signal)}
.toc-side a[aria-current]::after{transform:none}
.side-service{--c:14px;display:grid;gap:var(--v2-space-1);padding:var(--v2-space-4)}
.side-service__label{font-size:var(--v2-fs-micro);line-height:1.3;color:var(--v2-text-3)}
.side-service__name{font:600 1rem/1.3 var(--font-heading)}
.side-service__name a{color:var(--v2-text);text-decoration:underline;text-decoration-color:var(--v2-border-control);text-decoration-thickness:1px;text-underline-offset:4px}
.side-service__price{font-size:var(--v2-fs-small);line-height:1.45;color:var(--v2-text-2)}
.reading-back{display:inline-flex;align-items:center;min-height:44px;font-size:var(--v2-fs-small);font-weight:600;color:var(--v2-accent);
  text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}

/* ---------- reading text: 17px on phones, 18px from 900px; --v2-measure is in em, so the line stays near 68 characters ---------- */
.article-body,.legal-content{min-width:0;max-width:var(--v2-measure);font-size:1.0625rem;line-height:1.72;color:var(--v2-text-2);overflow-wrap:break-word}
.article-body>:first-child,.legal-content>:first-child,.legal-content section>:first-child{margin-top:0}
.article-body>p:first-child{font-size:1.0588em;line-height:1.65;color:var(--v2-text)}
.article-body p,.legal-content p{margin:0 0 1.15em}
.article-body h2,.legal-content h2{margin:2.2em 0 .65em;font-size:clamp(1.4375rem,1.2rem + .9vw,1.875rem);line-height:1.18;letter-spacing:-.02em;color:var(--v2-text);text-wrap:balance}
.article-body h3,.legal-content h3{margin:1.7em 0 .45em;font-size:clamp(1.1875rem,1.1rem + .4vw,1.375rem);line-height:1.25;letter-spacing:-.015em;color:var(--v2-text)}
.article-body h2+h3{margin-top:1.1em}
.article-body ul,.article-body ol,.legal-content ul,.legal-content ol{margin:0 0 1.3em;padding-left:1.35em}
.article-body li,.legal-content li{margin-bottom:.5em;padding-left:.25em}
.article-body ul>li::marker{content:"■  ";font-size:.6em;color:var(--v2-signal)}
.article-body ol>li::marker,.legal-content li::marker{color:var(--v2-signal);font-family:var(--font-heading);font-weight:500}
.article-body strong,.legal-content strong{font-weight:600;color:var(--v2-text)}
.article-body a,.legal-content a{color:var(--v2-accent);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.article-body code,.legal-content code{padding:.1em .35em;border-radius:var(--v2-radius-xs);background:var(--v2-surface-3);font:500 .875em/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:var(--v2-text)}
.article-body pre{margin:0 0 1.3em;padding:var(--v2-space-4) var(--v2-space-5);overflow-x:auto;border:1px solid var(--v2-hairline);border-radius:var(--v2-radius-sm);background:var(--v2-surface-1);font-size:.875rem;line-height:1.6}
.article-body pre code{padding:0;background:none}
.article-body blockquote{margin:var(--v2-space-6) 0;padding:var(--v2-space-1) 0 var(--v2-space-1) var(--v2-space-5);border-left:2px solid var(--v2-signal);font-size:1.0588em;color:var(--v2-text)}
.article-body blockquote>:last-child{margin-bottom:0}
.article-body hr{height:1px;margin:var(--v2-space-7) 0;border:0;background:var(--v2-hairline)}
.article-body table{display:block;width:100%;margin:0 0 1.4em;overflow-x:auto;border-collapse:collapse;font-size:.9375rem;line-height:1.5}
.article-body th,.article-body td{min-width:8em;padding:12px 14px;border-bottom:1px solid var(--v2-hairline);text-align:left;vertical-align:top}
.article-body th{font:600 var(--v2-fs-micro)/1.3 var(--font-body);color:var(--v2-text-3);border-bottom-color:var(--v2-hairline-strong)}
.article-body td:first-child{color:var(--v2-text)}
.article-body img{max-width:100%;height:auto}
.legal-content .footer-cookie-btn{display:inline;padding:0;border:0;background:none;font:inherit;font-weight:600;color:var(--v2-accent);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;cursor:pointer}
.legal-content section+section{margin-top:var(--v2-space-7)}
.legal-content section>h2{margin-top:0}
@media (min-width:900px){.article-body,.legal-content{font-size:1.125rem}}

/* "Pe scurt" and callouts */
.key-takeaways{margin:var(--v2-space-6) 0 var(--v2-space-7);padding:var(--v2-space-5) var(--v2-space-5) var(--v2-space-3)}
.key-takeaways>strong{display:flex;align-items:center;gap:var(--v2-space-3);margin-bottom:var(--v2-space-3);font:600 var(--v2-fs-small)/1.3 var(--font-body);letter-spacing:.04em;text-transform:uppercase;color:var(--v2-accent)}
.key-takeaways>strong::before{content:"";flex:none;width:10px;height:10px;background:var(--v2-signal);clip-path:polygon(0 0,calc(100% - 3px) 0,100% 3px,100% 100%,0 100%)}
.key-takeaways ul{margin-bottom:.6em;font-size:.9412em;line-height:1.6;color:var(--v2-text)}
.callout{margin:var(--v2-space-6) 0;padding:var(--v2-space-4) var(--v2-space-5);border-left:2px solid var(--v2-signal);background:var(--v2-surface-1);color:var(--v2-text)}
.callout>:last-child{margin-bottom:0}

/* the related service, after the second section (written by tools/build_blog.py) */
.article-inline{--c:14px;display:grid;gap:2px var(--v2-space-4);margin:var(--v2-space-7) 0;padding:var(--v2-space-4) var(--v2-space-5);font-size:var(--v2-fs-small);line-height:1.45}
.article-body .article-inline p{margin:0}
.article-inline__label{font-size:var(--v2-fs-micro);color:var(--v2-text-3)}
.article-inline__name{font:600 1.0625rem/1.3 var(--font-heading);letter-spacing:-.01em}
.article-body .article-inline__name a{color:var(--v2-text);text-decoration-color:var(--v2-signal);text-underline-offset:4px}
.article-inline__price{color:var(--v2-text-2)}
@media (min-width:600px){
  .article-inline{grid-template-columns:minmax(0,1fr) auto;align-items:center}
  .article-inline__label{grid-column:1 / -1}
  .article-inline__price{text-align:right}
}

/* author */
.article-author{--c:14px;display:grid;grid-template-columns:auto minmax(0,1fr);gap:var(--v2-space-4);align-items:start;margin-top:var(--v2-space-8);padding:var(--v2-space-5)}
.article-author img{width:120px;height:auto;margin-top:4px}
.article-author>div{display:grid;gap:var(--v2-space-1)}
.aa-name{font:600 1rem/1.3 var(--font-heading);color:var(--v2-text)}
.aa-role{font-size:var(--v2-fs-micro);line-height:1.35;color:var(--v2-accent)}
.aa-text{margin-top:var(--v2-space-1);font-size:var(--v2-fs-small);line-height:1.55;color:var(--v2-text-2)}
.aa-link a{display:inline-flex;align-items:center;min-height:40px;font-size:var(--v2-fs-small);font-weight:600;color:var(--v2-accent);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
@media (max-width:599.98px){.article-author{grid-template-columns:minmax(0,1fr)}.article-author img{width:108px}}

/* ---------- end of article: CTA, previous / next, related ---------- */
.article-cta{--c:var(--v2-chamfer-lg);display:grid;gap:var(--v2-space-4);justify-items:start;margin-top:var(--v2-space-8);padding:clamp(24px,4vw,48px)}
.article-cta::after{background:var(--v2-top-edge),radial-gradient(120% 140% at 100% 0%,var(--v2-surface-4) 0%,transparent 55%),var(--v2-surface-2)}
.article-cta h2,.article-cta h3{font-size:clamp(1.5rem,1.15rem + 1.3vw,2.25rem);line-height:1.15;letter-spacing:-.02em;max-width:22em;text-wrap:balance}
.article-cta p{max-width:var(--v2-measure);font-size:var(--v2-fs-lead);line-height:1.55;color:var(--v2-text-2)}
.article-cta__actions{display:flex;flex-wrap:wrap;gap:var(--v2-space-3);margin-top:var(--v2-space-2)}
@media (max-width:599.98px){.article-cta__actions{display:grid;width:100%}}

.article-pager{display:grid;gap:var(--v2-space-3);margin-top:var(--v2-space-7)}
.article-pager__link{display:grid;gap:var(--v2-space-1);min-height:44px;padding:var(--v2-space-4) 0;border-top:1px solid var(--v2-hairline-strong);text-decoration:none}
.article-pager__label{font-size:var(--v2-fs-micro);line-height:1.3;color:var(--v2-text-3)}
.article-pager__label::before{content:"← "}
.article-pager__link.is-next .article-pager__label::before{content:none}
.article-pager__link.is-next .article-pager__label::after{content:" →"}
.article-pager__title{font:600 1.0625rem/1.3 var(--font-heading);letter-spacing:-.01em;color:var(--v2-text);text-wrap:pretty}
@media (min-width:600px){
  .article-pager{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--v2-space-6)}
  .article-pager__link.is-next{text-align:right;justify-items:end}
}
.article-pager__gap{display:none}
@media (min-width:600px){.article-pager__gap{display:block}}

.related{margin-top:var(--v2-space-8)}
.related>h2{margin-bottom:var(--v2-space-5);font-size:clamp(1.5rem,1.2rem + 1.1vw,2.125rem);line-height:1.15;letter-spacing:-.02em}

/* ---------- legal pages: contents first, then text ---------- */
.legal-reading{display:grid;gap:var(--v2-space-6)}
.legal-navigation{padding:var(--v2-space-2) var(--v2-space-5) var(--v2-space-3)}
.legal-toc{display:grid;margin:0;padding:0;list-style:none;border-top:1px solid var(--v2-hairline)}
.legal-toc a{position:relative;display:flex;align-items:center;gap:var(--v2-space-3);min-height:44px;padding-block:8px;font-size:var(--v2-fs-small);line-height:1.35;color:var(--v2-text-2);text-decoration:none}
.legal-toc a::before{content:"";flex:none;width:6px;height:6px;background:var(--v2-thread-rest)}
.legal-toc a[aria-current]{color:var(--v2-text)}
.legal-toc a[aria-current]::before{background:var(--v2-signal)}
@media (min-width:1000px){
  .legal-reading{grid-template-columns:260px minmax(0,var(--v2-measure));column-gap:var(--v2-space-8);align-items:start}
  .legal-reading>.reading-sidebar{position:sticky;top:calc(var(--header-h) + 24px);max-height:calc(100dvh - var(--header-h) - 48px);overflow-y:auto;overscroll-behavior:contain;padding:2px}
}
@media (min-width:1200px){.legal-reading{grid-template-columns:280px minmax(0,var(--v2-measure));column-gap:var(--v2-space-9)}}

/* ---------- legal pages ---------- */
.legal-hero{display:grid;gap:var(--v2-space-4);justify-items:start;max-width:var(--v2-measure);margin-bottom:var(--v2-space-7)}
.legal-updated{font-size:var(--v2-fs-small);color:var(--v2-text-3)}
.legal-table{display:block;width:100%;margin:0 0 1.3em;overflow-x:auto;border-collapse:collapse;font-size:.875rem;line-height:1.5;-webkit-overflow-scrolling:touch}
.legal-table th,.legal-table td{min-width:9.5em;padding:12px 14px;border-bottom:1px solid var(--v2-hairline);text-align:left;vertical-align:top}
.legal-table th{font:600 var(--v2-fs-micro)/1.3 var(--font-body);color:var(--v2-text-3);white-space:nowrap;border-bottom-color:var(--v2-hairline-strong)}
.legal-table td:first-child{color:var(--v2-text)}
/* phones: one block per category, each value under its column name (data-label), nothing scrolls sideways */
@media (max-width:599.98px){
  .legal-table,.legal-table tbody,.legal-table tr,.legal-table td{display:block;width:100%}
  .legal-table{overflow:visible;border-top:1px solid var(--v2-hairline-strong)}
  .legal-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .legal-table tr{display:grid;gap:var(--v2-space-3);padding:var(--v2-space-4) 0;border-bottom:1px solid var(--v2-hairline)}
  .legal-table td{min-width:0;padding:0;border:0}
  .legal-table td:first-child{font-size:1rem}
  .legal-table td:not(:first-child)::before{content:attr(data-label);display:block;margin-bottom:2px;font:600 var(--v2-fs-micro)/1.3 var(--font-body);color:var(--v2-text-3)}
}

/* ---------- 404 ---------- */
.error-page{display:grid;align-content:start}
@media (min-width:900px){.error-page{align-content:center;min-height:calc(100dvh - 120px)}}
.error-composition{display:grid;gap:var(--v2-space-7);align-items:center}
/* phones and tablets: the message and the buttons first, the decorative 404 panel after them */
@media (max-width:899.98px){.error-visual{order:1;aspect-ratio:2 / 1}}
.error-visual{--c:var(--v2-chamfer-lg);display:grid;place-items:center;aspect-ratio:16 / 9;overflow:hidden}
/* decorative (aria-hidden). Dark: a ghost numeral; light: an outlined numeral on a faint drafting grid (tokens --v2-ghost-404*) */
.error-code{font:600 clamp(4.5rem,22vw,11rem)/1 var(--font-heading);letter-spacing:-.05em;font-variant-numeric:tabular-nums;color:var(--v2-ghost-404);
  -webkit-text-stroke:var(--v2-ghost-404-w) var(--v2-ghost-line)}
.error-composition .error-visual::after{background:var(--v2-ghost-404-grid),var(--v2-top-edge),var(--v2-surface-2);background-size:24px 24px,24px 24px,auto,auto;background-position:center}
.error-crosshair{position:absolute;left:var(--v2-space-5);right:var(--v2-space-5);top:50%;height:1px;background:var(--v2-thread-rest)}
.error-crosshair::before,.error-crosshair::after{content:"";position:absolute;top:-5px;width:10px;height:10px;background:var(--v2-signal);clip-path:polygon(0 0,calc(100% - 3px) 0,100% 3px,100% 100%,0 100%)}
.error-crosshair::before{left:0}
.error-crosshair::after{right:0;opacity:.4}
.error-copy{display:grid;gap:var(--v2-space-4);justify-items:start}
.error-copy p{max-width:34em;font-size:var(--v2-fs-lead);line-height:1.55}
.error-actions{display:flex;flex-wrap:wrap;gap:var(--v2-space-3);margin-top:var(--v2-space-2)}
.error-links{display:flex;flex-wrap:wrap;gap:0 var(--v2-space-5);margin-top:var(--v2-space-3);padding-top:var(--v2-space-3);border-top:1px solid var(--v2-hairline);width:100%}
@media (max-width:599.98px){.error-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 var(--v2-space-4)}.error-actions{display:grid;width:100%}}
.error-links a{display:inline-flex;align-items:center;min-height:44px;color:var(--v2-accent);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
@media (min-width:900px){
  .error-composition{grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:var(--v2-space-8)}
}

/* ---------- pointer hover (never on touch) ---------- */
@media (hover:hover) and (pointer:fine){
  .breadcrumb a:hover,.toc a:hover,.toc-side a:hover,.legal-toc a:hover{color:var(--v2-text)}
  .breadcrumb a:hover{text-decoration:underline;text-underline-offset:3px}
  .kicker a:hover{text-decoration:underline;text-underline-offset:3px}
  .article-body a:hover,.legal-content a:hover,.blog-jump a:hover,.post-service a:hover,.reading-back:hover,.error-links a:hover,.blog-services__all:hover,.aa-link a:hover{color:var(--v2-text)}
  .post-card:hover::before,.blog-services__list a:hover::before,.side-service:hover::before{background:var(--v2-border-control)}
  .post-card:hover .post-title a{text-decoration-line:underline}
  .post-card:hover .bc__tags::after{opacity:1}
  .post-card:hover .bc__art{transform:translateY(-3px)}
  .blog-services__list a:hover .svc-name{color:var(--v2-accent)}
  .article-pager__link:hover .article-pager__title{color:var(--v2-accent)}
}
.post-card:focus-within::before{background:var(--v2-signal)}
.post-card:focus-within .bc__tags::after{opacity:1}

/* the illustration's 3px hover lift: none for reduced motion */
@media (prefers-reduced-motion:reduce){.post-card:hover .bc__art,.v2-svc-read__card:hover .bc__art{transform:none}}

@media print{
  .v2-header,.v2-header__backdrop,.v2-footer,.v2-wa-float,.cookie-consent,.reading-sidebar,.toc,.article-cta,.article-pager,.related,.article-inline{display:none!important}
  .editorial-page main{padding-top:0}
  body,.article-body,.legal-content{background:#fff;color:#000}
  .article-body a,.legal-content a{color:#000}
}

/* line length (UIUX-AUDIT A11): article paragraphs and list items stop at about 75 characters (37em) */
.article-body>p,.article-body>ul>li,.article-body>ol>li{max-width:37em}
