/* GeinDock Suite documentation.
   Self-contained stylesheet: no web fonts, no CDN, so the folder can be copied
   straight onto a web server or opened from disk.
   Responsive from a 320 px phone up to a wide desktop. */

:root {
    --slate: #16212b;
    --slate-soft: #22303c;
    --teal: #0b6e7a;
    --teal-dark: #08525c;
    --accent: #23b5c6;
    --page: #ffffff;
    --page-alt: #f3f7f8;
    --border: #d7e1e5;
    --text: #1f2d36;
    --text-muted: #5a6c77;
    --note: #ecf6f8;
    --warn-bg: #fff6e5;
    --sidebar-w: 300px;
    --topbar-h: 52px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--page);
    overflow-wrap: break-word;
}

/* ---- Mobile top bar --------------------------------------------------- */
/* Hidden on desktop. The checkbox drives the sidebar with no script. */

#navtoggle { position: absolute; opacity: 0; pointer-events: none; }

.topbar {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--topbar-h);
    background: var(--slate);
    color: #ffffff;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    z-index: 60;
}
.topbar .title { font-size: 16px; font-weight: 600; }
.topbar .title span { color: var(--accent); }

.burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 38px;
    padding: 8px;
    cursor: pointer;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.22);
}
.burger span {
    display: block;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
}

.scrim {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 70;
}

/* ---- Sidebar ---------------------------------------------------------- */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-w);
    background: var(--slate);
    color: #c6d4da;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: 40px;
    z-index: 80;
}

