/* ioann-presnya home_schedule_row — Figma node 1:88 */

/* ── Section ── */
.home-schedule-row {
    padding: 40px 0;
}

/* ── Inner wrapper ── */
/* No max-width / side padding here: the section already lives inside .content,
   which supplies both. Adding them again inset the content by a second gutter
   (80px instead of 40px), making this section narrower than its neighbours. */
.home-schedule-row__inner {
    display: flex;
    flex-direction: row;
    gap: 52px;
    align-items: stretch;
}

/* ── Each card ── */
.home-schedule-row__card {
    flex: 1 1 0;
    width: 0; /* force equal flex widths regardless of content min-width */
    min-width: 0;
    box-sizing: border-box;
    border-top: 1px solid #cecece;
    border-bottom: 1px solid #cecece;
    display: flex;
    flex-direction: row;
    align-items: center;
    min-height: 228px;
}

/* ────────────────────────────────────────────────────
   Left card: schedule CTA
──────────────────────────────────────────────────── */
.home-schedule-row__schedule {
    overflow: hidden;
    /* padding-right removed: image is now an in-flow flex child, not absolute */
}

.home-schedule-row__text {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1 1 auto; /* grow to fill space, pushing image to the right */
    min-width: 0;
}

/* h2 title */
.home-schedule-row__title {
    margin: 0;
    font-family: var(--ip-font-title, 'Cormorant Garamond', Georgia, serif);
    font-weight: 700;
    font-size: 34px;
    line-height: 1.1;
    color: #1b1b1b;
    letter-spacing: -0.01em;
}

/* month label */
.home-schedule-row__month {
    margin: 0;
    font-family: var(--ip-font-body, 'Golos Text', system-ui, sans-serif);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.1;
    color: #6c0a0c;
    letter-spacing: -0.011em;
}

/* CTA link (shared by both cards) */
.home-schedule-row__cta {
    display: inline-block;
    font-family: var(--ip-font-body, 'Golos Text', system-ui, sans-serif);
    font-size: 13px;
    font-weight: 500;
    color: #6c0a0c;
    text-decoration: none;
    transition: color 0.15s ease;
}
.home-schedule-row__cta:hover,
.home-schedule-row__cta:focus-visible {
    color: #af4409;
}

/* Round image — in-flow flex child pinned to the right edge of the left card */
.home-schedule-row__image {
    width: 172px;
    height: 172px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    margin-left: auto; /* pushes image to right edge; breathing room between text and image */
}
.home-schedule-row__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ────────────────────────────────────────────────────
   Right card: calendar day
   3-column flex: date | saint-img | calendar-text
──────────────────────────────────────────────────── */
.home-schedule-row__calendar {
    gap: 24px;
    align-items: center;
}

/* Date column */
.home-schedule-row__date {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
    min-width: 80px;
}

.home-schedule-row__date-num {
    font-family: var(--ip-font-title, 'Cormorant Garamond', Georgia, serif);
    font-weight: 700;
    font-size: 60px;
    line-height: 1;
    color: #1b1b1b;
}

