/* ==========================================================================
   Vitrine — a storefront theme for Ghost, by SamaDesign
   1. Tokens   2. Base   3. Shared bits   4. Header & navigation
   5. Hero & chips   6. Catalogue cards & collage   7. Bundle   8. Page sections
   (comparison, promises, docs, FAQ)   9. Product page   10. Blog: article, cards, covers
   11. Content (Koenig)   12. Documentation   13. Newsletter   14. Footer   15. Misc
   ========================================================================== */

/* 1. Tokens
   ========================================================================== */

:root {
    --vt-bg: #fbfaf7;
    --vt-surface: #ffffff;
    --vt-ink: #16151a;
    --vt-muted: rgb(22 21 26 / 0.64);
    --vt-line: rgb(22 21 26 / 0.12);
    --vt-soft: rgb(22 21 26 / 0.05);
    --vt-panel: #16151a;
    --vt-panel-ink: #fbfaf7;
    --vt-accent: var(--ghost-accent-color, #3b2bff);
    --vt-yes: #18a058;

    --vt-font-head: var(--gh-font-heading, "Bricolage Grotesque"), system-ui, sans-serif;
    --vt-font-body: var(--gh-font-body, "Figtree"), system-ui, sans-serif;

    --vt-gutter: 20px;
    --vt-wide: 1240px;
    --vt-content: 720px;
    --vt-radius: 22px;
    --vt-head-h: 72px;
    --vt-ease: cubic-bezier(0.2, 0.8, 0.2, 1);

    /* Product colour defaults (overridden by the Color of the product's tag) */
    --t-bg: var(--vt-panel);
    --t-ink: var(--vt-panel-ink);
}

@media (min-width: 760px) { :root { --vt-gutter: 40px; } }

[data-scheme="dark"] {
    --vt-bg: #121116;
    --vt-surface: #1b1a20;
    --vt-ink: #f3f1ec;
    --vt-muted: rgb(243 241 236 / 0.64);
    --vt-line: rgb(243 241 236 / 0.13);
    --vt-soft: rgb(243 241 236 / 0.06);
    --vt-panel: #f3f1ec;
    --vt-panel-ink: #16151a;
    --vt-yes: #3ccf82;
    color-scheme: dark;
}

/* 2. Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--vt-head-h) + 24px); }

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--vt-bg);
    color: var(--vt-ink);
    font: 400 1.02rem/1.65 var(--vt-font-body);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { font-family: var(--vt-font-head); font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; text-wrap: balance; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--vt-accent); outline-offset: 3px; }

.vt-wrap { width: 100%; max-width: calc(var(--vt-wide) + 2 * var(--vt-gutter)); margin-inline: auto; padding-inline: var(--vt-gutter); }
.vt-narrow { width: 100%; max-width: calc(var(--vt-content) + 2 * var(--vt-gutter)); margin-inline: auto; padding-inline: var(--vt-gutter); }

.vt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vt-skip { position: absolute; top: -100px; left: 16px; z-index: 100; padding: 10px 16px; background: var(--vt-ink); color: var(--vt-bg); }
.vt-skip:focus { top: 16px; }

/* 3. Shared bits
   ========================================================================== */

.vt-label { display: inline-block; color: var(--vt-muted); font: 600 0.74rem/1.3 var(--vt-font-body); letter-spacing: 0.14em; text-transform: uppercase; }
a.vt-label:hover { color: var(--vt-ink); }

.vt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 24px;
    border: 1.5px solid var(--vt-ink);
    border-radius: 999px;
    background: var(--vt-ink);
    color: var(--vt-bg);
    font: 600 0.95rem/1.2 var(--vt-font-body);
    text-align: center;
    cursor: pointer;
    transition: transform 0.25s var(--vt-ease), background-color 0.25s ease, color 0.25s ease;
}

.vt-btn:hover { transform: translateY(-2px); }
.vt-btn-line { background: transparent; color: inherit; border-color: currentColor; }
.vt-btn-line:hover { background: var(--vt-ink); color: var(--vt-bg); border-color: var(--vt-ink); }
.vt-btn-sm { min-height: 40px; padding: 0 18px; font-size: 0.88rem; }

.vt-icon { flex-shrink: 0; }
.vt-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.vt-icon-btn:hover { background: var(--vt-soft); }
.vt-icon-btn .vt-icon { width: 18px; height: 18px; }
.vt-icon-sun { display: none; }
[data-scheme="dark"] .vt-icon-sun { display: block; }
[data-scheme="dark"] .vt-icon-moon { display: none; }

/* Coloured blocks: the product's colour, with dark or light text (main.js sets data-vt-ink;
   without JS, browsers that support relative colours pick it themselves) */
[data-vt-colored] { --t-ink: #fbfaf7; --t-line: rgb(255 255 255 / 0.2); --t-soft: rgb(255 255 255 / 0.12); background: var(--t-bg); color: var(--t-ink); }
@supports (color: oklch(from red l c h)) {
    [data-vt-colored] { --t-ink: oklch(from var(--t-bg) calc((0.7 - l) * 999) 0 0); }
}
[data-vt-colored][data-vt-ink="dark"] { --t-ink: #fbfaf7; --t-line: rgb(255 255 255 / 0.2); --t-soft: rgb(255 255 255 / 0.12); }
[data-vt-colored][data-vt-ink="light"] { --t-ink: #16151a; --t-line: rgb(0 0 0 / 0.14); --t-soft: rgb(0 0 0 / 0.06); }

.vt-pname { font-family: var(--vt-font-head); font-weight: 800; letter-spacing: -0.035em; }

.vt-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--t-line, var(--vt-line)); list-style: none; font-size: 0.93rem; }
.vt-checks li { display: flex; gap: 8px; }
.vt-checks li::before { content: "✓"; font-weight: 700; opacity: 0.8; }
@media (max-width: 520px) { .vt-checks { grid-template-columns: 1fr; } }

/* Section heads */
.vt-section { padding-top: 96px; }
.vt-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 36px; }
.vt-head h1, .vt-head h2 { margin-top: 10px; font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.vt-head p { max-width: 420px; color: var(--vt-muted); }



/* 4. Header & navigation
   ========================================================================== */

.vt-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--vt-bg) 90%, transparent);
    border-bottom: 1px solid var(--vt-line);
}

