:root {
    --ink:#243b4c;
    --muted:#627685;
    --accent:#236b91;
    --paper:#f6f9fc;
    --line:#dce6ed;
    --soft:#eaf3f9;
    --white:#fff;
    font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    color:var(--ink);
    background:var(--paper);
    font-synthesis:none;
}

* {
    box-sizing:border-box;
}

body {
    margin:0;
}

a {
    color:inherit;
    text-decoration:none;
}

a:hover {
    text-decoration:underline;
}

button,input,select {
    font:inherit;
}

button,a,input,select,summary {
    -webkit-tap-highlight-color:transparent;
}

button,summary {
    cursor:pointer;
}

button {
    border:0;
}

a,button,input,select,summary {
    outline-offset:4px;
}

a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible {
    outline:3px solid #3481ad;
}

h1,h2,h3,p {
    margin-top:0;
}

h1,h2,h3 {
    font-weight:550;
    letter-spacing:-.035em;
}

p {
    line-height:1.7;
}

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

.skip-link {
    position:fixed;
    top:-100px;
    left:20px;
    background:white;
    padding:12px;
    z-index:20;
}

.skip-link:focus {
    top:10px;
}

.site-header {
    height:90px;
    padding:0 5.5%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    border-bottom:1px solid var(--line);
    background:var(--white);
}

.brand {
    display:flex;
    align-items:center;
    gap:12px;
    font-size:22px;
    font-weight:650;
    letter-spacing:-.8px;
}

.brand:hover {
    text-decoration:none;
}

.brand-logo {
    display:block;
    width:200px;
    height:auto;
    flex-shrink:0;
}

.brand-divider {
    margin:0 2px;
    color:#bdccd6;
    font-weight:300;
}

.brand-label {
    font-size:16px;
    font-weight:400;
    letter-spacing:0;
    color:var(--muted);
}

.header-link {
    font-size:13px;
    font-weight:550;
}

.header-link span {
    margin-left:17px;
}

.library {
    max-width:1280px;
    margin:auto;
    padding:0 60px 62px;
}

.hero {
    padding:76px 0 55px;
    text-align:center;
    border-bottom:1px solid var(--line);
}

.eyebrow {
    font-size:10px;
    font-weight:700;
    letter-spacing:1.8px;
    line-height:1.6;
    color:var(--accent);
}

.status-dot {
    display:inline-block;
    width:6px;
    height:6px;
    background:#16afe3;
    border-radius:50%;
    margin:0 7px 1px 0;
}

.hero h1 {
    font-size:clamp(34px,4vw,53px);
    line-height:1.13;
    margin:22px 0 20px;
    letter-spacing:-2px;
}

.hero h1 span {
    color:#678397;
}

.hero>p {
    color:var(--muted);
    font-size:15px;
    line-height:1.8;
}

.search-form {
    display:flex;
    align-items:center;
    gap:12px;
    max-width:690px;
    margin:30px auto 0;
    padding:8px 8px 8px 20px;
    background:white;
    border:1px solid #cadde9;
    border-radius:10px;
    box-shadow:0 4px 14px #24577806;
}

.search-symbol {
    font-size:28px;
    color:#6f8a9d;
    line-height:1;
}

.search-form input {
    min-width:0;
    flex:1;
    border:0;
    background:transparent;
    padding:12px 0;
    font-size:14px;
    color:var(--ink);
}

.search-form input::placeholder {
    color:#718594;
}

.button {
    display:inline-flex;
    gap:22px;
    align-items:center;
    justify-content:center;
    background:var(--accent);
    color:white;
    padding:13px 19px;
    border-radius:6px;
    font-size:13px;
    font-weight:550;
    white-space:nowrap;
}

.button:hover {
    background:#1b5575;
    text-decoration:none;
}

.search-hint {
    font-size:11px;
    color:var(--muted);
    margin-top:13px;
}

.collection {
    padding-top:38px;
}

.collection-heading {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-bottom:24px;
}

.collection-heading h2 {
    font-size:26px;
    margin:7px 0 0;
}

.count {
    font-size:12px;
    vertical-align:middle;
    background:#e7f1f8;
    padding:4px 8px;
    border-radius:5px;
    margin-left:8px;
    letter-spacing:0;
}

.product-filter {
    display:flex;
    align-items:center;
    gap:10px;
    font-size:12px;
}

.product-filter label {
    color:var(--muted);
}

select {
    max-width:210px;
    min-height:38px;
    border:1px solid var(--line);
    border-radius:6px;
    padding:8px 27px 8px 12px;
    background:white;
    color:var(--ink);
}

.secondary {
    background:#e8f2f9;
    color:var(--ink);
    padding:10px 13px;
}

.secondary:hover {
    background:#dbeaf5;
}

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

