/* ==========================================================================
   Help centre (/help and /help/{key}) content styling
   Targets HTML produced by MarkdownHelpContentProvider (wrapped in .help-content)
   ========================================================================== */

.help-content {
    max-width: 1000px;
    padding: 1.75rem 2rem 2rem;
    color: #2b2f33;
    font-size: 1rem;
    line-height: 1.65;
}

.help-content > *:first-child {
    margin-top: 0;
}

/* Headings */
.help-content h2 {
    margin-top: 2rem;
    margin-bottom: .75rem;
    padding-bottom: .35rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #14685e;
    border-bottom: 1px solid #e3ece9;
}

.help-content h3 {
    margin-top: 1.5rem;
    margin-bottom: .5rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: #1f7a6e;
}

/* Text */
.help-content p {
    margin-bottom: 1rem;
}

.help-content ul,
.help-content ol {
    margin-bottom: 1rem;
    padding-left: 1.4rem;
}

.help-content li {
    margin-bottom: .35rem;
}

.help-content a {
    color: #1f7a6e;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.help-content a:hover {
    color: #14685e;
}

.help-content code {
    background: #eef4f2;
    color: #0f5147;
    padding: .12rem .4rem;
    border-radius: .25rem;
    font-size: .9em;
}

/* Callouts (Markdown blockquotes: Tip / Poznámka / Upozornenie) */
.help-content blockquote {
    margin: 1.25rem 0;
    padding: .85rem 1.1rem;
    background: #f1f8f6;
    border: 1px solid #d7e8e3;
    border-left: 4px solid #2a9d8f;
    border-radius: .5rem;
    color: #2b3a37;
}

.help-content blockquote p:last-child {
    margin-bottom: 0;
}

.help-content hr {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid #e3ece9;
}

/* Tables */
.help-content table {
    width: auto;
    max-width: 100%;
    margin: 1rem 0 1.5rem;
}

.help-content table thead th {
    background: #1f7a6e;
    color: #fff;
    border-color: #1f7a6e;
    font-weight: 600;
}

.help-content table td,
.help-content table th {
    vertical-align: top;
}

/* Screenshots: constrained, framed, clickable */
.help-content .help-figure {
    margin: 1.5rem 0;
}

.help-content img {
    display: block;
    width: 100%;
    max-width: 640px;
    height: auto;
    border: 1px solid #d9e2e0;
    border-radius: .55rem;
    box-shadow: 0 2px 10px rgba(20, 104, 94, .12);
    cursor: zoom-in;
    transition: box-shadow .15s ease, transform .15s ease;
}

.help-content img:hover {
    box-shadow: 0 6px 18px rgba(20, 104, 94, .22);
    transform: translateY(-1px);
}

.help-content .help-figure figcaption {
    margin-top: .45rem;
    font-size: .85rem;
    color: #6c757d;
}

/* Click-to-zoom lightbox overlay (built by js/help-lightbox.js) */
.help-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2.5vmin;
    background: rgba(15, 30, 28, .82);
    cursor: zoom-out;
    opacity: 0;
    transition: opacity .15s ease;
}

.help-lightbox-overlay.is-open {
    opacity: 1;
}

.help-lightbox-overlay img {
    max-width: 95vw;
    max-height: 92vh;
    border-radius: .4rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}

.help-lightbox-close {
    position: fixed;
    top: .75rem;
    right: 1.25rem;
    padding: 0;
    color: #fff;
    font-size: 2.25rem;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
}

/* ==========================================================================
   Help centre landing page (/help)
   ========================================================================== */

.help-index-page {
    padding: 1.5rem 2rem 3rem;
    max-width: 1200px;
}

.help-index-hero {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 2.25rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid #e3ece9;
}

.help-index-hero-icon {
    flex-shrink: 0;
    width: 3.25rem;
    height: 3.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef8f5;
    border-radius: .75rem;
    color: #1f7a6e;
    font-size: 1.75rem;
}

.help-index-title {
    margin: 0 0 .4rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: #14685e;
}

.help-index-lead {
    margin: 0;
    font-size: 1rem;
    color: #4a5d58;
    line-height: 1.6;
}

/* Module cards */
.help-topic-card {
    border: 1px solid #d9e9e5;
    border-radius: .6rem;
    transition: box-shadow .15s ease, border-color .15s ease;
}

.help-topic-card:hover {
    border-color: #2a9d8f;
    box-shadow: 0 4px 14px rgba(20, 104, 94, .12);
}

