:root {
    color-scheme: light;
    --brand: #077BA1;
    --brand-dark: #446078;
    --accent: #BB0808;
    --bg: #f4f8fb;
    --bg-soft: #edf4f8;
    --card: #ffffff;
    --ink: #243b53;
    --muted: #5a6f82;
    --line: #d6e1e8;
    --cover-start: #077BA1;
    --cover-end: #446078;
    --cover-accent: #BB0808;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(7, 123, 161, 0.08), transparent 28%),
        linear-gradient(180deg, #f9fbfd 0%, var(--bg) 100%);
}

main {
    max-width: 980px;
    margin: 0 auto;
    padding: 32px 20px 72px;
}

.manual-cover {
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 42px 42px 36px;
    border-radius: 24px;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 26%),
        linear-gradient(145deg, var(--cover-start) 0%, var(--cover-end) 72%);
    box-shadow: 0 24px 60px rgba(68, 96, 120, 0.22);
    overflow: hidden;
    position: relative;
}

.manual-cover::after {
    content: '';
    position: absolute;
    right: -80px;
    bottom: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.manual-cover__logo {
    width: 220px;
    max-width: 55%;
    height: auto;
    filter: brightness(0) invert(1);
}

.manual-cover__eyebrow {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 2rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.manual-cover__title {
    margin: 0.8rem 0 0;
    font-size: clamp(2.4rem, 4vw, 4rem);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.manual-cover__subtitle {
    max-width: 42rem;
    margin: 1rem 0 0;
    font-size: 1.12rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.manual-cover__meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.manual-cover__meta-card {
    padding: 1rem 1.1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.manual-cover__meta-label {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.72);
}

.manual-cover__meta-value {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

article {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 34px 32px;
    box-shadow: 0 20px 50px rgba(36, 59, 83, 0.08);
    margin-top: 24px;
}

.manual-section + .manual-section {
    margin-top: 0.5rem;
}

.manual-subsection {
    margin: 0;
}

.manual-subsection + .manual-subsection {
    margin-top: 0.25rem;
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
    margin-top: 1.5em;
    color: var(--brand-dark);
    font-weight: 700;
}

h1 {
    margin-top: 0;
    font-size: clamp(2rem, 3vw, 2.8rem);
    padding-bottom: 16px;
    border-bottom: 3px solid rgba(7, 123, 161, 0.16);
}

h2 {
    font-size: 1.55rem;
    color: var(--brand);
}

h3 {
    font-size: 1.2rem;
    color: var(--brand-dark);
}

p,
li {
    font-size: 1.03rem;
    line-height: 1.72;
}

p,
ul,
ol {
    margin: 0 0 1rem;
}

ul,
ol {
    padding-left: 1.35rem;
}

li + li {
    margin-top: 0.35rem;
}

a {
    color: var(--brand);
}

code {
    font-family: "Cascadia Code", Consolas, monospace;
    background: var(--bg-soft);
    border-radius: 6px;
    padding: 0.1rem 0.35rem;
    font-size: 0.94em;
}

blockquote {
    margin: 1.25rem 0;
    padding: 0.75rem 1rem;
    border-left: 4px solid var(--brand);
    background: var(--bg-soft);
    color: var(--muted);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    overflow: hidden;
}

th,
td {
    border: 1px solid var(--line);
    padding: 0.75rem;
    text-align: left;
    vertical-align: top;
}

th {
    background: rgba(7, 123, 161, 0.08);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.25rem auto;
    border-radius: 12px;
    border: 1px solid var(--line);
}

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 1.5rem 0;
}

@media print {
    html,
    body {
        background: #ffffff;
    }

    body {
        margin: 0;
        color: #243b53;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 10.7pt;
        line-height: 1.58;
    }

    main {
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .manual-cover {
        min-height: 257mm;
        padding: 22mm 18mm 18mm;
        border-radius: 0;
        box-shadow: none;
        page-break-after: always;
        break-after: page;
    }

    .manual-cover__logo {
        width: 54mm;
        max-width: none;
    }

    .manual-cover__eyebrow {
        margin-top: 14mm;
        font-size: 9pt;
    }

    .manual-cover__title {
        font-size: 29pt;
    }

    .manual-cover__subtitle {
        max-width: 125mm;
        font-size: 12pt;
        line-height: 1.6;
    }

    .manual-cover__meta {
        gap: 6mm;
        margin-top: 14mm;
    }

    .manual-cover__meta-card {
        padding: 5mm;
    }

    .manual-cover__meta-label {
        font-size: 7.5pt;
    }

    .manual-cover__meta-value {
        font-size: 10pt;
    }

    article {
        background: #ffffff;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        margin-top: 0;
    }

    h1,
    h2,
    h3,
    h4 {
        color: #264054;
        break-after: avoid-page;
        page-break-after: avoid;
        page-break-inside: avoid;
        break-inside: avoid-page;
    }

    h1 {
        font-size: 22pt;
        margin-top: 0;
        margin-bottom: 1rem;
        padding-bottom: 0.45rem;
        border-bottom: 2px solid rgba(7, 123, 161, 0.28);
    }

    h2 {
        font-size: 16pt;
        margin-top: 1.6rem;
        margin-bottom: 0.55rem;
        padding-top: 0.15rem;
        border-top: 0;
        color: #077BA1;
    }

    h3 {
        font-size: 13pt;
        margin-top: 1.25rem;
        margin-bottom: 0.45rem;
        color: #446078;
    }

    h4 {
        font-size: 11.5pt;
        margin-top: 1rem;
        margin-bottom: 0.4rem;
    }

    p,
    li,
    blockquote,
    td,
    th {
        font-size: 11pt;
        line-height: 1.6;
        orphans: 3;
        widows: 3;
    }

    p,
    ul,
    ol,
    blockquote,
    table {
        margin-bottom: 0.8rem;
    }

    .manual-section {
        break-inside: auto;
        page-break-inside: auto;
    }

    .manual-subsection {
        break-inside: avoid-page;
        page-break-inside: avoid;
        margin-top: 0;
        padding-top: 0.05rem;
    }

    .manual-subsection + .manual-subsection {
        margin-top: 0.55rem;
    }

    ul,
    ol {
        break-inside: auto;
        page-break-inside: auto;
    }

    li {
        break-inside: avoid-page;
        page-break-inside: avoid;
    }

    img,
    table,
    blockquote,
    pre,
    code {
        break-inside: avoid-page;
        page-break-inside: avoid;
    }

    img {
        max-height: 235mm;
        margin: 0.9rem auto 1rem;
        border: 1px solid #d6e1e8;
    }

    table {
        width: 100%;
        font-size: 10.5pt;
    }

    thead {
        display: table-header-group;
    }

    tr,
    td,
    th {
        break-inside: avoid-page;
        page-break-inside: avoid;
    }

    a,
    a:visited {
        color: #111827;
        text-decoration: none;
    }

    h2 + p,
    h2 + ul,
    h2 + ol,
    h2 + blockquote,
    h2 + table,
    h2 + section,
    h2 + div,
    h3 + p,
    h3 + ul,
    h3 + ol,
    h3 + blockquote,
    h3 + table,
    h3 + div {
        break-before: avoid-page;
        page-break-before: avoid;
    }
}

@media (max-width: 640px) {
    main {
        padding: 20px 12px 36px;
    }

    .manual-cover {
        min-height: auto;
        padding: 28px 22px;
    }

    .manual-cover__meta {
        grid-template-columns: 1fr;
    }

    article {
        padding: 22px 18px;
        border-radius: 14px;
    }
}
