/* Editor-chosen page background (PortalGeneralConfig.page_background,
   emitted as --portal-page-bg only when set - see page_detail.html).
   Falls back to the shared base.css body background, so an unset
   config looks exactly as it did before this setting existed. */
body {
    background: var(--portal-page-bg, var(--t-surface));
}

.public-page-container {
    display: flex;
    flex-direction: column;
}
/* `.public-page-component`/`.public-page-component--nav` moved into
   traki_webpage's own base.css (v0.70.0) - this wrapper's spacing/
   sticky-positioning behavior is shared across every portal now, not
   hand-copied here. See that file's own comment for why. */

/* wpc-carousel --------------------------------------------------- */
.wpc-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: #0a1a42;
    min-height: 320px;
}
.wpc-carousel-track {
    display: flex;
    height: 100%;
    transition: transform .45s ease;
}
.wpc-carousel-slide {
    flex: 0 0 100%;
    position: relative;
    height: 100%;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
}
.wpc-carousel-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.wpc-carousel-overlay {
    position: relative;
    z-index: 1;
    padding: 32px;
    width: 100%;
    background: linear-gradient(
        to top,
        rgba(10, 26, 66, .85) 0%,
        transparent 100%
    );
    color: #ffffff;
}
.wpc-carousel-title {
    margin: 0 0 8px;
    font-size: clamp(1.25rem, 3vw, 2rem);
    color: #ffffff;
}
.wpc-carousel-desc {
    margin: 0 0 16px;
    font-size: 15px;
    opacity: .9;
}
.wpc-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, .15);
    border: none;
    color: #ffffff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 4px;
    transition: background .15s;
}
.wpc-carousel-nav:hover { background: rgba(255, 255, 255, .3); }
.wpc-carousel-nav.prev { left: 12px; }
.wpc-carousel-nav.next { right: 12px; }
.wpc-carousel-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.wpc-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .4);
    cursor: pointer;
    padding: 0;
    transition: background .15s, transform .15s;
}
.wpc-carousel-dot.active {
    background: #ffffff;
    transform: scale(1.35);
}

/* wpc-banner ----------------------------------------------------- */
.wpc-banner {
    width: 100%;
    overflow: hidden;
    /* height is driven by the component's :style="{ height }" prop */
}
.wpc-banner-link {
    display: block;
    height: 100%;
}
.wpc-banner-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.draft-preview-ribbon {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #d18a00;
    color: #fff;
    font: 600 13px/1.2 sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.draft-preview-ribbon a {
    color: #fff;
    text-decoration: underline;
}

/* Text box ("Текстово поле") body text is black, not the primary blue.
 * The framework stylesheet webpage_components/base.css sets
 * `.wpc-text-box-body { color: var(--t-primary) }` and is loaded AFTER this
 * file, so an equal-specificity rule here would lose; the extra
 * `.wpc-text-box` ancestor makes this one win regardless of load order.
 */
.wpc-text-box .wpc-text-box-body {
    color: #000;
}
