/* ==========================================================================
   hepta_extensions — extensions.hepta.es
   Minimal, light, flat: no gradients, no shadows, 1px borders, lots of white.
   Native CSS (nesting + custom properties), no build step.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
    color-scheme: light;

    --ink: #16212b;            /* main text */
    --muted: #5b6875;          /* secondary text */
    --faint: #6f7b88;          /* tertiary text, meta (AA on white) */
    --line: #e4e8ec;           /* borders */
    --line-strong: #c9d0d7;
    --bg: #ffffff;
    --bg-soft: #f6f7f8;        /* flat light areas */
    --navy: #1b3254;           /* logo navy: primary buttons */
    --teal: #1f7a82;           /* logo teal, darkened for AA on white: links */
    --teal-logo: #268e97;
    --focus: #268e97;

    --font: "Catamaran", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --radius: 6px;
    --container: 70rem;
    --gap: clamp(1rem, 2.5vw, 2rem);
    --header-h: 4.5rem;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    overflow-wrap: break-word;
}

img, svg, video { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4vw, 2.6rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.75rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1.05rem; }

p, ul, ol, dl, table, pre, blockquote, figure { margin: 0 0 1.1em; }

a {
    color: var(--teal);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .2em;
    &:hover { color: var(--ink); }
}

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

code, kbd, pre { font-family: var(--font-mono); font-size: .9em; }
code { background: var(--bg-soft); padding: .1em .35em; border-radius: 4px; }
pre { background: var(--bg-soft); border: 1px solid var(--line); padding: 1rem 1.25rem; border-radius: var(--radius); overflow: auto; }
pre code { background: none; padding: 0; }

blockquote { border-left: 2px solid var(--line-strong); padding-left: 1rem; color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: .6rem .75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-weight: 600; }

.container { width: min(100% - 2 * var(--gap), var(--container)); margin-inline: auto; }

