/* blogcms public theme. Every color, font and size comes from /theme.css variables. */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: var(--font-size); -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--c-background); color: var(--c-text); font-family: var(--font-body);
  line-height: 1.7; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--c-primary); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); line-height: 1.2; letter-spacing: -.015em; margin: 0; color: var(--c-text); }
:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--c-primary) 25%, transparent); }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--c-surface); padding: 8px 14px; z-index: 100; border-radius: var(--radius); }
.skip-link:focus { left: 8px; }
/* Shown to signed-in team members while the site is unpublished (not in the admin preview). */
.unpublished-bar { background: #1f2328; color: #f6f8fa; font: 500 13px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; text-align: center; padding: 7px 16px; }
.unpublished-bar a { color: #ffb86b; margin-left: 8px; text-decoration: underline; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(var(--wide-width), 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(var(--content-width), 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--c-muted); }
.eyebrow { font-family: var(--font-heading); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-primary); text-decoration: none; }
a.eyebrow:hover { text-decoration: underline; }

/* ── header ─────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--c-background) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--c-border); }
.header-inner { display: flex; align-items: center; gap: 1.25rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--c-text); font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
.brand img { height: 38px; width: auto; display: block; }
.brand .tagline { font-family: var(--font-body); font-weight: 400; font-size: .8rem; color: var(--c-muted); letter-spacing: 0; }
.logo-dark { display: none !important; }
:root[data-theme=dark] .logo-dark { display: block !important; }
:root[data-theme=dark] .logo-light.has-dark { display: none !important; }
.nav { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.nav a { color: var(--c-text); text-decoration: none; padding: .4rem .7rem; border-radius: calc(var(--radius) * .6); font-size: .92rem; font-weight: 500; }
.nav a:hover { background: color-mix(in srgb, var(--c-primary) 10%, transparent); color: var(--c-primary); }
.nav a[aria-current=page] { color: var(--c-primary); background: color-mix(in srgb, var(--c-primary) 10%, transparent); }
.header-tools { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid transparent; background: none; color: var(--c-text); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: color-mix(in srgb, var(--c-text) 8%, transparent); }
.icon-btn svg { width: 19px; height: 19px; }
.lang-switch { display: flex; gap: 2px; font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.lang-switch a { color: var(--c-muted); text-decoration: none; padding: .3rem .45rem; border-radius: 6px; }
.lang-switch a[aria-current=true] { color: var(--c-text); background: color-mix(in srgb, var(--c-text) 8%, transparent); }
.menu-btn { display: none; }
.header-centered .header-inner { flex-direction: column; gap: .4rem; padding: 1.1rem 0 .6rem; }
.header-centered .header-top { display: flex; width: 100%; align-items: center; justify-content: center; position: relative; }
.header-centered .header-tools { position: absolute; right: 0; }
.header-centered .brand { flex-direction: column; font-size: 1.7rem; gap: .2rem; }
.header-centered .brand img { height: 52px; }
.header-centered .nav { justify-content: center; }
.header-minimal .header-inner { min-height: 56px; }
.header-minimal .brand { font-size: 1rem; }
.header-minimal .brand img { height: 28px; }
.header-minimal .nav a { font-size: .86rem; padding: .3rem .55rem; }
.header-classic .header-top, .header-minimal .header-top { display: contents; }
/* Header color / photo from the theme: /theme.css sets --header-bg, --header-text and the photo. */
.header-static { position: relative; }
.header-noborder { border-bottom: 0; }
.header-custom { background: var(--header-bg); color: var(--header-text); backdrop-filter: none; }
.header-custom .brand, .header-custom .nav a, .header-custom .icon-btn, .header-custom .lang-switch a,
.header-custom .lang-switch a[aria-current=true] { color: var(--header-text); }
.header-custom .brand .tagline { color: var(--header-text); opacity: .8; }
.header-custom .nav a:hover, .header-custom .nav a[aria-current=page], .header-custom .icon-btn:hover,
.header-custom .lang-switch a[aria-current=true] { color: var(--header-text); background: color-mix(in srgb, var(--header-text) 15%, transparent); }

/* ── buttons & chips ───────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.25rem; border-radius: var(--radius); font-weight: 600; font-family: var(--font-heading); text-decoration: none; border: 2px solid var(--c-primary); background: var(--c-primary); color: var(--c-primary-contrast); font-size: .95rem; line-height: 1.2; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px color-mix(in srgb, var(--c-primary) 30%, transparent); text-decoration: none; }
.btn.secondary { background: transparent; color: var(--c-primary); }
.chip { display: inline-block; padding: .2rem .7rem; border-radius: 999px; background: color-mix(in srgb, var(--c-primary) 10%, var(--c-surface)); color: var(--c-text); text-decoration: none; font-size: .82rem; border: 1px solid var(--c-border); }
.chip:hover { border-color: var(--c-primary); color: var(--c-primary); }
.chip .n { color: var(--c-muted); font-size: .75rem; margin-left: .2rem; }

/* ── sections & hero ───────────────────────────────────────────── */
main { min-height: 60vh; overflow-x: clip; } /* full-width blocks use 100vw, which includes the scrollbar */
.section { padding: calc(var(--space) * 3) 0; }
.section + .section { padding-top: calc(var(--space) * 1); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: calc(var(--space) * 1.4); }
.section-head h2 { font-size: 1.5rem; }
.section-head a { font-size: .9rem; font-weight: 600; text-decoration: none; }
.hero { padding: calc(var(--space) * 4.5) 0 calc(var(--space) * 3); position: relative; }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); max-width: 18ch; letter-spacing: -.03em; }
.hero p { font-size: 1.2rem; color: var(--c-muted); max-width: 46ch; margin: 1rem 0 1.6rem; }
.hero.with-image .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero .hero-image img { border-radius: calc(var(--radius) * 1.5); box-shadow: 0 30px 60px -20px color-mix(in srgb, var(--c-text) 35%, transparent); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 85% 0%, color-mix(in srgb, var(--c-primary) 14%, transparent), transparent 70%); pointer-events: none; }
.page-title { padding: calc(var(--space) * 3) 0 calc(var(--space) * 1.5); }
.page-title h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-top: .3rem; }
.page-title p { color: var(--c-muted); margin: .6rem 0 0; max-width: 60ch; }
.html-section > * { max-width: 100%; }