.manual-card {
    position:relative;
    display:flex;
    flex-direction:column;
    background:white;
    border:1px solid var(--line);
    border-radius:10px;
    padding:26px;
    min-width:0;
    transition:background-color .15s,border-color .15s,box-shadow .15s;
}

.manual-card:hover,.manual-card:focus-within {
    background:var(--soft);
    border-color:#99bbd0;
    box-shadow:0 6px 22px #24577810;
}

.manual-card-link::after {
    content:"";
    position:absolute;
    inset:0;
    z-index:1;
    border-radius:10px;
}

.manual-card-link:focus-visible {
    outline:none;
}

.manual-card-link:focus-visible::after {
    outline:3px solid #3481ad;
    outline-offset:4px;
}

.card-top {
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:25px;
}

.book-icon {
    display:inline-grid;
    place-items:center;
    width:43px;
    height:47px;
    background:#edf5fb;
    border-radius:8px;
    color:#437c9d;
    font-size:26px;
}

.version {
    font-size:10px;
    color:#536f82;
    background:#f1f7fb;
    border:1px solid #e1ecf4;
    border-radius:4px;
    padding:5px 8px;
    display:inline-block;
}

.manual-card .eyebrow {
    font-size:9px;
    letter-spacing:1.2px;
}

.manual-card h3 {
    font-size:21px;
    margin:9px 0 12px;
    line-height:1.3;
    overflow-wrap:anywhere;
}

.manual-card>p {
    font-size:13px;
    color:var(--muted);
    margin-bottom:28px;
    white-space:pre-line;
}

.card-link {
    margin-top:auto;
    border-top:1px solid #edf2f7;
    padding-top:17px;
    font-size:12px;
    font-weight:650;
    display:flex;
    justify-content:space-between;
}

.card-link span {
    font-size:16px;
}

.library-note {
    display:flex;
    align-items:center;
    gap:17px;
    margin-top:35px;
    background:#edf5fb;
    border:1px solid #dceaf4;
    border-radius:8px;
    padding:25px;
}

.note-icon {
    display:grid;
    place-items:center;
    border:1px solid #83a5bd;
    border-radius:50%;
    height:22px;
    width:22px;
    font:italic 15px Georgia;
    flex-shrink:0;
}

.library-note strong {
    font-size:13px;
    font-weight:600;
}

.library-note p {
    font-size:12px;
    color:var(--muted);
    margin:5px 0 0;
}

.note-decoration {
    margin-left:auto;
    font-size:26px;
    color:#779bb4;
}

.site-footer {
    display:flex;
    justify-content:space-between;
    gap:20px;
    padding:25px 5.5%;
    border-top:1px solid var(--line);
    color:var(--muted);
    font-size:11px;
}

.empty-state {
    text-align:center;
    padding:55px 25px;
    border:1px dashed #c9dce9;
    border-radius:10px;
    background:#ffffff70;
}

.empty-state .book-icon {
    margin-bottom:20px;
}

.empty-state h3 {
    font-size:23px;
    margin-bottom:10px;
}

.empty-state p {
    font-size:14px;
    color:var(--muted);
}

.empty-state h1 {
    margin-top:15px;
}

.result-summary {
    font-size:13px;
    color:var(--muted);
}

.result-summary a {
    margin-left:12px;
    text-decoration:underline;
}

.search-matches {
    padding:16px 0 0;
    margin:15px 0 0;
    border-top:1px solid var(--line);
    list-style:none;
}

.search-matches a {
    position:relative;
    z-index:2;
    font-size:14px;
    font-weight:600;
}

.search-matches p {
    font-size:12px;
    color:var(--muted);
    margin:6px 0 18px;
    overflow-wrap:anywhere;
}

.reader-shell {
    display:grid;
    grid-template-columns:300px minmax(0,1fr);
    max-width:1500px;
    margin:auto;
    min-height:calc(100vh - 155px);
}

.sidebar {
    border-right:1px solid var(--line);
    padding:35px 24px 45px;
    background:#f0f6fb;
}

.back-link {
    display:block;
    font-size:12px;
    color:var(--muted);
    margin-bottom:34px;
}

.sidebar h2 {
    font-size:24px;
    line-height:1.3;
    margin:10px 0 12px;
    overflow-wrap:anywhere;
}

.contents {
    margin-top:32px;
}

.contents summary {
    font-size:12px;
    font-weight:650;
    padding-bottom:15px;
}

.contents summary span {
    font-size:10px;
    font-weight:400;
    color:var(--muted);
    margin-left:10px;
}

.toc-link {
    display:block;
    font-size:13px;
    line-height:1.5;
    padding:10px 10px 10px calc(12px + var(--depth,0)*12px);
    margin:3px 0;
    border-radius:5px;
    overflow-wrap:anywhere;
}

.toc-link:hover {
    background:#e2eef7;
    text-decoration:none;
}

