/*
 * Coachy help site. Tokens are copied from the website's :root (www.coachy.net); the help site never links the
 * website's own CSS. Breakpoints: 960px (header menu), 768px (one article column, search icon), 1100px (third
 * article column), 640px / 1000px (topic card columns).
 */

@font-face {
    font-family: "CeraPROBold";
    src: url("https://assets.coachy.net/fonts/cera-pro/webFonts/CeraPROBold/font.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "CeraPROMedium";
    src: url("https://assets.coachy.net/fonts/cera-pro/webFonts/CeraPROMedium/font.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "CeraPROLight";
    src: url("https://assets.coachy.net/fonts/cera-pro/webFonts/CeraPROLight/font.woff2") format("woff2");
    font-display: swap;
}

:root {
    --brand: #5C4CC4;
    --brand-ink: #3F3196;
    --brand-soft: #C7C1E9;
    --tint: #EEECF8;
    --wash: #F7F6FC;
    --accent: #FFDA00;
    --line: #ECEAF4;
    --text: #121212;
    --muted: #5F5C74;
    --quiet: #8E8BA3;
    --bg: #FEFEFE;
    --link-hover: #8A7FDB;
    --note: #FFFBE0;

    --r-xl: 30px;
    --r-lg: 28px;
    --r-md: 18px;
    --r-sm: 12px;
    --r-pill: 99px;

    --font: "CeraPROMedium", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-bold: "CeraPROBold", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --page: 1200px;
    --gutter: 24px;
    --header-h: 68px;
    --shadow: 0 18px 50px -24px rgba(20, 10, 80, .45);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font: 16px/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
    /* Keeps the footer at the bottom on short pages. */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4 { font-family: var(--font-bold); font-weight: 700; line-height: 1.2; color: var(--text); }
b, strong { font-family: var(--font-bold); font-weight: 700; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--link-hover); }

img, svg { max-width: 100%; }
button, input { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.hero :focus-visible,
.page-band :focus-visible,
.site-footer :focus-visible { outline-color: var(--accent); }

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

.skip-link {
    position: absolute;
    left: 16px; top: -100px;
    z-index: 100;
    padding: 10px 18px;
    border-radius: var(--r-pill);
    background: var(--brand);
    color: #fff;
    font-family: var(--font-bold);
}
.skip-link:focus { top: 12px; color: #fff; outline-color: var(--accent); }

.site-main { display: block; flex: 1 0 auto; width: 100%; }

/* ---------- Buttons, badges, labels ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    border: 0;
    border-radius: var(--r-pill);
    font-family: var(--font-bold);
    font-size: 13px;
    letter-spacing: .06em;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
}
.btn-accent { background: var(--accent); color: var(--brand); }
.btn-accent:hover { background: #FFE233; color: var(--brand-ink); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-ink); color: #fff; }

.plan-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--r-pill);
    background: var(--accent);
    color: var(--brand);
    font-family: var(--font-bold);
    font-size: 11px;
    letter-spacing: .1em;
    line-height: 1.4;
    text-transform: uppercase;
    vertical-align: middle;
}

.label {
    margin: 0 0 6px;
    font-family: var(--font-bold);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

.cat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 42px; height: 42px;
    border-radius: var(--r-sm);
    background: var(--tint);
    color: var(--brand);
}
.cat-icon svg { display: block; }

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.site-header-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
    max-width: 1280px;
    min-height: var(--header-h);
    margin: 0 auto;
    padding: 10px var(--gutter);
}

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--brand); }
.brand:hover { color: var(--brand); }
.brand-logo { display: block; color: var(--brand); line-height: 0; }
.brand-logo svg { display: block; width: auto; height: 22px; }

.help-pill {
    padding: 4px 10px;
    border-radius: var(--r-pill);
    background: var(--tint);
    color: var(--brand);
    font-size: 11px;
    letter-spacing: .12em;
    line-height: 1.3;
    text-transform: uppercase;
}

.header-search { position: relative; flex: 1 1 auto; max-width: 380px; display: flex; }
.header-search-input {
    width: 100%;
    padding: 9px 44px 9px 18px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--wash);
    font-size: 14px;
    -webkit-appearance: none;
    appearance: none;
}
.header-search-input::placeholder { color: var(--muted); opacity: 1; }
.header-search-input:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px var(--tint); }
.header-search-submit {
    position: absolute;
    right: 4px; top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--brand);
    cursor: pointer;
}

/* Search suggestions under the header and hero search (site.js). */
.suggest {
    position: absolute;
    left: 0; right: 0;
    top: calc(100% + 8px);
    z-index: 70;
    max-height: min(420px, 70vh);
    margin: 0;
    padding: 6px;
    overflow: auto;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 40px -18px rgba(20, 10, 80, .35);
    text-align: left;
}
.suggest[hidden] { display: none; }
.suggest-item a { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 10px; color: var(--text); }
.suggest-item[aria-selected="true"] a, .suggest-item a:hover { background: var(--wash); color: var(--brand); }
.suggest-title { font-size: 14px; line-height: 1.35; }
.suggest-meta { color: var(--muted); font-size: 12px; }
.suggest-all { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.suggest-all .suggest-title { color: var(--brand); font-family: var(--font-bold); font-size: 13px; }

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--brand);
    cursor: pointer;
}

.site-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.nav-link {
    font-family: var(--font-bold);
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--brand);
    white-space: nowrap;
}

/* Language menu: the website's .langsel (globe, code, chevron; flags in the list). */
.langsel { position: relative; }
.langsel-bar { display: none; }
.langsel summary {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px 6px 9px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    font-family: var(--font-bold);
    font-size: 12px;
    letter-spacing: .5px;
    color: var(--muted);
    list-style: none;
    cursor: pointer;
}
.langsel summary::-webkit-details-marker { display: none; }
.langsel summary:hover { color: var(--brand); background: var(--wash); }
.langsel[open] summary { color: var(--brand); border-color: var(--brand); }
.langsel summary svg { display: block; }
.langsel summary .chev { display: flex; transition: transform .2s; }
.langsel[open] summary .chev { transform: rotate(180deg); }
.langsel-list {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 60;
    display: grid;
    gap: 2px;
    min-width: 180px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 40px -18px rgba(20, 10, 80, .35);
}
.langsel-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
}
.langsel-list a:hover { background: var(--wash); color: var(--brand); }
.langsel-list a[aria-current="true"] { background: var(--tint); color: var(--brand); }
.langsel-list .flag { flex: none; display: block; overflow: hidden; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); }