/* ── post cards ────────────────────────────────────────────────── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: calc(var(--space) * 1.6); }
.card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease, border-color .15s; position: relative; }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -18px color-mix(in srgb, var(--c-text) 40%, transparent); border-color: color-mix(in srgb, var(--c-primary) 40%, var(--c-border)); }
.card .card-media { aspect-ratio: 16 / 9; background: color-mix(in srgb, var(--c-primary) 12%, var(--c-surface)); overflow: hidden; }
.card .card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .card-body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.card h3 { font-size: 1.18rem; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card p { margin: 0; color: var(--c-muted); font-size: .93rem; line-height: 1.55; }
.card .eyebrow { position: relative; z-index: 1; }
.meta { font-size: .82rem; color: var(--c-muted); display: flex; flex-wrap: wrap; gap: .35rem .9rem; align-items: center; }
.card .meta { margin-top: auto; padding-top: .35rem; }
.cards-grid.featured { grid-template-columns: 2fr 1fr; }
.cards-grid.featured .card:first-child { grid-row: span 2; }
.cards-grid.featured .card:first-child h3 { font-size: 1.6rem; }
.cards-grid.featured .card:first-child .card-media { aspect-ratio: 16 / 10; }
.cards-list { display: flex; flex-direction: column; gap: calc(var(--space) * 1.2); }
.cards-list .card { flex-direction: row; }
.cards-list .card .card-media { width: 34%; aspect-ratio: auto; min-height: 160px; flex-shrink: 0; }
.cards-minimal { list-style: none; padding: 0; margin: 0; }
.cards-minimal li { display: flex; gap: 1.2rem; align-items: baseline; padding: .9rem 0; border-bottom: 1px solid var(--c-border); position: relative; }
.cards-minimal time { color: var(--c-muted); font-size: .85rem; min-width: 7.5rem; font-variant-numeric: tabular-nums; }
.cards-minimal a { color: var(--c-text); text-decoration: none; font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; }
.cards-minimal a:hover { color: var(--c-primary); }
.series-num { display: inline-flex; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--c-primary); color: var(--c-primary-contrast); align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; flex-shrink: 0; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: .5rem; }
.empty { text-align: center; padding: 3rem 0; color: var(--c-muted); }

.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: calc(var(--space) * 2.5); align-items: center; }
.pager a { font-weight: 600; text-decoration: none; }

/* ── article ───────────────────────────────────────────────────── */
.post-header { padding: calc(var(--space) * 3.2) 0 calc(var(--space) * 1.6); }
.post-header h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -.03em; margin: .5rem 0 0; }
.post-header .dek { font-size: 1.22rem; color: var(--c-muted); margin: 1rem 0 0; line-height: 1.5; }
.post-header .meta { margin-top: 1.3rem; font-size: .88rem; }
.post-header .meta .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--c-primary); color: var(--c-primary-contrast); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; }
.post-cover { width: min(var(--wide-width), 100% - 2.5rem); margin: 0 auto calc(var(--space) * 2.5); }
.post-cover img { width: 100%; border-radius: calc(var(--radius) * 1.3); display: block; aspect-ratio: 2 / 1; object-fit: cover; }
.post-hero { position: relative; min-height: min(72vh, 620px); display: flex; align-items: flex-end; color: #fff; margin-bottom: calc(var(--space) * 2.5); overflow: hidden; background: var(--c-text); }
.post-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 20%, rgba(0,0,0,.75)); }
.post-hero .post-header { position: relative; z-index: 1; padding-bottom: calc(var(--space) * 3); }
.post-hero h1, .post-hero .dek, .post-hero .meta, .post-hero .eyebrow { color: #fff; }
.post-hero .dek, .post-hero .meta { opacity: .9; }
.post-layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, var(--content-width)) minmax(0, 1fr); gap: 2.5rem; width: min(var(--wide-width), 100% - 2.5rem); margin-inline: auto; }
.post-layout-sidebar .post-main { grid-column: 2; }
.post-layout-sidebar .toc-aside { grid-column: 3; position: sticky; top: 100px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; }
.post-layout-sidebar .post-main .narrow { width: 100%; }

.notice { border: 1px solid var(--c-border); background: var(--c-surface); border-radius: var(--radius); padding: .8rem 1rem; font-size: .88rem; color: var(--c-muted); margin-bottom: 2rem; display: flex; gap: .6rem; }
.notice svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: .2rem; color: var(--c-primary); }

.toc { border: 1px solid var(--c-border); background: var(--c-surface); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 2.2rem; font-size: .92rem; }
.toc summary { font-family: var(--font-heading); font-weight: 700; cursor: pointer; }
.toc ol { list-style: none; padding: 0; margin: .6rem 0 0; }
.toc li { margin: .3rem 0; }
.toc li.l3 { padding-left: 1rem; font-size: .88rem; }
.toc a { color: var(--c-muted); text-decoration: none; display: block; border-left: 2px solid transparent; padding-left: .6rem; }
.toc a:hover, .toc a.active { color: var(--c-primary); border-left-color: var(--c-primary); }
.toc-aside .toc { background: none; border: 0; padding: 0; }

