/* ==========================================================================
   HAMSTER HELP & MANUAL SYSTEM - UNIFIED STYLESHEET
   ========================================================================== */

/* 1. Global Tokens & Root Scope */
:root,
[class*="help-page-"],
.help-shell {
    --help-ink: #222;
    --help-line: #2b2b2b;
    --help-muted: #5d6661;
    --help-panel: #f6f8f7;
    --help-soft: #eef3f1;
    --help-border-light: rgba(43, 43, 43, 0.2);
    --help-red:red;
}

body[class*="help-page-"],
.help-shell {
    background: var(--help-panel);
    color: var(--help-ink);
   font-family: "Inter", "Noto Sans Malayalam", Arial, sans-serif;
}

.help-shell {
    min-height: 100vh;
}

/* 2. Common Header Elements */
.help-header {
    background: #fff;
    border-bottom: 2px solid var(--help-line);
}

.help-title {
    "Space Grotesk", "Noto Sans Malayalam", sans-serif;
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.05;
    margin: 0;
}

.help-kicker {
    color: var(--bs-primary);
    "Space Grotesk", "Noto Sans Malayalam", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.help-page-count {
    color: var(--help-muted);
    font-weight: 600;
}

/* 3. Cards & Container Panels */
.help-card,
.diagram-card,
.display-card,
.remote-card,
.instruction-card,
.warranty-card,
.guide-section {
    background: #fff;
    border: 2px solid var(--help-line);
}

.help-card-heading,
.remote-heading,
.instruction-heading {
    border-bottom: 2px solid var(--help-line);
    padding: 1.25rem 1.5rem;
}

.help-card-heading h2,
.remote-heading h2,
.instruction-heading h2 {
    "Space Grotesk", "Noto Sans Malayalam", sans-serif;
    font-size: clamp(1.3rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
}

.mode-panel,
.table-panel,
.symbols-panel,
.instructions-panel,
.section-panel,
.location-section,
.help-section,
.instruction-section,
.warranty-section,
.intro-panel,
.battery-copy,
.guide-copy {
    padding: 1.5rem;
}

.mode-panel + .mode-panel,
.section-panel + .section-panel,
.location-section + .location-section,
.help-section + .help-section,
.instruction-section + .instruction-section,
.warranty-section + .warranty-section,
.battery-panel {
    border-top: 2px solid var(--help-line);
}

/* 4. Section Headings & Titles */
.section-title,
.symbols-title,
.legend-title,
.step-title {
    "Space Grotesk", "Noto Sans Malayalam", sans-serif;
    font-size: clamp(1.2rem, 2.4vw, 1.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.mode-title {
    display: inline-block;
    "Space Grotesk", "Noto Sans Malayalam", sans-serif;
    font-size: clamp(1.35rem, 2.8vw, 2rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
    padding-bottom: 0.2rem;
    position: relative;
    text-transform: uppercase;
}

.mode-title::after {
    background: var(--help-line);
    bottom: 0;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    width: 100%;
}

.section-label {
    align-items: center;
    border: 1px solid #8a8a8a;
    border-left: 3px solid var(--help-line);
    display: inline-flex;
    font-family: "Space Grotesk", "Noto Sans Malayalam", sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    padding: 0.45rem 2rem 0.45rem 0.8rem;
}

.guide-label {
    background: var(--bs-primary);
    color: #fff;
    display: inline-flex;
    font-family: "Space Grotesk", "Noto Sans Malayalam", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1rem;
    padding: 0.55rem 0.8rem;
}

/* 5. Guideline Grids & Card Layouts */
.guideline-grid {
    background: #fff;
    border-left: 2px solid var(--help-line);
    border-top: 2px solid var(--help-line);
}

.guideline-grid .row {
    display: flex;
    flex-wrap: wrap;
}

.guideline-grid .col {
    display: flex;
}

.guideline-card {
    border-bottom: 2px solid var(--help-line);
    border-right: 2px solid var(--help-line);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    min-height: 300px;
    padding: 1.25rem;
}

.guideline-card p {
    font-size: 1rem;
    line-height: 1.45;
    margin-bottom: 0;
}

.guideline-visual {
    align-items: center;
    display: flex;
    justify-content: center;
    height: 160px;
    margin: 1rem 0;
    overflow: hidden;
}

/* 6. Diagrams & Images */
.diagram-panel,
.display-panel,
.remote-diagram-panel,
.battery-image-panel {
    align-items: center;
    background: #fff;
    display: flex;
    justify-content: center;
    padding: 1.5rem;
}

.diagram-frame {
    background: #fff;
    border: 1px solid rgba(34, 34, 34, 0.35);
    margin: 0 auto;
    overflow: hidden;
}

.diagram-frame.is-drain { max-width: 377px; }
.diagram-frame.is-pump { max-width: 560px; }
.diagram-frame.is-valve-wide { max-width: 533px; }
.diagram-frame.is-valve-narrow { max-width: 310px; }

 
.diagram-img {
    cursor: zoom-in;
    max-height: 380px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.25s ease, filter 0.25s ease;
}

 .guideline-img {
            cursor: zoom-in;
            max-height: 98%;
            object-fit: contain;
            transition: transform .25s ease, filter .25s ease;
            width: 100%;
        }


.guideline-img:hover,
.guideline-img:focus,
.diagram-img:hover,
.diagram-img:focus {
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.16));
    transform: translateY(-2px) scale(1.02);
}

.image-caption,
.caption {
    color: var(--help-muted);
    font-size: 0.88rem;
    font-weight: 600;
    margin-top: 0.6rem;
    text-align: center;
}

/* 7. Lists & Bullet Formats */
.mode-list,
.logic-list,
.instruction-list,
.precaution-list,
.note-list,
.notes-list,
.terms-list,
.number-list,
.battery-steps,
.diamond-list,
.legend-list,
.symbol-list {
    display: grid;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mode-list li,
.instruction-list li,
.precaution-list li,
.note-list li,
.notes-list li,
.terms-list li,
.number-list li,
.battery-steps li {
    align-items: flex-start;
    display: flex;
    gap: 0.75rem;
    line-height: 1.5;
}

.mode-bullet,
.bullet-mark,
.note-mark {
    color: var(--bs-primary);
    flex: 0 0 auto;
    font-weight: 700;
}

.diamond-bullet,
.diamond-list li::before {
    color: var(--help-ink);
    content: "◆";
    flex: 0 0 auto;
    font-size: 0.85rem;
}

.step-number,
.note-number {
    align-items: center;
    background: var(--bs-primary);
    color: #fff;
    display: inline-flex;
    flex: 0 0 32px;
    font-family: "Space Grotesk", "Noto Sans Malayalam", sans-serif;
    font-weight: 700;
    height: 32px;
    justify-content: center;
}

.legend-list li {
    align-items: center;
    background: var(--bs-primary);
    color: #fff;
    display: flex;
    font-size: 0.95rem;
    font-weight: 700;
    gap: 0.55rem;
    padding: 0.55rem 0.75rem;
}

.symbol-item {
    align-items: center;
    border: 1px solid var(--help-border-light);
    display: flex;
    gap: 1rem;
    padding: 0.85rem 1rem;
}

.symbol-icon {
    align-items: center;
    color: var(--help-ink);
    display: flex;
    flex: 0 0 72px;
    font-size: 2rem;
    font-weight: 700;
    justify-content: center;
}

 .symbol-label {
            font-size: 1.15rem;
            font-weight: 600;
            line-height: 1.3;
        }

        .icon-power {
            border: 4px solid var(--help-ink);
            border-radius: 50%;
            height: 46px;
            position: relative;
            width: 46px;
        }

        .icon-power::before {
            background: #fff;
            content: "";
            height: 18px;
            left: 15px;
            position: absolute;
            top: -6px;
            width: 9px;
        }

        .icon-power::after {
            background: var(--help-ink);
            border-radius: 10px;
            content: "";
            height: 26px;
            left: 18px;
            position: absolute;
            top: -8px;
            width: 6px;
        }

        .icon-clock {
            border: 4px solid var(--help-ink);
            border-radius: 50%;
            height: 48px;
            position: relative;
            width: 48px;
        }

        .icon-clock::before,
        .icon-clock::after {
            background: var(--help-ink);
            content: "";
            left: 21px;
            position: absolute;
            top: 11px;
        }

        .icon-clock::before {
            height: 15px;
            width: 4px;
        }

        .icon-clock::after {
            height: 4px;
            top: 23px;
            width: 14px;
        }

        .icon-wifi {
            height: 52px;
            position: relative;
            width: 60px;
        }

        .icon-wifi span {
            border: 4px solid var(--help-ink);
            border-bottom: 0;
            border-left-color: transparent;
            border-right-color: transparent;
            border-radius: 60px 60px 0 0;
            left: 50%;
            position: absolute;
            transform: translateX(-50%);
        }

        .icon-wifi span:nth-child(1) {
            height: 44px;
            top: 4px;
            width: 58px;
        }

        .icon-wifi span:nth-child(2) {
            height: 30px;
            top: 18px;
            width: 40px;
        }

        .icon-wifi::after {
            background: var(--help-ink);
            border-radius: 50%;
            bottom: 3px;
            content: "";
            height: 9px;
            left: 25px;
            position: absolute;
            width: 9px;
        }

        .icon-moon {
            background: var(--help-ink);
            border-radius: 50%;
            height: 46px;
            position: relative;
            width: 46px;
        }

        .icon-moon::before {
            background: #fff;
            border-radius: 50%;
            content: "";
            height: 42px;
            left: 16px;
            position: absolute;
            top: -2px;
            width: 42px;
        }


  .instructions-panel {
            padding: 1.5rem;
        }

        .instructions-list {
            display: grid;
            gap: .65rem;
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .instructions-list li {
            align-items: flex-start;
            border-bottom: 1px solid rgba(43, 43, 43, .18);
            display: flex;
            gap: .75rem;
            line-height: 1.4;
            padding-bottom: .65rem;
        }

        .instructions-list li:last-child {
            border-bottom: 0;
            padding-bottom: 0;
        }

        .step-number {
            align-items: center;
            background: var(--bs-primary);
            color: #fff;
            display: inline-flex;
            flex: 0 0 34px;
            font-family: "Space Grotesk", "Noto Sans Malayalam", sans-serif;
            font-weight: 700;
            height: 34px;
            justify-content: center;
            line-height: 1;
        }

        .instruction-text {
            font-size: .98rem;
        }

/* 8. Callout Boxes */
.logic-box,
.instruction-box,
.caution-box,
.caution-panel {
    background: #f9fbfa;
    border: 1px solid var(--help-border-light);
    padding: 1rem;
}

.caution-title {
    font-family: "Space Grotesk", "Noto Sans Malayalam", sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.caution-rule {
    border: 0;
    border-top: 1px solid var(--help-line);
    margin: 0.75rem 0;
}

.notes-panel {
    border-top: 2px solid var(--help-line);
    padding: 1rem 1.5rem;
}

.notes-panel p,
.guide-note {
    color: var(--help-muted);
    font-size: 0.95rem;
    line-height: 1.45;
}

/* 9. Tables */
.mode-table-wrap,
.trouble-table-wrap,
.spec-table-wrap,
.pipe-table-wrap,
.fault-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mode-table,
.trouble-table,
.spec-table,
.pipe-table,
.fault-table {
    border-collapse: collapse;
    margin: 0;
    width: 100%;
}

.mode-table th, .mode-table td,
.trouble-table th, .trouble-table td,
.spec-table th, .spec-table td,
.pipe-table th, .pipe-table td,
.fault-table td {
    border: 1px solid #7b7b7b;
    padding: 0.75rem;
    text-align: center;
    vertical-align: middle;
}

.mode-table thead th,
.trouble-table thead th {
    background: var(--help-line);
    color: #fff;
    font-family: "Space Grotesk", "Noto Sans Malayalam", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

.fault-code {
    border-right: 1px solid #8a8a8a;
    font-family: "Space Grotesk", "Noto Sans Malayalam", sans-serif;
    font-weight: 700;
    width: 90px;
}

.available { color: var(--bs-primary); font-size: 1.25rem; font-weight: 800; }
.unavailable { color: #7a2323; font-size: 1.25rem; font-weight: 800; }

/* 10. CSS Warning & Status Symbols */
.symbol-row {
    align-items: center;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.warning-symbol {
    align-items: center;
    color: var(--help-line);
    display: flex;
    font-size: 2rem;
    font-weight: 800;
    height: 76px;
    justify-content: center;
    position: relative;
    width: 86px;
}

.warning-symbol::before {
    border-left: 43px solid transparent;
    border-right: 43px solid transparent;
    border-bottom: 74px solid var(--help-line);
    content: "";
    position: absolute;
    top: 0;
}

.warning-symbol::after {
    border-left: 34px solid transparent;
    border-right: 34px solid transparent;
    border-bottom: 59px solid #fff;
    content: "";
    position: absolute;
    top: 9px;
}

.warning-symbol span {
    position: relative;
    z-index: 1;
}

.round-symbol {
    align-items: center;
    border: 3px solid #4a4a4a;
    border-radius: 50%;
    display: flex;
    font-family: "Space Grotesk", "Noto Sans Malayalam", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    height: 76px;
    justify-content: center;
    width: 76px;
}

.no-symbol {
    border: 3px solid var(--help-red);
    border-radius: 50%;
    height: 64px;
    position: relative;
    width: 64px;
    
}

.no-symbol::after {
    background: var(--help-red);
    content: "";
    height: 3px;
    left: 11px;
    position: absolute;
    top: 29px;
    transform: rotate(45deg);
    width: 40px;
}

/* 11. Modal Popup & Responsive Controls */
.modal.help-image-modal .modal-content {
    background: #fff;
    border: 0;
    border-radius: 8px;
}

.help-expanded-img {
    max-height: 78vh;
    object-fit: contain;
    width: 100%;
}

@media (max-width: 991.98px) {
    .remote-diagram-panel,
    .battery-image-panel,
    .diagram-panel {
        border-left: 0;
        border-top: 2px solid var(--help-line);
        min-height: auto;
    }
}

@media (max-width: 575.98px) {
    .help-card-heading,
    .mode-panel,
    .table-panel,
    .symbols-panel,
    .instructions-panel,
    .section-panel,
    .location-section,
    .help-section,
    .instruction-section,
    .warranty-section,
    .logic-box,
    .instruction-box {
        padding: 1rem;
    }
    
    .guideline-card {
        min-height: auto;
        padding: 1rem;
    }
}
/* Index Page */
 .index-wrapper {
        max-width: 900px;
        margin: 40px auto;
    }

    .index-card {
        background: #fff;
        border: 0;
        border-radius: 14px;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
        overflow: hidden;
    }

    .index-header {
        background: #0d6b68;
        color: #fff;
        padding: 25px 30px;
    }

    .index-header h1 {
        color: #fff;
        margin: 0;
        font-size: 28px;
        font-weight: 700;
    }

    .index-header p {
        margin: 6px 0 0;
        opacity: 0.9;
    }

    .index-body {
        padding: 25px 30px;
    }

    /* Main OL */
    .main-list {
        margin: 0;
        padding: 0;
        list-style: none;
        counter-reset: main;
    }

    .main-list > li {
        counter-increment: main;
        margin-bottom: 25px;
    }

    .main-list > li:last-child {
        margin-bottom: 0;
    }

    /* Main heading */
    .main-heading {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #0b5b59;
        font-size: 19px;
        font-weight: 700;
        padding-bottom: 8px;
        border-bottom: 2px solid #e9ecef;
        margin-bottom: 8px;
    }

    .main-heading::before {
        content: counter(main);
        min-width: 30px;
        height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #157975;
        color: #fff;
        border-radius: 50%;
        font-size: 14px;
        flex-shrink: 0;
    }

    /* Sub OL */
    .sub-list {
        margin: 0;
        padding: 0 0 0 40px;
        list-style: none;
        counter-reset: sub;
    }

    .sub-list > li {
        counter-increment: sub;
        margin: 2px 0;
    }

    .sub-list > li > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
        padding: 9px 12px;
        color: #495057;
        text-decoration: none;
        border-radius: 7px;
        transition: all 0.2s ease;
    }

    .sub-list > li > a:hover {
        color: #0b5b59;
        background: #f0f6ff;
        padding-left: 17px;
    }

    /* Automatic 1.1, 1.2, 1.3 etc. */
    .sub-list > li > a::before {
        content: counter(main) "." counter(sub);
        color: #0b5b59;
        font-weight: 600;
        min-width: 35px;
        flex-shrink: 0;
    }

    .item-title {
        flex: 1;
    }

    .page-number {
        flex-shrink: 0;
        color: #6c757d;
        font-size: 13px;
        white-space: nowrap;
    }

    .index-divider {
        margin: 25px 0;
        border-top: 1px solid #dee2e6;
    }

    @media (max-width: 576px) {
        .index-wrapper {
            margin: 15px auto;
        }

        .index-header,
        .index-body {
            padding: 20px;
        }

        .index-header h1 {
            font-size: 23px;
        }

        .sub-list {
            padding-left: 5px;
        }

        .sub-list > li > a {
            padding: 8px 5px;
        }
    }