/* ============================================================
   XFactorApp 2026 — Editorial sections (xe-details)
   Moștenește fonturile/culorile temei nx/am (fără paletă nouă);
   adaugă doar layout, scară tipografică și protecții responsive.
   ============================================================ */

.xe-details {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

@media (min-width: 992px) {
    .xe-details {
        padding: 48px;
    }
}

/* Headings responsive 24–32px; offset pentru ancore sub navbar-ul fix */
.xe-details h2 {
    font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2rem);
    line-height: 1.25;
    margin: 0 0 0.75rem;
    scroll-margin-top: 110px;
}

.xe-details h3 {
    font-size: 1.25rem;
    line-height: 1.3;
    margin: 1.25rem 0 0.5rem;
    scroll-margin-top: 110px;
}

/* Proză: 16px, line-height 1.7, lățime lizibilă */
.xe-details .xe-prose {
    font-size: 1rem;
    line-height: 1.7;
    max-width: 76ch;
}

.xe-details .xe-prose p {
    margin: 0 0 1rem;
}

.xe-details .xe-prose ul,
.xe-details .xe-prose ol {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
}

.xe-details .xe-prose li {
    margin: 0 0 0.4rem;
}

.xe-details .xe-prose a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Tabele responsive + fără overflow orizontal */
.xe-details .xe-prose table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.xe-details .xe-prose img,
.xe-details .xe-prose pre,
.xe-details .xe-prose code,
.xe-details .xe-prose iframe,
.xe-details .xe-prose video {
    max-width: 100%;
}

.xe-details .xe-prose pre {
    overflow-x: auto;
}

/* Coloanele grid nu trebuie să forțeze scroll orizontal */
.xe-details .row > [class*='col'] {
    min-width: 0;
}

/* Focus vizibil */
.xe-details a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
    border-radius: 2px;
}

.nx .xe-details { font-family: var(--nx-font-body); overflow-wrap: anywhere; }
.nx .xe-details h2, .nx .xe-details h3 { color: inherit; }
.nx .xe-details .am-section { padding: 48px 0; }
@media (max-width: 767.98px) { .nx .xe-details .am-section { padding: 32px 0; } }
.nx .home-container .xe-details a { color: var(--nx-brand-glow); }

.nx .nx-hero-note {
    color: #c8ccda;
    font-size: 14px;
}
.nx .nx-subhero:has(a[href="#alege-produsul"]) .card-body li span {
    color: #d4d7e2 !important;
    font-size: 14px;
}
.nx .xe-details:has(#alege-produsul) {
    padding-block: 0;
}

.nx .xe-guide-link {
    display: inline-block;
    margin: .5rem 0;
    padding-block: .375rem;
    color: #d8e5ff;
    font-size: 1rem;
    text-decoration: underline;
    text-underline-offset: .25em;
}
#detalii-pagina { scroll-margin-top: 5rem; }
.xe-details:has(+ .xe-details) { padding-bottom: 0; }
.xe-details + .xe-details { padding-top: 0; }

/* Keep the legacy XCargo banner controls above the decorative hero background. */
.nx #top_banner:has(.xe-cargo-guide) > :has(.title-content) {
    position: relative;
    z-index: 2;
}

.nx.xe-media-archive .nx-subhero {
    min-height: 0 !important;
    padding-block: 3rem !important;
}
.xe-media-archive .nx-subhero .nx-streams { display: none; }
.nx.xe-media-archive .nx-subhero { --nx-band-h: 0px !important; margin-bottom: 0 !important; }
.xe-media-archive .media-appearances { padding-top: 1.5rem; }