.nav-trial { padding: 10px 18px; font-size: 12px; }

/* ---------- Home hero ---------- */

.hero {
    position: relative;
    /* Clip only sideways (the play mark sticks out on small screens); vertically the search suggestions must be able
       to hang below the hero. */
    overflow-x: clip;
    background: var(--brand);
    color: #fff;
}

.hero-inner {
    position: relative;
    max-width: var(--page);
    margin: 0 auto;
    padding: 64px var(--gutter) 130px;
}

.hero-play {
    position: absolute;
    right: 70px;
    top: -14px;
    width: 230px;
    height: 316px;
    pointer-events: none;
}

.hero-eyebrow {
    position: relative;
    margin: 0;
    font-family: var(--font-bold);
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: .85;
}

.hero-title {
    position: relative;
    margin: 12px 0 28px;
    color: #fff;
    font-size: clamp(36px, 6vw, 56px);
    line-height: 1.05;
    letter-spacing: .01em;
    text-transform: uppercase;
}
.hero-accent { color: var(--accent); }

.hero-search {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    max-width: 580px;
    padding: 6px 6px 6px 24px;
    border-radius: var(--r-pill);
    background: #fff;
    box-shadow: 0 18px 50px -24px rgba(20, 10, 80, .6);
}
.hero-search-input {
    flex: 1;
    min-width: 0;
    padding: 12px 0;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 16px;
    -webkit-appearance: none;
    appearance: none;
}
.hero-search-input::placeholder { color: var(--muted); opacity: 1; }
.hero-search-input:focus { outline: none; }
.hero-search:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.hero-search-submit {
    flex: none;
    padding: 12px 22px;
    border: 0;
    border-radius: var(--r-pill);
    background: var(--tint);
    color: var(--brand);
    font-family: var(--font-bold);
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
}
.hero-search-submit:hover { background: var(--brand); color: #fff; }
.hero-search-submit:focus-visible { outline-color: var(--brand); }

/* ---------- Purple band (category, search) ---------- */

.page-band { background: var(--brand); color: #fff; }
.page-band-inner {
    max-width: var(--page);
    margin: 0 auto;
    padding: 28px var(--gutter) 96px;
}
.page-band .crumbs { color: rgba(255, 255, 255, .8); }
.page-band .crumbs a { color: #fff; }
.page-band .crumbs a:hover { color: var(--accent); }
.page-band .crumbs-sep { color: rgba(255, 255, 255, .6); }
.page-band .crumbs-current { color: #fff; }

.category-title, .page-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin: 18px 0 0;
    color: #fff;
    font-size: clamp(26px, 4vw, 38px);
    letter-spacing: .02em;
    text-transform: uppercase;
}
.category-title .cat-icon { background: rgba(255, 255, 255, .14); color: #fff; }
.count {
    padding: 3px 11px;
    border-radius: var(--r-pill);
    background: var(--accent);
    color: var(--brand);
    font-size: 13px;
    letter-spacing: .04em;
}

/* ---------- White sheet overlapping the purple band ---------- */

.sheet {
    position: relative;
    max-width: calc(var(--page) - 2 * var(--gutter));
    margin: -64px auto 0;
    padding: 36px 36px 64px;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    background: var(--bg);
}

/* ---------- Home topics ---------- */

.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.topic-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--wash);
}

.topic-title {
    margin: 14px 0 10px;
    font-size: 15px;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.topic-title a { color: var(--brand); }
.topic-title a:hover { color: var(--brand-ink); }

.topic-articles { flex: 1; margin: 0 0 12px; padding: 0; list-style: none; }
.topic-articles li { margin: 0; font-size: 14px; line-height: 1.4; }
/* Each article is a link row with a quiet document icon in front, so the list reads as links, not as text. */
.topic-articles a {
    display: flex;
    gap: 10px;
    margin: 0 -8px;
    padding: 6px 8px;
    border-radius: 10px;
    color: var(--text);
}
.topic-articles a::before {
    content: "";
    flex: none;
    width: 15px; height: 15px;
    margin-top: 2px;
    background: var(--brand-soft);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h4'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.topic-articles a:hover { background: #fff; color: var(--brand); }
.topic-articles a:hover::before { background: var(--brand); }
.topic-articles { margin-bottom: 14px; }

.topic-more { font-family: var(--font-bold); font-size: 13px; }

/* ---------- CTA ---------- */

.cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin: 32px 0 0;
    padding: 24px 30px;
    border-radius: 22px;
    background: var(--accent);
}
.cta-title {
    margin: 0;
    color: var(--brand);
    font-size: 20px;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.cta-text p { margin: 4px 0 0; color: var(--brand-ink); }

/* ---------- Breadcrumb ---------- */

.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    font-size: 13px;
    color: var(--muted);
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs-sep { color: var(--quiet); }
.crumbs-current { color: var(--text); }

/* ---------- Category article list ---------- */

.article-list { margin: 0; padding: 0; list-style: none; }
.article-item { padding: 18px 4px; border-bottom: 1px solid var(--line); }
.article-item:first-child { padding-top: 0; }
.article-link { font-family: var(--font-bold); font-size: 18px; line-height: 1.35; }
.article-item .plan-badge { margin-left: 8px; }
.article-item .summary { margin: 6px 0 0; max-width: 75ch; color: var(--muted); font-size: 15px; }

/* ---------- Article page ---------- */

.article-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 22px var(--gutter) 64px;
}

.article-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr) 220px;
    gap: 40px;
    margin-top: 22px;
    align-items: start;
}

.sidebar, .page-aside { position: sticky; top: calc(var(--header-h) + 20px); }

/* The article page sits on the soft wash; sidebar, article and the aside boxes are white cards on it, so the three
   columns read as panels instead of floating text. */
body.page-article { background: var(--wash); }
.sidebar, .article, .outline-box, .support-box {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: #fff;
}
.sidebar { padding: 18px 12px; }
.article { padding: 36px 40px 40px; }
.outline-box { padding: 18px; }
.sidebar { max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; }

.sidebar-toggle { display: none; }
.sidebar-title {
    margin: 0 12px 10px;
    font-family: var(--font-bold);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.sidebar-title a { color: var(--muted); }
.sidebar-title a:hover { color: var(--brand); }
.sidebar-list { margin: 0; padding: 0; list-style: none; }
.sidebar-list a {
    display: block;
    padding: 7px 12px;
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.4;
}
.sidebar-list a:hover { background: var(--wash); color: var(--brand); }
.sidebar-list a[aria-current="page"] { background: var(--tint); color: var(--brand); font-family: var(--font-bold); }

.article { min-width: 0; }
.article-title { margin: 0 0 10px; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15; }
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 13px;
}

.outline-box { margin-bottom: 18px; }
.outline { margin: 0; padding: 0 0 0 12px; list-style: none; border-left: 2px solid var(--line); }
.outline li { margin: 0; }
.outline a { display: block; padding: 4px 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.outline a:hover { color: var(--brand); }

.support-box {
    padding: 18px;
    font-size: 14px;
}
.support-box .label { color: var(--brand); font-size: 12px; }
.support-box p { margin: 0 0 8px; }
.support-box a { font-family: var(--font-bold); }

/* ---------- Article blocks ---------- */

.article-body > * { max-width: 72ch; }
.article-body > figure, .article-body > section.related { max-width: none; }
.article-body p { margin: 0 0 14px; }
.article-body h2 { margin: 34px 0 12px; font-size: 22px; }
.article-body h3 { margin: 24px 0 8px; font-size: 18px; }
.article-body ul:not([class]), .article-body ol:not([class]) { margin: 0 0 16px; padding-left: 1.4em; }
.article-body li { margin: 5px 0; }
.article-body ul:not([class]) li::marker { color: var(--brand); }
.article-body code {
    padding: 1px 6px;
    border-radius: 6px;
    background: var(--tint);
    color: var(--brand-ink);
    font: .9em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.article-body pre { overflow-x: auto; padding: 14px 18px; border-radius: var(--r-sm); background: var(--wash); }
.article-body pre code { padding: 0; background: none; }
.article-body table { display: block; overflow-x: auto; max-width: 100%; margin: 0 0 18px; border-collapse: collapse; font-size: 14px; }
.article-body th, .article-body td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-body th { font-family: var(--font-bold); background: var(--wash); }
.article-body blockquote { margin: 0 0 16px; padding: 4px 0 4px 16px; border-left: 3px solid var(--brand-soft); color: var(--muted); }
.article-body hr { margin: 28px 0; border: 0; border-top: 1px solid var(--line); }

/* UI labels: the bold app terms. */
.ui { font-family: var(--font-bold); color: var(--brand-ink); }

/* in_short */
.in-short {
    margin: 0 0 18px;
    padding: 16px 20px;
    border-radius: var(--r-md);
    background: var(--tint);
}
.in-short .label { margin-bottom: 4px; color: var(--brand); }
.in-short p:last-child { margin: 0; }

/* where */
.article-body .where {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0 0 20px;
    font-size: 13px;
}
.where .label { margin: 0 4px 0 0; }
.where .ui {
    padding: 3px 11px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: #fff;
    line-height: 1.4;
}
.where .sep { color: var(--quiet); }

/* steps */
ol.steps { margin: 0 0 18px; padding: 0; list-style: none; counter-reset: step; }
ol.steps > li {
    position: relative;
    margin: 0;
    padding: 6px 0 8px 44px;
    counter-increment: step;
}
ol.steps > li::before {
    content: counter(step);
    position: absolute;
    left: 0; top: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-family: var(--font-bold);
    font-size: 13px;
    line-height: 1;
}

/* screenshot */
.article-body figure { margin: 22px 0; }
/* The renderer sizes the preview (CSS px, at most 440 high); here it only shrinks to the column. */
.article-body figure img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: 0 10px 30px -18px rgba(20, 10, 80, .35);
}
.shot-zoom {
    display: inline-block;
    max-width: 100%;
    border-radius: var(--r-md);
    cursor: zoom-in;
}
.shot-zoom:hover img { box-shadow: 0 14px 34px -16px rgba(20, 10, 80, .5); }
.shot-zoom:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

/* lightbox (site.js): the screenshot at full size, at most the window */
.lightbox {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    padding: 24px;
    border: 0;
    background: transparent;
    cursor: zoom-out;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(15, 10, 40, .82); }
.lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}
.lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #1a1530;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.lightbox-close:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* callout */
.callout {
    position: relative;
    margin: 0 0 18px;
    padding: 14px 18px;
    border-left: 4px solid var(--brand);
    border-radius: var(--r-sm);
    background: var(--tint);
}
.callout p:last-child { margin-bottom: 0; }
.callout .callout-icon { position: absolute; left: 16px; top: 16px; line-height: 0; }
.callout.tip, .callout.note { padding-left: 50px; }
.callout.tip .callout-icon { color: var(--brand); }
.callout.note { border-left-color: var(--accent); background: var(--note); }
.callout.note .callout-icon { color: #7A6100; }
.callout.plan { border-left-color: var(--brand-soft); background: var(--wash); }
.callout.plan .plan-badge { margin: 0 0 8px; }

/* details: accordion with a plus that turns into a minus */
.details {
    margin: 0 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: #fff;
}
.details > summary {
    position: relative;
    padding: 14px 52px 14px 18px;
    font-family: var(--font-bold);
    list-style: none;
    cursor: pointer;
}
.details > summary::-webkit-details-marker { display: none; }
.details > summary::before,
.details > summary::after {
    content: "";
    position: absolute;
    right: 20px; top: 50%;
    width: 14px; height: 2px;
    margin-top: -1px;
    border-radius: 2px;
    background: var(--brand);
    transition: transform .2s;
}
.details > summary::after { transform: rotate(90deg); }
.details[open] > summary::after { transform: rotate(0deg); }
.details > summary:hover { color: var(--brand); }
.details > summary:focus-visible { outline-offset: -3px; border-radius: var(--r-md); }
.details > :not(summary) { margin-left: 18px; margin-right: 18px; }
/* Body lists reset their margin (.article-body ul:not([class])); inside the box they keep the box's inset. */
.article-body .details > ul:not([class]), .article-body .details > ol:not([class]) { margin-left: 18px; margin-right: 18px; }
.details > :last-child { margin-bottom: 16px; }

/* related */
section.related { margin-top: 34px; }
.article-body .related-title { margin: 0 0 12px; }
ul.related {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
ul.related li { margin: 0; }
ul.related a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: 100%;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    font-family: var(--font-bold);
    font-size: 14px;
    line-height: 1.35;
}
ul.related a::after { content: "→"; flex: none; }
ul.related a:hover { border-color: var(--brand-soft); background: var(--wash); color: var(--brand); }

/* ---------- Search page ---------- */

.search-input {
    width: 100%;
    padding: 16px 24px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--wash);
    font-size: 18px;
    -webkit-appearance: none;
    appearance: none;
}
.search-input::placeholder { color: var(--muted); opacity: 1; }
.search-input:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px var(--tint); }

