@font-face {
    font-family: "Inter-Regular";
    src: url("/tensor/fonts/Inter-Regular.ttf");
    font-display: swap;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
    margin: 0;
    overflow: hidden;
    color: white;
    text-align: center;
    background: url(/warm_calendar2025-2026/img/background.jpg) no-repeat top center fixed;
    background-size: cover;
    min-height: 100%;
    align-items: center;
    justify-content: center;
    padding: 10px;
    cursor: default;
    min-width: 320px;
    margin-top: 3%;
    scrollbar-width: none;
    background-attachment: fixed;
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #07152f;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-spinner {
    width: 52px;
    height: 52px;
    border: 4px solid rgba(255, 255, 255, 0.25);
    border-top-color: #bb9663;
    border-radius: 50%;
    animation: loader-spin 0.8s linear infinite;
}

@keyframes loader-spin {
    to {
        transform: rotate(360deg);
    }
}

.page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    min-width: 320px;
    padding-top: 50px;
    margin-top: 50px;
}

.archive-title {
    font-size: 50px;
    font-weight: 300;
    word-wrap: break-word;
    margin-bottom: 20px;
    line-height: 1;
    user-select: none;
}

.archive-title_month {
    font-size: 50px;
    font-weight: 300;
    word-wrap: break-word;
    margin-bottom: 40px;
    line-height: 1;
    user-select: none;
}

.archive-subtitle {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 400;
    text-align: center;
    text-transform: capitalize;
    user-select: none;
}

.months-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 25px;
}

.month-button,
.today-button,
.parable-button,
.back-button {
    min-height: 52px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    font: inherit;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.month-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    background: #0B3B71;
    font-size: 20px;
    transition: transform 0.15s ease, background-color 0.15s ease;
    user-select: none;
}

.month-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.month-button.is-disabled {
    color: rgb(255 255 255);
    background: rgb(0 0 0 / 40%);
    cursor: default;
    pointer-events: none;
    box-shadow: none;
}

.archive-divider {
    width: 100%;
    height: 3px;
    margin: 28px 0 28px;
    background: #7E6543;
    border-radius: 999px;
}

.today-row,
.back-row {
    display: flex;
    justify-content: center;
    margin-bottom: 36px;
    user-select: none;
}

.today-button,
.back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    padding: 10px 26px;
    background: #0B3B71;
    font-size: 20px;
}

.today-button:hover,
.back-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.parable-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80%;
    min-height: 52px;
    height: auto;
    margin-bottom: 10px;
    padding: 12px 16px;
    background-color: #0B3B71;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    word-break: normal;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.parable-button:last-child {
    margin-bottom: 0;
}

.parable-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.empty-message {
    padding: 28px 12px;
    font-size: 17px;
    line-height: 1.5;
    text-align: center;
}

body.modal-open {
    overflow: hidden;
}

.parable-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.parable-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.parable-modal__content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 900px;
    max-height: 85dvh;
    padding: 30px;
    overflow: hidden;
    background: #0b3b71;
    border: 2px solid var(--gold);
    border-radius: 28px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.45);
    transform: translateY(18px);
    transition: transform 0.18s ease;
}

.parable-modal.is-open .parable-modal__content {
    background: #0B3B71;
    padding: 30px;
    width: 100%;
    max-width: 900px;
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    animation: slideIn 0.25s ease;
    border-radius: 28px;
    border: 3px solid #98784d;
}

.parable-modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    background: transparent;
    border: 0;
    cursor: pointer;
    user-select: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.parable-modal__header {
    padding-right: 44px;
    text-align: left;
}

.parable-modal__title {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    font-size: clamp(22px, 4vw, 40px);
    line-height: 1.15;
}

.parable-modal__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #55442d, #bb9663, #55442d);
}

.parable-modal__date {
    margin-top: 40px;
    color: rgba(255, 255, 255);
    font-size: 14px;
}

.modal-body.has-scroll {
    box-shadow: 0px -10px 10px -10px rgb(0 0 0 / 65%) inset;
}

.parable-modal__body::-webkit-scrollbar {
    width: 8px;
}

.parable-modal__body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 999px;
}

.parables-list {
    width: 100%;
    height: auto;
    max-height: calc(100dvh - 350px);
    min-height: 200px;
    overflow: visible;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    padding: 4px 10px 10px 0;
    box-shadow: 0px -10px 10px -10px rgb(0 0 0 / 65%) inset;
    scrollbar-color: #55769c transparent;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    user-select: none;
}

.parables-list::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

.parables-list::-webkit-scrollbar {
    width: 8px;
}

.parables-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.parables-list::-webkit-scrollbar-thumb {
    background: #55769c;
    border-radius: 999px;
}

.parable-modal__content {
    display: flex;
    flex-direction: column;
    width: min(92vw, 720px);
    max-height: calc(100dvh - 32px);
    box-sizing: border-box;
    overflow: hidden;
}

.parable-modal__body {
    font-size: 16px;
    line-height: 1.6;
    overflow-y: auto;
    flex: 1;
    text-align: left;
    padding-right: 10px;
    cursor: default;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    box-shadow: 0px -10px 10px -10px rgb(0 0 0 / 65%) inset;

}