@media (min-width: 1100px) {
    .vt-header { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}

.vt-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; min-height: var(--vt-head-h); }
.vt-brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.vt-logo { width: auto; max-height: 40px; }
.vt-logo-dark { display: none; }
[data-scheme="dark"] .vt-logo-dark { display: block; }
[data-scheme="dark"] .vt-logo-light { display: none; }
.vt-wordmark { overflow: hidden; font: 800 1.35rem/1.1 var(--vt-font-head); letter-spacing: -0.04em; text-overflow: ellipsis; white-space: nowrap; }

/* Mark: one small square per product colour, in rows of four */
.vt-mark { display: grid; grid-template-columns: repeat(4, 9px); grid-auto-rows: 9px; gap: 2px; flex-shrink: 0; }
.vt-mark:empty { display: none; }
.vt-mark i { border-radius: 2px; }
.vt-mark:has(i:nth-child(2):last-child), .vt-mark:has(i:nth-child(3):last-child) { grid-template-columns: repeat(3, 9px); }
.vt-mark:has(i:first-child:last-child) { display: none; }

.vt-nav { justify-self: center; display: flex; align-items: center; }
.vt-menu { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 28px; margin: 0; padding: 0; list-style: none; }
.vt-menu > li { position: relative; }

.vt-menu a,
.vt-sub-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 0;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.25s ease;
}

.vt-menu > li > a:hover,
.vt-menu > .is-current > a,
.vt-menu > .is-current > .vt-sub-toggle,
.vt-sub-toggle:hover { border-bottom-color: currentColor; }

.vt-sub-toggle::after {
    content: "";
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.vt-sub-toggle[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 3px; }
.vt-submenu { margin: 0; padding: 8px 0; list-style: none; }
.vt-nav-purchases { display: none; }

.vt-tools { display: flex; align-items: center; gap: 4px; }
.vt-tools-cta { margin-left: 8px; }

.vt-burger { display: none; flex-direction: column; gap: 6px; }
.vt-burger span { display: block; width: 20px; height: 1.5px; background: currentColor; transition: transform 0.2s ease; }
.vt-burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.vt-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

@media (min-width: 1100px) {
    .vt-submenu {
        position: absolute;
        top: calc(100% + 14px);
        left: -18px;
        min-width: 220px;
        border: 1px solid var(--vt-line);
        border-radius: 14px;
        background: var(--vt-surface);
        box-shadow: 0 24px 48px rgb(0 0 0 / 0.12);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-4px);
        transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    }

    .vt-submenu.is-open { opacity: 1; visibility: visible; transform: none; }
    .vt-submenu a { display: flex; width: 100%; padding: 9px 18px; border: 0; }
    .vt-submenu a:hover { background: var(--vt-soft); }
}

@media (max-width: 1099px) {
    .vt-bar { grid-template-columns: minmax(0, 1fr) auto; }
    .vt-burger { display: inline-flex; }

    .vt-nav {
        position: fixed;
        inset: 0;
        z-index: 1;
        display: block;
        padding: calc(var(--vt-head-h) + 24px) var(--vt-gutter) 40px;
        overflow-y: auto;
        background: var(--vt-bg);
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.25s ease, visibility 0.25s;
    }

    /* The fixed menu opens behind the brand and the tools, so the burger stays usable to close it */
    .vt-brand, .vt-tools { position: relative; z-index: 2; }
    .vt-nav.is-open { visibility: visible; opacity: 1; }
    .vt-menu { flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--vt-line); }
    .vt-menu > li { border-bottom: 1px solid var(--vt-line); }

    .vt-menu a,
    .vt-sub-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 14px 0;
        border: 0;
        font: 700 1.9rem/1.15 var(--vt-font-head);
        letter-spacing: -0.03em;
    }

    .vt-submenu { display: none; padding: 0 0 14px 16px; }
    .vt-submenu.is-open { display: block; }
    .vt-submenu a { padding: 7px 0; font-size: 1.3rem; }
    .vt-nav-purchases { display: flex; width: 100%; margin-top: 32px; }
    body.vt-nav-open { overflow: hidden; }
}

@media (max-width: 420px) { .vt-mark { display: none; } }

@media (max-width: 599px) {
    .vt-tools-cta { display: none; }
    .vt-tools { gap: 0; }
    .vt-wordmark { font-size: 1.2rem; }
}

/* 5. Hero & chips
   ========================================================================== */

.vt-hero { padding-top: 80px; }
.vt-hero-title { max-width: 980px; margin-top: 18px; font-size: clamp(3rem, 7.4vw, 6.6rem); line-height: 0.95; letter-spacing: -0.045em; }
.vt-hero-title em { font-style: normal; background: var(--vt-highlight-light, linear-gradient(90deg, var(--vt-accent), var(--vt-accent))); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-scheme="dark"] .vt-hero-title em { background-image: var(--vt-highlight-dark, linear-gradient(90deg, var(--vt-accent), var(--vt-accent))); }
.vt-hero-text { max-width: 560px; margin: 26px 0 32px; color: var(--vt-muted); font-size: 1.2rem; }
.vt-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.vt-hero-bundle-price { margin-left: -4px; }

.vt-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 56px; }
.vt-chips-alone .vt-chips { margin-top: 40px; }
.vt-chip {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    min-height: 150px;
    padding: 16px 18px;
    border: 1px solid var(--vt-line);
    border-radius: 16px;
    background: var(--vt-surface);
    transition: transform 0.3s var(--vt-ease);
}