.toc-link.active {
    background:#dceefa;
    color:#235d7f;
    font-weight:650;
    box-shadow:inset 3px 0 #3698c4;
}

.reader-main {
    min-width:0;
    padding:29px 48px 60px;
    background:white;
}

.reader-toolbar {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}

.breadcrumbs {
    display:flex;
    flex-wrap:wrap;
    gap:9px;
    font-size:11px;
    color:var(--muted);
}

.print-button {
    color:var(--accent);
    background:#edf5fb;
    padding:9px 12px;
    font-size:11px;
    border-radius:5px;
    white-space:nowrap;
}

.reader-article {
    max-width:790px;
    margin:54px auto 0;
}

.reader-article h1 {
    font-size:clamp(30px,3.5vw,43px);
    margin:14px 0 17px;
    line-height:1.2;
    overflow-wrap:anywhere;
}

.updated {
    font-size:11px;
    color:var(--muted);
    margin-bottom:35px;
}

.manual-intro {
    font-size:17px;
    color:var(--muted);
    white-space:pre-line;
}

.overview-title {
    margin-top:38px;
    font-size:23px;
}

.overview-list {
    padding:0;
    list-style:none;
    counter-reset:sections;
}

.overview-list li {
    counter-increment:sections;
    margin-left:calc(var(--depth,0)*16px);
    border-bottom:1px solid var(--line);
}

.overview-list a {
    display:flex;
    gap:15px;
    align-items:center;
    padding:17px 5px;
    font-size:14px;
}

.overview-list a:before {
    content:counter(sections,decimal-leading-zero);
    color:#6c8aa0;
    font-size:11px;
}

.overview-list a span:last-child {
    margin-left:auto;
}

.prose {
    display:flow-root;
    line-height:1.8;
    font-size:16px;
    color:#364c5c;
    overflow-wrap:anywhere;
}

.prose h1,.prose h2,.prose h3,.prose h4 {
    color:var(--ink);
    margin-top:1.6em;
    line-height:1.3;
}

.prose h1 {
    font-size:30px;
}

.prose h2 {
    font-size:27px;
}

.prose h3 {
    font-size:22px;
}

.prose a {
    color:#236b91;
    text-decoration:underline;
}

.prose img {
    max-width:100%;
    height:auto;
}

.prose figure {
    margin:24px 0;
}

.prose figcaption {
    font-size:12px;
    color:var(--muted);
}

.prose blockquote {
    border-left:3px solid #88b5d0;
    background:#f0f7fc;
    margin:25px 0;
    padding:16px 22px;
}

.prose blockquote p:last-child {
    margin-bottom:0;
}

.prose pre {
    background:#f0f5fa;
    padding:20px;
    overflow:auto;
    border-radius:6px;
    font-size:13px;
}

.prose code {
    font-family:ui-monospace,monospace;
    background:#f0f5fa;
    padding:2px 4px;
}

.prose pre code {
    padding:0;
}

.prose table {
    display:block;
    max-width:100%;
    overflow:auto;
    border-collapse:collapse;
    font-size:14px;
    margin:25px 0;
}

.prose th,.prose td {
    padding:12px 16px;
    text-align:left;
    border:1px solid var(--line);
}

.prose th {
    background:#f0f5fa;
}

.prose hr {
    border:0;
    border-top:1px solid var(--line);
    margin:30px 0;
}

.prose [data-checklist-subtitle="1"] {
    margin:0 0 18px;
    color:var(--muted);
    font-size:21px;
    line-height:1.5;
    white-space:pre-wrap;
}

.prose [data-checklist-intro="1"],.prose [data-checklist-text="1"] {
    white-space:pre-wrap;
}

.prose [data-checklist-items="1"] {
    list-style:none;
    padding:0;
    margin:30px 0;
}

.prose [data-checklist-item="1"] {
    display:grid;
    grid-template-columns:30px minmax(0,1fr) auto;
    align-items:start;
    gap:18px;
    padding:24px 0;
    border-top:1px solid var(--line);
    break-inside:avoid;
}

.prose [data-checklist-item="1"]::before {
    content:"✓";
    display:grid;
    place-items:center;
    width:30px;
    height:30px;
    border-radius:50%;
    background:#e4f3ed;
    color:#247356;
    font-size:20px;
    font-weight:700;
}

.prose [data-checklist-text="1"] { margin:0; min-width:0; }
.prose div[data-checklist-text="1"] { white-space:normal; }
.prose div[data-checklist-text="1"]>:first-child { margin-top:0; }
.prose div[data-checklist-text="1"]>:last-child { margin-bottom:0; }
.prose [data-checklist-item="1"]>img { width:250px; height:auto; max-height:none; border-radius:8px; }

.prose [data-checklist-item="1"][data-checklist-image-below="1"] { grid-template-columns:30px minmax(0,1fr); }
.prose [data-checklist-item="1"][data-checklist-image-below="1"]>img { grid-column:2; grid-row:2; justify-self:center; width:auto; max-width:100%; }