.sidebar .brand {
    display: block;
    padding: 22px 24px 18px;
    background: var(--slate-soft);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.sidebar .brand .name { font-size: 20px; font-weight: 600; color: #ffffff; }
.sidebar .brand .name span { color: var(--accent); }
.sidebar .brand .ver { font-size: 12px; color: #8ea3ad; letter-spacing: 0.08em; text-transform: uppercase; }

.sidebar nav { padding: 14px 0; }
.sidebar h3 {
    margin: 18px 24px 6px;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7b9098;
    font-weight: 600;
}
.sidebar a {
    display: block;
    padding: 8px 24px;
    color: #c6d4da;
    text-decoration: none;
    font-size: 14.5px;
    border-left: 3px solid transparent;
}
.sidebar a:hover { background: rgba(255, 255, 255, 0.05); color: #ffffff; }
.sidebar a.current {
    background: rgba(35, 181, 198, 0.13);
    border-left-color: var(--accent);
    color: #ffffff;
    font-weight: 600;
}

/* ---- Page ------------------------------------------------------------- */

main {
    margin-left: var(--sidebar-w);
    padding: 40px 56px 96px;
    max-width: 1120px;
}

.crumbs { font-size: 13.5px; color: var(--text-muted); margin-bottom: 18px; }
.crumbs a { color: var(--teal); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

h1 { font-size: 34px; line-height: 1.25; margin: 0 0 8px; color: var(--slate); }
h2 {
    font-size: 24px;
    margin: 44px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
    color: var(--slate);
}
h3 { font-size: 19px; margin: 30px 0 8px; color: var(--slate); }
h4 { font-size: 16.5px; margin: 22px 0 6px; color: var(--slate); }

.lead { font-size: 18px; color: var(--text-muted); margin: 0 0 26px; }

p { margin: 0 0 14px; }
ul, ol { margin: 0 0 16px; padding-left: 24px; }
li { margin-bottom: 6px; }

a { color: var(--teal); }

code {
    background: var(--page-alt);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 5px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 14px;
}

pre {
    background: var(--page-alt);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px 14px;
    overflow-x: auto;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13.5px;
    line-height: 1.5;
    margin: 16px 0 22px;
}
pre code { background: none; border: 0; padding: 0; font-size: inherit; }

kbd {
    background: #ffffff;
    border: 1px solid #b7c4ca;
    border-bottom-width: 2px;
    border-radius: 4px;
    padding: 1px 6px;
    font-family: Consolas, monospace;
    font-size: 13px;
    white-space: nowrap;
}

/* ---- Figures ---------------------------------------------------------- */

figure { margin: 22px 0 28px; padding: 0; }
figure img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #ffffff;
}
figcaption {
    margin-top: 8px;
    font-size: 13.5px;
    color: var(--text-muted);
    font-style: italic;
}

.figrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 22px 0 28px; }
.figrow figure { margin: 0; }

/* ---- Callouts --------------------------------------------------------- */

.note, .tip, .warn {
    border-radius: 6px;
    padding: 14px 18px;
    margin: 20px 0;
    font-size: 15.5px;
}
.note { background: var(--note); border-left: 4px solid var(--teal); }
.tip { background: #f1f8f1; border-left: 4px solid #3d8a4a; }
.warn { background: var(--warn-bg); border-left: 4px solid #d8a13a; }
.note strong, .tip strong, .warn strong { display: block; margin-bottom: 3px; }

/* ---- Tables ----------------------------------------------------------- */

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0 26px;
    border-radius: 6px;
}
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 460px; }
th, td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; vertical-align: top; }
th { background: var(--page-alt); font-weight: 600; color: var(--slate); }
tbody tr:nth-child(even) { background: #fbfcfd; }

/* ---- Numbered steps --------------------------------------------------- */

.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps > li {
    counter-increment: step;
    position: relative;
    padding-left: 46px;
    margin-bottom: 26px;
}
.steps > li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 1px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--teal);
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Card grid -------------------------------------------------------- */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin: 26px 0; }
.card {
    display: block;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px 20px;
    text-decoration: none;
    color: var(--text);
    background: var(--page);
}
.card:hover { border-color: var(--teal); box-shadow: 0 2px 10px rgba(11, 110, 122, 0.1); }
.card h3 { margin: 0 0 6px; font-size: 17px; color: var(--teal-dark); }
.card p { margin: 0; font-size: 14.5px; color: var(--text-muted); }

/* ---- Workflow chip, matching the Docking Panel ------------------------ */

.chip {
    display: inline-block;
    border-radius: 10px;
    padding: 1px 9px;
    font-size: 12.5px;
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--page-alt);
    color: var(--text-muted);
    white-space: nowrap;
}
.chip.ready { background: #e7f6e9; border-color: #b5ddbc; color: #26663a; }
.chip.partial { background: #fdf3e0; border-color: #e8cd97; color: #8a6118; }

/* ---- Footer ----------------------------------------------------------- */

.page-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    margin-top: 54px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.page-nav a { text-decoration: none; font-weight: 600; }

footer.site {
    margin-top: 40px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-size: 13.5px;
    color: var(--text-muted);
}

/* ---- Tablet ----------------------------------------------------------- */

/* ---- Video tutorials -------------------------------------------------- */

.player { margin: 10px 0 8px; scroll-margin-top: calc(var(--topbar-h) + 12px); }
.vframe { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--slate); border-radius: 8px; overflow: hidden; }
.vframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vnow { margin-top: 8px; font-size: 14.5px; color: var(--text-muted); }
.vnow strong { color: var(--text); }

.vlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; margin: 18px 0 26px; }
.vitem {
    display: flex; gap: 12px; align-items: flex-start; text-align: left;
    font: inherit; color: var(--text); cursor: pointer;
    border: 1px solid var(--border); border-radius: 8px; padding: 10px; background: var(--page);
}
.vitem:hover { border-color: var(--teal); box-shadow: 0 2px 10px rgba(11, 110, 122, 0.1); }
.vitem.active { border-color: var(--teal); background: var(--note); }
.vitem:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vthumb { position: relative; flex: 0 0 128px; aspect-ratio: 16 / 9; border-radius: 5px; overflow: hidden; background: var(--slate-soft); }
.vthumb img { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; margin: 0; }
.vplay {
    position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px;
    border-radius: 50%; background: rgba(22, 33, 43, 0.78);
}
.vplay::after {
    content: ""; position: absolute; left: 13px; top: 10px;
    border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #fff;
}
.vitem:hover .vplay, .vitem.active .vplay { background: var(--teal); }
.vtext { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vtext strong { font-size: 15px; line-height: 1.35; color: var(--teal-dark); }
.vtext > span:last-child { font-size: 13.5px; line-height: 1.45; color: var(--text-muted); }
.vnum { font-size: 12px; font-weight: 600; color: var(--text-muted); }

@media (max-width: 1180px) {
    :root { --sidebar-w: 262px; }
    main { padding: 36px 40px 90px; }
}

/* ---- Phone and small tablet ------------------------------------------- */

@media (max-width: 900px) {
    .topbar { display: flex; }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.22s ease;
        width: min(86vw, 320px);
        box-shadow: 0 0 28px rgba(0,0,0,0.35);
    }
    #navtoggle:checked ~ .sidebar { transform: translateX(0); }
    #navtoggle:checked ~ .scrim { display: block; }

    main {
        margin-left: 0;
        padding: calc(var(--topbar-h) + 24px) 20px 72px;
        max-width: none;
    }

    h1 { font-size: 27px; }
    h2 { font-size: 21px; margin-top: 36px; }
    h3 { font-size: 17.5px; }
    .lead { font-size: 16.5px; }
    body { font-size: 15.5px; }

    .note, .tip, .warn { font-size: 15px; padding: 12px 14px; }
    table { font-size: 14px; }
    th, td { padding: 8px 10px; }
    .steps > li { padding-left: 40px; }
    .steps > li::before { width: 27px; height: 27px; font-size: 14px; }

    .page-nav { flex-direction: column; gap: 10px; }
}

@media (max-width: 420px) {
    main { padding: calc(var(--topbar-h) + 18px) 14px 60px; }
    h1 { font-size: 24px; }
    .cards { grid-template-columns: 1fr; }
}

/* ---- Print ------------------------------------------------------------ */

@media print {
    .sidebar, .topbar, .scrim, .page-nav { display: none !important; }
    main { margin: 0; padding: 0; max-width: none; }
    body { font-size: 11pt; }
    figure img { border: 1px solid #ccc; }
    h2 { page-break-after: avoid; }
    figure, table, .note, .tip, .warn { page-break-inside: avoid; }
}
