/* Gazeta.co.il masthead branding. */
.theme-horizon .horizon-header {
    color: #172033;
    background:
        linear-gradient(
            90deg,
            rgba(255, 250, 236, 0.99) 0%,
            rgba(255, 250, 236, 0.97) 45%,
            rgba(255, 250, 236, 0.82) 62%,
            rgba(255, 250, 236, 0.28) 82%,
            rgba(255, 250, 236, 0.08) 100%
        ),
        url('/images/branding/gazeta-headFB.png') center center / cover no-repeat;
    box-shadow: 0 12px 40px rgba(92, 64, 18, 0.18);
}

.theme-horizon .horizon-header__topline {
    min-height: 112px;
}

.theme-horizon .horizon-brand {
    gap: 15px;
    color: #123c78;
}

.theme-horizon .horizon-brand:hover {
    color: #0b2f66;
}

.theme-horizon .horizon-brand__logo {
    width: 78px;
    height: 78px;
    flex: 0 0 auto;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    background: #fff8e8;
    box-shadow: 0 8px 24px rgba(107, 72, 13, 0.24);
}

.theme-horizon .horizon-brand__text {
    min-width: 0;
}

.theme-horizon .horizon-brand strong {
    color: #0b3a7e;
    font-size: clamp(24px, 2.1vw, 34px);
    letter-spacing: -0.025em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.theme-horizon .horizon-brand small {
    margin-top: 3px;
    color: #303846;
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: none;
}

.theme-horizon .horizon-account {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    background: rgba(255, 252, 242, 0.86);
    box-shadow: 0 8px 24px rgba(71, 50, 18, 0.12);
    backdrop-filter: blur(10px);
}

.theme-horizon .horizon-account a,
.theme-horizon .horizon-account .site-auth__button {
    color: #17365f;
}

.theme-horizon .horizon-account a:hover {
    color: #005dcc;
}

.theme-horizon .horizon-account .site-auth__button,
.theme-horizon .horizon-signup,
.theme-horizon .horizon-icon-link {
    border-color: rgba(18, 60, 120, 0.2);
    color: #17365f;
    background: rgba(255, 255, 255, 0.7);
}

.theme-horizon .horizon-account .site-auth__button:hover,
.theme-horizon .horizon-signup:hover,
.theme-horizon .horizon-icon-link:hover {
    border-color: rgba(18, 60, 120, 0.35);
    color: #005dcc;
    background: #fff;
}

.theme-horizon .site-auth__notification-count {
    border-color: #fff8e8;
}

.theme-horizon .site-section-identity strong {
    color: #17365f;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.theme-horizon .site-section-identity span {
    color: #49576a;
}

.theme-horizon .horizon-nav-shell {
    border-top-color: rgba(154, 105, 16, 0.18);
    background: rgba(255, 250, 236, 0.93);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(14px);
}

.theme-horizon .horizon-nav a {
    color: #2e3d52;
}

.theme-horizon .horizon-nav a:hover,
.theme-horizon .horizon-nav a.is-active {
    color: #083d84;
    background: rgba(255, 183, 0, 0.12);
}

.theme-horizon .horizon-nav a.is-active::after {
    background: #f2a900;
}

.theme-horizon .horizon-mobile-menu summary {
    color: #17365f;
}

.theme-horizon .horizon-mobile-panel a,
.theme-horizon .horizon-mobile-account button {
    border-color: rgba(18, 60, 120, 0.14);
    color: #17365f;
    background: rgba(255, 255, 255, 0.72);
}

.theme-horizon .horizon-mobile-panel a.is-active {
    border-color: rgba(242, 169, 0, 0.55);
    color: #083d84;
    background: rgba(255, 183, 0, 0.14);
}

.theme-horizon .horizon-mobile-account {
    border-color: rgba(18, 60, 120, 0.14);
}

@media (max-width: 960px) {
    .theme-horizon .horizon-header {
        background-position: 68% center;
    }

    .theme-horizon .horizon-header__topline {
        min-height: 86px;
    }

    .theme-horizon .horizon-brand__logo {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 620px) {
    .theme-horizon .horizon-header {
        background:
            linear-gradient(90deg, rgba(255, 250, 236, 0.98), rgba(255, 250, 236, 0.84)),
            url('/images/branding/gazeta-headFB.png') 68% center / cover no-repeat;
    }

    .theme-horizon .horizon-header__topline {
        min-height: 74px;
    }

    .theme-horizon .horizon-brand {
        gap: 10px;
    }

    .theme-horizon .horizon-brand__logo {
        width: 50px;
        height: 50px;
        border-width: 2px;
    }

    .theme-horizon .horizon-brand strong {
        font-size: 21px;
    }

    .theme-horizon .horizon-brand small {
        display: none;
    }
}

/* The portal masthead has one visual contract on the home page and in every section. */
body.theme-horizon .site-header.horizon-header {
    color: #172033;
    background: #fffaf0;
    box-shadow: 0 12px 40px rgba(92, 64, 18, 0.18);
}

body.theme-horizon .site-header.horizon-header .horizon-header__topline {
    grid-template-columns: max-content minmax(160px, 1fr) max-content;
}

body.theme-horizon .site-header.horizon-header .horizon-masthead-art {
    position: relative;
    isolation: isolate;
    min-width: 0;
    width: 100%;
    height: 88px;
    overflow: hidden;
    border: 1px solid rgba(191, 137, 35, 0.22);
    border-radius: 18px;
    background: url('/images/branding/gazeta-headFB.png') 76% center / cover no-repeat;
    box-shadow: 0 8px 24px rgba(107, 72, 13, 0.12);
}

body.theme-horizon .site-header.horizon-header .horizon-masthead-art::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 250, 236, 0.5),
        rgba(255, 250, 236, 0.08) 28%,
        rgba(255, 250, 236, 0.08) 72%,
        rgba(255, 250, 236, 0.44)
    );
}

