﻿/* ==========================================================
   Manual.css - PsyTrace User Manual
   ========================================================== */

:root {
    /* Bootstrap 3 sets html to 10px, which shrinks every rem size below.
       :root outranks Bootstrap's html selector, so this wins in any load order. */
    font-size: 16px;
    --ink: #1d2b36;
    --muted: #5b6b76;
    --paper: #f3f5f6;
    --panel: #ffffff;
    --line: #d3dce1;
    --nav: #173e4a;
    --nav-hover: #22586a;
    --accent: #2b8a9a;
    --accent-soft: #e4f1f3;
    --nav-size: 1.1rem; /* menu text size - adjust here */
    --font-ui: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    --font-read: "Book Antiqua", Palatino, "Palatino Linotype", Georgia, serif;
}

/* ---------- Base (overrides Bootstrap/Site.css defaults) ---------- */
html {
    scroll-padding-top: 4rem;
}

body {
    margin: 0;
    padding: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: 16px;
    line-height: 1.6;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    padding: .5rem 1rem;
    background: #fff;
    color: var(--ink);
}

    .skip-link:focus {
        left: 0;
    }

/* ---------- Navigation ---------- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0 1rem;
    background: var(--nav);
}

.site-brand {
    margin-right: .75rem;
    padding: .9rem 1.25rem .9rem 0;
    border-right: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-group {
    position: relative;
}

.nav-btn {
    padding: 1rem 1.15rem;
    border: 0;
    background: none;
    color: #e8f1f3;
    font: inherit;
    font-size: var(--nav-size);
    cursor: pointer;
}

    .nav-btn::after {
        content: "";
        display: inline-block;
        margin-left: .45rem;
        vertical-align: middle;
        border: 4px solid transparent;
        border-top-color: currentColor;
        border-bottom-width: 0;
    }

    .nav-btn:hover,
    .nav-group.open > .nav-btn {
        background: var(--nav-hover);
        color: #fff;
    }

    .nav-btn:focus-visible {
        outline: 2px solid #fff;
        outline-offset: -3px;
    }

.nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 15rem;
    margin: 0;
    padding: .35rem 0;
    list-style: none;
    background: var(--panel);
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
}

.nav-group.open .nav-menu {
    display: block;
}

@media (hover: hover) {
    .nav-group:hover .nav-menu {
        display: block;
    }

    .nav-group:hover > .nav-btn {
        background: var(--nav-hover);
        color: #fff;
    }
}

.nav-menu a {
    display: block;
    padding: .65rem 1.2rem;
    color: var(--ink);
    font-size: 1rem;
    text-decoration: none;
}

    .nav-menu a:hover,
    .nav-menu a:focus-visible {
        background: var(--accent-soft);
        color: var(--ink);
        text-decoration: none;
        outline: none;
    }

/* ---------- Manual page layout ---------- */
.manual-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
}

.manual-page-header {
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--accent);
}

    .manual-page-header h1 {
        margin: 0 0 .25rem;
        font-size: 2rem;
        font-weight: 600;
    }

    .manual-page-header p {
        margin: 0;
        color: var(--muted);
    }

.manual-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
    gap: 1.5rem;
    align-items: start;
}

.text-panel,
.textblockmaster,
.image-panel {
    padding: 1.5rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 6px;
}