.visually-hidden, .element-invisible {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.skip-link {
    position: absolute; left: 1rem; top: -4rem; z-index: 100;
    background: var(--ink); color: #fff; padding: .5rem 1rem; border-radius: var(--radius);
    &:focus { top: 1rem; color: #fff; }
}

/* ---------- 3. Buttons, labels ---------- */
.btn,
.uk-button,
button.btn,
input[type="submit"],
.com-contact__form .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    min-height: 2.6rem; padding: .5rem 1.1rem;
    border: 1px solid var(--navy); border-radius: var(--radius);
    font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
    background: var(--navy); color: #fff;
    transition: background-color .15s, color .15s, border-color .15s;
    &:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
}
.btn--ghost, .btn--ghost-light, .btn--light, .btn-secondary {
    background: transparent; color: var(--ink); border-color: var(--line-strong);
    &:hover { background: var(--bg-soft); color: var(--ink); border-color: var(--ink); }
}
.btn--sm { min-height: 2.2rem; padding: .3rem .85rem; font-size: .95rem; }
.btn-group, .btn-row { display: flex; flex-wrap: wrap; gap: .6rem; }

.pill {
    display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    color: var(--faint);
}
.pill + .pill::before { content: "· "; }
.pill--soon { color: #8a5a00; }

.badges { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.badge { display: inline-block; padding: 0 .5rem; border: 1px solid var(--line); border-radius: 4px; font-size: .8rem; color: var(--muted); line-height: 1.6; }

/* ---------- 4. Header & navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.site-brand { display: inline-flex; flex: none; }
.site-brand img { display: block; width: auto; height: 48px; }
.site-footer__brand img { width: auto; height: 48px; }

.site-nav { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav .mod-menu { display: flex; align-items: center; gap: .25rem; }
.site-nav li { position: relative; }
.site-nav .mod-menu a {
    display: block; padding: .45rem .7rem; color: var(--muted); font-weight: 500; text-decoration: none;
    &:hover { color: var(--ink); }
}
.site-nav .current > a, .site-nav .active > a, .site-nav a[aria-current] { color: var(--ink); font-weight: 600; }
.site-nav .mod-menu > li.parent { display: flex; align-items: center; }
.site-nav .mod-menu__toggle-sub {
    display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; margin-left: -.4rem;
    border: 0; background: transparent; color: var(--faint); cursor: pointer;
    .icon-chevron-down { display: none; }
    &::before { content: ""; width: .4rem; height: .4rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
}
.site-nav .mod-menu__sub {
    position: absolute; top: 100%; left: 0; min-width: 14rem; padding: .35rem;
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
    opacity: 0; visibility: hidden; transition: opacity .12s;
}
.site-nav li:hover > .mod-menu__sub, .site-nav li:focus-within > .mod-menu__sub,
.site-nav .mod-menu__toggle-sub[aria-expanded="true"] + .mod-menu__sub { opacity: 1; visibility: visible; }
.site-nav a.site-nav__cta { margin-left: .5rem; padding: .45rem 1rem; min-height: 2.4rem; color: #fff; }

.nav-toggle {
    display: none; margin-left: auto; width: 2.6rem; height: 2.6rem; border: 1px solid var(--line);
    border-radius: var(--radius); background: var(--bg); cursor: pointer; position: relative;
}
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
    position: absolute; left: 50%; width: 1.1rem; height: 1.5px; margin-left: -.55rem;
    background: var(--ink); transition: transform .2s, opacity .2s; content: "";
}
.nav-toggle__bar { top: 50%; }
.nav-toggle__bar::before { top: -5px; left: 0; margin: 0; }
.nav-toggle__bar::after { top: 5px; left: 0; margin: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 960px) {
    .nav-toggle { display: inline-block; }
    .site-nav {
        position: absolute; inset: var(--header-h) 0 auto 0; display: none;
        flex-direction: column; align-items: stretch; gap: .5rem; padding: 1rem var(--gap) 1.5rem;
        background: var(--bg); border-bottom: 1px solid var(--line);
        max-height: calc(100dvh - var(--header-h)); overflow: auto;
    }
    .site-nav.is-open { display: flex; }
    .site-nav .mod-menu { flex-direction: column; align-items: stretch; }
    .site-nav .mod-menu > li.parent { flex-wrap: wrap; }
    .site-nav .mod-menu__toggle-sub { display: none; }
    .site-nav .mod-menu__sub { position: static; opacity: 1; visibility: visible; border: 0; padding: 0 0 0 1rem; min-width: 0; flex-basis: 100%; }
    .site-nav a.site-nav__cta { margin: .5rem 0 0; }
}

/* ---------- 5. Layout ---------- */
.site-main { padding-block: clamp(2rem, 5vw, 3.5rem); outline: none; }
.site-main__grid { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
.has-sidebar .site-main__grid { grid-template-columns: minmax(0, 1fr) 17rem; }
@media (max-width: 960px) { .has-sidebar .site-main__grid { grid-template-columns: 1fr; } }
.site-sidebar .moduletable { padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.site-sidebar h3 { font-size: 1rem; }

.mod-breadcrumbs, .breadcrumb {
    display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 2rem; padding: 0; list-style: none;
    font-size: .9rem; color: var(--faint);
    li + li::before { content: "/"; margin-right: .35rem; color: var(--line-strong); }
    a { color: var(--faint); text-decoration: none; &:hover { color: var(--ink); } }
    .mod-breadcrumbs__here, .float-start { display: none; }
}

.section-gap { margin-top: clamp(3rem, 7vw, 5rem); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: .2rem 0 0; color: var(--faint); font-size: .95rem; }

/* ---------- 6. Hero (home) ---------- */
.hero { padding: clamp(1rem, 4vw, 3rem) 0 clamp(2.5rem, 6vw, 4rem); margin-bottom: clamp(2rem, 5vw, 3rem); border-bottom: 1px solid var(--line); }
.hero__inner { max-width: 46rem; }
.hero__eyebrow { display: block; margin-bottom: 1rem; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.25rem); max-width: 18ch; }
.hero p { font-size: clamp(1.1rem, 2vw, 1.25rem); color: var(--muted); max-width: 56ch; }
.hero .btn-row { margin-top: 1.75rem; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 2.5rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }
.hero__stats strong { display: block; font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.hero__stats span { font-size: .9rem; color: var(--faint); }

/* ---------- 7. Catalogue ---------- */
.ext-filters { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.ext-filters button {
    padding: .35rem .8rem; border: 1px solid transparent; border-radius: var(--radius);
    background: transparent; color: var(--muted); font: inherit; font-weight: 500; cursor: pointer;
    &:hover { color: var(--ink); }
    &[aria-pressed="true"] { border-color: var(--line-strong); color: var(--ink); font-weight: 600; }
}
.ext-filters .count { margin-left: .35rem; color: var(--faint); font-size: .85rem; font-weight: 500; }

.ext-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
    margin: 0; padding: 0; list-style: none;
    border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.ext-card {
    position: relative; display: flex; flex-direction: column; gap: .6rem;
    padding: 1.5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
    background: var(--bg); transition: background-color .15s;
    &:hover, &:focus-within { background: var(--bg-soft); }
    &[hidden] { display: none; }
}
.ext-card__top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.ext-icon {
    flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
    color: var(--navy); font-weight: 700; font-size: .95rem; letter-spacing: .02em; overflow: hidden;
}
.ext-icon img { width: 100%; height: 100%; object-fit: contain; }
.ext-card h3 { margin: .25rem 0 0; font-size: 1.15rem; }
.ext-card h3 a { color: var(--ink); text-decoration: none; }
.ext-card h3 a::after { content: ""; position: absolute; inset: 0; }   /* whole card clickable */
.ext-card__tagline { margin: 0; color: var(--muted); flex: 1; font-size: 1rem; }
.ext-card__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .4rem; font-size: .88rem; color: var(--faint); }
.ext-card__meta strong { color: var(--ink); font-weight: 600; }
.ext-card__price { color: var(--muted); }
.ext-card .badges { position: relative; z-index: 1; }
.ext-card--legacy .ext-icon { color: var(--faint); }
.ext-card--legacy h3 a { color: var(--muted); }

.ext-empty { padding: 2rem; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }

/* ---------- 8. Releases, custom band ---------- */
.release-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.release-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.release-list a { font-weight: 600; color: var(--ink); text-decoration: none; &:hover { color: var(--teal); } }
.release-list .release-version { font-family: var(--font-mono); font-size: .85rem; color: var(--muted); }
.release-list time { margin-left: auto; color: var(--faint); font-size: .9rem; }

.band {
    display: grid; gap: 2rem; grid-template-columns: 1.3fr 1fr; align-items: start;
    margin: clamp(3rem, 7vw, 5rem) 0 0; padding: clamp(1.75rem, 4vw, 2.5rem);
    background: var(--bg-soft); border-radius: var(--radius);
    h2 { margin-bottom: .6rem; }
    p { color: var(--muted); }
    p:last-child { margin-bottom: 0; }
}
@media (max-width: 800px) { .band { grid-template-columns: 1fr; } }
.band__list { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; color: var(--muted); }
.band__list li { padding-left: 1.1rem; position: relative; }
.band__list li::before { content: "–"; position: absolute; left: 0; color: var(--teal-logo); }
.mainbottom .moduletable { margin: 0; }

/* ---------- 9. Product sheet ---------- */
.ext-sheet__hero { display: grid; gap: 1.5rem; grid-template-columns: auto 1fr; align-items: start; padding-bottom: 2rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.ext-sheet__hero .ext-icon { width: 4.25rem; height: 4.25rem; font-size: 1.35rem; }
.ext-sheet__hero h1 { margin: .3rem 0 .4rem; }
.ext-sheet__tagline { font-size: 1.2rem; color: var(--muted); margin-bottom: 1rem; max-width: 58ch; }
.ext-sheet__version { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 1rem 0 1.25rem; color: var(--faint); font-size: .95rem; }
.ext-sheet__version strong { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) { .ext-sheet__hero { grid-template-columns: 1fr; } }

.ext-sheet__body { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1fr) 16rem; align-items: start; }
@media (max-width: 900px) { .ext-sheet__body { grid-template-columns: 1fr; } }
.ext-sheet__content { max-width: 44rem; }
.ext-sheet__content > :first-child { margin-top: 0; }
.ext-sheet__content img { border-radius: var(--radius); }
.ext-features, .ext-extra { margin-bottom: 2.25rem; }
.ext-features h2, .ext-extra h2, .ext-sheet__content h2 { font-size: 1.3rem; }
.ext-features ul { list-style: none; padding-left: 0; }
.ext-features li { margin-bottom: .3rem; }

.ext-facts {
    position: sticky; top: calc(var(--header-h) + 1.5rem); font-size: .95rem;
    h2 { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: .75rem; }
    dl { display: grid; grid-template-columns: auto 1fr; margin: 0 0 1.25rem; border-top: 1px solid var(--line); }
    dt, dd { padding: .5rem 0; border-bottom: 1px solid var(--line); }
    dt { color: var(--faint); }
    dd { margin: 0; text-align: right; font-weight: 600; }
    .btn { width: 100%; margin-top: .5rem; }
    .release-list li { padding: .45rem 0; font-size: .9rem; }
}
.ext-facts__sub { margin-top: 2rem; }

/* ---------- 10. Articles, blog ---------- */
.com-content-article, .item-page { max-width: 46rem; }
.ext-sheet.com-content-article, .ext-sheet.item-page { max-width: none; }
.page-header h1, .page-header h2, .com-content-article > h1 { margin-bottom: .35em; }
.article-info, .com-content-article__info {
    display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: 0 0 1.25rem; color: var(--faint); font-size: .9rem;
    dt { display: none; } dd { margin: 0; }
}

.blog-items, .com-content-category-blog__items {
    display: grid; gap: 2.5rem clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}
.blog-item, .com-content-category-blog__item {
    display: flex; flex-direction: column;
    h2 { font-size: 1.2rem; margin-top: .25rem; } h2 a { color: var(--ink); text-decoration: none; &:hover { color: var(--teal); } }
    .item-image img { border-radius: var(--radius); margin-bottom: 1rem; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
    .readmore { margin-top: auto; }
    .readmore a { display: inline; padding: 0; border: 0; background: none; color: var(--teal); font-weight: 600; text-decoration: underline; text-underline-offset: .2em;
        &:hover { color: var(--ink); } }
}
.items-leading .blog-item { grid-column: 1 / -1; }

.pagination, .com-content-category-blog__navigation .pagination {
    display: flex; flex-wrap: wrap; gap: .25rem; margin: 2.5rem 0 0; padding: 0; list-style: none;
    .page-link { display: inline-flex; min-width: 2.4rem; min-height: 2.4rem; align-items: center; justify-content: center; padding: 0 .7rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
    .active .page-link { background: var(--ink); color: #fff; border-color: var(--ink); }
    .disabled .page-link { color: var(--line-strong); }
}
.counter, .com-content-category-blog__counter { color: var(--faint); font-size: .9rem; }

.category-desc, .com-content-category__description { color: var(--muted); max-width: 60ch; margin-bottom: 1.5rem; }

.podcast-player { margin: 0 0 1.1rem; }
.podcast-player audio { width: 100%; height: 2.5rem; }
.podcast-player figcaption { margin-top: .3rem; font-size: .88rem; }

/* ---------- 11. Forms & alerts ---------- */
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="search"], input[type="tel"], select, textarea, .form-control, .form-select {
    width: 100%; min-height: 2.6rem; padding: .5rem .75rem; border: 1px solid var(--line-strong); border-radius: var(--radius);
    background: var(--bg); color: var(--ink); font: inherit;
    &:focus { border-color: var(--ink); outline: none; }
}
textarea { min-height: 9rem; }
label, .form-label, .control-label { display: block; margin-bottom: .3rem; font-weight: 600; font-size: .95rem; }
.control-group, .mb-3 { margin-bottom: 1.1rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
legend { font-weight: 700; font-size: 1.1rem; margin-bottom: .75rem; }
.star { color: #b42318; }
input[type="checkbox"] { width: 1.05rem; height: 1.05rem; accent-color: var(--navy); }

joomla-alert, .alert {
    display: block; padding: .9rem 1.1rem; margin-bottom: 1.25rem; border-radius: var(--radius);
    border: 1px solid var(--line); background: var(--bg-soft);
}
joomla-alert[type="success"], .alert-success { border-color: #b7dfc7; background: #f2faf5; }
joomla-alert[type="warning"], .alert-warning { border-color: #ecd9a9; background: #fdf9ee; }
joomla-alert[type="danger"], joomla-alert[type="error"], .alert-danger, .alert-error { border-color: #efc2bd; background: #fdf4f3; }

/* Support page */
.support-page__head p { max-width: 58ch; color: var(--muted); font-size: 1.1rem; }
.support-page__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1fr) 17rem; align-items: start; margin-top: 2rem; }
@media (max-width: 900px) { .support-page__grid { grid-template-columns: 1fr; } }
.support-page__form { max-width: 40rem; }
.support-page__form legend { display: none; }
.support-page__help { padding-top: .25rem; font-size: .97rem; }
.support-page__help h2 { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.support-page__help ul { padding-left: 1.1rem; }
.support-page__note { color: var(--faint); font-size: .9rem; margin: 0; }
.com-contact__form .form-check, .com-contact__form .checkbox { display: flex; gap: .5rem; align-items: flex-start; }

/* ---------- 12. Footer ---------- */
.site-bottom { padding-block: clamp(2rem, 5vw, 3rem); border-top: 1px solid var(--line); }

.site-footer { margin-top: clamp(2rem, 5vw, 4rem); padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.5rem; border-top: 1px solid var(--line); background: var(--bg); font-size: .95rem; color: var(--muted); }
.site-footer a { color: var(--muted); text-decoration: none; &:hover { color: var(--ink); text-decoration: underline; } }
.site-footer__grid { display: grid; gap: 2rem; grid-template-columns: 1.5fr 1fr 1fr 1fr; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
.site-footer__brand p { max-width: 30ch; margin-top: .75rem; }
.site-footer h3 { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .88rem; color: var(--faint); }
.site-footer__legal p { margin: 0; }
.site-footer__legal ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* ---------- 13. Legacy content helpers (UIkit classes left in old articles) ---------- */
.uk-text-center { text-align: center; }
.uk-list { list-style: none; padding: 0; }
.uk-flex { display: flex; flex-wrap: wrap; gap: 1rem; }
.uk-flex-center { justify-content: center; }
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.card { padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- 14. Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
    .site-header, .site-footer, .site-bottom, .ext-filters, .nav-toggle { display: none !important; }
}

/* ---------- 15. List pages (downloads, documentation) ---------- */
.list-page__head p { color: var(--muted); font-size: 1.1rem; }
.row-list { margin: 2rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.row-list__item { display: flex; align-items: center; justify-content: space-between; gap: .75rem 2rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.row-list h2 { margin: 0; font-size: 1.15rem; }
.row-list h2 a { color: var(--ink); text-decoration: none; &:hover { color: var(--teal); } }
.row-list__text { max-width: 60ch; margin-top: .35rem; color: var(--muted); p { margin: 0; } }
.row-list__meta { margin: .35rem 0 0; color: var(--faint); font-size: .92rem; strong { color: var(--ink); font-weight: 600; } }
.row-list .btn { flex: none; }
@media (max-width: 640px) { .row-list__item { flex-direction: column; align-items: flex-start; } }

/* ---------- 16. Bootstrap behaviours used by core and ARS (Bootstrap CSS is not loaded) ---------- */
.collapse:not(.show) { display: none; }
.modal { position: fixed; inset: 0; z-index: 1055; display: none; overflow: auto; padding: 1rem; }
.modal-dialog { max-width: 50rem; margin: 2rem auto; pointer-events: none; }
.modal-content { pointer-events: auto; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.modal-title { margin: 0; }
.modal-body { height: 70vh; iframe { display: block; width: 100%; height: 100%; border: 0; } }
.modal-backdrop { position: fixed; inset: 0; z-index: 1050; background: var(--ink); opacity: .5; }
.btn-close { width: 2rem; height: 2rem; border: 0; background: none; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer;
    &::before { content: "\00d7"; } &:hover { color: var(--ink); } }

.ext-guide { margin-bottom: 2.25rem; }
.ext-guide h2 { font-size: 1.3rem; }

/* ==========================================================================
   17. Typography layer (2026-12-04)
   Same minimal design; only type: bigger, tighter display headings, light
   weights for intros and figures, spaced small caps for labels, mono for
   version numbers. Remove this section to go back.
   ========================================================================== */
:root { --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace; }

p, li { text-wrap: pretty; }

/* Display headings */
h1, h2 { font-weight: 800; letter-spacing: -.03em; line-height: 1.04; }
h1 { font-size: clamp(2.3rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
h3 { letter-spacing: -.01em; }

.hero h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); line-height: .98; letter-spacing: -.04em; max-width: 13ch; }
.hero p { font-weight: 300; font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.5; color: var(--ink); }
.ext-sheet__hero h1 { font-size: clamp(2.3rem, 5.5vw, 3.6rem); line-height: 1; }
.ext-sheet__tagline, .list-page__head p, .support-page__head p { font-weight: 300; font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--ink); }

/* Labels: spaced small caps */
.hero__eyebrow, .pill, .ext-facts h2, .support-page__help h2, .site-footer h3, .hero__stats span {
    font-variant-caps: all-small-caps; text-transform: none; letter-spacing: .14em; font-weight: 600; font-size: .95rem;
}
.hero__eyebrow { font-size: 1.05rem; }

/* Figures: light and large */
.hero__stats { gap: 3rem; }
.hero__stats strong { font-weight: 300; font-size: clamp(2.2rem, 4vw, 2.9rem); letter-spacing: -.03em; font-variant-numeric: tabular-nums lining-nums; }

/* Product names */
.ext-card h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.release-list a, .row-list h2 { font-weight: 700; letter-spacing: -.01em; }

/* Version numbers in mono */
.release-list .release-version, .ext-card__meta strong, .ext-sheet__version strong, .row-list__meta strong {
    font-family: var(--mono); font-size: .88em; font-weight: 500; letter-spacing: 0;
}

/* Navigation */
.site-nav .mod-menu a { letter-spacing: .01em; }
@media (max-width: 640px) {
    .hero__stats { gap: 1.5rem; flex-wrap: nowrap; }
    .hero__stats strong { font-size: 1.9rem; }
    .hero__stats span { font-size: .8rem; letter-spacing: .1em; }
}