body.theme-horizon .site-header.horizon-header .horizon-masthead-art .site-section-identity {
    position: relative;
    width: max-content;
    max-width: calc(100% - 24px);
    min-height: 100%;
    margin-inline: auto;
    align-content: center;
    padding: 10px 18px;
    border-radius: 16px;
    background: rgba(255, 250, 236, 0.78);
    backdrop-filter: blur(8px);
}

body.theme-horizon .site-header.horizon-header .horizon-account {
    width: max-content;
    max-width: 100%;
    margin-left: 0;
    justify-self: end;
    flex: 0 0 auto;
}

body.theme-horizon .site-header.horizon-header .horizon-brand,
body.theme-horizon .site-header.horizon-header .horizon-account a,
body.theme-horizon .site-header.horizon-header .horizon-account .site-auth__button,
body.theme-horizon .site-header.horizon-header .horizon-mobile-menu summary {
    color: #17365f;
}

body.theme-horizon .site-header.horizon-header .horizon-nav-shell {
    border-top-color: rgba(154, 105, 16, 0.18);
    background: rgba(255, 250, 236, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

body.theme-horizon .site-header.horizon-header .horizon-nav a {
    color: #2e3d52;
}

body.theme-horizon .site-header.horizon-header .horizon-nav a:hover,
body.theme-horizon .site-header.horizon-header .horizon-nav a.is-active {
    color: #083d84;
    background: rgba(255, 183, 0, 0.12);
}

body.theme-horizon .site-header.horizon-header .horizon-nav a.is-active::after {
    background: #f2a900;
}

body.theme-horizon .site-header.horizon-header .horizon-mobile-toggle__icon span {
    background: #17365f;
}

@media (max-width: 960px) {
    body.theme-horizon .site-header.horizon-header .horizon-header__topline {
        grid-template-columns: max-content minmax(0, 1fr);
    }

    body.theme-horizon .site-header.horizon-header .horizon-masthead-art {
        height: 68px;
        background-position: 78% center;
    }
}

@media (max-width: 620px) {
    body.theme-horizon .site-header.horizon-header .horizon-masthead-art {
        height: 56px;
        border-radius: 14px;
        background-position: 82% center;
    }

    body.theme-horizon .site-header.horizon-header .horizon-masthead-art .site-section-identity {
        max-width: calc(100% - 12px);
        padding: 7px 10px;
    }

    body.theme-horizon .site-header.horizon-header .horizon-masthead-art .site-section-identity span {
        display: none;
    }
}
/* Showman-backed Afisha 2 board */
.afisha-event-grid {
    align-items: stretch;
}

.afisha-event-card {
    display: flex;
    flex-direction: column;
}

.afisha-event-card .listing-card__image {
    width: 720px;
    max-width: 100%;
    height: auto;
    margin-inline: 0 auto;
    margin-bottom: 0;
    object-fit: contain;
}

.afisha-event-card h2 {
    margin-bottom: 0.45rem;
}

.afisha-event-page {
    overflow: hidden;
}

.afisha-event-hero {
    position: relative;
    isolation: isolate;
    min-height: clamp(180px, 30vw, 360px);
    overflow: hidden;
    margin: -1rem -1rem 1.25rem;
    padding: clamp(1.25rem, 5vw, 3.5rem);
    border-radius: 0.75rem 0.75rem 0 0;
    background-color: color-mix(in srgb, currentColor 8%, transparent);
    background-position: right center;
    background-repeat: no-repeat;
    background-size: cover;
}

.afisha-event-hero__title {
    position: absolute;
    right: clamp(1.25rem, 5vw, 3.5rem);
    bottom: 5px;
    left: clamp(1.25rem, 5vw, 3.5rem);
    max-width: min(70%, 32rem);
    margin: 0;
    font-size: clamp(1.8rem, 4.8vw, 3.7rem);
    line-height: 1.08;
    text-wrap: balance;
    color: #dc2626;
    -webkit-text-fill-color: #dc2626;
    -webkit-text-stroke: 2px silver;
    paint-order: stroke fill;
    letter-spacing: 2px;
}

.afisha-event-hero__title:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 0.2rem;
}

.afisha-event-heading {
    margin-bottom: 1.25rem;
}

.afisha-event-heading h1 {
    margin: 0;
    font-size: clamp(1.8rem, 4.8vw, 3.7rem);
    line-height: 1.08;
    text-wrap: balance;
}

.afisha-event-heading__meta {
    margin: 0.85rem 0 0;
}

.afisha-notice {
    border-left: 4px solid currentColor;
    padding: 0.65rem 0.8rem;
    font-weight: 650;
}

.afisha-event-content {
    display: flow-root;
    margin-top: 1.25rem;
}

.afisha-video {
    float: right;
    width: min(48%, 560px);
    margin: 0 0 1.25rem 1.5rem;
}

.afisha-video__player {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 0.75rem;
    aspect-ratio: 16 / 9;
    background: #000;
}

.afisha-description > :first-child {
    margin-top: 0;
}

.afisha-gallery-section {
    clear: both;
    margin-top: 1.5rem;
}

.afisha-gallery {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    gap: 0.85rem;
}

.afisha-gallery a {
    display: block;
    align-self: start;
    width: fit-content;
    max-width: 100%;
    overflow: hidden;
    border-radius: 0.7rem;
    background: color-mix(in srgb, currentColor 7%, transparent);
}

.afisha-gallery img {
    display: block;
    width: 720px;
    max-width: 100%;
    height: auto;
    margin-inline: 0 auto;
    transition: transform 160ms ease;
}

.afisha-gallery a:hover img,
.afisha-gallery a:focus-visible img {
    transform: scale(1.025);
}

.afisha-schedule {
    margin-top: 2rem;
}

.afisha-occurrence-list {
    display: grid;
    gap: 1rem;
}

.afisha-occurrence {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
    border-radius: 0.75rem;
}

.afisha-occurrence h3 {
    margin: 0 0 0.35rem;
}

@media (max-width: 820px) {
    .afisha-video {
        float: none;
        width: 100%;
        margin: 0 0 1.25rem;
    }
}

@media (max-width: 680px) {
    .afisha-event-hero {
        min-height: 210px;
        margin-right: -0.75rem;
        margin-left: -0.75rem;
        padding: 1.25rem;
        background-position: right center;
    }

    .afisha-event-hero__title {
        max-width: 85%;
        -webkit-text-stroke-width: 2px;
    }

    .afisha-occurrence {
        align-items: stretch;
        flex-direction: column;
    }

    .afisha-occurrence .button {
        width: 100%;
        text-align: center;
    }
}

.account-partner-cabinets {
    margin: 1.5rem 0;
}

.account-partner-cabinets__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
}

