/**
 * SITE 30.27–30.28: kit chrome on tourist/USER pages.
 * Catalogs/cabinet: always-solid --kit-fill bar.
 * Photo pages (`/user_action`, excursion, course): transparent at rest, fill on scroll (as `/`).
 */

@font-face {
    font-family: 'PT Sans';
    src: url('/fonts/gidtur-kit/pt-sans/PTSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PT Sans';
    src: url('/fonts/gidtur-kit/pt-sans/PTSans-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'PT Sans';
    src: url('/fonts/gidtur-kit/pt-sans/PTSans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Unbounded';
    src: url('/fonts/gidtur-kit/unbounded/Unbounded-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Unbounded';
    src: url('/fonts/gidtur-kit/unbounded/Unbounded-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Unbounded';
    src: url('/fonts/gidtur-kit/unbounded/Unbounded-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Unbounded';
    src: url('/fonts/gidtur-kit/unbounded/Unbounded-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

.kit-storefront-inner {
    --portal-header-stack: 74px;
    --kit-sticky-h: 74px;
    /* `/` SERVICE chip is 96px; inner pages render ~122px — keep ~24px to the avatar like `/`. */
    --kit-portal-rail-w: 146px;
}

/* Inner pages: nav may shrink so authed icons do not spill over the portal stack. */
.kit-storefront-inner:not(.kit-photo-hero) .kit-nav {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
}

.kit-storefront-inner:not(.kit-photo-hero).kit-has-portal-rail .kit-sticky-chrome__inner,
.kit-storefront-inner:not(.kit-photo-hero) .kit-sticky-chrome:has(.kit-portal-rail:not([hidden])) .kit-sticky-chrome__inner {
    padding-right: calc(var(--kit-portal-rail-w, 120px) + max(12px, env(safe-area-inset-right, 0px)));
}

html[dir="rtl"] .kit-storefront-inner:not(.kit-photo-hero).kit-has-portal-rail .kit-sticky-chrome__inner,
html[dir="rtl"] .kit-storefront-inner:not(.kit-photo-hero) .kit-sticky-chrome:has(.kit-portal-rail:not([hidden])) .kit-sticky-chrome__inner {
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    padding-left: calc(var(--kit-portal-rail-w, 120px) + max(12px, env(safe-area-inset-left, 0px)));
}

.kit-storefront-inner:not(.kit-photo-hero).home-page--kit-short .kit-sticky-chrome::before {
    background-color: var(--kit-fill, #0284c7);
    background-image: none;
}

/* Tourist pages have no CRM left rail */
.kit-storefront-inner .crm-service-main {
    margin-left: 0 !important;
}

/* Full-bleed photo under transparent bar (excursion / course / activity hub) */
.kit-storefront-inner.kit-photo-hero .exc-page-main {
    padding-top: 0 !important;
}

.kit-storefront-inner.kit-photo-hero #coursePortalBannerHost {
    margin-top: 0 !important;
    margin-left: 0 !important;
    padding: 0 0 48px !important;
}

.kit-storefront-inner.app-download-page .app-dl {
    padding-top: calc(var(--kit-sticky-h, 74px) + 1.25rem);
}

.kit-storefront-inner [data-site-header-mount]:not(.kit-topbar__chrome) {
    display: none !important;
}

.kit-storefront-inner footer.site-footer:not(.kit-footer) {
    display: none !important;
}

.kit-storefront-inner > #portalAnnouncementsHost.portal-announcements-strip--page-top {
    margin-top: var(--kit-sticky-h, 74px) !important;
}

.kit-storefront-inner.user-portal-page {
    background: #f3f6fa;
}

.kit-storefront-inner.home-page--kit-short .site-footer.kit-footer {
    position: relative;
    isolation: isolate;
    margin: 0;
    margin-top: auto;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px 0 18px;
    min-height: 292px;
    background: #1d2229;
    border: 0;
    color: #fff;
    overflow: hidden;
    box-sizing: border-box;
}

.kit-storefront-inner .kit-footer a {
    color: inherit;
    text-decoration: none;
}

.kit-storefront-inner .kit-footer a:hover {
    text-decoration: underline;
}

/* kit-sticky-footer: leftover viewport fills the dark footer, not page paper below it.
   Catalog/cabinet still use home.css body flex + footer margin-top:auto.
   Do not make inner pages a flex column: it breaks kit chrome on articles. */
html:has(body.kit-storefront-inner.home-page--kit-short) {
    background: #1d2229;
}

body.kit-storefront-inner.home-page.home-page--kit-short {
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: visible;
    overflow-y: visible;
}

/* Articles do not load home.css. Cached home-lab-short flex+overflow turned the
   kit bar into a second white row and parked the locale menu on the cover. */
body.kit-storefront-inner.kit-articles-page {
    display: block !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
}

/* Same locale/FX popover as `/` and `/user_action` (servicePortal.css). Inner
   tourist pages do not load that file — without the 2-col grid the list is a
   tall column over the article cover. */
.kit-storefront-inner .kit-ico-slot {
    position: relative;
    overflow: visible;
}

.kit-storefront-inner .kit-ico-slot .crm-portal-locale-dropdown,
.kit-storefront-inner .kit-ico-slot .crm-portal-fx-dropdown,
.kit-storefront-inner .kit-topbar__tools .crm-portal-locale-dropdown,
.kit-storefront-inner .kit-topbar__tools .crm-portal-fx-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    z-index: 1400;
    box-sizing: border-box;
    width: max-content;
    min-width: 11.5rem;
    max-width: min(92vw, 14rem);
    padding: 8px;
    border-radius: 14px;
    background: rgba(10, 28, 48, 0.92);
    border: 1px solid rgba(255, 252, 248, 0.24);
    box-shadow: 0 16px 36px rgba(6, 20, 36, 0.38);
    color: rgba(255, 252, 248, 0.96);
}

.kit-storefront-inner .crm-portal-locale-dropdown[hidden],
.kit-storefront-inner .crm-portal-fx-dropdown[hidden] {
    display: none !important;
}

.kit-storefront-inner .crm-portal-locale-dropdown__list,
.kit-storefront-inner .crm-portal-fx-dropdown__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    width: 11.2rem;
}

.kit-storefront-inner .crm-portal-locale-dropdown__list > li,
.kit-storefront-inner .crm-portal-fx-dropdown__list > li {
    margin: 0;
    padding: 0;
    min-width: 0;
}

.kit-storefront-inner .crm-portal-locale-option,
.kit-storefront-inner .crm-portal-fx-option {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-sizing: border-box;
    width: 100%;
    padding: 7px 8px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: rgba(255, 252, 248, 0.96);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: left;
    white-space: nowrap;
}

.kit-storefront-inner .crm-portal-locale-option:hover,
.kit-storefront-inner .crm-portal-fx-option:hover {
    background: rgba(255, 252, 248, 0.12);
}

.kit-storefront-inner .crm-portal-locale-option.is-active,
.kit-storefront-inner .crm-portal-fx-option--active {
    background: rgba(255, 252, 248, 0.2);
    color: #fff;
}

.kit-storefront-inner .crm-portal-locale-option__flag,
.kit-storefront-inner .crm-portal-fx-option__flag {
    display: block;
    width: 18px;
    height: 12px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 2px;
}

.kit-storefront-inner .crm-portal-fx-dropdown__date,
.kit-storefront-inner .crm-portal-fx-dropdown__base {
    margin: 0;
    padding: 2px 4px 6px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.25;
    color: rgba(255, 252, 248, 0.72);
}

.kit-storefront-inner .crm-portal-fx-dropdown__base {
    margin-bottom: 4px;
    padding-top: 0;
    font-weight: 500;
    color: rgba(255, 252, 248, 0.58);
}

body.kit-storefront-inner.home-page.home-page--kit-short > .site-footer.kit-footer {
    margin-top: auto;
}

/* `/newsletter`: leftover viewport stays in `main` (centered copy), not as
   white paper under the dark footer. Overflow stays visible so kit chrome
   is not trapped in a flex scrollport. */
body.newsletter-page.kit-storefront-inner {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    overflow-x: visible !important;
    overflow-y: visible !important;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
}

body.newsletter-page.kit-storefront-inner > .kit-newsletter {
    box-sizing: border-box;
    flex: 1 0 auto;
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--kit-sticky-h, 74px) + 24px) 24px 40px;
}

body.newsletter-page.kit-storefront-inner.home-page.home-page--kit-short > .site-footer.kit-footer {
    margin-top: 0;
    flex: 0 0 auto;
}