.vt-chip[data-vt-colored] { border-color: transparent; background: var(--t-bg); color: var(--t-ink); }
a.vt-chip:hover { transform: translateY(-6px) rotate(-1deg); }
.vt-chip span { font-size: 0.8rem; font-weight: 600; opacity: 0.8; }
.vt-chip { container-type: inline-size; }
/* Name sized to the chip width so long names stay on one line */
.vt-chip b { display: block; max-width: 100%; font-size: clamp(1.05rem, 15cqi, 1.75rem); line-height: 1.05; overflow-wrap: normal; }
@media (max-width: 520px) { .vt-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vt-chip { min-height: 110px; } }

/* 6. Catalogue cards & collage
   ========================================================================== */

.vt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .vt-grid { grid-template-columns: 1fr; } }

.vt-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
    padding: 28px 28px 30px;
    border: 1px solid var(--vt-line);
    border-radius: var(--vt-radius);
    background: var(--vt-surface);
    overflow: hidden;
}

.vt-card[data-vt-colored] { border-color: transparent; background: var(--t-bg); color: var(--t-ink); }
[data-scheme="dark"] .vt-card[data-vt-colored], [data-scheme="dark"] .vt-chip[data-vt-colored], [data-scheme="dark"] .vt-product-hero-inner[data-vt-colored] { border-color: var(--vt-line); }
.vt-card-body { display: flex; flex-direction: column; gap: 18px; flex: 1; }
.vt-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; order: -1; }
.vt-card-wide .vt-card-top { order: 0; }
.vt-card-name { min-width: 0; font-size: clamp(2.4rem, 4.6vw, 3.6rem); line-height: 1; overflow-wrap: anywhere; }
.vt-price { flex-shrink: 0; font: 700 1.6rem/1 var(--vt-font-head); letter-spacing: -0.02em; }
.vt-card-text { max-width: 520px; opacity: 0.85; }
.vt-card-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.vt-card .vt-btn, .vt-bundle .vt-btn { background: var(--t-ink, var(--vt-ink)); color: var(--t-bg, var(--vt-bg)); border-color: var(--t-ink, var(--vt-ink)); }
.vt-card .vt-btn-line, .vt-bundle .vt-btn-line { background: transparent; color: inherit; }
.vt-card .vt-btn-line:hover, .vt-bundle .vt-btn-line:hover { background: var(--t-ink, var(--vt-ink)); color: var(--t-bg, var(--vt-bg)); }
.vt-card:not([data-vt-colored]) .vt-btn { background: var(--vt-ink); color: var(--vt-bg); border-color: var(--vt-ink); }
.vt-card:not([data-vt-colored]) .vt-btn-line { background: transparent; color: var(--vt-ink); }

/* The card body comes first in the DOM for wide cards, the visual in between for the others */
.vt-card:not(.vt-card-wide) { display: grid; grid-template-rows: auto auto 1fr; }
.vt-card:not(.vt-card-wide) .vt-card-body { display: contents; }
.vt-card:not(.vt-card-wide) .vt-card-top { grid-row: 1; }
.vt-card:not(.vt-card-wide) .vt-card-visual { grid-row: 2; }
.vt-card:not(.vt-card-wide) .vt-new { display: none; }

.vt-card-image { display: block; overflow: hidden; border-radius: 12px; box-shadow: 0 16px 40px rgb(0 0 0 / 0.2); }
.vt-card-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform 0.8s var(--vt-ease); }
.vt-card:hover .vt-card-image img { transform: scale(1.03); }

/* Collage: up to four screens fanned out, laid flat as a 2x2 grid on hover */
.vt-collage { position: relative; aspect-ratio: 16 / 11; margin: 6px 4px 10px; }
.vt-collage[data-count="2"] { aspect-ratio: 16 / 8; }
.vt-tile { position: absolute; width: 49%; margin: 0; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 16px 40px rgb(0 0 0 / 0.28); transition: transform 0.6s var(--vt-ease); }
.vt-tile img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.vt-tile figcaption { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 3px 10px; overflow: hidden; border-radius: 999px; background: var(--t-ink, var(--vt-ink)); color: var(--t-bg, var(--vt-bg)); font-size: 0.74rem; font-weight: 700; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; box-shadow: 0 4px 12px rgb(0 0 0 / 0.25); }
.vt-tile:nth-child(even) figcaption { left: auto; right: 8px; }
.vt-tile:nth-child(1) { left: 0; top: 0; transform: translate(5%, 7%) rotate(-5deg) scale(1.08); }
.vt-tile:nth-child(2) { right: 0; top: 0; transform: translate(-5%, 10%) rotate(4deg) scale(1.06); }
.vt-tile:nth-child(3) { left: 0; bottom: 0; z-index: 3; transform: translate(10%, -6%) rotate(3deg) scale(1.12); }
.vt-tile:nth-child(4) { right: 0; bottom: 0; z-index: 2; transform: translate(-8%, -9%) rotate(-3deg) scale(1.08); }
.vt-collage[data-count="2"] .vt-tile:nth-child(2) { top: auto; bottom: 0; }
.vt-collage[data-count="3"] .vt-tile:nth-child(3) { left: 25%; }
.vt-card:hover .vt-tile, .vt-card:focus-within .vt-tile { transform: none; }

@media (max-width: 560px) {
    .vt-collage { aspect-ratio: 16 / 12; }
    .vt-tile { width: 72%; }
    .vt-tile:nth-child(2), .vt-tile:nth-child(4) { display: none; }
    .vt-tile:nth-child(3) { left: auto; right: 0; transform: translate(-4%, -4%) rotate(3deg); }
    .vt-collage[data-count="2"] .vt-tile:nth-child(2) { display: block; left: auto; right: 0; transform: translate(-4%, -4%) rotate(3deg); }
    .vt-tile:nth-child(1) { transform: translate(4%, 4%) rotate(-4deg); }
}

