/* ARISE — Counsellor's Hub environment. Batch CH1 (2026-10-28).
   Namespaced με "chb-" prefix, δεν αγγίζει κανένα υπάρχον cs-/es-/lam- selector.
   Δομικά μοτίβο 1:1 από local-admin.css (shell + sidebar + top nav) — ίδιες
   ΠΡΑΓΜΑΤΙΚΕΣ μεταβλητές από variables.css (--primary-dark-blue, --text-dark,
   --bg-light), καμία εφευρεμένη τιμή χρώματος. Το wireframe
   (counsellor-hub-wireframe.html) δίνει μόνο διάταξη/ιεραρχία — το χρωματικό
   θέμα ακολουθεί το υπόλοιπο έργο (ρητό αίτημα Μάκη: "σχεδιαστικά θα
   ακολουθεί το γενικό UI"). */

/* ---------- Shell (sidebar + content, ίδιο grid idiom με lam-shell) ---------- */
.chb-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 16px 80px;
}

.chb-content {
    min-width: 0;
}

.chb-sidebar-col {
    min-width: 0;
}

@media (max-width: 900px) {
    .chb-shell { grid-template-columns: 1fr; }
}

/* ---------- Sidebar ---------- */
.chb-sidebar {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(20, 30, 60, .06);
    padding: 10px;
    position: sticky;
    top: 16px;
}

.chb-list {
    list-style: none;
    margin: 0 0 4px;
    padding: 0;
}

.chb-group-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #5b6b65; /* σκουρότερο από το #8B9A94 του lam-group-label: ≥4.5:1 σε λευκό (WCAG AA) */
    font-weight: 700;
    margin: 16px 12px 6px;
}

.chb-item {
    margin-bottom: 2px;
}

.chb-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    background: none;
    border: none;
    border-radius: 8px;
    font: inherit;
    font-size: 13.5px;
    font-weight: 500;
    text-align: left;
    color: var(--text-dark, #323232);
    text-decoration: none;
    cursor: pointer;
    transition: background .12s ease, color .12s ease;
}