.home-schedule-row__date-month,
.home-schedule-row__date-dow {
    font-family: var(--ip-font-body, 'Golos Text', system-ui, sans-serif);
    font-size: 14px;
    font-weight: 400;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.home-schedule-row__date-dow {
    margin-top: 2px;
}

/* Old-style date row — pushed to bottom of column */
.home-schedule-row__date-old {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    padding-top: 12px;
}

.home-schedule-row__date-old-num,
.home-schedule-row__date-old-label {
    font-family: var(--ip-font-body, 'Golos Text', system-ui, sans-serif);
    font-size: 14px;
    font-weight: 400;
    color: #888888;
    line-height: 1.3;
}

/* Round saint image */
.home-schedule-row__saint-img {
    width: 172px;
    height: 172px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.home-schedule-row__saint-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Calendar text column */
.home-schedule-row__calendar-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.home-schedule-row__week {
    margin: 0;
    font-family: var(--ip-font-title, 'Cormorant Garamond', Georgia, serif);
    font-weight: 700;
    font-size: 32px;
    line-height: 1.1;
    color: #1b1b1b;
}

.home-schedule-row__tone {
    margin: 0;
    font-family: var(--ip-font-title, 'Cormorant Garamond', Georgia, serif);
    font-style: italic;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.3;
    color: #888888;
    margin-top: 6px;
}

.home-schedule-row__saints {
    margin: 0;
    font-family: var(--ip-font-body, 'Golos Text', system-ui, sans-serif);
    font-size: 14px;
    line-height: 1.5;
    color: #555555;
    max-width: 320px;
    margin-top: 12px;
    /* Cap the day description at 3 lines regardless of its content, so the
       compact card keeps a stable height across days. */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

/* saints_text carries admin HTML (paragraphs, links) — tame block spacing */
.home-schedule-row__saints > :first-child {
    margin-top: 0;
}

.home-schedule-row__saints > :last-child {
    margin-bottom: 0;
}

.home-schedule-row__saints p {
    margin: 0 0 6px;
}

.home-schedule-row__saints a {
    color: inherit;
    text-decoration: underline;
}

/* ────────────────────────────────────────────────────
   Responsive
──────────────────────────────────────────────────── */

/* Below 1100px: stack cards vertically */
@media (max-width: 1100px) {
    .home-schedule-row__inner {
        flex-direction: column;
        gap: 32px;
    }

    .home-schedule-row__card {
        width: 100%;
    }

    /* .home-schedule-row__schedule padding-right override no longer needed (removed from base) */
    /* .home-schedule-row__image position/transform overrides no longer needed (image is in-flow) */
}

/* ────────────────────────────────────────────────────
   Mobile rework — Figma node 2744:2948.
   Each card becomes one vertical column: round 172px image on top, text
   below. Card 2 keeps the date row above the image. The top/bottom rules
   run full-bleed (section cancels the .content 16px gutter) and content is
   inset 36px, matching the design.
──────────────────────────────────────────────────── */
@media (max-width: 767.99px) {
    /* Keep the .content side gutter so the row has the same left/right
       margins as .news-main (no full-bleed). */
    .home-schedule-row {
        padding: 48px 0 24px;
    }

    .home-schedule-row__inner {
        flex-direction: column;
        gap: 0;
    }

    .home-schedule-row__card {
        width: 100%;
        /* Reset the desktop equal-columns flex (flex:1 1 0 / width:0), which
           collapses card height to 0 in this auto-height vertical stack. */
        flex: 0 0 auto;
        flex-direction: column;
        align-items: flex-start;
        min-height: 0;
        padding: 28px 36px;
    }
    /* Collapse the doubled rule where the two stacked cards meet */
    .home-schedule-row__card + .home-schedule-row__card {
        border-top: none;
    }

    /* Round images: 172px, left-aligned, above the text */
    .home-schedule-row__image,
    .home-schedule-row__saint-img {
        width: 172px;
        height: 172px;
        margin-left: 0;
    }

    /* ── Card 1: schedule CTA ── */
    .home-schedule-row__schedule {
        gap: 36px; /* image → text */
    }
    .home-schedule-row__image {
        order: -1; /* image above text */
    }
    .home-schedule-row__text {
        gap: 16px;
    }
    .home-schedule-row__title {
        font-size: 36px;
        line-height: 1;
    }
    .home-schedule-row__month {
        font-size: 16px;
        line-height: 1.1;
        color: #a33d25;
    }
    .home-schedule-row__cta {
        font-size: 14px;
        color: #a33d25;
    }

    /* ── Card 2: calendar day ── */
    .home-schedule-row__calendar {
        gap: 16px; /* image → text; date gets +6px below for a 22px date→image gap */
        align-items: stretch;
    }

    /* Date row: big number + month/weekday inline on the left, old-style right */
    .home-schedule-row__date {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 4px;
        width: 100%;
        margin-bottom: 6px;
    }
    .home-schedule-row__date-num {
        font-size: 60px;
        line-height: 1;
        letter-spacing: -0.011em;
    }
    .home-schedule-row__date-month,
    .home-schedule-row__date-dow {
        font-size: 16px;
        line-height: 1;
        text-transform: none;
        letter-spacing: -0.011em;
        margin-top: 0;
        align-self: flex-start;
    }
    .home-schedule-row__date-month {
        color: #1b1b1b;
    }
    .home-schedule-row__date-dow {
        color: #a6a6a6;
    }
    .home-schedule-row__date-old {
        flex-direction: column;
        margin-left: auto; /* push to the right edge */
        margin-top: 0;
        padding-top: 0;
        align-items: flex-start;
        gap: 4px;
    }
    .home-schedule-row__date-old-num,
    .home-schedule-row__date-old-label {
        font-size: 16px;
        line-height: 1;
    }
    .home-schedule-row__date-old-num {
        color: #1b1b1b;
    }
    .home-schedule-row__date-old-label {
        color: #a6a6a6;
    }

    /* Content block: image on top, text below */
    .home-schedule-row__calendar-text {
        width: 100%;
        gap: 4px;
    }
    .home-schedule-row__week {
        font-size: 36px;
        line-height: 1.2;
    }
    .home-schedule-row__tone {
        font-size: 24px;
        line-height: 1.05;
        color: #1b1b1b;
        margin-top: 0;
    }
    .home-schedule-row__saints {
        font-size: 16px;
        line-height: 1.3;
        color: #a4a4a4;
        max-width: 100%;
        margin-top: 0;
        /* Show the full day description on mobile (design shows it un-clamped) */
        display: block;
        -webkit-line-clamp: unset;
        overflow: visible;
    }
    .home-schedule-row__cta {
        font-size: 14px;
    }
}
