/*
 * SafeSeal's own styles. The look comes from the Zavanto design system: tokens in zavanto/css/tokens.css and the
 * zv- components in zavanto/css/components.css (both copied from Zavanto/Design, see design/zavanto/README.md).
 * This file adds the layout of the SafeSeal mockup (the ss- classes) and SafeSeal's blue accent. Token names only,
 * apart from the accent below. No external fonts or CDNs: the CSP only allows files from this site.
 */

/* SafeSeal's accent (blue, from the mockup) instead of the design system's teal, in both themes. */
:root,
[data-theme="light"] {
    --accent: #2b4fa8;
    --on-accent: #ffffff;
    --accent-soft: #e3e9f7;
    --accent-ink: #24438f;
    --shadow: 0 10px 28px rgba(16, 24, 40, .10);
}

[data-theme="dark"] {
    --accent: #8fb0f5;
    --on-accent: #0c1220;
    --accent-soft: #1a2747;
    --accent-ink: #a9c2f8;
    --shadow: none;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-sans);
}

/* Scripts hide elements with the hidden attribute; components that set display must not win. */
[hidden] {
    display: none !important;
}

[id] {
    scroll-margin-top: 20px;
}

code {
    font-family: var(--font-mono);
}

.icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-sm {
    width: 16px;
    height: 16px;
}

.icon-bold {
    stroke-width: 2.6;
}

.ss-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- Page frame (Shared/MainLayout.razor) ---------- */

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 88px;
    padding: 56px 0 88px;
}

.zv-brand .zv-logo {
    width: 100px;
    height: 20px;
}

.zv-product .zv-app-icon {
    background: var(--cat-service-on-chrome);
}

/* The header's app icon is smaller than the design system's 52 px tile, as in the other apps (DataMask,
   PasswordGenerator): 30 px with an 18 px icon, so the header is as high as theirs. */
.zv-product .header-app-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}

    .zv-product .header-app-icon svg {
        width: 18px;
        height: 18px;
    }

.theme-toggle span,
.menu-toggle span {
    display: flex;
}

.theme-toggle .theme-icon-sun,
.theme-toggle[data-current="dark"] .theme-icon-moon {
    display: none;
}

.theme-toggle[data-current="dark"] .theme-icon-sun {
    display: flex;
}

.menu-toggle .menu-icon-close,
.menu-toggle[aria-expanded="true"] .menu-icon-open {
    display: none;
}

.menu-toggle[aria-expanded="true"] .menu-icon-close {
    display: flex;
}

.menu-toggle,
.mobile-menu {
    display: none;
}

.mobile-menu a {
    display: flex;
    align-items: center;
    min-height: 48px;
    color: var(--on-chrome);
    font-weight: 600;
    font-size: 17px;
    text-decoration: none;
    border-bottom: 1px solid var(--chrome-line);
}

    .mobile-menu a:last-child {
        border-bottom: none;
        color: var(--on-chrome-muted);
    }

    .mobile-menu a[aria-current="page"] {
        color: var(--accent);
    }

/* ---------- From the mockup ---------- */

