/* Sliders are laid out by Flickity, so hide them until it takes over */
.tales__slider:not(.flickity-enabled),
.articles__slider:not(.flickity-enabled),
.workshops__slider:not(.flickity-enabled) {
    overflow: hidden;
    opacity: 0;
}

/* News publication date */
.news__meta {
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.news__date {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: #8a8a8a;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -.02em;
}

.news__date svg {
    flex-shrink: 0;
    color: #ec008c;
}

.news__hero {
    margin-bottom: 3.2rem;
    border-radius: 2rem;
    overflow: hidden;
}

.news__hero img {
    display: block;
    width: 100%;
    height: auto;
}

.news__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
    margin-bottom: 3.2rem;
    text-align: center;
}

.news__headline {
    margin: 0;
    max-width: 64rem;
    color: #212121;
    font-size: 3.2rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.03em;
}

.news__header .news__date {
    justify-content: center;
    padding: .6rem 1.2rem;
    border-radius: 999px;
    background: #f5f5f5;
}

.news__body {
    color: #3d3d3d;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: -.01em;
}

.news__body > *:first-child {
    margin-top: 0;
}

.news__body > *:last-child {
    margin-bottom: 0;
}

.news__body p {
    margin: 0 0 1.6rem;
}

.news__body p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .news__headline {
        font-size: 2.6rem;
    }

    .news__hero {
        margin-bottom: 2.4rem;
        border-radius: 1.6rem;
    }

    .news__header {
        margin-bottom: 2.4rem;
    }
}

/* Reels: Instagram iframe eats the swipe. Overlay takes the drag; look stays in style.css. */
.entertainment__reels__drag {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.entertainment__reels__item.is-selected .entertainment__reels__drag {
    pointer-events: none;
}

.entertainment__reels__item.is-selected .entertainment__reels__drag::before,
.entertainment__reels__item.is-selected .entertainment__reels__drag::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 22%;
    pointer-events: auto;
}

.entertainment__reels__item.is-selected .entertainment__reels__drag::before {
    left: 0;
}

.entertainment__reels__item.is-selected .entertainment__reels__drag::after {
    right: 0;
}

@media (max-width: 768px) {
    .entertainment__reels__slider.active {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
    }
}

.contact__form .form-notice {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin: 0 0 2rem;
    padding: 1.6rem 2rem;
    border-radius: 10px;
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: -.02em;
    line-height: 1.3;
}

.contact__form .form-notice::before {
    content: "";
    flex-shrink: 0;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, .7);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 1.4rem;
}

.contact__form .form-notice--ok {
    color: #1f8a55;
    background: rgba(31, 138, 85, .1);
}

.contact__form .form-notice--ok::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f8a55' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M5 13l4 4L19 7'/></svg>");
}

.contact__form .form-notice--err {
    color: #c40074;
    background: rgba(236, 0, 140, .08);
}

.contact__form .form-notice--err::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c40074' stroke-width='2.4' stroke-linecap='round'><circle cx='12' cy='12' r='8.5'/><path d='M12 8v5M12 16.5v.5'/></svg>");
}

.contact__form .invalid-feedback {
    display: none;
}

/* Tale audio player: same yellow pill as the listen button, plus a seek bar */
.tale-player {
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    width: min(100%, 42rem);
    margin-bottom: 2.4rem;
    padding: .8rem 1.8rem .8rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 32px;
    background: #ffcb05;
    color: #212121;
    box-sizing: border-box;
}

.tale-player__toggle {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    color: inherit;
}

.tale-player__toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.tale-player__range {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    width: 100%;
    height: .4rem;
    margin: 0;
    border-radius: 999px;
    background: linear-gradient(to right, #212121 0, #212121 var(--p, 0%), rgba(33, 33, 33, .18) var(--p, 0%));
    outline: none;
    cursor: pointer;
}

.tale-player__range::-webkit-slider-runnable-track {
    height: .4rem;
    border-radius: 999px;
    background: transparent;
}

.tale-player__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1.4rem;
    height: 1.4rem;
    margin-top: -.5rem;
    border: 0;
    border-radius: 50%;
    background: #212121;
    cursor: pointer;
}

.tale-player__range::-moz-range-track {
    height: .4rem;
    border-radius: 999px;
    background: rgba(33, 33, 33, .18);
}

.tale-player__range::-moz-range-progress {
    height: .4rem;
    border-radius: 999px;
    background: #212121;
}

.tale-player__range::-moz-range-thumb {
    width: 1.4rem;
    height: 1.4rem;
    border: 0;
    border-radius: 50%;
    background: #212121;
    cursor: pointer;
}

.tale-player__time {
    flex-shrink: 0;
    min-width: 3.6rem;
    color: #212121;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}

button.menu__item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

/* Cards without the .item box (e.g. the dark Pizza Inn slider) must not get the native button chrome. */
button.menu__item:not(.item) {
    padding: 0;
    border: 0;
    background: none;
    border-radius: 0;
}

body.is-menu-popup {
    overflow: hidden;
}

.menu-popup {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.4rem;
}

.menu-popup[hidden] {
    display: none;
}

.menu-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(33, 33, 33, .35);
}

.menu-popup__card {
    position: relative;
    z-index: 1;
    width: min(100%, 42rem);
    max-height: calc(100vh - 4.8rem);
    overflow: auto;
    padding: 4.8rem 2rem 2rem;
    border: 1px solid #000;
    border-radius: 16px;
    background: #fff;
}

.menu-popup__close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    z-index: 2;
    width: 3.2rem;
    height: 3.2rem;
    border: 1px solid #000;
    border-radius: 50%;
    background: #fff;
    color: #212121;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
}

.menu-popup__image {
    overflow: hidden;
    margin: 0 0 1.6rem;
    border-radius: 12px;
}

.menu-popup__image img {
    display: block;
    width: 100%;
    max-height: 22rem;
    object-fit: cover;
}

.menu-popup__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.6rem;
}

.menu-popup__title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.3;
}

.menu-popup__price {
    flex-shrink: 0;
    font-size: 1.8rem;
    font-weight: 500;
    color: #212121;
}

.menu-popup__desc {
    margin: .8rem 0 0;
    color: rgba(33, 33, 33, .6);
    font-size: 1.6rem;
    line-height: 1.5;
}

/* Page banner title sits on the illustration, so keep it readable */
.page-banner__title {
    bottom: auto;
    top: 22%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    text-shadow:
        0 0 .2rem rgba(48, 14, 32, .7),
        0 .2rem .4rem rgba(48, 14, 32, .45),
        0 .6rem 1.6rem rgba(48, 14, 32, .35);
}