.result-list { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.result-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: #fff;
}
.result-card:hover { border-color: var(--brand-soft); background: var(--wash); }
.result-title { font-family: var(--font-bold); font-size: 17px; line-height: 1.35; }
/* The whole card is clickable through the title link. */
.result-title::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-md); }
.result-category {
    order: -1;
    font-family: var(--font-bold);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}
.result-card .summary { color: var(--muted); font-size: 14px; }
.result-empty { padding: 18px 4px; color: var(--muted); }

/* ---------- Contact page ---------- */

.contact-panel { max-width: 640px; }
.contact-intro { margin: 0 0 24px; color: var(--muted); font-size: 16px; }
.contact-form { display: grid; gap: 16px; }
.contact-form[hidden] { display: none; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--font-bold); font-size: 14px; }
.field input, .field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--wash);
    color: var(--text);
    font: inherit;
    font-size: 15px;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px var(--tint); }
.field .is-invalid { border-color: #C0392B; background: #FFF6F5; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-status { min-height: 1.4em; margin: 0; font-size: 14px; }
.contact-status.is-error { color: #A93226; }
.contact-submit { justify-self: start; padding: 13px 26px; }
.contact-submit:disabled { opacity: .7; cursor: progress; }
.contact-done { padding: 24px; border-radius: var(--r-md); background: var(--tint); }
.contact-done:focus { outline: none; }
.contact-done-title { margin: 0 0 6px; color: var(--brand); font-family: var(--font-bold); font-size: 18px; }
.contact-done p:last-child { margin: 0; }

/* ---------- Language chooser ---------- */

body.page-chooser { min-height: 100vh; background: var(--brand); color: #fff; }
.chooser {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 34px;
    min-height: 100vh;
    padding: 40px var(--gutter);
}
.chooser-logo { display: block; color: #fff; line-height: 0; }
.chooser-logo svg { width: 240px; height: auto; }
.chooser-card {
    width: 100%;
    max-width: 460px;
    padding: 36px 32px;
    border-radius: var(--r-xl);
    background: #fff;
    color: var(--text);
    text-align: center;
    box-shadow: var(--shadow);
}
.chooser-title { margin: 0 0 24px; font-size: 22px; letter-spacing: .03em; text-transform: uppercase; color: var(--brand); }
.languages { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; padding: 0; list-style: none; }
.languages .btn { min-width: 150px; padding: 13px 26px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--brand); color: #fff; }
.site-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 28px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 26px var(--gutter);
    font-size: 13px;
}
.footer-copy { margin: 0; font-family: var(--font-bold); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }

.footer-links a { color: #fff; opacity: .85; }
.footer-links a:hover { color: var(--accent); opacity: 1; }

/* ---------- Responsive ---------- */

@media (max-width: 1099px) {
    .site-header-inner { gap: 16px; }
    .site-menu { gap: 14px; }
    .header-search { min-width: 170px; }

    /* Two columns: sidebar left, article right with the outline and support box below it. */
    .article-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 20px 36px; }
    .page-aside {
        position: static;
        grid-column: 2;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 18px;
        align-items: start;
    }
    .outline-box { margin: 0; }
}

@media (max-width: 999px) {
    .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-play { right: 24px; width: 180px; height: 248px; opacity: .7; }
}

/* Under 960px the full header row (logo, search, website, language, login, trial) no longer fits, in German
   least of all, so the menu items move behind the menu button. They only collapse when site.js runs (the `js`
   class on <html>); without JS the menu wraps into a full-width row below the logo. */
@media (max-width: 959px) {
    .site-header-inner { flex-wrap: wrap; gap: 10px; }
    /* The logo pushes everything else to the right, with or without the header search (home and search page have none). */
    .brand { margin-right: auto; }
    .header-search { flex: 1 1 auto; min-width: 0; max-width: 380px; }

    /* The toggle buttons only show when they work. */
    .js .menu-toggle { display: inline-flex; }
    .brand + .menu-toggle { margin-left: auto; }
    .menu-toggle[aria-expanded="true"] { background: var(--tint); }

    /* The language menu moves into the bar; the menu keeps website, login and trial. */
    .langsel-bar { display: block; flex: none; }
    .langsel-menu { display: none; }

    /* The menu opens as a panel under the header: the website as a link row, login and trial as two buttons. */
    .site-menu {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin: 0;
        padding: 8px var(--gutter) 18px;
        border-bottom: 1px solid var(--line);
        background: #fff;
        box-shadow: 0 24px 40px -28px rgba(20, 10, 80, .45);
    }
    .site-menu > .nav-website {
        grid-column: 1 / -1;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 4px;
        border-bottom: 1px solid var(--line);
        font-size: 13px;
    }
    .site-menu > .nav-login,
    .site-menu > .nav-trial {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 48px;
        padding: 0 12px;
        border-radius: var(--r-pill);
        font-size: 12px;
        line-height: 1.2;
        text-align: center;
    }
    /* Same height and the same 1.5px border on both buttons, whatever line height their classes bring. */
    .site-menu > .nav-login { border: 1.5px solid var(--brand); }
    .site-menu > .nav-trial { border: 1.5px solid var(--accent); }
    .site-menu > .nav-login:hover { background: var(--wash); }
    .site-menu > .nav-trial { margin: 0; }
    .js .site-menu:not(.is-open) { display: none; }
    /* Without JS the panel cannot open, so it stays in the flow as a row under the bar. */
    html:not(.js) .site-menu { position: static; flex: 1 1 100%; box-shadow: none; padding-left: 0; padding-right: 0; }
}

/* Under 768px the article's category list collapses behind its toggle button, again only when site.js runs. */
@media (max-width: 767px) {
    :root { --gutter: 16px; --header-h: 62px; }

    /* Header: logo, search icon and menu button. */
    .brand-logo svg { height: 18px; }
    .site-header-inner { gap: 8px; }
    .langsel-bar summary { height: 42px; padding: 0 12px; }
    .langsel-bar summary .chev { display: none; }
    .help-pill { font-size: 10px; padding: 3px 8px; }
    .header-search { flex: none; max-width: none; }
    .header-search-input { display: none; }
    .header-search-submit {
        position: static;
        transform: none;
        width: 42px; height: 42px;
        border: 1px solid var(--line);
        background: #fff;
    }

    /* Home and bands */
    .hero-inner { padding: 40px var(--gutter) 104px; }
    .hero-play { right: -40px; top: 10px; width: 150px; height: 206px; opacity: .45; }
    .hero-search { padding-left: 18px; }
    .hero-search-submit { padding: 11px 16px; }
    .page-band-inner { padding: 20px var(--gutter) 84px; }
    .sheet { max-width: none; margin: -56px 0 0; padding: 24px var(--gutter) 48px; border-radius: 22px 22px 0 0; }
    .cta { padding: 22px; }

    /* Article: category list as a collapsible block above, outline and support below. */
    .article-page { padding-top: 16px; }
    .article-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 16px; }
    .sidebar { position: static; max-height: none; overflow: visible; padding: 0; }
    .article { padding: 24px 20px 28px; }
    .js .sidebar-toggle {
        position: relative;
        display: block;
        width: 100%;
        padding: 14px 48px 14px 18px;
        border: 0;
        border-radius: var(--r-md);
        background: transparent;
        color: var(--brand);
        font-family: var(--font-bold);
        font-size: 12px;
        letter-spacing: .1em;
        text-align: left;
        text-transform: uppercase;
        cursor: pointer;
    }
    .sidebar-toggle::after {
        content: "";
        position: absolute;
        right: 20px; top: 50%;
        width: 8px; height: 8px;
        margin-top: -6px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        transition: transform .2s;
    }
    .sidebar-toggle[aria-expanded="true"]::after { margin-top: -2px; transform: rotate(-135deg); }
    .sidebar-title { padding: 14px 18px 0; }
    .sidebar-list { padding: 0 8px 10px; }
    .js .sidebar-title { display: none; }
    .js .sidebar-list:not(.is-open) { display: none; }
    .page-aside { grid-column: auto; grid-template-columns: minmax(0, 1fr); }

    ul.related { grid-template-columns: minmax(0, 1fr); }
    .callout.tip, .callout.note { padding-left: 46px; }

    /* Footer in two rows: the links on one line, the copyright under them. */
    .site-footer-inner { flex-direction: column-reverse; align-items: flex-start; gap: 10px; padding: 20px var(--gutter); }
    .footer-links { gap: 6px 14px; }
    .footer-copy { opacity: .85; font-family: var(--font); }
}

@media (max-width: 639px) {
    .topic-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