a{color:var(--accent-ink)}a:hover{text-decoration-thickness:2px}
button{font-family:inherit}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.ss-wrap{max-width:1080px;width:100%;margin:0 auto;box-sizing:border-box;padding:0 20px}
.ss-h1{margin:0;font-size:46px;line-height:1.08;font-weight:800;letter-spacing:-0.02em;text-wrap:balance}
.ss-h2{margin:0;font-size:30px;line-height:1.2;font-weight:700;letter-spacing:-0.01em}
.ss-lead{margin:0;font-size:19px;line-height:1.6;color:var(--ink-muted)}
.ss-p{margin:0;font-size:15px;line-height:1.6;color:var(--ink-muted)}
.ss-trust{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px 22px;font-size:14px;font-weight:600}
.ss-trust li{display:flex;align-items:center;gap:8px}
.ss-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:0 26px;border-radius:8px;background:var(--accent);color:var(--on-accent);font-size:16px;font-weight:700;text-decoration:none;border:none}
.ss-btn:hover{color:var(--on-accent);filter:brightness(1.08)}
.ss-btn2{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:0 22px;border-radius:8px;border:1px solid var(--line-control);color:var(--ink);font-size:16px;font-weight:600;text-decoration:none;background:transparent}
.ss-btn2:hover{color:var(--ink);background:var(--surface-raised)}
.ss-card{background:var(--surface-raised);border:1px solid var(--line);border-radius:12px;padding:26px;display:flex;flex-direction:column;gap:12px}
.ss-card h3{margin:0;font-size:19px;font-weight:700}
.ss-ficon{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:var(--accent-soft);color:var(--accent-ink)}
.ss-grid3{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:20px}
.ss-step{flex:1 1 220px;display:flex;flex-direction:column;gap:10px}
.ss-num{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:var(--accent);color:var(--on-accent);font-size:16px;font-weight:700}
.ss-step h3{margin:0;font-size:18px;font-weight:700}
.ss-flowcard{display:flex;flex-direction:column;gap:10px;padding:16px 18px;background:var(--surface-raised);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}
.ss-kicker{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-muted)}
.ss-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:999px;background:var(--accent-soft);color:var(--accent-ink);font-size:13px;font-weight:700}
.ss-filetype{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:8px;background:var(--surface-sunken);border:1px solid var(--line);font-size:11px;font-weight:800;letter-spacing:.04em;color:var(--ink-muted)}
.ss-mono{font-family:ui-monospace,'Cascadia Code',Menlo,Consolas,monospace}
.ss-li{display:flex;gap:10px;font-size:15px;line-height:1.5}
.ss-li svg{margin-top:3px}
.ss-faq{border-top:1px solid var(--line)}
.ss-faq details{border-bottom:1px solid var(--line)}
.ss-faq summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;padding:18px 4px;font-size:17px;font-weight:600;list-style:none;cursor:pointer}
.ss-faq summary::-webkit-details-marker{display:none}
.ss-faq details[open] .ss-chev{transform:rotate(180deg)}
.ss-faq p{margin:0;padding:0 4px 20px;font-size:15px;line-height:1.6;color:var(--ink-muted);max-width:720px}
.ss-ph{color:var(--warning);background:var(--warning-soft);border-radius:4px;padding:0 4px}
.ss-crumb{display:flex;gap:8px;font-size:14px;color:var(--ink-muted)}
.ss-table{width:100%;border-collapse:collapse;font-size:15px;line-height:1.55}
.ss-table th{text-align:left;font-size:13px;font-weight:700;color:var(--ink-muted);padding:10px 12px;border-bottom:1px solid var(--line-control);background:var(--surface-sunken)}
.ss-table td{padding:12px;border-bottom:1px solid var(--line);vertical-align:top}
.ss-table td:first-child{white-space:nowrap;font-weight:700}
.ss-tablewrap{overflow-x:auto;border:1px solid var(--line);border-radius:12px;background:var(--surface-raised)}
.ss-docnav a{display:flex;align-items:center;min-height:36px;padding:0 10px;border-radius:6px;font-size:15px;font-weight:600;color:var(--ink);text-decoration:none}
.ss-docnav a:hover{background:var(--surface-sunken)}
.ss-docnav a[aria-current="page"]{background:var(--accent-soft);color:var(--accent-ink)}
.ss-docnav .sub a{font-weight:500;font-size:14px;min-height:32px;padding-left:22px;color:var(--ink-muted)}
.ss-h3{margin:0;font-size:19px;font-weight:700}
.ss-anchor{color:var(--ink-muted);text-decoration:none;font-weight:400;margin-left:6px}

/* Long Swedish words in headings ("Konfigurationsprogrammet" in the manual) are wider than a phone at heading size:
   they are hyphenated or broken instead of making the page scroll sideways (D3, MobileLayoutTests). */
h1,
h2,
h3 {
    overflow-wrap: break-word;
    hyphens: auto;
}

/* ---------- Shared pieces ---------- */

.ss-narrow {
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ss-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
}

.ss-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.ss-panel {
    background: var(--surface-raised);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow);
}

.ss-cardlink {
    text-decoration: none;
    color: var(--ink);
    gap: 8px;
}

    .ss-cardlink:hover {
        border-color: var(--accent);
        color: var(--ink);
    }

.ss-code {
    font-family: var(--font-mono);
    font-size: .92em;
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--surface-sunken);
    border: 1px solid var(--line);
    overflow-wrap: anywhere;
}

.ss-linkbtn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0;
    border: none;
    background: none;
    color: var(--accent-ink);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

    .ss-linkbtn .icon {
        width: 16px;
        height: 16px;
    }

.ss-notice {
    margin: 0;
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--warning-soft);
    border: 1px solid var(--warning-line);
    font-size: 15px;
    line-height: 1.6;
}