.parable-modal__body.has-scroll {
    box-shadow: 0px -10px 10px -10px rgb(0 0 0 / 65%) inset;
}

.parable-modal__body.at-bottom {
    box-shadow: none;
}

.parable-modal__body::-webkit-scrollbar {
    width: 8px;
}

.parable-modal__body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.parable-modal__header {
    flex: 0 0 auto;
    margin-bottom: 20px;
}

body.modal-open {
    overflow: hidden;
}

.play-audio-btn {
    flex-shrink: 0;
    min-width: 140px;
    margin-bottom: 0;
    padding: 12px 24px;
    color: #ffffff;
    background-color: #98784d;
    border: none;
    border-radius: 30px;
    font: inherit;
    font-size: 18px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.play-audio-btn:hover {
    background-color: #9e7a52;
}

.play-audio-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

.audio-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    max-width: 500px;
}

#audio-progress {
    flex-grow: 1;
    width: 100%;
    min-width: 180px;
    max-width: 400px;
    height: 6px;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

#audio-progress::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
    appearance: none;
    -webkit-appearance: none;
    background: #98784d;
    border: 2px solid #ffffff;
    border-radius: 50%;
    cursor: pointer;
}

#audio-progress::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #98784d;
    border: 2px solid #ffffff;
    border-radius: 50%;
    cursor: pointer;
}

#audio-progress::-moz-range-progress {
    height: 6px;
    background: #98784d;
    border-radius: 3px;
}

#audio-progress::-moz-range-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.audio-time {
    flex: 0 0 auto;
    min-width: 90px;
    color: #ffffff;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    text-align: center;
    white-space: nowrap;
}

.audio-container {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    margin-top: 30px;
}

.audio-container[hidden] {
    display: none;
}

.back-fab {
    position: fixed;
    left: 20px;
    top: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #55769c;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
    transition: transform .2s ease, background-color .2s ease;
    margin-bottom: 10px;
    -webkit-tap-highlight-color: transparent;
}

.back-fab:hover {
    background: #1b4b82;
    transform: translateY(-2px);
}

.back-fab svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
@media (min-width: 768px) and (max-height: 900px) {
    body {
        margin-top: 0;
	    overflow-x: hidden;
        overflow-y: auto;
        min-height: 100vh;
    }

   .archive-title_month {
        font-size: 40px;
        margin-bottom: 20px;
    }
   .page {
        margin-top: 40px;
    }

   .parables-list {
        max-height: calc(100vh - 280px);
    }

   .months-grid {
	    gap: 10px 20px;
    }
}

@media (max-width: 600px) {
    body {
        padding: 5px;
        background: url("/warm_calendar2025-2026/img/background3.jpg") no-repeat top center fixed;
        background-size: cover;
        margin-top: 30%;
    }

    .archive-title {
        font-size: 26px;
        margin-bottom: 30px;
        font-weight: 500;
    }

    .archive-title_month {
        font-size: 26px;
        margin-bottom: 30px;
        font-weight: 500;
    }

    .archive-subtitle {
        margin-bottom: 28px;
        font-size: 15px;
    }

    .months-grid {
        gap: 18px 24px;
        min-width: 360px;
    }

    .month-button {
        min-height: 46px;
        padding: 9px 12px;
        font-size: 18px;
    }

    .today-button,
    .back-button {
        font-size: 18px;
        min-width: 160px;
        min-height: 44px;
        padding: 6px;
    }

    .parable-button {
        width: 85%;
        min-height: 50px;
        height: auto;
        padding: 11px 20px;
        font-size: 18px;
        line-height: 1.35;
        white-space: normal;
        overflow: visible;
        overflow-wrap: anywhere;
        word-break: normal;
        text-overflow: clip;
    }

    .parables-list {
        max-height: calc(100dvh - 200px);
        min-height: 220px;
        gap: 14px;
    }

    .archive-divider {
        margin: 28px 0 22px;
    }

    .parable-modal {
        align-items: center;
        padding: 10px;
    }

    .parable-modal__content {
        max-height: 82dvh;
        padding: 22px 18px 18px;
        border-radius: 22px;
    }

    .parable-modal__body {
        font-size: 15px;
        line-height: 1.6;
    }

    .page {
        padding-top: 0px;
        margin-top: 0px;
    }

    .back-fab {
        left: 10px;
        bottom: 10px;
        width: 44px;
        height: 44px;
    }

    .back-fab svg {
        width: 28px;
        height: 28px;
    }

    .parable-modal__date {
        margin-top: 20px;
        color: rgba(255, 255, 255);
        font-size: 14px;
    }


    .container,
    .page {
        padding-left: 10px;
        padding-right: 10px;
    }

    .today-button,
    .back-button {
        font-size: 16px;
    }

}