/* The newest product: full width, text left, visual right */
.vt-card-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.15fr; gap: 32px; align-items: center; }
.vt-card-wide .vt-card-visual { order: 2; }
.vt-new { align-self: flex-start; padding: 5px 10px; border-radius: 999px; background: var(--t-ink, var(--vt-ink)); color: var(--t-bg, var(--vt-bg)); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
@media (min-width: 521px) { .vt-card-wide .vt-checks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .vt-card-wide { grid-template-columns: 1fr; } .vt-card-wide .vt-card-visual { order: 0; } }

/* 7. Bundle
   ========================================================================== */

.vt-bundle { --t-line: rgb(255 255 255 / 0.2); --t-ink: var(--vt-panel-ink); --t-bg: var(--vt-panel); display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; padding: 56px; border-radius: 28px; background: var(--vt-panel); color: var(--vt-panel-ink); overflow: hidden; }
[data-scheme="dark"] .vt-bundle { --t-line: rgb(0 0 0 / 0.14); }
@media (max-width: 960px) { .vt-bundle { grid-template-columns: 1fr; padding: 32px 24px; } }
.vt-bundle-copy { display: flex; flex-direction: column; gap: 18px; }
.vt-bundle .vt-label { color: inherit; opacity: 0.65; }
.vt-bundle-title { font-size: clamp(2.4rem, 5vw, 4rem); }
.vt-bundle-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; }
.vt-bundle-price b { font: 800 3.4rem/1 var(--vt-font-head); letter-spacing: -0.04em; }
.vt-bundle-price s { opacity: 0.5; font-size: 1.3rem; }
.vt-bundle-price span { padding: 4px 10px; border-radius: 999px; background: #ffd23f; color: #16151a; font-weight: 700; font-size: 0.85rem; }
.vt-bundle-text { opacity: 0.8; max-width: 520px; }
.vt-bundle-copy .vt-card-ctas { margin-top: 6px; }

.vt-fan { position: relative; height: 320px; }
.vt-fan:empty { display: none; }
.vt-fan .vt-chip { position: absolute; bottom: 0; width: 34%; min-height: 220px; border: 0; box-shadow: 0 20px 50px rgb(0 0 0 / 0.4); transform: rotate(var(--r, 0deg)); transform-origin: bottom center; transition: transform 0.35s var(--vt-ease); }
.vt-fan .vt-chip b { overflow: hidden; overflow-wrap: normal; white-space: nowrap; }
.vt-fan .vt-chip:not([data-vt-colored]) { background: var(--vt-bg); color: var(--vt-ink); }
.vt-fan .vt-chip:hover { transform: translateY(-24px) rotate(0); z-index: 20 !important; }
@media (max-width: 960px) { .vt-fan { height: 220px; } .vt-fan .vt-chip { min-height: 150px; } .vt-fan .vt-chip b { font-size: 1.3rem; } }

/* 8. Page sections: comparison, promises, documentation & blog, FAQ
   ========================================================================== */

.vt-compare .vt-table-scroll,
.vt-compare > table { overflow-x: auto; border: 1px solid var(--vt-line); border-radius: var(--vt-radius); background: var(--vt-surface); }
.vt-compare table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 0.93rem; }
.vt-compare > table { display: block; min-width: 0; }
.vt-compare th, .vt-compare td { padding: 14px 16px; border-bottom: 1px solid var(--vt-line); text-align: center; vertical-align: middle; }
.vt-compare th:first-child, .vt-compare td:first-child { text-align: left; color: var(--vt-muted); }
.vt-compare thead th, .vt-compare tr:first-child th { font: 700 1.1rem/1.2 var(--vt-font-head); letter-spacing: -0.02em; color: var(--vt-ink); }
.vt-compare tbody tr:last-child td { border-bottom: 0; }
.vt-compare-color { display: block; width: 26px; height: 6px; margin: 0 auto 8px; border-radius: 3px; }
.vt-compare td:first-child .vt-compare-color, .vt-compare th:first-child .vt-compare-color { margin-left: 0; }
.vt-yes { color: var(--vt-yes) !important; font-weight: 700; }
.vt-no { color: var(--vt-muted) !important; }
.vt-compare > :not(table):not(.vt-table-scroll) { max-width: var(--vt-content); }
.vt-compare > * + * { margin-top: 1.2em; }

.vt-promises > * + * { margin-top: 1em; }
.vt-promise-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.vt-promises.is-grid > :not(.vt-promise-grid) { margin-bottom: 24px; }
@media (max-width: 900px) { .vt-promise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .vt-promise-grid { grid-template-columns: 1fr; } }
.vt-promise { padding: 26px; border: 1px solid var(--vt-line); border-radius: var(--vt-radius); background: var(--vt-surface); }
.vt-promise i { display: block; width: 34px; height: 34px; border-radius: 10px; background: var(--vt-ink); }
.vt-promise h2, .vt-promise h3 { margin: 14px 0 8px; font-size: 1.2rem; line-height: 1.2; letter-spacing: -0.02em; }
.vt-promise p { color: var(--vt-muted); font-size: 0.95rem; }
.vt-promise p + p { margin-top: 8px; }
.vt-promise a { text-decoration: underline; }

.vt-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .vt-split { grid-template-columns: 1fr; } }
.vt-panel { display: flex; flex-direction: column; justify-content: space-between; gap: 26px; min-height: 280px; padding: 36px; border-radius: var(--vt-radius); background: var(--vt-panel); color: var(--vt-panel-ink); }
.vt-panel .vt-label { color: inherit; opacity: 0.65; }
.vt-panel-title { margin-top: 12px; font-size: 2.2rem; }
.vt-panel-light { background: var(--vt-surface); color: var(--vt-ink); border: 1px solid var(--vt-line); }
.vt-panel-full { grid-column: 1 / -1; }
.vt-panel-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.vt-panel-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 0; border-top: 1px solid currentColor; border-top-color: color-mix(in srgb, currentColor 16%, transparent); }
.vt-panel-list a { font-weight: 600; }
.vt-panel-list a:hover { text-decoration: underline; }
.vt-panel-list time { opacity: 0.65; font-size: 0.88rem; }