/* prose */
.prose { font-size: 1.05rem; }
.prose > * + * { margin-top: calc(var(--space) * 1.35); }
.prose p { margin: 0; }
.prose h2 { font-size: 1.75rem; margin-top: calc(var(--space) * 3); }
.prose h3 { font-size: 1.35rem; margin-top: calc(var(--space) * 2.3); }
.prose h4, .prose h5, .prose h6 { font-size: 1.12rem; margin-top: calc(var(--space) * 2); }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: calc(var(--space) * .8); }
.prose .anchor { opacity: 0; margin-left: .35rem; text-decoration: none; color: var(--c-muted); font-weight: 400; }
.prose :is(h2, h3, h4):hover .anchor { opacity: 1; }
.prose ul, .prose ol { padding-left: 1.4rem; margin-bottom: 0; }
.prose li + li { margin-top: .35rem; }
.prose li > ul, .prose li > ol { margin-top: .35rem; }
.prose li::marker { color: var(--c-primary); }
.prose ul.checklist { list-style: none; padding-left: .2rem; }
.prose ul.checklist li { display: flex; gap: .6rem; }
.prose ul.checklist .box { width: 1.1rem; height: 1.1rem; border: 2px solid var(--c-border); border-radius: 4px; flex-shrink: 0; margin-top: .35rem; display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; }
.prose ul.checklist .box.on { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-primary-contrast); }
.prose code:not(pre code) { font-family: var(--font-mono); font-size: .86em; background: color-mix(in srgb, var(--c-text) 8%, transparent); padding: .12em .4em; border-radius: 5px; }
.prose mark, .prose .cdx-marker { background: color-mix(in srgb, #ffd43b 55%, transparent); color: inherit; padding: 0 .15em; border-radius: 3px; }
.prose hr, .prose .delimiter { border: 0; text-align: center; margin: calc(var(--space) * 3) 0; }
.prose .delimiter::before { content: "• • •"; letter-spacing: 1em; color: var(--c-muted); }
.prose blockquote { margin-left: 0; margin-right: 0; padding: .3rem 0 .3rem 1.4rem; border-left: 4px solid var(--c-primary); font-family: var(--font-heading); font-size: 1.25rem; line-height: 1.5; }
.prose blockquote p { margin: 0; }
.prose blockquote cite { display: block; font-family: var(--font-body); font-size: .88rem; color: var(--c-muted); font-style: normal; margin-top: .6rem; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figure img { border-radius: var(--radius); display: block; width: 100%; }
.prose figcaption { font-size: .85rem; color: var(--c-muted); text-align: center; margin-top: .6rem; }
.prose .size-wide { width: min(var(--wide-width) * .85, 100vw - 2.5rem); margin-left: 50%; transform: translateX(-50%); }
.prose .size-full { width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.prose .size-full img { border-radius: 0; }
.prose .gallery { display: grid; gap: .6rem; }
.prose .gallery.cols-2 { grid-template-columns: repeat(2, 1fr); }
.prose .gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }
.prose .gallery.cols-4 { grid-template-columns: repeat(4, 1fr); }
.prose .gallery img { aspect-ratio: 1; object-fit: cover; border-radius: calc(var(--radius) * .6); width: 100%; height: 100%; }
.prose .embed { position: relative; width: 100%; border-radius: var(--radius); overflow: hidden; background: #000; }
.prose .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose .iframe-block iframe { display: block; width: 100%; border: 0; background: transparent; }

/* ── design sections (section block / homepage type; options in core/sections.py) ── */
.sec { --sec-fg: var(--sec-fg-l); --sec-on-accent: var(--sec-on-accent-l); --sec-pad: calc(var(--space) * 3.5);
  --sec-r: calc(var(--radius) * 1.5); --sec-btn-r: var(--radius);
  position: relative; container-type: inline-size; color: var(--sec-fg, inherit); padding-block: calc(var(--sec-pad) * .5); margin-inline: auto; }
:root[data-theme=dark] .sec { --sec-fg: var(--sec-fg-d); --sec-on-accent: var(--sec-on-accent-d); }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .sec { --sec-fg: var(--sec-fg-d); --sec-on-accent: var(--sec-on-accent-d); } }
.sec.has-bg { background-color: var(--sec-bg); background-image: var(--sec-bg-image, none); padding: var(--sec-pad) clamp(1.25rem, 5vw, 3.5rem); border-radius: var(--sec-r); overflow: clip; }
.sec.sp-compact { --sec-pad: calc(var(--space) * 2); }
.sec.sp-roomy { --sec-pad: calc(var(--space) * 5.5); }
.sec.r-none { --sec-r: 0px; } .sec.r-s { --sec-r: calc(var(--radius) * .5); } .sec.r-l { --sec-r: calc(var(--radius) * 3 + 12px); }
.sec.btn-square { --sec-btn-r: 0; } .sec.btn-pill { --sec-btn-r: 999px; }
.sec.w-full { border-radius: 0; }
.sec.w-full .sec-inner { width: min(var(--wide-width), 100% - 2.5rem); margin-inline: auto; }
.prose > .sec { margin-block: calc(var(--space) * 2.5); }
.prose > .sec.w-wide { width: min(var(--wide-width), 100vw - 2.5rem); margin-left: calc((100% - min(var(--wide-width), 100vw - 2.5rem)) / 2); }
.prose > .sec.w-full { width: 100vw; margin-left: calc(50% - 50vw); }
.home-sec > .sec.w-content { width: min(var(--content-width), 100% - 2.5rem); }
.home-sec > .sec.w-wide { width: min(var(--wide-width), 100% - 2.5rem); }
.home-sec > .sec:not(.w-full) { margin-block: calc(var(--space) * 1.5); }
.sec-inner { position: relative; }
.sec-body > :last-child { margin-bottom: 0; }
.sec .sec-eyebrow { margin: 0 0 .8rem; font-family: var(--font-heading); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sec-accent); }
.sec.has-bg .sec-eyebrow { color: inherit; opacity: .75; }
.sec .sec-title { margin: 0 0 1rem; font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.9rem); line-height: 1.12; letter-spacing: -.02em; color: inherit; }
.sec :is(mark, .cdx-marker) { background: var(--sec-accent); color: var(--sec-on-accent); padding: 0 .12em; border-radius: 0; }
.sec .sec-text { margin: 0 0 1.6rem; font-size: 1.08rem; max-width: 58ch; opacity: .9; }
.sec.has-bg .sec-text a { color: inherit; }
.sec-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.sec .sec-btn { display: inline-flex; align-items: center; padding: .8rem 1.5rem; background: var(--sec-accent); color: var(--sec-on-accent); border: 2px solid var(--sec-accent); border-radius: var(--sec-btn-r); font-family: var(--font-heading); font-weight: 600; font-size: .92rem; letter-spacing: .04em; line-height: 1.2; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease; }
.sec .sec-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--sec-accent) 60%, transparent); }
.sec .sec-btn.outline { background: transparent; color: inherit; border-color: currentColor; }
/* split: photo + text, and bubbles (same grid, photos in a cluster) */
:is(.sec-split, .sec-bubbles, .sec-mockup, .sec-layers.lay-split) { --sec-m: 1fr; --sec-b: 1fr; --sec-cols: var(--sec-m) var(--sec-b); }
:is(.sec-split, .sec-bubbles, .sec-mockup, .sec-layers.lay-split).img-s { --sec-m: 2fr; --sec-b: 3fr; } :is(.sec-split, .sec-bubbles, .sec-mockup, .sec-layers.lay-split).img-l { --sec-m: 3fr; --sec-b: 2fr; }
:is(.sec-split, .sec-bubbles, .sec-mockup, .sec-layers.lay-split).flip { --sec-cols: var(--sec-b) var(--sec-m); }
:is(.sec-split, .sec-bubbles, .sec-mockup, .sec-layers.lay-split) .sec-inner { display: grid; grid-template-columns: var(--sec-cols); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; }
:is(.sec-split, .sec-bubbles, .sec-mockup, .sec-layers.lay-split).flip .sec-media { order: 2; }
:is(.sec-split, .sec-bubbles, .sec-mockup, .sec-layers.lay-split).no-media .sec-inner { grid-template-columns: minmax(0, 46rem); justify-content: center; text-align: center; }
:is(.sec-split, .sec-bubbles, .sec-mockup, .sec-layers.lay-split).no-media .sec-text { margin-inline: auto; }
:is(.sec-split, .sec-bubbles, .sec-mockup, .sec-layers.lay-split).no-media .sec-actions { justify-content: center; }
@container (max-width: 640px) {
  :is(.sec-split, .sec-bubbles, .sec-mockup, .sec-layers.lay-split) .sec-inner { grid-template-columns: minmax(0, 1fr); }
  :is(.sec-split, .sec-bubbles, .sec-mockup, .sec-layers.lay-split).flip .sec-media { order: 0; }
  :is(.sec-split, .sec-bubbles, .sec-mockup, .sec-layers.lay-split) .sec-media { width: min(85%, 420px); margin-inline: auto; }
}
/* bubbles: up to 9 round photos on fixed slots (center x, center y, diameter in % of a square box) */
.sec-bubbles-box { position: relative; aspect-ratio: 1; }
.sec-bubble { --x: 50%; --y: 50%; --d: 20%; position: absolute; left: calc(var(--x) - var(--d) / 2); top: calc(var(--y) - var(--d) / 2); width: var(--d); aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: clamp(3px, 1cqi, 7px) solid var(--sec-deco, var(--c-background)); background: var(--sec-deco, var(--c-surface)); box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .45); }
.sec.flip .sec-bubble { left: calc(100% - var(--x) - var(--d) / 2); }
.sec .sec-bubble img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sec-bubble:nth-child(1) { --x: 44%; --y: 46%; --d: 40%; }
.sec-bubble:nth-child(2) { --x: 82%; --y: 30%; --d: 26%; }
.sec-bubble:nth-child(3) { --x: 74%; --y: 78%; --d: 30%; }
.sec-bubble:nth-child(4) { --x: 16%; --y: 22%; --d: 22%; }
.sec-bubble:nth-child(5) { --x: 18%; --y: 72%; --d: 26%; }
.sec-bubble:nth-child(6) { --x: 47%; --y: 10%; --d: 18%; }
.sec-bubble:nth-child(7) { --x: 90%; --y: 58%; --d: 14%; }
.sec-bubble:nth-child(8) { --x: 44%; --y: 90%; --d: 16%; }
.sec-bubble:nth-child(9) { --x: 8%; --y: 47%; --d: 12%; }
.sec-bubbles-box.n-1 .sec-bubble:nth-child(1) { --x: 50%; --y: 50%; --d: 86%; }
.sec-bubbles-box.n-2 .sec-bubble:nth-child(1) { --x: 38%; --y: 40%; --d: 62%; }
.sec-bubbles-box.n-2 .sec-bubble:nth-child(2) { --x: 78%; --y: 76%; --d: 38%; }
.sec-bubbles-box.n-3 .sec-bubble:nth-child(1) { --x: 40%; --y: 38%; --d: 56%; }
.sec-bubbles-box.n-3 .sec-bubble:nth-child(2) { --x: 80%; --y: 70%; --d: 36%; }
.sec-bubbles-box.n-3 .sec-bubble:nth-child(3) { --x: 28%; --y: 82%; --d: 30%; }
/* heading above tiles / stats */
.sec .sec-head { margin-bottom: calc(var(--space) * 2); }
.sec.ta-center :is(.sec-head, .sec-tile, .sec-stat) { text-align: center; }
.sec.ta-center .sec-head .sec-text, .sec.ta-center .sec-stat-label { margin-inline: auto; }
.sec.ta-center :is(.sec-head, .sec-tile) .sec-actions { justify-content: center; }
/* tiles */
.sec-tiles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); }
.sec.tg-none .sec-tiles-grid { gap: 0; border-radius: var(--sec-r); overflow: clip; }
.sec-tile { --tile-fg: var(--tile-fg-l); --tile-pad: clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; align-items: flex-start; padding: var(--tile-pad); border-radius: var(--sec-r); overflow: clip; background: var(--tile-bg, transparent); color: var(--tile-fg, inherit); }
:root[data-theme=dark] .sec-tile { --tile-fg: var(--tile-fg-d); }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .sec-tile { --tile-fg: var(--tile-fg-d); } }
.sec-tile:not(.has-bg) { border: 1px solid color-mix(in srgb, currentColor 16%, transparent); }
.sec.ta-center .sec-tile { align-items: center; }
.sec.tg-none .sec-tile { border-radius: 0; }
.sec .sec-tile-media { margin-bottom: 1.2rem; }
.sec.tm-icon .sec-tile-media { width: 96px; }
.sec.tm-photo .sec-tile-media { align-self: stretch; margin: calc(var(--tile-pad) * -1) calc(var(--tile-pad) * -1) 1.2rem; }
.sec.tm-photo .sec-tile-media .sec-img { aspect-ratio: 4 / 3; border-radius: 0; }
.sec .sec-tile-title { margin: 0 0 .4rem; font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem); line-height: 1.2; color: inherit; }
.sec .sec-tile-sub { margin: 0 0 .8rem; font-family: var(--font-heading); font-style: italic; font-size: 1.05rem; opacity: .85; }
.sec .sec-tile-text { margin: 0; font-size: .97rem; opacity: .9; }
.sec-tile .sec-actions { margin-top: auto; padding-top: 1.3rem; }
/* stats */
.sec-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); }
.sec .sec-stat-value { margin: 0; font-family: var(--font-heading); font-weight: 800; font-size: clamp(2.4rem, 1.6rem + 3vw, 4.2rem); line-height: 1; letter-spacing: -.03em; color: var(--sec-accent); }
.sec .sec-stat-label { margin: .55rem 0 0; max-width: 16ch; font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
/* showcase strip: a row of images with a small label + title; scrolls sideways when it doesn't fit */
.sec-showcase { --show-ratio: 4 / 5; }
.sec-showcase.ir-square { --show-ratio: 1; } .sec-showcase.ir-landscape { --show-ratio: 4 / 3; }
.sec-showcase-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(min(72%, 190px), 1fr); gap: clamp(.75rem, 2vw, 1.25rem); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding-bottom: .6rem; scrollbar-width: thin; }
.sec .sec-show-item { display: flex; flex-direction: column; gap: .3rem; min-width: 0; scroll-snap-align: start; color: inherit; text-decoration: none; }
.sec .sec-show-item .sec-img { display: block; width: 100%; aspect-ratio: var(--show-ratio); object-fit: cover; transition: transform .2s ease, opacity .2s ease; }
.sec .sec-show-empty { background: color-mix(in srgb, currentColor 14%, transparent); }
.sec a.sec-show-item:hover .sec-img { opacity: .9; transform: translateY(-3px); }
.sec .sec-show-label { margin-top: .55rem; font-family: var(--font-heading); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.sec .sec-show-title { font-weight: 500; line-height: 1.35; }
/* icon row */
.sec-icons { --icon-s: 52px; --icon-c: var(--sec-accent); }
.sec-icons.isz-s { --icon-s: 36px; } .sec-icons.isz-l { --icon-s: 72px; }
.sec-icons.icc-text, .sec-icons.icc-original { --icon-c: currentColor; }
.sec-icons .sec-head { text-align: center; }
.sec-icons .sec-head .sec-text { margin-inline: auto; }
.sec-icons .sec-head .sec-actions { justify-content: center; }
.sec-icons-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem) clamp(1rem, 3vw, 2rem); justify-items: center; text-align: center; }
.sec .sec-icon-item { display: flex; flex-direction: column; align-items: center; gap: .75rem; max-width: 16rem; color: inherit; text-decoration: none; }
.sec .sec-icon { display: grid; place-items: center; width: var(--icon-s); height: var(--icon-s); color: var(--icon-c); transition: transform .15s ease; }
.sec.ist-circle .sec-icon { box-sizing: content-box; padding: calc(var(--icon-s) * .32); border-radius: 50%; background: color-mix(in srgb, var(--icon-c) 15%, transparent); }
.sec a.sec-icon-item:hover .sec-icon { transform: translateY(-3px); }
.sec .sec-icon-svg { width: 100%; height: 100%; }
.sec .sec-icon img { width: 100%; height: 100%; object-fit: contain; }
.sec .sec-icon-mask { width: 100%; height: 100%; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.sec .sec-icon-label { font-family: var(--font-heading); font-weight: 700; line-height: 1.3; }
.sec.il-upper .sec-icon-label { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.sec.il-normal .sec-icon-label { font-size: 1.1rem; }
.sec .sec-icon-text { font-size: .95rem; opacity: .85; margin-top: -.35rem; }
/* photo shapes */
.sec-frame { position: relative; isolation: isolate; }
.sec .sec-img { display: block; width: 100%; object-fit: cover; }
.sec.img-rounded .sec-img { border-radius: calc(var(--radius) * 1.5 + 4px); }
.sec.img-circle .sec-img { aspect-ratio: 1; border-radius: 50%; }
.sec.img-arch .sec-img { aspect-ratio: 4 / 5; border-radius: 50% 50% 0 0 / 40% 40% 0 0; }
.sec.img-blob .sec-img { aspect-ratio: 1; border-radius: 58% 42% 55% 45% / 47% 56% 44% 53%; }
/* decorations behind the photo */
.sec-deco { display: none; position: absolute; z-index: -1; pointer-events: none; background: var(--sec-deco, var(--c-border)); --deco-k: 1; transform: scale(var(--deco-k)); }
.sec.deco-s .sec-deco { --deco-k: .8; } .sec.deco-l .sec-deco { --deco-k: 1.2; }
.sec.deco-circle .sec-deco { display: block; width: 120%; aspect-ratio: 1; border-radius: 50%; left: -38%; top: 50%; margin-top: -60%; }
.sec.deco-circle.flip .sec-deco { left: auto; right: -38%; }
.sec.deco-blob .sec-deco { display: block; width: 112%; aspect-ratio: 1; left: -6%; top: 50%; margin-top: -56%; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; transform: rotate(-12deg) scale(var(--deco-k)); }
.sec.deco-arch .sec-deco { display: block; width: 78%; height: 108%; left: -14%; bottom: -8%; border-radius: 999px 999px 0 0; }
.sec.deco-arch.flip .sec-deco { left: auto; right: -14%; }
.sec.deco-rect .sec-deco { display: block; width: 100%; height: 100%; top: 8%; left: -8%; }
.sec.deco-rect.flip .sec-deco { left: 8%; }
.sec.deco-brackets .sec-deco { display: block; inset: -7%; background: none; }
.sec.deco-brackets .sec-deco::before, .sec.deco-brackets .sec-deco::after { content: ""; position: absolute; width: 22%; aspect-ratio: 1; border: 6px solid var(--sec-deco, currentColor); }
.sec.deco-brackets .sec-deco::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.sec.deco-brackets .sec-deco::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.sec.deco-dots .sec-deco { display: block; width: 55%; aspect-ratio: 1; right: -12%; bottom: -12%; background: radial-gradient(var(--sec-deco, currentColor) 22%, transparent 25%) 0 0 / 18px 18px; }
.sec.deco-dots.flip .sec-deco { right: auto; left: -12%; }
.sec-badge { position: absolute; right: -4%; bottom: 6%; width: 32%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; padding: .6rem; text-align: center; background: var(--sec-accent); color: var(--sec-on-accent); font-family: var(--font-heading); font-weight: 700; font-size: clamp(.72rem, 2.2cqi, 1rem); line-height: 1.15; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .35); }
.sec.flip .sec-badge { right: auto; left: -4%; }
/* shared by all presets */
.sec.ts-italic .sec-title { font-style: italic; }
.sec.tb-bar .sec-title::before { content: ""; display: block; width: 3.2rem; height: .32em; max-height: 14px; margin-bottom: .45em; background: var(--sec-accent); }
.sec.tb-bar:is(.ta-center, .sec-bigtitle) .sec-title::before, .sec.tb-bar.no-media .sec-title::before { margin-inline: auto; }
.sec:is(.sec-bigtitle, .sec-cover) { --sec-h: clamp(340px, 46vw, 560px); }
.sec:is(.sec-bigtitle, .sec-cover).h-tall { --sec-h: clamp(460px, 64vw, 760px); }
.sec:is(.sec-bigtitle, .sec-cover).h-screen { --sec-h: calc(100svh - 70px); }
/* hero: big title + shapes — everything stacked in one grid cell, shapes on the section itself */
.sec-bigtitle { isolation: isolate; overflow: clip; }
.sec-bigtitle .sec-inner { display: grid; place-items: center; min-height: calc(var(--sec-h) - var(--sec-pad) * 2); text-align: center; }
.sec-bigtitle .sec-inner > * { grid-area: 1 / 1; }
.sec-bigtitle .sec-body { position: relative; z-index: 1; }
.sec-bigtitle .sec-title { font-size: clamp(2.8rem, 11cqi, 7.5rem); line-height: 1; text-shadow: 0 6px 30px rgba(0, 0, 0, .18); }
.sec-bigtitle .sec-text { margin-inline: auto; }
.sec-bigtitle .sec-actions { justify-content: center; }
.sec-bigtitle .sec-cutout { align-self: end; margin-bottom: calc(var(--sec-pad) * -1); }
.sec-bigtitle .sec-cutout .sec-img { display: block; aspect-ratio: auto; border-radius: 0; width: auto; max-width: min(70cqi, 640px); max-height: calc(var(--sec-h) - var(--sec-pad) * .5); object-fit: contain; }
.sec-bigtitle.fr-brackets .sec-body { padding: clamp(1.5rem, 5cqi, 4rem) clamp(1.5rem, 8cqi, 6rem); }
.sec-bigtitle.fr-brackets .sec-body::before, .sec-bigtitle.fr-brackets .sec-body::after { content: ""; position: absolute; width: clamp(1.8rem, 7cqi, 4.5rem); aspect-ratio: 1; border: clamp(4px, .8cqi, 8px) solid currentColor; }
.sec-bigtitle.fr-brackets .sec-body::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.sec-bigtitle.fr-brackets .sec-body::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.sec.sec-bigtitle .sec-deco { margin-top: 0; }
.sec.sec-bigtitle.deco-circle .sec-deco, .sec.sec-bigtitle.deco-blob .sec-deco { width: auto; height: 150%; aspect-ratio: 1; top: -25%; left: auto; right: -14%; }
.sec.sec-bigtitle.deco-circle.flip .sec-deco, .sec.sec-bigtitle.deco-blob.flip .sec-deco { right: auto; left: -14%; }
.sec.sec-bigtitle.deco-arch .sec-deco { width: 30%; height: 82%; top: auto; bottom: 0; left: auto; right: 8%; }
.sec.sec-bigtitle.deco-arch.flip .sec-deco { right: auto; left: 8%; }
.sec.sec-bigtitle.deco-rect .sec-deco { width: 36%; height: 100%; top: 0; left: auto; right: 0; }
.sec.sec-bigtitle.deco-rect.flip .sec-deco { right: auto; left: 0; }
.sec.sec-bigtitle.deco-dots .sec-deco { width: 28%; height: 55%; aspect-ratio: auto; top: auto; bottom: 8%; left: auto; right: 4%; }
.sec.sec-bigtitle.deco-dots.flip .sec-deco { right: auto; left: 4%; }
.sec.sec-bigtitle.deco-brackets .sec-deco { inset: 7%; }
@container (max-width: 640px) {
  .sec.sec-bigtitle.deco-circle .sec-deco, .sec.sec-bigtitle.deco-blob .sec-deco { height: auto; width: 95%; top: auto; bottom: -30%; right: -40%; }
  .sec.sec-bigtitle.deco-circle.flip .sec-deco, .sec.sec-bigtitle.deco-blob.flip .sec-deco { right: auto; left: -40%; }
}
/* hero: full photo — photo + overlay behind the content, optional featured card in the corner */
.sec-cover { isolation: isolate; overflow: clip; --ov: .55; }
.sec-cover.ov-none { --ov: 0; } .sec-cover.ov-light { --ov: .35; } .sec-cover.ov-strong { --ov: .78; }
.sec-cover-bg { position: absolute; inset: 0; z-index: -1; }
.sec .sec-cover-bg .sec-img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; border-radius: 0; }
.sec-cover-bg::after { content: ""; position: absolute; inset: 0; opacity: var(--ov); background: linear-gradient(90deg, var(--sec-overlay) 0%, var(--sec-overlay) 30%, transparent 85%); }
.sec-cover.ta-center .sec-cover-bg::after { background: var(--sec-overlay); }
.sec-cover .sec-inner { display: grid; grid-template-rows: 1fr auto; gap: 2rem; min-height: calc(var(--sec-h) - var(--sec-pad) * 2); }
.sec-cover .sec-body { align-self: center; max-width: 40rem; }
.sec-cover.ta-center .sec-body { justify-self: center; text-align: center; }
.sec-cover.ta-center .sec-text { margin-inline: auto; }
.sec-cover.ta-center .sec-actions { justify-content: center; }
.sec-cover .sec-title { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.6rem); line-height: 1.05; }
.sec-cover:has(.sec-cover-bg) .sec-title { text-shadow: 0 2px 24px rgba(0, 0, 0, .2); }
.sec .sec-card { justify-self: end; display: grid; grid-template-columns: auto 1fr; align-items: center; max-width: 22rem; overflow: hidden; border-radius: calc(var(--radius) * .8); background: rgba(18, 20, 24, .62); backdrop-filter: blur(10px); color: #fff; text-decoration: none; box-shadow: 0 16px 36px -18px rgba(0, 0, 0, .6); transition: transform .12s ease; }
.sec a.sec-card:hover { transform: translateY(-2px); }
.sec .sec-card-img { display: block; width: 7.5rem; height: 100%; min-height: 5rem; object-fit: cover; }
.sec .sec-card-body { display: grid; gap: .3rem; padding: .85rem 1.1rem; }
.sec .sec-card-label { justify-self: start; padding: .1rem .45rem; border-radius: 4px; background: var(--sec-accent); color: var(--sec-on-accent); font-size: .7rem; font-weight: 700; letter-spacing: .04em; }
.sec .sec-card-title { font-family: var(--font-heading); font-weight: 600; font-size: .95rem; line-height: 1.3; }
@container (max-width: 640px) {
  .sec-cover-bg::after { background: var(--sec-overlay); }
  .sec .sec-card { justify-self: stretch; max-width: none; }
}
/* hero: split + mockup — 1–3 layered screenshots, the first with a browser bar */
.sec-mock { position: relative; aspect-ratio: 5 / 4; }
.sec .sec-shot { position: absolute; margin: 0; overflow: hidden; border-radius: calc(var(--radius) * .8 + 4px); background: var(--c-surface); box-shadow: 0 30px 60px -24px color-mix(in srgb, var(--c-text) 45%, transparent), 0 0 0 1px color-mix(in srgb, var(--c-text) 8%, transparent); }
.sec .sec-shot img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 0; }
.sec .sec-shot:first-child img { aspect-ratio: 4 / 3; }
.sec-shot:nth-child(1) { left: 10%; top: 4%; width: 72%; z-index: 1; }
.sec-shot:nth-child(2) { left: 0; bottom: 0; width: 38%; z-index: 2; }
.sec-shot:nth-child(3) { right: 0; top: 30%; width: 32%; z-index: 3; }
.sec-mock.n-1 { aspect-ratio: auto; }
.sec-mock.n-1 .sec-shot { position: relative; inset: auto; width: 100%; }
.sec-mock.n-2 .sec-shot:nth-child(1) { left: auto; right: 0; top: 0; width: 82%; }
.sec-mock.n-2 .sec-shot:nth-child(2) { width: 40%; }
.sec .sec-shot-bar { display: flex; gap: 5px; padding: 8px 10px; background: color-mix(in srgb, var(--c-text) 7%, var(--c-surface)); }
.sec .sec-shot-bar i { width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--c-text) 22%, transparent); }
.sec.mf-plain .sec-shot-bar { display: none; }
/* background shapes (any preset): a layer behind the content. Position = anchor in % (--ax/--ay), size = share of
   the section's width; bleed pushes the shape over the edge(s) at its position (the section clips it) */