@media(max-width:600px) {
    .prose [data-checklist-item="1"] { grid-template-columns:30px minmax(0,1fr); gap:12px; }
    .prose [data-checklist-item="1"]>img { grid-column:2; width:auto; max-width:100%; }
}

.page-navigation {
    display:flex;
    gap:18px;
    margin-top:50px;
    border-top:1px solid var(--line);
    padding-top:25px;
}

.page-navigation a {
    flex:1;
    max-width:50%;
    border:1px solid var(--line);
    padding:18px;
    border-radius:7px;
}

.page-navigation a:hover {
    background:#f2f8fc;
    text-decoration:none;
}

.page-navigation small {
    display:block;
    color:var(--muted);
    font-size:11px;
    margin-bottom:9px;
}

.page-navigation strong {
    font-size:13px;
    font-weight:600;
    overflow-wrap:anywhere;
}

.page-navigation .next {
    margin-left:auto;
    text-align:right;
}

@media(min-width:1000px) {
    .sidebar {
        position:sticky;
        top:0;
        max-height:100vh;
        overflow:auto;
        align-self:start;
        min-height:calc(100vh - 90px);
    }
}

@media(max-width:1000px) {
    .library {
        padding-left:30px;
        padding-right:30px;
    }
    .manual-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .reader-shell {
        grid-template-columns:250px minmax(0,1fr);
    }
    .reader-main {
        padding:28px;
    }
    .reader-toolbar {
        align-items:flex-start;
    }
    .reader-article {
        margin-top:35px;
    }
}

@media(max-width:700px) {
    .site-header {
        height:74px;
        padding:0 20px;
    }
    .brand {
        font-size:20px;
        gap:8px;
    }
    .brand-logo {
        width:160px;
    }
    .brand-divider {
        margin:0;
    }
    .brand-label {
        font-size:13px;
    }
    .header-link {
        font-size:0;
    }
    .header-link span {
        font-size:20px;
        margin:0;
    }
    .library {
        padding:0 20px 35px;
    }
    .hero {
        padding:48px 0 35px;
    }
    .hero h1 {
        letter-spacing:-1.2px;
    }
    .hero>p {
        font-size:14px;
    }
    .desktop-break {
        display:none;
    }
    .search-form {
        gap:8px;
        padding-left:12px;
    }
    .search-form input {
        font-size:12px;
    }
    .search-form .button {
        padding:12px;
        gap:0;
    }
    .search-form .button span {
        display:none;
    }
    .search-symbol {
        font-size:23px;
    }
    .search-hint {
        font-size:10px;
    }
    .collection-heading {
        align-items:flex-start;
        flex-direction:column;
    }
    .product-filter {
        width:100%;
        flex-wrap:wrap;
    }
    .product-filter select {
        flex:1;
        max-width:none;
        min-width:0;
    }
    .manual-grid {
        grid-template-columns:1fr;
    }
    .manual-card {
        padding:24px;
    }
    .collection-heading h2 {
        font-size:25px;
    }
    .library-note {
        padding:20px;
        align-items:flex-start;
    }
    .note-decoration {
        display:none;
    }
    .site-footer {
        padding:22px 20px;
        font-size:10px;
    }
    .reader-shell {
        display:block;
    }
    .sidebar {
        border-right:0;
        border-bottom:1px solid var(--line);
        padding:22px;
    }
    .sidebar h2 {
        font-size:22px;
    }
    .back-link {
        margin-bottom:20px;
    }
    .contents {
        margin-top:22px;
    }
    .contents nav {
        max-height:260px;
        overflow:auto;
    }
    .reader-main {
        padding:25px 22px 45px;
    }
    .reader-toolbar {
        flex-wrap:wrap;
    }
    .reader-article {
        margin-top:35px;
    }
    .page-navigation {
        gap:10px;
    }
    .page-navigation a {
        padding:13px;
    }
    .prose {
        font-size:15px;
    }
}

@media print {
    body,.reader-main {
        background:white;
        color:black;
    }
    .site-header,.site-footer,.sidebar,.reader-toolbar,.page-navigation,.skip-link {
        display:none!important;
    }
    .reader-shell {
        display:block;
        min-height:0;
    }
    .reader-main {
        padding:0;
    }
    .reader-article {
        max-width:none;
        margin:0;
    }
    .prose {
        color:black;
        font-size:11pt;
    }
    .prose pre {
        white-space:pre-wrap;
    }
    .prose table {
        display:table;
    }
    .prose img {
        max-height:80vh;
        object-fit:contain;
    }
    h1,h2,h3 {
        break-after:avoid;
    }
    tr,img {
        break-inside:avoid;
    }
    @page {
        margin:18mm;
    }
}