/* FAQ: Ghost toggle cards (and plain headings + paragraphs) as an accordion */
.vt-faq { max-width: 860px; }
.vt-faq .kg-toggle-card { margin: 0; padding: 0; border: 0; border-bottom: 1px solid var(--vt-line); border-radius: 0; background: none; box-shadow: none; }
.vt-faq .kg-toggle-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; }
.vt-faq .kg-toggle-heading-text { margin: 0; color: var(--vt-ink); font: 600 1.15rem/1.35 var(--vt-font-head); letter-spacing: -0.01em; }
.vt-faq .kg-toggle-card-icon { color: var(--vt-ink); }
/* Toggle icon: at least 24px to tap (Koenig makes it 20px) */
.gh-content .kg-toggle-card-icon { flex-shrink: 0; width: 28px; height: 28px; padding: 4px; }
.vt-faq .kg-toggle-content { color: var(--vt-muted); }
.vt-faq .kg-toggle-content p { max-width: 680px; padding-bottom: 22px; font-size: 1rem; }
.vt-faq > .kg-toggle-card + .kg-toggle-card { margin-top: 0; }

/* 9. Product page
   ========================================================================== */

.vt-crumbs { padding-top: 26px; color: var(--vt-muted); font-size: 0.9rem; }
.vt-crumbs a:hover { color: var(--vt-ink); text-decoration: underline; }

.vt-product-hero { margin-top: 22px; }
.vt-product-hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px 40px; padding: 56px 48px 0; border: 1px solid var(--vt-line); border-radius: var(--vt-radius); background: var(--vt-surface); overflow: hidden; }
.vt-product-hero-inner[data-vt-colored] { border-color: transparent; background: var(--t-bg); color: var(--t-ink); }
@media (max-width: 960px) { .vt-product-hero-inner { grid-template-columns: 1fr; padding: 40px 24px 0; } }
.vt-product-hero .vt-label { color: inherit; opacity: 0.7; }
.vt-product-title { margin-top: 16px; font-size: clamp(3.4rem, 9vw, 8rem); line-height: 0.92; overflow-wrap: anywhere; }
.vt-product-lead { margin-top: 18px; max-width: 560px; font-size: 1.2rem; opacity: 0.88; }

