/* A Cardo betűtípust a WordPress-sablon tölti be. */
.sc-calendar {
    --sc-calendar-gap: 5px;
    width: 100%;
    max-width: 1100px;
    margin-inline: auto;
    color: #242321;
    font-family: "Cardo", Georgia, serif;
    font-weight: 400;
    line-height: 1.4;
}

.sc-calendar *,
.sc-calendar *::before,
.sc-calendar *::after {
    box-sizing: border-box;
}

.sc-calendar .sc-calendar__intro {
    max-width: 900px;
    margin: 0 auto 30px;
    text-align: center;
}

.sc-calendar .sc-calendar__intro-kicker,
.sc-calendar .sc-calendar__intro-description {
    font-family: "Metropolis", Arial, sans-serif;
    font-weight: 400;
}

.sc-calendar .sc-calendar__intro-kicker {
    margin: 0 0 14px;
    color: #a51218;
    font-size: 14px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
}

.sc-calendar .sc-calendar__intro-title {
    margin: 0 0 18px;
    padding: 0;
    color: #0b0b0b;
    font-family: "Cardo", Georgia, serif;
    font-size: clamp(36px, 5vw, 50px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: normal;
    text-transform: none;
      hyphens: none !important;
}

.sc-calendar .sc-calendar__intro-rule {
    display: block;
    width: 100%;
    height: 0;
    margin: 22px 0 !important;
    padding: 0;
    border: 0;
    border-top: 1px solid #c7c7bf;
    background: none;
}

.sc-calendar .sc-calendar__intro-description {
    max-width: 760px;
    margin: 0 auto;
    color: #7a746b;
    font-size: 16px;
    line-height: 1.55;
    white-space: pre-line;
}

.sc-calendar .sc-calendar__month + .sc-calendar__month {
    margin-top: 44px;
}

.sc-calendar .sc-calendar__heading {
    margin: 0 0 12px;
    padding: 0;
    color: inherit;
    font-family: inherit;
    font-size: clamp(28px, 3.5vw, 34px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: normal;
    text-transform: none;
}

.sc-calendar .sc-calendar__scroll {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
}

.sc-calendar .sc-calendar__scroll:focus-visible {
    outline: 2px solid #930e13;
    outline-offset: 3px;
}

.sc-calendar .sc-calendar__weeks {
    display: flex;
    flex-direction: column;
    gap: var(--sc-calendar-gap);
    width: 100%;
    min-width: 700px;
    margin: 0;
    padding: 0;
}

.sc-calendar .sc-calendar__weekdays,
.sc-calendar .sc-calendar__week {
    display: flex;
    gap: var(--sc-calendar-gap);
    margin: 0;
    padding: 0;
}

/* Equal columns; flex gap adds spacing only between cells. */
.sc-calendar .sc-calendar__weekday,
.sc-calendar .sc-calendar__cell {
    flex: 1 1 0;
    min-width: 0;
}

.sc-calendar .sc-calendar__weekday {
    padding: 0 0 3px;
    text-align: center;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    white-space: nowrap;
}

.sc-calendar .sc-calendar__weekday-short,
.sc-calendar .sc-calendar__badge-short {
    display: none;
}

.sc-calendar .sc-calendar__cell {
    padding: 0;
}

.sc-calendar .sc-calendar__tile,
.sc-calendar .sc-calendar__blank {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 3 / 4;
    border: 1px solid #e3dfda;
    border-radius: 0px;
}

.sc-calendar .sc-calendar__blank {
    background: rgba(235, 231, 226, 0.16);
}

.sc-calendar .sc-calendar__tile {
    display: block;
    isolation: isolate;
    background: linear-gradient(150deg, #eeeae3, #d7d2c9);
    color: inherit;
    text-decoration: none;
}

.sc-calendar a.sc-calendar__tile--linked {
    cursor: pointer;
}

.sc-calendar a.sc-calendar__tile--linked:focus-visible {
    outline: 3px solid #990f16;
    outline-offset: -4px;
}

.sc-calendar a.sc-calendar__tile--linked:hover .sc-calendar__image {
    transform: scale(1.035);
}

.sc-calendar .sc-calendar__image {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    object-fit: cover;
    transition: transform 180ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
    .sc-calendar .sc-calendar__image { transition: none; }
}

.sc-calendar .sc-calendar__date {
    position: absolute;
    inset: auto 0 0;
    display: block;
    padding: 22px 10px 10px;
    background: linear-gradient(transparent, rgba(247, 245, 241, 0.96));
    color: #242321;
    text-align: left;
    z-index: 2;
}

.sc-calendar .sc-calendar__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.sc-calendar .sc-calendar__tile--locked .sc-calendar__image {
    filter: grayscale(1);
}

.sc-calendar .sc-calendar__tile--locked .sc-calendar__shade {
    background: rgba(250, 249, 246, 0.62);
}

.sc-calendar .sc-calendar__tile--open,
.sc-calendar .sc-calendar__tile--today {
    background: linear-gradient(150deg, #77736c, #36332f);
    border-color: #b8b2a9;
}

.sc-calendar .sc-calendar__tile--open .sc-calendar__date,
.sc-calendar .sc-calendar__tile--today .sc-calendar__date {
    padding-top: 42px;
    color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.94));
}

.sc-calendar .sc-calendar__tile--today {
    border-color: #990f16;
}

/* An inset frame cannot be clipped by the horizontal scroll container. */
.sc-calendar .sc-calendar__tile--today::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    border: 2px solid #990f16;
    border-radius: 1px;
    pointer-events: none;
}

.sc-calendar .sc-calendar__badge {
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    z-index: 3;
    width: fit-content;
    max-width: calc(100% - 10px);
    padding: 4px 6px;
    border-radius: 2px;
    background: #990f16;
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    line-height: 1.2;
    overflow-wrap: break-word;
}

.sc-calendar .sc-calendar__icon {
    position: absolute;
    right: 10px;
    z-index: 3;
    pointer-events: none;
}

.sc-calendar .sc-calendar__icon--arrow {
    bottom: 30px;
    color: #fff;
    font-size: 25px;
    line-height: 1;
}

.sc-calendar .sc-calendar__icon--lock {
    top: 19px;
    width: 12px;
    height: 10px;
    border-radius: 2px;
    background: #55534f;
}

.sc-calendar .sc-calendar__icon--lock::before {
    content: "";
    position: absolute;
    left: 2px;
    top: -7px;
    width: 8px;
    height: 9px;
    border: 2px solid #55534f;
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
}

.sc-calendar .sc-calendar__icon--lock::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 3px;
    width: 2px;
    height: 4px;
    border-radius: 1px;
    background: #faf9f6;
}