@media (max-width: 480px) {
    body {
        padding: 10px;
        background: url("/warm_calendar2025-2026/img/background3.jpg") no-repeat top center fixed;
        background-size: cover;
        margin-top: 23%;
    }

    .parable-modal.is-open .parable-modal__content {
        max-width: 100%;
        padding: 20px;
        max-height: 70vh;
    }

    .archive-title {
        font-size: 30px;
        margin-bottom: 25px;
        font-weight: 500;
    }

	.archive-title_month {
        font-size: 26px;
        margin-bottom: 25px;
        font-weight: 500;
    }


    .archive-subtitle {
        margin-bottom: 10px;
        font-size: 16px;
    }

    .months-grid {
        gap: 18px 24px;
        min-width: 380px;
    }

    .month-button {
        min-height: 50px;
        padding: 9px 12px;
        font-size: 18px;
    }

    .back-row {
        margin-bottom: 10px;
    }

    .today-button,
    .back-button {
        font-size: 16px;
    }

    .parable-button {
        width: 100%;
        min-height: 50px;
        height: auto;
        padding: 11px 20px;
        font-size: 18px;
        line-height: 1.35;
        white-space: normal;
        overflow: visible;
        overflow-wrap: anywhere;
        word-break: normal;
        text-overflow: clip;
    }

    .parables-list {
        max-height: calc(100dvh - 200px);
        min-height: 220px;
        gap: 6px;
    }

    .archive-divider {
        margin: 28px 0 22px;
    }

    .parable-modal {
        align-items: center;
        padding: 10px;
        height: 100%;
    }

    .parable-modal__content {
        max-height: 82dvh;
        padding: 22px 18px 18px;
        border-radius: 22px;
    }

    .parable-modal__body {
        font-size: 16px;
        line-height: 1.6;
    }

    .page {
        padding-top: 0px;
        margin-top: 0px;
    }

    .audio-container {
        flex-direction: column;
        gap: 10px;1
        margin-top: 20px;
    }

    .play-audio-btn {
        order: 1;
        min-width: 110px;
        width: auto;
        padding: 10px 20px;
        font-size: 14px;
    }

    .audio-controls {
        order: 2;
        width: 100%;
        max-width: 100%;
        gap: 8px;
    }

    #audio-progress {
        width: calc(100% - 20px);
        min-width: 130px;
        max-width: 280px;
        height: 5px;
    }

    #audio-progress::-webkit-slider-thumb {
        width: 16px;
        height: 16px;
    }

    .audio-time {
        min-width: 70px;
        font-size: 12px;
    }
}

@media (max-width: 400px) {
    .months-grid {
        gap: 14px 12px;
        min-width: 340px;

    }

    .month-button {
        min-height: 44px;
        font-size: 16px;
    }

    .parable-button {
        width: 94%;
        min-height: 48px;
        height: auto;
        padding: 10px 11px;
        font-size: 16px;
        line-height: 1.35;
        white-space: normal;
        overflow: visible;
        overflow-wrap: anywhere;
        word-break: normal;
        text-overflow: clip;
    }

}

@media (max-width: 360px) {
    .months-grid {
        gap: 14px 12px;

    }

    .month-button {
        min-height: 44px;
        font-size: 16px;
    }

    .parables-list {
        max-height: calc(100dvh - 175px);
        min-height: 220px;
        padding-right: 6px;
    }

    .parable-button {
        width: 96%;
        min-height: 46px;
        height: auto;
        padding: 9px 10px;
        font-size: 14px;
        line-height: 1.35;
        white-space: normal;
        overflow: visible;
        overflow-wrap: anywhere;
        word-break: normal;
        text-overflow: clip;
    }

    .parable-modal__content {
        width: calc(100vw - 20px);
        max-height: calc(100dvh - 20px);
    }

    .audio-time {
        width: 100%;
        text-align: center;
    }
	.archive-subtitle {
        margin-bottom: 10px;
        font-size: 13px;
    }

}

@media (max-width: 320px) {
    body {
        margin-top: 27%;
    }

    .month-button,
    .calendar-button,
    .day-button {
        min-height: 34px;
        padding: 8px 10px;
        font-size: 14px;
    }

    .calendar-grid,
    .months-grid {
        gap: 6px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    p {
        font-size: 15px;
    }

    .container,
    .page {
        padding-left: 10px;
        padding-right: 10px;
    }

    .months-grid {
        gap: 15px 20px;
        min-width: 200px;
    }

    .audio-container {
        gap: 8px;
    }

    .play-audio-btn {
        min-width: 90px;
        padding: 8px 14px;

        font-size: 12px;
    }

    #audio-progress {
        min-width: 100px;
        max-width: 180px;
    }

    #audio-progress::-webkit-slider-thumb {
        width: 14px;
        height: 14px;
    }

    .audio-time {
        display: none;
    }

    .parable-button {
        width: 100%;
        min-height: 44px;
        height: auto;
        padding: 8px 9px;
        font-size: 15px;
        line-height: 1.35;
        white-space: normal;
        overflow: visible;
        overflow-wrap: anywhere;
        word-break: normal;
        text-overflow: clip;
    }
    .parables-list {
        max-height: calc(100dvh - 100px);
        min-height: 220px;
        padding-right: 6px;
    }
}