.chb-link:hover,
.chb-link:focus-visible {
    background: var(--bg-light, #f3f3f3);
    color: var(--primary-dark-blue, #1a479b);
    outline: none;
}

.chb-link:focus-visible {
    outline: 3px solid var(--primary-dark-blue, #1a479b);
    outline-offset: 2px;
}

.chb-item.chb-active > .chb-link {
    background: rgba(26, 71, 155, .08);
    color: var(--primary-dark-blue, #1a479b);
    font-weight: 700;
}

.chb-icon {
    width: 16px;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
    opacity: .85;
}

/* Ενότητες που χτίζονται σε επόμενο batch — ίδια αρχή με lam-disabled
   (dashed border, not-allowed), ΟΧΙ νεκρό link. */
.chb-link.chb-disabled {
    opacity: .6;
    cursor: not-allowed;
    border: 1px dashed #c9d2e0;
}

.chb-link.chb-disabled:hover {
    background: none;
    color: var(--text-dark, #323232);
}

.chb-soon-tag {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .02em;
    color: #5b6b65;
    background: var(--bg-light, #f3f3f3);
    border-radius: 999px;
    padding: 2px 8px;
}

.chb-logout-wrap {
    margin-top: 10px;
    padding-top: 6px;
    border-top: 1px solid var(--border, #eaecf0);
}

.chb-link.chb-logout {
    color: #b3261e;
}

/* ---------- Top nav (partials/counsellor_menu.php) ----------
   Reuse candidate-nav-* JS/markup (submenu toggle) — μόνο τα δικά μας
   chb-nav-* selectors χρειάζονται εδώ. */
.chb-nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.chb-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark, #323232);
    background: none;
    border: none;
    text-decoration: none;
    cursor: pointer;
}

.chb-nav-link:hover {
    color: var(--primary-dark-blue, #1a479b);
}

.chb-nav-icon {
    font-size: 13px;
    opacity: .8;
}

.chb-nav-logout .chb-nav-link {
    color: #b3261e;
}

.chb-nav-disabled {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: .6;
    cursor: not-allowed;
}

/* ---------- Page / Dashboard ---------- */
.chb-page {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.chb-welcome {
    background: var(--primary-dark-blue, #1a479b);
    color: #fff;
    border-radius: 12px;
    padding: 24px 28px;
}

.chb-welcome-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    margin-bottom: 6px;
    opacity: .9;
}

.chb-welcome-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #fff;
}

.chb-welcome-text {
    margin: 0;
    max-width: 640px;
    font-size: 14px;
    line-height: 1.55;
    opacity: .95;
}

.chb-section-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--text-dark, #323232);
}

.chb-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 1100px) {
    .chb-card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .chb-card-grid { grid-template-columns: 1fr; }
}

.chb-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--border, #eaecf0);
    border-radius: 12px;
    padding: 18px 20px;
    color: var(--text-dark, #323232);
    text-decoration: none;
}

.chb-card-link:hover,
.chb-card-link:focus-visible {
    border-color: var(--primary-dark-blue, #1a479b);
    box-shadow: 0 2px 10px rgba(20, 30, 60, .08);
    color: var(--text-dark, #323232);
}

.chb-card-link:focus-visible {
    outline: 3px solid var(--primary-dark-blue, #1a479b);
    outline-offset: 2px;
}

.chb-card-disabled {
    border-style: dashed;
    border-color: #c9d2e0;
    cursor: not-allowed;
}

.chb-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(26, 71, 155, .08);
    color: var(--primary-dark-blue, #1a479b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.chb-card-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}

.chb-card-desc {
    margin: 0;
    flex: 1;
    font-size: 13px;
    line-height: 1.5;
    color: #4b5563;
}

.chb-card-action {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-dark-blue, #1a479b);
}

.chb-card .chb-soon-tag {
    margin-left: 0;
    align-self: flex-start;
}

/* =====================================================================
   CH2 — Γνωσιακή Βάση (2026-10-28)
   ===================================================================== */

/* ---------- Search (dashboard card + σελίδα) ---------- */
.chb-search-card {
    background: #fff;
    border: 1px solid var(--border, #eaecf0);
    border-radius: 12px;
    padding: 22px 24px;
}

.chb-search-card .chb-section-title { margin-bottom: 4px; }

.chb-search-hint {
    margin: 0 0 14px;
    font-size: 13.5px;
    color: #4b5563;
}

.chb-search-form {
    display: flex;
    gap: 10px;
}

.chb-search-input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    font: inherit;
    font-size: 14.5px;
    color: var(--text-dark, #323232);
    background: #fff;
    border: 1.5px solid var(--primary-dark-blue, #1a479b);
    border-radius: 10px;
}

.chb-search-input:focus-visible {
    outline: 3px solid var(--primary-dark-blue, #1a479b);
    outline-offset: 2px;
}

.chb-search-btn {
    padding: 0 20px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--primary-dark-blue, #1a479b);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
}

.chb-search-btn:hover,
.chb-search-btn:focus-visible { background: #14397c; }

.chb-search-btn:focus-visible {
    outline: 3px solid var(--primary-dark-blue, #1a479b);
    outline-offset: 2px;
}

@media (max-width: 520px) {
    .chb-search-form { flex-direction: column; }
    .chb-search-btn { padding: 12px 20px; }
}

/* ---------- Sidebar: fancytree (virtual φάκελοι) ---------- */
.chb-kb-tree {
    margin: 2px 0 8px 12px;
    max-height: 340px;
    overflow: auto;
    font-size: 13px;
}

.chb-kb-tree ul.fancytree-container {
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    font-size: 13px;
    outline: none;
}

.chb-kb-tree ul.fancytree-container:focus-visible {
    outline: 3px solid var(--primary-dark-blue, #1a479b);
    outline-offset: 2px;
}

.chb-kb-tree span.fancytree-title {
    color: var(--text-dark, #323232);
}

.chb-kb-tree-empty {
    margin: 4px 0;
    font-size: 12.5px;
    color: #5b6b65;
}

/* ---------- Σελίδα Γνωσιακής Βάσης ---------- */
.chb-page-title {
    font-size: 21px;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark, #323232);
}

.chb-page-subtitle {
    font-size: 13.5px;
    color: #4b5563;
    margin: 4px 0 0;
}

.chb-kb-note {
    background: #fff;
    border: 1px dashed #c9d2e0;
    border-radius: 12px;
    padding: 18px 20px;
    font-size: 14px;
    color: #4b5563;
}

.chb-kb-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: #4b5563;
}

.chb-kb-crumbs li + li::before {
    content: "/";
    margin-right: 8px;
    color: #9aa3ad;
}

.chb-kb-crumbs a {
    color: var(--primary-dark-blue, #1a479b);
    font-weight: 600;
    text-decoration: none;
}

.chb-kb-crumbs a:hover,
.chb-kb-crumbs a:focus-visible { text-decoration: underline; }

.chb-kb-content {
    background: #fff;
    border: 1px solid var(--border, #eaecf0);
    border-radius: 12px;
    padding: 20px 22px;
    min-height: 120px;
}

.chb-kb-content[aria-busy="true"] { opacity: .6; }

.chb-kb-heading {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 14px;
    color: var(--text-dark, #323232);
}

.chb-kb-heading:focus { outline: none; }

.chb-kb-subheading {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #5b6b65;
    margin: 18px 0 10px;
}

.chb-kb-message,
.chb-kb-hint {
    margin: 8px 0;
    font-size: 14px;
    color: #4b5563;
}

.chb-kb-error { color: #b3261e; }

.chb-kb-results-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.chb-kb-results-head .chb-kb-heading { margin-bottom: 8px; }

.chb-kb-folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.chb-kb-folder {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    text-align: left;
    color: var(--text-dark, #323232);
    background: var(--bg-light, #f3f3f3);
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
}

.chb-kb-folder:hover,
.chb-kb-folder:focus-visible {
    border-color: var(--primary-dark-blue, #1a479b);
    color: var(--primary-dark-blue, #1a479b);
}

.chb-kb-folder:focus-visible {
    outline: 3px solid var(--primary-dark-blue, #1a479b);
    outline-offset: 2px;
}

.chb-kb-file-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chb-kb-file {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--border, #eaecf0);
    border-radius: 10px;
}

.chb-kb-file-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(26, 71, 155, .08);
    color: var(--primary-dark-blue, #1a479b);
    font-size: 17px;
}

.chb-kb-file-body { flex: 1; min-width: 0; }

.chb-kb-file-title {
    font-size: 14.5px;
    font-weight: 700;
    margin: 0 0 2px;
    overflow-wrap: anywhere;
}

.chb-kb-file-desc {
    margin: 0 0 4px;
    font-size: 13px;
    line-height: 1.5;
    color: #4b5563;
    overflow-wrap: anywhere;
}

.chb-kb-file-meta {
    margin: 0;
    font-size: 12px;
    color: #5b6b65;
}

.chb-kb-file-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex-shrink: 0;
}

.chb-kb-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: var(--primary-dark-blue, #1a479b);
    border: 1px solid var(--primary-dark-blue, #1a479b);
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
}

.chb-kb-btn:hover,
.chb-kb-btn:focus-visible { background: #14397c; color: #fff; }

.chb-kb-btn-ghost {
    color: var(--primary-dark-blue, #1a479b);
    background: #fff;
}

.chb-kb-btn-ghost:hover,
.chb-kb-btn-ghost:focus-visible { background: var(--bg-light, #f3f3f3); color: var(--primary-dark-blue, #1a479b); }

.chb-kb-btn:focus-visible {
    outline: 3px solid var(--primary-dark-blue, #1a479b);
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .chb-kb-file { flex-wrap: wrap; }
    .chb-kb-file-actions { width: 100%; }
}

/* =====================================================================
   CH3 — Εγχειρίδιο Συμβούλων + Training Events (2026-10-28)
   ===================================================================== */

/* ---------- Manual ---------- */
.chb-manual-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.chb-manual-pdf-btn { flex-shrink: 0; }

.chb-manual-pdf-meta {
    font-size: 11.5px;
    font-weight: 500;
    opacity: .9;
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, .5);
}

.chb-manual-eyebrow {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--primary-dark-blue, #1a479b);
    margin: 0 0 2px;
}

.chb-manual-num { font-weight: 700; font-size: 17px; }

.chb-manual-toc {
    background: #fff;
    border: 1px solid var(--border, #eaecf0);
    border-radius: 12px;
    padding: 14px 20px;
}

.chb-manual-toc ul { margin: 0; padding-left: 18px; columns: 2; column-gap: 28px; }
.chb-manual-toc li { font-size: 13.5px; margin: 3px 0; break-inside: avoid; }
.chb-manual-toc a { color: var(--primary-dark-blue, #1a479b); }
.chb-manual-toc .chb-kb-subheading { margin-top: 0; }

@media (max-width: 700px) { .chb-manual-toc ul { columns: 1; } }

.chb-manual-body {
    background: #fff;
    border: 1px solid var(--border, #eaecf0);
    border-radius: 12px;
    padding: 28px 32px;
    font-size: 17px;                /* T141: πιο άνετο μέγεθος ανάγνωσης (ήταν 15px) */
    line-height: 1.75;
    color: var(--text-dark, #323232);
    overflow-wrap: anywhere;
}

.chb-manual-body h1 { font-size: 26px; margin: 8px 0 14px; }
.chb-manual-body h2 { font-size: 23px; line-height: 1.3; margin: 34px 0 12px; padding-top: 10px; border-top: 1px solid var(--border, #eaecf0); }
.chb-manual-body h3 { font-size: 19px; line-height: 1.35; margin: 26px 0 10px; }
.chb-manual-body h4,
.chb-manual-body h5 { font-size: 15px; margin: 18px 0 6px; }
.chb-manual-body p { margin: 0 0 12px; }
.chb-manual-body ul,
.chb-manual-body ol { margin: 0 0 14px; padding-left: 24px; }
.chb-manual-body li { margin: 4px 0; }
.chb-manual-body li > p { margin: 0 0 6px; }
.chb-manual-body blockquote { margin: 0; }
.chb-manual-body a { color: var(--primary-dark-blue, #1a479b); text-decoration: underline; }

.chb-manual-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 12px auto;
    border: 1px solid var(--border, #eaecf0);
    border-radius: 8px;
}

/* T141: ο πίνακας ΜΕΝΕΙ display:table (το display:block έσβηνε τη σημασιολογία πίνακα για screen readers)· το οριζόντιο scroll το κάνει το .chb-table-wrap */
.chb-manual-body table {
    display: table;
    min-width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
}

.chb-manual-body th,
.chb-manual-body td {
    border: 1px solid var(--border, #eaecf0);
    padding: 8px 10px;
    vertical-align: top;
    text-align: left;
}

.chb-manual-body th { background: var(--bg-light, #f3f3f3); font-weight: 700; }

.chb-manual-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* ---------- Training Events ---------- */
.chb-events-tz {
    margin: 6px 0 0;
    font-size: 12.5px;
    color: #5b6b65;
}

.chb-events-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }

.chb-event-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
}

.chb-event-when {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 62px;
    padding: 6px 8px;
    border-radius: 10px;
    background: rgba(26, 71, 155, .08);
    color: var(--primary-dark-blue, #1a479b);
}

.chb-event-day { font-size: 22px; font-weight: 700; line-height: 1.1; }
.chb-event-month { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.chb-event-main { flex: 1; min-width: 0; }
.chb-event-title { font-size: 15px; font-weight: 700; margin: 0 0 2px; overflow-wrap: anywhere; }
.chb-event-meta { margin: 0; font-size: 13px; color: #4b5563; }

@media (max-width: 560px) {
    .chb-event-item { flex-wrap: wrap; }
    .chb-event-open { width: 100%; justify-content: center; }
}

.chb-calendar {
    --fc-button-bg-color: var(--primary-dark-blue, #1a479b);
    --fc-button-border-color: var(--primary-dark-blue, #1a479b);
    --fc-button-hover-bg-color: #14397c;
    --fc-button-hover-border-color: #14397c;
    --fc-button-active-bg-color: #0f2d63;
    --fc-button-active-border-color: #0f2d63;
    --fc-event-bg-color: var(--primary-dark-blue, #1a479b);
    --fc-event-border-color: var(--primary-dark-blue, #1a479b);
    --fc-today-bg-color: rgba(26, 71, 155, .07);
    --fc-border-color: var(--border, #eaecf0);
    background: #fff;
    border: 1px solid var(--border, #eaecf0);
    border-radius: 12px;
    padding: 16px;
    font-size: 14px;
}

.chb-calendar .fc-toolbar-title { font-size: 18px; }
.chb-calendar .fc-event { cursor: pointer; }
.chb-calendar .fc-event:focus-visible { outline: 3px solid var(--text-dark, #323232); outline-offset: 1px; }
.chb-calendar a { color: inherit; text-decoration: none; }

/* modal (jquery-confirm light) — λεπτομέρειες event */
.chb-ev-meta { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0 0 12px; font-size: 14px; }
.chb-ev-meta dt { font-weight: 700; color: #5b6b65; }
.chb-ev-meta dd { margin: 0; overflow-wrap: anywhere; }
.chb-ev-desc { font-size: 14px; line-height: 1.6; margin: 0 0 14px; }
.chb-ev-agenda-title { font-size: 15px; font-weight: 700; margin: 6px 0 8px; }
.chb-ev-table-wrap { overflow-x: auto; margin-bottom: 14px; }

.chb-ev-agenda {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.chb-ev-agenda caption {
    caption-side: top;
    text-align: left;
    font-weight: 700;
    padding: 4px 0 6px;
    color: var(--text-dark, #323232);
}

.chb-ev-agenda th,
.chb-ev-agenda td {
    border: 1px solid var(--border, #eaecf0);
    padding: 6px 9px;
    text-align: left;
    vertical-align: top;
}

.chb-ev-agenda th { background: var(--bg-light, #f3f3f3); }
.chb-ev-agenda td:first-child { white-space: nowrap; }

/* =====================================================================
   CH3.1 — Micro-learning cards (wireframe: κάρτες στο main area)
   ===================================================================== */
.chb-ml-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.chb-ml-head .chb-section-title { margin: 0; }

.chb-ml-all {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--primary-dark-blue, #1a479b);
    text-decoration: none;
    white-space: nowrap;
}

.chb-ml-all:hover,
.chb-ml-all:focus-visible { text-decoration: underline; }

.chb-ml-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 1100px) { .chb-ml-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .chb-ml-grid { grid-template-columns: 1fr; } }

.chb-ml-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--border, #eaecf0);
    border-radius: 12px;
    padding: 18px 20px;
    min-width: 0;
}

.chb-ml-badge {
    align-self: flex-start;
    min-width: 34px;
    padding: 5px 9px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-dark-blue, #1a479b);
    background: rgba(26, 71, 155, .08);
    border-radius: 8px;
}

.chb-ml-name {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    overflow-wrap: anywhere;
}

.chb-ml-desc {
    margin: 0;
    flex: 1;
    font-size: 13px;
    line-height: 1.55;
    color: #4b5563;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.chb-ml-partner,
.chb-ml-meta {
    margin: 0;
    font-size: 12px;
    color: #5b6b65;
    overflow-wrap: anywhere;
}

.chb-ml-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* =====================================================================
   T141 (2026-10-29) — Εγχειρίδιο: ανάγνωση φιλική σε ανθρώπους
   (αναζήτηση, «Σε αυτή τη σελίδα» με ένδειξη θέσης, πρόοδος, εικόνες, πίνακες, εκτύπωση).
   Μόνο υπάρχουσες μεταβλητές: --primary-dark-blue --teal --text-dark --bg-light --light-blue-text --border (με fallback).
   ===================================================================== */
.chb-sr-only {
    position: absolute !important;
    width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.chb-skip-link {
    position: absolute; left: -9999px; top: 8px; z-index: 2000;
    background: #fff; color: var(--primary-dark-blue, #1a479b);
    padding: 10px 16px; border: 2px solid var(--primary-dark-blue, #1a479b); border-radius: 8px; font-weight: 700;
}
.chb-skip-link:focus { left: 8px; }

/* μπάρα προόδου ανάγνωσης (διακοσμητική — aria-hidden) */
.chb-manual-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 1500; pointer-events: none; }
.chb-manual-progress > span { display: block; height: 100%; width: 0; background: var(--teal, #42bfb4); transition: width .15s linear; }

.chb-manual-time { font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--text-dark, #323232); font-size: 13px; }
.chb-manual-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- Αναζήτηση ---------- */
.chb-manual-find { margin: 0; }
.chb-search-label { display: block; font-weight: 700; font-size: 15px; margin: 0 0 6px; }
.chb-search-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chb-search-input {
    flex: 1 1 280px; min-height: 46px; padding: 10px 14px; font: inherit; font-size: 16px;
    color: var(--text-dark, #323232); background: #fff; border: 2px solid #6b7280; border-radius: 10px;
}
.chb-search-btn { min-height: 46px; padding: 8px 20px; font-size: 15px; }
.chb-search-input:focus-visible,
.chb-search-btn:focus-visible,
.chb-skip-link:focus-visible,
.chb-top-btn:focus-visible,
.chb-zoom-btn:focus-visible,
.chb-anchor:focus-visible,
.chb-table-wrap:focus-visible,
.chb-toc summary:focus-visible,
.chb-search-hit:focus-visible,
.chb-lightbox-close:focus-visible {
    outline: 3px solid var(--light-blue-text, #0f6ea3);
    outline-offset: 2px;
}
.chb-search-results { margin-top: 14px; }
.chb-search-count { font-size: 16px; margin: 0 0 10px; }
.chb-search-count:focus { outline: none; }
.chb-search-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.chb-search-hit {
    display: flex; flex-direction: column; gap: 3px; padding: 12px 16px;
    background: #fff; border: 1px solid var(--border, #eaecf0); border-left: 4px solid var(--primary-dark-blue, #1a479b);
    border-radius: 10px; color: var(--text-dark, #323232); text-decoration: none;
}
.chb-search-hit:hover { background: var(--bg-light, #f3f3f3); }
.chb-search-sec { font-size: 12.5px; font-weight: 700; color: var(--primary-dark-blue, #1a479b); }
.chb-search-head { font-size: 16px; }
.chb-search-snip { font-size: 15px; line-height: 1.55; }
.chb-search-snip mark,
.chb-manual-body mark.chb-hit { background: #ffe58a; color: #000; padding: 0 2px; border-radius: 3px; }

.chb-continue { margin: 0; }
.chb-continue-link { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 15px; padding: 12px 18px; }

.chb-hits-bar {
    display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 0 0 14px; padding: 10px 14px;
    background: #fffbe6; border: 1px solid #f1d98a; border-radius: 10px; font-size: 15px;
}

/* ---------- Διάταξη ανάγνωσης: «Σε αυτή τη σελίδα» + κείμενο ---------- */
.chb-manual-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.chb-manual-main { min-width: 0; display: flex; flex-direction: column; gap: 22px; }

.chb-toc { background: #fff; border: 1px solid var(--border, #eaecf0); border-radius: 12px; padding: 10px 16px; }
.chb-toc summary { font-weight: 700; font-size: 15px; cursor: pointer; padding: 6px 0; }
.chb-toc-list, .chb-toc-sub { list-style: none; margin: 6px 0 0; padding: 0; }
.chb-toc-sub { margin: 2px 0 6px 14px; border-left: 2px solid var(--border, #eaecf0); padding-left: 10px; }
.chb-toc-list li { margin: 2px 0; }
.chb-toc-list a {
    display: block; padding: 5px 8px; font-size: 14px; line-height: 1.4; border-left: 3px solid transparent; border-radius: 4px;
    color: var(--primary-dark-blue, #1a479b); text-decoration: none; overflow-wrap: anywhere;
}
.chb-toc-list a:hover { text-decoration: underline; }
.chb-toc-list a.is-active { background: var(--bg-light, #f3f3f3); border-left-color: var(--primary-dark-blue, #1a479b); color: #000; font-weight: 700; }

@media (min-width: 1360px) {
    .chb-manual-layout.has-toc { grid-template-columns: 290px minmax(0, 1fr); }
    .chb-toc-col { position: sticky; top: 16px; align-self: start; }
    .chb-toc.is-sticky { max-height: calc(100vh - 32px); overflow: auto; }
    .chb-toc.is-sticky summary { pointer-events: none; cursor: default; list-style: none; }
    .chb-toc.is-sticky summary::-webkit-details-marker { display: none; }
}

/* ---------- Κείμενο ---------- */
.chb-manual-body > p, .chb-manual-body > ul, .chb-manual-body > ol, .chb-manual-body > .chb-h-wrap + p { max-width: 74ch; }
.chb-manual-body h2, .chb-manual-body h3 { scroll-margin-top: 20px; }
.chb-h-wrap { display: flex; align-items: baseline; gap: 10px; }
.chb-h-wrap > h2, .chb-h-wrap > h3 { flex: 0 1 auto; }
.chb-anchor { opacity: 0; font-size: 14px; color: var(--primary-dark-blue, #1a479b); text-decoration: none; padding: 4px 6px; }
.chb-h-wrap:hover .chb-anchor, .chb-anchor:focus-visible { opacity: 1; }
@media (hover: none) { .chb-anchor { opacity: .65; } }

.chb-table-wrap { overflow-x: auto; margin: 14px 0 22px; border: 1px solid var(--border, #eaecf0); border-radius: 8px; max-width: 100%; }
.chb-manual-body td, .chb-manual-body th { padding: 10px 12px; }
.chb-manual-body tbody tr:nth-child(even) td { background: #fafbfc; }
.chb-table-wrap table { border: 0; }

.chb-figure { position: relative; margin: 22px 0; text-align: center; }
.chb-figure img, img.chb-zoomable { cursor: zoom-in; }
.chb-figure figcaption { margin: 8px auto 0; max-width: 70ch; font-size: 14.5px; line-height: 1.5; color: #4b5563; }
.chb-zoom-btn {
    position: absolute; top: 20px; right: 10px; width: 40px; height: 40px; border-radius: 50%;
    background: #fff; color: var(--primary-dark-blue, #1a479b); border: 2px solid var(--primary-dark-blue, #1a479b); cursor: pointer;
}

.chb-lightbox {
    position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, .85); padding: 16px;
}
.chb-lightbox-inner { max-width: 96vw; max-height: 94vh; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.chb-lightbox-inner img { max-width: 94vw; max-height: 76vh; object-fit: contain; background: #fff; border-radius: 8px; }
.chb-lightbox-cap { color: #fff; max-width: 70ch; text-align: center; margin: 0; font-size: 15px; }
.chb-lightbox-close { font-size: 16px; padding: 10px 22px; }
html.chb-noscroll { overflow: hidden; }

.chb-top-btn {
    position: fixed; right: 24px; bottom: 96px; z-index: 900; width: 48px; height: 48px; border-radius: 50%;
    background: var(--primary-dark-blue, #1a479b); color: #fff; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    .chb-manual-progress > span { transition: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Εκτύπωση ---------- */
@media print {
    .chb-manual-progress, .chb-skip-link, .chb-manual-find, .chb-manual-actions, .chb-toc-col, .chb-manual-pager, .chb-top-btn,
    .chb-zoom-btn, .chb-anchor, .chb-kb-breadcrumb, .chb-hits-bar, .chb-lightbox, .chb-sidebar-col, .chb-continue,
    body header, body footer, .chatbot-toggler {
        display: none !important;
    }
    .chb-shell { display: block; padding: 0; max-width: none; }
    .chb-manual-layout.has-toc { display: block; }
    .chb-manual-body { border: 0; padding: 0; font-size: 11pt; line-height: 1.5; color: #000; }
    .chb-manual-body a { color: #000; }
    .chb-manual-body a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; overflow-wrap: anywhere; }
    .chb-manual-body h2, .chb-manual-body h3 { break-after: avoid; }
    .chb-figure, .chb-manual-body tr { break-inside: avoid; }
    .chb-table-wrap { overflow: visible; border: 0; }
    .chb-manual-body thead { display: table-header-group; }
    .chb-manual-body mark.chb-hit { background: none; }
}