.vt-buy { align-self: start; padding: 26px; border: 1px solid var(--t-line, var(--vt-line)); border-radius: 18px; background: var(--t-soft, var(--vt-soft)); }
.vt-licences { display: flex; flex-direction: column; }
.vt-licence { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--t-line, var(--vt-line)); cursor: pointer; }
.vt-licence:first-child { padding-top: 0; }
.vt-licence span { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.vt-licence input { width: 18px; height: 18px; margin: 0; accent-color: var(--t-ink, var(--vt-ink)); }
.vt-licence b { font: 700 1.5rem/1 var(--vt-font-head); white-space: nowrap; }
.vt-buy .vt-btn { width: 100%; margin-top: 18px; background: var(--t-ink, var(--vt-ink)); color: var(--t-bg, var(--vt-bg)); border-color: var(--t-ink, var(--vt-ink)); }
.vt-buy .vt-btn-line { margin-top: 10px; background: transparent; color: inherit; border-color: var(--t-line, var(--vt-line)); }
.vt-buy .vt-btn-line:hover { border-color: currentColor; }
.vt-buy-docs { display: block; margin-top: 16px; font-weight: 600; text-align: center; }
.vt-buy-docs:hover { text-decoration: underline; }
.vt-buy-note { margin-top: 14px; font-size: 0.82rem; opacity: 0.72; text-align: center; }

.vt-product-shot { grid-column: 1 / -1; margin-top: 24px; }
/* Plain frame: the feature image may be a photo (a book, an object) or a screenshot */
.vt-product-frame { overflow: hidden; border-radius: 14px 14px 0 0; box-shadow: 0 -10px 60px rgb(0 0 0 / 0.25); }
.vt-product-frame img { width: 100%; max-height: 720px; object-fit: cover; object-position: top; }

/* The whole page, scrolling in a browser frame */
.vt-tour-frame { overflow: hidden; border-radius: 16px; background: var(--vt-surface); box-shadow: 0 30px 80px rgb(0 0 0 / 0.2); }
.vt-tour-frame::before { content: ""; display: block; height: 26px; background: radial-gradient(circle at 16px 50%, #ff6159 4.5px, transparent 5px), radial-gradient(circle at 32px 50%, #ffbd2e 4.5px, transparent 5px), radial-gradient(circle at 48px 50%, #27c840 4.5px, transparent 5px) #ececec; }
.vt-tour-view { height: min(72vh, 680px); overflow: hidden; outline-offset: -3px; }
.vt-tour-view img { width: 100%; transition: transform 1.2s var(--vt-ease); }
.vt-tour-view:hover img, .vt-tour-view:focus-visible img { transform: translateY(calc(-100% + min(72vh, 680px))); transition: transform var(--tour-time, 14s) linear; }
.vt-tour-touch { display: none; }
@media (hover: none), (prefers-reduced-motion: reduce) {
    .vt-tour-view { overflow-y: auto; overscroll-behavior: contain; }
    .vt-tour-view:hover img, .vt-tour-view:focus-visible img { transform: none; }
    .vt-tour-hover { display: none; }
    .vt-tour-touch { display: inline; }
}

/* Product content: image cards with a caption read as feature cards */
.vt-product-body .vt-content { padding-inline: 0; }

/* 10. Blog: article, cards, covers
   ========================================================================== */

.vt-progress { position: fixed; inset: 0 0 auto; z-index: 60; height: 3px; pointer-events: none; }
.vt-progress-bar { display: block; height: 100%; background: var(--vt-accent); transform: scaleX(0); transform-origin: left; }

.vt-article-head { padding-top: 72px; text-align: center; }
.vt-article-head .vt-label { margin-bottom: 16px; }
.vt-article-title { max-width: 980px; margin-inline: auto; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; }
.vt-article-excerpt { max-width: 640px; margin: 20px auto 0; color: var(--vt-muted); font-size: 1.22rem; }
.vt-byline { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; margin-top: 26px; color: var(--vt-muted); font-size: 0.9rem; }
.vt-byline > * { white-space: nowrap; }
.vt-byline > * + *::before { content: "·"; margin-inline: 9px; }
.vt-byline a:hover { color: var(--vt-ink); }
.vt-article-image { margin-top: 48px; }
.vt-article-image img { width: 100%; border-radius: var(--vt-radius); }
.vt-article-image figcaption { margin-top: 12px; color: var(--vt-muted); font-size: 0.85rem; text-align: center; }
.vt-article-body { position: relative; padding-top: 56px; }
.vt-page .vt-article-body { padding-bottom: 32px; }
.vt-full-width > .vt-content { padding-top: 56px; padding-bottom: 32px; }

.vt-toc { width: 100%; max-width: calc(var(--vt-content) + 2 * var(--vt-gutter)); margin: 0 auto 40px; padding-inline: var(--vt-gutter); }
.vt-toc-box { border: 1px solid var(--vt-line); border-radius: 16px; background: var(--vt-surface); }
.vt-toc-summary { display: flex; align-items: center; gap: 10px; padding: 14px 18px; cursor: pointer; list-style: none; user-select: none; }
.vt-toc-summary::-webkit-details-marker { display: none; }
.vt-toc-summary::after { content: ""; width: 7px; height: 7px; margin-left: auto; border-right: 1.5px solid var(--vt-muted); border-bottom: 1.5px solid var(--vt-muted); transform: translateY(-2px) rotate(45deg); transition: transform 0.2s ease; }
.vt-toc-box[open] .vt-toc-summary::after { transform: translateY(2px) rotate(-135deg); }
.vt-toc-title { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.vt-toc-count { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--vt-soft); color: var(--vt-muted); font-size: 0.78rem; text-align: center; }
.vt-toc-box nav { padding: 0 18px 16px; }
.vt-toc-list { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.vt-toc-list li { counter-increment: toc; }
.vt-toc-list a { display: flex; gap: 10px; padding: 7px 0 7px 14px; border-left: 2px solid var(--vt-line); color: var(--vt-muted); font-size: 0.92rem; line-height: 1.45; transition: color 0.2s ease, border-color 0.2s ease; }
.vt-toc-list a::before { content: counter(toc, decimal-leading-zero); flex-shrink: 0; font-variant-numeric: tabular-nums; opacity: 0.7; }
.vt-toc-list a:hover { color: var(--vt-ink); }
.vt-toc-list a.is-read { border-left-color: color-mix(in srgb, var(--vt-ink) 40%, transparent); }
.vt-toc-list a.is-active { border-left-color: var(--vt-ink); color: var(--vt-ink); }

@media (min-width: 1400px) {
    .vt-toc { position: absolute; top: 56px; bottom: 0; left: calc(50% - var(--vt-content) / 2 - 300px); width: 240px; margin: 0; padding: 0; }
    .vt-toc-box { position: sticky; top: calc(var(--vt-head-h) + 32px); }
    .vt-toc-summary { cursor: default; pointer-events: none; }
    .vt-toc-summary::after { display: none; }
}

.vt-article-foot { display: flex; flex-direction: column; gap: 28px; padding-top: 64px; }
.vt-article-tags, .vt-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.vt-tag { padding: 6px 14px; border: 1px solid var(--vt-line); border-radius: 999px; font-size: 0.88rem; font-weight: 500; white-space: nowrap; transition: border-color 0.2s ease; }
.vt-tag:hover, .vt-tag.nav-current { border-color: var(--vt-ink); }
.vt-tag.nav-current { background: var(--vt-ink); color: var(--vt-bg); }
.vt-tags { flex-wrap: nowrap; margin-top: 24px; overflow-x: auto; scrollbar-width: none; }
.vt-tags::-webkit-scrollbar { display: none; }

.vt-share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-block: 14px; border-block: 1px solid var(--vt-line); }
.vt-share .vt-label { margin-right: 10px; }
.vt-share .vt-icon-btn { border-color: var(--vt-line); }
.vt-share .vt-icon { width: 16px; height: 16px; }
.vt-copy.is-copied { border-color: var(--vt-ink); }

.vt-author-card { display: flex; gap: 18px; }
.vt-avatar { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; border-radius: 50%; background: var(--vt-panel); color: var(--vt-panel-ink); }
.vt-avatar img { width: 100%; height: 100%; object-fit: cover; }
.vt-avatar span { width: 1ch; overflow: hidden; white-space: nowrap; }
.vt-avatar-lg { width: 64px; height: 64px; font-size: 1.4rem; }
.vt-author-card-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vt-author-card-name { font: 700 1.25rem/1.2 var(--vt-font-head); }
.vt-author-card-bio { color: var(--vt-muted); font-size: 0.95rem; }
.vt-comments { padding-block: 40px; }

.vt-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
@media (max-width: 960px) { .vt-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .vt-posts { grid-template-columns: 1fr; } }
.vt-post-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.vt-post-card-image { display: block; margin-bottom: 8px; overflow: hidden; border-radius: 16px; }
.vt-post-card-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.8s var(--vt-ease); }
.vt-post-card:hover .vt-post-card-image img { transform: scale(1.04); }
.vt-post-card-title { font-size: 1.45rem; line-height: 1.15; }
.vt-post-card-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.vt-post-card-text { color: var(--vt-muted); font-size: 0.97rem; }
.vt-meta { display: flex; flex-wrap: wrap; color: var(--vt-muted); font-size: 0.85rem; }
.vt-meta > * { white-space: nowrap; }
.vt-meta > * + *::before { content: "·"; margin-inline: 8px; }
.vt-meta a:hover { color: var(--vt-ink); }
.vt-archive .vt-posts { margin-top: 8px; }

/* Covers (tag & author pages): the tag's Color, or the ink panel */
.vt-cover { padding-top: 32px; }
.vt-cover-inner { position: relative; display: flex; align-items: flex-end; min-height: 340px; padding: 48px; overflow: hidden; border-radius: var(--vt-radius); background: var(--vt-panel); color: var(--vt-panel-ink); isolation: isolate; }
.vt-cover-inner[data-vt-colored] { background: var(--t-bg); color: var(--t-ink); }
.vt-cover-inner.has-image { color: #fff; }
.vt-cover-inner.has-image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(0 0 0 / 0.65), rgb(0 0 0 / 0.1) 70%); }
.vt-cover-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.vt-cover-copy { max-width: 760px; }
.vt-cover .vt-label { color: inherit; opacity: 0.75; }
.vt-cover-title { margin-top: 12px; font-size: clamp(3rem, 8vw, 6.4rem); line-height: 0.95; overflow-wrap: anywhere; }
.vt-cover-text { margin-top: 16px; max-width: 600px; font-size: 1.1rem; opacity: 0.88; }
.vt-cover-avatar { width: 88px; height: 88px; margin-bottom: 20px; border-radius: 50%; object-fit: cover; }
.vt-cover-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; }
.vt-cover-links a { display: inline-flex; font-weight: 600; }
.vt-cover-links a:hover { text-decoration: underline; }
.vt-cover-links .vt-icon { width: 18px; height: 18px; }
@media (max-width: 700px) { .vt-cover-inner { min-height: 260px; padding: 28px 24px; } }