.sc-calendar .sc-calendar__day-number {
    display: block;
    font-size: clamp(28px, 3.5vw, 30px);
    line-height: 1;
}

.sc-calendar .sc-calendar__month-name {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sc-calendar .sc-calendar__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (max-width: 740px) {
    .sc-calendar { --sc-calendar-gap: 3px; }

    .sc-calendar .sc-calendar__intro { margin-bottom: 24px; }
    .sc-calendar .sc-calendar__intro-kicker { margin-bottom: 11px; font-size: 12px; }
    .sc-calendar .sc-calendar__intro-title { margin-bottom: 13px; font-size: clamp(45px, 7vw, 40px); line-height: 1; margin:10px 0 22px 0;}
    .sc-calendar .sc-calendar__intro-rule { margin-bottom: 12px; }
    .sc-calendar .sc-calendar__intro-description { font-size: 14px; line-height: 1.5; }

    .sc-calendar .sc-calendar__month + .sc-calendar__month { margin-top: 30px; }
    .sc-calendar .sc-calendar__heading { margin-bottom: 9px; font-size: clamp(25px, 7vw, 34px); }

    .sc-calendar .sc-calendar__scroll { overflow-x: visible; }
    .sc-calendar .sc-calendar__weeks { min-width: 0; }
    .sc-calendar .sc-calendar__weekday { padding-bottom: 2px; font-size: clamp(10px, 2.7vw, 13px); }
    .sc-calendar .sc-calendar__weekday-full,
    .sc-calendar .sc-calendar__badge-full { display: none; }
    .sc-calendar .sc-calendar__weekday-short,
    .sc-calendar .sc-calendar__badge-short { display: inline; }

    .sc-calendar .sc-calendar__date { padding: 12px 3px 3px; }
    .sc-calendar .sc-calendar__tile--open .sc-calendar__date,
    .sc-calendar .sc-calendar__tile--today .sc-calendar__date { padding-top: 16px; }
    .sc-calendar .sc-calendar__day-number { font-size: clamp(16px, 4.4vw, 22px); }
    .sc-calendar .sc-calendar__month-name { display: none; }

    .sc-calendar .sc-calendar__badge {
        top: 2px;
        left: 2px;
        right: 2px;
        max-width: calc(100% - 4px);
        padding: 1px 2px;
        font-size: clamp(8px, 2.1vw, 10px);
        line-height: 1;
    }

    .sc-calendar .sc-calendar__icon--lock { top: 11px; right: 5px; transform: scale(0.7); transform-origin: top right; }
    .sc-calendar .sc-calendar__icon--arrow { right: 3px; bottom: 5px; font-size: 15px; }
}

@media (max-width: 360px) {
    .sc-calendar { --sc-calendar-gap: 2px; }
    .sc-calendar .sc-calendar__icon--arrow { display: none; }
}