.account-partner-cabinets__header h2 {
    margin-top: 0;
}

.account-partner-cabinets__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
}

.account-partner-cabinets__toggle.is-active {
    box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent);
}

.account-partner-cabinet {
    margin-top: 1.25rem;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
    border-radius: 0.75rem;
    background: #fff;
}

.account-partner-cabinet[hidden] {
    display: none;
}

.account-partner-cabinet__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent);
}

.account-partner-cabinet__toolbar h3 {
    margin: 0;
    font-size: 1.05rem;
}

.account-partner-cabinet__note {
    margin: 0;
    padding: 0.75rem 1.25rem;
    color: color-mix(in srgb, currentColor 72%, transparent);
    background: color-mix(in srgb, currentColor 5%, transparent);
}

.account-partner-cabinet__frame {
    display: block;
    width: 100%;
    min-height: 760px;
    border: 0;
    background: #fff;
}

@media (max-width: 680px) {
    .account-partner-cabinets__header,
    .account-partner-cabinet__toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .account-partner-cabinets__actions {
        justify-content: stretch;
    }

    .account-partner-cabinets__actions .button,
    .account-partner-cabinet__toolbar .button {
        width: 100%;
        text-align: center;
    }

    .account-partner-cabinet__frame {
        min-height: 620px;
    }
}
