/* Help and training pages (Help.html, Spanner2Help.html and the pages it links to).
   Same look as Spanner2.html: Bootstrap 5, Inter, the teal #107080 and the navy #102030. */

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    color: #212529;
    overflow-x: hidden;
}

/* Menu bar, as on Spanner2.html */
.navbar-custom {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.social-links a {
    color: #6c757d;
    font-size: 1.25rem;
    margin-left: 15px;
    transition: color 0.2s ease;
}
.social-links a:hover,
.social-links a.active {
    color: #107080;
}
.social-links .help-link {
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
}

/* Page header */
.help-hero {
    padding: 40px 0 36px;
    background: linear-gradient(to bottom, #ffffff, #e0e8f0);
    border-bottom: 1px solid #dee2e6;
}
.help-hero .breadcrumb {
    margin-bottom: 14px;
    font-size: 0.9rem;
}
.help-hero .breadcrumb a {
    color: #107080;
    text-decoration: none;
}
.help-hero .breadcrumb a:hover {
    text-decoration: underline;
}
.help-eyebrow {
    color: #107080;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.help-hero h1 {
    color: #102030;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.help-lead {
    max-width: 760px;
    color: #4a5568;
    font-size: 1.15rem;
}

/* "On this page" links */
.help-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
    padding: 0;
    list-style: none;
}
.help-toc a {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid #cfe7eb;
    border-radius: 999px;
    background: #ffffff;
    color: #0c5866;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.help-toc a:hover {
    background: #e3f1f3;
}

/* Topic sections, alternating backgrounds */
.help-section {
    padding: 48px 0;
    scroll-margin-top: 60px;    /* clears the sticky menu bar when a contents link jumps here */
}
.help-section:nth-of-type(even) {
    background-color: #ffffff;
}
.help-section h2 {
    margin-bottom: 14px;
    color: #102030;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.3px;
}
.help-section p,
.help-section li {
    color: #4a5568;
    line-height: 1.65;
}
.help-text {
    max-width: 760px;
}

/* Numbered steps */
.help-steps {
    counter-reset: step;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}
.help-steps li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 40px;
}
.help-steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: 1px;
    left: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #107080;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 26px;
    text-align: center;
}

/* Menu paths, e.g. Edit › Add › New Planogram, and keys */
.help-path {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 6px;
    background: #e3f1f3;
    color: #0c5866;
    font-size: 0.92em;
    font-weight: 600;
    white-space: nowrap;
}
@media (max-width: 575.98px) {
    /* long menu paths wrap on phones rather than pushing the page sideways */
    .help-path { white-space: normal; }
}
.help-section kbd {
    padding: 2px 7px;
    border: 1px solid #ced4da;
    border-bottom-width: 2px;
    border-radius: 5px;
    background: #ffffff;
    color: #102030;
    font-family: inherit;
    font-size: 0.85em;
    font-weight: 600;
}
/* Commands and codes in the text, in the site's teal rather than Bootstrap's pink */
.help-section code {
    color: #0c5866;
    font-size: 0.88em;
    word-break: break-word;
}
.help-icon {
    width: 16px;
    height: 16px;
    vertical-align: -2px;
}

/* Notes and tips */
.help-note {
    margin: 16px 0;
    padding: 14px 18px;
    border-left: 4px solid #107080;
    border-radius: 0 8px 8px 0;
    background: #eef6f7;
    color: #2d3748;
}
.help-note i {
    margin-right: 6px;
    color: #107080;
}