.help-topic-card-header {
    background: #f4faf8;
    border-bottom: 1px solid #d9e9e5;
    padding: .85rem 1.1rem;
}

.help-topic-title {
    font-size: 1rem;
    font-weight: 600;
    color: #14685e;
    text-decoration: none;
}

.help-topic-title:hover {
    color: #0f5147;
    text-decoration: underline;
}

.help-topic-sections {
    list-style: none;
    margin: 0;
    padding: .5rem 0;
}

.help-topic-sections li {
    border-bottom: 1px solid #f0f5f3;
}

.help-topic-sections li:last-child {
    border-bottom: none;
}

.help-topic-sections li a {
    display: block;
    padding: .45rem 1.1rem;
    font-size: .9rem;
    color: #2b5c55;
    text-decoration: none;
    transition: background .1s ease, color .1s ease;
}

.help-topic-sections li a::before {
    content: "›";
    margin-right: .45rem;
    color: #2a9d8f;
    font-weight: 700;
}

.help-topic-sections li a:hover {
    background: #f1f8f6;
    color: #14685e;
}

.help-topic-footer {
    background: #fafcfb;
    border-top: 1px solid #e3ece9;
    padding: .65rem 1.1rem;
}

/* ==========================================================================
   Blazor help chapters (Components/Pages/Help/Chapters + Shared components)
   Same palette as the rest of the help centre.
   ========================================================================== */

.help-chapter-content {
    max-width: none;
}

.help-chapter-lead {
    font-size: 1.05rem;
    color: #4a5d58;
}

.help-section {
    scroll-margin-top: 4.5rem;
}

.help-section h2 {
    scroll-margin-top: 4.5rem;
}

/* Sticky table of contents (wide screens only) */
.help-toc {
    position: sticky;
    top: 1rem;
    padding: 1rem 1.15rem;
    background: #fafcfb;
    border: 1px solid #d9e9e5;
    border-radius: .6rem;
}

.help-toc-title {
    margin-bottom: .5rem;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #14685e;
}

.help-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.help-toc li {
    border-bottom: 1px solid #f0f5f3;
}

.help-toc li:last-child {
    border-bottom: none;
}

.help-toc li a {
    display: block;
    padding: .4rem 0;
    font-size: .9rem;
    color: #2b5c55;
    text-decoration: none;
}

.help-toc li a::before {
    content: "›";
    margin-right: .45rem;
    color: #2a9d8f;
    font-weight: 700;
}

.help-toc li a:hover {
    color: #14685e;
    text-decoration: underline;
}

/* Glossary */
.help-glossary {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: .75rem;
    margin: 1rem 0 1.5rem;
}

.help-term {
    padding: .75rem .95rem;
    background: #fafcfb;
    border: 1px solid #d9e9e5;
    border-left: 4px solid #2a9d8f;
    border-radius: .5rem;
}

.help-term dt {
    margin-bottom: .25rem;
    font-weight: 600;
    color: #14685e;
}

.help-term dd {
    margin: 0;
    font-size: .92rem;
    color: #2b3a37;
}

/* Steps */
.help-steps-title {
    margin: 1rem 0 .5rem;
    font-weight: 600;
    color: #14685e;
}

.help-steps-list {
    list-style: none;
    counter-reset: help-step;
    margin: 0 0 1.5rem;
    padding: 0;
}

.help-steps-list > li {
    position: relative;
    counter-increment: help-step;
    margin: 0;
    padding: .55rem 0 .55rem 2.6rem;
    border-bottom: 1px dashed #e3ece9;
}

.help-steps-list > li:last-child {
    border-bottom: none;
}

.help-steps-list > li::before {
    content: counter(help-step);
    position: absolute;
    left: 0;
    top: .5rem;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1f7a6e;
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    border-radius: 50%;
}

.help-step-title {
    font-weight: 600;
    color: #14685e;
    margin-right: .3rem;
}

/* Callouts */
.help-callout {
    margin: 1.25rem 0;
    padding: .85rem 1.1rem;
    border: 1px solid #d7e8e3;
    border-left-width: 4px;
    border-radius: .5rem;
    background: #f1f8f6;
    color: #2b3a37;
}

.help-callout-title {
    margin-bottom: .3rem;
    font-weight: 700;
    font-size: .9rem;
    color: #14685e;
}

.help-callout-body p:last-child,
.help-callout-body ul:last-child {
    margin-bottom: 0;
}

.help-callout-tip {
    border-left-color: #2a9d8f;
}