.sec.has-shapes { isolation: isolate; overflow: clip; padding: var(--sec-pad) clamp(1.25rem, 5vw, 3.5rem); }
.sec.has-shapes > .sec-inner { z-index: 1; }
.sec-shapes { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.shp { --ax: 100; --ay: 50; --w: 32%; --k: 1; --bleed: 0; position: absolute; box-sizing: border-box; width: calc(var(--w) * var(--k)); aspect-ratio: 1; background: var(--shp);
  left: calc(var(--ax) * 1% + (50 - var(--ax)) * .06%); top: calc(var(--ay) * 1% + (50 - var(--ay)) * .06%);
  translate: calc(var(--ax) * -1% + (var(--ax) - 50) * var(--bleed) * 1%) calc(var(--ay) * -1% + (var(--ay) - 50) * var(--bleed) * 1%); }
.shp.at-left { --ax: 0; } .shp.at-top { --ax: 50; --ay: 0; } .shp.at-bottom { --ax: 50; --ay: 100; } .shp.at-center { --ax: 50; }
.shp.at-top-left { --ax: 0; --ay: 0; } .shp.at-top-right { --ay: 0; } .shp.at-bottom-left { --ax: 0; --ay: 100; } .shp.at-bottom-right { --ay: 100; }
.shp.sz-s { --w: 18%; } .shp.sz-l { --w: 48%; } .shp.sz-xl { --w: 68%; }
.shp.bleed { --bleed: .7; left: calc(var(--ax) * 1%); top: calc(var(--ay) * 1%); }
.shp-circle { border-radius: 50%; }
.shp-ring { background: none; border: clamp(10px, 2.5cqi, 34px) solid var(--shp); border-radius: 50%; }
.shp-blob { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; rotate: -12deg; }
.shp-arch { aspect-ratio: 4 / 5; border-radius: 999px 999px 0 0; }
.shp-square { border-radius: var(--sec-r); }
.shp-pill { aspect-ratio: 12 / 5; border-radius: 999px; }
.shp-dots { background: radial-gradient(var(--shp) 22%, transparent 25%) 0 0 / 18px 18px; }
/* a block that extends to the edge becomes a panel: full height at the left/right, a full-width band otherwise */
.shp-square.bleed { border-radius: 0; aspect-ratio: auto; }
.shp-square.bleed:is(.at-left, .at-right) { top: 0; height: 100%; translate: calc(var(--ax) * -1%) 0; }
.shp-square.bleed:not(.at-left, .at-right) { left: 0; width: 100%; height: calc(var(--w) * var(--k)); translate: 0 calc(var(--ay) * -1%); }
@container (max-width: 640px) { .shp { --k: 1.5; } }
/* shapes + content: text, photos and boxes in front of the shapes, beside (split) or under (stack) the title */
.sec-els { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); align-items: center; }
.sec-els.n-1 { grid-template-columns: minmax(0, 1fr); }
.sec-layers.lay-stack .sec-els { align-items: stretch; }
.sec .sec-el-photo { margin: 0; }
.sec .sec-el-photo .sec-img { box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .45); }
.sec .sec-el-box:not(.has-bg) { border: 0; background: var(--c-surface); color: var(--c-text); box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .4); }
.sec .sec-el-box .sec-icon { width: 44px; height: 44px; margin-bottom: 1rem; color: var(--sec-accent); }
.sec.ta-center .sec-el { text-align: center; }
.sec.ta-center .sec-el-box { align-items: center; }
.sec.ta-center .sec-el .sec-actions { justify-content: center; }
.sec .sec-el .sec-actions { margin-top: 1rem; }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--c-border); border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.prose th, .prose td { padding: .65rem .9rem; border-bottom: 1px solid var(--c-border); text-align: left; vertical-align: top; }
.prose th { background: color-mix(in srgb, var(--c-text) 5%, var(--c-surface)); font-family: var(--font-heading); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }

/* code */
.code-block { border-radius: var(--radius); overflow: hidden; background: var(--code-bg); font-size: .86rem; box-shadow: 0 10px 30px -18px rgba(0,0,0,.5); }
.code-block .code-head { display: flex; justify-content: space-between; align-items: center; padding: .45rem .9rem; font-family: var(--font-mono); font-size: .75rem; color: #adb5bd; background: rgba(127,127,127,.12); }
.code-block .copy { background: none; border: 1px solid rgba(173,181,189,.4); color: #ced4da; border-radius: 6px; font-size: .72rem; padding: .15rem .55rem; cursor: pointer; }
.code-block .highlight { margin: 0; }
.code-block pre { margin: 0; padding: 1rem 1.1rem; overflow-x: auto; font-family: var(--font-mono); line-height: 1.6; }

/* callouts */
.callout { --tone: var(--c-accent); border-radius: var(--radius); padding: 1rem 1.2rem 1rem 1.1rem; background: color-mix(in srgb, var(--tone) 9%, var(--c-surface)); border: 1px solid color-mix(in srgb, var(--tone) 30%, transparent); border-left: 4px solid var(--tone); display: flex; gap: .8rem; }
.callout .icon { font-size: 1.15rem; line-height: 1.5; }
.callout strong.title { display: block; font-family: var(--font-heading); margin-bottom: .2rem; }
.callout p { margin: 0; }
.callout.tip { --tone: #2f9e44; } .callout.warning { --tone: #f08c00; } .callout.danger { --tone: #e03131; } .callout.note { --tone: var(--c-muted); }

/* pros & cons */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.proscons > div { border-radius: var(--radius); padding: 1.1rem 1.3rem; border: 1px solid var(--c-border); background: var(--c-surface); }
.proscons h4 { font-size: 1rem; margin: 0 0 .6rem; display: flex; align-items: center; gap: .5rem; }
.proscons ul { list-style: none; padding: 0; margin: 0; }
.proscons li { display: flex; gap: .55rem; font-size: .96rem; }
.proscons li + li { margin-top: .5rem; }
.proscons .pros h4, .proscons .pros li::before { color: #2f9e44; }
.proscons .cons h4, .proscons .cons li::before { color: #e03131; }
.proscons .pros li::before { content: "✓"; font-weight: 700; }
.proscons .cons li::before { content: "✕"; font-weight: 700; }
.proscons .pros { border-top: 3px solid #2f9e44; }
.proscons .cons { border-top: 3px solid #e03131; }

/* rating card */
.rating-card { border: 1px solid var(--c-border); background: var(--c-surface); border-radius: calc(var(--radius) * 1.2); padding: 1.4rem; display: grid; grid-template-columns: auto 1fr auto; gap: 1.3rem; align-items: center; box-shadow: 0 12px 32px -22px color-mix(in srgb, var(--c-text) 50%, transparent); }
.rating-card .product-img { width: 72px; height: 72px; border-radius: calc(var(--radius) * .7); object-fit: cover; }
.rating-card h4 { font-size: 1.25rem; margin: 0; }
.rating-card .verdict { color: var(--c-muted); margin: .3rem 0 0; font-size: .95rem; }
.rating-card .score { text-align: center; }
.rating-card .score .big { font-family: var(--font-heading); font-size: 2.3rem; font-weight: 800; line-height: 1; color: var(--c-primary); }
.rating-card .score .of { font-size: .82rem; color: var(--c-muted); }
.rating-card .meter { height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--c-primary) 15%, transparent); overflow: hidden; margin-top: .6rem; width: 110px; }
.rating-card .meter span { display: block; height: 100%; background: var(--c-primary); border-radius: 99px; }
.rating-card .stars { color: #f59f00; font-size: 1.15rem; letter-spacing: .1em; }
.rating-card .stars .off { color: color-mix(in srgb, var(--c-muted) 45%, transparent); }
.rating-card .actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; border-top: 1px solid var(--c-border); padding-top: 1rem; margin-top: -.2rem; }
.rating-card.no-img { grid-template-columns: 1fr auto; }

/* spec table & comparison */
.spec { border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; background: var(--c-surface); }
.spec h4 { font-size: .95rem; padding: .7rem 1rem; margin: 0; border-bottom: 1px solid var(--c-border); background: color-mix(in srgb, var(--c-text) 4%, var(--c-surface)); }
.spec dl { margin: 0; display: grid; grid-template-columns: minmax(8rem, 35%) 1fr; }
.spec dt, .spec dd { padding: .6rem 1rem; margin: 0; border-bottom: 1px solid var(--c-border); font-size: .93rem; }
.spec dt { color: var(--c-muted); font-weight: 600; }
.spec dl > :nth-last-child(-n+2) { border-bottom: 0; }
.comparison th.hl, .comparison td.hl { background: color-mix(in srgb, var(--c-primary) 9%, var(--c-surface)); }
.comparison th.hl { color: var(--c-primary); }
.comparison th.hl .pick { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.comparison td:first-child { font-weight: 600; color: var(--c-muted); }

.cta { display: flex; }
.cta.center { justify-content: center; } .cta.right { justify-content: flex-end; }
.aff-mark { font-size: .7rem; color: var(--c-muted); margin-left: .35rem; }
.raw-html > :first-child { margin-top: 0; }

/* ── post footer: share, tags, series, related, comments ───────── */
.post-footer { margin-top: calc(var(--space) * 3); display: flex; flex-direction: column; gap: 1.6rem; }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.share { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .88rem; color: var(--c-muted); }
.share a, .share button { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border: 1px solid var(--c-border); border-radius: 999px; color: var(--c-text); background: var(--c-surface); text-decoration: none; font: inherit; font-size: .84rem; cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--c-primary); color: var(--c-primary); }
.share svg { width: 15px; height: 15px; }
.author-box { display: flex; gap: 1rem; padding: 1.2rem; border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-surface); }
.author-box .avatar { width: 48px; height: 48px; font-size: 1.1rem; border-radius: 50%; background: var(--c-primary); color: var(--c-primary-contrast); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.author-box p { margin: .2rem 0 0; color: var(--c-muted); font-size: .92rem; }
.series-box { border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-surface); padding: 1.1rem 1.3rem; margin-bottom: 2rem; }
.series-box ol { margin: .6rem 0 0; padding-left: 1.3rem; font-size: .92rem; }
.series-box li.current { font-weight: 700; }
.series-box li.current a { color: var(--c-text); text-decoration: none; }
.series-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.series-nav a { border: 1px solid var(--c-border); border-radius: var(--radius); padding: .9rem 1.1rem; text-decoration: none; color: var(--c-text); background: var(--c-surface); }
.series-nav a:hover { border-color: var(--c-primary); }
.series-nav small { display: block; color: var(--c-muted); font-size: .78rem; }
.series-nav .next { text-align: right; grid-column: 2; }
.related { border-top: 1px solid var(--c-border); margin-top: calc(var(--space) * 3); padding-top: calc(var(--space) * 2.5); }
.comments { border-top: 1px solid var(--c-border); margin-top: calc(var(--space) * 3); padding-top: calc(var(--space) * 2.5); }
.comments h2 { font-size: 1.4rem; margin-bottom: 1.2rem; }
.comment { padding: 1rem 0; border-bottom: 1px solid var(--c-border); }
.comment .who { font-weight: 700; font-family: var(--font-heading); }
.comment .when { font-size: .8rem; color: var(--c-muted); margin-left: .5rem; }
.comment .comment-lang { font-size: .7rem; font-weight: 600; letter-spacing: .04em; color: var(--c-muted); border: 1px solid var(--c-border); border-radius: 4px; padding: 0 .3rem; margin-left: .45rem; vertical-align: middle; }
.comment p { margin: .35rem 0 0; white-space: pre-line; }
.comment .replies { margin: .8rem 0 0 1.2rem; padding-left: 1rem; border-left: 2px solid var(--c-border); }
.comment .replies .comment { border-bottom: 0; padding: .5rem 0; }
.comment .reply-link { display: inline-block; margin-top: .35rem; font-size: .8rem; font-weight: 600; color: var(--c-muted); text-decoration: none; }
.comment .reply-link:hover { color: var(--c-primary); }
.comment .comment-form { margin: .8rem 0 .4rem; }
.comment .by-author { font-size: .7rem; font-weight: 700; letter-spacing: .02em; background: var(--c-primary); color: var(--c-primary-contrast); border-radius: 99px; padding: .1rem .55rem; margin-left: .45rem; vertical-align: middle; }
/* replies by the post's author / site team: tinted box around the comment itself, not its replies */
.comment.staff > .comment-main { background: color-mix(in srgb, var(--c-primary) 7%, transparent); border-left: 3px solid var(--c-primary); border-radius: 0 calc(var(--radius) * .6) calc(var(--radius) * .6) 0; padding: .7rem .9rem; }
.comment-form { display: grid; gap: .9rem; margin-top: 1.6rem; }
.comment-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.comment-form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .3rem; }
.comment-form input, .comment-form textarea, .search-form input { width: 100%; padding: .7rem .9rem; border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-text); border-radius: calc(var(--radius) * .6); font: inherit; font-size: .95rem; }
.comment-form textarea { min-height: 130px; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus, .search-form input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 20%, transparent); }
.comment-form .form-actions { display: flex; align-items: center; gap: 1rem; }
.comment-form .cancel-reply { font-size: .9rem; color: var(--c-muted); }
.comment-form .cancel-reply[hidden] { display: none; }
.contact-intro p + p { margin-top: 1em; }
.contact .contact-form { margin-top: calc(var(--space) * 1.5); }
.contact .contact-form .small { font-size: .85rem; color: var(--c-muted); margin: 0; }
.hp { position: absolute; left: -9999px; }
.flash-msg { padding: .8rem 1rem; border-radius: var(--radius); background: color-mix(in srgb, var(--c-accent) 12%, var(--c-surface)); border: 1px solid color-mix(in srgb, var(--c-accent) 35%, transparent); font-size: .92rem; }
.search-form { display: flex; gap: .6rem; margin-top: 1.2rem; }

/* ── footer ────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--c-border); margin-top: calc(var(--space) * 5); padding: calc(var(--space) * 2.5) 0 calc(var(--space) * 3); font-size: .9rem; color: var(--c-muted); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; align-items: flex-start; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.footer-inner a { color: var(--c-muted); text-decoration: none; }
.footer-inner a:hover { color: var(--c-primary); }
.social { display: flex; gap: .3rem; }
.footer-text { max-width: 44ch; }
.footer-text p { margin: .3rem 0 0; }
/* footer_layout "columns": brand + one column per heading, RSS/cookie links in a bottom line */
.footer-columns { display: grid; grid-template-columns: minmax(200px, 1.6fr) repeat(auto-fit, minmax(140px, 1fr)); gap: 1.8rem 2.5rem; align-items: start; }
.footer-columns a, .footer-bottom a { color: var(--c-muted); text-decoration: none; }
.footer-columns a:hover, .footer-bottom a:hover { color: var(--c-primary); }
.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.footer-heading { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-text); margin: 0 0 .7rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: calc(var(--space) * 2); padding-top: calc(var(--space) * 1.2); border-top: 1px solid var(--c-border); }
@media (max-width: 640px) { .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }

/* 404 */
.not-found { text-align: center; padding: calc(var(--space) * 6) 0; }
.not-found .code { font-family: var(--font-heading); font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; line-height: 1; color: var(--c-primary); letter-spacing: -.05em; }
.not-found h1 { font-size: 1.8rem; margin: 1rem 0 .5rem; }
.not-found p { color: var(--c-muted); }

@media (max-width: 1100px) {
  .post-layout-sidebar { display: block; width: auto; }
  .post-layout-sidebar .toc-aside { display: none; }
  .post-layout-sidebar .post-main .narrow { width: min(var(--content-width), 100% - 2.5rem); }
}
@media (min-width: 1101px) { .post-layout-sidebar .toc-inline { display: none; } }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .site-header .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--c-background); flex-direction: column; align-items: stretch; padding: .6rem 1.25rem 1rem; border-bottom: 1px solid var(--c-border); }
  .site-header.open .nav { display: flex; }
  .header-custom .nav { background: var(--header-bg); }
  .nav a { padding: .7rem .5rem; font-size: 1rem; }
  .header-centered .header-inner { padding: .7rem 0; }
  .header-centered .brand { flex-direction: row; font-size: 1.2rem; }
  .header-centered .brand img { height: 36px; }
  .header-centered .header-top { justify-content: flex-start; }
  .hero.with-image .wrap { grid-template-columns: 1fr; }
  .cards-grid.featured { grid-template-columns: 1fr; }
  .cards-grid.featured .card:first-child { grid-row: auto; }
  .cards-list .card { flex-direction: column; }
  .cards-list .card .card-media { width: 100%; aspect-ratio: 16 / 9; min-height: 0; }
  .proscons, .comment-form .two, .series-nav { grid-template-columns: 1fr; }
  .series-nav .next { grid-column: auto; }
  .comment .replies { margin-left: .4rem; padding-left: .75rem; }
  .rating-card, .rating-card.no-img { grid-template-columns: 1fr auto; }
  .rating-card .product-img { display: none; }
  .prose .gallery.cols-3, .prose .gallery.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cards-minimal li { flex-direction: column; gap: .1rem; }
  .brand .tagline { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print {
  .site-header, .site-footer, .share, .comments, .related, .toc-aside { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ── cookie banner (only rendered when the admin set it up) ── */
.consent { position: fixed; inset: auto 0 0 0; z-index: 100; background: var(--c-surface); color: var(--c-text); border-top: 1px solid var(--c-border); box-shadow: 0 -8px 30px rgba(0, 0, 0, .12); padding: 1rem 0; font-size: .92rem; }
.consent[hidden] { display: none; }
.consent-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.consent-text { flex: 1 1 22rem; min-width: 0; }
.consent-text p { margin: .25rem 0 0; }
.consent-choices { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: .6rem; }
.consent-choices[hidden] { display: none; }
.consent-choices label { display: inline-flex; align-items: center; gap: .4rem; }
.consent-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.consent-actions .btn { padding: .55rem 1rem; font-size: .9rem; }
.consent-actions .btn[hidden] { display: none; }
@media (max-width: 600px) { .consent-actions { width: 100%; } .consent-actions .btn { flex: 1 1 auto; justify-content: center; } }
/* box and pop-up positions (Admin → Cookies, tracking & ads → Look) */
.consent--left, .consent--right, .consent--center { inset: auto auto 1rem 1rem; width: min(26rem, calc(100vw - 2rem)); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: 0 12px 40px rgba(0, 0, 0, .18); }
.consent--right { inset: auto 1rem 1rem auto; }
.consent--center { inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: min(32rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); overflow: auto; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .45), 0 12px 40px rgba(0, 0, 0, .25); }
.consent--left .consent-text, .consent--right .consent-text, .consent--center .consent-text { flex-basis: 100%; }
.consent--left .consent-actions, .consent--right .consent-actions, .consent--center .consent-actions { width: 100%; }
.consent--left .consent-actions .btn, .consent--right .consent-actions .btn, .consent--center .consent-actions .btn { flex: 1 1 auto; justify-content: center; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.ad-slot { margin: calc(var(--space) * 1.5) 0; text-align: center; }