.ss-crumb {
    flex-wrap: wrap;
}

    .ss-crumb a {
        color: var(--ink-muted);
    }

.ss-faq summary .icon {
    transition: transform .15s;
}

.ss-faq details[open] summary .icon {
    transform: rotate(180deg);
}

.ss-faq h3 {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
}

/* ---------- Download ---------- */

.ss-facts {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 10px 20px;
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
}

    .ss-facts dt {
        font-weight: 700;
        color: var(--ink-muted);
    }

    .ss-facts dd {
        margin: 0;
        min-width: 0;
    }

.ss-hash {
    font-size: 13px;
    overflow-wrap: anywhere;
}

.ss-older summary {
    cursor: pointer;
    font-weight: 600;
    min-height: 32px;
}

.ss-older p {
    margin-top: 8px;
}

.ss-ol {
    margin: 0;
    padding-left: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 15px;
    line-height: 1.6;
}

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

.ss-form {
    gap: 22px;
}

.ss-field-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 22px;
}

.ss-choices {
    margin: 0;
    padding: 0;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .ss-choices legend {
        padding: 0;
        margin-bottom: 10px;
    }

.ss-choice-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ss-choice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line-control);
    border-radius: 999px;
    background: var(--surface-field);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

    .ss-choice:has(input:checked) {
        border-color: var(--accent);
        background: var(--accent-soft);
        color: var(--accent-ink);
    }

    .ss-choice input {
        accent-color: var(--accent);
        margin: 0;
    }

.ss-file {
    font: inherit;
    font-size: 15px;
    max-width: 100%;
}

/* The honeypot: off screen for people, still in the form for bots. */
.ss-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ss-ficon-success {
    background: var(--success-soft);
    color: var(--success);
}

.ss-confirmation:focus-within h2 {
    outline: none;
}

/* ---------- Guides and manual ---------- */

.ss-doc-layout,
.ss-manual {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    align-items: flex-start;
}

.ss-article {
    flex: 1 1 560px;
    min-width: 0;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.ss-doc-head {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ss-doc-title {
    font-size: 40px;
}

.ss-updated,
.ss-doc-meta {
    font-size: 14px;
    color: var(--ink-muted);
}

.ss-doc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
}

.ss-doc-aside {
    flex: 0 1 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 20px;
}

.ss-guide-nav h2 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.ss-guide-nav a {
    display: flex;
    align-items: center;
    min-height: 40px;
    font-weight: 600;
    line-height: 1.35;
}

    .ss-guide-nav a[aria-current="page"] {
        color: var(--ink);
        text-decoration: none;
    }

.ss-doc-side {
    flex: 0 0 250px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 20px;
}

.ss-docnav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .ss-docnav .sub {
        display: flex;
        flex-direction: column;
    }

.ss-search {
    position: relative;
}

    .ss-search input {
        width: 100%;
        height: 44px;
        padding: 0 12px 0 38px;
        border: 1px solid var(--line-control);
        border-radius: 8px;
        background: var(--surface-field);
        color: var(--ink);
        font: inherit;
        font-size: 15px;
    }

        .ss-search input:focus {
            outline: 2px solid var(--accent);
            outline-offset: 1px;
        }

.ss-search-icon {
    position: absolute;
    left: 12px;
    top: 12px;
    display: flex;
    color: var(--ink-muted);
}

    .ss-search-icon .icon {
        width: 18px;
        height: 18px;
    }

.ss-search-results {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 8px;
}

    .ss-search-results:empty {
        display: none;
    }

    .ss-search-results a {
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding: 8px 10px;
        border-radius: 6px;
        text-decoration: none;
        color: var(--ink);
        font-weight: 600;
        font-size: 15px;
    }

        .ss-search-results a:hover,
        .ss-search-results a:focus-visible {
            background: var(--surface-sunken);
        }

        .ss-search-results a span {
            font-size: 13px;
            font-weight: 500;
            color: var(--ink-muted);
        }

    .ss-search-results p {
        margin: 0;
        padding: 8px 10px;
        font-size: 14px;
        color: var(--ink-muted);
    }

.ss-chapters {
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

.ss-tasks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

    .ss-tasks a {
        display: flex;
        align-items: center;
        gap: 8px;
        min-height: 40px;
        font-weight: 600;
    }

        .ss-tasks a .icon {
            width: 16px;
            height: 16px;
        }

.ss-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

    .ss-pager a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        font-weight: 600;
    }

.ss-closing {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 26px;
    border-radius: 12px;
    background: var(--accent-soft);
}

.ss-closing-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 280px;
    font-size: 15px;
    line-height: 1.55;
}

