/* ============================================================
   help.css — Styles for Software Help Pages
   ============================================================ */

/* --- Google Font import (Lato for body, Source Code Pro for code) --- */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Source+Code+Pro:wght@400;600&display=swap');

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Lato', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #2c2c2c;
    background-color: #f7f8fa;
}

/* --- Page Layout --- */
.help-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar navigation */
.help-nav {
    width: 240px;
    min-width: 200px;
    background-color: #1e3a5f;
    color: #cdd9e8;
    padding: 32px 0 32px 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
}

.help-nav .nav-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7fa8d0;
    padding: 0 20px 10px 20px;
    border-bottom: 1px solid #2e5080;
    margin-bottom: 14px;
}

.help-nav ul {
    list-style: none;
    padding: 0;
}

.help-nav ul li a {
    display: block;
    padding: 7px 20px;
    color: #cdd9e8;
    text-decoration: none;
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.help-nav ul li a:hover,
.help-nav ul li a.active {
    background-color: #162d4a;
    border-left-color: #5ba3e0;
    color: #ffffff;
}

/* Main content area */
.help-content {
    flex: 1;
    max-width: 860px;
    padding: 48px 56px 72px 56px;
    background-color: #ffffff;
    min-height: 100vh;
}

/* --- Headings --- */
h1 {
    font-size: 3rem;
    /* was 2rem — 50% taller */
    font-variant: small-caps;
    /* adds small caps */
    font-weight: 700;
    color: #1e3a5f;
    border-bottom: 3px solid #5ba3e0;
    padding-bottom: 10px;
    margin-bottom: 24px;
    line-height: 1.25;
}

h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-top: 40px;
    margin-bottom: 14px;
    padding-left: 10px;
    border-left: 4px solid #5ba3e0;
    line-height: 1.3;
}

h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c5282;
    margin-top: 28px;
    margin-bottom: 10px;
    line-height: 1.35;
}

/* --- Paragraph --- */
p {
    margin-bottom: 14px;
    color: #2c2c2c;
}

/* --- Inline & Block Code (VBA / fixed-width) --- */
code {
    font-family: 'Source Code Pro', 'Courier New', Courier, monospace;
    font-size: 0.88em;
    background-color: #eef2f7;
    color: #1a3a5c;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #d0dce8;
}

pre {
    background-color: #f0f4f9;
    border: 1px solid #ccd8e6;
    border-left: 4px solid #5ba3e0;
    border-radius: 6px;
    padding: 18px 20px;
    overflow-x: auto;
    margin: 18px 0 22px 0;
}

pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.9em;
    color: #1a3a5c;
    line-height: 1.6;
}

/* --- Tables --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 28px 0;
    font-size: 0.95em;
}

thead tr {
    background-color: #1e3a5f;
    color: #ffffff;
}

thead th {
    padding: 11px 14px;
    text-align: left;
    font-weight: 700;
    font-size: 0.9em;
    letter-spacing: 0.03em;
}

tbody tr {
    border-bottom: 1px solid #dde4ef;
}

tbody tr:nth-child(even) {
    background-color: #f3f6fb;
}

tbody tr:hover {
    background-color: #e8f0f9;
}

tbody td {
    padding: 10px 14px;
    vertical-align: top;
    color: #2c2c2c;
}

/* --- Numbered List (ol) --- */
ol {
    margin: 14px 0 20px 0;
    padding-left: 28px;
    counter-reset: help-counter;
    list-style: none;
}

ol li {
    counter-increment: help-counter;
    position: relative;
    padding: 5px 0 5px 10px;
    margin-bottom: 6px;
}

ol li::before {
    content: counter(help-counter) ".";
    position: absolute;
    left: -22px;
    font-weight: 700;
    color: #5ba3e0;
    min-width: 20px;
}

ol li+li {
    border-top: 1px solid #eef2f7;
}

/* --- Bulleted List (ul) --- */
ul {
    margin: 14px 0 20px 0;
    padding-left: 20px;
    list-style: none;
}

ul li {
    position: relative;
    padding: 4px 0 4px 18px;
    margin-bottom: 4px;
}

ul li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #5ba3e0;
    font-size: 0.85em;
    top: 5px;
}

/* --- Screenshots / Images --- */
.screenshot {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px 0 8px 0;
    border: 1px solid #c8d5e6;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(30, 58, 95, 0.10);
}

.screenshot-caption {
    font-size: 0.85em;
    color: #6b7c93;
    margin-bottom: 22px;
    font-style: italic;
    padding-left: 4px;
}

/* --- Note / Tip / Warning callout boxes --- */
.callout {
    border-radius: 6px;
    padding: 14px 18px;
    margin: 22px 0;
    border-left: 5px solid;
    font-size: 0.95em;
}

.callout.note {
    background-color: #e8f3fd;
    border-color: #5ba3e0;
    color: #1a3a5c;
}

.callout.tip {
    background-color: #e8f8ef;
    border-color: #3aab6d;
    color: #1a4030;
}

.callout.warning {
    background-color: #fff8e6;
    border-color: #f0a500;
    color: #4a3200;
}

.callout strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* --- Links --- */
a {
    color: #2e72b8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #1a4a80;
}

/* --- Horizontal Rule --- */
hr {
    border: none;
    border-top: 1px solid #dde4ef;
    margin: 36px 0;
}

/* --- Page footer --- */
.help-footer {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #dde4ef;
    font-size: 0.82em;
    color: #8a9ab0;
}

/* --- Responsive --- */
@media (max-width: 700px) {
    .help-wrapper {
        flex-direction: column;
    }

    .help-nav {
        width: 100%;
        height: auto;
        position: relative;
        padding: 16px 0;
    }

    .help-content {
        padding: 28px 20px 48px 20px;
    }
}

/* for the Converter page index section */
.converter-index ul {
    list-style: none;
    padding-left: 0;
}

.converter-index li {
    margin: 2px 0;
}

.converter-index a {
    text-decoration: none;
}

.converter-index a:hover {
    text-decoration: underline;
}

.converter-index ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.converter-index li {
    margin: 0;
    /* remove vertical spacing */
    line-height: 1.2;
    /* tighten text spacing */
}

.converter-index a {
    text-decoration: none;
}

.converter-index a:hover {
    text-decoration: underline;
}


/* for the 'Top' link */
.conv-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 2rem;
}

.top-link {
    font-size: 0.9rem;
    text-decoration: none;
    color: #555;
}

.top-link:hover {
    text-decoration: underline;
}