.text-panel,
.textblockmaster {
    border-left: 4px solid var(--accent);
    font-family: var(--font-read);
    font-size: 1.05rem;
    line-height: 1.75;
}

    .text-panel p,
    .textblockmaster p {
        margin: 0 0 1rem;
    }

        .text-panel p:last-child,
        .textblockmaster p:last-child {
            margin-bottom: 0;
        }

    .text-panel ol {
        margin: 0 0 1rem;
        padding-left: 1.5rem;
    }

        .text-panel ol:last-child {
            margin-bottom: 0;
        }

    .text-panel li {
        margin-bottom: 1rem;
        padding-left: .25rem;
    }

        .text-panel li:last-child {
            margin-bottom: 0;
        }

    .text-panel .related-links {
        margin: 0;
        padding: 0;
        list-style: none;
    }

        .text-panel .related-links li {
            margin: 0 0 .35rem;
            padding: 0;
            font-weight: 600;
        }

    /* Bulleted lists inside text panels */
    .text-panel ul {
        margin: .75rem 0 1rem;
        padding-left: 1.5rem;
    }

    /* Callouts: warnings and notes */
    .text-panel .callout {
        margin: 0 0 1rem;
        padding: 1rem 1.25rem;
        border-left: 4px solid var(--accent);
        border-radius: 4px;
        background: var(--accent-soft);
        font-family: var(--font-ui);
        font-size: .975rem;
        line-height: 1.6;
    }

    .text-panel .callout-warn {
        border-left-color: #b7791f;
        background: #fdf4e3;
    }

    .text-panel .callout p {
        margin: 0 0 .6rem;
    }

    .text-panel .callout > :last-child {
        margin-bottom: 0;
    }

    .text-panel .callout li {
        margin-bottom: .4rem;
    }

        .text-panel .callout li:last-child {
            margin-bottom: 0;
        }

    /* Contact / mailing address cards */
    .text-panel .address-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
        gap: 1rem;
        margin-bottom: 1.25rem;
    }

    .text-panel address {
        margin: 0;
        padding: 1rem 1.25rem;
        border-left: 4px solid var(--accent);
        border-radius: 4px;
        background: var(--accent-soft);
        font-family: var(--font-ui);
        font-style: normal;
        line-height: 1.6;
    }

    /* Text-panel lists nested in steps (a, b, c ...) */
    .text-panel ol.alpha {
        list-style-type: lower-alpha;
        margin: .75rem 0 0;
    }

        .text-panel ol.alpha li {
            margin-bottom: .4rem;
        }

            .text-panel ol.alpha li:last-child {
                margin-bottom: 0;
            }

    .text-panel li > p:last-child {
        margin-bottom: 0;
    }

    /* Callout used as a note inside a list item */
    .text-panel li > .callout {
        margin: .75rem 0 0;
    }

    /* Several topics inside one text panel */
    .text-panel .topic {
        margin-top: 2rem;
        padding-top: 1.5rem;
        border-top: 1px solid var(--line);
    }

        .text-panel .topic:first-child {
            margin-top: 0;
            padding-top: 0;
            border-top: 0;
        }

    /* Numbered procedures with a heading per step */
    .text-panel .steps > li {
        margin-bottom: 1.5rem;
    }

        .text-panel .steps > li:last-child {
            margin-bottom: 0;
        }

    .text-panel .steps h2 {
        margin: 0 0 .35rem;
        font-size: 1.1rem;
    }

    .text-panel .tag {
        display: inline-block;
        margin-left: .5rem;
        padding: .1rem .55rem;
        border-radius: 999px;
        background: var(--accent-soft);
        color: var(--nav);
        font-family: var(--font-ui);
        font-size: .75rem;
        font-weight: 600;
        vertical-align: middle;
    }

    .text-panel code {
        padding: 0 .3em;
        border: 1px solid var(--line);
        border-radius: 4px;
        background: var(--paper);
        color: var(--ink);
        font-size: .95em;
    }

    .text-panel figure {
        margin: 1rem 0 1.25rem;
        overflow-x: auto;
    }

    /* Sample report tables (e.g. EnterpriseState) */
    .text-panel .table-scroll {
        margin: 0 0 1.25rem;
        overflow-x: auto;
    }

.report-table {
    width: 100%;
    max-width: 34rem;
    border-collapse: collapse;
    font-family: var(--font-ui);
    font-size: .95rem;
    line-height: 1.4;
}

    .report-table td {
        padding: .5rem .75rem;
        border: 1px solid var(--line);
        text-align: left;
    }

    .report-table th {
        padding: .5rem .75rem;
        border: 1px solid var(--line);
        background: var(--paper);
        text-align: left;
        font-weight: 600;
    }

    .report-table .center {
        text-align: center;
    }

    .report-table .report-total td {
        background: var(--accent-soft);
        font-weight: 600;
    }

.text-panel h2,
.image-panel h2 {
    margin: 0 0 1rem;
    font-family: var(--font-ui);
    font-size: 1.15rem;
    font-weight: 600;
}

/* Text-only pages: keep line length readable */
.text-panel-single {
    max-width: 52rem;
}

.sample-image-container {
    overflow-x: auto;
}

.manual-image {
    display: block;
    max-width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.manual-page-footer {
    margin-top: 2.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .875rem;
}

/* ==========================================================
   LEGACY classes (moved here from the old <style> block in
   Site.Master so pages not yet converted keep working).
   Remove once every page uses .manual-page / .manual-columns.
   ========================================================== */
.textblockleftmaster {
    display: block;
    position: absolute;
    margin-top: 10px;
    padding-left: 52px;
    height: 540px;
    width: 550px;
    padding: 2px;
    margin-right: 10px;
    border: 2px solid black;
    font-family: 'Book Antiqua';
    font-size: 16px;
    text-align: left;
    background-color: lavender;
}

.textblockrightmaster {
    display: block;
    position: absolute;
    margin-top: 10px;
    margin-left: 600px;
    height: 540px;
    width: 550px;
    padding: 2px;
    margin-right: 10px;
    border: 2px solid black;
    font-family: 'Book Antiqua';
    font-size: 16px;
    text-align: left;
    background-color: lavender;
}

.imageblockmaster {
    position: static;
    margin-top: 2px;
    padding-left: 600px;
    height: 540px;
    width: 550px;
    zoom: 100%;
    background-color: #F0F8FF;
    background-size: 100%;
}