.ss-closing-title {
    font-size: 18px;
    font-weight: 700;
}

.ss-closing-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
}

    .ss-closing-actions a:not(.ss-btn) {
        font-weight: 600;
    }

/* ---------- Markdown body of guides and manual chapters (Docs/DocStore.cs) ---------- */

.ss-prose {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 16px;
    line-height: 1.7;
}

    .ss-prose > * {
        margin: 0;
    }

    .ss-prose h2 {
        margin-top: 24px;
        font-size: 26px;
        line-height: 1.25;
        font-weight: 700;
        letter-spacing: -0.01em;
    }

    .ss-prose h3 {
        margin-top: 8px;
        font-size: 19px;
        line-height: 1.35;
        font-weight: 700;
    }

    .ss-prose ul,
    .ss-prose ol {
        margin: 0;
        padding-left: 22px;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .ss-prose code {
        font-size: .9em;
        padding: 1px 5px;
        border-radius: 4px;
        background: var(--surface-sunken);
        border: 1px solid var(--line);
    }

    .ss-prose table {
        width: 100%;
        border-collapse: collapse;
        font-size: 15px;
        line-height: 1.55;
    }

    .ss-prose th {
        text-align: left;
        font-size: 13px;
        font-weight: 700;
        color: var(--ink-muted);
        padding: 10px 12px;
        border-bottom: 1px solid var(--line-control);
        background: var(--surface-sunken);
    }

    .ss-prose td {
        padding: 12px;
        border-bottom: 1px solid var(--line);
        vertical-align: top;
    }

    .ss-prose tr:last-child td {
        border-bottom: none;
    }

    .ss-prose td:first-child {
        font-weight: 700;
    }

        .ss-prose td:first-child code {
            white-space: nowrap;
        }

/* Tables scroll sideways inside their frame on narrow screens (DocStore wraps every table in .ss-tablewrap). */
.ss-prose .ss-tablewrap table {
    min-width: 520px;
}

.ss-prose .ss-tablewrap:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ::: steps — numbered steps; every ### starts one. */
.ss-prose .steps {
    counter-reset: step;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 4px 0;
}

    .ss-prose .steps > h3 {
        counter-increment: step;
        position: relative;
        margin: 10px 0 0;
        padding-left: 52px;
        min-height: 36px;
        display: flex;
        align-items: center;
        font-size: 18px;
        /* The text is a flex item, as wide as its longest word: "anywhere" lets that word break, so the anchor (#)
           stays on the screen where Chrome has no Swedish hyphenation (the GitHub runners, MobileLayoutTests). */
        overflow-wrap: anywhere;
    }

        .ss-prose .steps > h3::before {
            content: counter(step);
            position: absolute;
            left: 0;
            top: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--accent);
            color: var(--on-accent);
            font-size: 16px;
            font-weight: 700;
        }

    .ss-prose .steps > :not(h3) {
        margin: 0;
        padding-left: 52px;
        color: var(--ink-muted);
        font-size: 15px;
    }

/* ::: note and ::: warning */
.ss-prose .note,
.ss-prose .warning {
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--accent-soft);
    font-size: 15px;
    line-height: 1.6;
}

.ss-prose .warning {
    background: var(--warning-soft);
    border-color: var(--warning-line);
}

    .ss-prose .note > *,
    .ss-prose .warning > * {
        margin: 0;
    }

/* ::: faq — the questions are ### headings with the answer below (real headings, as the instructions ask). */
.ss-prose .faq {
    border-top: 1px solid var(--line);
}

    .ss-prose .faq > h3 {
        margin: 0;
        padding: 18px 4px 6px;
        font-size: 17px;
        font-weight: 600;
    }

    .ss-prose .faq > p {
        margin: 0;
        padding: 0 4px 18px;
        font-size: 15px;
        color: var(--ink-muted);
        border-bottom: 1px solid var(--line);
    }

/* ::: stages — the three steps of a flow, as boxes. */
.ss-prose .stages ul {
    list-style: none;
    padding: 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

.ss-prose .stages li {
    flex: 1 1 160px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-raised);
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-muted);
}

    .ss-prose .stages li strong {
        display: block;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: .06em;
        text-transform: uppercase;
        color: var(--ink-muted);
    }