/* Screenshots and diagrams */
.help-figure {
    margin: 0;
}
.help-figure a {
    display: block;
    overflow: hidden;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(16, 32, 48, 0.08);
    cursor: zoom-in;
    transition: box-shadow 0.2s, transform 0.2s;
}
.help-figure a:hover {
    box-shadow: 0 10px 28px rgba(16, 32, 48, 0.14);
    transform: translateY(-2px);
}
.help-figure img {
    display: block;
    width: 100%;
    height: auto;
}
.help-figure.help-figure-narrow img {
    max-height: 420px;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
}
/* Small crops: shown at their own size, never stretched */
.help-figure.help-figure-natural a {
    display: inline-block;
    max-width: 100%;
}
.help-figure.help-figure-natural img {
    width: auto;
    max-width: 100%;
}
.help-figure figcaption {
    margin-top: 10px;
    color: #6c757d;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Topic cards on the help hubs */
.help-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 28px;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.help-card:hover {
    border-color: #cfe7eb;
    box-shadow: 0 10px 28px rgba(16, 32, 48, 0.1);
    color: inherit;
    transform: translateY(-3px);
}
.help-card i.help-card-icon {
    margin-bottom: 14px;
    color: #107080;
    font-size: 1.6rem;
}
.help-card h3 {
    margin-bottom: 10px;
    color: #102030;
    font-size: 1.2rem;
    font-weight: 800;
}
.help-card p {
    flex-grow: 1;
    margin-bottom: 14px;
    color: #4a5568;
}
.help-card .help-card-more {
    color: #107080;
    font-weight: 600;
}
/* A guide still being written: no link, a dashed edge and quieter colours */
.help-card.help-card-soon {
    border: 1px dashed #cbd5e0;
    background: #f8fafc;
}
.help-card.help-card-soon:hover {
    border-color: #cbd5e0;
    box-shadow: none;
    transform: none;
}
.help-card.help-card-soon i.help-card-icon,
.help-card.help-card-soon .help-card-more {
    color: #6c757d;
}
.help-step-number {
    display: inline-block;
    margin-bottom: 6px;
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Previous and next page links */
.help-pager {
    padding: 36px 0;
    border-top: 1px solid #dee2e6;
    background: #ffffff;
}
.help-pager a {
    display: block;
    height: 100%;
    padding: 16px 20px;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    color: #102030;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}
.help-pager a:hover {
    border-color: #107080;
    background: #f4fafb;
}
.help-pager small {
    display: block;
    color: #6c757d;
    font-size: 0.8rem;
}
.help-pager strong {
    color: #107080;
}

/* "Need a hand?" band */
.help-band {
    padding: 44px 0;
    background: linear-gradient(135deg, #107080, #0c5866);
    color: #ffffff;
    text-align: center;
}
.help-band h2 {
    font-weight: 800;
    letter-spacing: -0.5px;
}
.help-band p {
    max-width: 640px;
    margin: 0 auto 22px;
    color: rgba(255, 255, 255, 0.9);
}
.help-band .btn-light {
    color: #0c5866;
    font-weight: 600;
}

/* A process drawn as boxes and arrows (e.g. ProductLibraryBuild.html): steps are teal, files are white with a dashed edge, the
   production library has a solid edge. Runs left to right on wide screens and top to bottom on narrow ones */
.help-flow {
    display: flex;
    align-items: stretch;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.help-flow li {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    line-height: 1.35;
}
.help-flow li strong {
    font-size: 0.95rem;
}
.help-flow li small {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.help-flow .help-flow-step {
    background: #107080;
    color: #ffffff;
}
.help-flow .help-flow-step small {
    color: rgba(255, 255, 255, 0.75);
}
.help-flow .help-flow-file {
    border: 1.5px dashed #107080;
    background: #ffffff;
    color: #102030;
}
.help-flow .help-flow-file small {
    color: #6c757d;
}
.help-flow .help-flow-file.help-flow-production {
    border: 2px solid #102030;
}
.help-flow .help-flow-next {
    background: #e3f1f3;
    color: #0c5866;
}
.help-flow .help-flow-arrow {
    flex: 0 0 auto;
    justify-content: center;
    padding: 0 2px;
    color: #107080;
    font-size: 1.1rem;
}
@media (max-width: 991.98px) {
    .help-flow {
        flex-direction: column;
    }
    .help-flow .help-flow-arrow {
        align-items: center;
        padding: 0;
        transform: rotate(90deg);
    }
}

/* Diagrams drawn in the page (inline SVG, e.g. DemandModel.html): framed like a screenshot, without the zoom link */
.help-diagram {
    margin: 0;
}
.help-diagram .help-diagram-frame {
    padding: 18px;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(16, 32, 48, 0.08);
}
.help-diagram svg {
    display: block;
    width: 100%;
    height: auto;
    font-family: 'Inter', sans-serif;
}
.help-diagram figcaption {
    margin-top: 10px;
    color: #6c757d;
    font-size: 0.875rem;
    line-height: 1.5;
}
/* A sum set out on its own lines, e.g. how range sales are made up */
.help-sum {
    margin: 0 0 1rem;
    padding: 12px 16px;
    border-radius: 8px;
    background: #eef2f6;
    color: #102030;
    font-size: 0.95rem;
    line-height: 1.7;
}
.help-sum strong {
    color: #0c5866;
}

/* A technical aside: smaller and quieter than a note */
.help-aside {
    margin: 0 0 1rem;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #f8f9fa;
    color: #5a6472;
    font-size: 0.82rem;
    line-height: 1.5;
}
.help-aside strong {
    color: #4a5568;
}

/* Utilities, as on Spanner2.html */
.text-cmtk {
    color: #107080;
}
.btn-cmtk {
    border: none;
    background-color: #107080;
    color: #ffffff;
}
.btn-cmtk:hover {
    background-color: #0c5866;
    color: #ffffff;
}