/* 11. Content (Koenig editor)
   ========================================================================== */

.vt-content {
    display: grid;
    grid-template-columns:
        [full-start] minmax(var(--vt-gutter), 1fr)
        [wide-start] minmax(0, 220px)
        [main-start] min(var(--vt-content), calc(100% - 2 * var(--vt-gutter)))
        [main-end] minmax(0, 220px)
        [wide-end] minmax(var(--vt-gutter), 1fr)
        [full-end];
    font-size: 1.1rem;
    line-height: 1.8;
    overflow-wrap: break-word;
}

.vt-content-wide {
    grid-template-columns:
        [full-start] minmax(var(--vt-gutter), 1fr)
        [wide-start main-start] min(var(--vt-wide), calc(100% - 2 * var(--vt-gutter)))
        [main-end wide-end] minmax(var(--vt-gutter), 1fr)
        [full-end];
}

.vt-product-body .vt-content { grid-template-columns: [full-start wide-start] minmax(0, 1fr) [main-start] min(var(--vt-content), 100%) [main-end] minmax(0, 1fr) [wide-end full-end]; }
.vt-content > * { grid-column: main; min-width: 0; }
.vt-content > .kg-width-wide { grid-column: wide; }
.vt-content > .kg-width-full { grid-column: full; }
.vt-content > * + * { margin-top: 1.4em; margin-bottom: 0; }
.vt-content > :first-child { margin-top: 0; }

.vt-content > h2 { margin-top: 2em; font-size: 2.2rem; }
.vt-content > h3 { margin-top: 1.7em; font-size: 1.6rem; }
.vt-content > h4 { margin-top: 1.5em; font-size: 1.2rem; }
.vt-content > h2 + *, .vt-content > h3 + *, .vt-content > h4 + * { margin-top: 0.7em; }
.vt-content strong { font-weight: 600; }

.vt-content a:not([class]) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.vt-content a:not([class]):hover { text-decoration-thickness: 2px; }
.vt-content ul, .vt-content ol { padding-left: 1.4em; }
.vt-content li + li { margin-top: 0.4em; }

.vt-content blockquote:not([class]) { margin-inline: 0; padding-left: 24px; border-left: 3px solid var(--vt-ink); font-size: 1.3rem; line-height: 1.55; }
.vt-content blockquote.kg-blockquote-alt { margin-inline: 0; padding: 0.4em 0; font: 700 2rem/1.2 var(--vt-font-head); letter-spacing: -0.02em; text-align: center; }
.vt-content hr { width: 100%; height: 1px; margin-block: 2.6em; border: 0; background: var(--vt-line); }

.vt-content code:not(pre code) { padding: 0.15em 0.45em; border-radius: 6px; background: var(--vt-soft); font-size: 0.88em; }
.vt-content pre { overflow-x: auto; padding: 20px; border-radius: 14px; background: #16151a; color: #fbfaf7; font-size: 0.9rem; line-height: 1.6; }
.vt-content table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 0.95rem; }
.vt-table-scroll { max-width: 100%; overflow-x: auto; }
.vt-content .vt-table-scroll table { display: table; width: 100%; overflow: visible; }
.vt-doc-content .vt-table-scroll table { min-width: 560px; }
.vt-content th, .vt-content td { padding: 10px 14px; border-bottom: 1px solid var(--vt-line); text-align: left; vertical-align: top; }
.vt-content th { border-bottom-color: var(--vt-ink); font-weight: 600; }
.vt-content figure { margin-inline: 0; }
.vt-content figcaption { margin-top: 12px; color: var(--vt-muted); font-size: 0.86rem; line-height: 1.5; text-align: center; }
.vt-content figcaption a { text-decoration: underline; }
.vt-content .kg-image-card img, .vt-content .kg-gallery-image img { border-radius: 12px; }
.vt-content .kg-width-full img { border-radius: 0; }
.vt-content .kg-bookmark-container { color: var(--vt-ink); text-decoration: none; border-radius: 14px; }
.vt-content .kg-btn, .vt-content .kg-btn-accent { border-radius: 999px; color: #fff; text-decoration: none; }
.vt-content .kg-callout-card { border-radius: 14px; font-size: 1rem; }
.vt-content .kg-toggle-card { border-radius: 14px; }

/* Product pages: consecutive image cards grouped by main.js into feature cards */
.vt-feature-grid { grid-column: wide; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .vt-feature-grid { grid-template-columns: 1fr; } }
.vt-feature-grid .kg-image-card { margin: 0; overflow: hidden; border: 1px solid var(--vt-line); border-radius: 18px; background: var(--vt-surface); }
.vt-feature-grid .kg-image-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 0; }
.vt-feature-grid figcaption { margin: 0; padding: 16px 20px 18px; color: var(--vt-ink); font: 700 1.1rem/1.3 var(--vt-font-head); letter-spacing: -0.01em; text-align: left; }

/* 12. Documentation
   ========================================================================== */