/* "Today's payment runs" on the home page (D2): a long file name ("Leverantörsbetalningar") ran in under the label
   on the right on phones. There the label and the status move to their own row under the name, which gets the
   whole width; a word that still doesn't fit is hyphenated or broken. (The card's layout is inline styles from the
   mockup, hence !important.) */
.ss-run-name {
    overflow-wrap: anywhere;
    hyphens: auto;
}

@media (max-width: 480px) {
    .ss-run {
        flex-wrap: wrap;
        row-gap: 6px !important;
    }

    .ss-run > div:not(.ss-run-status) {
        flex-basis: calc(100% - 52px) !important;
    }

    .ss-run-status {
        flex: 1 0 100% !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 4px 12px !important;
        padding-left: 52px;
    }

    .ss-run-status > * {
        white-space: nowrap;
    }
}

/* ---------- Phones ---------- */

@media (max-width: 760px) {
    .js .site-navlink {
        display: none !important;
    }

    .js .zv-header-inner {
        flex-wrap: nowrap;
    }

    .js .menu-toggle {
        display: inline-flex;
    }

    .js .mobile-menu:not([hidden]) {
        display: flex;
        flex-direction: column;
        padding: 0 20px 12px;
        border-top: 1px solid var(--chrome-line);
    }

    .site-main {
        gap: 64px;
        padding: 32px 0 64px;
    }

    .ss-h1,
    .ss-doc-title {
        font-size: 34px !important;
    }

    .ss-h2 {
        font-size: 25px;
    }

    .ss-lead {
        font-size: 17px;
    }

    .ss-hero {
        flex-direction: column;
        align-items: stretch !important;
    }

        .ss-hero > * {
            flex-basis: auto !important;
            max-width: 100% !important;
        }

    .ss-cta {
        padding: 28px 22px !important;
    }

        .ss-cta .ss-btn,
        .ss-cta .ss-btn2,
        .ss-actions .ss-btn,
        .ss-actions .ss-btn2 {
            width: 100%;
        }

    .ss-doc-side,
    .ss-doc-aside {
        position: static;
        flex: 1 1 100%;
    }

    /* On phones the search and the chapter list come first, without the long list of sections. */
    .ss-manual {
        gap: 28px;
    }

    .ss-docnav .sub {
        display: none;
    }


    .ss-facts {
        grid-template-columns: 1fr;
        gap: 2px;
    }

        .ss-facts dd {
            margin-bottom: 10px;
        }

    .ss-panel {
        padding: 22px 18px;
    }
}

/* The smallest phones (360 px): the brand and the two header buttons must fit on one row. */
@media (max-width: 400px) {
    .zv-header-inner {
        padding-left: 12px;
        padding-right: 12px;
        gap: 8px;
    }

    .zv-brand {
        gap: 10px;
    }

    .zv-product {
        font-size: 16px;
    }

        .zv-brand .zv-logo {
            width: 84px;
            height: 17px;
        }

}

/* 320 px (D1): the row above was 4 px too wide, so the page scrolled sideways. Less room around and between the
   header's parts; the buttons keep their 44 px touch size. */
@media (max-width: 340px) {
    .zv-header-inner {
        padding-left: 8px;
        padding-right: 8px;
        gap: 4px;
    }

    .zv-brand {
        gap: 8px;
        min-width: 0;
    }

    .zv-nav {
        gap: 0;
    }
}

/* ---------- Print: the manual and the guides without header, menus and footer ---------- */

@media print {
    .zv-header,
    .zv-footer,
    .ss-doc-side,
    .ss-doc-aside,
    .ss-pager,
    .ss-closing,
    .ss-anchor,
    .ss-linkbtn,
    .ss-crumb {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .site-main {
        padding: 0;
    }

    .ss-wrap {
        max-width: none;
        padding: 0;
    }

    .ss-article {
        max-width: none;
    }

    .ss-tablewrap {
        overflow: visible !important;
    }

    .ss-prose h2,
    .ss-prose h3 {
        break-after: avoid;
    }

    .ss-prose tr {
        break-inside: avoid;
    }

    a {
        color: inherit;
    }
}

/* Download page: the optional "help getting started" email (SAF-1). */
.ss-help {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.ss-help-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .ss-help-row .zv-input {
        flex: 1 1 220px;
        min-width: 0;
    }

.ss-help-sent {
    margin: 0;
}