.help-callout-note {
    background: #f4f8f8;
    border-color: #d5e2e0;
    border-left-color: #6c9a94;
}

.help-callout-note .help-callout-title {
    color: #3f625c;
}

.help-callout-warn {
    background: #fdf8ee;
    border-color: #f0e2c4;
    border-left-color: #e0a800;
}

.help-callout-warn .help-callout-title {
    color: #8a6d00;
}

.help-callout-wip {
    background: #f7f7fa;
    border: 1px dashed #c9c9d6;
    border-left: 4px solid #8888a8;
}

.help-callout-wip .help-callout-title {
    color: #5c5c78;
}

/* Inline UI-element chip */
.help-ui-chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .05rem .5rem;
    background: #eef4f2;
    border: 1px solid #d3e3df;
    border-radius: .35rem;
    color: #0f5147;
    font-size: .88em;
    font-weight: 600;
    white-space: nowrap;
}

/* FAQ */
.help-faq-item {
    margin-bottom: .6rem;
    border: 1px solid #d9e9e5;
    border-radius: .5rem;
    background: #fff;
}

.help-faq-item summary {
    padding: .7rem 1rem;
    font-weight: 600;
    color: #14685e;
    cursor: pointer;
    list-style-position: inside;
}

.help-faq-item summary:hover {
    background: #f1f8f6;
    border-radius: .5rem;
}

.help-faq-item[open] summary {
    border-bottom: 1px solid #e3ece9;
}

.help-faq-answer {
    padding: .75rem 1rem;
}

.help-faq-answer p:last-child {
    margin-bottom: 0;
}

/* Print: hide the TOC */
@media print {
    .help-toc {
        display: none;
    }
}

/* ==========================================================================
   Atomic step (Shared/HelpAtomicStep.razor) — one user action or one decision
   ========================================================================== */

.help-content .help-atomic-step {
    padding-bottom: .35rem;
}

.help-content .help-atomic-step > .help-step-title {
    font-size: 1.02rem;
}

.help-content .atomic-step-facts {
    margin: .55rem 0 .25rem;
    border: 1px solid #d9e2e0;
    border-radius: .6rem;
    background: #fbfdfc;
    overflow: hidden;
}

.help-content .atomic-step-fact {
    display: grid;
    grid-template-columns: 13.5rem 1fr;
    gap: 0 1rem;
    padding: .45rem .8rem;
    border-top: 1px solid #e8efee;
}

.help-content .atomic-step-fact:first-child {
    border-top: 0;
}

.help-content .atomic-step-fact > dt {
    margin: 0;
    color: #14685e;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.help-content .atomic-step-fact > dd {
    margin: 0;
    font-size: .92rem;
}

.help-content .atomic-step-fact > dd > p:last-child {
    margin-bottom: 0;
}

.help-content .atomic-step-fact--muted {
    background: #f4f7f7;
}

.help-content .atomic-step-fact--warn {
    background: #fff6ec;
}

.help-content .atomic-step-fact--warn > dt {
    color: #a95c13;
}

/* Screenshots inside a step stay clearly smaller than the surrounding text column. */
.help-content .help-atomic-step .help-figure {
    margin: .75rem 0 .25rem;
}

.help-content .help-atomic-step .help-figure img {
    max-width: 460px;
}

@media (max-width: 767.98px) {
    .help-content .atomic-step-fact {
        grid-template-columns: 1fr;
        gap: .1rem;
    }

    .help-content .help-atomic-step .help-figure img {
        max-width: 100%;
    }
}

/* ==========================================================================
   Mail chapters signpost (/help/registraturny-poriadok)
   ========================================================================== */

.help-content .mail-signpost {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1rem;
    margin: 1.25rem 0;
}

.help-content .mail-signpost__card {
    display: block;
    padding: 1.1rem 1.2rem;
    color: inherit;
    text-decoration: none;
    background: #fbfdfc;
    border: 1px solid #d9e2e0;
    border-radius: .75rem;
    transition: box-shadow .15s ease, transform .15s ease;
}

.help-content .mail-signpost__card:hover,
.help-content .mail-signpost__card:focus-visible {
    box-shadow: 0 6px 18px rgba(20, 104, 94, .18);
    transform: translateY(-1px);
}

.help-content .mail-signpost__card strong {
    display: block;
    margin-bottom: .3rem;
    color: #14685e;
    font-size: 1.05rem;
}

.help-content .mail-signpost__card span {
    display: block;
    font-size: .9rem;
    color: #56635f;
}