.vt-docs { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding-top: 48px; }
@media (max-width: 900px) { .vt-docs { grid-template-columns: 1fr; gap: 32px; } }
.vt-docs-nav { position: sticky; top: calc(var(--vt-head-h) + 24px); display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - var(--vt-head-h) - 48px); overflow-y: auto; font-size: 0.93rem; }
@media (max-width: 900px) { .vt-docs-nav { position: static; max-height: none; } }
.vt-docs-nav b { margin: 16px 0 6px; color: var(--vt-muted); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; }
.vt-docs-nav b:first-child { margin-top: 0; }
.vt-docs-nav a { display: block; padding: 6px 12px; border-radius: 10px; }
.vt-docs-nav a:hover { background: var(--vt-soft); }
.vt-docs-nav a.nav-current { background: var(--vt-ink); color: var(--vt-bg); }
.vt-docs-toc { margin: 0; padding: 0; list-style: none; }
.vt-docs-toc a { color: var(--vt-muted); }
.vt-docs-toc a.is-active { color: var(--vt-ink); font-weight: 600; background: var(--vt-soft); }

.vt-doc { min-width: 0; max-width: 780px; }
.vt-doc-title { margin: 12px 0 16px; font-size: clamp(2.4rem, 5vw, 3.6rem); }
.vt-doc .vt-article-excerpt { margin: 0 0 32px; }
.vt-doc-content { display: block; font-size: 1.02rem; line-height: 1.75; }
.vt-doc-content > * + * { margin-top: 1em; }
.vt-doc-content > h2 { margin-top: 2.4em; padding-top: 24px; border-top: 1px solid var(--vt-line); font-size: 1.9rem; }
.vt-doc-content > h3 { margin-top: 1.8em; font-size: 1.3rem; }
.vt-doc-content .kg-callout-card { margin-block: 1.5em; }

/* 13. Newsletter
   ========================================================================== */

.vt-news { margin-top: 110px; padding: 64px 0; background: var(--vt-panel); color: var(--vt-panel-ink); }
.vt-news-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px 40px; align-items: center; width: 100%; max-width: calc(var(--vt-wide) + 2 * var(--vt-gutter)); margin-inline: auto; padding-inline: var(--vt-gutter); }
@media (max-width: 860px) { .vt-news-inner { grid-template-columns: 1fr; } }
.vt-news .vt-label { grid-column: 1; color: inherit; opacity: 0.65; }
.vt-news-title { grid-column: 1; font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.vt-news-text { grid-column: 1; max-width: 520px; opacity: 0.75; }
.vt-form { grid-column: 2; grid-row: 1 / span 3; }
@media (max-width: 860px) { .vt-form { grid-column: 1; grid-row: auto; margin-top: 12px; } }
.vt-form-row { display: flex; flex-wrap: wrap; gap: 10px; }
.vt-form-row > * { min-width: 0; }
.vt-news input { flex: 1 1 220px; min-height: 52px; padding: 0 20px; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); border-radius: 999px; background: transparent; color: inherit; }
.vt-news input::placeholder { color: inherit; opacity: 0.6; }
.vt-news input:focus { outline: none; border-color: currentColor; }
.vt-news .vt-btn { min-height: 52px; background: var(--vt-bg); color: var(--vt-ink); border-color: var(--vt-bg); }

.vt-form-loading, .vt-form-success, .vt-form-error { display: none; }
.vt-form .vt-btn { position: relative; }
.vt-form.loading .vt-form-label { visibility: hidden; }
.vt-form.loading .vt-form-loading { display: block; position: absolute; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: vt-spin 0.7s linear infinite; }
.vt-form.success .vt-form-row { display: none; }
.vt-form.success .vt-form-success { display: block; font-size: 1.1rem; font-weight: 600; }
.vt-form.error .vt-form-error { display: block; margin-top: 12px; font-size: 0.9rem; }
@keyframes vt-spin { to { transform: rotate(360deg); } }

/* 14. Footer
   ========================================================================== */

.vt-footer { margin-top: 96px; padding: 56px 0 36px; }
.vt-news + .vt-footer { margin-top: 0; }
.vt-footer-top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 3fr); gap: 32px 48px; }
@media (max-width: 860px) { .vt-footer-top { grid-template-columns: 1fr; } }
.vt-footer-about { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.vt-footer-desc { max-width: 320px; color: var(--vt-muted); }
.vt-footer-menu { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; padding: 0; list-style: none; }
.vt-footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px; }
.vt-footer-cols ul { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.vt-footer-title, .vt-footer-heading { margin-bottom: 12px; color: var(--vt-muted); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.vt-footer-nav a:hover { text-decoration: underline; }
.vt-footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--vt-line); color: var(--vt-muted); font-size: 0.85rem; }
.vt-footer-legal a { text-decoration: underline; }

.vt-social { display: flex; flex-wrap: wrap; gap: 6px; }
.vt-social:empty { display: none; }
.vt-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--vt-line); border-radius: 50%; transition: border-color 0.25s ease; }
.vt-social a:hover { border-color: var(--vt-ink); }
.vt-social .vt-icon { width: 16px; height: 16px; }
.vt-social-sm a { width: 32px; height: 32px; }
.vt-social-sm .vt-icon { width: 14px; height: 14px; }
.vt-social-fallback { font-size: 0.65rem; }

/* 15. Misc: pagination, error, motion
   ========================================================================== */

.vt-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin-top: 48px; }
.vt-page-number { color: var(--vt-muted); font-size: 0.88rem; }
.vt-load-more-wrap { display: flex; justify-content: center; margin-top: 40px; }
.vt-load-more.is-loading { opacity: 0.6; pointer-events: none; }

.vt-error { max-width: 760px; padding-top: 110px; text-align: center; }
.vt-error-code { font: 800 clamp(7rem, 22vw, 13rem)/1 var(--vt-font-head); letter-spacing: -0.06em; }
.vt-error-title { margin: 16px 0 14px; font-size: clamp(2rem, 4.4vw, 3.2rem); }
.vt-error-text { color: var(--vt-muted); }
.vt-error .vt-btn { margin-top: 32px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
